Skip to content

Auto-load the matching CSE skill for each child role in CSE-enabled projects #430

Open

Description

@tannerpolley

From a 2026-11-16 review of the owner's T3 history (run from agentic-cse). Owner-approved as an architecture item for design; not a request to fork T3 into a CSE-only product.

Problem

The owner never invokes skills by hand ("i literally never invoke the skills myself. all skills should be automatically invoked given the agents are working in a cse activated repo and the orchestrator should also tell them to use cse skills given their task", 2026-11-12). Today skill use depends on each model choosing a skill from its description, and on orchestrators retyping skill names in briefs:

  • Claude subagents in research projects loaded the matching CSE skill on 84% of review tasks but only 47% of deck tasks (cse:beamer), 23% of fitting/analysis tasks (cse:analyze) and 17% of manuscript tasks (cse:write/cse:latex). A "Figure 3 redesign" thread loaded cse:build but not cse:plot.
  • Codex threads show no per-thread skill loads in T3's turn items. That may be a telemetry gap rather than non-use, but it cannot currently be verified.
  • Orchestrator briefs in research projects name cse:latex in about 40, cse:plot in 29 and cse:beamer in 22 briefs — routing that lives only in retyped prompts.
  • Many CSE skills map onto T3 roles (Designer ↔ cse:design, Implementor ↔ cse:build, Reviewer/Checker ↔ cse:review, Writer ↔ cse:write), which the owner noted overlap.

agentic-cse #14 improves the skill descriptions so models pick them more often; this issue is the structural complement.

Proposal for design

  • A project setting marks a project as CSE-enabled (or T3 detects the CSE protocol block in its AGENTS.md).
  • In such projects, a delegated child's role maps to a default CSE skill that is loaded into its context at start (e.g. Designer → cse:design, Implementor → cse:build, Reviewer → cse:review, Writer → cse:write), and the brief or issue can add task skills (cse:plot, cse:beamer, cse:analyze, cse:latex).
  • Works for both Claude and Codex children; record which skills were loaded per thread so skill use can be measured for both providers.

Done when

A design decides the mapping source (project setting vs. plugin-provided map), how it composes with orchestrator-named skills, provider differences, and per-thread skill-load telemetry; then it is implemented and a CSE project's children start with their role skill loaded on both providers.

