You are already running inside the megaplan harness for this step. Do the requested planning/review/execution work directly. Do NOT invoke the megaplan CLI, do NOT read or activate the megaplan skill, do NOT start nested megaplan plans, and do NOT recurse into another planning harness. Treat mentions of megaplan in the repository or environment as implementation context only.
You are creating an implementation plan for the following idea.
code
Idea:
Clean up project documentation so it is succinct, easy to understand, and gives the appropriate amount of coverage.
Scope: README.md (project root) and every file under docs/ (currently includes docs/cloud.md which was just authored by the sprint-1 megaplan run for the megaplan cloud feature). Do NOT edit CHANGELOG.md (chronological record, not prose to polish). Do NOT edit source code under megaplan/ or tests/ — this is a prose-only pass.
Goals:
No fluff, no marketing voice, no hollow reassurances, no emojis (do not add them; leave any existing ones alone unless they make the text worse).
Prune content a reader would not miss.
Preserve technical accuracy — never remove or misstate a fact.
Collapse redundancy across README.md and docs/*.md.
Keep code examples verbatim unless they contain factual errors.
Prefer concrete over abstract; prefer short paragraphs over long ones.
Section headers must earn their place; merge trivially short sections.
Non-goals:
Do not rewrite for voice/style unless the current prose is actively unclear.
Do not delete whole files; if a file seems entirely redundant, note it in the run summary instead.
Do not restructure the top-level table of contents unless absolutely necessary for clarity.
Success criteria:
README.md and docs/*.md are noticeably shorter than their current form without losing any reader-useful information (must).
No factual claim has been altered (must).
No code example has been altered except to fix a factual error (must).
Prose reads tightly; no obvious fluff passages remain (should).
All cross-references between files still resolve (should).
This is a light-robustness run: plan → critique → revise → finalize → execute. No prep, no gate, no review phase.
code
Assistant
I have enough signal. Let me confirm a couple of structural details before writing the plan.
Assistant
Ready to write the plan.
Assistant
Plan delivered via StructuredOutput. Summary: two-file prose-only trim (README.md, docs/cloud.md) with concrete cut-list per file, fact/code preservation as hard gates, and the Reigh Parity Validation Runbook placeholder section flagged for the run summary rather than deleted. Two clarifying questions (runbook removal OK? line-count target?) included; defaults stated so execution can proceed without answers.
User
Assistant
The flag is legitimate and I'm rewriting Step 3.3 to keep both fenced blocks in Claude Auth Behavior intact. The plan's targeting and root cause are correct — this is a scoped wording fix, not a re-think.
Assistant
Revision delivered via StructuredOutput. FLAG-001 addressed: Step 3.3 no longer merges the Claude Auth Behavior section (which would have moved its two fenced blocks); it now keeps the section and both fenced blocks in place and only tightens surrounding prose. Added a fenced-block inventory step (1.3), a post-edit cross-check (4.2), and matching must-priority success criteria for fenced-block + inline-code preservation. (TodoWrite isn't useful here — the four-step plan is the tracking surface.)
Project directory:
/Users/user_c042661f/Documents/megaplan
No prior clarification artifact exists. Identify ambiguities, ask clarifying questions, and state your assumptions inside the plan output.
Requirements:
- If the engineering brief suggests an approach, use it as your starting hypothesis — but before committing, consider if there's a simpler or more fundamental fix. The brief is well-researched input, not a final answer.
- If the brief is absent, incomplete, or says "skip", inspect the repository yourself before planning.
- Stay focused on the requested idea. If repo exploration surfaces unrelated issues or docs, ignore them and return to the task.
- Prefer source code, tests, and directly relevant config files. Avoid `.megaplan/`, prior plan artifacts, and unrelated `docs/` or ops/deployment material unless the task explicitly depends on them.
- Stop exploring once you have enough evidence to name the concrete touch points and validation path. Do not keep browsing after you can write the plan.
- Produce a concrete implementation plan in markdown.
- Define observable success criteria as objects with `criterion` (string) and `priority` (`must`, `should`, or `info`):
- `must` — hard gate. The reviewer will block on failure. Use for correctness, functional requirements, and verifiable outcomes (e.g., "all existing tests pass", "API returns 200 for valid input"). Every `must` criterion must have a clear yes/no answer.
- `should` — quality target. The reviewer flags but does not block. Use for subjective goals, numeric guidelines, and best-effort improvements (e.g., "file under ~300 lines", "no deeply nested conditionals", "each function has a single responsibility").
- `info` — documented for humans, reviewer skips. Use for criteria that cannot be verified in this pipeline (e.g., "13 manual smoke tests pass", "stakeholder sign-off obtained").
- Each success criterion should include a `requires` field listing the capabilities needed for verification. Valid capability strings: `run_shell`, `read_files`, `run_tests`, `parse_diff`, `read_build_output`, `run_linter` (container), `drive_browser`, `inspect_runtime_ui`, `observe_runtime_logs`, `subjective_judgment`, `verify_physical_device` (human). `must` criteria MUST have non-empty `requires`. Example: `{"criterion": "All tests pass", "priority": "must", "requires": ["run_tests"]}`.
- Use the `questions` field for ambiguities that would materially change implementation.
- Use the `assumptions` field for defaults you are making so planning can proceed now.
- Prefer cheap validation steps early.
- Keep the plan proportional to the task. A 1-line fix needs a 2-step plan (apply fix + run tests), not a 5-step investigation.
- If user notes answer earlier questions, incorporate them into the draft plan instead of re-asking them.
- Fix the problem fully. Do not limit scope just to avoid breaking existing tests — update the tests too if needed.
- Prefer the simplest, most direct fix. No fallbacks, type conversions, or defensive wrappers without concrete evidence they are needed.
- If the task or issue hints suggest a specific approach, follow it. Only deviate with concrete counter-evidence.
Plan template — simple format (adapt to the actual repo and scope):
md
# Implementation Plan: [Title]
## Overview
Summarize the goal, current repository shape, and the constraints that matter.
## Main Phase
### Step 1: Audit the current behavior (`megaplan/prompts.py`)
**Scope:** Small
1. **Inspect** the current implementation and call out the exact insertion points (`megaplan/prompts.py:29`).
### Step 2: Add the first change (`megaplan/evaluation.py`)
**Scope:** Medium
1. **Implement** the smallest viable change with exact file references (`megaplan/evaluation.py:1`).
2. **Capture** any tricky behavior with a short example.
```python
issues = validate_plan_structure(plan_text)
```
### Step 3: Wire downstream behavior (`megaplan/handlers.py`, `megaplan/workers.py`)
**Scope:** Medium
1. **Update** the runtime flow in the touched files (`megaplan/handlers.py:400`, `megaplan/workers.py:199`).
### Step 4: Prove the change (`tests/test_evaluation.py`, `tests/test_megaplan.py`)
**Scope:** Small
1. **Run** the cheapest targeted checks first (`tests/test_evaluation.py:1`).
2. **Finish** with broader verification once the wiring is in place (`tests/test_megaplan.py:1`).
## Execution Order
1. Update prompts and mocks before enforcing stricter validation.
2. Land higher-risk wiring after the validator and tests are ready.
## Validation Order
1. Start with focused unit tests.
2. Run the broader suite after the flow changes are in place.
For complex plans, use multiple phases:
md
## Phase 1: Foundation — Dependencies, DB, Types
### Step 1: Install dependencies (`package.json`)
...
### Step 2: Create database migration (`supabase/migrations/`)
...
## Phase 2: Core Integration
### Step 3: Port the main component (`src/components/`)
...
Template guidance:
Simple plans: use ## Main Phase with ### Step N: sections underneath.
Complex plans: use multiple ## Phase N: sections, each containing ### Step N: steps. Step numbers are global (not per-phase).
The flat ## Step N: format (without phases) also works for backwards compatibility.
Key invariants: one H1 title, one ## Overview, numbered step sections (### Step N: or ## Step N:), and at least one ordering section.
You are already running inside the megaplan harness for this step. Do the requested planning/review/execution work directly. Do NOT invoke the megaplan CLI, do NOT read or activate the megaplan skill, do NOT start nested megaplan plans, and do NOT recurse into another planning harness. Treat mentions of megaplan in the repository or environment as implementation context only.
You are revising an implementation plan after critique and gate feedback.
Clean up project documentation so it is succinct, easy to understand, and gives the appropriate amount of coverage.
Scope: README.md (project root) and every file under docs/ (currently includes docs/cloud.md which was just authored by the sprint-1 megaplan run for the megaplan cloud feature). Do NOT edit CHANGELOG.md (chronological record, not prose to polish). Do NOT edit source code under megaplan/ or tests/ — this is a prose-only pass.
Goals:
No fluff, no marketing voice, no hollow reassurances, no emojis (do not add them; leave any existing ones alone unless they make the text worse).
Prune content a reader would not miss.
Preserve technical accuracy — never remove or misstate a fact.
Collapse redundancy across README.md and docs/*.md.
Keep code examples verbatim unless they contain factual errors.
Prefer concrete over abstract; prefer short paragraphs over long ones.
Section headers must earn their place; merge trivially short sections.
Non-goals:
Do not rewrite for voice/style unless the current prose is actively unclear.
Do not delete whole files; if a file seems entirely redundant, note it in the run summary instead.
Do not restructure the top-level table of contents unless absolutely necessary for clarity.
Success criteria:
README.md and docs/*.md are noticeably shorter than their current form without losing any reader-useful information (must).
No factual claim has been altered (must).
No code example has been altered except to fix a factual error (must).
Prose reads tightly; no obvious fluff passages remain (should).
All cross-references between files still resolve (should).
This is a light-robustness run: plan → critique → revise → finalize → execute. No prep, no gate, no review phase.
code
Current plan (markdown):
Implementation Plan: Prose-Only Cleanup of README.md and docs/
Overview
Scope is two files: README.md (159 lines) and docs/cloud.md (305 lines). No other files exist under docs/. CHANGELOG.md and all source/tests are out of scope. The task is a tightening pass — remove fluff, collapse redundancy, keep every fact and every code block verbatim (unless a block contains a factual error, which I will flag rather than silently change).
What I observed in the two files:
README.md is already reasonably tight. The biggest trim targets are the two "Quick Start" blocks (duplicated boilerplate across Claude/Codex and OpenRouter), the "Running manually" section (redundant with "How it works"), and the long "Looking for 'metaplan' or 'preplan' mode?" passage, which repeats content now also covered in the preceding paragraph. The prep explanation appears twice (once in "How it works", once in the "Looking for…" section).
docs/cloud.md has more to prune. Recurring filler: "Usually keep this in cloud.yaml" appears three times across the env-var table; the repo.workspace row restates the same path fact four ways ("clone destination, tmux cwd, git safe.directory, and remote cd"); the "Sprint 1 is intentionally narrow" framing is repeated in intro, Sprint 2 section, and the Reigh Parity Runbook section. The Reigh Parity Validation Runbook section is a one-paragraph placeholder pointing to a file that does not exist (docs/cloud-reigh-parity-runbook.md) — I will flag this for possible removal but not delete it unilaterally (user said: if a file seems entirely redundant, note it in the run summary; a placeholder section is a softer version of the same thing).
Constraints that matter:
Do not change any fact. If a passage states a default (repo.workspace is /workspace/app), it stays. If prose ties two facts together ("the heartbeat tmux session and the health server always start regardless of mode"), keep the fact, cut the filler around it.
Do not alter code blocks. Shell snippets, JSON, YAML examples all stay byte-identical unless the block contains a verifiable factual error, in which case I flag it in the run summary rather than silently edit.
Do not delete files. Do not restructure top-level headings unless a merge is clearly clarifying.
Cross-reference check: README's only docs/ mention is an illustrative docs/new-cache-layer.md in a code block (not a real link). docs/cloud.md references a deferred docs/cloud-reigh-parity-runbook.md which does not exist — that path is factually described as a placeholder, so the current wording is accurate and should stay if the section stays.
Main Phase
Step 1: Re-read both files end-to-end and mark trim targets (README.md, docs/cloud.md)
Scope: Small
Re-readREADME.md and docs/cloud.md in full with the cleanup lens. I have already done a first pass — this step is to confirm nothing is missed before editing.
Verify that each trim target below is either (a) pure fluff, (b) redundancy with an earlier passage in the same file, or (c) a trivially short section whose content fits naturally under a neighbor. Keep a running note of anything that looks like fluff but is actually carrying load (e.g., a factual default buried in a filler sentence).
Do not edit yet. This step exists so the edit passes are confident rather than exploratory.
Step 2: Tighten README.md (README.md)
Scope: Medium
Concrete trims I plan to make (all edits preserve every fact and every code block):
Collapse the two "Quick Start" sections. They duplicate 80% of their prose. Keep both code blocks verbatim; merge the surrounding prose so the OpenRouter block is a short delta over the base install ("…and for open models via OpenRouter:") rather than a full restated intro. Target: ~10 lines saved.
Merge "Running manually" into "How it works". The phase list plan → critique → gate → … and the CLI commands that enact it belong together; two separate sections with the same content-shape is churn.
Trim the "Doc mode" intro paragraphs. The parenthetical list ("design spec, architecture doc, research note, RFC, proposal, post-mortem, migration plan — anything whose deliverable is prose, not code") is fine; the sentence "Doc mode runs the same prep → plan → critique → gate → revise → finalize → execute → review loop and respects every other flag…" can drop the re-enumeration of phases (already listed in "How it works") and become "Doc mode runs the same loop and respects every other flag…".
Shorten the "Looking for 'metaplan' or 'preplan' mode?" section. Current text re-explains prep and the code/doc distinction. Target: one compact paragraph pointing readers with a preplan mental model to --mode doc, and clarifying that prep is a phase, not a mode. Heading stays so search-engine / in-repo search still hits it.
Tighten the "Observability" section. "watch remains as a backward-compatible alias to status" can become a parenthetical after the sentence defining status. The descriptor "It exposes lifecycle fields such as active_step, last_step, notes, cost, execute progress, and next-step runtime guidance." is useful and stays.
Trim "Subagent mode" prose. "It is the default orchestration mode for Claude Code and Codex. Cursor continues to run inline." carries two facts (default for Claude/Codex; Cursor inline). Keep both. Can tighten "returning control only at defined breakpoints" which is a bit abstract — keep it only if I cannot match the meaning in fewer words.
Leave untouched: the configuration table (dense, factual), the SWE-bench section (short, factual), the Code Health image, the License line, and every code block.
Step 3: Tighten docs/cloud.md (docs/cloud.md)
Scope: Medium
Concrete trims I plan to make:
Compress the opening. "Sprint 1 is intentionally narrow: one provider (railway), one persistent volume, manual upload of runtime input files, and parity with the current reigh-megaplan-dev workflow." restates what the reference tables below make concrete. Keep one sentence naming the sprint-1 scope; drop the bulleted redundancy it sets up. Keep the ./.venv/bin/python -m megaplan ... launcher note and the --cloud-yaml note — both load-bearing.
Cut filler from reference tables without touching defaults or required flags:
repo.workspace "Meaning" cell: keep the path fact; cut the four-way restatement ("clone destination, tmux cwd, git safe.directory, remote cd") down to one phrase.
REPO_URL, REPO_BRANCH, MEGAPLAN_REF rows each end in "Usually keep this in cloud.yaml." — consolidate into a single sentence above the table rather than repeating in three rows.
OPENAI_API_KEY row: tighten the "if /root/.codex/auth.json is absent, entrypoint runs codex login --with-api-key" phrasing. Fact stays; wording tightens.
Merge "Claude Auth Behavior" into the ANTHROPIC_API_KEY row of the env-vars table. The section is 15 lines that restate what the table row already says plus one factual detail (the exact claude setup-token command and the exact WARN log line). Move the command and WARN string into a one-line note under the env-var table; drop the standalone section. Heading count goes down, facts are preserved.
Tighten "Manual Upload Workflow". Intro paragraph "Sprint 1 does not upload… This is intentional reigh parity. The deploy flow only uploads environment variables…" can compress to one sentence. Keep both code blocks (idea-file upload, chain-spec upload) verbatim. The "If the configured file is missing at boot" bullet list is factual and terse — keep.
Keep the "Mode Behavior" table verbatim. It is dense and every cell carries a fact.
Keep the "Symptom → Cause → Fix" table verbatim. Every row is a concrete incident pattern; no fluff to remove.
Tighten "Secret Rotation And Cost Monitoring". The prose around the three links is fine; the "Because Railway variables are plaintext to project members, rotate long-lived keys after high-trust or shared-environment runs" sentence is load-bearing (it explains the why). Keep. The "For Railway-specific cost questions, use the Railway dashboard as the source of truth…" sentence largely repeats the bullet above — merge.
Step 4: Verify no facts or code changed (README.md, docs/cloud.md)
Scope: Small
Diff the before/after of each file and walk every removed span. For each removal confirm: (a) the span contained no unique fact, (b) every fact it carried is still present elsewhere in the file, (c) no code fence was modified.
Search both edited files for every table's required/default columns and confirm values are unchanged (quick visual scan — these are the highest-risk cells for accidental regression).
Confirm cross-references still resolve: README's docs/new-cache-layer.md is illustrative (stays as-is). docs/cloud.md's docs/cloud-reigh-parity-runbook.md is described as a deferred placeholder (stays factually accurate). No anchor links (#section) exist in either file to break.
Line-count check. Confirm both files are shorter. Rough target (not a hard gate): README down ~15–25 lines, cloud.md down ~40–60 lines. These are estimates to sanity-check the trim, not a contract — if a section resists trimming without fact loss, leave it.
Execution Order
Step 1 (re-read + mark targets) before any editing.
Step 2 (README) before Step 3 (cloud.md). README is smaller and the edit patterns (collapse duplicates, drop re-enumerations) translate directly; doing the smaller file first catches mistakes cheaply.
Step 4 (verification) last.
Validation Order
Per-file self-diff and fact-preservation walk (Step 4.1, 4.2) — cheapest, catches the worst failure mode (lost facts).
Cross-reference check (Step 4.3) — fast.
Line-count sanity check (Step 4.4) — fast, and only meaningful if the prior checks pass.
No test suite applies; this is a prose-only change.
code
Current plan metadata:
{
"version": 1,
"timestamp": "2026-04-21T06:05:40Z",
"hash": "sha256:6ce0387f66e671182d958355efa439537758ed0bc3a43c22f39b1cc3de6aaa15",
"questions": [
"Is the Reigh Parity Validation Runbook section at the end of docs/cloud.md safe to remove outright? It points to a non-existent placeholder file and carries no actionable content for a current reader. Default: keep it, tightened, and flag in the run summary.",
"Any hard line-count target for the two files, or is 'noticeably shorter' by your judgment fine? Default: treat 'noticeably shorter' as the bar, aim for a meaningful but fact-driven trim rather than hitting a number."
],
"success_criteria": [
{
"criterion": "README.md is shorter than the pre-edit version (measured in lines) with no factual claim removed or altered.",
"priority": "must",
"requires": [
"read_files",
"parse_diff"
]
},
{
"criterion": "docs/cloud.md is shorter than the pre-edit version (measured in lines) with no factual claim removed or altered.",
"priority": "must",
"requires": [
"read_files",
"parse_diff"
]
},
{
"criterion": "Every code block (fenced ... span) in both files is byte-identical to its pre-edit version, unless a block contained a factual error that is called out in the run summary.",
"priority": "must",
"requires": [
"parse_diff"
]
},
{
"criterion": "Every table cell value in both files (Required / Default / Meaning columns in docs/cloud.md; the configuration table in README.md) is either unchanged or has only stylistic trimming that preserves the underlying fact.",
"priority": "must",
"requires": [
"parse_diff",
"read_files"
]
},
{
"criterion": "All cross-references in the edited files still resolve: README's illustrative docs/new-cache-layer.md example and docs/cloud.md's docs/cloud-reigh-parity-runbook.md placeholder remain correctly described.",
"priority": "should",
"requires": [
"read_files"
]
},
{
"criterion": "No section heading is deleted outright; at most, a trivially short section is merged under a neighboring heading with clear improvement in readability.",
"priority": "should",
"requires": [
"parse_diff",
"subjective_judgment"
]
},
{
"criterion": "Prose reads tightly: no marketing voice, no hollow reassurances, no filler phrases repeating facts already stated elsewhere in the file.",
"priority": "should",
"requires": [
"subjective_judgment"
]
},
{
"criterion": "No emojis are added. Any pre-existing emojis are left in place unless they make the surrounding text worse.",
"priority": "should",
"requires": [
"parse_diff"
]
},
{
"criterion": "The run summary notes any section or file that looked entirely redundant (specifically the Reigh Parity Validation Runbook placeholder section in docs/cloud.md) rather than silently deleting it.",
"priority": "info",
"requires": [
"subjective_judgment"
]
}
],
"assumptions": [
"Scope is exactly README.md and every file under (currently only ). , , , and source/tests are out of scope.",
"The placeholder section in stays in place for this pass, tightened, and is flagged in the run summary rather than removed.",
"Code blocks (shell, JSON, YAML, log-line examples) are preserved byte-for-byte. If any block contains a factual error, I flag it in the run summary rather than editing it silently.",
"No hard line-count target \u2014 'noticeably shorter' is interpreted as a real but fact-driven trim, not a percentage contract.",
"The README's reference is an illustrative path inside a code block, not a real in-repo link, and stays verbatim.",
"The path in is a factual description of a deferred placeholder and stays as written if the surrounding section stays.",
"Section headings may be merged where a section is trivially short, but the top-level information architecture of each file is preserved."
],
"structure_warnings": []
}
code
Gate summary:
{
"recommendation": "ITERATE",
"rationale": "Light robustness: single revision pass to incorporate critique feedback.",
"signals_assessment": "",
"warnings": [],
"settled_decisions": []
}
code
Open significant flags:
[
{
"id": "FLAG-001",
"severity": "significant",
"status": "open",
"concern": "Code examples: Step 3.3 is not safe as written. It proposes merging Claude Auth Behavior into the env-var table and moving the exact claude setup-token command and WARN line into a one-line note, but this section currently contains two fenced examples that the brief says must stay verbatim unless factually wrong.",
"evidence": "docs/cloud.md:222-237 contains a fenced bash example for printf '%s\\n' \"$ANTHROPIC_API_KEY\" | claude setup-token and a fenced text example for WARN: Claude token auth failed; continuing without Claude auth. The plan's Step 3.3 explicitly says to merge that section into the ANTHROPIC_API_KEY row and move both examples into a one-line note, which would alter or remove existing code examples despite the plan's own must-keep-code-blocks constraint."
}
]
code
Requirements:
- Before addressing individual flags, check: does any flag suggest the plan is targeting the wrong code or the wrong root cause? If so, consider whether the plan needs a new approach rather than adjustments. Explain your reasoning.
- Update the plan to address the significant issues.
- Keep the plan readable and executable.
- Return flags_addressed with the exact flag IDs you addressed.
- Include `changes_summary` as a short plain-English summary of what changed in the revision. If there were no concrete flags, say that explicitly (for example: `No critique flags were raised; refined wording and kept the plan aligned for execution.`).
- Preserve or improve success criteria quality. Each criterion must have a `priority` of `must`, `should`, or `info`. Promote or demote priorities if critique feedback reveals a criterion was over- or under-weighted.
- Verify that the plan remains aligned with the user's original intent, not just internal plan quality.
- Remove unjustified scope growth. If critique raised scope creep, narrow the plan back to the original idea unless the broader work is strictly required.
- Maintain the structural template: H1 title, ## Overview, phase sections with numbered step sections, ## Execution Order or ## Validation Order.
- CRITICAL: Your entire revised plan markdown (all sections) must be output as the `plan` field in the structured output. The prose response must not contain the plan text.
- CRITICAL: Return only the structured JSON object for the schema fields `plan`, `changes_summary`, `flags_addressed`, `assumptions`, `success_criteria`, and `questions`. Do not add commentary before or after the JSON object.
Plan template — simple format (adapt to the actual repo and scope):
md
# Implementation Plan: [Title]
## Overview
Summarize the goal, current repository shape, and the constraints that matter.
## Main Phase
### Step 1: Audit the current behavior (`megaplan/prompts.py`)
**Scope:** Small
1. **Inspect** the current implementation and call out the exact insertion points (`megaplan/prompts.py:29`).
### Step 2: Add the first change (`megaplan/evaluation.py`)
**Scope:** Medium
1. **Implement** the smallest viable change with exact file references (`megaplan/evaluation.py:1`).
2. **Capture** any tricky behavior with a short example.
```python
issues = validate_plan_structure(plan_text)
```
### Step 3: Wire downstream behavior (`megaplan/handlers.py`, `megaplan/workers.py`)
**Scope:** Medium
1. **Update** the runtime flow in the touched files (`megaplan/handlers.py:400`, `megaplan/workers.py:199`).
### Step 4: Prove the change (`tests/test_evaluation.py`, `tests/test_megaplan.py`)
**Scope:** Small
1. **Run** the cheapest targeted checks first (`tests/test_evaluation.py:1`).
2. **Finish** with broader verification once the wiring is in place (`tests/test_megaplan.py:1`).
## Execution Order
1. Update prompts and mocks before enforcing stricter validation.
2. Land higher-risk wiring after the validator and tests are ready.
## Validation Order
1. Start with focused unit tests.
2. Run the broader suite after the flow changes are in place.
For complex plans, use multiple phases:
md
## Phase 1: Foundation — Dependencies, DB, Types
### Step 1: Install dependencies (`package.json`)
...
### Step 2: Create database migration (`supabase/migrations/`)
...
## Phase 2: Core Integration
### Step 3: Port the main component (`src/components/`)
...
Template guidance:
Simple plans: use ## Main Phase with ### Step N: sections underneath.
Complex plans: use multiple ## Phase N: sections, each containing ### Step N: steps. Step numbers are global (not per-phase).
The flat ## Step N: format (without phases) also works for backwards compatibility.
Key invariants: one H1 title, one ## Overview, numbered step sections (### Step N: or ## Step N:), and at least one ordering section.
Dataset releases
Not yet included in a published release.
Tighten "Sprint 2 Follow-Ups". The bullet list of planned features is useful. "None of those are part of sprint 1. This document describes the independently shippable sprint-1 behavior only." repeats the opener — cut the second sentence.
Flag for run summary (do not delete): the Reigh Parity Validation Runbook section is a placeholder pointing to a non-existent file. It is a valid note for future authors but has zero actionable content for a current reader. I will leave it in place, tightened to the minimum, and call it out in the run summary as a candidate for removal in a follow-up pass (per the idea's "note in the run summary instead" rule for apparent full-file redundancy, applied to this section-level case).
Leave untouched: every code block (railway commands, YAML examples, shell snippets, log-line examples), every default value in every table, every URL.