feat: expand skills and harden runtime recovery
Summary
- Add the complete project marketing Skill toolkit with package references and evals.
- Harden runtime reliability across Skill tool guidance/errors, repeated-failure detection, child final-output validation, context compression, and Session/Execution recovery.
- Bound complete Current Context at existing writes/admission with only four capacity constraints (32 Todos / 24 KiB Todo JSON / 64 direct children / non-blank child title up to 80 Unicode code points).
- Fix Work/HITL controls and Running Todo navigation/presentation, with synchronized design contracts, prototypes, regression tests, and Goal/progress records.
Why
Recent real-work QA exposed failures that were individually small but shared one consequence: the model or user could be left with ambiguous recovery guidance, hidden/blocked work controls, or incorrect state after delegation and compression. This change closes those gaps without introducing compatibility fallbacks or a new abstraction layer. It also lands the already reviewed marketing Skill collection as the branch's first cohesive commit.
Validation
-
bun run typecheck --force(5/5 workspaces passed) -
bun run test --force(8/8 tasks, 0 cached, 4,734 tests / 0 failures) -
bun run build -
git diff --check origin/main...HEAD - Targeted regression QA for the exact Skill read/list misuse, repeated tool failures, child final-output gate, compression protection, Work/HITL controls, and Running Todo behavior
- Real-browser QA at desktop and 390 px viewport for affected Todos/Session surfaces
Documentation and security
- I updated user-facing documentation when behavior, setup, or configuration changed.
- I added or updated tests for behavior changes.
- I did not commit credentials, tokens, private configuration, or generated secrets.
- I described any security or trust-boundary impact above.
Trust-boundary impact: invalid Skill resource/cursor calls now return specific recoverable errors and examples; repeated deterministic failures terminate without treating permission, cancellation, timeout, network, or unknown failures as deterministic model misuse. Compression keeps durable child state in structured runtime state instead of protecting transcript links.
Review remediation and scope
- Final follow-up commit:
0fdf3950e8550216293aceb8161c91471a48e5ec(prototype-only current-row/Stage navigation correction; production source remains the fully testedf3f11f2a). The complete Web 883-test lane and actual browser navigation checks passed again. - Installed third-party
.codex/skills/**remains exactly as committed in2f96ee99; no content-review fixes were applied to those packages. Repository-owned Skill tooling remains in scope. - Confirmed defects were fixed; third-party content feedback and a Running suggestion that contradicted the design contract were declined with explicit evidence and ownership rationale.
- No extra per-field capacity limits, prompt truncation, second admission state, migration framework, or compatibility path. Historical or externally corrupted over-capacity Session snapshots fail closed; existing local snapshots were checked below the limits.
- Exact incident replay, real-browser QA, independent review results, and AC-01 through AC-11 evidence are recorded in
docs/goals/runtime-state-compression-skill-contract-progress.md. - Reviewer availability: Codex was requested on the final head. Cubic reviewed the previous head and its six findings were individually resolved with fixes or evidence-backed rejection; the final manual request reported a monthly free-review limit, so no new Cubic approval is claimed. CodeRabbit skipped the large PR; its successful status is not treated as a substantive review.
Related issue
None.