Repository navigation
fix: batch claim gate counts Target: as a repo when Repos: is declared - #676
Merged
Merged
Conversation
declared_repos() unioned a prompt's Target: into its Repos: header. Target is often only an epic label, so the claim gate held tasks on repos they never touch (readiness ruling Q8, 2026-11-18). Repos: now wins when it names a known repo; Target, then the survey repos, are fallbacks only. Closes #675 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 18, 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.
Summary
declared_repos()(agents/conductors/batch/_batch.py) always added a prompt'sTarget:to its declaredRepos:.Target:is often only an epic label, so the batch claim gate (_held_for, reached from_ready.pyand_orchestrator.py) held tasks on repos they never touch. Example: readiness ruling Q8 on 2026-11-18 blockedresults_library_p5c_dr1_census(Repos:PyAutoCortex only,Target: autofit) on a PyAutoFit claim.Now a
Repos:block that names any known repo is used alone.Target:, then the survey repos, are fallbacks only when it does not.Closes #675
API Changes
None — internal to the batch conductor.
declared_repos()keeps its signature. Its result no longer includesTarget:whenRepos:names a known repo._premise.declared_reposis unchanged.See full details below.
Full API Changes (for automation & release notes)
Changed Behaviour
agents/conductors/batch/_batch.py::declared_repos— returns the known repos fromRepos:alone when any exist; otherwise[Target]if it is a known repo; otherwise the surveyrepos.Migration
Test Plan
tests/test_batch_declared_repos.py(5 tests). Covers:Repos:beating an epic-label Target;_held_fornot holding a Cortex-only prompt when PyAutoFit is claimed, but holding one that names PyAutoFit; the Target fallback with noRepos:or with only unknown names in it; the survey fallback.pytest tests/ -x).test_grouped_organ_consumersneedsPYAUTO_MINDunset, because the task worktree'sactivate.shexports it. It fails the same way on origin/main when that variable is set.Readiness
Heart dev-ship gate (PyAutoBrain): GREEN. Shown, non-blocking: manifest drift (end-at-deliverable blocks, 46 mismatches; generated hooks, 2 mismatches); release validation STALE (no rehearsal for current source).
Merge mode: auto-merge on green (declared
Consequence: notify, approved plan).🤖 Generated with Claude Code