Repository navigation
Conversation
Add isolated lifecycle and patch prototypes, a bounded deterministic native probe, and a source-backed feasibility report. All 18 prototype tests and 450 baseline tests pass. Native startup still stalls with hooks disabled; full runtime support is not established.
|
PR #56 delivered the provider packages, but it did not include this spike's in-memory lifecycle and event-ordering prototype, whole-patch path checks, their tests, or the native-probe and feasibility notes under |
|
The local Codex lifecycle work is now preserved in draft #75 on |
Sage's current Claude-shaped hook input does not establish Codex lifecycle correctness. This isolated spike prototypes exact spawn correlation and whole-patch protection while reusing the existing report and file policies. Production hooks, manifests, dependencies, and state formats are unchanged.
Validation:
The working model covers reversed results, early completion, duplicate callbacks, report repair, later child work, confirmed closure, and conservative unknown occupancy. Patch checks include every affected path, move destinations, and symlinks into the protected logbook.
Full mode remains gated on native event/turn correlation, failed-spawn recovery, prompt provenance, durable atomic state, installation, and compaction. Retaining an unknown reservation preserves the cap but does not provide automatic recovery.
Start review at
spikes/codex/prototype-results.md. The lifecycle is an in-memory prototype, and the patch decoder intentionally refuses unsupported syntax. Keep this PR in draft until the remaining gates and intended production scope are reviewed.