Proto UI maintenance
Route one stage while preserving independent evidence and keeping governed maintenance moving automatically.
Read internal/agent-operations/skills.yaml as routing metadata. Do not preload maintenance leaves or guess their paths. Select one leaf ID, run pnpm agent:skill -- <leaf-id> --mode autonomous --mode-source <maintainer-invocation|schedule|governed-queue>, and load the returned loadPath only when blocked is false. Validate its handoff with pnpm agent:skill -- --handoff <handoff.json> before loading at most one next leaf.
Read current state
- Establish
executionMode: autonomous. Resolvepui-orientfirst and retain its current envelope. Resolvepui-assessand thenpui-orientagain when the local self-result is absent, expired, or snapshot-mismatched. - Read
AGENTS.md,internal/autonomous-maintenance/README.md, andinternal/autonomous-maintenance/phase-0/README.mdcompletely. - Inspect the run ledger, relevant mission and packets, baseline, and worktree state.
- Determine the next eligible transition from recorded state, the fresh self-assessed task and review ceiling, the mission boundary, and standing or explicit maintainer authorization.
- Treat
spec/**as project authority andinternal/autonomous-maintenance/**as procedure.
Before any transition, enforce the local autonomous ceiling and re-read the mission lease, current worktree, task state, and authorization. Before an external write, also re-read the target and live platform permission. Refresh stale evidence, reconcile changed state, or return a bounded no-action result; only the two attended decision classes pause the governed chain. A self-assessment never grants permission.
Route exactly one transition
- resolve
pui-missionto turn one explicitly selected candidate into a frozen bounded mission and lease; - resolve
pui-observefor a bounded read-only mission; - resolve
pui-recordfor a supported no-finding result, or for a blocked terminal result whose required evidence is complete; - resolve
pui-verifyin a fresh context for one candidate finding; - resolve
pui-recorddirectly after an independently rejected finding; - route an independently verified drift straight to
pui-remediatewhen existing authority fixes the expected result; - request one product-direction decision only when the verifier exposes a genuinely unresolved semantic or compatibility choice;
- resolve
pui-remediatefor a verified governed finding within the current autonomous ceiling and mutation scope; - resolve
pui-maintenance-reviewin a fresh context for the actual remediation; - resolve
pui-maintenance-closeonly after adequate independent review, required validation, and revalidation of its complete maintenance-state mutation surface.
Never let an Observer verify its own finding or an implementer issue the independent review verdict. Independence is an automated evidence boundary, not a requirement for a maintainer click.
Report
Apply internal/agent-operations/visual-evidence.md when the authorized maintenance scope includes Issue/PR evidence. Agents own reproduction, uploaded visuals, sanitized request paraphrases, and evidence debt. Humans may submit plain descriptions. This soft gate neither authorizes external writes nor changes maintenance independence or closure gates; use internal/agent-operations/github-evidence-upload.md for upload mechanisms.
Return the transition performed, resulting state, artifacts, evidence, uncertainty, residual risks, next eligible transition, and any exact human decision required.
Communicate with the user in the user's current language. Keep repository identifiers and artifacts in their governed language.