Mutation runs write CRC bin test fixtures into the real plugin tree #1671
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#1671
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
A mutation run writes CRC fixture files into the real plugin tree. The files make the tree dirty, and
worktree finishthen cannot remove the worktree. A test that writes outside its temporary project under a mutant can also overwrite a real file.Observed
During the #1666 group 2 matrix run (2026-11-10, 11:33 to 11:39), the worktree got an untracked directory
plugins/os-sdlc/docs/crc/run/. Its files date from 11:37:34:ledger.tsv,baseline.json,wave0/cycle-edges.tsv,wave0/holders.tsv,wave0/reach-through.tsv,wave0/error-lineage.tsv,wave0/score.tsv,wave0/structure-rulings.tsv,wave0/structure-governs.tsv,wave0/revisit-files.txt. The run mutated the 97lib/files that thetest/crc/{tickets,sweep,records,census}_bin_test.rbcandidates kill in. The main checkout also holds an untrackedplugins/os-sdlc/docs/crc/from earlier mutation passes.The CRC bin tests name the run directory with a relative path, for example
RUN_DIR = "docs/crc/run"intest/crc/sweep_bin_test.rb. Unverified: a mutant that drops the project root in the code that joins the run directory makes the path resolve against the process working directory, which isplugins/os-sdlc. The mutant is not identified.Reproduce
From
plugins/os-sdlc, run a matrix run on thelib/files listed indocs/research/mutation-testing/2026-11-10-redundant-test-review/README.md(run g2) with every test file as--test, thengit status --short plugins/os-sdlc/docs/crc.Origin
bundle exec mutineer run <97 lib files> --test <every test file> --matrix --strategy redefine --jobs 8plugins/os-sdlc/docs/crc/(my own run made it) and ranworktree finishagaingit status) ← CRC fixture files written under the plugin directory (file dates during the run) ← relative run-directory path resolved against the process working directory (unverified) ← IMPROVISATION (the hypothesis has no source)plugins/os-sdlc/test/crc/*_bin_test.rb,InProcessBin, and thelib/os_sdlc/crccode that joins the run directory to the rootVERDICT: CREATE (ticket-skeptic, 2026-11-10): no open ticket covers a mutation run that writes CRC fixtures outside the temporary project.