Repository navigation
feat(meta-mode): bind playbooks to T3 Code native primitives - #38
Merged
Merged
Conversation
Add a portable host-binding layer. Playbooks and the recall and create-verification-skill workflows point to a per-host reference under references/hosts/ when the host provides native delegation, PR watching, scheduling, thread history, or browser and simulator tools, and otherwise behave unchanged. The T3 Code references map each capability to the verified T3 MCP tool, its limits, and the rules that must not change. validate.mjs now fails when a T3-only tool name appears under skills/ outside a references/hosts/ directory. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The identifier regex held literal backspace characters instead of word boundaries, so it matched nothing. Rewrite it as a shared helper and add negative fixtures for bogus thread, preview, and device tools plus a check that the real host references name many verified tools. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ding T3 clears a merged PR's watch without waking the thread, so a turn ended on a green wake is never resumed by the merge. The host reference now adds a bounded schedule_task confirmation wake for merge waits. Also match list_scheduled_tasks in the host-tool gate, assert every verified tool is caught by it, and let create-verification-skill try portable drivers before declaring a path blocked. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
T3 scheduled tasks have no expiry and nothing cleans up after a Stop or crash. The reference now has the task delete itself on merge, close, hard-fail, a 6-hour deadline, or an exhausted run counter embedded in its prompt, uses a discoverable title, sweeps stale tasks at the start of later runs, and requires the final reply to name the task and how to delete it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Inside T3 Code, mstack skills run beside T3's native primitives without using them.
babysitdrives the Bunwatch-prunder/loop,meta-modeandorchestratedelegate throughrun-role(children are invisible in T3's Agents UI and Stop does not reach them),recallcannot read T3 threads,/loopis the only unattended wake, andcreate-verification-skillhas no path to T3's browser or simulator tools. CONTRIBUTING.md forbids hardcoding a delegation API into the skills, so a fork-style rewrite is out.This adds a portable host-binding layer. Playbooks name capabilities and add one pointer sentence: on a host with native delegation, PR-watching, scheduling, history, or browser tools, read its file under
references/hosts/first, otherwise continue unchanged.skills/meta-mode/references/hosts/t3code.md: host detection (thet3-codeMCP tools, oneorchestrator_capabilitiesprobe, matchingdocs/session-context/T3-CODE.md), a capability to T3 tool table with limits, fallbacks, and the rules that do not change (no merge on a wake, child modes cannot exceed the parent, a full brief on everydelegate_taskround, not3_thread_launchfor plain "subagent" requests,clientRequestIdcaveats).hosts/t3code.mdfiles forrecall(T3 thread search and read) andcreate-verification-skill(preview_*anddevice_*as drivers and evidence).meta-mode/SKILL.md,babysit,orchestrate,autonomous-run,autopilot-full,multi-phase-plan,shipping,session-pickup,capability-matrix.md,history-sources.md,harness-paths.md, anddocs/guide/07-overnight.md. None names a T3 tool.scripts/validate.mjs(viahost-binding-lib.mjs) fails when a T3-only tool name appears underskills/outsideskills/*/references/hosts/.scripts/host-binding.test.mjsis table-driven and also checks that every tool named in a host reference is on a verified list.docs/t3code.md"Orchestration overlap" now describes the binding.docs/session-context/T3-CODE.mddoes not contradict it and is unchanged.Some details differ from what the T3 prompt text suggests, and the reference records them. Model and provider go in
delegate_task'starget, not at the top level.run_scheduled_task_nowtakestaskIdwhile its siblings takescheduledTaskId. A merge endswatch_pull_requestwithout a wake. A delegated child cannot watch a PR.Verification:
8f75697(mcp/toolkits/*,packages/contracts,T3OrchestrationInstructions.ts,RuntimeInstructions.ts,PullRequestWatchReactor.ts). Nothing was run against a live T3.npm testpasses (630 tests) on Windows.check-upstream --strictandskill-baseline --checkpass against the pinned pstack and mattpocock checkouts. The skill baseline and themeta-modecanonical digest are refreshed, anddocs/guide/07-overnight.mdis recorded as a reviewed adaptation, since the upstream guide pin covers it.scripts/check-package.mjsfails locally withspawnSync npm ENOENTon Windows. It does not touch these changes.Model: Claude Sonnet 5.5
Harness: Claude Code
🤖 Generated with Claude Code