Introduce parameter object: SourceTree for path+root #1201
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#1201
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
path+root (data_clump, score 15) spans 5 classes in concepts CollaboratorPass, Crc, Evidence.
OsSdlc::CollaboratorPass::SourceSnippet(/home/jared/dev/cc-os/.claude/worktrees/crc-os-sdlc-run-3/plugins/os-sdlc/lib/os_sdlc/collaborator_pass/source_snippet.rb:9)OsSdlc::Crc::Census::PathCheck(/home/jared/dev/cc-os/.claude/worktrees/crc-os-sdlc-run-3/plugins/os-sdlc/lib/os_sdlc/crc/census/path_check.rb:7)OsSdlc::Evidence::Fingerprint(/home/jared/dev/cc-os/.claude/worktrees/crc-os-sdlc-run-3/plugins/os-sdlc/lib/os_sdlc/evidence/fingerprint.rb:8)OsSdlc::Evidence::Probe::Lsp::Lookup(/home/jared/dev/cc-os/.claude/worktrees/crc-os-sdlc-run-3/plugins/os-sdlc/lib/os_sdlc/evidence/probe/lsp/lookup.rb:8)OsSdlc::Evidence::Resolution(/home/jared/dev/cc-os/.claude/worktrees/crc-os-sdlc-run-3/plugins/os-sdlc/lib/os_sdlc/evidence/resolution.rb:9)support 5; maximal
Approach
No existing object holds the names; create one value object and pass it. Object:
OsSdlc::Evidence::SourceTree(built at plugins/os-sdlc/lib/os_sdlc/evidence/collection.rb:45). The evidence CLI resolves tokens under any --root directory and loads no Project, so OsSdlc::Project cannot be the owner without a fake project or a new config requirement; one Evidence::SourceTree value built once in Collection from --root, holding root and the File.join, readlines, and glob calls the sites repeat, removes root from every Evidence site. PathCheck and SourceSnippet already have a Project at their callers and stay for a later preserve_whole_object recipe in their own concepts.Required work:
OsSdlc::Evidencetakesfingerprints, source_tree, units, unresolvedOsSdlc::Evidence::Resolutiontakessource_treeOsSdlc::Evidence::Resolution::TokenResolutiontakestoken, source_treeOsSdlc::Evidence::Resolution::ShapeResolutiontakestoken, source_treeOsSdlc::Evidence::PhantomEntrytakestoken, expected_new, source_treeOsSdlc::Evidence::Fingerprinttakesunit, source_tree, lsp_runnerOsSdlc::Evidence::Fingerprint::MethodProbestakesmethod_name, source_tree, lsp_runner, siteOsSdlc::Evidence::Probe::Lsptakesmethod_name, source_tree, runner, siteOsSdlc::Evidence::Probe::Lsp::Lookuptakesmethod_name, source_tree, runner, siteOrchestrator work: re-measure with bin/collaborator-pass measure --runs docs/crc/os-sdlc/collaborator-runs, then stop-check.
Rejected: preserve_whole_object, build_once_at_entry — The evidence CLI resolves tokens under any --root directory and loads no Project, so OsSdlc::Project cannot be the owner without a fake project or a new config requirement; one Evidence::SourceTree value built once in Collection from --root, holding root and the File.join, readlines, and glob calls the sites repeat, removes root from every Evidence site. PathCheck and SourceSnippet already have a Project at their callers and stay for a later preserve_whole_object recipe in their own concepts.
Acceptance criteria
Owner sketch
Origin
plugins/os-sdlc/lib/os_sdlc/evidence.rb)VERDICT: CREATE
Work started on branch crc-os-sdlc-run-3 (persistent worktree, run 3 collaborator round).
Resolution
Done: Evidence::SourceTree holds the path and root pair; the path+root data clump is gone.
Evidence:
8691c784; pipeline suite-check green (dispatch 840); contract-auditor pass (dispatch 841); delta-check ok: path+root 15->0, data_clump total 266->209 vs baseline 20261020T020325ZFollow-ups: none
Follow-up dropped (skeptic, run 3 close-out): "rows-merge refuses created rows". RowLineCheck works as designed.
Follow-up dropped (skeptic, run 3 close-out): "census path mode ignores --exclude". This is documented behavior; the run prompt and skill wording need the fix, not the code.