diff --git a/skills/WORKFLOW.md b/skills/WORKFLOW.md index d7d21017..4a0f5cf8 100644 --- a/skills/WORKFLOW.md +++ b/skills/WORKFLOW.md @@ -75,37 +75,47 @@ file and `PyAutoBrain/AGENTS.md`, and note that the agent was emulated. ## Model delegation (judgment tier plans, execution tier ships) -The workflow skills split work across **capability tiers**, not named models or -harness-specific tool names, so the doctrine survives model access changing: +The workflow skills split work across **capability tiers**, then resolve those +tiers within the provider family and subagent mechanism exposed by the current +harness. Do not carry model names or invocation syntax from one provider or +harness into another: - **Judgment tier** — the session model itself. Planning, orchestration, risk judgment, and anything user-facing. Never delegated, never handed *up*. -- **Execution tier** — the next model down the ladder, delegated through the - harness's subagent mechanism when available. - -**Capability ladder (strongest first): Fable > Opus > Sonnet.** The tiers are -resolved from the model the session is actually running on — do not assume the -session is Opus: - -| Session model | Judgment tier (in-session) | Execution tier (subagents) | -|---------------|----------------------------|----------------------------| -| **Fable** | Fable — the architect: all planning and decomposition | **Opus** — *all* remaining work | -| **Opus** | Opus | **Opus** — Sonnet only for the simple-and-mechanical floor below | -| **Sonnet** | Sonnet | Sonnet (nothing below; run inline) | - -A **Fable session is the architect**. It plans, decomposes, judges and talks to -the user, then hands *every* execution phase to Opus subagents -(`Agent(model="opus", …)`) — not only the mechanical shell/git steps listed -below, but implementation, edits, tests and tutorial prose too. - -An **Opus session delegates to Opus** (`Agent(model="opus", …)`) for anything -with judgment in it — implementation, source edits, test authoring, fix loops, -tutorial prose, diagnostics that have to reason about their own output. -**Sonnet is the exception, not the default:** it gets a phase only when that -phase is *really simple and mechanical* — a fixed recipe of shell/git steps -with no design decisions in it, where a wrong answer surfaces immediately as a -failed command. If you are weighing whether a phase is mechanical enough for -Sonnet, it isn't: send it to Opus. +- **Execution tier** — the model assigned below for the session's provider + family, delegated through the harness's subagent mechanism when available. + +The tiers are resolved from the model the session is actually running on. Do +not assume the provider, session model, or subagent-call syntax: + +| Provider family | Session model | Judgment tier (in-session) | Execution tier (subagents) | +|-----------------|---------------|----------------------------|----------------------------| +| Anthropic | **Fable** | Fable — the architect: all planning and decomposition | **Opus** — *all* remaining work | +| Anthropic | **Opus** | Opus | **Opus** — Sonnet only for the simple-and-mechanical floor below | +| Anthropic | **Sonnet** | Sonnet | Sonnet (nothing below; run inline) | +| OpenAI | **Astra** | Astra — the architect: all planning and decomposition | **Sol** — *all* remaining work | +| OpenAI | **Sol** | Sol | **Sol** | + +No default mapping is defined here for other models, including Terra or Luna. +When the harness cannot target the named execution model or has no subagent +mechanism, follow the cross-harness fallback below and execute directly. + +A **Fable or Astra session is the architect**. It plans, decomposes, judges and +talks to the user, then hands *every* execution phase to its family's execution +tier: Fable → Opus; Astra → Sol. This includes implementation, edits, tests and +tutorial prose, not only the mechanical shell/git steps listed below. + +An **Opus or Sol session delegates to the same model** for execution: Opus → +Opus; Sol → Sol. Use the current harness's native subagent call and exact model +identifier. In particular, do not use Anthropic-specific +`Agent(model="opus", …)` syntax or an Opus target from an OpenAI session. + +Within the Anthropic family, **Sonnet is the exception, not the default:** it +gets a phase only when that phase is *really simple and mechanical* — a fixed +recipe of shell/git steps with no design decisions in it, where a wrong answer +surfaces immediately as a failed command. If you are weighing whether a phase +is mechanical enough for Sonnet, it isn't: send it to Opus. The OpenAI policy +has no corresponding lower mechanical tier; those phases stay on Sol. The main session stays on the judgment tier; bulk execution moves to the execution tier — no manual model toggling, and no waiting to be told which @@ -115,16 +125,17 @@ model to use. of the *session*, not of `start_dev`. Direct work on the organs (Brain, Mind, Heart, Hands, Memory, Gut, Nerves), hygiene and cleanup sweeps, skill/doc edits, one-off fixes, profiling runs and diagnostics that execute code all -delegate the same way. A Fable *or* Opus session should say which model it is -running on in its opening line and treat "should this be a subagent?" as the -first question for any task. **Stays in-session (no delegation):** answering from -context already loaded; reading a handful of files; edits of a few lines in -files already read; and anything that is itself a conversation with the user — -plans, decisions, reviews, judgment calls. Everything else is a delegation -candidate; when in doubt, delegate one coherent phase and keep the judgment. - -**The simple-and-mechanical floor — always delegated at any tier, and the only -phases an Opus session may hand to Sonnet:** +delegate the same way. A Fable, Opus, Astra or Sol session should say which +model it is running on in its opening line and treat "should this be a +subagent?" as the first question for any task. **Stays in-session (no +delegation):** answering from context already loaded; reading a handful of +files; edits of a few lines in files already read; and anything that is itself +a conversation with the user — plans, decisions, reviews, judgment calls. +Everything else is a delegation candidate; when in doubt, delegate one +coherent phase and keep the judgment. + +**The simple-and-mechanical floor — always delegated when the harness supports +subagents, and the only phases an Anthropic Opus session may hand to Sonnet:** - `ship_library` — step 3 (test, commit, push, open PR). - `ship_workspace` — step 3 (commit, push, smoke test, open PR, cross-reference). @@ -135,7 +146,8 @@ That list is a floor, not a ceiling. Everything above it that is still *execution* — `start_library` / `start_workspace` source edits, script authoring, test writing, fix loops, doc and skill edits, hygiene sweeps, diagnostics — goes to the **Opus** execution tier from a Fable *or* an Opus -session, one subagent per coherent phase, using the same prompt contract below. +session, or to the **Sol** execution tier from an Astra *or* a Sol session, one +subagent per coherent phase, using the same prompt contract below. **Several tasks in one session — `start_bundle`.** The ladder above scales a single task across tiers; a **bundle** scales one session across several @@ -207,21 +219,22 @@ look, not a substitute for looking. **Tutorial-prose split** (separate from skill delegation — depends on what the reader is there to learn): -- **Fable or Opus** for narrative science-teaching scripts where the +- **Opus in the Anthropic family; Sol in the OpenAI family** for narrative + science-teaching scripts where the docstrings/comments are the product: tutorials in `autofit_workspace`, `autogalaxy_workspace`, `autolens_workspace` (`overview_*`, `start_here.py`, `howto*`). Sonnet drifts to generic textbook phrasing and misses domain - framing here, so prose never goes below Opus — a Fable session may delegate - it to an Opus subagent, an Opus session keeps it in-session. + framing here, so Anthropic prose never goes below Opus. Fable and Opus + sessions delegate it to Opus; Astra and Sol sessions delegate it to Sol. - **Short API-usage notes** — not the Opus prose register — for code-heavy, doc-light scripts: `*_workspace_test`, `euclid_strong_lens_modeling_pipeline` glue, and developer/regression/smoke/parity scripts. Authoring these still - goes to the **Opus** execution tier; Sonnet only takes one when the script is - a near-copy of an existing sibling and the work is pure mechanical - adaptation. + goes to the family's execution tier (Opus or Sol); Sonnet only takes one in + the Anthropic family when the script is a near-copy of an existing sibling + and the work is pure mechanical adaptation. - Heuristic: *"is the reader here to learn science, or to exercise code?"* Science → full teaching prose. Code → terse notes. Either way the writer is - Opus unless the job is a mechanical copy. + Opus or Sol unless an Anthropic job is a mechanical copy. ## Consult Memory before substantial planning diff --git a/skills/start_bundle/start_bundle.md b/skills/start_bundle/start_bundle.md index 3b9263f8..4beb01d1 100644 --- a/skills/start_bundle/start_bundle.md +++ b/skills/start_bundle/start_bundle.md @@ -3,11 +3,11 @@ A **bundle** is a set of *independent* PyAutoMind prompts worked in one orchestrated session. The session model is the **architect**: it plans and judges, and delegates the implementation of each member to an execution-tier -subagent (see [`WORKFLOW.md`](../WORKFLOW.md) — Fable > Opus > Sonnet; a Fable -*or* an Opus session delegates member implementation to Opus, and Sonnet only -takes the really simple mechanical phases). Bundles come from the PyAutoMind -dashboard's **Bundles** section — pinned entries in `PyAutoMind/bundles.md`, or -proposals it computes from the backlog — or from a human naming several prompts. +subagent (see [`WORKFLOW.md`](../WORKFLOW.md) — Anthropic: Fable → Opus and +Opus → Opus, with Sonnet only for the really simple mechanical phases; OpenAI: +Astra → Sol and Sol → Sol). Bundles come from the PyAutoMind dashboard's +**Bundles** section — pinned entries in `PyAutoMind/bundles.md`, or proposals it +computes from the backlog — or from a human naming several prompts. **A bundle is not an epic.** An epic is ordered and phase-gated: one phase at a time, through its ledger. A bundle has no order at all. If the members turn out @@ -57,10 +57,10 @@ worktrees and may run in parallel. ### 4. Delegate each member to a subagent -One subagent per member (`Agent(model="opus", …)` from a Fable session; the -execution tier of [`WORKFLOW.md`](../WORKFLOW.md) otherwise), passing the -subagent prompt contract from that file: the worktree path, the repo list, the -branch to work on, the member's issue plan, and the instruction to stop and +One subagent per member, using the current harness's native call and the +provider-family execution tier from [`WORKFLOW.md`](../WORKFLOW.md), passing +the subagent prompt contract from that file: the worktree path, the repo list, +the branch to work on, the member's issue plan, and the instruction to stop and report verbatim on failure rather than editing tests to pass. The architect session keeps planning, judgment, registry updates and everything user-facing. diff --git a/skills/start_dev/start_dev.md b/skills/start_dev/start_dev.md index 91d8b7c8..7bb26971 100644 --- a/skills/start_dev/start_dev.md +++ b/skills/start_dev/start_dev.md @@ -10,11 +10,10 @@ This is a **workflow entry point, not an agent** — classification, planning an risk judgement belong to Brain. Read [`../WORKFLOW.md`](../WORKFLOW.md) first: it defines the organ boundary, the Brain-agent entry points, Memory consultation, the execution-environment model, -the **model-delegation ladder** (Fable > Opus > Sonnet — a Fable session plans -here and delegates all execution to Opus; an Opus session delegates execution to -Opus too, dropping to Sonnet only for the really simple mechanical `ship_*` / -`pre_build` recipes), and the Mind registry paths used -below. +the provider-aware **model-delegation policy** (Anthropic: Fable → Opus and +Opus → Opus, with Sonnet only for the really simple mechanical `ship_*` / +`pre_build` recipes; OpenAI: Astra → Sol and Sol → Sol), and the Mind registry +paths used below. > No `gh` on a remote session — map each `gh` step via [`../GITHUB_ACCESS.md`](../GITHUB_ACCESS.md).