[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AS1WQBS3Z3K17Y4DDR8QFA":3,"skill-same:01M7AS1WQBS3Z3K17Y4DDR8QFA":76},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7AS1WQBS3Z3K17Y4DDR8QFA","agent-work-planner",null,"Plan engineering work across human-launched AI coding sessions and follow-up missions. Use when splitting work into reasonably sized agent goals, balancing implementation iterations against review cycles, deciding whether the planner should act directly, continue an existing session as A2\u002FB2, open a fresh implementation session, or create an independent Agent R review lane; batching review at coherent stable milestones; tracking blockers, waves, progress, integration readiness, workspace topology, prompts, replanning after frontier-changing events, and periodically performing a deep strategic reassessment of the objective, assumptions, target configuration, model fidelity, experiment validity, and remaining DAG.","ham-zax\u002Fwebharness","ham-zax","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F81289670?v=4","01M7AQGHAV4TPYCAZY23S7SVSC","Ahmed Hamza","01M7AQGHBCFJYE7KWZ34W9HEGH",0,"MIT","https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fagent-work-planner\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agent-work-planner\ndescription: Plan engineering work across human-launched AI coding sessions and follow-up missions. Use when splitting work into reasonably sized agent goals, balancing implementation iterations against review cycles, deciding whether the planner should act directly, continue an existing session as A2\u002FB2, open a fresh implementation session, or create an independent Agent R review lane; batching review at coherent stable milestones; tracking blockers, waves, progress, integration readiness, workspace topology, prompts, replanning after frontier-changing events, and periodically performing a deep strategic reassessment of the objective, assumptions, target configuration, model fidelity, experiment validity, and remaining DAG.\n---\n\n# Agent Work Planner\n\nPlan multi-session engineering work as a stateful human-operated orchestration system.\n\n## Identity model\n\nTreat an **Agent** as one human-launched AI coding chat\u002Fsession. Treat a **Mission** as one bounded assignment inside that session.\n\nUse mission identifiers to preserve continuity:\n\n- `A1` = Agent A's first mission.\n- `A2` = a follow-up mission pasted into the **same Agent A chat**.\n- `B1` = another human-launched chat\u002Fsession.\n- `B2` = a follow-up mission in that same Agent B chat.\n- `R1` = the first independent review mission in the reserved **Agent R** reviewer chat.\n- `R2` = a re-review pasted into the **same Agent R chat** after the implementer addresses R1 findings.\n\nDo not call `A2`, `B2`, or `R2` a new agent. Open a fresh Agent C\u002FD\u002Fetc. only when a new implementation\u002Fdiagnostic session is justified. Reserve Agent R for independent review work rather than implementation.\n\nNever claim an agent\u002Fsession is launched, active, or running unless the user or available tooling establishes that state.\n\n## Core invariants\n\n- **Coordination must earn its overhead.** Use the cheapest correct execution owner.\n- **Optimize feedback cycles, not agent count.** Give each implementation session a reasonably sized coherent goal and allow multiple implementation missions before review when they build one stable candidate. Minimize reviewer\u002Fimplementer ping-pong, not productive implementation passes. Do not force a review merely because `A1` ended if `A2` is a natural same-area continuation and early review would not materially change direction.\n- **Size missions for useful progress.** A mission should be large enough to justify the session's context and produce a meaningful artifact, but small enough to own, verify, and hand off clearly. Do not create microscopic missions just to manufacture checkpoints, and do not overpack unrelated work into one mission merely to reduce the number of agents.\n- **Planner absorbs bounded friction.** Small causally clear repairs, deterministic metadata\u002Fversion closure, trivial integration conflicts, and clean integration work should be planner-owned when authorized and cheaper than another feedback cycle. Delegate only when substantial design, rediscovery, or subsystem ownership makes another session earn its cost.\n- **Batch review, not risk.** When independent review is required, prefer one review of the largest coherent stable candidate, including directly related contracts and post-rebase\u002Fintegration effects, instead of serial reviews after each implementation mission. Do not batch unrelated missions or defer an early review that is needed to prevent expensive downstream work.\n- **Prefer file-backed handoffs on shared filesystems.** When delegated agents and the planner can access the same filesystem, assign a disposable handoff inbox and require each completed\u002Fblocked mission to write a timestamped receipt there before replying. Treat the receipt as coordination metadata, not repository truth; verify consequential Git\u002Frepository claims independently. Do not make the user copy summaries between chats when the planner can discover the receipt directly.\n- **Blockers do not disappear implicitly.** A blocker is discharged only by evidence satisfying its recorded discharge condition.\n- **READY implies action.** When work becomes READY, either execute planner-owned work, issue a same-session continuation prompt, issue a fresh-session prompt, or explicitly defer it with a reason.\n- **Active sessions never disappear silently.** Reconcile every known active or unresolved session before advancing the frontier.\n- **Progress is automatic.** During an ongoing plan, every orchestration response after a frontier-affecting event ends with a compact Progress Snapshot unless the user explicitly asks to suppress it.\n- **Progress tracking is not strategic review.** After roughly two material frontier transitions, or immediately after one major\u002Fhigh-impact transition, run a deep Strategic Reassessment Gate that re-derives the remaining plan from the end objective, verified repository\u002Fproduct state, and current evidence instead of merely advancing the existing DAG.\n- **Forecast the DAG; materialize the frontier.** Keep future waves visible at low resolution without freezing details that depend on current work.\n- **Reuse context aggressively, preserve independence more strongly.** Prefer A2\u002FB2 when existing context helps, except when a fresh independent perspective is required.\n- **Review must earn its overhead, then block integration when required.** Substantial or integration-sensitive changes must pass an explicit Review Gate; when independent review is warranted, create Agent R and keep integration blocked until the review discharge condition is satisfied.\n- **Reviewer and repairer stay separate.** Agent R identifies findings and never repairs the production target. Small bounded findings may be repaired by the planner; larger same-area findings normally return to the original implementer. Agent R re-reviews the repaired target in the same reviewer session.\n- **Isolation must earn its cost.** Current checkout is the default; branches\u002Fworktrees require a concrete need.\n- **Planning does not broaden implementation authority.** Preserve Causal Coding authority for implementation mutation, testing, verification, continuation, and stopping.\n- **Separate planning from execution lifetime.** Use `persistent-agent-loop` for long-lived continuity, not for decomposition or next-wave planning.\n\n## Environment composition\n\nWhen operating in ChatGPT Web against a connected WSL\u002FLinux repository, route repository work through `mcp-harness-router` to `wsl-web-harness` and treat that WSL target as authoritative. Use Causal Coding before implementation-affecting mutation.\n\nAgent Work Planner owns:\n\n- session\u002Fmission topology;\n- execution-owner selection;\n- dependencies and blockers;\n- waves and readiness;\n- prompts and handoffs;\n- shared handoff-inbox assignment, discovery, and cleanup;\n- workspace assignment;\n- review-gate and integration ordering;\n- progress state;\n- replanning.\n\n## Operating modes\n\nUse the lightest mode that satisfies the mission.\n\n### Plan-only\n\nInspect and recommend only. Do not mutate repository state merely to answer an advisory question.\n\n### Lightweight orchestration\n\nUse for small\u002Fmedium efforts where prompts plus an in-chat state board are sufficient. Do not create durable planning files merely because several missions exist.\n\n### Durable orchestration\n\nUse when several waves, concurrent writers, important shared contracts, long-lived sessions, significant integration, or later recovery justify repository-resident coordination state. See `references\u002Fcoordination-package-template.md`.\n\n### Replan\n\nUse after any frontier-invalidating event, not only returned agent reports.\n\n## Workflow\n\n### 1. Orient to authoritative state\n\nEstablish:\n\n- user objective and constraints;\n- repository\u002Fsource-of-truth artifacts;\n- known agents and their current missions\u002Fstatus;\n- relevant Git\u002Fworkspace state when available;\n- current waves and blockers;\n- returned reports or newly integrated artifacts;\n- public\u002Fshared contracts relevant to candidate missions.\n\nVerified repository state and current user direction outrank stale planning artifacts.\n\n### 2. Reconcile known sessions\n\nBefore creating or advancing work, account for every known unresolved session.\n\nAssign one disposition:\n\n- `CONTINUE`\n- `HOLD`\n- `COMPLETE`\n- `NEEDS DECISION`\n- `SUPERSEDED`\n- `CANCELLED`\n- `REUSE AS \u003CA2\u002FB2\u002F...>`\n\nDo not silently omit an existing Agent B\u002FC\u002FE merely because another agent returned or a commit landed.\n\nFor durable efforts, maintain the Session Ledger defined in `references\u002Forchestration-state.md`.\n\n### 3. Update blocker state\n\nFor every blocked mission\u002Fwave, track:\n\n- blocked item;\n- blocker;\n- owning mission\u002Fsession;\n- exact discharge condition;\n- current status\u002Fevidence.\n\nA commit, integration, review, or report may discharge only blockers it actually satisfies.\n\nNever infer:\n\n`unrelated mission completed -> blocked wave READY`\n\nSee `references\u002Forchestration-state.md` for the Blocker Ledger.\n\n### 4. Build or update the dependency DAG\n\nFor each mission identify:\n\n- prerequisites;\n- shared interfaces\u002Fcontracts;\n- mutable ownership\u002Fcollision surfaces;\n- role and artifact type;\n- observable completion boundary;\n- downstream missions unlocked;\n- committed vs conditional status.\n\nGroup work into **waves**. A wave is a readiness frontier: missions that may start from the same prerequisite state.\n\nUse optional **phases** only when several waves benefit from a higher-level grouping.\n\n### 4.5 Balance mission size and review cadence\n\nTreat **mission boundaries** and **review boundaries** as different things. A session may complete more than one bounded mission before independent review when those missions compose one coherent candidate and the later mission does not depend on reviewer feedback.\n\nPrefer a topology like:\n\n```text\nA1 -> A2 -> R1 -> B1 -> R2\n```\n\nwhen `A1` and `A2` are coherent implementation work that can safely accumulate before review, `R1` reviews the combined stable candidate, and `B1` is a substantial repair or follow-up justified by that review before one bounded re-review.\n\nAvoid review ping-pong like:\n\n```text\nA1 -> R1 -> A2 -> R2 -> A3 -> R3 -> B1 -> R4 -> A4 -> R5\n```\n\nunless each early review is independently justified by a high-cost architecture, security, migration, public-contract, or other direction-setting risk.\n\nBefore opening Agent R, ask:\n\n- Is the current candidate stable enough that review findings will be actionable rather than immediately invalidated by the next planned implementation mission?\n- Can the current implementer complete the next same-area mission first without materially increasing risk?\n- Would early reviewer feedback change architecture or prevent expensive rework?\n- Is the review target coherent enough that the reviewer can inspect all directly related surfaces in one pass?\n\nDo not chase a minimum number of agent passes. Optimize for a small number of **meaningful implementation batches and review cycles**.\n\n### 5. Choose the execution owner\n\nFor each newly READY action, decide in this order:\n\n#### A. Planner-owned\n\nExecute directly when the action is bounded coordination\u002Fsetup\u002Fintegration or a small determined change and delegation would cost more than it helps.\n\nTypical examples:\n\n- clean cherry-pick\u002Fintegration;\n- bounded coordination-file update;\n- small deterministic metadata alignment;\n- a small review finding whose causal owner and repair are already clear;\n- trivial rebase\u002Fmerge conflict resolution after a candidate is otherwise complete;\n- version\u002Ffreshness closure directly required by a bounded repair;\n- branch\u002Fworktree\u002Fstatus inspection;\n- preparing prompts\u002Fhandoffs.\n\nPrefer planner-owned execution when the repair is cheaper to prove directly than to explain, hand off, rediscover, and review as a separate implementation mission. Preserve Causal Coding authority for any implementation-affecting mutation.\n\nDo not merely tell the user planner-owned work is ready when the current mission authorizes doing it.\n\n#### B. Same-session continuation: A2\u002FB2\n\nPrefer a continuation mission in an existing chat when materially relevant conditions hold:\n\n- the follow-up is small to medium;\n- it is in the same or strongly adjacent ownership area;\n- prior session context materially reduces rediscovery;\n- no independent perspective is required;\n- workspace ownership remains safe;\n- previous mission state is not stale\u002Fsuperseded;\n- the follow-up does not cross an unresolved blocker;\n- it can be bounded as a distinct mission.\n\nIssue a continuation prompt and explicitly say:\n\n`Paste this into the existing Agent A\u002FB chat. Do not open a new session.`\n\nDo not number ordinary steering as A2\u002FB2 while A1\u002FB1 is still active. A continuation is a new bounded mission after the prior mission boundary; compatible in-mission steering remains part of the current mission.\n\n#### C. Fresh session\n\nOpen a new Agent C\u002FD\u002Fetc. when separation materially helps, such as:\n\n- substantial implementation;\n- different subsystem\u002Fownership boundary;\n- large diagnosis\u002Finvestigation;\n- independent diagnosis;\n- independent review, which should normally use the reserved Agent R lane;\n- concurrent writable work needing isolated ownership;\n- fresh context materially improves reliability;\n- existing session reuse would violate independence.\n\nExplicitly say:\n\n`Open a NEW chat for Agent C.`\n\n### 6. Preserve independence\n\nSelf-review is not independent review.\n\nDo not reuse an implementation session for an independent review merely because it is convenient.\n\nReserve **Agent R** as the normal independent-review lane. Keep R read-only by default and do not let R repair the production changes it is reviewing.\n\nIf Agent R finds blocking defects, choose the repair owner in this order:\n\n1. **Planner-owned** for a small, causally clear, bounded repair that does not require substantial implementer context or redesign;\n2. **same implementation session** for a medium\u002Fsubstantial same-area repair where prior context materially helps;\n3. **fresh implementation session** only when ownership changes, context is stale, or independent diagnosis\u002Fimplementation separation materially helps.\n\nThen issue the narrow re-review into the existing Agent R chat. A planner-owned repair does not compromise review independence because Agent R remains read-only and did not author the fix.\n\nDo not reuse R for implementation when doing so would destroy the independence required for the resulting repair.\n\n### 7. Apply the Review Gate before integration\n\nBefore integrating a completed **review batch\u002Fcandidate**, decide whether independent review materially reduces integration risk. A mission completion alone is not a review trigger. Review must earn its overhead; do not create Agent R after every implementation mission when more planned same-area work should reasonably join the same stable candidate.\n\nDefault toward an Agent R review when one or more materially apply:\n\n- substantial implementation or large refactor\u002Fmigration;\n- cross-subsystem or shared-contract changes;\n- public API\u002Fschema\u002Fpersistence\u002Fdata-shape changes;\n- concurrency, process-lifetime, native\u002FGPU\u002FFFI, auth\u002Fsecurity, or other difficult-to-observe behavior;\n- broad\u002Fmechanical changes where attribution is harder;\n- implementer-reported uncertainty, deviations, or unresolved risk;\n- explicit user\u002Fspec\u002Frepository requirement for independent review.\n\nUsually skip Agent R for clean cherry-picks, small deterministic integrations, tiny localized changes, or docs\u002Fmetadata where independent review cost clearly exceeds plausible integration risk.\n\n### Review batching policy\n\nTarget the **largest sensible stable boundary** that is still coherent and reviewable. That boundary may intentionally contain multiple implementation missions such as `A1 + A2`; review gates belong to stable integration candidates, not automatically to individual missions. Prefer to let the planned same-area implementation batch finish, update\u002Frebase it onto the intended integration baseline, and refresh the directly affected validation before opening the review gate when earlier review would not change implementation direction.\n\nBatch directly related surfaces into one review when they belong to the same integration decision, for example:\n\n- core implementation + public handler\u002Fschema + exports for one feature;\n- candidate + trivial post-rebase adaptation;\n- implementation + freshness\u002Fversion closure caused by the same semantic change;\n- one feature's correctness, scope, and integration interaction with the current baseline.\n\nDo **not** batch unrelated missions, a change set too large for one reviewer to reason about reliably, or an early architecture\u002Fsecurity\u002Fpublic-contract decision whose review is needed before downstream implementation becomes expensive. Review count is not a quality metric; evidence and independence are.\n\nWhen review is required:\n\n1. first confirm the planned implementation batch is at a sensible stable milestone; do not open R1 merely because the latest mission ended;\n2. create `R1` as a **NEW SESSION** if no suitable independent Agent R session exists;\n3. record `Integration of \u003Creview batch>` as BLOCKED by R1 in the Blocker Ledger;\n4. define the discharge condition as `R1 reports no blocking findings`;\n5. instruct R1 to inspect the whole assigned batch and report **all material in-scope blocking findings it can substantiate in that pass**, rather than intentionally stopping after the first finding;\n6. if R1 finds blockers, keep integration blocked and group directly related repair obligations into the smallest sensible repair batch. Use planner-owned work for tiny bounded fixes; otherwise use the same implementation session or a justified fresh implementation session;\n7. after the repair batch is complete, issue `R2` into the **same Agent R chat** unless independence\u002Fcontext has materially broken;\n8. keep R2 bounded to all repaired findings plus directly related regression\u002Fintegration effects, and ask it to report all remaining material in-scope blockers in one pass;\n9. discharge the review blocker only when the required review\u002Fre-review passes;\n10. then let the planner perform bounded integration when authorized.\n\nDo not let `implementation complete` silently mean `integration ready` when the Review Gate requires independent review.\n\n### 8. Choose workspace topology\n\nUse the simplest safe topology:\n\n- current checkout for one writer at a time;\n- same checkout\u002Fbranch for sequential sessions when safe;\n- separate branches\u002Fworktrees only for genuine concurrent writers, conflicting local state, explicit isolation needs, or another concrete safety requirement;\n- no writable workspace for read-only missions.\n\nNever create one worktree per agent by default. Never put concurrent writers in one worktree.\n\n### 9. Define the mission contract\n\nFor each mission record when relevant:\n\n- mission ID (`A1`, `A2`, `B1`, ...);\n- agent\u002Fsession;\n- fresh vs same-session continuation;\n- role;\n- review independence;\n- wave\u002Fphase;\n- start condition;\n- dependencies\u002Fblockers;\n- approximate effort share;\n- artifact type;\n- ownership\u002Fcoordination boundary;\n- observable success;\n- testing\u002Fvalidation authority;\n- workspace;\n- execution lifetime;\n- out of scope;\n- handoff inbox path when a shared filesystem is available.\n\nSize missions for coherent ownership and a **reasonable amount of useful work**, not arbitrary task counts or a desire to minimize agent passes. Prefer several meaningful same-session implementation missions before the first review when they naturally form one candidate. Split earlier only when dependencies, ownership, context limits, or a direction-setting risk make the boundary useful.\n\n### 10. Preserve testing and mutation authority\n\nPlanning must not grant authority the user or governing engineering workflow did not grant.\n\nUse a field such as:\n\n`Testing\u002Fvalidation authority: none | specified existing command(s) may run | test changes authorized | authoritative repository workflow`\n\nWhen Causal Coding applies, preserve its distinctions among workflow execution, production mutation, test execution, test creation\u002Fmodification, verification, continuation, and stopping.\n\n### 11. Generate the correct prompt type\n\nUse `references\u002Fagent-prompt-template.md`.\n\n\n### 11.1 Use file-backed mission handoffs\n\nWhen the planner and delegated sessions share the connected filesystem, use `references\u002Fhandoff-artifacts.md`.\n\nDefault to a disposable cache outside the repository so coordination does not dirty the working tree. Derive one stable repository key from the canonical Git common directory so all worktrees for the same repository share the same inbox. Assign each mission an exact inbox path in its launcher\u002Fcontinuation\u002Freview prompt.\n\nBefore a delegated mission returns its chat finish report, require it to write one timestamped handoff receipt containing its status, workspace\u002Fbranch\u002FHEAD, concise outcome, validation actually performed, deviations, blockers, and downstream facts. The planner should discover and read these receipts when the user says things like `check Agent A`, `check their work`, or `continue from the latest agent result`; do not ask the user to copy\u002Fpaste a report that already exists in the shared inbox.\n\nA handoff receipt is advisory coordination state. Repository\u002FGit\u002Fprocess facts still require authoritative verification before integration, review, or readiness claims. If the receipt is absent, stale, malformed, or refers to a different repository\u002Fworktree state, fall back to direct repository inspection and only ask the user for missing context when it cannot be reconstructed.\n\nTreat handoff files as disposable cache. Preserve receipts for active\u002Funresolved missions and the latest completed review\u002Fintegration boundary; prune older stale receipts opportunistically after integration or during orientation according to the retention guidance in `references\u002Fhandoff-artifacts.md`. Never delete source, branches, worktrees, or user artifacts as part of handoff cleanup.\n\nFor a **fresh session**, provide the full launcher prompt and say to open a new chat.\n\nFor an **A2\u002FB2 continuation**, provide a shorter delta prompt and say to paste it into the existing agent chat.\n\nFor **R1**, provide the dedicated independent-review launcher and explicitly say to open a NEW Agent R chat. For **R2**, provide the re-review delta and explicitly say to paste it into the existing Agent R chat.\n\nWhen durable mission files exist, point to them instead of duplicating full context.\n\n### 12. Handle long-lived missions\n\nMark long-lived\u002Fwait-heavy missions:\n\n`Execution lifetime: persistent-agent-loop`\n\nTell that session to load `persistent-agent-loop`. Do not duplicate its timer\u002Fwait\u002Fcheckpoint mechanics here.\n\n### 13. Apply the Frontier Transition Gate\n\nRun this gate after every frontier-invalidating event, including:\n\n- returned mission report or newly discovered mission handoff receipt;\n- cherry-pick\u002Fmerge\u002Fintegration;\n- planner-owned repository change that affects readiness;\n- blocker confirmation\u002Frefutation;\n- review result or re-review result;\n- new dependency\u002Fblocker;\n- mission cancellation\u002Fsupersession;\n- material contract change;\n- workspace ownership change;\n- user decision that changes readiness.\n\nBefore declaring any mission or wave READY:\n\n1. reconcile all known unresolved sessions;\n2. update blocker states;\n3. list every blocker on the candidate mission\u002Fwave;\n4. require concrete evidence that every required blocker is discharged;\n5. preserve unrelated blockers;\n6. recompute the readiness frontier;\n7. apply the Review Gate to completed implementation that is approaching integration;\n8. choose planner-owned vs A2\u002FB2 vs R1\u002FR2 vs fresh-session ownership for newly READY work;\n9. execute planner-owned work or emit the required prompt immediately;\n10. update progress state.\n\nNever end a frontier transition with only `Wave X can start`.\n\n### 14. Apply the Strategic Reassessment Gate\n\nFrontier bookkeeping is necessary but insufficient. Periodically challenge whether the current plan is still the right plan.\n\nDefault cadence:\n\n- run after **two material frontier transitions** since the last reassessment;\n- treat one major\u002Fhigh-impact transition as sufficient to trigger immediately;\n- run immediately when the user asks to rethink\u002Freflect\u002Faudit, evidence contradicts a planning premise, the target configuration changes, an independent review exposes cross-cutting risk, an experiment may be measuring the wrong thing, or the plan is about to make a high-level readiness\u002Flive-validation claim;\n- do not count status-only, elapsed-time, or no-op updates.\n\nRead `references\u002Fstrategic-reassessment.md` and apply its checklist. For connected repositories, ground the reassessment in targeted **read-only authoritative inspection**, not only prior reports or conversational summaries.\n\nAt minimum challenge:\n\n- the end objective and non-negotiable target configuration;\n- hidden assumptions and configuration-fidelity gaps;\n- whether captured\u002Fserialized metadata actually changes runtime behavior where the claim requires it;\n- experiment validity and confounds;\n- DAG ordering, blockers, parallelism, and execution ownership;\n- iteration topology: whether missions are too small, whether the next planned same-session implementation mission should finish before review, and whether planner-owned bounded work can remove unnecessary repair ping-pong;\n- handoff topology: whether agent state is being copied manually through chat even though a shared handoff inbox could make the planner discover completion state directly;\n- Review Gate placement: whether review is being triggered by mission completion instead of candidate stability, whether related review surfaces can be batched at a larger stable boundary, and validation depth;\n- the distinction among implementation correctness, model fidelity, operational readiness, and outcome\u002Fstrength claims.\n\nPrefer the smallest evidence-backed replan. Explicitly preserve areas that remain valid rather than reopening them reflexively. If the reassessment discovers implementation-affecting work, route it through the correct mission owner and review path; do not opportunistically patch production merely because the planner found the issue.\n\nAfter the gate, emit a concise **Strategic Reassessment receipt** and reset the reassessment cadence. If nothing changes, say that the current DAG remains valid and why.\n\n### 15. Require finish reports\n\nEvery delegated mission returns:\n\n1. `status: complete | blocked | needs decision`;\n2. agent\u002Fsession and mission ID;\n3. role;\n4. workspace\u002Fbranch and relevant commits when any;\n5. concise behavior\u002Finterface\u002Fartifact result;\n6. testing\u002Fvalidation actually performed, if authorized;\n7. deviations from mission;\n8. information dependent missions need;\n9. unresolved blockers\u002Fdecisions.\n\n### 16. Report progress automatically\n\nWhen an orchestration plan is active, append a **Progress Snapshot** after every response that performs or processes an orchestration action, including status-only updates when the planner has enough state to report meaningfully.\n\nDo not wait for the user to ask for progress.\n\nUse the **tree-style Current frontier snapshot** in `references\u002Forchestration-state.md` as the default UX. Reserve the larger Execution Board for initial planning, major replans, or materially changed DAGs.\n\nThe automatic snapshot must include, compactly:\n\n- `Current frontier`;\n- one tree node for every known active\u002Funresolved agent\u002Fmission that matters now;\n- status\u002Fownership such as `CONTINUE`, `READY — SAME SESSION`, `READY — NEW SESSION`, `READY — REVIEW`, `BLOCKED`, or `COMPLETE + INTEGRATED`;\n- one-line authoritative evidence\u002Fstate where useful;\n- explicit blockers, including review blockers;\n- near-future PLANNED\u002FCONDITIONAL work when it affects decisions;\n- a compact planned-effort summary when effort weights exist;\n- exact `Next human action`, including `paste H2 into existing Agent H`, `open Agent R with R1`, `continue Agent G`, or `nothing new`.\n\nDo not permanently carry irrelevant historical completions. Collapse them to a short integrated-base fact once they no longer affect the frontier.\n\nUse only known evidence. If state is unknown, label it `UNKNOWN`; do not fabricate ACTIVE\u002FCOMPLETE states.\n\nEffort percentages are relative engineering-work estimates, not elapsed time or measured percent-complete. Rebaseline only when the plan materially changes.\n\nSee `references\u002Forchestration-state.md` for the canonical tree format, Review Gate examples, and the larger-board escalation rule.\n\n## Default output\n\nUse the lightest useful structure, but during an ongoing plan the Progress Snapshot is mandatory unless explicitly suppressed.\n\nTypical order:\n\n1. Frontier transition \u002F decision\n2. Strategic Reassessment receipt, when the gate is due\n3. Missions or integration action\n4. Copy\u002Fpaste prompt(s), when newly actionable\n5. Review\u002Fintegration note, including Agent R state when relevant\n6. **Progress Snapshot — Current frontier tree**\n\nFor a newly READY mission:\n\n- planner-owned -> perform it when authorized;\n- same-session -> emit A2\u002FB2 prompt in the same response;\n- review -> emit R1\u002FR2 prompt in the same response and keep integration blocked until review passes;\n- fresh session -> emit new-agent prompt in the same response;\n- deferred -> state the explicit reason.\n\n## Guardrails\n\n- Never let an unrelated completion discharge another mission's blocker.\n- Never declare READY before the Frontier Transition Gate passes.\n- Never let an active\u002Funresolved agent disappear from the plan without a disposition.\n- Never end with only `Wave X can start` when action can be assigned now.\n- Never open a fresh session when an A2\u002FB2 continuation is the cheaper correct owner.\n- Never create an A2\u002FB2 handoff for a tiny bounded repair the planner can safely and cheaply own under the active mutation authority.\n- Never treat every implementation mission boundary as a review boundary. Allow multiple coherent missions to accumulate before R1 when early review would not change direction.\n- Never optimize for the fewest agent passes by making missions oversized, mixing unrelated ownership, or delaying a genuinely direction-setting review. Optimize for balanced mission size and fewer feedback cycles.\n- Never fragment one coherent reviewable candidate into multiple review waves merely because its implementation has layers; batch at the largest sensible stable boundary unless early review materially reduces risk.\n- Never instruct Agent R to stop after the first blocker by default. Within the assigned review boundary, collect all material findings that can be substantiated in the same pass unless an early blocker makes the remaining review genuinely unobservable or meaningless.\n- Never use A2\u002FB2 when required independence would be compromised.\n- Never equate self-review with independent review.\n- Never let Agent R implement the production repair it is independently reviewing.\n- Never integrate work while a required R1\u002FR2 review blocker remains unresolved.\n- Never manufacture agents, waves, worktrees, review phases, or coordination artifacts merely because a generic workflow often has them.\n- Never place concurrent writers in one worktree.\n- Never hide a dependency to make the plan look parallel.\n- Never let planning broaden testing or mutation authority.\n- Never present relative effort as elapsed-time progress.\n- Never copy secrets\u002Fcredentials into prompts or coordination files.\n- Never let stale planning state outrank current user direction or verified repository evidence.\n- Never let repeated frontier updates substitute for the Strategic Reassessment Gate once its cadence or trigger condition is met.\n- Never ask the user to relay a delegated agent's finish report when a valid file-backed handoff receipt is discoverable from the assigned shared inbox.\n- Never replan for novelty: a deep reassessment may conclude that the current DAG remains correct, but it must show what was challenged and why the plan still holds.\n","# Agent Work Planner\n\nPlan multi-session engineering work as a stateful human-operated orchestration system.\n\n## Identity model\n\nTreat an **Agent** as one human-launched AI coding chat\u002Fsession. Treat a **Mission** as one bounded assignment inside that session.\n\nUse mission identifiers to preserve continuity:\n\n- `A1` = Agent A's first mission.\n- `A2` = a follow-up mission pasted into the **same Agent A chat**.\n- `B1` = another human-launched chat\u002Fsession.\n- `B2` = a follow-up mission in that same Agent B chat.\n- `R1` = the first independent review mission in the reserved **Agent R** reviewer chat.\n- `R2` = a re-review pasted into the **same Agent R chat** after the implementer addresses R1 findings.\n\nDo not call `A2`, `B2`, or `R2` a new agent. Open a fresh Agent C\u002FD\u002Fetc. only when a new implementation\u002Fdiagnostic session is justified. Reserve Agent R for independent review work rather than implementation.\n\nNever claim an agent\u002Fsession is launched, active, or running unless the user or available tooling establishes that state.\n\n## Core invariants\n\n- **Coordination must earn its overhead.** Use the cheapest correct execution owner.\n- **Optimize feedback cycles, not agent count.** Give each implementation session a reasonably sized coherent goal and allow multiple implementation missions before review when they build one stable candidate. Minimize reviewer\u002Fimplementer ping-pong, not productive implementation passes. Do not force a review merely because `A1` ended if `A2` is a natural same-area continuation and early review would not materially change direction.\n- **Size missions for useful progress.** A mission should be large enough to justify the session's context and produce a meaningful artifact, but small enough to own, verify, and hand off clearly. Do not create microscopic missions just to manufacture checkpoints, and do not overpack unrelated work into one mission merely to reduce the number of agents.\n- **Planner absorbs bounded friction.** Small causally clear repairs, deterministic metadata\u002Fversion closure, trivial integration conflicts, and clean integration work should be planner-owned when authorized and cheaper than another feedback cycle. Delegate only when substantial design, rediscovery, or subsystem ownership makes another session earn its cost.\n- **Batch review, not risk.** When independent review is required, prefer one review of the largest coherent stable candidate, including directly related contracts and post-rebase\u002Fintegration effects, instead of serial reviews after each implementation mission. Do not batch unrelated missions or defer an early review that is needed to prevent expensive downstream work.\n- **Prefer file-backed handoffs on shared filesystems.** When delegated agents and the planner can access the same filesystem, assign a disposable handoff inbox and require each completed\u002Fblocked mission to write a timestamped receipt there before replying. Treat the receipt as coordination metadata, not repository truth; verify consequential Git\u002Frepository claims independently. Do not make the user copy summaries between chats when the planner can discover the receipt directly.\n- **Blockers do not disappear implicitly.** A blocker is discharged only by evidence satisfying its recorded discharge condition.\n- **READY implies action.** When work becomes READY, either execute planner-owned work, issue a same-session continuation prompt, issue a fresh-session prompt, or explicitly defer it with a reason.\n- **Active sessions never disappear silently.** Reconcile every known active or unresolved session before advancing the frontier.\n- **Progress is automatic.** During an ongoing plan, every orchestration response after a frontier-affecting event ends with a compact Progress Snapshot unless the user explicitly asks to suppress it.\n- **Progress tracking is not strategic review.** After roughly two material frontier transitions, or immediately after one major\u002Fhigh-impact transition, run a deep Strategic Reassessment Gate that re-derives the remaining plan from the end objective, verified repository\u002Fproduct state, and current evidence instead of merely advancing the existing DAG.\n- **Forecast the DAG; materialize the frontier.** Keep future waves visible at low resolution without freezing details that depend on current work.\n- **Reuse context aggressively, preserve independence more strongly.** Prefer A2\u002FB2 when existing context helps, except when a fresh independent perspective is required.\n- **Review must earn its overhead, then block integration when required.** Substantial or integration-sensitive changes must pass an explicit Review Gate; when independent review is warranted, create Agent R and keep integration blocked until the review discharge condition is satisfied.\n- **Reviewer and repairer stay separate.** Agent R identifies findings and never repairs the production target. Small bounded findings may be repaired by the planner; larger same-area findings normally return to the original implementer. Agent R re-reviews the repaired target in the same reviewer session.\n- **Isolation must earn its cost.** Current checkout is the default; branches\u002Fworktrees require a concrete need.\n- **Planning does not broaden implementation authority.** Preserve Causal Coding authority for implementation mutation, testing, verification, continuation, and stopping.\n- **Separate planning from execution lifetime.** Use `persistent-agent-loop` for long-lived continuity, not for decomposition or next-wave planning.\n\n## Environment composition\n\nWhen operating in ChatGPT Web against a connected WSL\u002FLinux repository, route repository work through `mcp-harness-router` to `wsl-web-harness` and treat that WSL target as authoritative. Use Causal Coding before implementation-affecting mutation.\n\nAgent Work Planner owns:\n\n- session\u002Fmission topology;\n- execution-owner selection;\n- dependencies and blockers;\n- waves and readiness;\n- prompts and handoffs;\n- shared handoff-inbox assignment, discovery, and cleanup;\n- workspace assignment;\n- review-gate and integration ordering;\n- progress state;\n- replanning.\n\n## Operating modes\n\nUse the lightest mode that satisfies the mission.\n\n### Plan-only\n\nInspect and recommend only. Do not mutate repository state merely to answer an advisory question.\n\n### Lightweight orchestration\n\nUse for small\u002Fmedium efforts where prompts plus an in-chat state board are sufficient. Do not create durable planning files merely because several missions exist.\n\n### Durable orchestration\n\nUse when several waves, concurrent writers, important shared contracts, long-lived sessions, significant integration, or later recovery justify repository-resident coordination state. See `references\u002Fcoordination-package-template.md`.\n\n### Replan\n\nUse after any frontier-invalidating event, not only returned agent reports.\n\n## Workflow\n\n### 1. Orient to authoritative state\n\nEstablish:\n\n- user objective and constraints;\n- repository\u002Fsource-of-truth artifacts;\n- known agents and their current missions\u002Fstatus;\n- relevant Git\u002Fworkspace state when available;\n- current waves and blockers;\n- returned reports or newly integrated artifacts;\n- public\u002Fshared contracts relevant to candidate missions.\n\nVerified repository state and current user direction outrank stale planning artifacts.\n\n### 2. Reconcile known sessions\n\nBefore creating or advancing work, account for every known unresolved session.\n\nAssign one disposition:\n\n- `CONTINUE`\n- `HOLD`\n- `COMPLETE`\n- `NEEDS DECISION`\n- `SUPERSEDED`\n- `CANCELLED`\n- `REUSE AS \u003CA2\u002FB2\u002F...>`\n\nDo not silently omit an existing Agent B\u002FC\u002FE merely because another agent returned or a commit landed.\n\nFor durable efforts, maintain the Session Ledger defined in `references\u002Forchestration-state.md`.\n\n### 3. Update blocker state\n\nFor every blocked mission\u002Fwave, track:\n\n- blocked item;\n- blocker;\n- owning mission\u002Fsession;\n- exact discharge condition;\n- current status\u002Fevidence.\n\nA commit, integration, review, or report may discharge only blockers it actually satisfies.\n\nNever infer:\n\n`unrelated mission completed -> blocked wave READY`\n\nSee `references\u002Forchestration-state.md` for the Blocker Ledger.\n\n### 4. Build or update the dependency DAG\n\nFor each mission identify:\n\n- prerequisites;\n- shared interfaces\u002Fcontracts;\n- mutable ownership\u002Fcollision surfaces;\n- role and artifact type;\n- observable completion boundary;\n- downstream missions unlocked;\n- committed vs conditional status.\n\nGroup work into **waves**. A wave is a readiness frontier: missions that may start from the same prerequisite state.\n\nUse optional **phases** only when several waves benefit from a higher-level grouping.\n\n### 4.5 Balance mission size and review cadence\n\nTreat **mission boundaries** and **review boundaries** as different things. A session may complete more than one bounded mission before independent review when those missions compose one coherent candidate and the later mission does not depend on reviewer feedback.\n\nPrefer a topology like:\n\n```text\nA1 -> A2 -> R1 -> B1 -> R2\n```\n\nwhen `A1` and `A2` are coherent implementation work that can safely accumulate before review, `R1` reviews the combined stable candidate, and `B1` is a substantial repair or follow-up justified by that review before one bounded re-review.\n\nAvoid review ping-pong like:\n\n```text\nA1 -> R1 -> A2 -> R2 -> A3 -> R3 -> B1 -> R4 -> A4 -> R5\n```\n\nunless each early review is independently justified by a high-cost architecture, security, migration, public-contract, or other direction-setting risk.\n\nBefore opening Agent R, ask:\n\n- Is the current candidate stable enough that review findings will be actionable rather than immediately invalidated by the next planned implementation mission?\n- Can the current implementer complete the next same-area mission first without materially increasing risk?\n- Would early reviewer feedback change architecture or prevent expensive rework?\n- Is the review target coherent enough that the reviewer can inspect all directly related surfaces in one pass?\n\nDo not chase a minimum number of agent passes. Optimize for a small number of **meaningful implementation batches and review cycles**.\n\n### 5. Choose the execution owner\n\nFor each newly READY action, decide in this order:\n\n#### A. Planner-owned\n\nExecute directly when the action is bounded coordination\u002Fsetup\u002Fintegration or a small determined change and delegation would cost more than it helps.\n\nTypical examples:\n\n- clean cherry-pick\u002Fintegration;\n- bounded coordination-file update;\n- small deterministic metadata alignment;\n- a small review finding whose causal owner and repair are already clear;\n- trivial rebase\u002Fmerge conflict resolution after a candidate is otherwise complete;\n- version\u002Ffreshness closure directly required by a bounded repair;\n- branch\u002Fworktree\u002Fstatus inspection;\n- preparing prompts\u002Fhandoffs.\n\nPrefer planner-owned execution when the repair is cheaper to prove directly than to explain, hand off, rediscover, and review as a separate implementation mission. Preserve Causal Coding authority for any implementation-affecting mutation.\n\nDo not merely tell the user planner-owned work is ready when the current mission authorizes doing it.\n\n#### B. Same-session continuation: A2\u002FB2\n\nPrefer a continuation mission in an existing chat when materially relevant conditions hold:\n\n- the follow-up is small to medium;\n- it is in the same or strongly adjacent ownership area;\n- prior session context materially reduces rediscovery;\n- no independent perspective is required;\n- workspace ownership remains safe;\n- previous mission state is not stale\u002Fsuperseded;\n- the follow-up does not cross an unresolved blocker;\n- it can be bounded as a distinct mission.\n\nIssue a continuation prompt and explicitly say:\n\n`Paste this into the existing Agent A\u002FB chat. Do not open a new session.`\n\nDo not number ordinary steering as A2\u002FB2 while A1\u002FB1 is still active. A continuation is a new bounded mission after the prior mission boundary; compatible in-mission steering remains part of the current mission.\n\n#### C. Fresh session\n\nOpen a new Agent C\u002FD\u002Fetc. when separation materially helps, such as:\n\n- substantial implementation;\n- different subsystem\u002Fownership boundary;\n- large diagnosis\u002Finvestigation;\n- independent diagnosis;\n- independent review, which should normally use the reserved Agent R lane;\n- concurrent writable work needing isolated ownership;\n- fresh context materially improves reliability;\n- existing session reuse would violate independence.\n\nExplicitly say:\n\n`Open a NEW chat for Agent C.`\n\n### 6. Preserve independence\n\nSelf-review is not independent review.\n\nDo not reuse an implementation session for an independent review merely because it is convenient.\n\nReserve **Agent R** as the normal independent-review lane. Keep R read-only by default and do not let R repair the production changes it is reviewing.\n\nIf Agent R finds blocking defects, choose the repair owner in this order:\n\n1. **Planner-owned** for a small, causally clear, bounded repair that does not require substantial implementer context or redesign;\n2. **same implementation session** for a medium\u002Fsubstantial same-area repair where prior context materially helps;\n3. **fresh implementation session** only when ownership changes, context is stale, or independent diagnosis\u002Fimplementation separation materially helps.\n\nThen issue the narrow re-review into the existing Agent R chat. A planner-owned repair does not compromise review independence because Agent R remains read-only and did not author the fix.\n\nDo not reuse R for implementation when doing so would destroy the independence required for the resulting repair.\n\n### 7. Apply the Review Gate before integration\n\nBefore integrating a completed **review batch\u002Fcandidate**, decide whether independent review materially reduces integration risk. A mission completion alone is not a review trigger. Review must earn its overhead; do not create Agent R after every implementation mission when more planned same-area work should reasonably join the same stable candidate.\n\nDefault toward an Agent R review when one or more materially apply:\n\n- substantial implementation or large refactor\u002Fmigration;\n- cross-subsystem or shared-contract changes;\n- public API\u002Fschema\u002Fpersistence\u002Fdata-shape changes;\n- concurrency, process-lifetime, native\u002FGPU\u002FFFI, auth\u002Fsecurity, or other difficult-to-observe behavior;\n- broad\u002Fmechanical changes where attribution is harder;\n- implementer-reported uncertainty, deviations, or unresolved risk;\n- explicit user\u002Fspec\u002Frepository requirement for independent review.\n\nUsually skip Agent R for clean cherry-picks, small deterministic integrations, tiny localized changes, or docs\u002Fmetadata where independent review cost clearly exceeds plausible integration risk.\n\n### Review batching policy\n\nTarget the **largest sensible stable boundary** that is still coherent and reviewable. That boundary may intentionally contain multiple implementation missions such as `A1 + A2`; review gates belong to stable integration candidates, not automatically to individual missions. Prefer to let the planned same-area implementation batch finish, update\u002Frebase it onto the intended integration baseline, and refresh the directly affected validation before opening the review gate when earlier review would not change implementation direction.\n\nBatch directly related surfaces into one review when they belong to the same integration decision, for example:\n\n- core implementation + public handler\u002Fschema + exports for one feature;\n- candidate + trivial post-rebase adaptation;\n- implementation + freshness\u002Fversion closure caused by the same semantic change;\n- one feature's correctness, scope, and integration interaction with the current baseline.\n\nDo **not** batch unrelated missions, a change set too large for one reviewer to reason about reliably, or an early architecture\u002Fsecurity\u002Fpublic-contract decision whose review is needed before downstream implementation becomes expensive. Review count is not a quality metric; evidence and independence are.\n\nWhen review is required:\n\n1. first confirm the planned implementation batch is at a sensible stable milestone; do not open R1 merely because the latest mission ended;\n2. create `R1` as a **NEW SESSION** if no suitable independent Agent R session exists;\n3. record `Integration of \u003Creview batch>` as BLOCKED by R1 in the Blocker Ledger;\n4. define the discharge condition as `R1 reports no blocking findings`;\n5. instruct R1 to inspect the whole assigned batch and report **all material in-scope blocking findings it can substantiate in that pass**, rather than intentionally stopping after the first finding;\n6. if R1 finds blockers, keep integration blocked and group directly related repair obligations into the smallest sensible repair batch. Use planner-owned work for tiny bounded fixes; otherwise use the same implementation session or a justified fresh implementation session;\n7. after the repair batch is complete, issue `R2` into the **same Agent R chat** unless independence\u002Fcontext has materially broken;\n8. keep R2 bounded to all repaired findings plus directly related regression\u002Fintegration effects, and ask it to report all remaining material in-scope blockers in one pass;\n9. discharge the review blocker only when the required review\u002Fre-review passes;\n10. then let the planner perform bounded integration when authorized.\n\nDo not let `implementation complete` silently mean `integration ready` when the Review Gate requires independent review.\n\n### 8. Choose workspace topology\n\nUse the simplest safe topology:\n\n- current checkout for one writer at a time;\n- same checkout\u002Fbranch for sequential sessions when safe;\n- separate branches\u002Fworktrees only for genuine concurrent writers, conflicting local state, explicit isolation needs, or another concrete safety requirement;\n- no writable workspace for read-only missions.\n\nNever create one worktree per agent by default. Never put concurrent writers in one worktree.\n\n### 9. Define the mission contract\n\nFor each mission record when relevant:\n\n- mission ID (`A1`, `A2`, `B1`, ...);\n- agent\u002Fsession;\n- fresh vs same-session continuation;\n- role;\n- review independence;\n- wave\u002Fphase;\n- start condition;\n- dependencies\u002Fblockers;\n- approximate effort share;\n- artifact type;\n- ownership\u002Fcoordination boundary;\n- observable success;\n- testing\u002Fvalidation authority;\n- workspace;\n- execution lifetime;\n- out of scope;\n- handoff inbox path when a shared filesystem is available.\n\nSize missions for coherent ownership and a **reasonable amount of useful work**, not arbitrary task counts or a desire to minimize agent passes. Prefer several meaningful same-session implementation missions before the first review when they naturally form one candidate. Split earlier only when dependencies, ownership, context limits, or a direction-setting risk make the boundary useful.\n\n### 10. Preserve testing and mutation authority\n\nPlanning must not grant authority the user or governing engineering workflow did not grant.\n\nUse a field such as:\n\n`Testing\u002Fvalidation authority: none | specified existing command(s) may run | test changes authorized | authoritative repository workflow`\n\nWhen Causal Coding applies, preserve its distinctions among workflow execution, production mutation, test execution, test creation\u002Fmodification, verification, continuation, and stopping.\n\n### 11. Generate the correct prompt type\n\nUse `references\u002Fagent-prompt-template.md`.\n\n\n### 11.1 Use file-backed mission handoffs\n\nWhen the planner and delegated sessions share the connected filesystem, use `references\u002Fhandoff-artifacts.md`.\n\nDefault to a disposable cache outside the repository so coordination does not dirty the working tree. Derive one stable repository key from the canonical Git common directory so all worktrees for the same repository share the same inbox. Assign each mission an exact inbox path in its launcher\u002Fcontinuation\u002Freview prompt.\n\nBefore a delegated mission returns its chat finish report, require it to write one timestamped handoff receipt containing its status, workspace\u002Fbranch\u002FHEAD, concise outcome, validation actually performed, deviations, blockers, and downstream facts. The planner should discover and read these receipts when the user says things like `check Agent A`, `check their work`, or `continue from the latest agent result`; do not ask the user to copy\u002Fpaste a report that already exists in the shared inbox.\n\nA handoff receipt is advisory coordination state. Repository\u002FGit\u002Fprocess facts still require authoritative verification before integration, review, or readiness claims. If the receipt is absent, stale, malformed, or refers to a different repository\u002Fworktree state, fall back to direct repository inspection and only ask the user for missing context when it cannot be reconstructed.\n\nTreat handoff files as disposable cache. Preserve receipts for active\u002Funresolved missions and the latest completed review\u002Fintegration boundary; prune older stale receipts opportunistically after integration or during orientation according to the retention guidance in `references\u002Fhandoff-artifacts.md`. Never delete source, branches, worktrees, or user artifacts as part of handoff cleanup.\n\nFor a **fresh session**, provide the full launcher prompt and say to open a new chat.\n\nFor an **A2\u002FB2 continuation**, provide a shorter delta prompt and say to paste it into the existing agent chat.\n\nFor **R1**, provide the dedicated independent-review launcher and explicitly say to open a NEW Agent R chat. For **R2**, provide the re-review delta and explicitly say to paste it into the existing Agent R chat.\n\nWhen durable mission files exist, point to them instead of duplicating full context.\n\n### 12. Handle long-lived missions\n\nMark long-lived\u002Fwait-heavy missions:\n\n`Execution lifetime: persistent-agent-loop`\n\nTell that session to load `persistent-agent-loop`. Do not duplicate its timer\u002Fwait\u002Fcheckpoint mechanics here.\n\n### 13. Apply the Frontier Transition Gate\n\nRun this gate after every frontier-invalidating event, including:\n\n- returned mission report or newly discovered mission handoff receipt;\n- cherry-pick\u002Fmerge\u002Fintegration;\n- planner-owned repository change that affects readiness;\n- blocker confirmation\u002Frefutation;\n- review result or re-review result;\n- new dependency\u002Fblocker;\n- mission cancellation\u002Fsupersession;\n- material contract change;\n- workspace ownership change;\n- user decision that changes readiness.\n\nBefore declaring any mission or wave READY:\n\n1. reconcile all known unresolved sessions;\n2. update blocker states;\n3. list every blocker on the candidate mission\u002Fwave;\n4. require concrete evidence that every required blocker is discharged;\n5. preserve unrelated blockers;\n6. recompute the readiness frontier;\n7. apply the Review Gate to completed implementation that is approaching integration;\n8. choose planner-owned vs A2\u002FB2 vs R1\u002FR2 vs fresh-session ownership for newly READY work;\n9. execute planner-owned work or emit the required prompt immediately;\n10. update progress state.\n\nNever end a frontier transition with only `Wave X can start`.\n\n### 14. Apply the Strategic Reassessment Gate\n\nFrontier bookkeeping is necessary but insufficient. Periodically challenge whether the current plan is still the right plan.\n\nDefault cadence:\n\n- run after **two material frontier transitions** since the last reassessment;\n- treat one major\u002Fhigh-impact transition as sufficient to trigger immediately;\n- run immediately when the user asks to rethink\u002Freflect\u002Faudit, evidence contradicts a planning premise, the target configuration changes, an independent review exposes cross-cutting risk, an experiment may be measuring the wrong thing, or the plan is about to make a high-level readiness\u002Flive-validation claim;\n- do not count status-only, elapsed-time, or no-op updates.\n\nRead `references\u002Fstrategic-reassessment.md` and apply its checklist. For connected repositories, ground the reassessment in targeted **read-only authoritative inspection**, not only prior reports or conversational summaries.\n\nAt minimum challenge:\n\n- the end objective and non-negotiable target configuration;\n- hidden assumptions and configuration-fidelity gaps;\n- whether captured\u002Fserialized metadata actually changes runtime behavior where the claim requires it;\n- experiment validity and confounds;\n- DAG ordering, blockers, parallelism, and execution ownership;\n- iteration topology: whether missions are too small, whether the next planned same-session implementation mission should finish before review, and whether planner-owned bounded work can remove unnecessary repair ping-pong;\n- handoff topology: whether agent state is being copied manually through chat even though a shared handoff inbox could make the planner discover completion state directly;\n- Review Gate placement: whether review is being triggered by mission completion instead of candidate stability, whether related review surfaces can be batched at a larger stable boundary, and validation depth;\n- the distinction among implementation correctness, model fidelity, operational readiness, and outcome\u002Fstrength claims.\n\nPrefer the smallest evidence-backed replan. Explicitly preserve areas that remain valid rather than reopening them reflexively. If the reassessment discovers implementation-affecting work, route it through the correct mission owner and review path; do not opportunistically patch production merely because the planner found the issue.\n\nAfter the gate, emit a concise **Strategic Reassessment receipt** and reset the reassessment cadence. If nothing changes, say that the current DAG remains valid and why.\n\n### 15. Require finish reports\n\nEvery delegated mission returns:\n\n1. `status: complete | blocked | needs decision`;\n2. agent\u002Fsession and mission ID;\n3. role;\n4. workspace\u002Fbranch and relevant commits when any;\n5. concise behavior\u002Finterface\u002Fartifact result;\n6. testing\u002Fvalidation actually performed, if authorized;\n7. deviations from mission;\n8. information dependent missions need;\n9. unresolved blockers\u002Fdecisions.\n\n### 16. Report progress automatically\n\nWhen an orchestration plan is active, append a **Progress Snapshot** after every response that performs or processes an orchestration action, including status-only updates when the planner has enough state to report meaningfully.\n\nDo not wait for the user to ask for progress.\n\nUse the **tree-style Current frontier snapshot** in `references\u002Forchestration-state.md` as the default UX. Reserve the larger Execution Board for initial planning, major replans, or materially changed DAGs.\n\nThe automatic snapshot must include, compactly:\n\n- `Current frontier`;\n- one tree node for every known active\u002Funresolved agent\u002Fmission that matters now;\n- status\u002Fownership such as `CONTINUE`, `READY — SAME SESSION`, `READY — NEW SESSION`, `READY — REVIEW`, `BLOCKED`, or `COMPLETE + INTEGRATED`;\n- one-line authoritative evidence\u002Fstate where useful;\n- explicit blockers, including review blockers;\n- near-future PLANNED\u002FCONDITIONAL work when it affects decisions;\n- a compact planned-effort summary when effort weights exist;\n- exact `Next human action`, including `paste H2 into existing Agent H`, `open Agent R with R1`, `continue Agent G`, or `nothing new`.\n\nDo not permanently carry irrelevant historical completions. Collapse them to a short integrated-base fact once they no longer affect the frontier.\n\nUse only known evidence. If state is unknown, label it `UNKNOWN`; do not fabricate ACTIVE\u002FCOMPLETE states.\n\nEffort percentages are relative engineering-work estimates, not elapsed time or measured percent-complete. Rebaseline only when the plan materially changes.\n\nSee `references\u002Forchestration-state.md` for the canonical tree format, Review Gate examples, and the larger-board escalation rule.\n\n## Default output\n\nUse the lightest useful structure, but during an ongoing plan the Progress Snapshot is mandatory unless explicitly suppressed.\n\nTypical order:\n\n1. Frontier transition \u002F decision\n2. Strategic Reassessment receipt, when the gate is due\n3. Missions or integration action\n4. Copy\u002Fpaste prompt(s), when newly actionable\n5. Review\u002Fintegration note, including Agent R state when relevant\n6. **Progress Snapshot — Current frontier tree**\n\nFor a newly READY mission:\n\n- planner-owned -> perform it when authorized;\n- same-session -> emit A2\u002FB2 prompt in the same response;\n- review -> emit R1\u002FR2 prompt in the same response and keep integration blocked until review passes;\n- fresh session -> emit new-agent prompt in the same response;\n- deferred -> state the explicit reason.\n\n## Guardrails\n\n- Never let an unrelated completion discharge another mission's blocker.\n- Never declare READY before the Frontier Transition Gate passes.\n- Never let an active\u002Funresolved agent disappear from the plan without a disposition.\n- Never end with only `Wave X can start` when action can be assigned now.\n- Never open a fresh session when an A2\u002FB2 continuation is the cheaper correct owner.\n- Never create an A2\u002FB2 handoff for a tiny bounded repair the planner can safely and cheaply own under the active mutation authority.\n- Never treat every implementation mission boundary as a review boundary. Allow multiple coherent missions to accumulate before R1 when early review would not change direction.\n- Never optimize for the fewest agent passes by making missions oversized, mixing unrelated ownership, or delaying a genuinely direction-setting review. Optimize for balanced mission size and fewer feedback cycles.\n- Never fragment one coherent reviewable candidate into multiple review waves merely because its implementation has layers; batch at the largest sensible stable boundary unless early review materially reduces risk.\n- Never instruct Agent R to stop after the first blocker by default. Within the assigned review boundary, collect all material findings that can be substantiated in the same pass unless an early blocker makes the remaining review genuinely unobservable or meaningless.\n- Never use A2\u002FB2 when required independence would be compromised.\n- Never equate self-review with independent review.\n- Never let Agent R implement the production repair it is independently reviewing.\n- Never integrate work while a required R1\u002FR2 review blocker remains unresolved.\n- Never manufacture agents, waves, worktrees, review phases, or coordination artifacts merely because a generic workflow often has them.\n- Never place concurrent writers in one worktree.\n- Never hide a dependency to make the plan look parallel.\n- Never let planning broaden testing or mutation authority.\n- Never present relative effort as elapsed-time progress.\n- Never copy secrets\u002Fcredentials into prompts or coordination files.\n- Never let stale planning state outrank current user direction or verified repository evidence.\n- Never let repeated frontier updates substitute for the Strategic Reassessment Gate once its cadence or trigger condition is met.\n- Never ask the user to relay a delegated agent's finish report when a valid file-backed handoff receipt is discoverable from the assigned shared inbox.\n- Never replan for novelty: a deep reassessment may conclude that the current DAG remains correct, but it must show what was challenged and why the plan still holds.\n",{"name":5,"description":7},"main","59ee67804bc373a9bd079a3a27f47277a6efe564","skills\u002Fagent-work-planner","https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness","https:\u002F\u002Fgithub.com\u002Fham-zax","2026-11-15 01:18:51",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add ham-zax\u002Fwebharness --skill agent-work-planner",{"tool":36,"command":37},"bunx","bunx skills add ham-zax\u002Fwebharness --skill agent-work-planner",{"tool":39,"command":40},"pnpm","pnpm dlx skills add ham-zax\u002Fwebharness --skill agent-work-planner","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fagent-work-planner\u002FSKILL.md",true,[44,50,56,60,64,68,72],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"agents\u002Fopenai.yaml","REFERENCE","参考文档",284,"https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fagent-work-planner\u002Fagents\u002Fopenai.yaml",{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"assets\u002Ficon.svg","ASSET","资产文件",2182,"https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fagent-work-planner\u002Fassets\u002Ficon.svg",{"path":57,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fagent-prompt-template.md",12644,"https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fagent-work-planner\u002Freferences\u002Fagent-prompt-template.md",{"path":61,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fcoordination-package-template.md",4792,"https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fagent-work-planner\u002Freferences\u002Fcoordination-package-template.md",{"path":65,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fhandoff-artifacts.md",4617,"https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fagent-work-planner\u002Freferences\u002Fhandoff-artifacts.md",{"path":69,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Forchestration-state.md",10358,"https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fagent-work-planner\u002Freferences\u002Forchestration-state.md",{"path":73,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fstrategic-reassessment.md",7849,"https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fagent-work-planner\u002Freferences\u002Fstrategic-reassessment.md",[77,84,91,98,107,114],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AS6BAQQ2WQJYS3WBNJPB2G","x-content","Create, rewrite, critique, select formats for, discover opportunities for, and learn from X\u002FTwitter content and X Articles for a technical AI-native developer\u002Fbuilder account. Use when turning ideas, source posts, releases, benchmarks, results, conversations, authenticated For You or creator-watch opportunities, or project evidence into an Original, Quote, Thread, Reply, or Article; reviewing article titles\u002Foutlines\u002Fvisual briefs\u002Flaunch hooks; improving drafts; choosing additive contributions from live X context; or learning from own-account outcomes. Own content intelligence only; compose with agent-browser for live X state and Growth OS for discovery provenance, approvals, measurement, and publication.","https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fx-content\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AS66FXQR8FEQYW8G8RJB2N","writing-plans","Create detailed implementation plans for multi-step software work before editing code. Use when requirements or a specification must become concrete file-level tasks, interfaces, acceptance criteria, risks, rollout, or explicitly required validation. Default to no test creation, test modification, test execution, TDD, regression-test, or coverage work unless the user, authoritative specification, or mandatory repository policy explicitly requires testing.","https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7AS5ZCJX21NF2RESA2QDWPP","systematic-debugging","Root-cause debugging for concrete technical failures including bugs, failing builds or tests, integration issues, performance regressions, and unexpected behavior. Use before proposing or implementing a repair when diagnosis is required. Reproduce the symptom, trace the responsible owner, maintain one leading causal hypothesis, and falsify it with the smallest direct evidence. Compose with Causal Coding for source mutation; testing is opt-in and requires independent authorization.","https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":102,"licenseFileUrl":103,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M7AS548FQ63SAB9G0X81VPGJ","skill-creator","Guide for creating and updating high-quality skills by translating workflows, conventions, and reusable processes into well-structured skills. Includes context, use case examples and spec for skills. Use this skill whenever a user asks to create, update, edit, improve, package, or troubleshoot a skill, and also for conversational questions about skills in ChatGPT (e.g., \"What are skills?\", \"What can I use skills for?\", \"What are the best skill use cases for me?\", \"Where can I find my skills?\").","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M7AS4XD121Q85Y06EXRGYS4F","reflexion","Self-refinement, multi-perspective critique, verification, and durable lesson curation adapted from NeoLabHQ Reflexion. Use when the user asks to reflect, self-review, critique, double-check, verify and improve prior work, run a rigorous review, memorize lessons, or says \"then reflect\" after a coding, analysis, or writing task. Supports repository-aware evidence gathering and works without subagents or Claude hooks.","https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Freflexion\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":19},"01M7AS4RN5TYMA4P6SK6K7NVSR","ponytail","Enforce Ponytail's lazy-senior-developer approach for coding, fixing, refactoring, design, dependency choices, and explicit Ponytail modes such as review, audit, debt, gain, and help. Prefer YAGNI, existing code, standard library, native platform features, existing dependencies, low reader load, and the smallest correct diff. For source mutation, keep Causal Coding authoritative for scope, testing authorization, verification cadence, and stopping. On connected WSL\u002FLinux targets, compose with MCP Harness Router and use `wsl-web-harness` for authoritative repository work.","https:\u002F\u002Fgithub.com\u002Fham-zax\u002Fwebharness\u002Fblob\u002Fmain\u002Fskills\u002Fponytail\u002FSKILL.md",[],[]]