interplane.Get Omega
Read in your language

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

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
3Source base: `a35697e94b5eeb72efadfee6edab7f14344aea43` (`fix/security673-qualified`).
4Stack parent: `666728518ec0ce7580328dc926b5db8409ef664a` (#686).
5Review date: 2026-10-24. Scope: #649/#670 authority store, #673 tracker.
6Remote 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
13never observe a failed release. Return 41 for a negative result; retain zero on success.
14This is source-confirmed, not a native runtime reproduction or exploit demonstration.
15
16Caller 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
23This does not repair automatic stale-reclaim races, PID reuse, lock-file ownership, or
24ignored cleanup/final-release failures. No production consumer cutover, compiler, ABI,
25locking protocol redesign, or historical receipt change is included.
26
27## Regression and expected negative control
28
29The existing lock test retains all five checks, adds an explicit successful final release
30check, creates a directory at the now-empty lock path, checks release returns 41, removes
31that directory with `rmdir`, then checks missing-path release also returns 41. Directory
32unlink is refused independently of permission/root status. Fixture creation/removal errors
33exit 101/102. Use a disposable working directory with no active authority store, as with
34the existing file/fork fixture; the suite is not safe against a live store.
35
36Expected fixed result: `lock checks=8 fails=0`, exit 0. Expected old-source control:
37concatenate the base's `lock.om` with the new `lock-test.om`; it remains compilable without
38new implementation symbols, but the two failed-unlink checks increment fails and main
39returns 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
54Source checks are not functional qualification. Keep draft and preserve all required gates.