Skip to content

docs: fold the testing records and mutation evidence into the layout - #880

Merged
huichen merged 2 commits into
mainfrom
docs/docs-testing
Sep 27, 2026
Merged

huichen merged 2 commits into
mainfrom
docs/docs-testing

Conversation

@huichen

@huichen huichen commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator

What

A second batch of docs and scripts landed since the last cleanup: 32
coverage-campaign records under docs/testing/, a mutation-testing evidence
tree at the repo root (mutation/, 21 tracked files including ~1.2 MB of raw
logs), and a handful of measurement scripts. This PR puts them in their place,
fixes the references the moves invalidated, and takes the history back out of
the live pages.

mutation/ → scripts/measure/mutation/

The tree was sitting at the repo root with no entry in any layout doc, its
runner scripts still carrying a hard-coded private worktree path. Now:

  • all 21 files moved (runner .cmds, four analysis helpers, summary.json, the
    attribution/hygiene evidence, three baseline logs, the prose finding);
  • internal references corrected — runner-relative output paths (%~dp0out-*),
    no hard-coded D:\… paths, analyze-queue.py resolving its fixtures from its
    own directory so it works from any cwd;
  • a .gitignore keeps the multi-GB per-run out-*/ trees out while the
    committed evidence stays tracked (verified in both directions);
  • scripts/measure/mutation/README.md + .zh-CN.md document what is here and
    how to re-run a campaign; scripts/README* gained the directory;
  • docs/testing/mutation-report.md no longer claims the directory is
    gitignored (it never was) and points at the new paths.

docs/testing/ — an agent record, not user documentation

These pages are a coverage campaign's handoff record (waiver registries,
dimension evidence, gate commands, run identities), not product documentation,
and they are cited from source comments. So, per the agreed approach:

  • a narrow PAIR_EXEMPT scopes the bilingual requirement around
    docs/testing/** and docs/archives/testing/** — placement, links, script
    paths and fences are all still enforced (four regression tests pin both the
    exemption and its boundaries);
  • a bilingual entry point was added: docs/testing/README.md +
    README.zh-CN.md, plus a testing/ section in docs/README{,.zh-CN}.md;
  • the body keeps only what still governs the current suites: 122 self-declared
    historical blocks (previous passes, superseded segments, "kept for the arc"
    narratives) moved verbatim into docs/archives/testing/ behind one-line
    pointers — 7 archived files, ~1 200 lines out of the live pages;
  • stale pre-reorg scripts/ paths were updated throughout, and the § numbers
    that source comments cite by name were preserved.

Verification

  • python scripts/docs/check-docs.py --strict-pending → exit 0
    (Checked 249 docs … 0 pairs pending bilingualization)
  • python scripts/tests/test-check-docs.py → Ran 34 tests … OK
  • independent verification pass (read-only, re-derived from scratch): root
    mutation/ gone with no old references left; 21/21 moved files present with
    no loss; every scripts/ path in docs/testing resolves (59 occurrences
    across 9 files); all 22 archive pointers resolve and the moved blocks are
    absent from the live pages; the source-comment § citations still resolve
  • rustfmt clean on the one touched Rust file (a stale comment path)

…its history

Since the last docs pass this repository grew 32 coverage-campaign records
(`docs/testing/`), a mutation-testing evidence tree at the repo root
(`mutation/`), and a few measurement scripts. This lands them where they
belong and removes the history they had accumulated.

`mutation/` -> `scripts/measure/mutation/`: the cargo-mutants runner `.cmd`s,
the four analysis helpers, the `summary.json` roll-up, the attribution/hygiene
evidence and the raw baseline logs, plus the one prose finding. Their internal
references were corrected (runner-relative outputs, no hard-coded private
paths), a `.gitignore` now keeps the multi-GB per-run `out-*/` trees out while
the committed evidence stays tracked, and `mutation/README.md` documents how to
re-run a campaign. `docs/testing/mutation-report.md`'s false claim that the
directory is gitignored is replaced with what is actually true.

`docs/testing/` is an agent's coverage-campaign record (waiver registries,
dimension evidence, gate commands and run identities), not user-facing
documentation, so the bilingual requirement is scoped around it
(`PAIR_EXEMPT`) and it gains a bilingual entry point
(`docs/testing/README{,.zh-CN}.md`) plus an index section in `docs/README*`.
Its body keeps only what still governs the current test suites: the 122
self-declared historical blocks -- previous passes, superseded segments,
"kept for the arc" narratives -- moved verbatim into `docs/archives/testing/`
behind one-line pointers, and the stale pre-reorg `scripts/` paths were
updated. Section numbers that source comments cite by name were preserved.

Also: the mutation directory joins the `scripts/README*` map; a stale
`coalesce.rs` comment and two pre-existing stale references in the testing
records were corrected.
@huichen
huichen enabled auto-merge (squash) September 27, 2026 04:56
@huichen
huichen merged commit a070545 into main Sep 27, 2026
12 checks passed
@huichen
huichen deleted the docs/docs-testing branch September 27, 2026 05:05
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