worktree-isolation
Worktree isolation for parallel agent execution in the pipeline
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 109
- Forks
- 73
01 前言 Front Matter
- name
- worktree-isolation
- description
- Worktree isolation for parallel agent execution in the pipeline
- compatibility
- omp
03 SKILL.md 正文
OMP Native Task Isolation
This skill defines isolation policy for implementation fan-out on OMP. The native task tool
owns workspace materialization, patch/branch integration, and cleanup.
Activation
Use per-item isolation only when all conditions hold:
- the current dynamic
taskschema exposesisolated; - OMP settings enable a non-
noneisolation mode; - the project is a git repository;
- the item writes files;
- ownership is disjoint from every concurrent item.
Do not request isolation for --solo, read-only work, overlapping ownership, shared migration
numbering, or an environment where the field is absent. Missing required isolation is a blocker,
not permission to imitate it with shell commands.
Native Dispatch Contract
Inspect the current dynamic schema before each wave. When it exposes batch mode, dispatch
independent isolated work in one batch with top-level i and shared context. Each item uses a
unique stable name, a complete assignment, the discovered isolation field enabled, the strict
five-field receipt schema, and schemaMode: strict. Writing items omit the agent field so they
run on the bundled task agent; select scout, reviewer, security-reviewer, or sonic only
when that agent's built-in boundary is what the item needs. When batch mode is absent, dispatch
the corresponding flat calls and reference one shared local:// context.
The parent must check dynamic availability before adding isolated or effort. isolated does
not exist when task.isolation.mode = none, and effort does not exist when its setting is off.
Omit either unsupported field rather than sending it from a static example.
Ownership Preflight
Before fan-out:
- normalize every owned and forbidden path to a project-relative path;
- reject absolute paths, traversal, symlinks, nested ownership, and ambiguous globs;
- detect exact overlap and directory-prefix containment;
- serialize tasks that share a generated artifact, migration directory, package manifest, lockfile, schema registry, or other mutable authority;
- put cross-task interfaces in top-level
contextbefore dispatch.
A maximum of five isolated implementation items may be active in one wave. Queue overflow by task id. This policy is stricter than OMP's session-wide semaphore and prevents excessive integration churn.
Tool-Owned Lifecycle
For an isolated item, OMP:
- captures the parent baseline;
- creates the configured isolated workspace;
- runs the child in that workspace;
- captures a patch or commits a temporary task branch according to OMP settings;
- applies or merges the result into the parent through the task lifecycle;
- cleans the isolated workspace;
- preserves output, transcript, and patch metadata through
agent://andhistory://.
The Autopus parent must not run manual worktree creation, branch merge, cherry-pick, stash, reset,
or removal commands. It verifies the returned changed_files, ownership boundary, blockers, and
parent-tree result after OMP completes integration. Nested repositories are handled by OMP's nested
patch lifecycle and must not be merged manually.
Sequential Work
A task is sequential when it depends on an earlier result, overlaps ownership, or shares a migration numbering lane. Dispatch it only after the prerequisite result is visible in the parent workspace. Do not use an isolated batch to hide a dependency edge.
Failure and Conflict Handling
- A failed isolated run is terminal and not revivable because its workspace has been cleaned.
- Keep the transcript and patch metadata as evidence.
- If integration fails, stop the next wave and report the exact OMP lifecycle error.
- Never bypass a failed patch/branch integration with destructive git commands.
- A correction is a new explicitly named task with freshly declared ownership and context.
- Cancel still-running jobs with
write proc://<id>/kill(OMP 18.3+) orhubwith top-leveli(older OMP); preserve user-owned changes and unrelated jobs.
Receipt Verification
Every isolated worker returns exactly:
owned_pathschanged_filesverificationblockersnext_required_step
The main session rejects missing fields, out-of-scope changes, body dumps, secret material, or claims without observable verification. Integration is complete only after the parent sees the intended changes and the next deterministic gate passes.
04 同仓库更多 Skills
qa-hunt
만든 것을 실제로 실행·조작하며 버그를 찾아내고, 재현 스크립트로 확인된 버그만 보고하는 탐색형 QA 스킬
qa-autopilot
수락 기준에서 테스트·사용자 시나리오를 만들고 실행·분류·수정·재검증까지 무인으로 돌리는 QA 자동화 스킬
playwright-cli
playwright-cli를 사용한 브라우저 자동화 — 폼 입력, 스크린샷, 테스트 생성, 세션 관리
lore-commit
Lore 커밋 메시지 작성 및 의사결정 기록 스킬
auto
暂无简介
verification
구현 결과 검증 및 품질 게이트 통과 스킬