Skip to content

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

Closed

Description

@Jammy2211

Overview

M3.6b of the autonomous-orchestrators epic. This applies human rulings R5 (option a) and R2 from 2026-11-17, using what shift 2026-11-16-pm showed:

  • A side task of an epic took phase 5A's slot.
  • A named task was dispatched onto a repo claimed under a conflict-override (PyAutoFit#1777), and the worker stopped to ask a question.
  • Named tasks went unstarted with no reason given.
  • brief --new defaulted to fill-idle.
  • The organ rule had to be settled in chat.

Plan

  • The one-per-epic limit and phase ordering apply only to tasks with a Phase: number. A side task runs alongside them and orders itself by Blocked-by:, with a reason that names what it waits for.
  • brief --check runs the same survey, claim reading and planner as the watcher, and prints one "will not start: " line per named task.
  • The watcher records the reason each named task was rejected, and the digest's "Not started — skipped: …" line shows it.
  • R2: a coordination: or conflict-override: line frees the repo only for the task slug it names. Every other task stays held and is counted.
  • The backlog dip skips drafts with no Witness: and counts them in the digest. Named tasks are exempt.
  • When no goal names an epic or tag, brief --new writes backlog: scoped with tiers: notify, glance and cites the 2026-11-16 reach ruling.
  • brief --check applies the organ rule to named tasks:
    • a prompt that names a path in the shift's own code is refused (Brain agents/conductors/batch/, Mind scripts/ and .github/workflows/, any PyAutoHands path);
    • a prompt that names only other paths passes, with the line "not the watcher, writer or release path";
    • a prompt that names no path gets a warning for the human to decide.
  • Tier and merge mode: effective level supervised; merge mode is human /prm (the human's rule for this sitting).
Detailed implementation plan

Affected Repositories

  • PyAutoBrain (primary)

Branch: feature/shift-named-tasks-planner-skips

Implementation Steps

  1. Write the tests first, one per Witness clause (1–7), in tests/test_batch_plan.py and tests/test_batch_brief.py, and show them failing on main.
  2. _batch.py:
    • pool_gate: phase ordering only for records with a Phase:; the Blocked-by: reason names the blocker.
    • plan: the epic limit only for phase-bearing records; a Witness-less backlog draft is skipped and counted (witness_absent).
    • new_brief: the scoped default.
    • The brief --check command: named-task reasons and the organ lines.
  3. _brief.py: organ_findings(task, mind), the self-path prefixes, and the refuse/pass/warn rule.
  4. _orchestrator.py:
    • claimed_repos / on_origin: a coordinated claim frees the repo only for the task it names.
    • Record counters["backlog_gates"]["named"] and ["witness_absent"].
  5. _digest.py: gate_why reads the named reasons; backlog_gate_lines counts the Witness skips.
  6. One paragraph each in skills/batch/reference.md and AUTONOMY.md, keeping skill files under 200 lines.
  7. Full Brain suite, bin/check_skill_line_counts.sh 200 PyAutoBrain, an independent review, then the PR.

Key Files

  • agents/conductors/batch/_batch.py, _brief.py, _orchestrator.py, _digest.py

Original Prompt

PyAutoMind/draft/feature/pyautobrain/shift_named_tasks_and_planner_skips.md (moved to active/ on issue). It holds the Witness (7 clauses), the shift evidence and rulings R5 and R2.

Activity

  1. Jammy2211 commented on Nov 17, 2026

    @Jammy2211
    ContributorAuthor

    Shipped. Merged as #668 (2ca1bd3).

    • R5: the one-slice-per-epic limit and phase order apply only to Phase: tasks; a side task orders itself by Blocked-by:.
    • Reasons: brief --check and the digest name why each named task did not start.
    • R2: a coordination or conflict-override line frees a repo only for the task it names.
    • Witness: a shift's dip skips drafts with no Witness:, counted in the digest.
    • brief --new: defaults to backlog: scoped with tiers: notify, glance.
    • Organ rule: brief --check applies it to named tasks.

    Checks:

    • Witness: the 7 clauses failed on main and pass (46 tests in all).
    • Brain suite: 2309 passed.
    • Independent Fable 5.2 review: four rounds, each fixed.
    • CI: green on the final head, after a fix for the tenant firewall.

    Follow-ups (in the completion record):

    • Blocked-by: never clears once its blocker ships.
    • A queued judge task falls outside the brief --new default scope.
    • Spawn-gate reasons are not shown in the digest.

    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions