Skip to content

Orchestrator logic as software, not prose #870

Open

Description

@scuttletoby

Why: much of what keeps unattended work safe is one orchestrator agent following written rules: which lenses a PR needs, how many fix rounds, when to merge, filling slots, writing briefs from templates, keeping the state file. A mistake there is not caught by anything. Example from 11-21: a brief template had the wrong "which tests you may run" line for a Python task and had to be fixed by hand.

Done when: the fork has an orchestration module (or server feature) that decides lens count and kind from the PR's tier, enforces round caps, fills free slots from the ready queue, renders briefs from tested templates and keeps the state; the orchestrator agent handles only judgement calls. Builds on G7, G8, G10, G19.

🤖 Generated with Claude Code

Activity

  1. scuttletoby commented on Nov 22, 2026

    @scuttletoby
    OwnerAuthor

    Owner decision (2026-11-22): keep reviews, but make them cheaper and start them by software, not by the orchestrator noticing.

    Next steps for this issue, in order:

    1. Lenses start when CI is green. A PR's lenses start only once its fork-ci-result is green (tonight two lenses were spent on a head CI had already failed). First as an orchestrator-side waiter that wakes the orchestrator; then as fork software that starts the lenses the queue config names for the PR's paths.
    2. Writer self-check. Writer briefs ask the writer to answer the state question (runs again, stops half-way, old or empty state) and read the lens prompts before pushing.
    3. Batched releases. fork-ci-release runs from the daily schedule; an on-demand release holds new merges only until main's tip is green, then releases.

    Routine steps (merge line, release hold, lens start) go to scripts; the orchestrator only decides.

    🤖 Generated with Claude Code

  2. scuttletoby commented on Nov 22, 2026

    @scuttletoby
    OwnerAuthor

    Owner decision (2026-11-22), widening this issue: every agent action that is not generating something (writing code, a review, a brief, a decision) is done by code, for all agents, not only the orchestrator. Waiting, polling, merging, releasing, starting the next step and cleanup are scripts or services; agents push and stop, and code wakes them with the result.

    Already code: the serial merge line, release-at-tip (holds merges until main's tip is green), CI waits (writers and lenses push and stop; a script waits for the PR's result). Next, in order: start the review lenses automatically when a PR's CI goes green (step 1 here); prepare the worktree and dependencies before a writer starts (#991); move the remaining orchestrator routines (queue order after a narrow check, restarting a stopped merge line) into the same scripts.

    🤖 Generated with Claude Code

  3. scuttletoby commented on Nov 28, 2026

    @scuttletoby
    OwnerAuthor

    Feature shape for "renders briefs from tested templates", from a review of which written orchestrator rules should become code:

    • A queue_add tool checks a queue item against the slot filler's schema and refuses bad fields at once, not later at start time.
    • The brief is rendered when the task starts, from a tested template in the repo plus the target machine's facts from config. Moving work to another machine then needs no brief rewrite.
    • Work started outside the filler counts against the same writer cap.

    Evidence (one day): one queue item was refused only later, for a bad kind. Each move to another machine meant pasting a machine note into every brief again. One machine showed 6 of 4 writers, because work started outside the filler went past the cap.

    🤖 Generated with Claude Code

  4. added
    area:agents
    size:big
    type:feature
    on Nov 29, 2026
  5. scuttletoby commented on Nov 29, 2026

    @scuttletoby
    OwnerAuthor

    Working on the first point of the 11-28 feature shape ("queue_add checks a queue item against the slot filler's schema and refuses bad fields at once"): slot-filler add FILE|- (and --backlog, --check) checks the item with the same rules the timer applies at start time, plus what would only show later (an id already queued, started or in flight; a kind no allowed machine takes), and writes it into the queue without ever replacing a file. One fork PR. Brief rendering and the writer cap for work started outside the filler stay open.

    🤖 Generated with 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

    area:agentssize:bigtype:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions