fix(gen): resolver registry describes the template language again

Seven registered {{PLACEHOLDER}}s had zero uses in any .tmpl (checked in both
bare and :arg forms): REDACT_TAXONOMY_TABLE, TEST_COVERAGE_AUDIT_REVIEW,
MODEL_OVERLAY, QUESTION_PREFERENCE_CHECK, QUESTION_LOG, INLINE_TUNE_FEEDBACK,
MAKE_PDF_SETUP. The last two of those families are invoked programmatically by
preamble.ts (functions kept, registry entries dropped); the question-tuning
trio and the review coverage-audit wrapper were documented by their own module
as existing 'for unit testing' that no test performed — deleted, along with
generateRedactTaxonomyTable + its EXAMPLE/TIER_BLURB constants (its '/cso
renders the full table' comment was itself stale) and its test describe.

Also deletes the gated-resolver mechanism (ResolverEntry/appliesTo/
unwrapResolver + test/resolver-entry.test.ts): fully built, fully tested,
used by zero of the 65 registry entries — the generator loop simplifies to a
direct function call. CLAUDE.md's redact-doc line stops advertising the dead
token.

Proof: zero-diff regen (0 SKILL.md changed); gen-skill-docs + skill-validation
737 tests green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-08-14 21:12:20 -07:00
co-authored by Claude Fable 5
parent 5c806a4bd7
commit 7933a38aa8
10 changed files with 19 additions and 406 deletions
-27
View File
@@ -7,7 +7,6 @@
*/
import { describe, test, expect } from "bun:test";
import {
generateRedactTaxonomyTable,
generateRedactInvocationBlock,
} from "../scripts/resolvers/redact-doc";
import { HOST_PATHS } from "../scripts/resolvers/types";
@@ -20,32 +19,6 @@ const ctx = {
paths: HOST_PATHS["claude"],
};
describe("REDACT_TAXONOMY_TABLE", () => {
const table = generateRedactTaxonomyTable(ctx);
test("lists every pattern id from the engine (no drift)", () => {
for (const p of PATTERNS) {
expect(table).toContain(`\`${p.id}\``);
}
});
test("contains the recognizable credential prefixes", () => {
for (const s of ["AKIA", "ghp_", "sk-ant-", "sk-", "BEGIN"]) {
expect(table).toContain(s);
}
});
test("has all three tier sections", () => {
expect(table).toContain("HIGH — genuinely-secret");
expect(table).toContain("MEDIUM — PII");
expect(table).toContain("LOW — surfaced");
});
test("documents the calibration rationale (publishable/AIza/JWT are MEDIUM)", () => {
expect(table).toMatch(/cries wolf/);
expect(table).toContain("pk_live_");
});
});
describe("REDACT_INVOCATION_BLOCK", () => {
test("scan-at-sink: temp file → scan that file → exact bytes", () => {