Fold Project::CandidateTestPaths into Project#tests_for with an anchored prefix strip (completes ADR-0174) #565
Labels
No labels
P0
P1
P2
P3
bug
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
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#565
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?
Map: #568
Blocked by #564
Context
Responsibility audit of
project.rbon 2026-09-13. Batch position 2 of 4. ADR-0174 already decided thatCandidateTestPathsbecomesProject#tests_for. The class still exists. This ticket completes that ADR.Observed
Project#tests_forstrips the code path with an unanchoredsub, then hands the result to a class that already holds every other fact. The only sender guarantees the prefix sits at position 0, so the invariant lives in the caller.Reproduce
Expected
Tasks
Project::CandidateTestPathsintoProject#tests_fordelete_prefix("#{code_path}/")HarnessErrorfor an unknown fileproject/candidate_test_paths.rb; move its tests intoproject_test.rbProject::Changes#mapped_test_pathsunchangedAcceptance criteria
Origin
/os-sdlc:responsibility-audit plugins/os-sdlc/lib/os_sdlc/project.rbon 2026-09-13; analysis at.sdlc/tmp/responsibility-audit/2026-09-13-project/analysis.yamlOsSdlc::Project← DESIGN (plugins/os-sdlc/lib/os_sdlc/project.rb, ADR-0055/0074/0088/0169/0174)OsSdlc::Project,plugins/os-sdlc/lib/os_sdlc/project.rbWork started via /os-sdlc:implement on branch ticket-565 (worktree). Map: #568.
Resolution
Done: Project#tests_for now resolves candidate test paths itself with delete_prefix (anchored). Project::CandidateTestPaths deleted; its resolution logic lives in private Project methods. HarnessError kept for an unknown file. Project::Changes#mapped_test_paths unchanged.
Evidence: Pipeline implementation 2 complete: 11 dispatches, 1 contract-auditor retry, suite green twice (1207+ runs). Branch ticket-565, merged to main via worktree finish. Tests: project_tests_for_test.rb (interior segment not stripped; unknown file raises). Completes ADR-0174; no ADR work.
Follow-ups: none. Note for the batch re-audit: six private tests_for_* helpers now sit on Project; the re-audit judges whether they want their own owner.