plan/Administrator-prompt.md
0 → 100644
+229
−0
Loading
New file per orchestration.md §9.6 + orchestration-v2-redesign.md §5.8
and §15.2. Two phases plus interrogation mode:
Phase 1 — Initialization: walks plan/initialization.md §1-§10 in a
timestamped init-check-<YYYYMMDD-HHMMSS> scratch namespace; runs the
§15.2 Target-branch dependency verification block (pixi env probe,
pytest-timeout import probe, --timeout=1 transitive verification,
test-dry-run task probe in dry-run mode, ruff lint ignore-list
sanity check) before declaring "Phase 1 complete. Ready to launch
worker agents." If any check fails, stops with an actionable message
and never enters phase 2.
Phase 2 — Active monitoring: TM-cadence (default 300s) loop reading
agent-state-{Analyst,Developer,Integrator}.json plus a single
ls-remote per cycle; aggregates phase, last-fetch ages, stall
reasons, open work items, ref-state-by-slug into
agent-state-Administrator.json; emits ATTENTION: notifications when
any worker has phase=stalled or last-fetch-age > 3*T{role};
ScheduleWakeup heartbeat for the loop.
Interrogation mode: answers user questions mid-loop using current
state files + at most one fresh ls-remote; never spawns subagents,
never runs expensive tools without permission; resumes the loop
afterward.
Push allowlist is narrow: init-check-* (phase 1), optional
admin-status-<ISO-date>-<host> at phase 2 start; explicitly denied
on every protocol ref. Administrator never restarts a stalled worker
or rewrites worker state files (read-only on workers per redesign
§5.3).
Co-Authored-By:
Claude Opus 4.7 (1M context) <noreply@anthropic.com>