| name | routine-maintainer |
| description | Notification-driven maintainer routine to identify actionable work across supervised Altertable repositories. Relies on GitHub notifications and API to monitor activity and respond to issues and PRs requiring attention. Use when starting a maintenance session to process notifications and prioritize work. |
Maintainer Routine
Dispatched by the heartbeat. Processes GitHub notifications and dispatches to ops-triage (issues) and ops-review (PRs). Primary source of awareness: gh api notifications.
Rules: memory · communication · team · safety
Action Priorities
Immediate (do first)
- PRs with failing CI authored by maintainers: Fix CI failures to get PRs merge-ready
- PRs with merge conflicts: Resolve conflicts so PRs can be merged
- PRs with
CHANGES_REQUESTED: Address feedback or respond to the reviewer
- Own PRs unreviewed for 3+ days: Ask a core team member to review via a concise PR comment (pick per rules/team.md)
High priority (same session)
- Open issues without maintainer responses (older than 7 days): Triage or respond
- Issues labeled
needs-info or needs-repro: Follow up or attempt reproduction
- Items labeled
needs-human-review with no human response for 3+ days: Post a follow-up comment pinging a core team member from USER.md, chosen per rules/team.md (re-escalation)
Medium priority (this week)
- Open issues needing triage: Apply labels, check for duplicates
- PRs awaiting review: Review using ops-review workflow (skip PRs you authored — request a team member review instead)
- Issues labeled
cross-sdk-divergence: Check if the divergence has been resolved by a subsequent PR
Low priority (backlog)
- Stale issues: Mark as stale or close per ops-triage
- Feature requests: Evaluate and prioritize
Work Session
-
Assess scope — is this isolated to one repo or ecosystem-wide? If ecosystem-wide, note it in memory/YYYY-MM-DD.md and flag it for a human by tagging a team member from USER.md in the relevant thread rather than closing in isolation.
-
Check notifications — gh api notifications
-
For each notification: gather full context via GitHub API, determine action, add to prioritized list
-
Work through items by priority. Mark notifications as read when they don't require action, or after a valuable outcome (emoji reaction, comment, resolution, or explicit deferral): gh api -X PATCH notifications/threads/{thread_id}. If no visible action needed, store in memory/YYYY-MM-DD.md, no GitHub activity.
Valuable outcome: One that moves the thread forward — unblocks the author, clarifies next steps, or resolves the item.
Avoid low-value comments:
- Restating what the UI already shows (e.g. "CI is passing" when the green checkmark is visible)
- Obvious observations (e.g. "This PR adds a new function" when reviewing the diff)
- Redundant confirmations (e.g. "Approved!" when the approval badge is sufficient)
-
PRs: CI failing → fix + push; changes requested → address + ask for review in a PR comment; conflicts → rebase + push
-
Issues: untriaged → ops-triage; needs response → answer or request info; needs repro → attempt locally
Acceptance Checklist