Skip to content

fix: batch claim gate counts Target: as a repo when Repos: is declared - #676

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/batch-claim-gate-declared-repos
Nov 18, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/batch-claim-gate-declared-repos

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

declared_repos() (agents/conductors/batch/_batch.py) always added a prompt's Target: to its declared Repos:. Target: is often only an epic label, so the batch claim gate (_held_for, reached from _ready.py and _orchestrator.py) held tasks on repos they never touch. Example: readiness ruling Q8 on 2026-11-18 blocked results_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 includes Target: when Repos: names a known repo. _premise.declared_repos is 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 from Repos: alone when any exist; otherwise [Target] if it is a known repo; otherwise the survey repos.

Migration

  • None.

Test Plan

  • New tests/test_batch_declared_repos.py (5 tests). Covers: Repos: beating an epic-label Target; _held_for not holding a Cortex-only prompt when PyAutoFit is claimed, but holding one that names PyAutoFit; the Target fallback with no Repos: or with only unknown names in it; the survey fallback.
  • Full suite: 2370 passed, 1 skipped (pytest tests/ -x). test_grouped_organ_consumers needs PYAUTO_MIND unset, because the task worktree's activate.sh exports 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

Jammy2211 and others added 2 commits November 18, 2026 09:57
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>
@Jammy2211
Jammy2211 merged commit 2f15efe into main Nov 18, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/batch-claim-gate-declared-repos branch November 18, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: batch claim gate counts Target: as a repo when Repos: is declared

1 participant