Repository navigation
fix(runtime): adopt kernel, idle wait and Codex recovery fixes - #70
Conversation
Fixes #69. Selectively adopts Prime upstream PrimeIntellect-ai#2213 (90ca4a4), PrimeIntellect-ai#2151 (8eaa00c), and PrimeIntellect-ai#2314 (7d19139).
|
Adversarial review completed at Local verification: 183 focused tests passed across kernel, queue, Codex, compaction continuation, correlated prompt lifecycle and request-abort regressions. Maintainer approval is recorded from the active Pylon conversation: “keep going whatever needs to happen to get these reviewed and merged is the goal.” Merge remains conditional on all required checks passing for this head. Publication and installed-runtime changes remain separate follow-up work. |
Kernel pipe failures can crash the session worker, blocked queued inputs can spin in microtasks and starve daemon I/O, and stale Codex response IDs can fail an otherwise recoverable follow-up.
Selectively adopt upstream PrimeIntellect-ai#2213, PrimeIntellect-ai#2151 and PrimeIntellect-ai#2314 on Pylon's current Prime product branch. Kernel stream errors become diagnostics while existing write/exit handlers retain cleanup ownership. Idle waits park on the scheduler's busy predicate. Codex retries a stale continuation once with full context only before output, and binds cached continuation state to the producing socket.
Fixes #69. The adoption decisions and full source SHAs are in
.pylon/features.yamland.pylon/upstream-review.md; the complete upstream checkpoint stays at1eee2938b. No protocol/schema/capability, Pylon ownership, scoped provider identity, publication, or managed installation changes.Validation: 125 coding-agent tests passed, including the real isolated kernel pipe test, graceful shutdown and queue coverage; 25 Codex stream tests passed, including stale-chain retry, retry exhaustion, abort and no replay after streamed output.
npm run checkpasses formatting/lint, TypeScript, installer and browser bundle checks. Review also checked input-wait wakeups and retained fork post-compaction settlement, existing kernel cleanup guards and pre-output-only retry semantics. Hosted CI is the final merge gate.The maintainer authorized review and merge after green checks in the active Pylon conversation. A new immutable managed Prime build remains a separate delivery follow-up; this PR does not update running sessions or publish a release.
Model: GPT-6. Harness: Codex.