Principle:20000419 Fauxnix Release Gate Enforcement
| Knowledge Sources | |
|---|---|
| Domains | Release_Gate, Testing, Validation |
| Last Updated | 2026-10-26 00:00 GMT |
Overview
A release-gate technique that encodes the correctness contract as automated test assertions: a corpus-shape check that always runs, plus an opt-in oracle suite asserting identity ≥ threshold with no unexpected mismatches outside a reviewed baseline.
Description
Release Gate Enforcement is the pattern that turns the differential corpus into a blocking gate. The gate has two tiers. The first tier (corpus-shape check) always runs and validates the corpus itself: targetCases=200, identity=0.95, at least 200 sourced, unique, non-empty cases, all knownMismatchIds present, and the required golden case ids present. The second tier (oracle suite) is describe.skipIf(skipOracle)-gated: it runs only when canRunOracle() is true (FAUXNIX_DIFF_ORACLE set and Git Bash present). It executes the full corpus, asserts identity ≥ gate, and verifies that no mismatches outside the knownMismatchIds baseline appear. The gate is the release evidence: two consecutive green scheduled runs are the documented release criterion.
Usage
Use this principle when a compatibility project needs a blocking gate that is skip-safe on machines without the reference implementation but strict on CI lanes that have it. The shape-check-always + oracle-opt-in split keeps npm test green everywhere while still catching regressions on equipped lanes.
Theoretical Basis
[always] it('corpus shape', () => {
expect(corpus.gate.targetCases).toBe(200)
expect(corpus.gate.identity).toBe(0.95)
expect(cases.length).toBeGreaterThanOrEqual(200)
expect(unique(ids) and unique(commands) and all sourced)
})
[skipIf !canRunOracle] it('identity ≥ 95%', async () => {
run = runCorpus({ corpus, bashPath })
expect(run.identity).toBeGreaterThanOrEqual(run.gate)
unexpected = mismatches not in knownMismatchIds
expect(unexpected).toEqual([])
})