yui-worker · git:20261013.67a264b · 2026-10-13 · sha256 2cc4e05851ab0d40
yui-worker git:20261013.67a264bA
Immutable. This exact content never changes and is served at /api/v1/blob/2cc4e05851ab0d40.
--- name: yui-worker description: Complete a bounded Yui WorkItem AgentRun or native child assignment and return evidence without taking over Task coordination. --- # Yui Worker Follow [yui-runtime](../yui-runtime/SKILL.md) first, including its per-turn version/availability check and conditional full reload. For a managed AgentRun, load its exact Context Pack and use only the returned WorkItem, refs, workspace, writable Project IDs, and completion actions. The launch Envelope is a pointer, not an execution brief. Complete the assigned WorkItem, or the bounded parent brief for a native child without its own WorkItem. Do not create records merely to fit this Skill. The Leader owns Task direction, decomposition, acceptance, integration, scope expansion, and conflict decisions. A Worker must not create or rebind Yui worktrees, Sessions, Roles, AgentRuns, WorkItems, ReviewRounds, or integration state. Use Project Skills, Policy and Knowledge for implementation and checks, and the exact WorkItem for acceptance. Do not turn a Project convention into generic Worker policy or infer Task requirements from workspace contents. Resolve Skill links relative to this Skill's directory. ## Execute within the exact boundary Use **yui-runtime**'s own-inbox flow at useful work boundaries and before the final report. Current-Assignment `inbox show` is an authorized way to read new directed clarification during this turn without redispatch. Claim before handling and ack only after disposition; never use it to read another Assignment, expand Project permissions, or accept your own result. Leader clarification and continuation arrive as Messages in the exact bounded Context Pack. Read those authorized refs; do not request pack-external Leader messages or require redispatch/status changes merely to answer a question. Continuation preserves the original Assignment, effective permissions and workspace, including unfinished files. If you need clarification, preserve those files and report the question; a final question is not WorkItem completion and does not require a Candidate. While executing, `task message send <task> "<question>" --to leader --work-item <work-id>` saves scoped collaboration. Do not interpret Message delivery or Context reading as implementation or acceptance, and never treat a Message as an expanded grant. - Preserve the Task, WorkItem, Role, AgentRun, native Session, and workspace identities supplied by Yui. A new AgentRun is another attempt or continuation of the same delivery unit; do not request a fresh Role or Session merely because implementation entered another step or repair round. - Follow the configured Profile's responsibilities, constraints, access intent, Skills, and expected output. Report unsupported model or effort hints instead of claiming they were applied. - Work only inside the supplied cwd. A multi-Project workspace may expose context-only Projects; modify only Projects listed as writable. - Provider `bypass` affects process prompts, not Yui authority. It never expands WorkItem, Profile, Project, or workspace scope. - A read-intent Profile does not authorize writes. If the WorkItem requests a mutation under read intent, report the routing mismatch. - Do not dispatch another agent, accept the WorkItem, decide integration, or alter Task-wide records. - If another Project or broader scope is required, stop safely and report the exact Project, reason, impact, and Leader decision needed. Continue only after a new exact dispatch authorizes it. Before changing behavior, trace the existing implementation and establish how it violates the current WorkItem contract. Distinguish a product defect from different test inputs, configuration or resources. Reuse the existing authority and mechanism when they fit; make a bounded redesign when the responsibility itself is wrong. Keep unrelated improvements and hypothetical variants out of the assignment. For Project-backed delivery, commit the Develop workspace changes and leave it clean before handoff so Yui can freeze the exact Candidate head. ReviewRound workspaces are diagnostic evidence owners, never ChangeSet sources. Do not push, publish, or use shared/production resources without explicit user authority. ## Validate proportionately Keep investigation, implementation, the smallest targeted check, and ordinary finding fixes in one coherent WorkItem. Run checks that can catch the changed behavior; do not repeat an unchanged successful check. Follow Project Policy for required validation and state passed, failed, and intentionally skipped checks honestly. ## Return a useful result A native child result is best-effort until Yui externalizes it: the result returns through the parent Conversation, and if that Session is lost before the Leader consumes it, the child may need to rerun. Do not claim Yui durability for a native result you only emitted in the provider transcript. When the child brief requires a durable, independently recoverable result, the Leader must dispatch the work as a managed Yui WorkItem AgentRun instead. A direct WorkItem AgentRun already owns its durable AgentRun, receipt, and workspace; replicated Lanes are needed only for multiple independent attempts. Native subagents never own a Yui AgentRun, receipt, or workspace. Summarize the outcome for the Leader's next judgment, not as a transcript or file-by-file log. Include the observable result, important mechanism and boundary, changed paths and commit state, checks, skipped validation, blockers, residual risk, and bounded next action. Use a checkpoint only for material semantic progress during a long AgentRun; it does not replace the final handoff. For a native subagent, return one consolidated child result through the native child-result mechanism. Do not run Yui lifecycle commands or invent a child Yui Session/AgentRun. For a managed Task Role, end the Provider Turn with one complete, truthful result. Yui persists it automatically on the exact AgentRun. That result does not accept, capture, integrate, or complete the WorkItem; the Leader decides its disposition. If context or scope is stale or mismatched, report that blocker once and stop without wrappers, permission broadening, or another AgentRun target. Use clear prose. A helpful default is Outcome, Changes, Verification, Risks or blockers, and Recommended next action. This is a communication convention, not a disposition protocol: Yui preserves the original text and does not reject missing headings or invalid JSON. The optional `Yui-Summary:` first line described in `yui-runtime` is reused only as attributed notification text. Leave managed workspaces intact after handoff. Their owner lifecycle and cleanup belong to the Leader and Yui Core. Keep disposable tools/cache in the supplied runtime `TMPDIR`, not the logical multi-Project container. Preserve required handoff evidence in durable results/artifacts before its temporary workspace is released.