Status: proposed for later review, not approved for implementation. Captured: 2026-07-03 Asia/Shanghai
Optimize Stillcurrent first by adding a small tracked resume index that becomes
the default startup state for $resume-from-handoff and $studio-next. Keep
src/README.md as full slice history, but stop reading it in full during
ordinary resume and next-action routing.
- Add tracked
production/resume-index.md, target <=10 KB, maintained by$handoff. - Index fields: current slice version, real/stubbed one-liner, last reported or verified boot/playtest, owed verification, best next action, top 2-3 lanes, blockers/gates, evidence pointers, and source freshness.
- Change
$resume-from-handoffdefault to "light resume": readresume-index.md,session-handoff.md, sprint/stage/active state, and only a bounded top/current section ofsrc/README.mdfor freshness checks. - Add explicit deep mode for
$resume-from-handoff deep, historical questions, missing/stale index, or user-requested full catch-up. - Change
$studio-nextto readproduction/resume-index.mdinstead of fullsrc/README.md. - Update
$handoffto refreshproduction/resume-index.mdafter live handoff updates, verify its byte size, and commit it with the handoff when commits are authorized. - Update AGENTS/context docs to remove 1M/750k assumptions and use the observed practical budget: compact earlier, hard-handoff earlier, and keep default orchestration reads bounded.
production/session-handoff.mdremains the canonical live narrative.src/README.mdremains canonical full slice history, but is no longer default resume context.production/session-archive.mdremains historical-only and is not read by default.- If the index is stale or mismatches the bounded current README header, the skill reports that plainly and either uses bounded state or asks for explicit deep resume.
- If dirty local work has a newer slice header than the index, resume labels it as in-flight local state rather than silently treating the index as complete.
- Confirm Stillcurrent branch is
codex-game-studios-deployment. - Verify
production/resume-index.mdandproduction/session-handoff.mdstay under size targets withwc -c. - Run Stillcurrent audits:
./.codex/audit.sh all --root "$PWD"and./.codex/audit.sh skills --root "$PWD". - Search skill/docs text to confirm no default full-read instruction remains for
src/README.md. - Prompt smoke:
$resume-from-handoffshould report state from the index and bounded freshness checks, then offer structured lanes. - Prompt smoke: "what should I do next?" should route through
$studio-nextand avoid full history loading. - Stale-index scenario: simulate missing/stale index and verify the skill labels it and falls back only with explicit deep intent.
- First rollout is Stillcurrent only.
- The index is tracked under
production/, not ignoredproduction/session-state/. - Splitting
src/README.mdis deferred unless the lightweight resume path is still too expensive. - No
.claude/orCLAUDE.mddependency is introduced.