Skip to content

Prototype Codex support and document lifecycle feasibility gates - #55

Closed
erickb336 wants to merge 1 commit into
mainfrom
spike/codex-feasibility
Closed

erickb336 wants to merge 1 commit into
mainfrom
spike/codex-feasibility

Conversation

@erickb336

Copy link
Copy Markdown
Owner

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:

  • 18 prototype tests pass, including 180 valid orderings of two concurrent workers' begin/result/finish events.
  • All 450 baseline tests pass with no failures or cancellations.
  • Build, static checks, and diff whitespace checks pass.
  • A bounded native probe stalls before model responses and hook captures on Codex 0.159.2, including its baseline with hooks disabled. No native lifecycle compatibility is claimed.

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.

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.
@erickb336

Copy link
Copy Markdown
Owner Author

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 spikes/codex/. I am leaving #55 open as a draft to preserve that work. It does not provide production Codex orchestration. Under the current issue-only scope, no further work on this spike is planned.

@erickb336

Copy link
Copy Markdown
Owner Author

The local Codex lifecycle work is now preserved in draft #75 on codex/lifecycle. This PR still holds the separate in-memory lifecycle/replay prototype, whole-patch path checks, tests, and feasibility/probe notes under spikes/codex/; those files are absent from #75 and #56. I am leaving #55 open as a draft reference. Further implementation follows the staged review plan in #75.

@erickb336

Copy link
Copy Markdown
Owner Author

Closed by the sage (2026-10-10). The merged provider split (#78, #80, #82, #83, #84) and the first unit of #88 (#92) carry this spike's work forward; #88 tracks what is left. The branch stays, so this PR can be reopened.

@erickb336 erickb336 closed this Oct 11, 2026
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