Repository navigation
context_pack: epic fallback via earlier PRs; test_galaxyscope stops writing 0-LOC briefs (Part of #5521) - #6145
Merged
Merged
Conversation
…rtifacts into the checkout (Part of #5521) - context_pack lists files changed by earlier commits mentioning #N (epics name no code). - test_galaxyscope.py chdirs to tmp_path: its mocked scans wrote <checkout>_galaxy_llm.md ("0 analyzed artifact(s), 0 LOC", engine string "(Delta Mode)") into the repo root. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 23, 2026 03:03
squid-protocol
enabled auto-merge (squash)
October 23, 2026 03:17
Owner
Author
|
No description provided. |
This was referenced Oct 23, 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.
Part of #5521 (follow-up to #5532; promoter-bot wiring is a separate repo/issue, not this PR).
What
context_pack.py:prior_files()lists files changed by the newest commits onorigin/mainwhose message mentions#N;build_packadds those that are in the DB under "Earlier PRs for this issue changed:". Epics ("Part of #N") name no code, which was the main miss in tools: context_pack.py, issue -> path:start-end pointers from the self-scan DB (Part of #5521) #5532's sample.galaxyscope --incrementalwrites only*_master.db. The briefs come fromtests/core_engine/test_galaxyscope.py, whose mockedexecute_pipeline("fake.json")calls wrote<checkout>_galaxy_llm.md,*_galaxy_graph.sqlite,fake_output_*into the cwd (the repo root); the "(Delta Mode)" string is a copy-paste in the main pipeline'ssession_meta(galaxyscope.py:2024, left alone: changing it is a separate engine edit). Fix: an autouse fixturechdirs totmp_path. Verified: before, the run left 6 stray files in the checkout; after, none.Acceptance hit rate (24 merged churn PRs, one per issue, DB regenerated at main 934a676)
Pack names >=1 file the merged PR changed:
git logadds ~0.1 s).Misses are issues whose epic has no earlier PR yet (tooling: outcome-label pilot — do strictness / dynamism predict later fix commits? (child of #2716) #2720, perf: combined-alternation scan for coding_analysis (deferred from #3069 — parity-hazard notes inside) #3073, CI coverage gap: EQUIVALENCE_E2E / CICS_CRUCIBLE_PATH-gated tests never run in any workflow #5954) or whose PR touched files unrelated to the text. Per-issue rows were computed with a scratch harness (not committed). "Any file" includes tests/docs; I did not separate source-only here.
Checklist
Checklist: partial [c:530ba3ea] -- 17/24 (71%) hit rate shown above; the criterion asks that each of >=5 issues name the changed files, which holds for a minority (e.g. #5736, #4707, #5168) and not for all.
Checklist: done [c:fb988c5b] (0.05-0.5 s per pack,
--body-fileoffline, onlyghfor the issue)Checklist: done [c:14517a18] (tests incl. the new prior-files cases)
Checklist: done [c:3415db15] (doc fixes in #5532)
Checklist: partial [c:8c9805b3] -- promoter-bot wiring not filed (worker may not file issues); listed as a remaining slice.
Class sweep
Class: "ways a worker finds the code from an issue". Handled: path, function, class, language-stem word, earlier PRs for the same issue. Sibling gaps: none.
Remaining slices
churn workerrunscontext_pack.py <issue>and puts the output inprompt.mdunder "Where to look" (acceptance item 5).self_scan.py) before worker launch.galaxyscope.py:2024; check whether goldens carry it).Gates
pr_gates --fast7/7;test_context_pack.py+test_galaxyscope.py+test_source_reads.py82 pass.Lessons for agents
tests/core_engine/test_galaxyscope.pymocked scans write recorder output to the cwd; run it fromtmp_path(now an autouse fixture) or the checkout fills with<name>_galaxy_llm.mdandfake_output_*.pr_gatesruff 0.17.0 is cached at~/.cache/gitgalaxy/ruff-0.17.0/bin/ruff(the 0.16.10 path in the worker doc is a stale directory).🤖 Generated with Claude Code