Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/evidence/SECURITY-673/lock-release-errors/REVIEW.md # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / evidence / SECURITY-673 / lock-release-errors / REVIEW.md` 54 lines ยท 3253 bytes Raw Blame History Rendered 1 # Lock release error reporting: source-only candidate 2 3 Source base: ``a35697e94b5eeb72efadfee6edab7f14344aea43`` (`fix/security673-qualified`). 4 Stack parent: ``666728518ec0ce7580328dc926b5db8409ef664a`` (#686). 5 Review date: 2026-10-24. Scope: #649/#670 authority store, #673 tracker. 6 Remote base was rechecked before editing; open PRs #685/#686 overlap the generated 7 `dispatch-gate.om` and are retained in this stacked correction. 8 9 ## Defect and minimal correction 10 11 `lock.om::lrm` returned zero on both negative and successful `unlink` results. Consequently 12 `lrel` always claimed success and the existing dispatcher pre-effect error check could 13 never observe a failed release. Return 41 for a negative result; retain zero on success. 14 This is source-confirmed, not a native runtime reproduction or exploit demonstration. 15 16 Caller review: 17 - `lrel` directly forwards the result. 18 - `ltry` already maps a nonzero stale-lock removal result to 41; this branch is now reachable. 19 - `dispatch` checks the release before starting its effect and returns 78 on failure. 20 - Other dispatcher error cleanup and final-release sites ignore `lrel`; unchanged here. 21 - Existing lock-test initial best-effort cleanup ignores a missing-path error intentionally. 22 23 This does not repair automatic stale-reclaim races, PID reuse, lock-file ownership, or 24 ignored cleanup/final-release failures. No production consumer cutover, compiler, ABI, 25 locking protocol redesign, or historical receipt change is included. 26 27 ## Regression and expected negative control 28 29 The existing lock test retains all five checks, adds an explicit successful final release 30 check, creates a directory at the now-empty lock path, checks release returns 41, removes 31 that directory with `rmdir`, then checks missing-path release also returns 41. Directory 32 unlink is refused independently of permission/root status. Fixture creation/removal errors 33 exit 101/102. Use a disposable working directory with no active authority store, as with 34 the existing file/fork fixture; the suite is not safe against a live store. 35 36 Expected fixed result: `lock checks=8 fails=0`, exit 0. Expected old-source control: 37 concatenate the base's `lock.om` with the new `lock-test.om`; it remains compilable without 38 new implementation symbols, but the two failed-unlink checks increment fails and main 39 returns 1 without a pass message. These are expectations, NOT observed runtime results. 40 41 ## Verification status 42 43 - PASS: `git diff --check`. 44 - Qualification coordinator already compiles/runs the lock gate and checks child exit; 45 it has no hardcoded lock stdout count to change. 46 - PASS: lock gate equals lock + lock-test; dispatch gate equals action + store + lock + 47 dispatch + dispatch-test. No other authoritative source embedding of lrm exists. 48 - Source review: eight check calls; ordinary release0, failed release41; rmdir primitive 49 already used by seeded host directory tests; qualification coordinator observes exit. 50 - NOT_RUN: native compilation, fixed/old-source execution, existing dispatch and full 51 security gates, independent AArch64 replay. Editing host is x86_64; no bundled seed 52 executable ran and no toolchain was installed. 53 54 Source checks are not functional qualification. Keep draft and preserve all required gates.