interplane.Get Omega
Read in your language

omnet

aien-dev/omnet

Brought by drakestapleton

branch main Branches Tags History

omnet / qualification / security3-store / README.md

93 lines · 5084 bytes Raw Blame History Source

SC1-Q durable framing charges

Base: current main. This rebuild carries om/quantity itself (imported from Omega #771), so nothing here depends on the old security/3-consumer-enforcement stack. This slice is the WORM-owned durable-state side of the SC1-Q row and touches no transport, revision or comparison function owned elsewhere.

What changed

om/store/storepool.om now charges a record against the store limits with the checked quantity operations instead of loose integer comparisons:

FunctionAdmitted effect
stbounda record length is admitted only inside the fixed 65536 frame buffer
stchargerunning byte total accumulated with qadd up to the 33554432 cap
stcountrunning record count accumulated with qnext up to the 65536 cap
stwriteone charge of length, total and count before any header, payload or footer write
stnextthe same three charges before a record is accepted while reading

The refusal codes are unchanged (stwrite 1 with the poisoned flag, stnext -1), so every existing caller and test keeps its contract. Two differences are deliberate:

Audit of the neighbouring producers, no source change

Record lengths and counts that reach stwrite were traced to their producers before deciding not to change them:

No vulnerability is claimed or retracted by this audit: the values were already bounded, and the inventory note "absence of migration is not evidence of a bug" still applies to every module this slice did not touch.

Controls

om/store/test/run.py already pins the reachable caps: U (one 65537 chunk refused), Q (exactly 65536 frames, then refuse one more) and C (exactly 32 MiB, then refuse one more byte), each asserting the committed snapshot is byte-identical afterwards. This slice adds the two charge refusals that are not reachable from the public API:

Both run on the same image that serves the rest of the suite, and both restore-verify the committed snapshot.

Mutants are deliberately not claimed for these two controls. A mutant that drops the checked step differs from the original only in a state the public API cannot reach, and the difference it produces there is a trap, which the mutant rule in issue #3 says is not detection. The reachable-cap controls U/Q/C remain the behavioural pins for the caps themselves.

Reproduction

sh om/store/test/run.sh
sh cmd/tkad/test/run.sh
sh tools/test.sh

Verdict at this head: PASS store (118 native cases), PASS tkad (224 assertions plus the disk-full, restart, self-exec and corruption arms), PASS quantity, PASS tkasig, and the crypto unit suites, from sh tools/test.sh (127 PASS lines, exit 1). The two FAIL lines are json and tka, and both stop on go: not found while building a Go oracle or running the Go TKA oracle on this host, which has no Go toolchain. This slice touches neither unit, so those two rows are environmental here and carry no verdict on this change.

The store suite compiles om/quantity, om/blake2s, om/store and the store pool together, then runs the driver natively; the daemon suite exercises the same store through the real socket protocol, including disk-full, restart and corruption cases.

Not claimed