Stop counting graphify path refusals as no path in the retrieval harness #1578
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#1578
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 retrieval harness counts a
graphify pathrefusal as "no path". The linked-pairs score therefore falls when new stub nodes make a name ambiguous, although no link is lost.Observed
graphify pathprints "Ambiguous" to stderr and exits with code 3. This happened 5 times before and 8 times after the re-extraction. The harness showed 25/30 then 22/30. A direct graph search shows 30/30 at 1 hop in both graphs. Control pairs show 18 then 17, and the true counts are 23 then 21. Report:plugins/os-vault/eval/graph-retrieval/diff-reextract.mdsection 2.Reproduce
n/a: see the report.
Approach
path_callgains a third state, refused.Required work:
runinplugins/os-vault/eval/graph-retrieval/measure.pyreturns stderr as well; update both callers (lines 61 and 112).path_callreturnsrefused: truewith the exit code and message when the exit code is nonzero and no hop count matched. Confirm the exit code for a real no-path result against graphify 0.9.102 source first.connection_testkeeps arefusedcount per kind.nstays the pair count, sofound_ratestays comparable.md_reportprints refused beside found. Q4 keeps the refused field through its filter at line 493. check: presentrefusedinplugins/os-vault/eval/graph-retrieval/measure.pyAcceptance criteria
refused: trueand does not count as no path.refused: false.pairs.json,questions.json, andtestset.tsvstay byte-unchanged.Owner sketch
path_callowns the meaning ofgraphify pathoutput. No new object.Origin
measure.pyreads stdout only ← DESIGNVERDICT: CREATE
Resolution
Done: measure.py records a graphify path refusal as refused, beside found, in the JSON summary and the Markdown report, including Q4. changed_notes.py also exits 2 on a corrupt or empty manifest.
Evidence: main
b591d01a. pytest plugins/os-vault/tests: 43 passed. test_measure_refused.py: 6 tests failed before the change. Exit codes read from graphify 0.9.102 cli.py: no path exits 0, ambiguous exits 3, not found exits 4. Live check: changed_notes.py on the vault exits 0. The harness was not rerun. Finished by hand because the diff-test gate cannot run pytest (#1625).Follow-ups: none