[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79DW33AEPBCXFAMX8YH56PG":3,"skill-same:01M79DW33AEPBCXFAMX8YH56PG":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":14,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":62},"01M79DW33AEPBCXFAMX8YH56PG","harness-work",null,"HAR: Execute Plans.md tasks from single task to full parallel team run. Trigger: implement, execute, do everything, breezing, team run, parallel. Do NOT load for: planning, review, release, setup.","foden303\u002Fharness","foden303","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F77870743?v=4","01M79DK06BJVG7HTKT05FM221X","Foden Ngo","01M79DK071J1HMYV20FJSMG71X",0,"MIT","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fharness-work\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: harness-work\ndescription: \"HAR: Execute Plans.md tasks from single task to full parallel team run. Trigger: implement, execute, do everything, breezing, team run, parallel. Do NOT load for: planning, review, release, setup.\"\ndescription-en: \"HAR: Execute Plans.md tasks from single task to full parallel team run. Trigger: implement, execute, do everything, breezing, team run, parallel. Do NOT load for: planning, review, release, setup.\"\nkind: workflow\npurpose: \"Execute Plans.md tasks end to end\"\ntrigger: \"implement, execute, do everything, breezing, team run, parallel\"\nshape: workflow\nrole: executor\npair: harness-review\nowner: harness-core\nsince: \"2026-05-05\"\nallowed-tools: [\"Read\", \"Write\", \"Edit\", \"Grep\", \"Glob\", \"Bash\", \"Task\", \"Monitor\"]\nargument-hint: \"[all] [task-number|range] [--parallel N] [--no-commit] [--resume id] [--breezing] [--auto-mode] [--tdd-bypass]\"\nuser-invocable: true\neffort: high\n---\n\n# Harness Work\n\nThe unified execution skill for Harness.\nIt consolidates the following legacy skills:\n\n- `work` — Implement Plans.md tasks (automatic scope detection)\n- `impl` — Feature implementation (task-based)\n- `breezing` — Fully automated team run\n- `parallel-workflows` — Parallel workflow optimization\n- `ci` — Recovery from CI failures\n\n## Quick Reference\n\n| User input | Mode | Behavior |\n|------------|--------|------|\n| `\u002Fharness-work` | **auto** | Auto-decides by task count (see below) |\n| `\u002Fharness-work all` | **auto** | Run all incomplete tasks in auto mode |\n| `\u002Fharness-work 3` | solo | Run only task 3 immediately |\n| `\u002Fharness-work --parallel 5` | parallel | Run in parallel with 5 workers (forced) |\n| `\u002Fharness-work --breezing` | breezing | Force team execution |\n| `\u002Fharness-work 3 --plan roadmap` | solo | Run task 3 from the named plan `roadmap` |\n\n## Execution Mode Auto Selection (when no flag is given)\n\nWhen no explicit mode flag (`--parallel`, `--breezing`) is present,\nselect the optimal mode based on the number of target tasks:\n\n| Number of target tasks | Auto-selected mode | Reason |\n|-------------|---------------|------|\n| **1 task** | Solo | Minimal overhead. Direct implementation is fastest |\n| **2–3 tasks** | Parallel (Task tool) | The threshold where worker separation starts to pay off |\n| **4 or more tasks** | Breezing | Three-way separation of Lead coordination + Worker parallelism + independent Reviewer is effective |\n\n### Rules\n\n1. **An explicit flag always overrides auto mode**\n   - `--parallel N` → Parallel mode (regardless of task count)\n   - `--breezing` → Breezing mode (regardless of task count)\n\n## Orchestration wiring\n\nThe Breezing team implements with native Claude Workers spawned via the Agent\ntool (`agents\u002Fworker.md`), and the Lead aggregates their results. That is the\nwhole dispatch path.\n\nAn alternate in-process orchestrator (`harness work --team`, with the opt-in\n`HARNESS_TEAM_HIERARCHY=sublead` Producer\u002FSub-Lead hierarchy and the\n`HARNESS_REVIEW_ITERATE` loop) existed before v1.0.0. It drove work through\nper-backend companion shell scripts, which were removed along with the\nnon-Claude backends, so the path could only exit 127. It was deleted rather\nthan left in place as a switch that silently fails; parallelism and\nreview-iteration both live in the skill layer above.\n\n## Options\n\n| Option | Description | Default |\n|----------|------|----------|\n| `all` | Target all incomplete tasks | - |\n| `N` or `N-M` | Task number\u002Frange | - |\n| `--parallel N` | Number of parallel workers | auto |\n| `--sequential` | Force serial execution | - |\n| `--plan NAME` | Use the named plan from `plans\u002Fmanifest.json` | active\u002Fdefault |\n| `--no-commit` | Suppress automatic commit | false |\n| `--resume \u003Cid\\|latest>` | Resume the previous session. After a long gap, using `\u002Frecap` alongside is recommended | - |\n| `--breezing` | Team execution of Lead\u002FWorker\u002FReviewer | false |\n| `--no-tdd` | Skip the TDD phase | false |\n| `--tdd-bypass` | Bypass TDD enforcement only in emergencies. Record `HARNESS_TDD_BYPASS_REASON` or an explicit reason in the audit | false |\n| `--no-simplify` | Skip Auto-Refinement | false |\n| `--auto-mode` | Explicitly enable the Harness-side Auto Mode rollout. Distinct from `--enable-auto-mode`, which became unnecessary in CC 2.1.111 | false |\n\n## Progressive Disclosure\n\nFirst read only the entry point, auto selection, and stop conditions in this body.\nRead the details only when you need them.\n\n| Detail | Reference |\n|---|---|\n| Concrete steps for Solo \u002F Parallel \u002F Breezing | `references\u002Fexecution-modes.md` |\n| Reviewer agent, AI Residuals, correction loop | `references\u002Freview-loop.md` |\n| Generating Solo \u002F Breezing completion reports | `references\u002Fcompletion-report.md` |\n| Reticketing on test\u002FCI failure | `references\u002Ffailure-reticketing.md` |\n| Criteria for the spec SSOT check | `docs\u002Fplans\u002Fspec-ssot.md` |\n\n### Important stop conditions\n\n- Stop when `Plans.md` is in the old format and DoD \u002F Depends \u002F Status cannot be read.\n- When the spec affects an implementation decision but the project spec SSOT is not found, create\u002Fupdate the spec SSOT first, then implement.\n- Do not proceed to implementation when a sprint-contract is required but not ready.\n- Do not mark complete while a critical \u002F major review finding remains.\n- Do not resolve by weakening tests, skipping them, or loosening expected values to match the implementation.\n- Call helper scripts from `${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002F`, not the host project's `scripts\u002F`.\n- When multiple Plans.md exist, do not switch plans within a single run. If needed, start a new run with an explicit `--plan NAME`.\n\n> **Token Optimization (v2.1.69+)**: For lightweight tasks that do not involve git operations,\n> you can reduce prompt tokens by enabling `includeGitInstructions: false` in the plugin settings.\n\n> **Prompt Cache (CC 2.1.108+)**: For longer implementations or work that uses `--resume` heavily,\n> prefer `ENABLE_PROMPT_CACHING_1H=1`.\n\n## Scope dialog (when no argument is given)\n\n```\n\u002Fharness-work\nHow far should I go?\n1) Next task: the next incomplete task in Plans.md → run as Solo\n2) Everything (recommended): complete all remaining tasks → auto mode selection by task count\n3) By number: enter task numbers (e.g., 3, 5-7) → auto mode selection by count\n```\n\nWith an argument, run immediately (skip the dialog):\n- `\u002Fharness-work all` → all tasks, auto mode selection\n- `\u002Fharness-work 3-6` → 4 tasks, so Breezing is auto-selected\n\n## Effort level control (Opus 4.8 \u002F v2.1.111+)\n\nEffort is the official knob for choosing the model's reasoning intensity. It has 4 levels `low(○)\u002Fmedium(◐)\u002Fhigh(●)\u002Fxhigh`,\nand you can reset to the default with `\u002Feffort auto` (`max` was removed in v2.1.72; `xhigh` is its successor).\n\nIn Opus 4.8, thinking is off by default and effort is the main lever for reasoning depth (effort has a larger impact than in any prior Opus).\nIf you observe \"shallow reasoning,\" do not work around it in the prompt — raise the effort.\nTherefore, to strengthen complex tasks we **retire the approach of injecting a free-text marker (the old `ultrathink`) into the spawn prompt**\nand standardize on **choosing the Worker spawn's effort tier from a complexity score**.\nThis is consistent with `docs\u002Fmodel-routing-policy.md` (do not infer effort from free text):\nthe effort tier, including `xhigh`, is chosen by the caller.\n\n### Multi-factor scoring\n\nAt task start, sum up the following scores.\n\n| Factor | Condition | Score |\n|------|------|--------|\n| File count | 4 or more files changed | +1 |\n| Directory | Includes core\u002F, guardrails\u002F, security\u002F | +1 |\n| Keyword | Includes architecture, security, design, migration | +1 |\n| Failure history | Agent memory has a failure record for the same task | +2 |\n| Explicit designation | The PM template has `effort: high` \u002F `effort: xhigh` (the old `ultrathink` is also accepted for compatibility) | +3 (auto-adopted) |\n\n### How to decide the effort tier (do not inject)\n\nDecide the effort tier from the score as an **escalation signal** (do **not** write a marker string like `ultrathink` into the spawn prompt).\nThe only two levers to apply are:\n\n- **session `\u002Feffort`**: before entering a batch of complex tasks, the host sets `\u002Feffort high` \u002F `\u002Feffort xhigh` (a reliable lever that works per session).\n- **worker frontmatter**: the `effort` in `agents\u002Fworker.md` (default `medium`) is the floor. Because CC's Agent \u002F Task spawn API does not expose a per-spawn effort setting, there is no mechanism to raise effort per individual worker. Record the score in `task_complexity_note` of `worker-report.v1`, giving the Lead material for deciding whether to raise the session effort.\n\n| Score | code-risk (includes core\u002Fguardrails\u002Fsecurity\u002Farchitecture\u002Fmigration) | effort tier |\n|--------|-----------------------------------|-------------|\n| 0-2 | n\u002Fa | `medium` (Worker frontmatter default unchanged) |\n| ≥ 3 | no | `high` |\n| ≥ 3 | yes | `xhigh` |\n\nThe same logic applies in breezing mode as well (harness-work manages it in one place).\nSince the Worker is Sonnet 4.6, `xhigh` is effectively downgraded to `high`, but raising the tier itself is still effective (`docs\u002Feffort-level-policy.md`).\n\n## Execution mode details\n\n### Harness helper script root\n\nHelper scripts bundled with Harness must always be called from the plugin bundle root, not from the target project's `scripts\u002F`.\n\n```bash\nHARNESS_PLUGIN_ROOT=\"${HARNESS_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-}}\"\nif [ -z \"$HARNESS_PLUGIN_ROOT\" ] && [ -n \"${CLAUDE_SKILL_DIR:-}\" ]; then\n  probe=\"$(cd \"${CLAUDE_SKILL_DIR}\" && pwd)\"\n  while [ \"$probe\" != \"\u002F\" ] && [ ! -d \"$probe\u002Fscripts\" ]; do\n    probe=\"$(cd \"$probe\u002F..\" && pwd)\"\n  done\n  [ -d \"$probe\u002Fscripts\" ] && HARNESS_PLUGIN_ROOT=\"$probe\"\nfi\n```\n\nThe subsequent `node \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002F...\"` \u002F `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002F...\"` calls assume this resolved root.\n\n### Solo mode (auto-selected for 1 task)\n\n1. Load Plans.md and identify the target task\n   - **If Plans.md does not exist**: auto-call `harness-plan create --ci` → generate Plans.md and continue\n   - If the header lacks DoD \u002F Depends columns: `Plans.md is in the old format. Please regenerate it with harness-plan create.` → **Stop**\n   - **If the conversation contains tasks not recorded in Plans.md**: extract the requirements from the recent conversation context and auto-append them to Plans.md as `cc:TODO`\n     - Extraction logic: detect action verbs (\"add ~\", \"fix ~\", \"implement ~\") in the user's utterances\n     - When appending, conform to the v2 format (Task \u002F Content \u002F DoD \u002F Depends \u002F Status)\n     - After appending, show the user \"The following was appended to Plans.md\" (prompt with a 5-second timeout, default: continue)\n1.5. **Task background check** (30 seconds):\n   - From the task's \"Content\" and \"DoD\", infer and display the **purpose** (the problem this task solves) in one line\n   - Use `git grep` \u002F `Glob` to infer and display the **scope of impact** (files\u002Fmodules the change reaches)\n   - If confident in the inference: proceed directly to implementation (no flow delay)\n   - If not confident in the inference: ask the user just one question (\"Is this understanding correct?\")\n1.6. **Spec SSOT preflight**:\n   - Look for an existing project spec SSOT (e.g., `docs\u002Fspec\u002F00-project-spec.md`, `docs\u002FARCHITECTURE.md`, `docs\u002FHANDOFF.md`, `docs\u002Foem\u002FPROJECT_COMPASS.md`, `docs\u002Fspecs\u002F`)\n   - If the task changes product behavior \u002F API \u002F data model \u002F permissions \u002F billing \u002F integrations \u002F tenant boundaries and no spec exists, create `docs\u002Fspec\u002F00-project-spec.md`\n   - If the spec is stale or contradicts the task, update the spec before implementation\n   - For typo \u002F format \u002F dependency bump \u002F docs-only \u002F behavior-preserving refactor, record the skip reason and continue\n   - Include `spec_path` or `spec_skip_reason` in the context passed to Worker \u002F Reviewer\n1.7. **Load plan-time pre-approvals**:\n   - At the start of the run, if `.claude\u002Fstate\u002Fplan-preapprovals.json` exists, read it and validate against `templates\u002Fschemas\u002Fplan-preapproval.v1.json` (helper: `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fplan-preapproval.sh\" validate .claude\u002Fstate\u002Fplan-preapprovals.json`).\n   - Treat only items matching the target task's `scope.phase` \u002F `scope.task` and with `decision: approved` as pre-declared items for this run.\n   - For a pre-declared `secret-read`, reflect it per-run into `runtimefloor.secretAllow` of the project config `.harness.config.json` via `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fplan-preapproval.sh\" apply-secret-allow \"$PROJECT_ROOT\"` before proceeding to implementation. This is a procedure that connects to the project-config-based runtime floor of 108.2; it is not a broad, permanent env allow.\n   - Pass pre-declared external sends \u002F destructive operations to the worker briefing and sprint-contract context as \"plan-approved,\" and do not emit an AskUserQuestion during work for the same items.\n   - Confirmation happens only once at plan-approval time. Reduce `AskUserQuestion` triggered by pre-declared items during work to zero.\n   - Any unplanned secret-read \u002F external send \u002F destructive operation not in the record stops via the runtime floor \u002F ask as usual. Do not silently add undeclared items to the allowlist.\n2. Update the task to `cc:WIP`\n3. **TDD phase** (when there is no `[skip:tdd]` and a test framework exists):\n   a. Create the test file first (Red)\n   b. Confirm it fails\n   c. Leave FAIL evidence in `.claude\u002Fstate\u002Ftdd-red-log\u002F\u003Ctask-id>.jsonl` via `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Flog-tdd-red.sh\"`. In environments where the script is unavailable, attach the literal failing test output to the worker-report's `self_review` evidence\n   d. When using `--tdd-bypass`, explicitly set `HARNESS_TDD_BYPASS=1` and `HARNESS_TDD_BYPASS_REASON=\"\u003Creason>\"`, and record the reason for skipping TDD in the sprint-contract \u002F worker-report\n4. Generate `sprint-contract.json` with `node \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-sprint-contract.js\" \u003Ctask-id>`\n5. Add Reviewer-perspective enrichment with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fenrich-sprint-contract.sh\"`, and confirm it is approved with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fensure-sprint-contract-ready.sh\"`\n6. **Advisor consult (only when needed)**:\n   - For high-risk tasks (`needs-spike` \u002F `security-sensitive` \u002F `state-migration`), consult once before the first run\n   - If the same cause fails twice in a row, consult before entering the third attempt\n   - When plateau detection (stuck detection) returns `PIVOT_REQUIRED`, consult once before stopping and escalating to the user\n   - Receive the consult result as `advisor-response.v1`, and treat `PLAN` as reorganizing the approach, `CORRECTION` as a local fix, and `STOP` as immediate escalation\n   - Consult only once per `trigger_hash`. The consult budget per task is at most 3 times\n7. Implement code via the local \u002F native Read\u002FWrite\u002FEdit\u002FBash path (Green)\n8. Auto-Refinement with `\u002Fsimplify` (can be skipped with `--no-simplify`)\n9. **Automatic review stage** (see \"Review loop\"):\n   - Run review with the internal Reviewer agent\n   - If `reviewer_profile` in `sprint-contract.json` is `runtime`, run `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Frun-contract-review-checks.sh\"`\n   - On REQUEST_CHANGES: fix based on the findings → re-review (`MAX_REVIEWS = read_contract(contract_path, \".review.max_iterations\") or 3`)\n   - On APPROVE, move to the next step. A self-check alone does not finalize completion\n10. Normalize and save the review artifact with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fwrite-review-result.sh\"` (for the browser profile, pass `--browser-result`, and when `browser_verdict == PENDING_BROWSER`, adopt the static verdict)\n11. Auto-commit with `git commit` (can be skipped with `--no-commit`)\n12. Update the task to `cc:done` (with the commit hash)\n   - Get the latest commit hash (7-char short form) with `git log --oneline -1`\n   - Update Plans.md Status in the form `cc:done [a1b2c3d]`\n   - If there is no commit (with `--no-commit`), just `cc:done` without a hash\n13. **Rich completion report** (see \"Completion report format\")\n14. **Automatic re-planning on failure** (only on test\u002FCI failure):\n    - Check the test run results\n    - If it failed: save the fix task proposal to state and add it to Plans.md via the approval command (see \"Automatic reticketing of failed tasks\")\n    - If it succeeded: proceed to the next task\n\n### Parallel mode (auto-selected for 2–3 tasks \u002F forced with `--parallel N`)\n\nRun `[P]`-marked tasks in parallel across N workers.\nWhen explicitly specified with `--parallel N`, use this mode regardless of task count.\nSeparate with git worktrees when writes to the same file would conflict.\nEach task spawns a native Worker.\n\n### Breezing mode (auto-selected for 4+ tasks \u002F forced with `--breezing`)\n\nRun as a team with role separation of Lead \u002F Worker \u002F Advisor \u002F Reviewer.\n\n**Permission policy**:\n- The current shipped default is `bypassPermissions`\n- Treat `--auto-mode` as an opt-in rollout flag for compatible parent sessions\n- Do not write the undocumented `autoMode` value into `permissions.defaultMode` or agent frontmatter `permissionMode`\n\n> **CC v2.1.69+**: Since nested teammates are forbidden by the platform,\n> do not add verbose nesting-prevention wording to Worker\u002FReviewer prompts.\n\n```\nLead (this agent)\n├── Worker (task-worker agent) — implementation\n├── Advisor (harness:advisor) — direction advice\n└── Reviewer (code-reviewer agent) — review\n```\n\n**Phase A: Pre-delegate (preparation)**:\n1. Load Plans.md and identify the target tasks\n2. Analyze the dependency graph and decide the execution order (the Depends column)\n3. Read `.claude\u002Fstate\u002Fplan-preapprovals.json`, and if it exists, validate it with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fplan-preapproval.sh\" validate .claude\u002Fstate\u002Fplan-preapprovals.json`\n4. Pass the `decision: approved` items of the target tasks to the worker briefing. For `secret-read`, reflect per-run into `runtimefloor.secretAllow` of the project config via `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fplan-preapproval.sh\" apply-secret-allow \"$PROJECT_ROOT\"`. Do not stop midway for pre-declared items, and do not emit an `AskUserQuestion` triggered by the same items\n5. Any unplanned secret-read \u002F external send \u002F destructive operation not in the record stops via the runtime floor \u002F ask as usual\n6. Effort scoring for each task (effort tier decision — high\u002Fxhigh)\n7. Generate `sprint-contract.json` with `node \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-sprint-contract.js\"`\n8. Add the Reviewer perspective with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fenrich-sprint-contract.sh\"`, and stop if unapproved with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fensure-sprint-contract-ready.sh\"`\n\n**Phase B: Delegate (Worker spawn → Advisor when needed → review → cherry-pick)**:\n\nRun the following **sequentially** for each task (in dependency order):\n\n```\nfor task in execution_order:\n    # B-1. Generate the sprint-contract\n    contract_path = bash(\"node \\\"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-sprint-contract.js\\\" {task.number}\")\n    contract_path = bash(\"bash \\\"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fenrich-sprint-contract.sh\\\" {contract_path} --check \\\"Verify DoD from a reviewer's perspective\\\" --approve\")\n    bash(\"bash \\\"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fensure-sprint-contract-ready.sh\\\" {contract_path}\")\n\n    # B-2. Worker spawn (foreground, worktree-isolated)\n    # The Agent tool return value includes agentId — used with SendMessage in the correction loop\n    Plans.md: task.status = \"cc:WIP\"  # Update on start (untouched tasks stay cc:TODO)\n\n    # Propagate universal violations even when running \u002Fharness-work repeatedly and sequentially\n    # (assume universal_violations = [] is initialized on the first run)\n    briefing_header = \"\"\n    if universal_violations:\n        briefing_header = (\n            \"🚨 Universal violations already detected in this session (do not repeat):\\n\"\n            + \"\\n\".join(f\"- {v}\" for v in universal_violations)\n            + \"\\n\\n\"\n        )\n\n    worker_result = Agent(\n        subagent_type=\"harness:worker\",\n        prompt=briefing_header + \"Task: {task.Content}\\nDoD: {task.DoD}\\ncontract_path: {contract_path}\\nmode: breezing\",\n        isolation=\"worktree\",\n        run_in_background=false  # Run in the foreground → wait until the Worker completes\n    )\n    worker_id = worker_result.agentId  # Keep for SendMessage\n    # worker_result includes {commit, worktreePath, files_changed, summary}\n\n    # B-3. Only when the Worker returns an advice request does the Lead call the Advisor\n    if worker_result.type == \"advisor-request.v1\":\n        advisor_result = Advisor(\n            prompt=worker_result.request_json\n        )\n        worker_result = SendMessage(\n            to=worker_id,\n            message=\"advisor-response.v1: {advisor_result}\"\n        )\n\n    # B-3.5. self_review gate (before Reviewer spawn, verified mechanically by the Lead)\n    # The Worker's worker-report.v1 must have the active self_review rules complete, all verified=true and evidence non-empty\n    # When tdd.enforce.enabled=true and tdd_required=true, `tdd-red-evidence-attached` is also required as an active rule\n    # If even one has verified=false or evidence==\"\", do not spawn the Reviewer; send it back to the Worker\n    self_review_failures = 0\n    MAX_SELF_REVIEW_RETRIES = 2  # The Lead escalates on the 3rd time (retries=2)\n    while True:\n        unverified = [\n            r for r in worker_result.self_review\n            if (not r.get(\"verified\")) or (not r.get(\"evidence\"))\n        ]\n        if not unverified:\n            break  # All rules verified → proceed to B-4 (actual review)\n        self_review_failures += 1\n        if self_review_failures > MAX_SELF_REVIEW_RETRIES:\n            # Still unverified items on the 3rd time → escalate to the Lead\n            Plans.md: task.status = \"cc:TODO\"  # Revert to not-started\n            raise EscalationError(f\"self_review still unverified after 3 send-backs (rules: {[u['rule'] for u in unverified]})\")\n        # Send back to the Worker (do not spawn the Reviewer)\n        SendMessage(\n            to=worker_id,\n            message=f\"self_review has unverified rules: {[u['rule'] for u in unverified]}. Fill each rule's evidence with actual command output or literal test results, and when TDD is required, attach .claude\u002Fstate\u002Ftdd-red-log\u002F\u003Ctask-id>.jsonl or literal failing test output, then set verified=true and amend\"\n        )\n        worker_result = wait_for_response(worker_id)\n\n    # B-4. The Lead runs the review\n    diff_text = git(\"-C\", worker_result.worktreePath, \"show\", worker_result.commit)\n    verdict = reviewer_agent_review(diff_text)\n    profile = jq(contract_path, \".review.reviewer_profile\")\n    review_input = \"review-output.json\"\n    if profile == \"runtime\":\n        review_input = bash(\"cd {worker_result.worktreePath} && bash \\\"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Frun-contract-review-checks.sh\\\" {contract_path}\")\n        runtime_verdict = jq(review_input, \".verdict\")\n        if runtime_verdict == \"REQUEST_CHANGES\":\n            verdict = \"REQUEST_CHANGES\"\n        elif runtime_verdict == \"DOWNGRADE_TO_STATIC\":\n            pass  # No runtime validation command → use the static verdict as-is\n    browser_result = \"\"\n    if profile == \"browser\":\n        # Reuse route \u002F browser_mode \u002F execution_instructions from the browser artifact to launch the browser runner.\n        browser_artifact = bash(\"bash \\\"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-browser-review-artifact.sh\\\" {contract_path}\")\n        browser_result = bash(\"bash \\\"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fbrowser-review-runner.sh\\\" {browser_artifact}\")\n        browser_verdict = jq(browser_result, \".browser_verdict\")\n        if browser_verdict == \"REQUEST_CHANGES\":\n            verdict = \"REQUEST_CHANGES\"\n        elif browser_verdict == \"APPROVE\" and verdict != \"REQUEST_CHANGES\":\n            verdict = \"APPROVE\"\n        # When browser_verdict == PENDING_BROWSER, keep the static verdict\n    # When review_input is DOWNGRADE_TO_STATIC, use the static review result\n    if review_input != \"review-output.json\" and jq(review_input, \".verdict\") == \"DOWNGRADE_TO_STATIC\":\n        review_input = \"review-output.json\"  # Fall back to the static review result\n    bash(\"bash \\\"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fwrite-review-result.sh\\\" {review_input} {latest_commit} --browser-result {browser_result}\")\n\n    # B-5. Correction loop (on REQUEST_CHANGES, up to the contract's max_iterations)\n    # The Worker completed in the foreground but can be resumed with SendMessage\n    # (CC: SendMessage(to: agentId))\n    review_count = 0\n    # Read max_iterations only when the sprint-contract exists. Otherwise 3 (backward compat)\n    MAX_REVIEWS = read_contract(contract_path, \".review.max_iterations\") or 3\n    latest_commit = worker_result.commit\n    while verdict == \"REQUEST_CHANGES\" and review_count \u003C MAX_REVIEWS:\n        SendMessage(to=worker_id, message=\"Findings: {issues}\\nFix and amend\")\n        # Worker fixes → amend → returns the updated commit hash\n        updated_result = wait_for_response(worker_id)\n        latest_commit = updated_result.commit\n        diff_text = git(\"-C\", worker_result.worktreePath, \"show\", latest_commit)\n        verdict = reviewer_agent_review(diff_text)\n        review_count++\n\n    # B-6. APPROVE → cherry-pick onto trunk (via the feature branch)\n    # Assume the Worker's Branch Guard kept trunk HEAD unmoved and the commit is on the feature branch\n    if verdict == \"APPROVE\":\n        TRUNK=$(git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD 2>\u002Fdev\u002Fnull | sed 's|refs\u002Fremotes\u002Forigin\u002F||' || echo \"main\")\n        git checkout \"$TRUNK\"  # safety: no-op if already on trunk\n        # Check whether the feature branch's commit is already on trunk (fallback if Branch Guard failed)\n        if git(\"merge-base\", \"--is-ancestor\", latest_commit, \"HEAD\"):\n            pass  # Already on trunk — no cherry-pick needed (re-entry guard)\n        else:\n            git cherry-pick --no-commit {latest_commit}  # feature branch → trunk\n            git commit -m \"{task.Content}\"\n        # Remove the Worker's worktree, then delete the feature branch\n        if worker_result.worktreePath:\n            git worktree remove {worker_result.worktreePath} --force\n        if worker_result.branch and worker_result.branch not in [\"main\", \"master\"] and worker_result.branch != TRUNK:\n            git branch -D {worker_result.branch}\n        Plans.md: task.status = \"cc:done [{hash}]\"\n        # auto-checkpoint recording (idempotency guard (c))\n        # Call right after rewriting Plans.md. Even on failure, fail-open (|| true) does not stop the loop\n        HASH=$(git rev-parse --short HEAD)\n        REVIEW_RESULT_PATH=\".claude\u002Fstate\u002Freview-results\u002F${task.number}.review-result.json\"\n        bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fauto-checkpoint.sh\" \\\n            \"${task.number}\" \"${HASH}\" \"${contract_path}\" \"${REVIEW_RESULT_PATH}\" \\\n            || true  # fail-open: continue even where harness-mem is not running\n    else:\n        → escalate to the user\n\n    # B-7. Progress feed\n    print(\"📊 Progress: Task {completed}\u002F{total} done — {task.Content}\")\n```\n\n### Advisor Protocol (common to all modes)\n\nThe Advisor is neither an \"implementer\" nor a \"reviewer.\"\nIt steps in only when stuck, as a consultant to help the executor decide the next step.\n\n1. The Worker does not add generic subagents; it returns `advisor-request.v1` only when needed\n2. The Lead calls the advisor exactly once\n3. The Advisor returns one of `PLAN` \u002F `CORRECTION` \u002F `STOP`\n4. The Lead returns that advice to the same Worker to continue\n5. The Reviewer looks only at the final deliverable. It does not issue APPROVE \u002F REQUEST_CHANGES on the advisor's reply\n\n### Advisor in Solo mode\n\nIn a solo run, the parent session doubles as the Lead.\nThat is, it takes the form of \"implement it yourself, consult the advisor yourself, and send it to an independent review at the end.\"\n\n- The consult conditions are the same as loop \u002F breezing\n- The consult budget is also the same: at most 3 times per task\n- `STOP` stops on the spot and escalates to the user for a decision\n- The review artifact gate is not skipped\n\n### Sprint Contract\n\nA `sprint-contract` is a small contract file that expresses \"what makes this task pass\" so that both machines and humans read it with the same meaning.\nThe default save location is `.claude\u002Fstate\u002Fcontracts\u002F\u003Ctask-id>.sprint-contract.json`.\n\n```bash\nnode \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-sprint-contract.js\" 32.1.1\n```\n\nThe output includes the following.\n\n- `checks`: verification items broken down from the DoD\n- `non_goals`: what will not be done this time\n- `runtime_validation`: validation commands such as test, lint, typecheck\n- `browser_validation`: UI flow verification items the browser reviewer should leave\n- `browser_mode`: `scripted` or `exploratory`\n- `route`: which of `playwright` \u002F `agent-browser` \u002F `chrome-devtools` the browser reviewer uses\n- `risk_flags`: `needs-spike`, `security-sensitive`, `ux-regression`, etc.\n- `reviewer_profile`: `static`, `runtime`, `browser`\n\n**Required metadata (lane \u002F stage \u002F evidence)** — the sprint contract input passed to Worker \u002F Scaffolder \u002F Reviewer:\n\n| Field | Meaning | Example |\n|-----------|------|-----|\n| `spec_path` | Path to the root `spec.md` (or nearest sub-spec) | `spec.md`, `docs\u002Fspec\u002F00-project-spec.md` |\n| `lane` | The task's lane taxonomy | `fast`, `gate`, `release` |\n| `stage` | The current stage of the 5-stage gate | `research`, `plan`, `impl`, `review`, `closeout` |\n| `research_evidence` | Link \u002F commit \u002F file of the research result | `docs\u002Fresearch\u002Fphase-72-evidence.md`, commit hash |\n| `tdd_red_log` | RED evidence for `[tdd:required]` tasks (commit hash or log path) | `.claude\u002Fstate\u002Ftdd-red-log\u002F72.1.3.jsonl`, `abc1234` |\n| `review_artifact` | Review verdict and findings | `{ verdict: \"APPROVE\", findings: [...] }` |\n| `pr_closeout` | Closeout artifact (base\u002Fhead refs + evidence pack) | `{ base_ref, head_ref, evidence_pack }` |\n\nWhen running `generate-sprint-contract.js`, the Lead loads `spec_path` \u002F `lane` \u002F `stage` into the contract from the Plans metadata, and appends `research_evidence` after research completes. After TDD Red, load `tdd_red_log`; after review, `review_artifact`; after PR closeout, `pr_closeout`.\n\n**TDD completion gate**: For `[tdd:required]` tasks, do not treat as complete unless the sprint contract has `tdd_red_log` or an explicit `skip_tdd_reason` (this applies to `cc:done` update, cherry-pick, and PR closeout alike).\n\n### PR Closeout (after review APPROVE)\n\nAfter review APPROVE, build the PR title\u002Fbody from the evidence pack with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fharness-pr-closeout.sh\"`. **The default is a `dry-run` preview** (`git push` \u002F `gh pr create` happen only via the `push` subcommand plus confirmation or `--yes`).\n\n```bash\nbash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fharness-pr-closeout.sh\" build \\\n  --base origin\u002Fmain --head \"$(git branch --show-current)\" \\\n  --evidence .claude\u002Fstate\u002Fevidence-pack.json \\\n  --out .claude\u002Fstate\u002Fpr-payload.json\nbash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fharness-pr-closeout.sh\" dry-run --payload .claude\u002Fstate\u002Fpr-payload.json\n# Explicit push only (confirmation required, can be skipped with --yes):\nbash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fharness-pr-closeout.sh\" push --payload .claude\u002Fstate\u002Fpr-payload.json\n```\n\nAutomatic push \u002F PR \u002F merge from the `harness-review` path is forbidden (read-only boundary). In a detached HEAD state, a branch must be created before `push`.\n\n**The lightening boundary for the fast lane**: `lane: fast` may skip the full review, but it does not skip the unknown data contract of `not_observed != absent` or the focused checks (the DoD breakdown of `runtime_validation` \u002F `checks`).\n\n**Phase C: Post-delegate (integration \u002F report)**:\n1. Aggregate the commit logs of all tasks\n2. Output the **rich completion report** (the Breezing template in \"Completion report format\")\n3. Final check of Plans.md (whether all tasks are `cc:done`)\n\n## Responding to CI failures\n\nWhen CI fails:\n\n1. Check the logs and identify the error\n2. Apply the fix\n3. Stop the auto-fix loop after 3 failures from the same cause\n4. Escalate with a summary of the failure log, attempted fixes, and remaining open questions\n\n## Automatic reticketing of failed tasks\n\nWhen a test\u002FCI fails after task completion, auto-generate a fix task proposal and, after approval, reflect it into Plans.md:\n\n### Trigger conditions\n\n| Condition | Action |\n|------|----------|\n| Test fails after `cc:done` | Save the fix task proposal to state and wait for approval |\n| CI failure (fewer than 3 times) | Apply the fix and increment the failure count |\n| CI failure (3rd time) | Present the fix task proposal + escalate |\n\n### Automatic generation of the fix task\n\n1. Classify the failure cause (syntax_error \u002F import_error \u002F type_error \u002F assertion_error \u002F timeout \u002F runtime_error)\n2. Save the fix task proposal to `.claude\u002Fstate\u002Fpending-fix-proposals.jsonl`:\n   - Number: original task number + `.fix` suffix (e.g., `26.1.fix`)\n   - Content: `fix: [original task name] - [failure cause category]`\n   - DoD: tests\u002FCI pass\n   - Depends: original task number\n3. When the user sends `approve fix \u003Ctask_id>`, add it to Plans.md as `cc:TODO`\n4. Discard the proposal with `reject fix \u003Ctask_id>`. When there is only one pending item, you can also respond with `yes` \u002F `no`\n\n## Review loop\n\nThe quality verification stage that runs automatically after implementation completes (after step 5).\nIt applies uniformly **across all modes** (Solo \u002F Parallel \u002F Breezing).\nIn Parallel mode, each Worker runs the same loop as step 10 (accepting external review).\n\n### Review execution\n\nThe internal Reviewer agent performs the review.\n\n### APPROVE \u002F REQUEST_CHANGES criteria\n\nGive the reviewer the following threshold criteria and have it decide the verdict using **these criteria only**.\nImprovement suggestions outside the criteria are returned as `recommendations` but do not affect the verdict.\n\n| Severity | Definition | Effect on verdict |\n|--------|------|-----------------|\n| **critical** | Security vulnerability, data loss risk, possibility of a production outage | Even one → REQUEST_CHANGES |\n| **major** | Breakage of existing functionality, a clear contradiction with the spec, test failure | Even one → REQUEST_CHANGES |\n| **minor** | Naming improvement, missing comments, style inconsistency | Does not affect the verdict |\n| **recommendation** | Best-practice suggestion, future improvement idea | Does not affect the verdict |\n\n> **Important**: When there are only minor \u002F recommendation items, **always return APPROVE**.\n> A \"nice-to-have improvement\" is not a reason for REQUEST_CHANGES.\n\n### AI Residuals scan\n\nKeep the HEAD at task start as `BASE_REF`, and make the diff against that ref the review target.\n\n```bash\n# Record the base ref at task start (run before the Step 2 cc:WIP update)\nBASE_REF=$(git rev-parse HEAD)\n```\n\nRun the AI Residuals scan with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Freview-ai-residuals.sh\"`,\nand decide the final verdict combined with the Reviewer agent result.\n\n```bash\n# AI Residuals scan (can run in parallel with the review)\nAI_RESIDUALS_JSON=\"$(bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Freview-ai-residuals.sh\" --base-ref \"${BASE_REF}\" --include-untracked 2>\u002Fdev\u002Fnull || echo '{\"tool\":\"review-ai-residuals\",\"scan_mode\":\"diff\",\"base_ref\":null,\"include_untracked\":true,\"files_scanned\":[],\"untracked_files_scanned\":[],\"summary\":{\"verdict\":\"APPROVE\",\"major\":0,\"minor\":0,\"recommendation\":0,\"total\":0},\"observations\":[]}')\"\n```\n\n### Internal Reviewer agent\n\n```\nAgent tool: subagent_type=\"reviewer\"\nprompt: \"Please review the following changes. Criteria: critical\u002Fmajor → REQUEST_CHANGES; minor\u002Frecommendation only → APPROVE. diff: {git diff ${BASE_REF}}\"\n```\n\nThe Reviewer agent runs the review safely as Read-only (Write\u002FEdit\u002FBash disabled).\n\n### Correction loop (on REQUEST_CHANGES)\n\n```\nreview_count = 0\n# Read max_iterations only when the sprint-contract exists. Otherwise 3 (backward compat)\ncontract_path = get_sprint_contract_path()  # e.g., .claude\u002Fstate\u002Fcontracts\u002F\u003Ctask-id>.sprint-contract.json\nMAX_REVIEWS = read_contract(contract_path, \".review.max_iterations\") or 3\n\nwhile verdict == \"REQUEST_CHANGES\" and review_count \u003C MAX_REVIEWS:\n    1. Analyze the review findings (critical \u002F major only)\n    2. Implement a fix for each finding\n    3. Run the review again (same criteria, same priority)\n    review_count++\n\nif review_count >= MAX_REVIEWS and verdict != \"APPROVE\":\n    → escalate to the user\n    → \"I fixed MAX_REVIEWS times, but the following critical\u002Fmajor findings remain\" + show the findings list\n    → wait for the user's decision (continue \u002F abort)\n```\n\n### Application in Breezing mode\n\nIn Breezing mode, the **Lead** runs the review loop (see Phase B above):\n\n1. The Worker implements and commits in the worktree → returns the result to the Lead\n2. The Lead reviews with the Reviewer agent\n3. REQUEST_CHANGES → the Lead instructs the Worker to fix via SendMessage → the Worker amends\n4. After the fix, re-review (up to `MAX_REVIEWS = read_contract(contract_path, \".review.max_iterations\") or 3` times)\n5. APPROVE → the Lead cherry-picks onto trunk (the default branch) → updates Plans.md to `cc:done [{hash}]`\n\n## Completion report format\n\nA visual summary output automatically at task completion (after `cc:done` + commit).\nIts purpose is to convey the change and its impact even to non-experts.\n\n### Template\n\n```\n┌─────────────────────────────────────────────┐\n│  ✓ Task {N} done: {task name}                 │\n├─────────────────────────────────────────────┤\n│                                              │\n│  ■ What was done                             │\n│    • {change 1}                               │\n│    • {change 2}                               │\n│                                              │\n│  ■ What changes                              │\n│    Before: {old behavior}                     │\n│    After:  {new behavior}                     │\n│                                              │\n│  ■ Changed files ({N} files)                 │\n│    {file path 1}                              │\n│    {file path 2}                              │\n│                                              │\n│  ■ Remaining work                            │\n│    • Task {X} ({status}): {content}  ← Plans.md  │\n│    • Task {Y} ({status}): {content}  ← Plans.md  │\n│    ({M} incomplete tasks remain in Plans.md)  │\n│                                              │\n│  commit: {hash} | review: {APPROVE}           │\n└─────────────────────────────────────────────┘\n```\n\n### Generation rules\n\n1. **What was done**: auto-extracted from `git diff --stat HEAD~1` and the commit message. Keep technical terms to a minimum and start with a verb\n2. **What changes**: infer Before\u002FAfter from the task's \"Content\" and \"DoD.\" Emphasize the change in user experience\n3. **Changed files**: obtained from `git diff --name-only HEAD~1`. If more than 5 files, omit and show the count\n4. **Remaining work**: list the `cc:TODO` \u002F `cc:WIP` tasks in Plans.md. Make explicit whether they are recorded in Plans.md\n5. **review**: show the review result (APPROVE \u002F REQUEST_CHANGES → APPROVE)\n\n### Reporting in Parallel mode\n\n- **1 task** (when `--parallel` is forced): use the Solo template\n- **Multiple tasks**: use the Breezing aggregate template (see below)\n\n### Reporting in Breezing mode\n\nOutput all at once after all tasks complete. List each task in a simplified form (what was done + commit hash only),\nand output an overall summary at the end (total changed file count + remaining work):\n\n```\n┌─────────────────────────────────────────────┐\n│  ✓ Breezing done: {N}\u002F{M} tasks              │\n├─────────────────────────────────────────────┤\n│                                              │\n│  1. ✓ {task name 1}          [{hash1}]      │\n│  2. ✓ {task name 2}          [{hash2}]      │\n│  3. ✓ {task name 3}          [{hash3}]      │\n│                                              │\n│  ■ Overall changes                           │\n│    {N} files changed, {A} insertions(+),     │\n│    {D} deletions(-)                          │\n│                                              │\n│  ■ Remaining work                            │\n│    {K} incomplete tasks remain in Plans.md   │\n│    • Task {X}: {content}                      │\n│                                              │\n└─────────────────────────────────────────────┘\n```\n\n## Progress visualization (for non-engineers)\n\nWhile tasks run, `harness-progress` summarizes the progress counts and drift alerts into a single HTML.\nBecause it is regenerated automatically by a PostToolUse hook, the requester can see the latest progress board without learning how to invoke it\n(`posttool-progress-regen.sh` regenerates at most once per minute).\n\n## Related skills\n\n- `harness-plan` — plan the tasks to execute\n- `harness-sync` — sync the implementation and Plans.md\n- `harness-review` — review the implementation\n- `harness-release` — version bump \u002F release\n- `harness-progress` — progress board HTML (for non-engineers, auto-regenerated during a run)\n","# Harness Work\n\nThe unified execution skill for Harness.\nIt consolidates the following legacy skills:\n\n- `work` — Implement Plans.md tasks (automatic scope detection)\n- `impl` — Feature implementation (task-based)\n- `breezing` — Fully automated team run\n- `parallel-workflows` — Parallel workflow optimization\n- `ci` — Recovery from CI failures\n\n## Quick Reference\n\n| User input | Mode | Behavior |\n|------------|--------|------|\n| `\u002Fharness-work` | **auto** | Auto-decides by task count (see below) |\n| `\u002Fharness-work all` | **auto** | Run all incomplete tasks in auto mode |\n| `\u002Fharness-work 3` | solo | Run only task 3 immediately |\n| `\u002Fharness-work --parallel 5` | parallel | Run in parallel with 5 workers (forced) |\n| `\u002Fharness-work --breezing` | breezing | Force team execution |\n| `\u002Fharness-work 3 --plan roadmap` | solo | Run task 3 from the named plan `roadmap` |\n\n## Execution Mode Auto Selection (when no flag is given)\n\nWhen no explicit mode flag (`--parallel`, `--breezing`) is present,\nselect the optimal mode based on the number of target tasks:\n\n| Number of target tasks | Auto-selected mode | Reason |\n|-------------|---------------|------|\n| **1 task** | Solo | Minimal overhead. Direct implementation is fastest |\n| **2–3 tasks** | Parallel (Task tool) | The threshold where worker separation starts to pay off |\n| **4 or more tasks** | Breezing | Three-way separation of Lead coordination + Worker parallelism + independent Reviewer is effective |\n\n### Rules\n\n1. **An explicit flag always overrides auto mode**\n   - `--parallel N` → Parallel mode (regardless of task count)\n   - `--breezing` → Breezing mode (regardless of task count)\n\n## Orchestration wiring\n\nThe Breezing team implements with native Claude Workers spawned via the Agent\ntool (`agents\u002Fworker.md`), and the Lead aggregates their results. That is the\nwhole dispatch path.\n\nAn alternate in-process orchestrator (`harness work --team`, with the opt-in\n`HARNESS_TEAM_HIERARCHY=sublead` Producer\u002FSub-Lead hierarchy and the\n`HARNESS_REVIEW_ITERATE` loop) existed before v1.0.0. It drove work through\nper-backend companion shell scripts, which were removed along with the\nnon-Claude backends, so the path could only exit 127. It was deleted rather\nthan left in place as a switch that silently fails; parallelism and\nreview-iteration both live in the skill layer above.\n\n## Options\n\n| Option | Description | Default |\n|----------|------|----------|\n| `all` | Target all incomplete tasks | - |\n| `N` or `N-M` | Task number\u002Frange | - |\n| `--parallel N` | Number of parallel workers | auto |\n| `--sequential` | Force serial execution | - |\n| `--plan NAME` | Use the named plan from `plans\u002Fmanifest.json` | active\u002Fdefault |\n| `--no-commit` | Suppress automatic commit | false |\n| `--resume \u003Cid\\|latest>` | Resume the previous session. After a long gap, using `\u002Frecap` alongside is recommended | - |\n| `--breezing` | Team execution of Lead\u002FWorker\u002FReviewer | false |\n| `--no-tdd` | Skip the TDD phase | false |\n| `--tdd-bypass` | Bypass TDD enforcement only in emergencies. Record `HARNESS_TDD_BYPASS_REASON` or an explicit reason in the audit | false |\n| `--no-simplify` | Skip Auto-Refinement | false |\n| `--auto-mode` | Explicitly enable the Harness-side Auto Mode rollout. Distinct from `--enable-auto-mode`, which became unnecessary in CC 2.1.111 | false |\n\n## Progressive Disclosure\n\nFirst read only the entry point, auto selection, and stop conditions in this body.\nRead the details only when you need them.\n\n| Detail | Reference |\n|---|---|\n| Concrete steps for Solo \u002F Parallel \u002F Breezing | `references\u002Fexecution-modes.md` |\n| Reviewer agent, AI Residuals, correction loop | `references\u002Freview-loop.md` |\n| Generating Solo \u002F Breezing completion reports | `references\u002Fcompletion-report.md` |\n| Reticketing on test\u002FCI failure | `references\u002Ffailure-reticketing.md` |\n| Criteria for the spec SSOT check | `docs\u002Fplans\u002Fspec-ssot.md` |\n\n### Important stop conditions\n\n- Stop when `Plans.md` is in the old format and DoD \u002F Depends \u002F Status cannot be read.\n- When the spec affects an implementation decision but the project spec SSOT is not found, create\u002Fupdate the spec SSOT first, then implement.\n- Do not proceed to implementation when a sprint-contract is required but not ready.\n- Do not mark complete while a critical \u002F major review finding remains.\n- Do not resolve by weakening tests, skipping them, or loosening expected values to match the implementation.\n- Call helper scripts from `${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002F`, not the host project's `scripts\u002F`.\n- When multiple Plans.md exist, do not switch plans within a single run. If needed, start a new run with an explicit `--plan NAME`.\n\n> **Token Optimization (v2.1.69+)**: For lightweight tasks that do not involve git operations,\n> you can reduce prompt tokens by enabling `includeGitInstructions: false` in the plugin settings.\n\n> **Prompt Cache (CC 2.1.108+)**: For longer implementations or work that uses `--resume` heavily,\n> prefer `ENABLE_PROMPT_CACHING_1H=1`.\n\n## Scope dialog (when no argument is given)\n\n```\n\u002Fharness-work\nHow far should I go?\n1) Next task: the next incomplete task in Plans.md → run as Solo\n2) Everything (recommended): complete all remaining tasks → auto mode selection by task count\n3) By number: enter task numbers (e.g., 3, 5-7) → auto mode selection by count\n```\n\nWith an argument, run immediately (skip the dialog):\n- `\u002Fharness-work all` → all tasks, auto mode selection\n- `\u002Fharness-work 3-6` → 4 tasks, so Breezing is auto-selected\n\n## Effort level control (Opus 4.8 \u002F v2.1.111+)\n\nEffort is the official knob for choosing the model's reasoning intensity. It has 4 levels `low(○)\u002Fmedium(◐)\u002Fhigh(●)\u002Fxhigh`,\nand you can reset to the default with `\u002Feffort auto` (`max` was removed in v2.1.72; `xhigh` is its successor).\n\nIn Opus 4.8, thinking is off by default and effort is the main lever for reasoning depth (effort has a larger impact than in any prior Opus).\nIf you observe \"shallow reasoning,\" do not work around it in the prompt — raise the effort.\nTherefore, to strengthen complex tasks we **retire the approach of injecting a free-text marker (the old `ultrathink`) into the spawn prompt**\nand standardize on **choosing the Worker spawn's effort tier from a complexity score**.\nThis is consistent with `docs\u002Fmodel-routing-policy.md` (do not infer effort from free text):\nthe effort tier, including `xhigh`, is chosen by the caller.\n\n### Multi-factor scoring\n\nAt task start, sum up the following scores.\n\n| Factor | Condition | Score |\n|------|------|--------|\n| File count | 4 or more files changed | +1 |\n| Directory | Includes core\u002F, guardrails\u002F, security\u002F | +1 |\n| Keyword | Includes architecture, security, design, migration | +1 |\n| Failure history | Agent memory has a failure record for the same task | +2 |\n| Explicit designation | The PM template has `effort: high` \u002F `effort: xhigh` (the old `ultrathink` is also accepted for compatibility) | +3 (auto-adopted) |\n\n### How to decide the effort tier (do not inject)\n\nDecide the effort tier from the score as an **escalation signal** (do **not** write a marker string like `ultrathink` into the spawn prompt).\nThe only two levers to apply are:\n\n- **session `\u002Feffort`**: before entering a batch of complex tasks, the host sets `\u002Feffort high` \u002F `\u002Feffort xhigh` (a reliable lever that works per session).\n- **worker frontmatter**: the `effort` in `agents\u002Fworker.md` (default `medium`) is the floor. Because CC's Agent \u002F Task spawn API does not expose a per-spawn effort setting, there is no mechanism to raise effort per individual worker. Record the score in `task_complexity_note` of `worker-report.v1`, giving the Lead material for deciding whether to raise the session effort.\n\n| Score | code-risk (includes core\u002Fguardrails\u002Fsecurity\u002Farchitecture\u002Fmigration) | effort tier |\n|--------|-----------------------------------|-------------|\n| 0-2 | n\u002Fa | `medium` (Worker frontmatter default unchanged) |\n| ≥ 3 | no | `high` |\n| ≥ 3 | yes | `xhigh` |\n\nThe same logic applies in breezing mode as well (harness-work manages it in one place).\nSince the Worker is Sonnet 4.6, `xhigh` is effectively downgraded to `high`, but raising the tier itself is still effective (`docs\u002Feffort-level-policy.md`).\n\n## Execution mode details\n\n### Harness helper script root\n\nHelper scripts bundled with Harness must always be called from the plugin bundle root, not from the target project's `scripts\u002F`.\n\n```bash\nHARNESS_PLUGIN_ROOT=\"${HARNESS_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-}}\"\nif [ -z \"$HARNESS_PLUGIN_ROOT\" ] && [ -n \"${CLAUDE_SKILL_DIR:-}\" ]; then\n  probe=\"$(cd \"${CLAUDE_SKILL_DIR}\" && pwd)\"\n  while [ \"$probe\" != \"\u002F\" ] && [ ! -d \"$probe\u002Fscripts\" ]; do\n    probe=\"$(cd \"$probe\u002F..\" && pwd)\"\n  done\n  [ -d \"$probe\u002Fscripts\" ] && HARNESS_PLUGIN_ROOT=\"$probe\"\nfi\n```\n\nThe subsequent `node \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002F...\"` \u002F `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002F...\"` calls assume this resolved root.\n\n### Solo mode (auto-selected for 1 task)\n\n1. Load Plans.md and identify the target task\n   - **If Plans.md does not exist**: auto-call `harness-plan create --ci` → generate Plans.md and continue\n   - If the header lacks DoD \u002F Depends columns: `Plans.md is in the old format. Please regenerate it with harness-plan create.` → **Stop**\n   - **If the conversation contains tasks not recorded in Plans.md**: extract the requirements from the recent conversation context and auto-append them to Plans.md as `cc:TODO`\n     - Extraction logic: detect action verbs (\"add ~\", \"fix ~\", \"implement ~\") in the user's utterances\n     - When appending, conform to the v2 format (Task \u002F Content \u002F DoD \u002F Depends \u002F Status)\n     - After appending, show the user \"The following was appended to Plans.md\" (prompt with a 5-second timeout, default: continue)\n1.5. **Task background check** (30 seconds):\n   - From the task's \"Content\" and \"DoD\", infer and display the **purpose** (the problem this task solves) in one line\n   - Use `git grep` \u002F `Glob` to infer and display the **scope of impact** (files\u002Fmodules the change reaches)\n   - If confident in the inference: proceed directly to implementation (no flow delay)\n   - If not confident in the inference: ask the user just one question (\"Is this understanding correct?\")\n1.6. **Spec SSOT preflight**:\n   - Look for an existing project spec SSOT (e.g., `docs\u002Fspec\u002F00-project-spec.md`, `docs\u002FARCHITECTURE.md`, `docs\u002FHANDOFF.md`, `docs\u002Foem\u002FPROJECT_COMPASS.md`, `docs\u002Fspecs\u002F`)\n   - If the task changes product behavior \u002F API \u002F data model \u002F permissions \u002F billing \u002F integrations \u002F tenant boundaries and no spec exists, create `docs\u002Fspec\u002F00-project-spec.md`\n   - If the spec is stale or contradicts the task, update the spec before implementation\n   - For typo \u002F format \u002F dependency bump \u002F docs-only \u002F behavior-preserving refactor, record the skip reason and continue\n   - Include `spec_path` or `spec_skip_reason` in the context passed to Worker \u002F Reviewer\n1.7. **Load plan-time pre-approvals**:\n   - At the start of the run, if `.claude\u002Fstate\u002Fplan-preapprovals.json` exists, read it and validate against `templates\u002Fschemas\u002Fplan-preapproval.v1.json` (helper: `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fplan-preapproval.sh\" validate .claude\u002Fstate\u002Fplan-preapprovals.json`).\n   - Treat only items matching the target task's `scope.phase` \u002F `scope.task` and with `decision: approved` as pre-declared items for this run.\n   - For a pre-declared `secret-read`, reflect it per-run into `runtimefloor.secretAllow` of the project config `.harness.config.json` via `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fplan-preapproval.sh\" apply-secret-allow \"$PROJECT_ROOT\"` before proceeding to implementation. This is a procedure that connects to the project-config-based runtime floor of 108.2; it is not a broad, permanent env allow.\n   - Pass pre-declared external sends \u002F destructive operations to the worker briefing and sprint-contract context as \"plan-approved,\" and do not emit an AskUserQuestion during work for the same items.\n   - Confirmation happens only once at plan-approval time. Reduce `AskUserQuestion` triggered by pre-declared items during work to zero.\n   - Any unplanned secret-read \u002F external send \u002F destructive operation not in the record stops via the runtime floor \u002F ask as usual. Do not silently add undeclared items to the allowlist.\n2. Update the task to `cc:WIP`\n3. **TDD phase** (when there is no `[skip:tdd]` and a test framework exists):\n   a. Create the test file first (Red)\n   b. Confirm it fails\n   c. Leave FAIL evidence in `.claude\u002Fstate\u002Ftdd-red-log\u002F\u003Ctask-id>.jsonl` via `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Flog-tdd-red.sh\"`. In environments where the script is unavailable, attach the literal failing test output to the worker-report's `self_review` evidence\n   d. When using `--tdd-bypass`, explicitly set `HARNESS_TDD_BYPASS=1` and `HARNESS_TDD_BYPASS_REASON=\"\u003Creason>\"`, and record the reason for skipping TDD in the sprint-contract \u002F worker-report\n4. Generate `sprint-contract.json` with `node \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-sprint-contract.js\" \u003Ctask-id>`\n5. Add Reviewer-perspective enrichment with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fenrich-sprint-contract.sh\"`, and confirm it is approved with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fensure-sprint-contract-ready.sh\"`\n6. **Advisor consult (only when needed)**:\n   - For high-risk tasks (`needs-spike` \u002F `security-sensitive` \u002F `state-migration`), consult once before the first run\n   - If the same cause fails twice in a row, consult before entering the third attempt\n   - When plateau detection (stuck detection) returns `PIVOT_REQUIRED`, consult once before stopping and escalating to the user\n   - Receive the consult result as `advisor-response.v1`, and treat `PLAN` as reorganizing the approach, `CORRECTION` as a local fix, and `STOP` as immediate escalation\n   - Consult only once per `trigger_hash`. The consult budget per task is at most 3 times\n7. Implement code via the local \u002F native Read\u002FWrite\u002FEdit\u002FBash path (Green)\n8. Auto-Refinement with `\u002Fsimplify` (can be skipped with `--no-simplify`)\n9. **Automatic review stage** (see \"Review loop\"):\n   - Run review with the internal Reviewer agent\n   - If `reviewer_profile` in `sprint-contract.json` is `runtime`, run `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Frun-contract-review-checks.sh\"`\n   - On REQUEST_CHANGES: fix based on the findings → re-review (`MAX_REVIEWS = read_contract(contract_path, \".review.max_iterations\") or 3`)\n   - On APPROVE, move to the next step. A self-check alone does not finalize completion\n10. Normalize and save the review artifact with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fwrite-review-result.sh\"` (for the browser profile, pass `--browser-result`, and when `browser_verdict == PENDING_BROWSER`, adopt the static verdict)\n11. Auto-commit with `git commit` (can be skipped with `--no-commit`)\n12. Update the task to `cc:done` (with the commit hash)\n   - Get the latest commit hash (7-char short form) with `git log --oneline -1`\n   - Update Plans.md Status in the form `cc:done [a1b2c3d]`\n   - If there is no commit (with `--no-commit`), just `cc:done` without a hash\n13. **Rich completion report** (see \"Completion report format\")\n14. **Automatic re-planning on failure** (only on test\u002FCI failure):\n    - Check the test run results\n    - If it failed: save the fix task proposal to state and add it to Plans.md via the approval command (see \"Automatic reticketing of failed tasks\")\n    - If it succeeded: proceed to the next task\n\n### Parallel mode (auto-selected for 2–3 tasks \u002F forced with `--parallel N`)\n\nRun `[P]`-marked tasks in parallel across N workers.\nWhen explicitly specified with `--parallel N`, use this mode regardless of task count.\nSeparate with git worktrees when writes to the same file would conflict.\nEach task spawns a native Worker.\n\n### Breezing mode (auto-selected for 4+ tasks \u002F forced with `--breezing`)\n\nRun as a team with role separation of Lead \u002F Worker \u002F Advisor \u002F Reviewer.\n\n**Permission policy**:\n- The current shipped default is `bypassPermissions`\n- Treat `--auto-mode` as an opt-in rollout flag for compatible parent sessions\n- Do not write the undocumented `autoMode` value into `permissions.defaultMode` or agent frontmatter `permissionMode`\n\n> **CC v2.1.69+**: Since nested teammates are forbidden by the platform,\n> do not add verbose nesting-prevention wording to Worker\u002FReviewer prompts.\n\n```\nLead (this agent)\n├── Worker (task-worker agent) — implementation\n├── Advisor (harness:advisor) — direction advice\n└── Reviewer (code-reviewer agent) — review\n```\n\n**Phase A: Pre-delegate (preparation)**:\n1. Load Plans.md and identify the target tasks\n2. Analyze the dependency graph and decide the execution order (the Depends column)\n3. Read `.claude\u002Fstate\u002Fplan-preapprovals.json`, and if it exists, validate it with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fplan-preapproval.sh\" validate .claude\u002Fstate\u002Fplan-preapprovals.json`\n4. Pass the `decision: approved` items of the target tasks to the worker briefing. For `secret-read`, reflect per-run into `runtimefloor.secretAllow` of the project config via `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fplan-preapproval.sh\" apply-secret-allow \"$PROJECT_ROOT\"`. Do not stop midway for pre-declared items, and do not emit an `AskUserQuestion` triggered by the same items\n5. Any unplanned secret-read \u002F external send \u002F destructive operation not in the record stops via the runtime floor \u002F ask as usual\n6. Effort scoring for each task (effort tier decision — high\u002Fxhigh)\n7. Generate `sprint-contract.json` with `node \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-sprint-contract.js\"`\n8. Add the Reviewer perspective with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fenrich-sprint-contract.sh\"`, and stop if unapproved with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fensure-sprint-contract-ready.sh\"`\n\n**Phase B: Delegate (Worker spawn → Advisor when needed → review → cherry-pick)**:\n\nRun the following **sequentially** for each task (in dependency order):\n\n```\nfor task in execution_order:\n    # B-1. Generate the sprint-contract\n    contract_path = bash(\"node \\\"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-sprint-contract.js\\\" {task.number}\")\n    contract_path = bash(\"bash \\\"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fenrich-sprint-contract.sh\\\" {contract_path} --check \\\"Verify DoD from a reviewer's perspective\\\" --approve\")\n    bash(\"bash \\\"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fensure-sprint-contract-ready.sh\\\" {contract_path}\")\n\n    # B-2. Worker spawn (foreground, worktree-isolated)\n    # The Agent tool return value includes agentId — used with SendMessage in the correction loop\n    Plans.md: task.status = \"cc:WIP\"  # Update on start (untouched tasks stay cc:TODO)\n\n    # Propagate universal violations even when running \u002Fharness-work repeatedly and sequentially\n    # (assume universal_violations = [] is initialized on the first run)\n    briefing_header = \"\"\n    if universal_violations:\n        briefing_header = (\n            \"🚨 Universal violations already detected in this session (do not repeat):\\n\"\n            + \"\\n\".join(f\"- {v}\" for v in universal_violations)\n            + \"\\n\\n\"\n        )\n\n    worker_result = Agent(\n        subagent_type=\"harness:worker\",\n        prompt=briefing_header + \"Task: {task.Content}\\nDoD: {task.DoD}\\ncontract_path: {contract_path}\\nmode: breezing\",\n        isolation=\"worktree\",\n        run_in_background=false  # Run in the foreground → wait until the Worker completes\n    )\n    worker_id = worker_result.agentId  # Keep for SendMessage\n    # worker_result includes {commit, worktreePath, files_changed, summary}\n\n    # B-3. Only when the Worker returns an advice request does the Lead call the Advisor\n    if worker_result.type == \"advisor-request.v1\":\n        advisor_result = Advisor(\n            prompt=worker_result.request_json\n        )\n        worker_result = SendMessage(\n            to=worker_id,\n            message=\"advisor-response.v1: {advisor_result}\"\n        )\n\n    # B-3.5. self_review gate (before Reviewer spawn, verified mechanically by the Lead)\n    # The Worker's worker-report.v1 must have the active self_review rules complete, all verified=true and evidence non-empty\n    # When tdd.enforce.enabled=true and tdd_required=true, `tdd-red-evidence-attached` is also required as an active rule\n    # If even one has verified=false or evidence==\"\", do not spawn the Reviewer; send it back to the Worker\n    self_review_failures = 0\n    MAX_SELF_REVIEW_RETRIES = 2  # The Lead escalates on the 3rd time (retries=2)\n    while True:\n        unverified = [\n            r for r in worker_result.self_review\n            if (not r.get(\"verified\")) or (not r.get(\"evidence\"))\n        ]\n        if not unverified:\n            break  # All rules verified → proceed to B-4 (actual review)\n        self_review_failures += 1\n        if self_review_failures > MAX_SELF_REVIEW_RETRIES:\n            # Still unverified items on the 3rd time → escalate to the Lead\n            Plans.md: task.status = \"cc:TODO\"  # Revert to not-started\n            raise EscalationError(f\"self_review still unverified after 3 send-backs (rules: {[u['rule'] for u in unverified]})\")\n        # Send back to the Worker (do not spawn the Reviewer)\n        SendMessage(\n            to=worker_id,\n            message=f\"self_review has unverified rules: {[u['rule'] for u in unverified]}. Fill each rule's evidence with actual command output or literal test results, and when TDD is required, attach .claude\u002Fstate\u002Ftdd-red-log\u002F\u003Ctask-id>.jsonl or literal failing test output, then set verified=true and amend\"\n        )\n        worker_result = wait_for_response(worker_id)\n\n    # B-4. The Lead runs the review\n    diff_text = git(\"-C\", worker_result.worktreePath, \"show\", worker_result.commit)\n    verdict = reviewer_agent_review(diff_text)\n    profile = jq(contract_path, \".review.reviewer_profile\")\n    review_input = \"review-output.json\"\n    if profile == \"runtime\":\n        review_input = bash(\"cd {worker_result.worktreePath} && bash \\\"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Frun-contract-review-checks.sh\\\" {contract_path}\")\n        runtime_verdict = jq(review_input, \".verdict\")\n        if runtime_verdict == \"REQUEST_CHANGES\":\n            verdict = \"REQUEST_CHANGES\"\n        elif runtime_verdict == \"DOWNGRADE_TO_STATIC\":\n            pass  # No runtime validation command → use the static verdict as-is\n    browser_result = \"\"\n    if profile == \"browser\":\n        # Reuse route \u002F browser_mode \u002F execution_instructions from the browser artifact to launch the browser runner.\n        browser_artifact = bash(\"bash \\\"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-browser-review-artifact.sh\\\" {contract_path}\")\n        browser_result = bash(\"bash \\\"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fbrowser-review-runner.sh\\\" {browser_artifact}\")\n        browser_verdict = jq(browser_result, \".browser_verdict\")\n        if browser_verdict == \"REQUEST_CHANGES\":\n            verdict = \"REQUEST_CHANGES\"\n        elif browser_verdict == \"APPROVE\" and verdict != \"REQUEST_CHANGES\":\n            verdict = \"APPROVE\"\n        # When browser_verdict == PENDING_BROWSER, keep the static verdict\n    # When review_input is DOWNGRADE_TO_STATIC, use the static review result\n    if review_input != \"review-output.json\" and jq(review_input, \".verdict\") == \"DOWNGRADE_TO_STATIC\":\n        review_input = \"review-output.json\"  # Fall back to the static review result\n    bash(\"bash \\\"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fwrite-review-result.sh\\\" {review_input} {latest_commit} --browser-result {browser_result}\")\n\n    # B-5. Correction loop (on REQUEST_CHANGES, up to the contract's max_iterations)\n    # The Worker completed in the foreground but can be resumed with SendMessage\n    # (CC: SendMessage(to: agentId))\n    review_count = 0\n    # Read max_iterations only when the sprint-contract exists. Otherwise 3 (backward compat)\n    MAX_REVIEWS = read_contract(contract_path, \".review.max_iterations\") or 3\n    latest_commit = worker_result.commit\n    while verdict == \"REQUEST_CHANGES\" and review_count \u003C MAX_REVIEWS:\n        SendMessage(to=worker_id, message=\"Findings: {issues}\\nFix and amend\")\n        # Worker fixes → amend → returns the updated commit hash\n        updated_result = wait_for_response(worker_id)\n        latest_commit = updated_result.commit\n        diff_text = git(\"-C\", worker_result.worktreePath, \"show\", latest_commit)\n        verdict = reviewer_agent_review(diff_text)\n        review_count++\n\n    # B-6. APPROVE → cherry-pick onto trunk (via the feature branch)\n    # Assume the Worker's Branch Guard kept trunk HEAD unmoved and the commit is on the feature branch\n    if verdict == \"APPROVE\":\n        TRUNK=$(git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD 2>\u002Fdev\u002Fnull | sed 's|refs\u002Fremotes\u002Forigin\u002F||' || echo \"main\")\n        git checkout \"$TRUNK\"  # safety: no-op if already on trunk\n        # Check whether the feature branch's commit is already on trunk (fallback if Branch Guard failed)\n        if git(\"merge-base\", \"--is-ancestor\", latest_commit, \"HEAD\"):\n            pass  # Already on trunk — no cherry-pick needed (re-entry guard)\n        else:\n            git cherry-pick --no-commit {latest_commit}  # feature branch → trunk\n            git commit -m \"{task.Content}\"\n        # Remove the Worker's worktree, then delete the feature branch\n        if worker_result.worktreePath:\n            git worktree remove {worker_result.worktreePath} --force\n        if worker_result.branch and worker_result.branch not in [\"main\", \"master\"] and worker_result.branch != TRUNK:\n            git branch -D {worker_result.branch}\n        Plans.md: task.status = \"cc:done [{hash}]\"\n        # auto-checkpoint recording (idempotency guard (c))\n        # Call right after rewriting Plans.md. Even on failure, fail-open (|| true) does not stop the loop\n        HASH=$(git rev-parse --short HEAD)\n        REVIEW_RESULT_PATH=\".claude\u002Fstate\u002Freview-results\u002F${task.number}.review-result.json\"\n        bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fauto-checkpoint.sh\" \\\n            \"${task.number}\" \"${HASH}\" \"${contract_path}\" \"${REVIEW_RESULT_PATH}\" \\\n            || true  # fail-open: continue even where harness-mem is not running\n    else:\n        → escalate to the user\n\n    # B-7. Progress feed\n    print(\"📊 Progress: Task {completed}\u002F{total} done — {task.Content}\")\n```\n\n### Advisor Protocol (common to all modes)\n\nThe Advisor is neither an \"implementer\" nor a \"reviewer.\"\nIt steps in only when stuck, as a consultant to help the executor decide the next step.\n\n1. The Worker does not add generic subagents; it returns `advisor-request.v1` only when needed\n2. The Lead calls the advisor exactly once\n3. The Advisor returns one of `PLAN` \u002F `CORRECTION` \u002F `STOP`\n4. The Lead returns that advice to the same Worker to continue\n5. The Reviewer looks only at the final deliverable. It does not issue APPROVE \u002F REQUEST_CHANGES on the advisor's reply\n\n### Advisor in Solo mode\n\nIn a solo run, the parent session doubles as the Lead.\nThat is, it takes the form of \"implement it yourself, consult the advisor yourself, and send it to an independent review at the end.\"\n\n- The consult conditions are the same as loop \u002F breezing\n- The consult budget is also the same: at most 3 times per task\n- `STOP` stops on the spot and escalates to the user for a decision\n- The review artifact gate is not skipped\n\n### Sprint Contract\n\nA `sprint-contract` is a small contract file that expresses \"what makes this task pass\" so that both machines and humans read it with the same meaning.\nThe default save location is `.claude\u002Fstate\u002Fcontracts\u002F\u003Ctask-id>.sprint-contract.json`.\n\n```bash\nnode \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-sprint-contract.js\" 32.1.1\n```\n\nThe output includes the following.\n\n- `checks`: verification items broken down from the DoD\n- `non_goals`: what will not be done this time\n- `runtime_validation`: validation commands such as test, lint, typecheck\n- `browser_validation`: UI flow verification items the browser reviewer should leave\n- `browser_mode`: `scripted` or `exploratory`\n- `route`: which of `playwright` \u002F `agent-browser` \u002F `chrome-devtools` the browser reviewer uses\n- `risk_flags`: `needs-spike`, `security-sensitive`, `ux-regression`, etc.\n- `reviewer_profile`: `static`, `runtime`, `browser`\n\n**Required metadata (lane \u002F stage \u002F evidence)** — the sprint contract input passed to Worker \u002F Scaffolder \u002F Reviewer:\n\n| Field | Meaning | Example |\n|-----------|------|-----|\n| `spec_path` | Path to the root `spec.md` (or nearest sub-spec) | `spec.md`, `docs\u002Fspec\u002F00-project-spec.md` |\n| `lane` | The task's lane taxonomy | `fast`, `gate`, `release` |\n| `stage` | The current stage of the 5-stage gate | `research`, `plan`, `impl`, `review`, `closeout` |\n| `research_evidence` | Link \u002F commit \u002F file of the research result | `docs\u002Fresearch\u002Fphase-72-evidence.md`, commit hash |\n| `tdd_red_log` | RED evidence for `[tdd:required]` tasks (commit hash or log path) | `.claude\u002Fstate\u002Ftdd-red-log\u002F72.1.3.jsonl`, `abc1234` |\n| `review_artifact` | Review verdict and findings | `{ verdict: \"APPROVE\", findings: [...] }` |\n| `pr_closeout` | Closeout artifact (base\u002Fhead refs + evidence pack) | `{ base_ref, head_ref, evidence_pack }` |\n\nWhen running `generate-sprint-contract.js`, the Lead loads `spec_path` \u002F `lane` \u002F `stage` into the contract from the Plans metadata, and appends `research_evidence` after research completes. After TDD Red, load `tdd_red_log`; after review, `review_artifact`; after PR closeout, `pr_closeout`.\n\n**TDD completion gate**: For `[tdd:required]` tasks, do not treat as complete unless the sprint contract has `tdd_red_log` or an explicit `skip_tdd_reason` (this applies to `cc:done` update, cherry-pick, and PR closeout alike).\n\n### PR Closeout (after review APPROVE)\n\nAfter review APPROVE, build the PR title\u002Fbody from the evidence pack with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fharness-pr-closeout.sh\"`. **The default is a `dry-run` preview** (`git push` \u002F `gh pr create` happen only via the `push` subcommand plus confirmation or `--yes`).\n\n```bash\nbash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fharness-pr-closeout.sh\" build \\\n  --base origin\u002Fmain --head \"$(git branch --show-current)\" \\\n  --evidence .claude\u002Fstate\u002Fevidence-pack.json \\\n  --out .claude\u002Fstate\u002Fpr-payload.json\nbash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fharness-pr-closeout.sh\" dry-run --payload .claude\u002Fstate\u002Fpr-payload.json\n# Explicit push only (confirmation required, can be skipped with --yes):\nbash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Fharness-pr-closeout.sh\" push --payload .claude\u002Fstate\u002Fpr-payload.json\n```\n\nAutomatic push \u002F PR \u002F merge from the `harness-review` path is forbidden (read-only boundary). In a detached HEAD state, a branch must be created before `push`.\n\n**The lightening boundary for the fast lane**: `lane: fast` may skip the full review, but it does not skip the unknown data contract of `not_observed != absent` or the focused checks (the DoD breakdown of `runtime_validation` \u002F `checks`).\n\n**Phase C: Post-delegate (integration \u002F report)**:\n1. Aggregate the commit logs of all tasks\n2. Output the **rich completion report** (the Breezing template in \"Completion report format\")\n3. Final check of Plans.md (whether all tasks are `cc:done`)\n\n## Responding to CI failures\n\nWhen CI fails:\n\n1. Check the logs and identify the error\n2. Apply the fix\n3. Stop the auto-fix loop after 3 failures from the same cause\n4. Escalate with a summary of the failure log, attempted fixes, and remaining open questions\n\n## Automatic reticketing of failed tasks\n\nWhen a test\u002FCI fails after task completion, auto-generate a fix task proposal and, after approval, reflect it into Plans.md:\n\n### Trigger conditions\n\n| Condition | Action |\n|------|----------|\n| Test fails after `cc:done` | Save the fix task proposal to state and wait for approval |\n| CI failure (fewer than 3 times) | Apply the fix and increment the failure count |\n| CI failure (3rd time) | Present the fix task proposal + escalate |\n\n### Automatic generation of the fix task\n\n1. Classify the failure cause (syntax_error \u002F import_error \u002F type_error \u002F assertion_error \u002F timeout \u002F runtime_error)\n2. Save the fix task proposal to `.claude\u002Fstate\u002Fpending-fix-proposals.jsonl`:\n   - Number: original task number + `.fix` suffix (e.g., `26.1.fix`)\n   - Content: `fix: [original task name] - [failure cause category]`\n   - DoD: tests\u002FCI pass\n   - Depends: original task number\n3. When the user sends `approve fix \u003Ctask_id>`, add it to Plans.md as `cc:TODO`\n4. Discard the proposal with `reject fix \u003Ctask_id>`. When there is only one pending item, you can also respond with `yes` \u002F `no`\n\n## Review loop\n\nThe quality verification stage that runs automatically after implementation completes (after step 5).\nIt applies uniformly **across all modes** (Solo \u002F Parallel \u002F Breezing).\nIn Parallel mode, each Worker runs the same loop as step 10 (accepting external review).\n\n### Review execution\n\nThe internal Reviewer agent performs the review.\n\n### APPROVE \u002F REQUEST_CHANGES criteria\n\nGive the reviewer the following threshold criteria and have it decide the verdict using **these criteria only**.\nImprovement suggestions outside the criteria are returned as `recommendations` but do not affect the verdict.\n\n| Severity | Definition | Effect on verdict |\n|--------|------|-----------------|\n| **critical** | Security vulnerability, data loss risk, possibility of a production outage | Even one → REQUEST_CHANGES |\n| **major** | Breakage of existing functionality, a clear contradiction with the spec, test failure | Even one → REQUEST_CHANGES |\n| **minor** | Naming improvement, missing comments, style inconsistency | Does not affect the verdict |\n| **recommendation** | Best-practice suggestion, future improvement idea | Does not affect the verdict |\n\n> **Important**: When there are only minor \u002F recommendation items, **always return APPROVE**.\n> A \"nice-to-have improvement\" is not a reason for REQUEST_CHANGES.\n\n### AI Residuals scan\n\nKeep the HEAD at task start as `BASE_REF`, and make the diff against that ref the review target.\n\n```bash\n# Record the base ref at task start (run before the Step 2 cc:WIP update)\nBASE_REF=$(git rev-parse HEAD)\n```\n\nRun the AI Residuals scan with `bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Freview-ai-residuals.sh\"`,\nand decide the final verdict combined with the Reviewer agent result.\n\n```bash\n# AI Residuals scan (can run in parallel with the review)\nAI_RESIDUALS_JSON=\"$(bash \"${HARNESS_PLUGIN_ROOT}\u002Fscripts\u002Freview-ai-residuals.sh\" --base-ref \"${BASE_REF}\" --include-untracked 2>\u002Fdev\u002Fnull || echo '{\"tool\":\"review-ai-residuals\",\"scan_mode\":\"diff\",\"base_ref\":null,\"include_untracked\":true,\"files_scanned\":[],\"untracked_files_scanned\":[],\"summary\":{\"verdict\":\"APPROVE\",\"major\":0,\"minor\":0,\"recommendation\":0,\"total\":0},\"observations\":[]}')\"\n```\n\n### Internal Reviewer agent\n\n```\nAgent tool: subagent_type=\"reviewer\"\nprompt: \"Please review the following changes. Criteria: critical\u002Fmajor → REQUEST_CHANGES; minor\u002Frecommendation only → APPROVE. diff: {git diff ${BASE_REF}}\"\n```\n\nThe Reviewer agent runs the review safely as Read-only (Write\u002FEdit\u002FBash disabled).\n\n### Correction loop (on REQUEST_CHANGES)\n\n```\nreview_count = 0\n# Read max_iterations only when the sprint-contract exists. Otherwise 3 (backward compat)\ncontract_path = get_sprint_contract_path()  # e.g., .claude\u002Fstate\u002Fcontracts\u002F\u003Ctask-id>.sprint-contract.json\nMAX_REVIEWS = read_contract(contract_path, \".review.max_iterations\") or 3\n\nwhile verdict == \"REQUEST_CHANGES\" and review_count \u003C MAX_REVIEWS:\n    1. Analyze the review findings (critical \u002F major only)\n    2. Implement a fix for each finding\n    3. Run the review again (same criteria, same priority)\n    review_count++\n\nif review_count >= MAX_REVIEWS and verdict != \"APPROVE\":\n    → escalate to the user\n    → \"I fixed MAX_REVIEWS times, but the following critical\u002Fmajor findings remain\" + show the findings list\n    → wait for the user's decision (continue \u002F abort)\n```\n\n### Application in Breezing mode\n\nIn Breezing mode, the **Lead** runs the review loop (see Phase B above):\n\n1. The Worker implements and commits in the worktree → returns the result to the Lead\n2. The Lead reviews with the Reviewer agent\n3. REQUEST_CHANGES → the Lead instructs the Worker to fix via SendMessage → the Worker amends\n4. After the fix, re-review (up to `MAX_REVIEWS = read_contract(contract_path, \".review.max_iterations\") or 3` times)\n5. APPROVE → the Lead cherry-picks onto trunk (the default branch) → updates Plans.md to `cc:done [{hash}]`\n\n## Completion report format\n\nA visual summary output automatically at task completion (after `cc:done` + commit).\nIts purpose is to convey the change and its impact even to non-experts.\n\n### Template\n\n```\n┌─────────────────────────────────────────────┐\n│  ✓ Task {N} done: {task name}                 │\n├─────────────────────────────────────────────┤\n│                                              │\n│  ■ What was done                             │\n│    • {change 1}                               │\n│    • {change 2}                               │\n│                                              │\n│  ■ What changes                              │\n│    Before: {old behavior}                     │\n│    After:  {new behavior}                     │\n│                                              │\n│  ■ Changed files ({N} files)                 │\n│    {file path 1}                              │\n│    {file path 2}                              │\n│                                              │\n│  ■ Remaining work                            │\n│    • Task {X} ({status}): {content}  ← Plans.md  │\n│    • Task {Y} ({status}): {content}  ← Plans.md  │\n│    ({M} incomplete tasks remain in Plans.md)  │\n│                                              │\n│  commit: {hash} | review: {APPROVE}           │\n└─────────────────────────────────────────────┘\n```\n\n### Generation rules\n\n1. **What was done**: auto-extracted from `git diff --stat HEAD~1` and the commit message. Keep technical terms to a minimum and start with a verb\n2. **What changes**: infer Before\u002FAfter from the task's \"Content\" and \"DoD.\" Emphasize the change in user experience\n3. **Changed files**: obtained from `git diff --name-only HEAD~1`. If more than 5 files, omit and show the count\n4. **Remaining work**: list the `cc:TODO` \u002F `cc:WIP` tasks in Plans.md. Make explicit whether they are recorded in Plans.md\n5. **review**: show the review result (APPROVE \u002F REQUEST_CHANGES → APPROVE)\n\n### Reporting in Parallel mode\n\n- **1 task** (when `--parallel` is forced): use the Solo template\n- **Multiple tasks**: use the Breezing aggregate template (see below)\n\n### Reporting in Breezing mode\n\nOutput all at once after all tasks complete. List each task in a simplified form (what was done + commit hash only),\nand output an overall summary at the end (total changed file count + remaining work):\n\n```\n┌─────────────────────────────────────────────┐\n│  ✓ Breezing done: {N}\u002F{M} tasks              │\n├─────────────────────────────────────────────┤\n│                                              │\n│  1. ✓ {task name 1}          [{hash1}]      │\n│  2. ✓ {task name 2}          [{hash2}]      │\n│  3. ✓ {task name 3}          [{hash3}]      │\n│                                              │\n│  ■ Overall changes                           │\n│    {N} files changed, {A} insertions(+),     │\n│    {D} deletions(-)                          │\n│                                              │\n│  ■ Remaining work                            │\n│    {K} incomplete tasks remain in Plans.md   │\n│    • Task {X}: {content}                      │\n│                                              │\n└─────────────────────────────────────────────┘\n```\n\n## Progress visualization (for non-engineers)\n\nWhile tasks run, `harness-progress` summarizes the progress counts and drift alerts into a single HTML.\nBecause it is regenerated automatically by a PostToolUse hook, the requester can see the latest progress board without learning how to invoke it\n(`posttool-progress-regen.sh` regenerates at most once per minute).\n\n## Related skills\n\n- `harness-plan` — plan the tasks to execute\n- `harness-sync` — sync the implementation and Plans.md\n- `harness-review` — review the implementation\n- `harness-release` — version bump \u002F release\n- `harness-progress` — progress board HTML (for non-engineers, auto-regenerated during a run)\n",{"kind":24,"name":5,"pair":25,"role":26,"owner":27,"shape":24,"since":28,"effort":29,"purpose":30,"trigger":31,"description":7,"allowed-tools":32,"argument-hint":41,"description-en":7,"user-invocable":42},"workflow","harness-review","executor","harness-core","2026-05-05","high","Execute Plans.md tasks end to end","implement, execute, do everything, breezing, team run, parallel",[33,34,35,36,37,38,39,40],"Read","Write","Edit","Grep","Glob","Bash","Task","Monitor","[all] [task-number|range] [--parallel N] [--no-commit] [--resume id] [--breezing] [--auto-mode] [--tdd-bypass]",true,"main","3517f6fc9c5159f32d585682386ed45e35c30ddf","skills\u002Fharness-work","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness","https:\u002F\u002Fgithub.com\u002Ffoden303","Software Engineer","2026-11-06 10:59:21",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":42},[52,55,58],{"tool":53,"command":54},"npx","npx skills add foden303\u002Fharness --skill harness-work",{"tool":56,"command":57},"bunx","bunx skills add foden303\u002Fharness --skill harness-work",{"tool":59,"command":60},"pnpm","pnpm dlx skills add foden303\u002Fharness --skill harness-work","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fharness-work\u002FSKILL.md",[63,69,73,77],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fcompletion-report.md","REFERENCE","参考文档",659,"https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fharness-work\u002Freferences\u002Fcompletion-report.md",{"path":70,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fexecution-modes.md",3184,"https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fharness-work\u002Freferences\u002Fexecution-modes.md",{"path":74,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Ffailure-reticketing.md",719,"https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fharness-work\u002Freferences\u002Ffailure-reticketing.md",{"path":78,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Freview-loop.md",922,"https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fharness-work\u002Freferences\u002Freview-loop.md",[82,88,94,101,108,115],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M79DWR27RWW11HNKY0MRECPP","escape-skill","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fzz-review-escape\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79DWPSR8ZK3V4DQK5EWVJ3K","zz-review-empty","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fzz-review-empty\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79DWFV6PYV0QEZ3SC32VMCM","memory","Manage SSOT, memory, and cross-tool memory search. Guardian of decisions.md and patterns.md. Use when user mentions memory, SSOT, decisions.md, patterns.md, merging, migration, SSOT promotion, sync memory, save learnings, memory search, harness-mem, past decisions, or record this. Do NOT load for: implementation work, reviews, ad-hoc notes, or in-session logging.","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fmemory\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M79DWB6MB7EQK2JT4A84NHJD","maintenance","File cleanup and archiving. Tidies up bloated Plans.md, session-log.md, old logs, and state files. Trigger: \u002Fmaintenance, cleanup, archive, organize, split session-log. Do NOT load for: implementation, review, release, new feature development.","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fmaintenance\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M79DVWV7PZC0E2GYC103QBYZ","harness-sync","HAR: Sync Plans.md with implementation. Drift detect, marker update, retrospective. Trigger: sync-status, where am I, check progress. --snapshot for snapshots. Do NOT load for: planning, implementation, review, release.","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fharness-sync\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M79DVQP8AG6JC6YQSVRJX2AA","harness-setup","HAR: Project init, tool setup, agent config, memory setup, skill mirror sync. Trigger: setup, init, new project, CI setup, harness-mem, mirror. Do NOT load for: implementation, review, release, planning.","https:\u002F\u002Fgithub.com\u002Ffoden303\u002Fharness\u002Fblob\u002Fmain\u002Fskills\u002Fharness-setup\u002FSKILL.md",[],[]]