Skip to content

feat(batch): M3.6b named tasks and planner skips (R5, R2) - #668

Merged
Jammy2211 merged 6 commits into
mainfrom
feature/shift-named-tasks-planner-skips
Nov 17, 2026
Merged

Jammy2211 merged 6 commits into
mainfrom
feature/shift-named-tasks-planner-skips

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Closes #667. M3.6b of the autonomous-orchestrators epic; prompt PyAutoMind/active/shift_named_tasks_and_planner_skips.md. Applies human rulings R5 (option a) and R2 from 2026-11-17, plus the three design choices the human approved on 2026-11-17.

What changes

  • R5. The one-slice-per-epic limit and phase order apply only to tasks with a Phase: number. A side task of the epic shares the shift, and orders itself by Blocked-by:; the rejection names what it waits for. A Phase: value now counts by its leading number (5A → 5, 6b2 → 6). A label with no number (C2) is still a declared phase.
  • Reasons for named tasks. batch brief --check runs the watcher's own gates: the claims on Mind's local origin/main (never a fetch), then plan. It prints brief.tasks: <task> will not start — <reason> for each named task the planner would not start. The watcher records the same reasons in counters["backlog_gates"]["named"], so the digest's "Not started" line reads "not started — skipped: ". A named task with no draft prompt says so.
  • R2. A coordination: or conflict-override: line in an active.md claim frees the claimed repo only for the task it names. Before, it freed the repo for every task, which is how PyAutoFit#1777 was dispatched onto PyAutoFit's claim.
  • Witness. A shift's backlog dip skips drafts with no Witness: and counts them in the digest ("No Witness: N draft(s) not dipped"). Named and resumed tasks are exempt.
  • brief --new. When no goal names an epic or tag, it writes backlog: scoped with tiers: notify, glance (the 2026-11-16 reach ruling) instead of fill-idle.
  • Organ rule for named tasks, at --check (_brief.organ_findings):
    • Refused when the prompt names the shift's own code (SELF_PATHS: Brain agents/conductors/batch/, Mind scripts/ and .github/workflows/, any PyAutoHands path).
    • Passed, with a line, when it names only other paths.
    • A warning when it names no path that shows what it changes, or an unprefixed path that could be self code while it also declares another repo.
    • Limit: the rule judges from the paths a prompt names, so a prompt that names only other paths passes even if the fix would land in watcher code it does not name. The pass line shows those paths.
  • Docs. AUTONOMY.md ("Human rulings R5 and R2"), skills/batch/batch.md (one line) and agents/conductors/batch/AGENTS.md.

Changed tests (the rulings change their behaviour)

  • test_one_slice_per_epic now uses Phase: tasks.
  • test_goals_without_epics_or_tags_take_the_reach_scope (renamed from the fill_idle version).
  • The coordinated-claim fixture in test_m31_live_shift_findings.py now names the task it frees.
  • test_orchestrator_digest: a named task with no prompt now says why it did not start.

Checks

  • Witness: tests/test_batch_named_tasks.py. Clauses 1–7 each failed on main 8f36ae6 and now pass; 39 more tests pin the review fixes (46 in all).
  • Full Brain suite: 2309 passed, 3 skipped. bin/check_skill_line_counts.sh 200 PyAutoBrain passes.
  • Real Mind:
    • brief --check on the 2026-11-16-pm brief takes about 9 s.
    • A synthetic brief shows the R2 hold on a PyAutoFit draft, and an organ refusal of shift_launch_from_phone, which does touch the watcher.
    • The organ survey over 317 drafts: 14 refused (each names batch-conductor code, a Mind script or a PyAutoHands path), 17 warned, 18 passed.
  • Independent review (Fable 5.2): four rounds, each FINDINGS with no blocker, all fixed with tests. Rounds 2–4 were about the organ rule's path reading. The last fix is the reviewer's own suggested two-line change and was not reviewed again.

Follow-ups (not here)

  • Blocked-by: never clears once its blocker ships (same as before). R5 makes it the ordering mechanism for side tasks, so a human must delete the header.
  • Under the new brief --new default, a queued judge task is outside tiers: notify, glance and is not dipped; name it in the brief.
  • A named task held by a spawn gate (max-workers, token budget, pause) still reads a plain "not started" in the digest.

Merge mode: human /prm.


Generated by Claude Code

- One-slice-per-epic and phase order bind only Phase: tasks; a side task
  orders itself by Blocked-by:, and the rejection names what it waits for.
- brief --check lists each named task that will not start, with the
  planner's own reason (claims on Mind origin/main, then plan), and the
  watcher records the same reasons for the digest's Not started line.
- R2: a coordination:/conflict-override: line frees a repo only for the
  task it names (PyAutoFit#1777 was dispatched onto such a claim).
- A shift's backlog dip skips drafts with no Witness:, counted in the digest.
- brief --new with no goal epic or tag writes backlog: scoped, tiers
  notify, glance (the 2026-11-16 reach ruling), not fill-idle.
- brief --check applies the organ rule to named tasks: refused when the
  prompt names the shift's own code, passed with a line otherwise, a
  warning when it names no path.

Closes #667

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8QyUpAfUVYByA1UgVc
…rdination key, named-task gaps

- organ rule: read absolute, ./ and PyAutoLabs/-prefixed paths, bare file
  names of the shift's own code and unbackticked paths; a path naming
  another repo, a slash command, glob, Repo#N or action@ref is not a self
  path; an unprefixed self-looking path is a warning when the task also
  declares other repos; read the Target: header, not the draft folder.
- Phase: takes its leading number (5A -> 5, 6b2 -> 6); an unnumbered
  label is still a declared phase for the per-epic limit and order.
- a coordination line frees a repo only by the text after its key.
- a named task with no draft (issued to active/) says why, at --check and
  in the digest; a resumed task is not held back for want of a Witness.
- batch AGENTS.md matches the code; the brief --new comment says what the
  scope does.

Refs #667

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8QyUpAfUVYByA1UgVc
- a self directory with a trailing slash, a glob of own code, a worktree or
  absolute path, any case, and a bare own file name (backticked or not,
  worker_template.md included) are the shift's own code;
- a repo name alone, a path in an undeclared repo, a Mind record
  (draft/, active/, complete/, batches/), a version string and a branch
  name show nothing either way (no path -> the human decides);
- Target: naming several repos is read;
- an unnumbered declared phase says so; a resumed record carries
  phase_declared; brief --check words an active/ named task as issued.

Refs #667

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8QyUpAfUVYByA1UgVc
… repo dirs, relative records

- an unprefixed .github/workflows/ path is not Mind's when the task targets
  another repo; only agents/conductors/batch/ (DISTINCT_PREFIXES) names its
  organ unprefixed, and a self prefix deeper in a path counts only for an
  organ the task targets;
- a self directory written without its slash (.github/workflows, scripts)
  is still read; a repo written as a directory (PyAutoBrain/) and a
  relative Mind record (../../active/x.md) show nothing.

Refs #667

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8QyUpAfUVYByA1UgVc
… whatever the task declares

Refs #667

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8QyUpAfUVYByA1UgVc
The firewall leg of Brain CI refused PyAutoFit, PyAutoLabs and workspace
repo names in _orchestrator.py and the new tests; the tests use organ
names and a fictional org instead.

Refs #667

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8QyUpAfUVYByA1UgVc
@Jammy2211
Jammy2211 merged commit 2ca1bd3 into main Nov 17, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/shift-named-tasks-planner-skips branch November 17, 2026 20:33
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.

feat(batch): M3.6b named tasks and planner skips — phase-only epic limit, reasons, R2 claims

2 participants