Skip to content

Spec 38: WS1 delegation accuracy #253

Open

Description

@pgermishuys

WS1 of the September 2026 session audit. Spec: docs/specs/38-spec-delegation-accuracy/ (lands with the PR that references this issue). Follows Spec 37 (WS0, #183).

Goal

When Loom or Tapestry delegates, it picks an agent that exists, is the right one, and completes. Failures recover without the user noticing.

Where main stands (25 Sep 2026)

  • The bare-model bug (root cause a) is fixed on main by b4f8efa and ships in 0.2.1.
  • Routing evals already meet the audit's ≥ 90% target: loom-routing 123/135 and tapestry-category-routing 89/90 on the full matrix (25 Sep). What remains is mostly runtime.
  • Still open: (b) Loom is offered agents from config, not from what the harness materialized; (c) loom.md names shuttle-backend / shuttle-frontend in a prohibition; (d) harness built-ins (explore, general) are hidden only on Copilot; (e) no retry or fallback for failed delegations; (f) category-shuttle descriptions may not say what the category covers; Loom still executes plan tasks while a plan is active; no real-session audit script.

Work items (one PR each, tests first, in this order)

  1. Contract tests: L1 materialization contract, L2 prompt contract. Guards (b), (c).
  2. Offer only materialized agents: the adapter reports what it materialized; the engine builds delegation.targets from that set; ADR. (b)
  3. Loom and Tapestry prompt rules, written positively: delegate only to listed agents, Loom's size rule, retry once / fall back to shuttle. (c), (e)
  4. Routable category-shuttle descriptions from the category's description and triggers. (f)
  5. Hide harness built-in subagents on OpenCode V1 and V2. (d)
  6. Loom never executes plans: plan state as template context.
  7. New L4 eval cases: active plan, cited paths exist, two-file change inside one category.
  8. L3 live delegation proof in CI on a cheap model.
  9. L5 real-session audit script for OpenCode V1/V2 session stores.

Adapter-specific work covers OpenCode V1 and V2; engine and prompt changes apply to every adapter.

Done when

  • L1, L2 and L3 are required CI checks.
  • The new L4 cases pass at ≥ 90% on the default matrix, with no regression beyond noise in eval compare.
  • A week of dogfooding main shows zero configuration failures, zero built-in-agent spawns, and category shuttles used for category work.

🤖 Generated with Claude Code

https://claude.ai/code/session_01T15PT3299yvdvr6gkzyDmk

Activity

  1. 16 remaining items

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