openspec/work/simplify-context-and-workspace-model/runbook.md
Start the run from a fresh session in this repo on codex/store-root-parity
with exactly this command (interactive, or headless via
claude -p '/goal ...'):
/goal ROADMAP QUEUE COMPLETE: every item in the work queue defined in
openspec/work/simplify-context-and-workspace-model/runbook.md (slice 1.4,
the Phase 5 command-group deletion slice, 3.1-3.6, 4.1, the Phase 5
remainder, and the 6.1 final acceptance capstone) has all of its roadmap.md
progress boxes ticked except "Merged to main", the full pnpm test suite
passes, all work is committed on codex/store-root-parity, and the
capstone's release-readiness report is committed with no open P1/P2
findings. Work strictly per the runbook, one coherent unit per turn, never
waiting for the user; or stop after 300 turns.
This file is the contract for the autonomous run that works through the
simplify-context-and-workspace-model roadmap. The driver is /goal
(condition-based: turns fire back-to-back until the completion condition is
met — no schedule, no waiting for the user). Each turn does one coherent
unit of work and ends with an explicit status the goal evaluator can read.
All work happens on codex/store-root-parity (see the single-branch
workflow note in roadmap.md).
Architecture: the goal-driven main loop is the sequential spine (one
judgment-bearing unit per turn, bookkeeping between phases); parallel review
phases run as multi-agent Workflows; the /code-review and /simplify
skills and the codex CLI provide independent review machinery — these skills
run from the main loop, never from inside workflow agents.
The original queue is complete. Item 7.1 runs as its own goal, from a
fresh session on codex/store-root-parity:
/goal 7.1 COMPLETE: roadmap item 7.1 (personal worksets) in
openspec/work/simplify-context-and-workspace-model/roadmap.md has all
of its progress boxes ticked except "Merged to main" — including the
capstone dogfood and the pushed-branch box — the full pnpm test suite
passes, all work is committed on codex/store-root-parity, and the
branch is pushed to origin with code-review comments addressed. Work
per the runbook's per-slice discipline with the slice folder
slices/personal-worksets/; the 7.1 section's functional requirements,
locked decisions, and research checklist are the requirements baseline
and are owner-directed — do not relitigate them. Start with the
research checkpoint (the old launch mechanics at f858c19^ are the
evidence base). One coherent unit per turn, never waiting for the
user; or stop after 80 turns.
7.1 is a build slice: full review discipline (the deletion-slice trim does not apply). Two run-specific amendments (owner-directed, 2026-06-12):
codex/store-root-parity to origin. Then check PR #1190 for
code-review comments touching the slice and address each one (fix
it, or record a reply-with-rationale in the changelog). Merging to
or pushing main remains forbidden; the Hard boundaries section's
"never push at all" is superseded by this paragraph for this run
only.code /
cursor / claude / codex executables on PATH, walk
compose → list → open for both launch styles, verifying the
generated .code-workspace contents and the exact launch argv per
tool (including the no-prompt rule for agent opens). Then a
cold-start UX walk: a fresh headless agent given only --help
output and no insider knowledge must reach an opened workset.
Record the transcript in the slice folder, fix what it surfaces,
re-run the full suite, and tick the capstone box.All other sections of this runbook apply unchanged.
roadmap.md — Progress At A Glance, the next-incomplete-item
pointer, and the current slice's section. Read goal.md and AGENTS.md
if not already in context. Trust the files over conversation memory;
context may have been compacted.roadmap.md ("Decisions
locked" blocks, Rules We Should Not Forget, the 1.4 terminology
checkbox, the 5.1 criteria); do not re-open them.slices/<slice-name>/spec.md in the established format
(Outcome, Locked Decisions, User Experience, Scope, Acceptance Criteria
with GIVEN/WHEN/THEN scenarios). Ground every claim in current code.slices/<slice-name>/plan.md (Status, code map with
file:line anchors, implementation plan, test plan, risks, done
definition).pnpm test green before
any implementation commit. Update existing tests deliberately, never by
loosening contracts./code-review skill at high effort for correctness findings;/simplify on the changed code — serial, after
correctness fixes land, because it edits the working tree. Re-run the
full suite; commit.--store <id> when a store is selected, and uses absolute paths
cross-root. A hint a user pastes must work verbatim.Codex review invocation: codex exec non-interactively with model 5.5 at
high reasoning (-c model=... and reasoning-effort overrides; confirm the
exact model id with codex exec --help/config on first use and then reuse
it). Give codex the commit range or artifact paths and ask for findings with
severity and file:line evidence.
Deletion-slice review profile (Phase 5 remainder only): spec review keeps
the full dual shape (subagent + codex); plan review runs the adversarial
subagent alone, no codex; post-implementation review runs the
spec-compliance agent and /code-review at high effort, no per-slice
codex. Rationale: deletion slices are mechanical, their review-fix rounds
have been the smallest of the run, and the 6.1 whole-delta codex review
re-covers every deleted line anyway. Build slices (4.1) keep the full
discipline.
Slice-specific acceptance:
The capstone proves the product, not the slices. It only passes when a cold user could start using this today. Its checks:
--store repetition.--help output and generated guidance.docs/cli.md); a documented
time-to-first-success count (commands and concepts from install to first
store-scoped change).origin/main
reported (expected net-negative given the Phase 5 deletions — justify if
not).origin/main...HEAD (the sum, not
the slices): /code-review at max effort, a codex CLI review, a
fan-out of adversarial Workflow reviewers, and a completeness critic
asking what is missing. Fix all P1/P2 findings.Decided autonomously ledger, and known gaps mapped to Later Ideas.When a slice surfaces a decision the roadmap has not locked:
Decided autonomously (review me): ... with the rationale.Phase 5 deletion slices proceed without confirmation: they delete code and generated guidance only, never user data, and git history is the undo.
main; never push at all —
commits stay local on codex/store-root-parity.src/cli/index.ts, the completions registry,
project-config.ts, foundation.ts/registry.ts, and roadmap.md
bookkeeping) are shared by nearly every slice; and the queue's two largest
commits — the 1.4 mass rename and the Phase 5 mass deletion — are the
worst bases to rebase parallel tracks across.Decided autonomously entries, and what the next turn does. The goal
evaluator only sees what the transcript surfaces — state progress
plainly, never implicitly.main", the full suite is green, all work is
committed, and the 6.1 capstone passes with its release-readiness
report committed and no open P1/P2 findings. When that is true, say so
explicitly in the final status: "ROADMAP QUEUE COMPLETE" plus the closing
summary including every Decided autonomously entry for review.