fix(runtime): make local operation state transactional and durable - #1136
fix(runtime): make local operation state transactional and durable#1136doublewhy wants to merge 6 commits into
Conversation
|
Fresh Sonar cleanup pushed in
The plain-language summary and |
|
Fresh Linux CI exposed and this update fixes one final WAL lifecycle race. SQLite may unlink an ephemeral Verification: 115 crash-consistency tests pass; the affected path module is 100% line/branch covered; the original four-process write test passed 10 consecutive runs; Ruff, repository policy, and diff hygiene pass. Fresh CI has restarted on this exact SHA. |
|
Fresh Sonar analyzed the WAL-race head and reported one maintainability issue: the path-admission helper crossed the configured complexity threshold by one. Commit 5981ebe extracts link-count admission into a focused helper without changing behavior or suppressing the rule. The full 115-test crash-consistency suite still passes, the path module remains 100% line/branch covered, and Ruff plus repository policy pass. Fresh CI/Sonar has restarted on this exact head. |
Closes #1092 and implements the durable local API-404 state boundary, including crash recovery, exclusive process ownership, legacy-store compatibility, and public snapshot alignment.
5981ebe to
a8e9641
Compare
a8e9641 to
1f7a014
Compare
|
Temporarily returned to draft under the breaking-change freeze. This PR changes persistence, worker/lifecycle behavior, and durable snapshot handling. Preserve the verified branch, but do not merge until the maintainer explicitly resumes runtime-semantic changes. |
Plain-language summary
Closes #1092
Part of #8.
What changes
runtime-snapshot-v1so the public contract matches the exhaustive durable snapshot codec.Current-base integration
This revision is rebased on
devat96b20ae8422fae9936bae928bbd8a1c14d2001da; its head is1f7a01423dbcc6a8827ad62dbe1b31f8993597f6. It retains the merged timeout (#1132), OCI registry (#1130), authored OS realization (#1141), and solver-operation (#1142) behavior. The durability test provisioner now declares a coherent OS-capable envelope and binds guest-observed OS evidence through the production binding helper required by #1141; runtime admission was not weakened.Scope boundary
This is a single-host, single-process local reference store. It does not claim distributed consensus, multi-worker cache coherence, durable job scheduling, backend-effect exactly-once guarantees, or request offload. HTTP admission and scheduler work remain outside this PR; already-merged timeout, OCI, realization, and solver behavior is inherited rather than implemented here.
Verification
test_mcp_server.py: 6,910 passed, 1 skipped;96b20ae: 1,088/1,088 executable lines and 278/278 branch exits;96b20ae: passed; requirement governance used its documented Ground Control unavailable skip because DNS was unavailable;31667112381.