Exclude test/ and .pbm/ from the cc-os graph #1565
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#1565
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
The cc-os
.graphifyignoreexcludestests/and**/tests/, but the repo usestest/directories. It also omits.pbm/, which.gitignoreline 28 already ignores.So 2,543 test nodes and 997
.pbmnodes are in the cc-os graph (32,134 nodes).Noise takes seed slots. In question 5 the top seed is
globfrom.pbm/pb_data/types.d.ts. In question 7 a.pbmcreatenode takes a seed slot.Evidence: /tmp/claude-1000/-home-jared-Documents-SecondBrain/b10276a0-3582-48b5-b0fe-f13795bdcc75/scratchpad/graphify-diagnosis-evidence.md (copied below; do not depend on the path).
Observed
.pbmstyle files 997 (3.1%); docs, openspec and no-path nodes 7,222 (22.5%); tests (test/,tests/,eval/) 5,576 (17.3%); src 18,339 (57.1%).test/directories: 2,543.Reproduce
n/a: a configuration gap. Count the nodes whose
source_filestarts withtest/or.pbm/ingraphify-out/graph.json.Approach
Add
test/and.pbm/to.graphifyignore. Run the 10-question set (testset.tsv from the #1540 audit) before and after the rebuild. Record both scores and the node counts.Required work:
test/and.pbm/lines to.graphifyignore.Orchestrator work: rebuild the graph with
graphify update. Measure the 10-question set before the change and after the rebuild. Record both results on this ticket.Acceptance criteria
.graphifyignore, when the graph is rebuilt, then no node has asource_fileundertest/or.pbm/.Non-goals
Raising the 10-question score to 7 is not the pass rule here. Other causes (label-only matching, seed de-duplication) have their own tickets.
Origin
.pbmnodes are indexed ←.graphifyignorelacks.pbm/andtest/← DESIGN (.graphifyignore; .gitignore line 28 lists.pbm/).Start: checking graph consumers, then adding test/ and .pbm/ to .graphifyignore and measuring the 10-question set before and after.
Resolution
Done: Added test/, **/test/ and .pbm/ to .graphifyignore. Rebuilt the cc-os graph with graphify update . --force (no LLM): nodes under test/ 2543 to 0, under .pbm/ 997 to 0, non-test nodes kept (docs 8000, lib 133).
Evidence: Commit
57d4beff, merged to main. 10-question set: baseline 3/10; forced rebuild without the ignore change 5/10; with the ignore change 5/10 (the ignore change itself added 0; the 3 to 5 gain comes from the full rebuild). Nodes: baseline 32134, after 33572 (control 36233). Q9 rank 1 to 3, still pass. Q2, Q3, Q6, Q7, Q10 still fail, limit of 7 not met. Detail: /tmp/claude-1000/-home-jared-Documents-SecondBrain/b10276a0-3582-48b5-b0fe-f13795bdcc75/scratchpad/harness/diff-1565.md and results-after-1565.json. Confound: the worktree lacks the gitignored .pbm/, so the .pbm effect is shown by a detect test, not by the control.Follow-ups: none