Skip to content

feat(bringup): [SI-15][SI-19] plan-symlink + wake-prompt templater#186

Merged
NagyVikt merged 1 commit into
mainfrom
agent/claude-supervisor/si-15-19-plan-paths
May 18, 2026
Merged

feat(bringup): [SI-15][SI-19] plan-symlink + wake-prompt templater#186
NagyVikt merged 1 commit into
mainfrom
agent/claude-supervisor/si-15-19-plan-paths

Conversation

@NagyVikt
Copy link
Copy Markdown
Contributor

Combined PR because both edit full-bringup.sh.

Summary

  • SI-15: full-bringup stages a symlink ${writable_root}/openspec/plans/${slug}${REPO}/openspec/plans/${slug} for every path in the priority plan's metadata.writable_roots[] that lives outside this repo. Idempotent (ln -sfn). down.sh reads .codex-fleet/active-plan + walks the writable_roots to unlink. Closes the ENOENT pathology where workers cd into a writable root (e.g. polymarket-cli) and colony plan status <slug> fails because the plan workspace only exists in codex-fleetui.
  • SI-19: new wake-prompt-templater.sh daemon runs as a fleet-ticker window. Every 30s it reads .codex-fleet/active-plan, queries colony task ready --json for the next claimable subtask, and atomically renders scripts/codex-fleet/wake-prompt.template.md/tmp/codex-fleet-wake-prompt.md. When no subtask is available, an EXHAUSTED notice is substituted instead. Workers re-reading the wake prompt on every loop iteration now see the live next-task pointer, not the stale snapshot bringup captured at fleet start.
  • full-bringup now writes the priority slug to .codex-fleet/active-plan so down.sh + the new daemon (and the existing pr-babysitter / auto-reviewer / plan-watcher) all read the same canonical pointer.

Test plan

  • bash scripts/codex-fleet/test/run-plan-symlink.sh — foreign root → symlink staged; in-repo root → skipped; re-run idempotent.
  • bash scripts/codex-fleet/test/run-wake-templater.sh — live variant renders slug+title+index from a mocked colony CLI; exhausted variant renders the plan-exhausted notice.
  • bash scripts/codex-fleet/test/run-routing-filter.sh (existing) still passes.
  • bash scripts/codex-fleet/test/run-bringup-publish.sh (existing) still passes.
  • bash -n clean on full-bringup.sh, down.sh, wake-prompt-templater.sh, and both new tests.

(shellcheck not available on this host; bash -n + integration tests substituted.)

Robot Generated with Claude Code

… templater

SI-15: full-bringup symlinks the priority plan into every metadata
.writable_roots[] path so 'colony plan status' invoked from any
worker's cwd resolves (observed 2026-05-18: workers cd into
polymarket-cli, plan lives in codex-fleetui, colony errors ENOENT).

SI-19: new wake-prompt-templater daemon writes /tmp/codex-fleet-
wake-prompt.md every 30s with the LIVE next-available subtask from
Colony, instead of a stale hardcoded snapshot from bringup time
(observed: workers re-read the same stale prompt referencing the
long-merged TE-2 subtask every loop iteration).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@NagyVikt NagyVikt merged commit 941af77 into main May 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant