Files
faunosteo/.claude/tasks/plans/2026-10-25-rust-r5-7-cleanup.md
bchanot 4e0a6c04d6 docs(docs): R5.7 census, ledger, reproducibility, RUST.md 11.23
CLAUDE.md, WORKSPACE, packages/README, README, sheet model, SUPABASE, TEST_STRATEGY,
PDF-FORMAT and ANNOTATION-RENDERING follow the deletion; RUST.md 11.23 records the census,
counts, the historical TS replay procedure and hashes; CHANGELOG, TODO, R5.7 plan and
contract.
2026-10-25 04:00:15 +01:00

3.4 KiB

PLAN: Rust R5.7, consumer census, packages/anatomy and packages/domain deleted, guarantees kept

  • date: 2026-10-25 | branch feature/rust-r5-pipeline-core at 756b7ef (R5.6 active, 9e87016)
  • spec: owner brief 2026-10-25 « Validation R5.6 et autorisation R5.7 » (§1 to §13); plan R5 §B.5 row R5.7 and §B.6 (.claude/tasks/plans/2026-10-22-rust-r5-pipeline-core.md); RUST.md §11; BDR-068, BDR-070
  • contract: .claude/tasks/contracts/2026-10-25-rust-r5-7-cleanup.md
  • limits: no merge, no 0.2.0, no deploy, no Supabase DEV data, no migration, no SaaS feature, no oracle regenerated, no seed byte changed, no major version bump; stop at the checkpoint (brief §12)

Facts at the start (756b7ef)

  • TS cases to retire: anatomy 144 in 22 files, domain 263 in 13 files (vitest JSON, all green).
  • Consumers outside the two packages: anatomy → root script import:equine:legacy, Dockerfile COPY, docs, Rust module comments; domain → anatomy, Dockerfile COPY, the Rust suites reading packages/domain/tests/fixtures/report-v2.{full,minimal}.json (report_rules, archive_rules), the app ESLint ban, r4.census.test.ts (xmldom pinned under anatomy), docs, SQL migration comments (frozen, never edited).
  • packages/supabase/scripts/upload-sheet-assets.ts (assets:upload:legacy): TS upload tool, replaced by the Rust bin at R5.5 (owner e2e PASS 11/11).
  • Root prettier stays (pnpm format, db:types, db:types:check); tsx only under anatomy; @xmldom/xmldom only under anatomy.
  • The report-v2.*.json fixtures of domain are byte-identical to the app's copies (sha256 e96b0882…, ba79698c…).
  • Seed SQL header names packages/anatomy: frozen bytes (sha c5a24312…), kept, documented beside.

Subtasks

  1. Census + matrices: tests ledger crates/core/tests/curation/LEDGER.tsv (407 rows: ported / replaced / kept / deleted, target, oracle, note), files matrix crates/core/tests/curation/FILES.tsv (every deleted file → its Rust counterpart or reason). GAPs found by the mapping are ported before any deletion.
  2. Fixtures: report-v2.{full,minimal}.json → crates/core/tests/fixtures/, git mv, sha256 before = after; Rust readers repointed.
  3. Ports of uncovered contracts (from the mapping), on frozen oracles, in Rust or durable vitest.
  4. Deletion: packages/anatomy, packages/domain, TS upload script + assets:upload:legacy, import:equine:legacy, Dockerfile COPY lines, lockfile by pnpm install; Rust module comments that cite deleted paths point at the reference commit.
  5. Census tests: r4.census xmldom assertion turned into "no importer, no package resolves xmldom", with a non-vacuity check; new R5 census (packages gone, no production path imports a TS engine, ledger and files matrix consistent with the tree); app ESLint ban extended to @faunosteo/anatomy and xmldom.
  6. Historical reproducibility: reference commits, versions, commands, isolated-worktree procedure, expected sha256 of the 18 files; rehearsed once in a detached worktree.
  7. Docs: CLAUDE.md, WORKSPACE.md, packages/README.md, README.md, RUST.md §11.23, CHANGELOG, ANATOMICAL_SHEET_MODEL.md, SUPABASE.md, TEST_STRATEGY.md, PDF-FORMAT.md (xmldom line stale), ANNOTATION-RENDERING.md; follow-ups kept (brief §10).
  8. Checks: frozen-lockfile install, rust:check, check:all, import:equine --check, targeted suites, census, counts.
  9. Gates: fresh security audit, fresh verifier on the contract; memory; checkpoint, STOP.