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

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