All eight findings are resolved. PR #641 merged as ee4d292a on 2026-10-10 after all nine checks passed. PR #640 had already merged the overlapping source-check removals. PR #641 removes 22 weak tests and adds five, for 17 fewer tests against its main baseline. CI gains 359 existing tests that it previously omitted.
8 done, 0 in progress, 0 pending
Eight findings from the audit of commit 6f0d8c64. This document tracks the authorized fixes and removals. This work changes tests and tooling. It does not update realms.
| # | Work | Status | Evidence |
|---|---|---|---|
| 1 | Setup-only tests Remove four construction tests that do not exercise the behavior they claim to cover. Source files at audit baselinemodule/src/import_meta.rsmodule/src/loot/mod.rs module/src/loot/tag.rs module/src/creatures/ai.rs | Done | Four setup-only tests removed. The rebased Module unit suite passed all 1,557 tests. |
| 2 | Copied test implementations Remove 15 tests and their private state models from GO model import, vmap lifecycle, and motion. Keep tests that call production calculations or an actual Store seam. | Done | Fifteen tests and their copied state models removed. Production calculations and real Store tests remain. The rebased Module suite passed. |
| 3 | Non-production text accepted as executable code Exclude comments, literals and test-only code from raw table-read checks. Preserve the documented Package API body helpers. Exercise subscription query values through the production function. | Done | Nine shared scanner tests passed. They cover literal and comment decoys, generic functions, final fields and exact signatures containing array lengths. One new test checks production query lists. PR #640 already removed the other overlapping source-presence checks. |
| 4 | Importer fixtures share production offsets Use fixed source column positions in quest type and reward-mail fixtures so an incorrect production offset fails the test. Source files at audit baselineimporter/src/main.rs | Done | All 399 enabled importer tests passed on the rebased branch. Earlier independent mutations of quest type, reward mail template and reward mail delay offsets failed as intended. |
| 5 | Useful tests missing from CI Run package-delta, module package API lint, and all Datascript suites in CI. | Done | CI now includes 289 package-delta tests, 44 package API checks and 26 more Bun tests (45 total). All passed locally. Fixed the stale quest fixture these new CI steps exposed. Testing docs and the PR checklist match the workflows. |
| 6 | Snapshots of implementation bodies Remove source-body equality tests that pin internal control flow and logging. Retain structural architecture checks and behavioral tests. | Done | Completed by merged PR #640. Its removals include all 12 implementation-body snapshots identified by this audit. The rebase preserves those deletions and does not claim them as new removals in PR #641. |
| 7 | Duplicates and false idempotence claims Remove repeated mount projections, duplicated well-fed calculations, and the duplicate shared dungeon-map assertion. | Done | Three duplicate tests removed. The remaining Module unit suite passed all 1,557 tests. |
| 8 | Determinism assertion accepts two failures Require both Datascript emissions to succeed and produce artifacts before comparing bytes. Make the refused-script fixture write synchronous. Source files at audit baselinedatascripts/tests/emit.test.ts | Done | All four emission tests and all 45 Bun tests passed at f794e576. The earlier exit-1 mutation failed the determinism assertion. Artifact-content assertions read emitted output. |