Research Plan Implementation Loop
Overview
Run a strict controller loop from verified research to planning to implementation. This skill sequences verified-research, planning-orchestrator, implementation-orchestrator, and engineering-acceptance-review; it does not replace them.
Prime directive: never collapse research, planning, and implementation into one stream. Freeze the research claim ledger before planning, freeze the plan before implementation, then verify implementation against the research-backed claims.
When To Use
- The user says "research in a loop", "activate research loop", "research then plan", or "research then implement".
- The research output should become product, code, architecture, migration, UX, or build decisions.
- The user asks to hand research to planning or implementation orchestrators.
- Research has contradictory sources that must drive a safe plan before implementation.
- Browser/background research should continue while the user studies, then feed planning or implementation.
When Not To Use
- The user wants a standalone research answer; use
verified-research.
- The user already has a verified dossier and wants only planning; use
planning-orchestrator.
- The user already has a saved plan and wants only implementation; use
implementation-orchestrator.
- The task is a local correctness checkpoint; use
checkpoint-quality-loop.
- The failure cause is unknown in a live incident; use
root-cause-investigator first.
Mandatory Goal Rule
Create or reuse a /goal by default for research-plan and research-plan-implement. The goal is the loop ledger.
The goal must track research question, source tiers, claim ledger status, contradictions, dossier path, planning artifact path, implementation authorization, worker decisions, background browser lane, implementation slices, verification status, blockers, and verdict.
For a tiny research-only answer, do not use this controller unless the user explicitly asked for a loop. If used in lightweight mode, label it lightweight research only.
Mode Gate
Classify the requested mode before doing work:
research-only: use verified-research, produce answer/dossier, stop.
research-plan: use verified-research, save dossier, invoke planning-orchestrator, save plan, stop.
research-plan-implement: use verified-research, save dossier, invoke planning-orchestrator, save plan, then invoke implementation-orchestrator.
Default: if the user says "research loop", "activate research loop", or "research and plan" but does not clearly authorize code edits, choose research-plan.
Implementation requires explicit authorization: words like implement, build, change code, execute, ship, apply, or fix. Do not treat "activate loop" as implementation permission. Do not treat "hand it to implementation orchestrator" as edit permission; it means produce an implementation-orchestrator handoff artifact unless the user also authorizes implementation.
Required Loop
- Anchor: topic, decision to support, target repo/product/system, current date/time sensitivity, region/version/tier, desired mode, implementation authorization, stop conditions.
- Emit orchestration decision: mode, worker count, skipped-worker rationale, visible-thread decision, background browser lane, independent evidence surfaces, reconsider trigger.
- Research: use
verified-research; save a dossier for non-trivial or downstream work.
- Research gate: freeze claim ledger. Do not plan from unclassified claims.
- Planning: hand the dossier to
planning-orchestrator; save an implementation-ready plan.
- Planning gate: freeze the plan. Do not implement from chat-only research or vague plans.
- Implementation: if authorized, hand the saved plan to
implementation-orchestrator.
- Post-implementation research consistency check: verify implemented behavior still matches confirmed claims and accepted assumptions.
- Engineering acceptance review: if implementation happened, use
engineering-acceptance-review before closeout. It must check project-goal fit, task fit, source-surface ownership, hallucinated code/contracts, architecture/maintainability, behavior evidence, and local/live/deploy/blocker separation.
- Close or loop: if claims fail, the plan is vague, validation fails, or engineering acceptance fails, loop back to the correct stage instead of improvising.
Required Receipts
Loop contract: mode, topic, decision, target system, goal, artifacts, authorization, stop conditions.
Research receipt: verified-research route, dossier, claim counts, disputed/stale/unverifiable claims, blocked checks.
Planning receipt: planning-orchestrator route, plan path, acceptance criteria, validation plan, planning blockers.
Implementation receipt: implementation-orchestrator route, selected slice, changed files, validation, blocked checks. Use not authorized if mode stops before code edits. If the user only requested a handoff, state handoff artifact produced; implementation not started.
Consistency receipt: claims relied on, implementation behavior, local/browser/live/deploy status, contradictions found, verdict.
Engineering acceptance receipt: engineering-acceptance-review verdict when implementation happened, goal fit, task fit, source-surface check, hallucination/contract check, maintainability risk, and accepted risks or fixes required.
Closeout Verdicts
Use one:
research complete
research-plan complete
research-plan-implementation complete
loop blocked
loop failed
lightweight research only
Red Flags
Stop and tighten the loop when you hear:
- "I found the recommended pattern, so I implemented it."
- "Activate loop means I can edit."
- "The docs show the migration, and tests pass."
- "The plan is detailed enough" without acceptance criteria.
- "Official docs beat the forum thread" without reproducing the conflict.
- "Background research was asynchronous enough."
- "Implementation can start from this chat summary."
- "The implementation matches the research claim, so it does not need engineering acceptance review."
Common Mistakes
- Collapsing research, planning, and implementation into one pass.
- Ending research when the agent feels informed instead of when evidence requirements are met.
- Treating
likely, disputed, stale, or unverifiable claims as implementation facts.
- Creating chat-only plans that the implementation orchestrator must rediscover.
- Implementing from competitor ideas without source confidence, scope, constraints, and acceptance tests.
- Retrofitting verification after edits instead of defining it before implementation.
- Claiming live/current behavior from local checks or docs alone.
- Closing after implementation with only a research consistency receipt and no
engineering-acceptance-review verdict.
1---2name: research-plan-implementation-loop3description: Use when the user asks for research that should lead to planning, implementation, product changes, build decisions, or an end-to-end loop rather than a standalone research answer.4---56# Research Plan Implementation Loop78## Overview910Run a strict controller loop from verified research to planning to implementation. This skill sequences `verified-research`, `planning-orchestrator`, `implementation-orchestrator`, and `engineering-acceptance-review`; it does not replace them.1112Prime directive: never collapse research, planning, and implementation into one stream. Freeze the research claim ledger before planning, freeze the plan before implementation, then verify implementation against the research-backed claims.1314## When To Use1516- The user says "research in a loop", "activate research loop", "research then plan", or "research then implement".17- The research output should become product, code, architecture, migration, UX, or build decisions.18- The user asks to hand research to planning or implementation orchestrators.19- Research has contradictory sources that must drive a safe plan before implementation.20- Browser/background research should continue while the user studies, then feed planning or implementation.2122## When Not To Use2324- The user wants a standalone research answer; use `verified-research`.25- The user already has a verified dossier and wants only planning; use `planning-orchestrator`.26- The user already has a saved plan and wants only implementation; use `implementation-orchestrator`.27- The task is a local correctness checkpoint; use `checkpoint-quality-loop`.28- The failure cause is unknown in a live incident; use `root-cause-investigator` first.2930## Mandatory Goal Rule3132Create or reuse a `/goal` by default for `research-plan` and `research-plan-implement`. The goal is the loop ledger.3334The goal must track research question, source tiers, claim ledger status, contradictions, dossier path, planning artifact path, implementation authorization, worker decisions, background browser lane, implementation slices, verification status, blockers, and verdict.3536For a tiny research-only answer, do not use this controller unless the user explicitly asked for a loop. If used in lightweight mode, label it `lightweight research only`.3738## Mode Gate3940Classify the requested mode before doing work:4142- `research-only`: use `verified-research`, produce answer/dossier, stop.43- `research-plan`: use `verified-research`, save dossier, invoke `planning-orchestrator`, save plan, stop.44- `research-plan-implement`: use `verified-research`, save dossier, invoke `planning-orchestrator`, save plan, then invoke `implementation-orchestrator`.4546Default: if the user says "research loop", "activate research loop", or "research and plan" but does not clearly authorize code edits, choose `research-plan`.4748Implementation requires explicit authorization: words like implement, build, change code, execute, ship, apply, or fix. Do not treat "activate loop" as implementation permission. Do not treat "hand it to implementation orchestrator" as edit permission; it means produce an implementation-orchestrator handoff artifact unless the user also authorizes implementation.4950## Required Loop51521. **Anchor:** topic, decision to support, target repo/product/system, current date/time sensitivity, region/version/tier, desired mode, implementation authorization, stop conditions.532. **Emit orchestration decision:** mode, worker count, skipped-worker rationale, visible-thread decision, background browser lane, independent evidence surfaces, reconsider trigger.543. **Research:** use `verified-research`; save a dossier for non-trivial or downstream work.554. **Research gate:** freeze claim ledger. Do not plan from unclassified claims.565. **Planning:** hand the dossier to `planning-orchestrator`; save an implementation-ready plan.576. **Planning gate:** freeze the plan. Do not implement from chat-only research or vague plans.587. **Implementation:** if authorized, hand the saved plan to `implementation-orchestrator`.598. **Post-implementation research consistency check:** verify implemented behavior still matches confirmed claims and accepted assumptions.609. **Engineering acceptance review:** if implementation happened, use `engineering-acceptance-review` before closeout. It must check project-goal fit, task fit, source-surface ownership, hallucinated code/contracts, architecture/maintainability, behavior evidence, and local/live/deploy/blocker separation.6110. **Close or loop:** if claims fail, the plan is vague, validation fails, or engineering acceptance fails, loop back to the correct stage instead of improvising.6263## Required Receipts6465- `Loop contract`: mode, topic, decision, target system, goal, artifacts, authorization, stop conditions.66- `Research receipt`: `verified-research` route, dossier, claim counts, disputed/stale/unverifiable claims, blocked checks.67- `Planning receipt`: `planning-orchestrator` route, plan path, acceptance criteria, validation plan, planning blockers.68- `Implementation receipt`: `implementation-orchestrator` route, selected slice, changed files, validation, blocked checks. Use `not authorized` if mode stops before code edits. If the user only requested a handoff, state `handoff artifact produced; implementation not started`.69- `Consistency receipt`: claims relied on, implementation behavior, local/browser/live/deploy status, contradictions found, verdict.70- `Engineering acceptance receipt`: `engineering-acceptance-review` verdict when implementation happened, goal fit, task fit, source-surface check, hallucination/contract check, maintainability risk, and accepted risks or fixes required.7172## Closeout Verdicts7374Use one:7576- `research complete`77- `research-plan complete`78- `research-plan-implementation complete`79- `loop blocked`80- `loop failed`81- `lightweight research only`8283## Red Flags8485Stop and tighten the loop when you hear:8687- "I found the recommended pattern, so I implemented it."88- "Activate loop means I can edit."89- "The docs show the migration, and tests pass."90- "The plan is detailed enough" without acceptance criteria.91- "Official docs beat the forum thread" without reproducing the conflict.92- "Background research was asynchronous enough."93- "Implementation can start from this chat summary."94- "The implementation matches the research claim, so it does not need engineering acceptance review."9596## Common Mistakes9798- Collapsing research, planning, and implementation into one pass.99- Ending research when the agent feels informed instead of when evidence requirements are met.100- Treating `likely`, `disputed`, `stale`, or `unverifiable` claims as implementation facts.101- Creating chat-only plans that the implementation orchestrator must rediscover.102- Implementing from competitor ideas without source confidence, scope, constraints, and acceptance tests.103- Retrofitting verification after edits instead of defining it before implementation.104- Claiming live/current behavior from local checks or docs alone.105- Closing after implementation with only a research consistency receipt and no `engineering-acceptance-review` verdict.