You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fetch hub_fetch_run.py's Companion and Script From One Revision When the Commit Lookup Fails #3533
catalog/snippets/hub_fetch_run.py promises that the prose gate and its prose-gate.json companion run from one hub commit. That holds only when resolve_main_commit() returns a SHA. When the lookup fails, ref falls back to the moving main branch, and the loop in main() then fetches the companion and the script as two separate raw URLs:
If a hub main push lands between those two requests, the run pairs one revision's prose-gate.json with another revision's prose_lint.py. The gate can then refuse the data or evaluate rules the script was not written against. The provenance line says commit unresolved but does not say that the pair may be mixed.
Expected
On the fallback path, either the whole run reads one immutable revision, such as a SHA resolved some other way or a single archive or tree fetch, or the helper refuses to pair the companion with the script rather than running a possibly mixed pair.
Evidence
Raised by Copilot on the carried copy in ptr727/ESPHome-NonRoot#372, a promotion PR whose hub_fetch_run.py is byte-identical to this snippet at hub f60f57d. The fix has to land here and then be carried.
Claim released: feature/burndown-3533 merged to develop as #3696 and its branch and worktree are cleaned up. The documentation follow-up is #3700. This issue closes when the next develop -> main promotion merges.
Activity
ptr727 commentedon Oct 31, 2026
Backlog burndown round 2 claim. Branch:
feature/burndown-3533. Group: #3533.Predicted file set:
catalog/snippets/hub_fetch_run.pytests/test_hub_fetch_run.pyNo other live group may edit these files until this branch merges or the claim is released here.
Refuse a Mixed Companion and Script Pair When Hub Main Is Unresolved …
ptr727 commentedon Oct 31, 2026
Claim released:
feature/burndown-3533merged todevelopas #3696 and its branch and worktree are cleaned up. The documentation follow-up is #3700. This issue closes when the nextdevelop->mainpromotion merges.