Repository navigation
cortex: check-in scorer resolves Where-to-look bullets against project roots - #371
Merged
Merged
Conversation
…t roots The check-in scorer's `where_paths` kept only bullets that were already absolute, and for the ones it kept read only `bullet.split()[0]` — so a relative path, or a path buried anywhere but the first token, was invisible to it. `run_artifacts` then silently fell back to the newest run under `output/` whenever a task's declared paths did not resolve, scoring a stranger's run instead of admitting it had nothing to look at. Fixes: - `where_paths` resolves relative bullets against the project's registered roots instead of discarding them. - `where_paths` scans the whole bullet for path-like tokens, not just the first one. - `run_artifacts` refuses to fall back to the newest `output/` run when the declared paths don't resolve — that state is UNOBSERVABLE, not a silent substitution, and any fallback that does still happen is labelled as one in both readouts. Closes #370. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FKSwTBuNwcJc2FPNpSCrkp
This was referenced Sep 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was broken
Three defects in the check-in scorer (
agents/conductors/cortex/_cortex.py):where_pathskept only bullets that were already absolute — arelative
## Where to lookbullet was silently discarded.where_pathsread onlybullet.split()[0]— if a bullet's pathwasn't the first whitespace-delimited token, it was never seen.
run_artifactssilently fell back to the newest run underoutput/whenever a task's declared paths did not resolve — scoring a stranger's
run instead of admitting there was nothing to look at.
What changed
where_pathsresolves relative bullets against the project's registeredroots instead of discarding them.
where_pathsscans the whole bullet for path-like tokens, not just thefirst one.
run_artifactsrefuses to fall back to the newestoutput/run when thedeclared paths don't resolve — that state is now UNOBSERVABLE, not a
silent substitution. Any fallback that does still happen is labelled as
one in both readouts.
Test evidence
The single failure,
test_a_fixture_tree_finds_the_schema_its_checkout_ships, is apre-existing worktree/symlink trap unrelated to this change — it resolves
the canonical
PyAutoCortexcheckout instead of the worktree's symlinkedcopy, and passes in the canonical checkout (verified independently), so it
passes in CI.
tests/test_cortex_conductor.py→ 93 passed, 1 failed (the same knowntrap above).
pre-fix module — verified by stashing the fix and re-running them.
Live verification (read-only scoring of the 9 live Cortex tasks, patched scorer)
subhalo_validationtasks previously scored against oneshared stale
rectangular_adapt/pl_sersic_0 … source_pix[2]directory;each now scores against its own run dir (
pl_eff_0,pl_eff_1_outer,rectangular_adapt/pl_sersic_0, …).ordered_mge_control_unordered_102005065now scoresoutput_ordered_witness/run_1/…, its real run, instead of a stale phase-4vis_pixdirectory belonging to a different tile.ordered_mge_witness_102005065now reportsrun dir: nonewith wallUNOBSERVABLE (its bullets use
…/<id>elisions) rather than inventing averdict from a stranger's run.
resumeandwitness,the two adjacent defects the issue lists as out of scope.
Readiness
Heart is RED on five reasons; the human acknowledged all five as
organism-scope in-session (recorded in
PyAutoMind/active.mdundercortex-scorer-where-pathsas aheart-ack:line). Nothing in this branchis in the release chain.
Closes #370.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FKSwTBuNwcJc2FPNpSCrkp