You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**A framework-agnostic metric for measuring AI code generation quality.**
8
8
@@ -56,11 +56,11 @@ cd validators && go build -o shadow-score-go . && cd ..
56
56
57
57
### Option B: Compute it yourself
58
58
59
-
1.**Write sealed tests** from your spec (requirements → test cases, before code exists)
59
+
1.**Write sealed tests** from your spec (requirements → test cases, before code exists) — using a *different model family* than the one that will implement
60
60
2.**Build the code** — the implementer never sees the sealed tests
61
-
3.**Run both suites** — sealed tests and the implementer's own tests
61
+
3.**Run both suites** — in a disposable workspace built from the implementer's commit
5.**Report**: Use the [JSON schema](validators/shadow-report-schema.json) or markdown format
63
+
5.**Report**: Use the [JSON schema](validators/shadow-report-schema.json) or markdown format, including which families authored each side
64
64
65
65
That's it. Framework, language, and tooling don't matter — Shadow Score works anywhere.
66
66
@@ -71,12 +71,16 @@ Shadow Score is computed using the **Sealed-Envelope Protocol** — a 4-phase te
71
71
```
72
72
SPEC ──► SEAL GENERATION ──► IMPLEMENTATION ──► VALIDATION ──► HARDENING
73
73
(tests from spec, (code + own (run both (fix from
74
-
hidden from tests, never suites, failure msgs
75
-
implementer) sees sealed) compute gap) only — no
76
-
test code)
74
+
hidden from tests, never suites in a failure msgs
75
+
implementer, sees sealed) disposable only — no
76
+
different model workspace) test code)
77
+
family)
77
78
```
78
79
79
-
**The critical rule:** The implementer **never sees** the sealed tests. During hardening, they receive only failure messages (test name, expected, actual) — never the test source code. This forces root-cause fixes, not test-targeting hacks.
80
+
**The two critical rules:**
81
+
82
+
1.**Isolation** — the implementer **never sees** the sealed tests. During hardening it receives only failure messages (test name, expected, actual), never test source. This forces root-cause fixes, not test-targeting hacks.
83
+
2.**Independence** — the sealed tests are written by a **different model family** than the implementation. Isolation stops the builder seeing the tests; it does not stop it thinking like their author. Same-family agents share blind spots, so the scenario nobody tested is the scenario nobody handled.
80
84
81
85
Full protocol details: [**SPEC.md §4**](SPEC.md#4-sealed-envelope-protocol)
82
86
@@ -87,10 +91,13 @@ Full protocol details: [**SPEC.md §4**](SPEC.md#4-sealed-envelope-protocol)
|**L2** — Sealed Envelope | L1 + test isolation + tamper hash | AI agent pipelines |
89
93
|**L3** — Full Protocol | L2 + hardening loop + velocity tracking | Production autonomous builds |
94
+
|**L4** — Adversarial Independence | L3 + cross-family authorship + disposable verify workspace + provenance in report | Published or gate-blocking scores |
95
+
96
+
**Why L4 exists:** L1–L3 harden *information* isolation — they stop the builder from **seeing** the tests. They are all silently defeated by one configuration choice: pointing the seal author and the implementer at the same model. Same-family agents share blind spots, so the untested defect is also the unhandled defect. The sealed test is never written, the score reads 0%, and the bug ships green. That bias is directional — it always overclaims quality. See [**SPEC.md §3.6**](SPEC.md#36-authorship-independence).
90
97
91
98
## Reference Implementations
92
99
93
-
The reference Level 3 implementation is **[Dark Factory](https://github.com/DUBSOpenHub/dark-factory)** — an autonomous agentic build system for the GitHub Copilot CLI with sealed-envelope testing.
100
+
The reference Level 4 implementation is **[Dark Factory](https://github.com/DUBSOpenHub/dark-factory)** — an autonomous agentic build system for the GitHub Copilot CLI with sealed-envelope testing, cross-family model independence enforced pre-dispatch, and seal plurality.
94
101
95
102
The reference Level 2 implementation is **[Terminal Stampede](https://github.com/DUBSOpenHub/terminal-stampede)** — a parallel agent runtime that shadow-scores each agent's work during merge using sealed tests with tamper-hash verification.
96
103
@@ -110,10 +117,15 @@ Shadow Reports can be produced in JSON (machine-readable) or Markdown (human-rea
@@ -128,13 +140,15 @@ Shadow Reports can be produced in JSON (machine-readable) or Markdown (human-rea
128
140
}
129
141
```
130
142
143
+
A Shadow Score without provenance cannot be interpreted: 0% under `strong` independence and 0% under `weak` independence are different claims about the world, and only one of them is evidence.
144
+
131
145
Full schema: [**SPEC.md §5**](SPEC.md#5-reporting-format)
|[Dark Factory](https://github.com/DUBSOpenHub/dark-factory)| Level 4| Reference implementation — autonomous agentic build system with cross-family adversarial independence|
138
152
|[Terminal Stampede](https://github.com/DUBSOpenHub/terminal-stampede)| Level 2 | Parallel agent runtime — shadow-scores each agent's work during merge via sealed tests |
139
153
140
154
*Using Shadow Score? [Open a PR](https://github.com/DUBSOpenHub/shadow-score-spec/pulls) to add your project.*
0 commit comments