feat(memory): add durable open work and bounded preflight - #46
DivyamTalwar wants to merge 6 commits into
Conversation
CI remediation and deadline-contract evidenceLatest J-06 head: Two shared-runner fixture problems were corrected without changing production code: quota setup now seeds its 256 rows in one transaction rather than 256 FULL-sync commits, and positive RESERVED-lock read compatibility is separated from a wall-clock delivery benchmark. The positive primary-read control still requires delivered content while another process holds its lock, using a bounded functional budget. The three incompatible-lock controls retain the production 150 ms deadline, original blocked-call ceiling and deferred outcomes, with explicit empty-payload assertions. This second change is an explicit test-oracle correction, not a claim that every assertion remained textually unchanged. Three new actual-SQLite tests advance only the monotonic deadline clock to before, exactly at, and after the default cutoff: before must deliver and commit one receipt; at/after must defer with no payload, no lesson IDs and no receipt. The original sleep-driven exhaustion test remains. Actual verification
The correction is being carried through the dependent PR branches with their own exact-source tests and qualification records. No PR or production release is automatically merged. |
Scope and dependency
J-06, refs #36. Stacked on #45. Adapt Koragraph-inspired open-loop and bounded preflight concepts within JITMIND, not another service. Reference:
Koragraph/KoragraphMCP@c9ce746fbd6db67e794f5f8714c8d9a8f4669e27,src/practice/loop-anchors.jsandsrc/practice/preflight.js.Changes
Review-driven fixes
Corrected temporal eligibility, pre-LIMIT filtering/priority, delayed binding invalidation and policy-retirement behavior. Known unavailable authority yields an explicit unavailable/deferred result rather than guessed permission or stale lesson content. All original obligation and no-prompt-flooding controls are retained.
Verification
Candidate
8591dd75ea1289f66cd98ef42b39ae5227867157; parent4e9535ec8567726a15f4b020a0dbac13c03ee5d4.Supervisor run on the assembled branch with current storage, scopes, parser and anchors:
Includes 94 J-06 tests, real parser/binding/fact integration and independent-process contention controls. Tests were not skipped and copied development dependencies are excluded from the diff. No provider calls or new Python dependency.
Host and release boundaries
The host must configure trusted authoring/resolution and the bounded binding-authority reader. An author losing future authoring permission does not silently revoke every previously owner-approved policy; owner retirement is explicit and checked on replay. This policy distinction is documented.
Current visibility suppression is not physical erasure of backups. Deadlines are best-effort around host callbacks/filesystem calls, not a hard real-time guarantee. Unobserved filesystem changes are not globally atomic with multiple databases. Legacy code-bound lessons require explicit retirement/reprojection to gain new binding metadata.
See
docs/open-work-preflight.mdfor public APIs, composition, schema/retention and rollback. Merge prerequisites first, then retarget/rerun CI. No automatic merge or production-readiness claim.