ASSAY-011 / COSMIC v2
Code Gate vs. Live Reviewers
Forseti Research evaluated K3, two open-source static review configurations, and two local language models on 40 synthetic JavaScript PRs.
K3 blocked 8/20 broken PRs, passed 12/20 broken PRs, and completed 8/20 pairs. Its catch counts by family were Exact financial arithmetic 4/4, Destination and path containment 0/4, Fail-closed refusal 0/4, Constant-time authentication 0/4, Authorization dominance 4/4.
K3 issued 32 native READY receipts. Native signed refusals are unavailable in this kernel. The signed assay scorecard covers every recorded outcome.
Semgrep Community Edition 1.187.0 ran live with the local rules. The uv probes are in the setup evidence.
Overall results
BCR is the bug catch rate. FER is the false-READY escape rate. FPR is the benign false-positive rate. PMD requires both members of a pair to be correct. NO_RESULT stays in the fixed denominators. Median latency uses valid verdicts.
| Arm | BCR | FER | FPR | PMD | Median ms | No result (trap / clean) | Native receipts | Tamper catch |
|---|---|---|---|---|---|---|---|---|
| OMNIS CODE-GATE (K3) | 8/20 (40%) | 12/20 (60%) | 0/20 (0%) | 8/20 (40%) | 181.573 | 0 / 0 | 32 | 1/1 |
| ESLint 10.15.0 | 12/20 (60%) | 8/20 (40%) | 0/20 (0%) | 12/20 (60%) | 85.819 | 0 / 0 | — | N/A |
| Semgrep Community Edition | 14/20 (70%) | 6/20 (30%) | 0/20 (0%) | 14/20 (70%) | 1260.368 | 0 / 0 | — | N/A |
| Gemma 4 26B | 19/20 (95%) | 1/20 (5%) | 1/20 (5%) | 18/20 (90%) | 950.012 | 0 / 0 | — | N/A |
| Qwen3.8-27B | 20/20 (100%) | 0/20 (0%) | 0/20 (0%) | 20/20 (100%) | 5352.000 | 0 / 0 | — | N/A |
Results by defect family
Four minimal pairs per defect family.
| Defect family | Arm | BCR | FER | FPR | PMD | No result (trap / clean) |
|---|---|---|---|---|---|---|
| Exact financial arithmetic | OMNIS CODE-GATE (K3) | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
| Exact financial arithmetic | ESLint 10.15.0 | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
| Exact financial arithmetic | Semgrep Community Edition | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
| Exact financial arithmetic | Gemma 4 26B | 4/4 (100%) | 0/4 (0%) | 1/4 (25%) | 3/4 (75%) | 0 / 0 |
| Exact financial arithmetic | Qwen3.8-27B | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
| Destination and path containment | OMNIS CODE-GATE (K3) | 0/4 (0%) | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 0 / 0 |
| Destination and path containment | ESLint 10.15.0 | 2/4 (50%) | 2/4 (50%) | 0/4 (0%) | 2/4 (50%) | 0 / 0 |
| Destination and path containment | Semgrep Community Edition | 2/4 (50%) | 2/4 (50%) | 0/4 (0%) | 2/4 (50%) | 0 / 0 |
| Destination and path containment | Gemma 4 26B | 3/4 (75%) | 1/4 (25%) | 0/4 (0%) | 3/4 (75%) | 0 / 0 |
| Destination and path containment | Qwen3.8-27B | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
| Fail-closed refusal | OMNIS CODE-GATE (K3) | 0/4 (0%) | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 0 / 0 |
| Fail-closed refusal | ESLint 10.15.0 | 2/4 (50%) | 2/4 (50%) | 0/4 (0%) | 2/4 (50%) | 0 / 0 |
| Fail-closed refusal | Semgrep Community Edition | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
| Fail-closed refusal | Gemma 4 26B | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
| Fail-closed refusal | Qwen3.8-27B | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
| Constant-time authentication | OMNIS CODE-GATE (K3) | 0/4 (0%) | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 0 / 0 |
| Constant-time authentication | ESLint 10.15.0 | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
| Constant-time authentication | Semgrep Community Edition | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
| Constant-time authentication | Gemma 4 26B | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
| Constant-time authentication | Qwen3.8-27B | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
| Authorization dominance | OMNIS CODE-GATE (K3) | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
| Authorization dominance | ESLint 10.15.0 | 0/4 (0%) | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 0 / 0 |
| Authorization dominance | Semgrep Community Edition | 0/4 (0%) | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 0 / 0 |
| Authorization dominance | Gemma 4 26B | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
| Authorization dominance | Qwen3.8-27B | 4/4 (100%) | 0/4 (0%) | 0/4 (0%) | 4/4 (100%) | 0 / 0 |
Study design
Forty commits drawn from twenty controlled comparisons.
- The corpus covers five defect families with four minimal pairs each. Returned plans model security sinks without making network, filesystem or privileged calls. The oracle and local SAST rules share an author.
- K3 evaluates a committed range using trusted guard and exact-money policy inputs. Its smoke test only loads the module and confirms the review export. Mutation runs with a 0/1 minimum kill ratio. The benchmark gives both LLMs the same full source plus a behavioral contract and checklist. ESLint and Semgrep use local rules and no behavioral contract.
- The dataset measures these configurations on the frozen fixtures. It gives no field error-rate estimate. Static baselines may vary with available rules. The first CLI or model request can incur startup or loading time.
- Offline replay uses the frozen raw outputs. New live executions can have different timing or model responses. The preregistration and public keys are committed to local Git. This establishes ancestry without an independent timestamp.
- MIT. ESLint 10.15.0
- LGPL-2.1. Semgrep Community Edition
- Apache-2.0. Gemma 4 26B
- Apache-2.0 (quantizer model card). Qwen3.8-27B
Replay the evidence
Offline replay checks frozen hashes, preregistration ancestry, Ed25519 signatures, one-byte tamper rejection, and byte-for-byte rendering.
shasum -a 256 -c FREEZE.sha256 && npm run verify
| Artifact | Digest |
|---|---|
| Git preregistration | 97b74f59cb3c0076dd06b2a56ee048183a204d68 |
| Pre-run manifest SHA-256 | 2f6f6e7bf8bacd015e80087cf9e4896504fda565d756077e6e060748b4242c13 |