Critical minerals, lithium and battery materials · Phase 55
Record
Phase 55 gate audit
- Repository path
- data/internal/studies/phase55-gate-audit.json
- Size · SHA-256
- 9.7 KB · a787f69efac5e8f0b2c1b19e7ee6d4858e5db54a61ba067cc2264dadd79e7c2d
- Identifier
- study:phase55-gate-audit
- Phase
- 55
- Schema version
- 1.0.0
- Executed on
- 2026-09-17
- Protocol
- study:phase55-gate-audit-protocol-v1
- Protocol hash
- 603813ad27d6dc36
- Outcomes hash
- 82a8ca0ff4f3d3cf
{
"schemaVersion": "1.0.0",
"id": "study:phase55-gate-audit",
"phase": 55,
"executedOn": "2026-09-17",
"protocolId": "study:phase55-gate-audit-protocol-v1",
"protocolHash": "603813ad27d6dc36",
"note": "Every validator wired into validate, every regex it applies to record text, and every frozen hash.",
"validatorsWired": [
"scripts/validate-corpus.ts",
"scripts/check-assets.ts",
"scripts/check-raw-artefacts.ts",
"scripts/check-publication-artefacts.ts",
"scripts/check-source-intake.ts",
"scripts/check-material-chain.ts",
"scripts/check-material-chains.ts",
"scripts/check-specification-comparisons.ts",
"scripts/check-derived-measurements.ts",
"scripts/check-material-quality.ts",
"scripts/check-characterization-needs.ts",
"scripts/check-source-recovery.ts",
"scripts/check-characterization-reconciliation.ts",
"scripts/check-material-states.ts",
"scripts/check-element-fates.ts",
"scripts/check-specification-failures.ts",
"scripts/check-process-capability.ts",
"scripts/check-facility-dossiers.ts",
"scripts/check-feed-profiles.ts",
"scripts/check-product-profiles.ts",
"scripts/check-context-evidence.ts",
"scripts/check-material-flows.ts",
"scripts/check-measurement-audits.ts",
"scripts/check-facility-coverage.ts",
"scripts/check-comparability-census.ts",
"scripts/check-outcome-integrity.ts",
"scripts/check-research-workspace.ts",
"scripts/check-confirmatory-results.ts"
],
"validatorCount": 28,
"regexBearingGates": [
"scripts/check-material-chain.ts",
"scripts/check-phase45r-revalidation.ts",
"scripts/check-raw-artefacts.ts",
"scripts/check-research-workspace.ts",
"scripts/check-source-intake.ts",
"scripts/check-specification-failures.ts"
],
"rules": [
{
"gate": "scripts/check-material-chain.ts",
"rule": "/high[- ]purity|battery[- ]grade|ultra[- ]pure|semiconductor[- ]grade/i.test(e.name)",
"appliedTo": "NAME_CONVENTION",
"verdict": "DEFENSIBLE",
"action": "LEFT_STANDING",
"why": "The word IS the thing regulated: a material named «high purity» must have a specification, because the phrase is a grade claim and not an adjective. Checking a word about a word is the one case where a word check is the right instrument."
},
{
"gate": "scripts/check-material-chain.ts",
"rule": "!/not\\b/i.test(b.notAnOpportunity)",
"appliedTo": "DENIAL_BEARING_FIELD",
"verdict": "WORD_NOT_MEANING",
"action": "REPLACED",
"why": "Demanded the token «not» to certify that a refusal refuses. A record refusing as «never» or «no case for» would have failed while refusing perfectly. The field's NAME is the denial and its schema already requires forty characters.",
"alsoNoteworthy": "All five records happen to contain the token, so the rule had never fired: it was also a RULE_THAT_CANNOT_FIRE in practice.",
"replacement": "The commercial-language check now runs over five asserting fields instead of three — observation, consequence, mechanism, name, uncertainty — and notAnOpportunity stays exempt by construction, because a refusal must be allowed to name what it refuses."
},
{
"gate": "scripts/check-source-intake.ts",
"rule": "/file ?name|called|named [`'\\\"]?[\\w-]+\\.(pdf|zip|tif)/i.test(d.howIdentityWasEstablished)",
"appliedTo": "DENIAL_BEARING_FIELD",
"verdict": "WORD_NOT_MEANING",
"action": "REPLACED",
"why": "A record stating that identity was NOT established from the filename, and naming the printed report number instead, would have tripped a rule written to catch the opposite. A prose field is exactly where such a denial gets written.",
"replacement": "Structural: identity rests on the filename precisely when NOTHING was read off the document — titleAsPrinted and reportNumberAsPrinted both null. It is also WIDER than what it replaced: the old structural rule beside it fired only when the delivery claimed to match the request, so a non-matching delivery could rest on a filename unchallenged."
},
{
"gate": "scripts/check-specification-failures.ts",
"rule": "!/\\bestablishes no cause\\b/i.test(r.limitations)",
"appliedTo": "DENIAL_BEARING_FIELD",
"verdict": "REQUIRED_INCANTATION",
"action": "RECORDED_NOT_CHANGED",
"why": "An exact phrase is demanded in a prose field. It fails CLOSED — a record must contain the words — so a correct record written differently is rejected rather than a wrong one accepted. That is brittle, not unsound, and the difference is worth keeping visible rather than smoothing away.",
"ifChanged": "A structural form would need the record to carry a boolean or an enum saying no cause is established. That is a schema change to a Phase 44 record type and is out of this phase's scope."
},
{
"gate": "scripts/check-phase45r-revalidation.ts",
"rule": "/^NONE\\b/, /^PROCESS_CAPABILITY_RETROSPECTIVE/, /INSUFFICIENT_SUPPORT|.../",
"appliedTo": "IDENTIFIER_OR_ENUM",
"verdict": "SAFE",
"action": "LEFT_STANDING",
"why": "Anchored prefixes and enum-like verdict strings. This gate is where the lesson was learned: its own comment records that an earlier version fired on the protocol's sentence declaring no independence, and independence is now checked structurally."
},
{
"gate": "scripts/check-raw-artefacts.ts",
"rule": "admitted.note.test(dataset.notes ?? '')",
"appliedTo": "DENIAL_BEARING_FIELD",
"verdict": "SAFE_BY_DIRECTION",
"action": "LEFT_STANDING",
"why": "A prose check guarding a NAMED EXEMPTION and verifying its own preconditions. If the note is reworded the exemption stops applying and the artefact must be present — the failure direction is toward strictness, which is the safe one."
},
{
"gate": "scripts/check-research-workspace.ts",
"rule": "six regexes over server and build source",
"appliedTo": "CODE_TEXT",
"verdict": "DIFFERENT_RISK",
"action": "LEFT_STANDING",
"why": "These read source code rather than records — a loopback constant, an absent 0.0.0.0, a build filter. A code check by regex can be defeated by refactoring, which is a real weakness and a different one from the shape this phase audits. Recorded so it is not mistaken for having been cleared."
}
],
"ruleCensus": {
"total": 7,
"byVerdict": {
"DEFENSIBLE": 1,
"DIFFERENT_RISK": 1,
"REQUIRED_INCANTATION": 1,
"SAFE": 1,
"SAFE_BY_DIRECTION": 1,
"WORD_NOT_MEANING": 2
},
"byAction": {
"LEFT_STANDING": 4,
"RECORDED_NOT_CHANGED": 1,
"REPLACED": 2
},
"testsRewritten": 2
},
"frozenHashIntegrity": {
"selfOwnedHashes": 26,
"verified": 25,
"conventionNotRecovered": 1,
"canonicalisations": {
"compactKeyDropped": 5,
"compactKeyNull": 9,
"prettyKeyDropped": 5,
"sortedKeyDropped": 6
},
"note": "Every frozen protocol and outcome record from Phase 37 onward is proven UNCHANGED since it was frozen. The convention drifted four ways because different phases computed it in different languages with different defaults. The drift is recorded, NOT repaired by rehashing: rehashing a frozen record to a new convention destroys the evidence the hash exists to provide.",
"theUnrecoveredOne": {
"id": "phase33-candidate-outcomes",
"hash": "2cc120aa29fccea4",
"statement": "Matches none of the four canonicalisations this programme is known to have used, nor three others tried. An unrecovered convention and an altered file are INDISTINGUISHABLE from here, and only one of them may be asserted. Neither is.",
"handling": "A named exception keyed to the exact id, so it cannot widen."
},
"aMistakeMadeWhileBuildingThis": "The first version of the verifier sorted object keys at the top level only, while the writer had sorted them recursively. It reported six INTACT records as unverifiable. An integrity gate that cries wolf is worse than no gate, and the fix was to reproduce the writer's convention exactly rather than to loosen the check."
},
"outcomesHash": "82a8ca0ff4f3d3cf",
"testsThatPinnedTheDefects": {
"finding": "BOTH defective rules had a test asserting their behaviour. Replacing the rules made those tests fail, which is how the fifth recurring shape — a test that encodes a defect as correct behaviour — surfaced in this phase without being looked for.",
"tests": [
{
"file": "tests/phase26-source-intake.test.ts",
"name": "refuses identity established from what the file is called",
"pinned": "That prose mentioning a filename must be refused, even where a printed title and report number had been read off the document.",
"rewrittenTo": "Two cases exercising the structural rule, including the one the old rule could NOT reach: a non-matching delivery with nothing printed read from it, which the old structural rule let through because it fired only when the delivery claimed to match."
},
{
"file": "tests/phase27-material-chain.test.ts",
"name": "refuses a refusal that does not refuse",
"pinned": "That a refusal written without the token «not» must be refused. The prose it used as the failing case is in fact a perfectly good refusal.",
"rewrittenTo": "One case accepting a refusal written with «never», and one refusing commercial language in the two fields the replacement newly covers."
}
],
"whyItMatters": "A repair is not complete while a test still asserts the defect. Had the gates been changed without running the suite, the rules would have been fixed and the suite would have recorded them as broken — or, worse, the change would have been reverted to make the tests pass."
}
}