feat(sqlite): make worker deadlines adjustable with recovery guidance (#5818)

Expose a per-call SQLite worker deadline with exact CLI/MCP recovery controls,
parent-owned execution metadata and historical unknown preservation. Keep fixed
resource limits and cleanup admission intact. Share typed cleanup composition
with one captured-output owner and preserve the timeout after cleanup resolves.

Fixes #5812. Follow-up tracking: #5808. Existing CLI test-oracle failure: #5845.

Verified 155 SQLite tests (3 skipped), static/docs/discovery checks, six real
CLI/MCP pairs and 13 actual Codex sessions including four corrected deadline
recoveries. Three pre-dispatch discovery failures remain explicit, not passes.
Review findings include real retained-cleanup and fixture ownership regressions.

Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
This commit is contained in:
gensokyo-dev
2026-10-21 16:45:46 +08:00
committed by GitHub
parent 5241597594
commit f801b2fbfd
15 changed files with 496 additions and 49 deletions
@@ -296,7 +296,16 @@ it("retains reply-read cancellation and retries the failed reply descriptor clos
code: "cleanup_incomplete",
details: {
resources: [dirname(descriptorCleanup.path)],
diagnostics: { previous_error: cancelled },
captured_output: cancelled.details.captured_output,
diagnostics: {
previous_error: {
code: cancelled.code,
details: {
execution_failure: "cancelled",
resources: cancelled.details.resources,
},
},
},
},
}
: cancelled,