codex-lane-worker
Bounded Codex Lane writer protocol for one assigned task. Use only when the lane runtime assigns this worker.
File-based task contracts under .agents/runs/ with owns_paths, verification tiers L0/L1/L2, and solo merge rules. Use when authoring or reviewing task YAML / the task-v2 contract (Lane Pilot `plan`), owns_paths, acceptance, or verification commands; `$ARGUMENTS` exactly info
$ npx -y skills add VKirill/claude-lane-stack --skill lane-contract --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/lane-contractContext preview
The summary Claude sees to decide when to auto-load this skill.
File-based task contracts under .agents/runs/ with owns_paths, verification tiers L0/L1/L2, and solo merge rules. Use when authoring or reviewing task YAML / the task-v2 contract (Lane Pilot `plan`), owns_paths, acceptance, or verification commands; `$ARGUMENTS` exactly info
name: lane-contract description: File-based task contracts under .agents/runs/ with owns_paths, verification tiers L0/L1/L2, and solo merge rules. Use when authoring or reviewing task YAML / the task-v2 contract (Lane Pilot `plan`), owns_paths, acceptance, or verification commands; `$ARGUMENTS` exactly info prints the card. argument-hint: "[info]"
> **Inside a Lane Pilot chat** (`LANE_PILOT_AGENT_TYPE` set / tools `lane_pilot_*` present) the contract is the task-v2 JSON in the `plan` of `lane_pilot_dispatch_writer`, and its schema is strict: exactly `schema_version`, `id`, `title`, `risk`, `lane`, `project_cwd`, `read_first`, `interfaces`, `invariants`, `out_of_scope`, `expected_outputs`, `owns_paths`, `never_touch`, `depends_on`, `objective`, `acceptance`, `verify`, `verification[{command, cwd, timeout_sec?}]` (`timeout_sec` up to 7200). Any other field (`context_selectors`, `impact_*`, `skills`) makes Lane Pilot reject the whole contract: put line windows in `objective` or `interfaces` as `path:start-end`. The writer RUNS `verification` and Lane Pilot re-runs it at acceptance, so every task needs real verification commands. Lane Pilot owns run state; `run-init`, `run-validate --phase`, `lane-ctl`, `run-supervisor`, the L0 rule «writer does not run tests» and `lane = adoc main_write` below are the terminal Lane Stack harness.
If `$ARGUMENTS` is exactly `info`, print `references/info.md` verbatim (Russian), then stop. Do not write task YAML.
Canonical: `FILE-CONTRACT.md`, `SOLO-ORCHESTRATION.md`, `docs/decisions/ADR-codex-effort.md`, skill **orchestrator-lanes** (`references/decomposition.md`).
---
1. `run-init` → fill PLAN/SPEC/tasks → `run-validate --phase pre-dispatch` before dispatch. 2. Set **`owns_paths`**, **`never_touch`**, behavioral **`acceptance`**. 3. **`read_first`**: existing project-relative files only. Line windows go in **`context_selectors`**. **`interfaces`**: signatures/types, or `[]`. Product **`invariants`** / **`out_of_scope`**; never writer recovery. **`expected_outputs`**: artifact path, not “tests green”. 4. One `run-supervisor` per run; `lane-supervisor` only for typed one-shots. 5. Parallel only with **disjoint** owns_paths. 6. Controller: owns → L1 verify → accept **progressively**. 7. Task YAML immutable after first start. 8. Pre-merge validate → merge main (PM only). 9. Writers via durable controller (kimi/…); Codex write = recovery only. 10. Separate provider vs verification pools. 11. **Decompose** per orchestrator-lanes `references/decomposition.md` (one outcome per task; unlock ≠ feature). 12. **SPEC.md** is real content when score ≥ 7 or ≥ 2 tasks (not the template stub).
---
---
1. Read the complete raw task YAML supplied in the prompt; open TASK_FILE if absent or uncertain. 2. Work only in `PROJECT_CWD`. 3. Edit **only** `owns_paths`. Honor `never_touch`. 4. Do not write `.agents`. 5. Do **not** run tests/typecheck/`verification[]`; L1 is `lane-ctl verify`. Report in English. 6. No git merge/push main. 7. Outside-owns build break → report Gaps, do not “fix the world”. 8. Do not run monorepo suites or Worker checks.
---
Identity (must match adoc / run): `schema_version`, `id`, `title`, `risk`, `lane`, `project_cwd`.
| Field | What the machine uses | Fill | Leave empty / omit | |-------|----------------------|------|-------------------| | `objective` | Writer TZ (prompt) | One product outcome, behavior | never | | `acceptance` | Report + PM | Observable behavior | never | | `owns_paths` | Owns gate | Every path the outcome must edit | never | | `never_touch` | Owns gate | Secrets / unrelated | `.env*` minimum | | `read_first` | P
Claude Lane Stack is a self-hosted toolkit for coordinating coding agents through CLI processes, task contracts, Git workspaces, and verification receipts (bin/run-controller:117-159, schemas/task-v2.schema.json:1-60).
Bounded Codex Lane writer protocol for one assigned task. Use only when the lane runtime assigns this worker.
Operate Claude Lane Stack schema-v2 runs from Codex. Use for lane status, start, resume, review, verification, evidence, or…
Детекция и коррекция AI-сгенерированного текста по методике DrMax LinguaForensic v3.9.4 (284 лингвистических признака + 16…
Owner-facing architect for a new app or service. Plain-language chat; living plan artifacts on disk. Use when user says…
Live browser QA + Playwright-compatible replay. Disk .agents/qa/. Use when (terminal Lane Stack): проверь в браузере, кликни…
Delegate fat file reads to the project's pm_read worker. Use when a Read/cat/head/tail/sed of a file over pm_read.min_lines was…