Repository navigation
Open
Description
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
mainby 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.mdnamesshuttle-backend/shuttle-frontendin 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)
- Contract tests: L1 materialization contract, L2 prompt contract. Guards (b), (c).
- Offer only materialized agents: the adapter reports what it materialized; the engine builds
delegation.targetsfrom that set; ADR. (b) - Loom and Tapestry prompt rules, written positively: delegate only to listed agents, Loom's size rule, retry once / fall back to
shuttle. (c), (e) - Routable category-shuttle descriptions from the category's description and triggers. (f)
- Hide harness built-in subagents on OpenCode V1 and V2. (d)
- Loom never executes plans: plan state as template context.
- New L4 eval cases: active plan, cited paths exist, two-file change inside one category.
- L3 live delegation proof in CI on a cheap model.
- 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
mainshows zero configuration failures, zero built-in-agent spawns, and category shuttles used for category work.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
No labels
Activity
docs(spec-38): add WS1 delegation accuracy spec and tasks (#254)
docs(spec-38): record PR #255 for item 1
docs(spec-38): record PR #256 for item 9
test(delegation): read agent lists after routing verbs in L2
test(delegation): add L1 and L2 delegation contract scenarios (Spec 3…
feat(audit): add the WS1 real-session audit script (L5)
docs(spec-38): record PR #256 for item 9
feat(audit): address review on the session audit script
docs(spec-38): link group 3 to its pull request
docs(spec-38): record PR #258 for item 2
fix(audit): count every declared category for category-shuttle share
feat(audit): WS1 real-session audit script (L5, Spec 38 item 9) (#256)
fix(delegation): never count Weave-marked host agents as held
feat(delegation): offer Loom and Tapestry only materialized agents
docs(spec-38): record PR #258 for item 2
16 remaining items
docs(spec-38): name the category-routing prerequisite PR
fix(evals): record per-case Tapestry prompt hashes and tighten case c…
fix(evals): limit case category names to .weave identifiers
fix(evals): validate case categories with the core Weave schemas
test(evals): read every valid category name from Tapestry's list
feat(opencode): keep Loom and Tapestry off OpenCode's built-in subagents
docs(spec-38): record PR #260 for item 5
feat(opencode2): pass builtin_refused only on a permission rejection
feat(opencode2): read error.type for builtin_refused; seed built-ins …
fix(evals): compose each category-routing case's categories into Tape…
feat(prompts): give Loom and Tapestry the delegation, size and recove…
docs(spec-38): record the group 3 prompt rules and their measurement
fix(prompts): keep Loom's category-shuttle sentence free of agent names
docs(spec-38): record the tapestry-category-routing re-measurement
feat(prompts): Loom and Tapestry delegation, size and recovery rules …