Rule handbook metadata
- Rule
DET.TOKEN.NO_DRIFT· lanedeterministic- Page status
- current
- page_version
e0f97003e0294ff2e46af4f839eff7c8de9afdcb14fee26c154b8ae2e49f1176- generated_at
- 2026-05-23T13:24:10Z
- registry_fingerprint
aef1de6082cf0f50d463783c843dee0ffb9132fbd5ed4ea6e5bb3f031f359c72
How this rule is fixed
Pilot deterministic fixer: repo_overlay · harness mode repo_overlay · verify expect_rule_clean.
- Harness: fixture includes a repo overlay tree;
remediate_repo_overlay()writes catalog/repo files, then applies After HTML when present. - Production:
repo_overlayNode adapter patches the website repository (contracts, registry JSON, CSS, Python stubs).
Detection module: docs/design/ux-audit/deterministic-design-rules.md#det-token-no_drift. Scroll down for Before / After examples and Evidence and remediation steps.
Purpose
Bootstrap page for the DET ruleset harness. Examples are minimal Kitchen Sink markup aligned with design-rules/deterministic/generated/det-token-no-drift.check.js.
Passing signals
- After example satisfies the rule on audit.
Failing signals
- Before example triggers
DET.TOKEN.NO_DRIFTon the defect fixture.
Before example
Before (failing example)
Raw hex in repo CSS overlay triggers drift scan.
After example
After (passing example)
Token-only styling.
Evidence and remediation
Run generator/build_rule_defect_fixtures.py and auditor-tests/invoke-det-ruleset-harness.sh --only-rule DET.TOKEN.NO_DRIFT.
Related rules
- See
docs/design/ux-audit/deterministic-design-rules.md