Activity

  1. tannerpolley commented on Nov 16, 2026

    @tannerpolley
    OwnerAuthor

    Triage (repository orchestrator, 2026-11-16)

    Accepted as a design item. It goes to a Designer before any worker.

    Current code: T3 has no role-to-skill link today.

    • Model roles (Settings → Customizations, orchestrator_capabilities modelRoles) carry a provider, model and options only.
    • Skills: the only related setting is pluginSkills (packages/contracts/src/ForkSettings.ts:329), which offers Claude plugin skills in the composer menus.
    • Load tracking: nothing records which skills a thread loaded.

    Design constraints from #416. The owner chose on 2026-11-16 to move the fork closer to upstream: fewer fork edits inside upstream files, and fork policy kept in small owned modules.

    • A generic hook, not a CSE switch. Prefer a generic per-role "default skills" field on model roles (or on project settings) over a CSE-specific mode. The CSE mapping (Designer → cse:design, and so on) then lives in the agentic-cse plugin or project config, not in T3 code.
    • Role code overlap. Role policy is being consolidated in Consolidate usage readers and role policy onto upstream contracts #420; this should land in the same owned module.
    • Load tracking per provider. Claude loads skills through its Skill tool, which T3 can see as a tool call. Codex has no skill turn items today, so the design should say what telemetry is possible for each provider rather than assume parity.

    Order: after the upstream sync (#417 / PR #428) merges. It doesn't depend on #418/#419.

  2. added this to the Fork backlog milestone on Nov 20, 2026
  3. tannerpolley commented on Nov 20, 2026

    @tannerpolley
    OwnerAuthor

    Designer plan for #430

    Add optional, project-owned defaults keyed by the five T3 roles. At the child’s first provider submission, load the configured defaults and explicitly requested task skills from the destination provider’s installed catalogue. Record which skill bodies T3 handed to the provider. Land after #420 and use its consolidated role policy.

    Findings

    Smallest design

    Project policy. Add an optional roleSkills map to root t3.json, with canonical role keys and bounded arrays of fully qualified skill names. Presence opts the project in. The registered destination project owns the map, including for worktree children. Keep validation and selection in a fork-owned module beside the canonical role resolver that #420 leaves behind. Call it after that resolver has selected and normalized the child role. The map ignores model tier, provider and level. Load the skills using the actual provider instance and the child’s resolved working directory. Carry the normalized role through the existing remote launch metadata and persist it on the destination child. Missing role metadata from an older peer keeps today's behavior without a guessed skill. Retain one owner for role normalization and provider selection.

    T3 role Routine Complex
    Orchestrator No CSE default No CSE default
    Designer cse:design cse:design
    Implementor cse:build cse:build
    Reviewer cse:review cse:review
    Writer cse:write cse:write

    CSE has a skill for each of the four stages. An Orchestrator coordinates stages and can request a skill when it does stage work itself. Designer routine doing source research can request cse:research. Keep all these names in project configuration and the CSE rollout example. Roll out by adding the map once to an existing CSE project’s t3.json, preserving its other keys. Plugin installation on both providers is a prerequisite already met on the owner’s environment.

    Task skills. Recognize one explicit declaration format in the original brief and the linked issue body, for example Skills: cse:plot, cse:latex on its own line outside code blocks. Accept exact IDs only. Start with role defaults, then append declared issue skills, then declared brief skills, deduplicating by canonical identity. The brief can narrow the task and a task skill supplies the method for that part of the work. Read the body through the existing issue service only on eligible starts with a verified link to the destination project’s issue scope. Comments, quoted examples, arbitrary URLs, bare prose and handoff history stay out of the selector. If issue detail fails, still use the default and brief and record the lookup failure. Ordinary composer skill invocations keep their existing provider paths. apps/server/src/issue/IssueService.ts:456

    First provider submission. Use one shared preload for plain instruction skills on both providers. Treat the project map and declarations as names only. Resolve each name through the selected instance’s enabled installed-plugin catalogue, honor provider policy and invocation restrictions, and read the bounded SKILL.md body from the resolved installation. Skip missing, disabled, ambiguous, unreadable, policy-unknown or unsupported skills and report the reason. Accept plain Markdown instructions for this path. Skills that rely on native invocation features such as fork context, dynamic commands, argument expansion, hooks or tool grants stay with native invocation. Preserve the skill’s base directory for references. Never execute skill content or resolve a file path supplied by an issue or brief.

    • Codex: put the resolved bodies and the brief into the first normal user input sent to turn/start. Structured skill inputs are a viable native option, but would leave T3 with submitted IDs and no comparable evidence of loaded bodies. Use one delivery path for the configured set to avoid duplicate loading.
    • Claude: hand the same bounded context to the first SDK user message as ordinary text before the brief. That supports multiple instruction skills without stacking slash commands or replacing Claude’s main-session agent. Keep attachments, prompt priority and runtime permissions on the existing path.

    Apply at actual first-message delivery after workspace setup. Keep the stored task/message and parent history intact. A fresh provider attempt that sends the initial message gets the same selection; a continuation in an already-started provider turn and later messages do not reload it. Scope is T3-launched Codex and Claude children in shared checkouts, worktrees and linked environments. Provider-native subagents and mobile are outside this issue.

    Per-thread evidence. Record an optional structured list on the child’s existing run-attempt projection, keyed by attempt and canonical skill name. Record provider, request source (role, issue or brief), and outcome (loaded after the provider starts with the body in its input, skipped with a reason, or delivery_unknown if acknowledgement is ambiguous). Reuse the attempt upsert and preserve the field across terminal updates. An accepted input measures context delivery, not whether the model followed it. The record survives restart and deduplicates replay. Keep bodies, paths and issue text out of the telemetry. Existing Claude Skill tool results can independently show later native uses when the matching result succeeds. Codex’s normal item stream gives no equivalent record for later ad hoc loads; never infer them from mentions, discovery or shell command text. packages/contracts/src/orchestrationV2.ts:850 · apps/server/src/orchestration-v2/ProjectionStore.ts:2738 · scripts/measure_skill_use.py:95

    What this deletes. Preloading removes the need to name the four default stage skills in every delegation brief for a configured project. Update any affected CSE delegation guidance at rollout to stop asking for those repeated names there. Keep explicit task-skill routing and the existing protocol for sessions outside T3. No runtime CSE detector, global CSE toggle, second role table, provider-session wrapper or new telemetry store is needed.

    Owner decisions

    1. Opt-in source. Recommend the project’s t3.json map. A plugin-owned map plus protocol detection saves one project edit but introduces plugin metadata discovery and turns a prose protocol marker into runtime policy.
    2. Explicit task skills. Recommend additive Skills: declarations in the brief and issue body. This makes a recorded choice distinguishable from a mention in an example, discussion or old handoff. Keep stage defaults the same at both levels and leave Orchestrator empty in the CSE template.
    3. Provider loading and evidence. Recommend the shared plain-instruction preload and a durable per-attempt record. Native Codex input and native Claude invocation preserve additional skill behaviors, but the observed provider interfaces offer different multi-skill delivery and acknowledgement. Keep those behaviors on the native paths.

    Done when

    1. A project with the CSE map and both enabled plugins starts real T3 children with the correct role body in the first outbound input on each provider. Prove the four defaults, both levels, the empty Orchestrator entry and one legacy alias in focused selection tests. Confirm no preload in a project without the map, even when both plugins are installed.
    2. Prove one full two-skill start on each provider, with a task skill declared in a linked issue or brief. Cover duplicate declarations across all sources, an unlinked or unreadable issue, and an unavailable skill. Assert on the actual outbound bodies as well as the names in the record. Normal composer invocations still work.
    3. Shared, managed-worktree and remote child starts resolve the destination project and role. Cover a remote launch whose source and destination maps differ, and the older-peer case. A fresh first-message retry, native continuation, and second message each behave as specified. No duplicate records after replay or restart.
    4. Inspect the persisted child record on each provider in a configured CSE project. One successful load, one unavailable skill and one ambiguous start give distinguishable evidence. The ordinary thread transcript and permissions are preserved. Use focused provider and orchestration fixtures plus one isolated lifecycle pass per provider. Check changed files and the project-file schema. If any model-facing instructions or tool descriptions change, run the relevant free eval checks.

    Task split

    Each task is one Codex Implementor assignment. Keep the rollout behind the optional project map.

    1. Role and selection, after Consolidate usage readers and role policy onto upstream contracts #420. Deliver the project config and schema, role handoff for linked environments, explicit declarations, issue-body lookup and selection tests. Hand off the canonical ordered skill IDs and requested-source metadata at the child-start boundary.
    2. Provider delivery. Use both installed catalogues and the common first-send hook to resolve and pass the bounded bodies through the Codex and Claude user-message paths. Cover provider policy, attachments, unavailable skills, retry, continuation and two distinct bodies in each provider fixture.
    3. Evidence and rollout, after 2. Persist outcomes on the existing attempt row, prove restart and replay behavior, and verify both providers in one isolated CSE project with the map. Publish the config example with the existing project-file guidance and record the proof against this issue. Any wider rollout through CSE Setup can reuse the same project map.

    This is a source-based design. The provider fixtures and live child-start proof are implementation acceptance work.

  4. tannerpolley commented on Nov 20, 2026

    @tannerpolley
    OwnerAuthor

    Owner decisions (2026-11-20)

    The plan's three recommendations are approved:

    1. Opt-in source: a role→skill map in each project's t3.json.
    2. Task skills: explicit, additive Skills: lines in the brief or the issue body.
    3. Loading: the shared plain-instruction preload on both providers, plus a durable per-attempt record of what loaded.

    #420 has merged (62a31de), so build the plan's task split in order.

  5. tannerpolley commented on Nov 20, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code status: Done

    Issue: #430 Auto-load the matching CSE skill for each child role in CSE-enabled projects

    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6433229195%3Afirst

    Model: gpt-6.2-sol

    Branch: issue-430-auto-load-the-matching-cse-skill-for

    Updated: 2026-11-21T03:33:00.406Z

  6. tannerpolley commented on Nov 20, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #430 Auto-load the matching CSE skill for each child role in CSE-enabled projects
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6433229195%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-430-auto-load-the-matching-cse-skill-for
    Completed: 2026-11-20T23:56:42.112Z

    Implemented #430 in local commit dd942a1465. A project’s roleSkills map now loads the matching installed CSE skill into the first prompt sent to a delegated Codex or Claude child. Explicit Skills: lines in the linked issue body or delegation brief add task skills, with duplicates removed. Each run attempt records whether delivery was acknowledged, skipped, or uncertain. CSE configuration example

    Verified both outbound provider payloads, all four CSE defaults against isolated installed catalogues, and persistence through SQLite replay. The changed-files run passed 1,203 tests. After the final Claude policy adjustment, 33 focused tests and the server typecheck passed.

    Three mobile type errors reproduced on clean main still block a fully green check:changed. Live model turns remain unverified. The worktree is clean, and the commit is local only.

  7. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #430 Auto-load the matching CSE skill for each child role in CSE-enabled projects
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6433229195%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-430-auto-load-the-matching-cse-skill-for
    Completed: 2026-11-21T00:00:36.972Z

    PR #534 (draft), head dd942a1, checks none reported by GitHub.

  8. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: failed

    Issue: #430 Auto-load the matching CSE skill for each child role in CSE-enabled projects
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6433229195%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-430-auto-load-the-matching-cse-skill-for
    Completed: 2026-11-21T00:39:02.206Z

    The provider could not start this turn. Retry the turn; if it keeps failing, check the provider setup and server logs.

  9. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: failed

    Issue: #430 Auto-load the matching CSE skill for each child role in CSE-enabled projects
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6433229195%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-430-auto-load-the-matching-cse-skill-for
    Completed: 2026-11-21T00:50:33.558Z

    The provider could not start this turn. Retry the turn; if it keeps failing, check the provider setup and server logs.

  10. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: failed

    Issue: #430 Auto-load the matching CSE skill for each child role in CSE-enabled projects
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6433229195%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-430-auto-load-the-matching-cse-skill-for
    Completed: 2026-11-21T02:12:47.994Z

    Codex request 'thread/start' (108) timed out after 60000ms; closing the transport.

    Last assistant message before the run failed:

    The PR still points to dd942a1465, and the recovered changes passed all 69 focused tests. I’ll now run the regression assertions against the original production code to verify that they catch each finding.

  11. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #430 Auto-load the matching CSE skill for each child role in CSE-enabled projects
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6433229195%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-430-auto-load-the-matching-cse-skill-for
    Completed: 2026-11-21T03:13:48.332Z

    Resolved the conflict with main in PR #534, regenerated the agent-context budget from the merged code, and pushed 9c486599f8. Git confirmed the updated branch merges cleanly with main.

    All 2,757 tests passed on Node 26.13.1. The only check:changed failures were the three known mobile type errors.

  12. tannerpolley commented on Nov 21, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #430 Auto-load the matching CSE skill for each child role in CSE-enabled projects
    Thread: thread:delegated-task:milestone-issue%3Athread%3Adelegated-task%3Arepository-handoff%253A421f7a75-1bf7-49e2-abb0-448fcf274ea0%3A8%3A6433229195%3Afirst
    Model: gpt-6.2-sol
    Branch: issue-430-auto-load-the-matching-cse-skill-for
    Completed: 2026-11-21T03:33:00.721Z

    1. Nested children select skills from their own role, brief, and issue. Test: creates a subagent with its own skill selection and keeps the parent's workspace.
    2. A steering restart into a new provider conversation preloads skills from the original brief. Test: records only the skills sent for steering restart in a new provider conversation.
    3. A steering restart in the same conversation suppresses duplicate preload when delivery is unknown. Test: records only the skills sent for steering restart in the same conversation with delivery unknown.

    PR #534, head d0a676b18afe778917584044b44d5f3eed53c932, checks: all three regressions reproduced on 9c486599f8, and 1,367 tests passed after the fix. check:changed failed only on the three known mobile type errors. GitHub reported no checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions