Skip to content

chore(docs): arch-audit #355 — CI gates, unit tests, SPEC.md, dead-code, content-drift fix - #42

Merged
MichaelTaylor3d merged 2 commits into
mainfrom
loop/docs-arch-audit/hardening-355
Jul 18, 2026
Merged

chore(docs): arch-audit #355 — CI gates, unit tests, SPEC.md, dead-code, content-drift fix#42
MichaelTaylor3d merged 2 commits into
mainfrom
loop/docs-arch-audit/hardening-355

Conversation

@MichaelTaylor3d

Copy link
Copy Markdown
Contributor

TLDR

Actions the docs.dig.net architectural-audit findings (#355, health 82→): fix a HIGH content-drift bug, remove dead globally-mounted scaffold, wire the missing typecheck + lint CI gates, add unit tests for the pure locale-redirect logic, add a normative SPEC.md, and fix the stale README + add a runbook.

Closes #355.

Status

🚧 Draft — salvage-anchor stub pushed; hardening in progress by the autonomous loop (cold-repo lane).

Planned changes (from the audit)

  1. [HIGH] content driftdocs/protocol/dig-cat-payment.md:51: the flat "100 DIG fallback" wording was revoked by SYSTEM.md #125 (live USD-pegged price, fail-loud). Rewrite to the neutral/dynamic wording every sibling page uses.
  2. [HIGH] dead scaffold — remove src/components/BaseUrlWrapper.tsx (untyped, globally mounted via src/theme/Root.tsx, logs console.log('!') to prod, dead /chia workaround). Unmount cleanly.
  3. [MED] CI gates — wire typecheck (tsc) + add ESLint (config + dep + CI job) per §2.4a.
  4. [MED] tests — unit tests for clientLocaleRedirect.ts (resolveOne/detectBrowserLocale) + the gen-*.mjs pure helpers (§2.1/§2.3).
  5. [MED] SPEC.md — normative contract for the drift-gate, frontmatter schema, llms.txt/machine-surface guarantees (§4.2).
  6. [LOW] docs hygiene — replace stale yarn/GitHub-Pages README with the real npm/S3+CloudFront flow; add runbooks/ (§4.4).

Bump

patch/minor per the final change set (stated on merge).


Generated by Claude Code

MichaelTaylor3d and others added 2 commits July 18, 2026 22:35
Salvage-anchor stub for actioning the docs.dig.net architectural-audit
findings: content drift fix, dead scaffold removal, typecheck+lint CI,
unit tests for pure locale-redirect logic, SPEC.md, README/runbook.

Refs #355
Co-Authored-By: Claude <noreply@anthropic.com>
Actions the six docs.dig.net architectural-audit findings (#355):

- content drift: rewrite the dig-cat-payment pricing note to neutral
  dynamic/USD-pegged wording (SYSTEM.md #125) — no flat "100 DIG" number,
  no dead COMMIT_DIG fallback, no internal-file references.
- dead scaffold: remove BaseUrlWrapper (untyped, console.log('!'),
  dead /chia baseUrl workaround) and its trivial Root swizzle; drop the
  stale sitemap ignore entry.
- CI gates: wire typecheck (tsc) + add ESLint (flat config, react-hooks +
  jsx-a11y) with a lint script and both as required steps in the test job.
- unit tests: extract the pure locale resolver to localeResolver.mjs and
  cover resolveOne/detectBrowserLocale (region-override edge cases incl.
  zh-HK), plus the pure helpers in gen-hreflang-sitemaps.mjs and
  gen-knowledge-graph.mjs (exported + guarded main()).
- SPEC.md: normative contract — locales, build pipeline, machine artifacts
  (llms.txt/knowledge-graph.json/openrpc*.json/error-codes.json), drift
  gates, quality gates.
- docs hygiene: replace the yarn/GitHub-Pages README with the real
  npm/S3+CloudFront flow; add runbooks/ (deploy + local-run).

Version: 0.4.6 -> 0.5.0 (minor — new CI-gate/SPEC/test capability surface).

Co-Authored-By: Claude <noreply@anthropic.com>
@MichaelTaylor3d MichaelTaylor3d changed the title chore(hardening): action arch-audit findings — CI, tests, SPEC, dead-code, content drift (#355) chore(docs): arch-audit #355 — CI gates, unit tests, SPEC.md, dead-code, content-drift fix Jul 18, 2026
@MichaelTaylor3d
MichaelTaylor3d marked this pull request as ready for review July 18, 2026 23:12
@MichaelTaylor3d
MichaelTaylor3d merged commit d20311e into main Jul 18, 2026
8 checks passed
@MichaelTaylor3d
MichaelTaylor3d deleted the loop/docs-arch-audit/hardening-355 branch July 18, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant