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 an independent reviewer. Critique the plan against the actual repository.
Build the MVP reproducibility process for the prompt-adapters research program, backfill existing experiments, clean up known structural gaps, and author a skill/process doc that captures the workflow. This is the 'stop accumulating reproducibility debt' pass before experiment 003. Scope includes: (1) Working tools/plan-experiment.sh, tools/launch-experiment.sh, tools/finalize-experiment.sh (replacing stubs). (2) Backfill launch_manifest.json and config.yaml for experiments/2026-04-text-001-gemma3-adapter and experiments/2026-04-text-002-gemma3-llm-instructions with data sha256 hashes, retrospective git SHA placeholder, python 3.11, and real n=20 results (001: T1 PASS J=0.058, T2 FAIL 30% 6W/11L/3T, T3 WEAK 12/20, T4 PASS/PASS, T5 SLOW; 002: T1 PASS J=0.201, T2 PASS 70% 14W/6L/0T, T3 FAIL 13/20 own-wins, T4 PASS/PASS, T5 SLOW 15.6%). (3) Cleanup: delete text-ip-adapter/LEARNINGS.md duplicate, update experiments/001 LEARNINGS.md with n=20 reality, update READMEs and experiment.yaml headlines, update projects/text-gemma3-prefix-kv/LEARNINGS.md, update site/docs cross-experiment table, update program/ROADMAP.md, program/LEARNINGS.md, program.yaml C1 evidence. (4) Write program/PROCESS.md runbook (Before you start, Plan phase, Pre-flight, Launch, Monitor, Eval, Finalize, Write up, Replicate, Hard rules, Common anti-patterns); copy to site/docs/process.md and wire into mkdocs.yml nav between Program and Projects; reference from program/index.md. (5) Two commits: 'Add reproducibility MVP: plan/launch/finalize scripts + backfill manifests for experiments 001 and 002' and 'Clean up structural gaps + add PROCESS.md skill doc + reflect n=20 results'. Do NOT push. Do NOT migrate text-ip-adapter code. Do NOT set up HF org. Do NOT actually replicate 001/002. Do NOT rewrite build-site.sh. Keep scripts 100-150 lines each.
Replace reproducibility stubs with real tools/plan-experiment.sh, tools/launch-experiment.sh, tools/finalize-experiment.sh (each 100–150 lines). These anchor the experiment lifecycle: plan → launch → monitor → finalize.
Backfill launch metadata (launch_manifest.json, config.yaml) for experiments 001 and 002, pinning python 3.11, a retrospective git SHA placeholder, and dataset sha256s. Retrofit all result files with the real n=20 numbers (001: T1 PASS J=0.058, T2 FAIL 30% 6W/11L/3T, T3 WEAK 12/20, T4 PASS/PASS, T5 SLOW; 002: T1 PASS J=0.201, T2 PASS 70% 14W/6L/0T, T3 FAIL 13/20 own-wins, T4 PASS/PASS, T5 SLOW 15.6%).
Author program/PROCESS.md as the runbook/skill doc, mirror into site/docs/process.md, and wire it into the MkDocs nav between Program and Projects.
Repo shape (relevant): tools/ has working build-site.sh, new-experiment.sh (the scaffold script) and stub replicate.sh; experiments/2026-04-text-001-gemma3-adapter/ has experiment.yaml, README.md, LEARNINGS.md, config.yaml (stub), empty requirements.lock, empty CORE_COMMIT, MIGRATION.md, run.sh (stub); experiments/2026-04-text-002-gemma3-llm-instructions/ has only experiment.yaml, README.md, LEARNINGS.md (no config.yaml, no run.sh); program/ has STRATEGY.md, ROADMAP.md, LEARNINGS.md, program.yaml; projects/text-gemma3-prefix-kv/LEARNINGS.md exists; site/docs/ mirrors program/ and projects/ via build-site.sh.
Working-tree state at start: the single prior commit is the initial scaffold; everything currently unstaged/untracked (program/, projects/, 002 directory, site mirror files) will be partitioned into the two required commits below. Two commits, no push.
Constraints kept in mind:
Do NOT migrate text-ip-adapter/ code, set up HF org, re-run 001/002, rewrite build-site.sh.
Step 1: Audit current tooling and the existing scaffold behavior (tools/new-experiment.sh, tools/replicate.sh, tools/build-site.sh)
Scope: Small
Confirmnew-experiment.sh is the only scaffold path today (tools/new-experiment.sh:17-72) — produces experiment.yaml, README.md, config.yaml, requirements.lock, CORE_COMMIT, run.sh, LEARNINGS.md, and results/.gitkeep.
Decide that plan-experiment.sh replaces new-experiment.sh (it's the "Plan" verb in the lifecycle), and new-experiment.sh is removed in the same commit to avoid two scaffolders drifting. This is an assumption flagged below — if the user wants them co-existing we keep new-experiment.sh.
Notereplicate.sh is a TODO: one-liner; leave it alone (out of scope per brief).
Create the script with signature finalize-experiment.sh <experiment-id>.
Check preconditions: launch_manifest.json exists, status is running, results/ has at least one non-.gitkeep file, LEARNINGS.md is non-empty, experiment.yaml has headline: populated (non-empty, not TBD).
Append a finalize block to launch_manifest.json with finalized_at, results_sha256 (sha256 of the results/ tree via find+sort+sha256sum), duration_seconds if computable.
Flipexperiment.yaml status → complete.
Echo a short replay command suggestion for future replication.
data_sha256: real sha256s of the ../../../text-ip-adapter/data/pairs/{train,val,test}.jsonl if reachable from here; otherwise "TODO-retrospective-hash" with a note (see assumption 2)
launched_at: a retrospective date consistent with the experiment's start (e.g. 2026-04-18)
Remaining fields filled from the existing experiment.yaml.
Rewriteexperiments/2026-04-text-001-gemma3-adapter/config.yaml to the real training config (base model, 971 pairs, 2000 steps, batch 4, bf16, inject layers 17-32, num_queries 16, num_prefix_tokens 16, lr 1e-4/5e-5, cosine schedule) — exact values taken from the README.md and the 002 README.md (method block).
Leaverun.sh, requirements.lock, CORE_COMMIT, MIGRATION.md as-is (out of scope for this commit — they're current intentional stubs referencing the sibling repo).
Writeexperiments/2026-04-text-002-gemma3-llm-instructions/launch_manifest.json mirroring Step 5's format; 002 uses the .llm.jsonl variants of the dataset.
Createexperiments/2026-04-text-002-gemma3-llm-instructions/config.yaml (currently missing) with the same knobs as 001 plus instructions: llm-generated / source model claude-haiku-4-5.
Do not create run.sh/requirements.lock/CORE_COMMIT for 002 unless they're needed for consistency; the brief only calls for launch_manifest.json and config.yaml.
Step 7: Stage and commit — Commit 1 (git)
Scope: Small
Stage new scripts, deletion of new-experiment.sh, the two launch_manifest.json files, the two config.yaml files.
Commit with the exact message:
Add reproducibility MVP: plan/launch/finalize scripts + backfill manifests for experiments 001 and 002
Verifygit status is clean w.r.t. these files (remaining dirty state belongs to Phase 2).
Step 8: Verify and delete text-ip-adapter/LEARNINGS.md duplicate if present (<repo>)
Scope: Tiny
Search for any in-repo text-ip-adapter/LEARNINGS.md. None was found via Glob **/text-ip-adapter*/**, so if it truly does not exist this is a no-op and we note it in the commit message.
If found, git rm the file.
If the user meant the sibling ../text-ip-adapter/LEARNINGS.md, it is outside the repo boundary — skip and flag in the commit message. (See question 3.)
Rewrite headline to reflect FAIL on T2 and the WEAK T3 at n=20 (e.g. "Adapter reads the reference (T1 PASS, J=0.058) but loses to prompting 30% at n=20 and underspecifies style (T3 WEAK 12/20) — test-rig still too noisy to attribute; 002 isolates the instruction variable.").
Rewrite next to point to 002/003 concretely.
README.md: change status from running → complete; rewrite the Results table to n=20 values; replace the "adapter beats prompting 2/3" learnings paragraph with the corrected story.
LEARNINGS.md: full rewrite reflecting n=20 — specifically: "T2 dropped from 67% (n=4 peak) to 30% (n=20)"; keep the discrimination-phase-transition finding; emphasize that n=4 was misleading.
Rewrite headline to reflect: T2 PASS decisively at n=20 vs 001's FAIL, but T3 regressed WEAK→FAIL once the probe count tightened the estimate.
README.md: status running → complete; fill in the empty Results and Learnings sections with the real n=20 table and prose.
LEARNINGS.md: rewrite the side-by-side table to use n=20 numbers for both experiments; rewrite the "still weak" and "broader project" sections so T3 is called FAIL (not WEAK) and the T2 signal is called robust at n=20.
Replace the "as of experiment 002 complete" section with n=20-corrected story: 001 T2 actually FAIL at n=20; 002 T2 PASS at n=20 (14W/6L/0T) is the first positive T2 evidence; T3 is FAIL in both — clean up the decision matrix diagnosis to match.
Append an "Evaluation methodology caveat" note: n=4 probes produced unstable/misleading T2 verdicts; from 003 on, minimum n=20.
program/program.yaml: rewrite C1 evidence_so_far to "001 FAIL (30% win rate, 6W/11L/3T, n=20). 002 PASS (70% win rate, 14W/6L/0T, n=20) after cleaning rule-based instruction noise. First positive T2 evidence; needs one more independent replicate (003 or data-scale)."
program/ROADMAP.md: in the active-project paragraph, replace "001 TIED prompted baseline (50% win rate at step 2000, down from 67% peak at step 1500)" with "001 FAIL vs prompted baseline at n=20 (30% win rate, 6W/11L/3T); 002 PASS at n=20 (70%)". Update the row for 002 to complete — T2 PASS (70%, n=20), T3 FAIL. Update the "what would cause the roadmap to change" bullet about 002.
program/LEARNINGS.md: in the Eval section, strengthen the "n=4 is too noisy" point into an explicit rule ("T2/T3 verdicts at n<20 are unreliable; 001's n=4 TIE flipped to n=20 FAIL on the same data."). Add to Methodology: "Always run eval at n≥20 before writing up."
site/docs/projects/text-gemma3-prefix-kv.md: rewrite the two tables (per-experiment + cross-experiment eval) to n=20 values; update the headline summaries.
site/docs/experiments/index.md: replace both headline cells to match the new experiment.yaml headlines; update both status cells to complete.
site/docs/index.md: update the "Latest result" column for text-gemma3-prefix-kv from "001: TIE vs prompting, T3 FAIL; 002: running" to "001 FAIL vs prompting (n=20); 002 PASS 70% (n=20), T3 FAIL".
Step 14: Write program/PROCESS.md and mirror into site/docs/process.md (program/PROCESS.md, site/docs/process.md, site/mkdocs.yml, site/docs/program/index.md)
Scope: Medium
Createprogram/PROCESS.md as the runbook/skill doc with these sections in order (matching the idea):
# Process — Experiment Lifecycle Runbook
## Before you start (claim gating, prior-art check, resources)
## Plan phase (pre-register hypothesis, decide consequential y/n, tools/plan-experiment.sh <id>)
## Replicate (consumer view: plan file, manifest pin, tools/replicate.sh future)
## Hard rules (experiments immutable once complete; n≥20; pre-register hypothesis; zero TBD at finalize)
## Common anti-patterns (e.g. "ship preliminary results as final", "tune hyperparameters after eval", "no manifest = no experiment", "n=4 is a smoke test, not an eval")
Copy verbatim to site/docs/process.md. (Manual copy in this commit — not adding a line to build-site.sh per the "do NOT rewrite build-site.sh" constraint. See assumption 4.)
Wire into site/mkdocs.yml nav between Program and Projects:
yaml
- Process: process.md
Reference from program/index.md (the site page) — wait, the source is site/docs/program/index.md, which is hand-authored (not synced). Add a "Process" pointer in its intro paragraph. Also add a one-line link to program/PROCESS.md from the root program/ area by referencing it from program/ROADMAP.md top or program/STRATEGY.md — the idea says "reference from program/index.md"; the repo has no program/index.md file, only site/docs/program/index.md. Assumption: the idea means the latter. Flagged below.
Step 15: Run tools/build-site.sh to resync program/ → site/docs/program/ (tools/build-site.sh)
Scope: Tiny
Run./tools/build-site.sh so program/LEARNINGS.md / program/ROADMAP.md propagate to site/docs/program/learnings.md / roadmap.md, and projects/text-gemma3-prefix-kv/LEARNINGS.md propagates to site/docs/projects/text-gemma3-prefix-kv-learnings.md.
Do not edit the synced files directly — they must flow from their sources.
Step 16: Stage and commit — Commit 2 (git)
Scope: Small
Stage all remaining modifications and new files (Phase-2 doc updates + program/PROCESS.md + site/docs/process.md + site/mkdocs.yml + synced site files).
Commit with the exact message:
Clean up structural gaps + add PROCESS.md skill doc + reflect n=20 results
Runwc -l tools/plan-experiment.sh tools/launch-experiment.sh tools/finalize-experiment.sh → each 100–150.
Plan a throwaway experiment: ./tools/plan-experiment.sh 9999-99-test-999-smoke, assert files scaffolded and status: planned.
Launch it: ./tools/launch-experiment.sh 9999-99-test-999-smoke, assert launch_manifest.json created with all required keys, status: running.
Finalize it after dropping a fake results/a.json and filling LEARNINGS.md: ./tools/finalize-experiment.sh 9999-99-test-999-smoke, assert status: complete.
Validate all experiment.yaml files parse: python3 -c 'import yaml,glob; [yaml.safe_load(open(f)) for f in glob.glob("experiments/*/experiment.yaml")]'.
Validatelaunch_manifest.json files parse: python3 -c 'import json; [json.load(open(f)) for f in ...]'.
Grep for stale n=4 numbers (67%, n=4, 75%, 3W/0L/1T) across the repo — they should only appear in program/LEARNINGS.md / README historical notes if at all.
Grep for TBD in experiments/*/experiment.yaml — 001 and 002 should have no TBD headline/next.
Step 19: MkDocs sanity (optional, info-only)
Scope: Tiny
Runmkdocs build --strict -f site/mkdocs.yml if mkdocs is installed; confirm no broken links and process.md appears in nav. Info-only — brief explicitly doesn't mandate the site build.
Step 20: Git log check
Scope: Tiny
Rungit log --oneline; expect exactly three commits (scaffold + the two new ones, in the required order and with the exact required messages).
Rungit status; expect clean tree.
Confirm no git push was executed.
Execution Order
Audit existing scaffold (Step 1) — understand what we're replacing.
Build the three scripts (Steps 2–4) — high-value foundation.
Use the scripts conceptually (or at least as a template) to backfill 001 and 002 manifests/config (Steps 5–6).
Commit 1 (Step 7) — ship reproducibility MVP.
Cleanup the text-ip-adapter duplicate if any (Step 8) — cheap/no-op.
Push the n=20 reality through experiments → project → program → site, in that order so downstream docs never see stale upstream numbers (Steps 9–13).
Author PROCESS.md, mirror to site, wire into nav (Step 14).
Re-run build-site.sh to sync derived site files (Step 15).
Commit 2 (Step 16).
Validation Order
Syntax / line-count / smoke tests on the three scripts (Step 17) — cheapest, highest signal on the "scripts work" must.
git log + git status + no-push confirmation (Step 20) — final gate.
code
Plan metadata:
{
"version": 1,
"timestamp": "2026-04-24T17:47:23Z",
"hash": "sha256:201c6af3901291f588bdb60fa13b6088b2bd5a32f03be5cecb57e3f67f21ca87",
"questions": [
"Should tools/plan-experiment.sh replace tools/new-experiment.sh, or should both coexist? The plan assumes replacement (delete new-experiment.sh in commit 1) to avoid drift between two scaffolders.",
"The dataset lives at ../../../text-ip-adapter/data/pairs/ (outside this repo's working directory and unreachable from my sandbox). For launch_manifest.json's data_sha256, should I (a) compute real sha256s if the user will run the script locally after I draft it, (b) commit placeholder strings like TODO-retrospective-hash with a note, or (c) something else?",
"text-ip-adapter/LEARNINGS.md is not present inside this repo (verified via Glob **/text-ip-adapter*/**). Does the brief mean the sibling-repo file at ../text-ip-adapter/LEARNINGS.md (outside repo boundary, cannot touch), or is there a specific path inside this repo I should look at?",
"The brief says 'Do NOT rewrite build-site.sh'. Is adding a single cp program/PROCESS.md site/docs/process.md line to it a 'rewrite', or is it an acceptable minimal extension? The plan conservatively does NOT touch build-site.sh and instead copies PROCESS.md manually once; if that drifts the source-of-truth, a one-line build-site addition would be cleaner.",
"The brief says 'reference from program/index.md'. There is no program/index.md file in the repo \u2014 only site/docs/program/index.md (hand-authored site page). Should I (a) treat the site page as the target, (b) create a new program/index.md as the canonical index, or (c) both?",
"The brief says to flip statuses to complete for 001 and 002 and reflect n=20. 001 currently has status: running in its yaml but its README says Status: running; 002's yaml says status: complete but its README says Status: running. Confirm both should end at status: complete everywhere (my plan assumes yes).",
"site/docs/program/index.md has a claims table showing C1 status testing \u2014 after n=20 reality (001 FAIL, 002 PASS), should C1 stay testing (since only one positive replicate exists) or flip to supported? The plan keeps it testing per program.yaml and notes that one more replicate is needed."
],
"success_criteria": [
{
"criterion": "tools/plan-experiment.sh, tools/launch-experiment.sh, and tools/finalize-experiment.sh exist, are executable (+x), and pass bash -n syntax check.",
"priority": "must",
"requires": [
"run_shell",
"read_files"
]
},
{
"criterion": "Each of the three scripts is between 100 and 150 lines inclusive (wc -l).",
"priority": "must",
"requires": [
"run_shell"
]
},
{
"criterion": "Running the three scripts in sequence on a throwaway experiment ID produces a valid lifecycle: plan creates the scaffold with status: planned; launch writes launch_manifest.json with git_sha, python_version, data_sha256, config_sha256, and flips status to running; finalize flips status to complete after preconditions are met.",
"priority": "must",
"requires": [
"run_shell",
"read_files"
]
},
{
"criterion": "experiments/2026-04-text-001-gemma3-adapter/launch_manifest.json and experiments/2026-04-text-002-gemma3-llm-instructions/launch_manifest.json exist, parse as JSON, and contain the required fields (git_sha with retrospective placeholder, python_version '3.11', data_sha256 map, launched_at, config_sha256).",
"priority": "must",
"requires": [
"run_shell",
"read_files"
]
},
{
"criterion": "Both experiments have config.yaml files present with the real training knobs (base_model, pairs, steps, batch, bf16, inject layers 17-32, num_queries 16, num_prefix_tokens 16, lrs, cosine schedule) \u2014 not the prior stub content.",
"priority": "must",
"requires": [
"read_files"
]
},
{
"criterion": "All three experiment.yaml files parse via PyYAML and are internally consistent (status: complete for 001 and 002, matching headlines, n=20 numbers in results).",
"priority": "must",
"requires": [
"run_shell",
"read_files"
]
},
{
"criterion": "Experiment 001's yaml + README + LEARNINGS all report T2 as FAIL (30% win rate, 6W/11L/3T, n=20), T1 Jaccard 0.058, T3 WEAK (12/20), T4 PASS/PASS, T5 SLOW.",
"priority": "must",
"requires": [
"read_files"
]
},
{
"criterion": "Experiment 002's yaml + README + LEARNINGS all report T2 as PASS (70%, 14W/6L/0T, n=20), T1 Jaccard 0.201, T3 FAIL (13/20 own-wins), T4 PASS/PASS, T5 SLOW 15.6%.",
"priority": "must",
"requires": [
"read_files"
]
},
{
"criterion": "program/program.yaml C1 evidence_so_far references the n=20 numbers for both experiments (001 FAIL 30%, 002 PASS 70%) and not the prior n=4 numbers.",
"priority": "must",
"requires": [
"read_files"
]
},
{
"criterion": "program/PROCESS.md exists and contains all required sections in order: Before you start, Plan phase, Pre-flight, Launch, Monitor, Eval, Finalize, Write up, Replicate, Hard rules, Common anti-patterns.",
"priority": "must",
"requires": [
"read_files"
]
},
{
"criterion": "site/docs/process.md exists and has identical content to program/PROCESS.md (diff -q returns equal), and site/mkdocs.yml nav has a Process: process.md entry positioned between the Program and Projects blocks.",
"priority": "must",
"requires": [
"run_shell",
"read_files"
]
},
{
"criterion": "git log --oneline shows exactly two new commits after the initial scaffold, with messages exactly 'Add reproducibility MVP: plan/launch/finalize scripts + backfill manifests for experiments 001 and 002' and 'Clean up structural gaps + add PROCESS.md skill doc + reflect n=20 results' in that order; git status is clean; no push has been performed (check git log origin/main..HEAD shows 2 commits).",
"priority": "must",
"requires": [
"run_shell"
]
},
{
"criterion": "Site cross-experiment tables (site/docs/projects/text-gemma3-prefix-kv.md, site/docs/experiments/index.md, site/docs/index.md) reflect the n=20 numbers and show both experiments as complete.",
"priority": "should",
"requires": [
"read_files"
]
},
{
"criterion": "projects/text-gemma3-prefix-kv/LEARNINGS.md is updated with the corrected n=20 story and an explicit 'n<20 is too noisy' methodology note.",
"priority": "should",
"requires": [
"read_files"
]
},
{
"criterion": "program/LEARNINGS.md and program/ROADMAP.md reflect the n=20 corrections (ROADMAP's 002 row shows T2 PASS 70% / T3 FAIL; LEARNINGS adds the 'n<20 unreliable' rule).",
"priority": "should",
"requires": [
"read_files"
]
},
{
"criterion": "No stale n=4 verdicts remain in committed docs outside of explicit historical notes \u2014 grep -rn '67%\\|n=4\\|3W/0L/1T' returns no surprising hits in 001/002/projects/program/site.",
"priority": "should",
"requires": [
"run_shell"
]
},
{
"criterion": "tools/new-experiment.sh is removed (replaced by plan-experiment.sh) to avoid two drifting scaffolders.",
"priority": "should",
"requires": [
"read_files"
]
},
{
"criterion": "mkdocs build --strict -f site/mkdocs.yml succeeds with no broken links and Process page rendered (only verifiable if mkdocs is installed locally).",
"priority": "info",
"requires": [
"run_shell"
]
},
{
"criterion": "The throwaway smoke-test experiment directory used to validate the three scripts is cleaned up and not present in either commit.",
"priority": "should",
"requires": [
"run_shell",
"read_files"
]
}
],
"assumptions": [
"tools/plan-experiment.sh replaces tools/new-experiment.sh; the old scaffold script is deleted in commit 1. If the user wants them to coexist, we keep new-experiment.sh untouched and have plan-experiment.sh layer on top.",
"Dataset sha256 hashes for launch_manifest.json will be placeholder strings (e.g. TODO-retrospective-sha256) with a clear note in the manifest, because the actual dataset lives at ../../../text-ip-adapter/data/pairs/ (outside this repo's accessible working directory). The script itself computes real sha256s at launch time for non-retrospective runs.",
"text-ip-adapter/LEARNINGS.md does not exist inside this repo (verified); the 'delete text-ip-adapter/LEARNINGS.md duplicate' task becomes a no-op in this repo, noted in commit 2's body. If it refers to the sibling repo ../text-ip-adapter/, that is outside boundary and out of scope.",
"build-site.sh is not touched per the 'do NOT rewrite build-site.sh' constraint. site/docs/process.md is a one-time manual copy of program/PROCESS.md in commit 2. If the two drift later, the user can either manually re-copy or relax the constraint to add a single cp line to build-site.sh.",
"The 'reference from program/index.md' phrasing in the brief refers to site/docs/program/index.md (the only program index that currently exists). I'll add a single-line pointer to Process there and also add a link from program/ROADMAP.md so the on-disk program/ surface references PROCESS.md too.",
"All Phase-2 doc edits (program/, projects/, site/docs/ updates, experiment 001/002 headline/result updates, PROCESS.md authoring) belong to commit 2. Phase-1 commit contains strictly the three new scripts, the deletion of new-experiment.sh, and the backfilled launch_manifest.json + config.yaml files for 001 and 002.",
"Retrospective git SHA placeholder for both launch_manifest.json files is the literal string RETROSPECTIVE-000000 (or similar obvious sentinel); this keeps replicability honest by not fabricating a real SHA.",
"launch_manifest.json lives at experiments/<id>/launch_manifest.json (top-level inside the experiment dir, next to experiment.yaml). No existing convention contradicts this.",
"Scripts are bash (#!/usr/bin/env bash, set -euo pipefail) to match tools/new-experiment.sh and tools/build-site.sh style; no Python dependency added.",
"status: complete is the correct terminal status for both experiments after n=20 reality lands. Status flows: 001 yaml current running \u2192 complete; 002 yaml current complete stays; both READMEs currently say running \u2192 both become complete.",
"C1 claim status stays testing in program.yaml after the n=20 update, because only one experiment (002) has positive evidence \u2014 supported status would require an independent replicate. The brief calls for updating 'program.yaml C1 evidence', not status.",
"Finalize's preconditions (LEARNINGS non-empty, headline non-TBD, results dir non-empty) are strict \u2014 experiments cannot be finalized without a real write-up. This is the enforcement mechanism for the 'no TBDs at finalize' hard rule."
],
"structure_warnings": []
}
code
Plan structure warnings from validator:
[]
Existing flags:
[]
Known accepted debt grouped by subsystem:
{
"are-the-proposed-changes-technically-correct": [
{
"id": "DEBT-003",
"concern": "are the proposed changes technically correct?: inspected ../runpod-lifecycle/src/runpod_lifecycle/pod.py and ../runpod-lifecycle/src/runpod_lifecycle/ssh.py. the existing _build_ssh_client() helper returns the package's own runpod_lifecycle.ssh.sshclient wrapper, not a raw paramiko.sshclient. that means step 0's promise that pod.open_ssh_client() -> paramiko.sshclient is a 3-line public wrapper around existing logic is not technically accurate, and step 20's scp.scpclient(ssh.get_transport()) call would not work against the current wrapper type as written.",
"occurrence_count": 1,
"plan_ids": [
"build-ip-adapter-for-text-a-20260423-2233"
]
},
{
"id": "DEBT-004",
"concern": "are the proposed changes technically correct?: checked runpodconfig.from_env() in ../runpod-lifecycle/src/runpod_lifecycle/config.py. it parses runpod_ssh_private_key, runpod_ssh_private_key_path, and related key vars, but it does not consume runpod_ssh_password; the current password path comes from pod ssh details inside _build_ssh_client(). the fallback clause therefore misstates the existing config surface when it says it reads the same env vars that runpodconfig.from_env() already consumes.",
"occurrence_count": 1,
"plan_ids": [
"build-ip-adapter-for-text-a-20260423-2233"
]
}
],
"did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements": [
{
"id": "DEBT-002",
"concern": "did the work fully address the issue hints, user notes, and approved plan requirements?: checked /users/user_c042661f/documents/reigh-workspace/text-ip-adapter and its docs/ directory: the repository still contains only an empty docs folder, so the plan's own must-have deliverable docs/megaplan.md has not been materialized in the actual repo. that leaves the explicit output requirement and the success criterion about ending with the canonical settled decisions section unmet in repository state.",
"occurrence_count": 1,
"plan_ids": [
"build-ip-adapter-for-text-a-20260423-2233"
]
},
{
"id": "DEBT-010",
"concern": "did the work fully address the issue hints, user notes, and approved plan requirements?: checked the actual repository state again with find and ls -la: /users/user_c042661f/documents/reigh-workspace/text-ip-adapter/docs/ is still empty, so the must-have artifact docs/megaplan.md still does not exist on disk. whatever happened in prior write attempts, the approved-plan requirement is still unmet in the actual repository state the review can verify.",
"occurrence_count": 1,
"plan_ids": [
"build-ip-adapter-for-text-a-20260423-2233"
]
}
],
"does-the-change-touch-all-locations-and-supporting-infrastructure": [
{
"id": "DEBT-006",
"concern": "does the change touch all locations and supporting infrastructure?: compared the revised fallback/auth story across both repositories. text-ip-adapter now plans to document runpod_ssh_password in its own env.example, but the sibling runpod-lifecycle config parser and readme still do not recognize that variable. if the fallback path remains in scope, the plan has not touched all supporting configuration locations needed to make that auth story coherent across the two packages.",
"occurrence_count": 1,
"plan_ids": [
"build-ip-adapter-for-text-a-20260423-2233"
]
}
],
"find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them": [
{
"id": "DEBT-007",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: inspected the new ssh/scp caller contract implied by step 20. pod.exec_ssh() currently builds a short-lived runpod_lifecycle.ssh.sshclient, connects, runs one command, and disconnects; step 20 instead assumes pod.open_ssh_client() yields a long-lived client with get_transport() suitable for scp.scpclient(...). the revised plan never specifies who connects, disconnects, or converts that wrapper into a raw paramiko transport, so the new caller contract is still underspecified and currently inconsistent with the dependency's actual client type.",
"occurrence_count": 1,
"plan_ids": [
"build-ip-adapter-for-text-a-20260423-2233"
]
},
{
"id": "DEBT-008",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: the fallback local-auth caller path also diverges from existing behavior. current pod._build_ssh_client() gets password auth from pod ssh details returned by the api, not from runpod_ssh_password in config. if step 20 falls back to env-only password lookup, the caller behavior will differ from pod.exec_ssh() in exactly the case where no ssh key is configured.",
"occurrence_count": 1,
"plan_ids": [
"build-ip-adapter-for-text-a-20260423-2233"
]
}
],
"infra-api-boundary": [
{
"id": "DEBT-009",
"concern": "infra api boundary: step 0/20 still assume the sibling package can expose a raw paramiko.sshclient through a trivial wrapper, but the current implementation returns a custom runpod_lifecycle.ssh.sshclient wrapper with different lifecycle and no get_transport() method.",
"occurrence_count": 1,
"plan_ids": [
"build-ip-adapter-for-text-a-20260423-2233"
]
}
],
"planning-artifact": [
{
"id": "DEBT-001",
"concern": "planning artifact: docs/megaplan.md is still absent from the repository, so the must-have on-disk deliverable remains unresolved in actual repo state.",
"occurrence_count": 1,
"plan_ids": [
"build-ip-adapter-for-text-a-20260423-2233"
]
}
],
"search-for-related-code-that-handles-the-same-concept-is-the-reported-issue-a-symptom-of-something-broader": [
{
"id": "DEBT-005",
"concern": "search for related code that handles the same concept. is the reported issue a symptom of something broader?: the new ssh-client issue is broader than a single helper signature. the same mistaken assumption about client type and auth source now spans step 0 in the sibling package, step 20's scp transport, step 1's env.example, and the fallback narrative in the overview. this is a cross-cutting infra design problem, not an isolated implementation note.",
"occurrence_count": 1,
"plan_ids": [
"build-ip-adapter-for-text-a-20260423-2233"
]
}
],
"ssh-fallback-config": [
{
"id": "DEBT-011",
"concern": "ssh fallback config: the local-auth fallback claims to read the same ssh env vars that runpodconfig.from_env() already consumes, but the actual config parser does not consume runpod_ssh_password and current password auth comes from pod ssh details instead.",
"occurrence_count": 1,
"plan_ids": [
"build-ip-adapter-for-text-a-20260423-2233"
]
}
]
}
code
Escalated debt subsystems:
[]
Debt guidance:
- These are known accepted limitations. Do not re-flag them unless the current plan makes them worse, broadens them, or fails to contain them.
- Prefix every new concern with a subsystem tag followed by a colon, for example `Timeout recovery: retry backoff remains brittle`.
- When a concern is recurring debt that still needs to be flagged, prefix it with `Recurring debt:` after the subsystem tag, for example `Timeout recovery: Recurring debt: retry backoff remains brittle`.
Your output template is at: /Users/user_c042661f/Documents/.megaplan/plans/build-the-mvp-reproducibility-20260424-1941/critique_output.json
Review the plan with a broad scope. Consider whether the approach is correct, whether it covers
all the places it needs to, whether it would break callers or violate codebase conventions,
and whether its verification strategy is adequate.
Place any concrete concerns in the flags array in the template file using the standard format
(id, concern, category, severity_hint, evidence). Leave checks as an empty array.
Workflow: read the file → investigate → read file again → add findings → write file back.
code
Additional guidelines:
- Robustness level: light. Be pragmatic. Only flag issues that would cause real failures. Ignore style, minor edge cases, and issues the executor will naturally resolve.
- Over-engineering: prefer the simplest approach that fully solves the problem.
- Reuse existing flag IDs when the same concern is still open.
- `verified_flag_ids`: list flag IDs from prior iterations that the revised plan actually resolves (e.g., if the plan was revised to fix FLAG-001, and you confirm the fix is correct, include "FLAG-001"). Only include flags you've verified — don't guess.
- Verify that the plan follows the expected structure when validator warnings or the outline suggest drift.
- Additional flags may use these categories: correctness, security, completeness, performance, maintainability, other.
- Focus on concrete issues, not structural formatting.
{"checks":[],"flags":[{"id":"FLAG-001","concern":"Data hashes: the plan still allows committing retrospective placeholder hashes even though the brief explicitly requires data sha256 hashes for experiments 001 and 002. In the actual workspace the sibling data directory exists but ../text-ip-adapter/data/pairs/ is empty, so neither the real nor .llm.jsonl train/val/test hashes can be computed from current repository state. The plan needs a concrete source for those files, or it should explicitly mark this requirement blocked instead of treating placeholders as acceptable.","category":"completeness","severity_hint":"likely-significant","evidence":"find ../text-ip-adapter/data/pairs -maxdepth 1 -type f -print returns no files; ls -la ../text-ip-adapter/data/pairs shows only . and ... Plan assumption 2 permits TODO-retrospective-sha256, conflicting with the idea's 'data sha256 hashes' requirement."},{"id":"FLAG-002","concern":"Launch path resolution: the launch script design does not specify that data_paths from an experiment config are resolved relative to the experiment directory. This repo documents that experiment-local references to the sibling prototype use paths like ../../../text-ip-adapter/...; if launch-experiment.sh runs from the repo root and hashes those strings directly, valid experiment configs will fail to hash the data or hash the wrong location.","category":"correctness","severity_hint":"likely-significant","evidence":"README.md says files inside experiments/<id>/ refer to the sibling repo via ../../../text-ip-adapter/. Existing experiment 001 metadata uses local at ../../../text-ip-adapter/data/pairs/. The plan says launch captures data_paths and data_sha256 but does not define path base or cd behavior."},{"id":"FLAG-003","concern":"Smoke test: the planned validation sequence cannot pass as written because launch-experiment.sh refuses dirty trees, and plan-experiment.sh 9999-99-test-999-smoke creates an untracked experiment immediately before launch. Step 17 then launches without --allow-dirty or committing the throwaway scaffold, so the required lifecycle smoke test should fail under the plan's own launch precondition.","category":"correctness","severity_hint":"likely-minor","evidence":"Plan Step 3 says launch refuses when git_dirty == true unless --allow-dirty is passed. Plan Step 17 runs ./tools/plan-experiment.sh 9999-99-test-999-smoke followed by ./tools/launch-experiment.sh 9999-99-test-999-smoke; the newly created experiments/9999-99-test-999-smoke directory makes the worktree dirty."}],"verified_flag_ids":[],"disputed_flag_ids":[]}