Repository navigation
Closed
Labels
area: modulesFirst-party content modules and the module seam.priority: p1Scheduled into the current or next milestone.type: testCoverage, harness or proof work with no behaviour change.
Milestone
Description
Context
This is one shard of the test-health push in #3855. Shard e3855-module-images-01 covers packages/module-images/tests/module.test.ts and packages/module-images/tests/scratch.test.ts. Both files were audited through all eight lenses in one cluster, in run th-20261110211723-678f3c.
Fixed findings:
scratch.test.ts, "a nested directory swapped for a symlink while the request is out is refused, and nothing lands outside", earlier-layer-answers. Exit 1 and an empty outside directory also held when a pre-flight refused before the provider was called. A mutant that refuses--outinto scratch before the request survived. The test now asserts that the provider was called once, and the same mutant is killed.scratch.test.ts, "the ignore rule is checked again after the provider call, so a rule lost in flight refuses the write", earlier-layer-answers. A pre-flight refusal with the samebrain doctor --fixmessage satisfied every assertion without reaching the post-call re-check, and that mutant survived. The test now asserts that the provider was called once, and the mutant is killed.scratch.test.ts, "a derived -2 name ...", unrestored-global.OPENAI_API_KEYwas deleted after the test instead of being restored, so a value set by the environment was lost. It is now saved and restored inafterEach.scratch.test.ts, leaked-resource. Five tests removed their outside temp directory only when they passed. Those directories are now removed inafterEach.module.test.ts, leaked-resource. Eachskills()call left a temp brain root behind. The roots are now removed inafterEach.
Acceptance criteria
- The batch pull request lands into
epic/3855-test-healthwith the gateok, and no test is lost (21 before, 21 after).
Metadata
Metadata
Assignees
Labels
area: modulesFirst-party content modules and the module seam.priority: p1Scheduled into the current or next milestone.type: testCoverage, harness or proof work with no behaviour change.
Activity
schlessera commentedon Nov 11, 2026
Delivered by #3932, which merged into
epic/3855-test-healthas4ddff0ec5(the push in #3855). It landed in the combined merge without proof of its own; the gate, typecheck andcheck:prpassed on the combined branch. The epic's two exhaustive runs ondc2439551, 42996974186 and 42997012467, then passed. GitHub does not applyClosesfor a pull request into a non-default branch, so I'm closing this by hand. The change reachesmainwith the epic's single landing pull request.