Set up proper defaults and configuration for the megaplan subagent mode. Several things need to happen: (1) The skill document (.claude/skills/megaplan.md) needs to be regenerated/synced with whatever the current state of instructions.md + claude_subagent_appendix.md is — it may be stale after recent changes. (2) The DEFAULT orchestration mode should be changed to subagent (not inline). Find where defaults are defined and update. Check if there's a default in the config system (megaplan/cli.py config handling) or if it's just in the skill prompt text. The skill/appendix currently says default to inline — change it to default to subagent. (3) There should be a place to specify default models for each phase. Check what already exists in the config system (look at DEFAULT_AGENT_ROUTING in cli.py or types.py) and make sure it's documented and accessible. The config system already supports agents. routing — make sure this is surfaced in the skill file and any relevant docs. (4) Review .claude/skills/megaplan.md holistically — does it cover the full current state of megaplan including subagent mode, config commands, injection, etc.?
code
Batch framing:
- Execute batch 1 of 3.
- Actionable task IDs for this batch: ['T1', 'T2']
- Already completed task IDs available as dependency context: []
Actionable tasks for this batch:
[
{
"id": "T1",
"description": "Update orchestration defaults: (a) In megaplan/data/instructions.md lines 91-95, make the Orchestration Mode section agent-neutral \u2014 remove 'Inline mode is the default', replace with neutral wording like 'Inline mode runs phases in the main conversation. Subagent mode runs phases in a background agent (Claude Code only). The default depends on the agent; override with megaplan config set orchestration.mode inline|subagent.' (b) In megaplan/data/claude_subagent_appendix.md line 3, change 'inline execution remains the default' to 'subagent mode is the default for Claude'. (c) In the same file line 6, flip the activation rule to: 'Default to subagent unless an inline override is explicitly set for this run or megaplan config show reports \"orchestration\": {\"mode\": \"inline\"}.' (d) Verify lines 7-9 still read correctly and don't contradict the new default.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [
"megaplan/data/instructions.md",
"megaplan/data/claude_subagent_appendix.md"
],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add Agent Routing documentation to . Insert a section after the Orchestration Mode section (after line 95). Document: (a) The config keys and usage. (b) The default routing table from in types.py:256-267: plan\u2192claude, prep\u2192claude, critique\u2192codex, revise\u2192claude, gate\u2192claude, finalize\u2192claude, execute\u2192codex, loop_plan\u2192claude, loop_execute\u2192codex, review\u2192codex. (c) The CLI flag for per-run overrides (e.g., ). Keep it concise \u2014 a table + two command examples.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [
"megaplan/data/instructions.md"
],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
]
Assistant
User
Assistant
Regenerating the project skill file from the current source files and validating that the mirrored content still covers the Claude-specific subagent behavior and routing docs. I’m checking the header source, the current skill mirror, and the current instruction sources before replacing the file.
Assistant
The current mirror is stale relative to the updated instruction sources. I’ve confirmed the exact header and I’m checking the current mirrored file for coverage gaps before replacing it with the canonical concatenation.
Assistant
The source docs are still missing config show/set/reset in the shared command list, which means a straight mirror would not satisfy T3’s holistic coverage check. I’m making that source-of-truth fix first, then I’ll regenerate .claude/skills/megaplan.md from the exact header plus the updated source files and verify the mirror matches byte-for-byte.
Assistant
The mirror file is regenerated from the exact source concatenation now. I’m doing a final coverage pass on the mirrored skill and then I’ll checkpoint batch 2 without touching any non-batch tasks.
Assistant
The regenerated skill mirror is correct on disk, but it lives under .claude/, which this repo ignores, so it won’t appear in git status. I’m recording that explicitly in the batch checkpoint so the execution record reflects the on-disk update rather than just tracked-file status.
Assistant
User
Assistant
Running the final verification batch now. I’m creating a short one-off reproduction script for the default-mode bug, then I’ll run the full tests/test_megaplan.py module, fix any text assertions if they still reflect the old inline default, rerun the full module, and finish with a source-of-truth grep.
Assistant
The one-off reproduction script passed, and the source grep is already clean. The full pytest module is still running; I’m waiting on it before deciding whether any assertion updates are needed.
Assistant
The full test module passed cleanly: 175 tests, including the Codex global-setup coverage and the orchestration config tests. I’m removing the temporary reproduction script now and then I’ll checkpoint the batch with the pass result and the clean grep confirmation.
Assistant
{"output":"Completed batch 3 for T4. The temporary reproduction script for the old inline-default bug passed, the full python -m pytest tests/test_megaplan.py -x -v module passed with 175/175 tests, the old inline-default wording grep returned no matches, and the batch result was checkpointed to execution_batch_3.json.","files_changed":[],"commands_run":["python /tmp/verify_megaplan_subagent_default.py","python -m pytest tests/test_megaplan.py -x -v","rg -n "inline is the default|Inline mode is the default" megaplan .claude tests README.md","sed -n '1,220p' .megaplan/plans/set-up-proper-defaults-and-20260406-2002/execution_batch_3.json"],"deviations":[],"task_updates":[{"task_id":"T4","status":"done","executor_notes":"Ran the full tests/test_megaplan.py module exactly as requested; all 175 tests passed. Also ran a one-off reproduction script for the old inline-default wording bug before the suite, then removed it after confirmation, and verified there are zero remaining instances of or in the source-of-truth files searched.","files_changed":[],"commands_run":["python /tmp/verify_megaplan_subagent_default.py","python -m pytest tests/test_megaplan.py -x -v","rg -n "inline is the default|Inline mode is the default" megaplan .claude tests README.md"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC4","executor_note":"Confirmed the full module passed (175 passed), including the Codex global setup and orchestration config coverage, and the grep for the old inline-default wording returned no matches."}]}
megaplan/data/instructions.md
## Agent Routing
agents.<step>
megaplan config set agents.<step> <agent>
DEFAULT_AGENT_ROUTING
--phase-model
--phase-model critique=hermes:openai/gpt-5
code
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[]
Prior batch deviations (address if applicable):
None
Batch-scoped sense checks:
[
{
"id": "SC1",
"task_id": "T1",
"question": "Does instructions.md orchestration section avoid declaring either mode as the default? Does claude_subagent_appendix.md clearly state subagent is the default for Claude?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does the Agent Routing section accurately reflect the DEFAULT_AGENT_ROUTING table from types.py:256-267, and does it document both agents.<step> config and --phase-model CLI flag?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "Update orchestration defaults: (a) In megaplan/data/instructions.md lines 91-95, make the Orchestration Mode section agent-neutral \u2014 remove 'Inline mode is the default', replace with neutral wording like 'Inline mode runs phases in the main conversation. Subagent mode runs phases in a background agent (Claude Code only). The default depends on the agent; override with megaplan config set orchestration.mode inline|subagent.' (b) In megaplan/data/claude_subagent_appendix.md line 3, change 'inline execution remains the default' to 'subagent mode is the default for Claude'. (c) In the same file line 6, flip the activation rule to: 'Default to subagent unless an inline override is explicitly set for this run or megaplan config show reports \"orchestration\": {\"mode\": \"inline\"}.' (d) Verify lines 7-9 still read correctly and don't contradict the new default.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [
"megaplan/data/instructions.md",
"megaplan/data/claude_subagent_appendix.md"
],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add Agent Routing documentation to megaplan/data/instructions.md. Insert a ## Agent Routing section after the Orchestration Mode section (after line 95). Document: (a) The agents.<step> config keys and megaplan config set agents.<step> <agent> usage. (b) The default routing table from DEFAULT_AGENT_ROUTING in types.py:256-267: plan\u2192claude, prep\u2192claude, critique\u2192codex, revise\u2192claude, gate\u2192claude, finalize\u2192claude, execute\u2192codex, loop_plan\u2192claude, loop_execute\u2192codex, review\u2192codex. (c) The --phase-model CLI flag for per-run overrides (e.g., --phase-model critique=hermes:openai/gpt-5). Keep it concise \u2014 a table + two command examples.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [
"megaplan/data/instructions.md"
],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Regenerate .claude/skills/megaplan.md by concatenating: _SKILL_HEADER (the YAML frontmatter from cli.py:288-294, which is ---\\nname: megaplan\\ndescription: AI agent harness for coordinating Claude and GPT to make and execute extremely robust plans.\\n---\\n\\n) + the full contents of megaplan/data/instructions.md + \\n + the full contents of megaplan/data/claude_subagent_appendix.md. This mirrors what bundled_global_file('claude_skill.md') produces at cli.py:314. After writing, do a holistic review confirming the file covers: subagent mode as default for Claude, config commands (config show/set/reset), injection (add-note, kill-and-inject), --phase-model, step editing, full CLI command list, agent routing section.",
"depends_on": [
"T1",
"T2"
],
"status": "pending",
"executor_notes": "",
"files_changed": [
".claude/skills/megaplan.md"
],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Run the full test suite with python -m pytest tests/test_megaplan.py -x -v and verify all tests pass. Key tests to watch: test_global_setup_codex_no_subagent_appendix (line ~1655) \u2014 Codex skill must still exclude subagent appendix. test_config_set_orchestration_mode_* (lines ~2182-2210) \u2014 config system tests. If any test fails due to the updated text (e.g., assertions matching old 'inline is the default' wording), fix the assertion to match the new text and re-run. Also grep all source-of-truth files for any remaining 'inline is the default' or 'Inline mode is the default' strings to confirm none remain.",
"depends_on": [
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [
"python -m pytest tests/test_megaplan.py -x -v"
],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"FLAG-001: instructions.md must stay agent-neutral \u2014 no 'subagent is default' in the shared file. Only claude_subagent_appendix.md should declare the default.",
"FLAG-002/003: .claude/skills/megaplan.md is a manual copy, NOT generated by setup --global. Regenerate by concatenating _SKILL_HEADER + instructions.md + newline + appendix, matching bundled_global_file('claude_skill.md') at cli.py:314.",
"DEBT install-paths: local setup path (AGENTS.md) correctly gets only instructions.md (no appendix) \u2014 the neutral wording in instructions.md handles this. Do not break this.",
"Codex and Cursor skill files generated by setup --global must NOT mention subagent as default \u2014 they use bundled_global_file('skill.md') which excludes the appendix.",
"The default routing table in types.py:256-267 is the source of truth for agent routing docs \u2014 keep docs in sync with code.",
"No Python code changes should be needed \u2014 the default orchestration mode is conveyed through skill text only."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does instructions.md orchestration section avoid declaring either mode as the default? Does claude_subagent_appendix.md clearly state subagent is the default for Claude?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does the Agent Routing section accurately reflect the DEFAULT_AGENT_ROUTING table from types.py:256-267, and does it document both agents.<step> config and --phase-model CLI flag?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does .claude/skills/megaplan.md exactly match _SKILL_HEADER + instructions.md + newline + claude_subagent_appendix.md? Does it cover subagent mode, config commands, injection, step editing, CLI command list, and agent routing?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Do all tests pass? Are there zero remaining instances of 'inline is the default' or 'Inline mode is the default' in any source-of-truth file?",
"executor_note": "",
"verdict": ""
}
],
"meta_commentary": "This is a text-only change \u2014 no Python code modifications needed. The key risk is accidentally putting Claude-specific defaults into the shared instructions.md (FLAG-001). The executor should be precise about which file gets which wording. T1 and T2 can run in parallel since they edit different sections of instructions.md (T1 edits lines 91-95, T2 adds new content after line 95) and T1 also edits the appendix. T3 must wait for both since it concatenates the updated files. The _SKILL_HEADER is a fixed string \u2014 copy it exactly from cli.py:288-294 including the trailing newline. When regenerating the skill file, read the full updated instructions.md and full appendix, don't rely on cached content.",
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Update orchestration defaults in Claude appendix and make instructions.md agent-neutral",
"finalize_task_ids": [
"T1"
]
},
{
"plan_step_summary": "Add agent routing documentation to instructions.md",
"finalize_task_ids": [
"T2"
]
},
{
"plan_step_summary": "Regenerate the project skill file .claude/skills/megaplan.md with holistic review",
"finalize_task_ids": [
"T3"
]
},
{
"plan_step_summary": "Run tests and verify changes",
"finalize_task_ids": [
"T4"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All four plan steps are covered 1:1 by finalize tasks. T1 handles Step 1 (both the appendix edits and the instructions.md neutralization). T2 handles Step 2 (agent routing docs). T3 handles Step 3 (skill file regeneration + holistic review). T4 handles Step 4 (test suite + string verification).",
"coverage_complete": true
}
}
code
Debt watch items (do not make these worse):
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the mobile action-surface plan is technically incorrect for the current component structure. submissioncarouselcard hides footercontent below the md breakpoint (src/components/submissioncarouselcard.tsx:219), while submissionscarouselpage also hides the score panel on mobile via asidecontent={<div classname="hidden md:block">... and passes hideactions to scorepanel at src/pages/submissionscarouselpage.tsx:250-263,347. reusing that pattern for entrypage would leave mobile users with no navigation controls and no scoring controls. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: i checked the sign-in callback path again. submissionslayout already wires usescoring(..., { onrequiresignin: () => pagemachine.dispatch({ type: 'open_sign_in_modal' }) }) at src/pages/submissionslayout.tsx:38-40, and scorepanel still has its own onrequiresignin prop. the revised step 4.2 is acceptable only if it explicitly rewires that prop to pagemachine.dispatch; otherwise removing local modal state would orphan the direct ui callback. the plan hints at this, but it remains easy to misread because the scoring-context callback and the scorepanel prop are separate mechanisms. (flagged 1 times across 1 plans)
[DEBT] are-the-success-criteria-well-prioritized-and-verifiable: are the success criteria well-prioritized and verifiable?: mobile behavior is still under-prioritized relative to the actual risk in this repo. the user constraint specifically mentions the mobile bottom nav, but the only mobile-specific success criterion left is 'mobile scoring ux is coherent' at info level. given that the plan currently removes the working mobile nav, there should be at least a should or must criterion stating that mobile users retain navigation and scoring controls. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: a new critical issue is introduced on mobile. step 4.9 says to remove entrypage's mobile sticky bottom nav and 'use the same footercontent slot in submissioncarouselcard', but src/components/submissioncarouselcard.tsx:217-221 renders footercontent inside classname="hidden md:block". in the current repo, the mobile sticky nav at src/pages/entrypage.tsx:283-340 is the only mobile surface for back/next and the score toggle, so the revised plan would remove working mobile controls and replace them with a slot that is explicitly hidden on phones. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: the plan still contradicts itself on mobile behavior. assumption #3 says the browse-mode mobile score toggle will be preserved, but step 4.9 removes the entire mobile sticky nav that contains that toggle in src/pages/entrypage.tsx:314-330. the implementer cannot satisfy both instructions as written. (flagged 1 times across 1 plans)
[DEBT] does-the-change-touch-all-locations-and-supporting-infrastructure: does the change touch all locations and supporting infrastructure?: if the implementation really wants footercontent to carry mobile actions, the plan must also include a supporting change in src/components/submissioncarouselcard.tsx or render a separate mobile control surface outside the card. right now step 4.9 removes the mobile nav but does not list submissioncarouselcard.tsx:217-221 as a place that must change, so the required glue for mobile controls is missing. (flagged 1 times across 1 plans)
[DEBT] execute-phase-contract: early-killed baselines pass truncated output to the execute worker, which may produce lower-quality diagnosis than full output. (flagged 1 times across 1 plans)
[DEBT] find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them: find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: i checked the skip caller path against the real hook behavior and removefromqueue(entryid) looks redundant. scoring.skipentry(entryid) optimistically adds the id to skippedentryids in src/hooks/usescoring.ts:245-249, and usecarouselqueue already reactively filters skipped entries from submissions[] in src/hooks/usecarouselqueue.ts:154-165. calling removefromqueue() immediately afterward is safe, but it duplicates an existing state transition and should be justified as an explicit ux optimization rather than required logic. (flagged 1 times across 1 plans)
[DEBT] find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them: find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: the direct ui sign-in caller is still important here. scorepanel invokes its own onrequiresignin prop when an unauthenticated user interacts with the score ui (src/components/scorepanel.tsx:499-515), which is independent of the scoring hook's internal requireauth() path. the plan should be read as requiring that caller to dispatch open_sign_in_modal; otherwise one caller remains broken even if submitscore() is correctly wired. (flagged 1 times across 1 plans)
[DEBT] handler-boilerplate: _run_worker() pseudocode hardcodes iteration=state['iteration'] but handle_plan and handle_revise use different failure iteration values. (flagged 1 times across 1 plans)
[DEBT] handler-boilerplate: same issue as correctness-1: failure iteration would be wrong for plan/revise handlers. (flagged 1 times across 1 plans)
[DEBT] install-paths: local setup path doesn't expose subagent mode (flagged 1 times across 1 plans)
[DEBT] install-paths: no automated guard to keep the mirror file synchronized with source files (flagged 1 times across 1 plans)
[DEBT] install-paths: local setup test only checks agents.md existence, not content (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: the test-plan details still miss a small but real infrastructure update: the current locationdisplay helper in src/pages/submissionscarouselpage.test.tsx:289-291 only renders location.pathname, so the step 7 requirement to assert { state: { carousel: true, navdirection: 'forward' } } cannot be implemented unless that helper is extended to expose location.state. the same pattern exists in the related page tests. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: there is still no explicit mobile regression test in the plan, even though the revised implementation proposal removes the only current mobile nav/score surface. given the repository's actual component structure, a mobile-focused test or visual verification step is needed to prove controls remain accessible below md. (flagged 1 times across 1 plans)
[DEBT] mobile-ui: mobile ui: removing entrypage's mobile sticky nav and relying on submissioncarouselcard.footercontent would break mobile navigation and scoring because that footer slot is hidden below the md breakpoint. (flagged 1 times across 1 plans)
[DEBT] search-for-related-code-that-handles-the-same-concept-is-the-reported-issue-a-symptom-of-something-broader: search for related code that handles the same concept. is the reported issue a symptom of something broader?: the mobile problem is broader than entrypage. submissionscarouselpage already has a pre-existing mobile gap because its score panel is desktop-only and its footer actions are also hidden on mobile (src/pages/submissionscarouselpage.tsx:250-263,347-354 plus src/components/submissioncarouselcard.tsx:219). the revised plan says entrypage should 'match the carouselpage pattern', which would spread that existing gap into the one page that currently has working mobile controls. (flagged 1 times across 1 plans)
[DEBT] subagent-safeguards: hermes reference safeguard numbers not validated against actual implementation (flagged 1 times across 1 plans)
[DEBT] subagent-safeguards: plan's retry caps (1 phase, 3 execute) may differ from hermes-agent's actual policy (flagged 1 times across 1 plans)
[DEBT] worker-permissions: codex --full-auto flag only triggers for step == 'execute', not 'loop_execute' (flagged 1 times across 1 plans)
[DEBT] worker-permissions: claude --permission-mode bypasspermissions only triggers for step == 'execute', not 'loop_execute' (flagged 1 times across 1 plans)
[DEBT] workflow-state-machine: _plan_prompt() does not read research.json, so replanning from state_researched would ignore research results. (flagged 1 times across 1 plans)
[DEBT] workflow-state-machine: same issue as correctness-2: state_researched → plan path is only partially wired. (flagged 1 times across 1 plans)
[DEBT] workflow-state-machine: _plan_prompt() is a missed location for the state_researched → plan change. (flagged 1 times across 1 plans)
code
Note: User chose auto-approve mode. This execution was not manually reviewed at the gate. Exercise extra caution on destructive operations.
Robustness level: light.
Requirements:
- Execute only the actionable tasks in this batch.
- Treat completed tasks as dependency context, not new work.
- Return structured JSON only.
- Only produce `task_updates` for these tasks: [T1, T2]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC1, SC2]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/megaplan/.megaplan/plans/set-up-proper-defaults-and-20260406-2002/execution_batch_1.json` is writable, checkpoint task and sense-check updates there (not `finalize.json`). The harness owns `finalize.json`.
- When verifying changes, run the entire test file or module, not individual test functions. Individual tests miss regressions.
- If a test fails and you determine the failure is pre-existing (fails without your changes too), you MUST still re-run the FULL test suite with your changes applied. Pre-existing failures do not excuse you from verifying all other tests still pass. Never narrow to individual test functions and stop.
- If this batch includes the final verification task, write a short script that reproduces the exact bug described in the task, run it to confirm the fix resolves it, then delete the script.
{"output":"Updated batch 1 tasks T1 and T2 in the repo and checkpointed the batch status to .megaplan/plans/set-up-proper-defaults-and-20260406-2002/execution_batch_1.json. No test module was run in this batch; full verification is reserved for T4 per the approved plan.","files_changed":["megaplan/data/instructions.md","megaplan/data/claude_subagent_appendix.md",".megaplan/plans/set-up-proper-defaults-and-20260406-2002/execution_batch_1.json"],"commands_run":["sed -n '1,180p' megaplan/data/instructions.md","sed -n '1,120p' megaplan/data/claude_subagent_appendix.md","sed -n '240,280p' megaplan/types.py","rg -n "config show|config set|config reset|phase-model|agents\\.|DEFAULT_AGENT_ROUTING" -S megaplan tests README* .claude 2>/dev/null","nl -ba megaplan/data/instructions.md | sed -n '88,125p'","nl -ba megaplan/data/claude_subagent_appendix.md | sed -n '1,20p'","git diff -- megaplan/data/instructions.md megaplan/data/claude_subagent_appendix.md","sed -n '1,220p' .megaplan/plans/set-up-proper-defaults-and-20260406-2002/execution_batch_1.json"],"deviations":[],"task_updates":[{"task_id":"T1","status":"done","executor_notes":"Verified the shared orchestration section is agent-neutral in instructions.md and no longer declares inline as the universal default. Verified the Claude appendix now states subagent is the Claude default and that the activation bullets still keep explicit inline overrides higher priority.","files_changed":["megaplan/data/instructions.md","megaplan/data/claude_subagent_appendix.md"],"commands_run":["nl -ba megaplan/data/instructions.md | sed -n '88,125p'","nl -ba megaplan/data/claude_subagent_appendix.md | sed -n '1,20p'"]},{"task_id":"T2","status":"done","executor_notes":"Added an Agent Routing section immediately after Orchestration Mode. Verified the documented step-to-agent defaults match DEFAULT_AGENT_ROUTING in types.py and that the section includes both agents. config usage and a --phase-model example.","files_changed":["megaplan/data/instructions.md"],"commands_run":["sed -n '240,280p' megaplan/types.py","nl -ba megaplan/data/instructions.md | sed -n '96,115p'"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC1","executor_note":"Confirmed instructions.md now describes both orchestration modes without declaring a shared default, and claude_subagent_appendix.md explicitly sets subagent as the Claude default with inline override precedence preserved."},{"sense_check_id":"SC2","executor_note":"Confirmed the Agent Routing table matches DEFAULT_AGENT_ROUTING exactly and the section documents both megaplan config set agents. and --phase-model step=agent[:model]."}]}
Set up proper defaults and configuration for the megaplan subagent mode. Several things need to happen: (1) The skill document (.claude/skills/megaplan.md) needs to be regenerated/synced with whatever the current state of instructions.md + claude_subagent_appendix.md is — it may be stale after recent changes. (2) The DEFAULT orchestration mode should be changed to subagent (not inline). Find where defaults are defined and update. Check if there's a default in the config system (megaplan/cli.py config handling) or if it's just in the skill prompt text. The skill/appendix currently says default to inline — change it to default to subagent. (3) There should be a place to specify default models for each phase. Check what already exists in the config system (look at DEFAULT_AGENT_ROUTING in cli.py or types.py) and make sure it's documented and accessible. The config system already supports agents. routing — make sure this is surfaced in the skill file and any relevant docs. (4) Review .claude/skills/megaplan.md holistically — does it cover the full current state of megaplan including subagent mode, config commands, injection, etc.?
code
Batch framing:
- Execute batch 2 of 3.
- Actionable task IDs for this batch: ['T3']
- Already completed task IDs available as dependency context: ['T1', 'T2']
Actionable tasks for this batch:
[
{
"id": "T3",
"description": "Regenerate .claude/skills/megaplan.md by concatenating: _SKILL_HEADER (the YAML frontmatter from cli.py:288-294, which is ---\\nname: megaplan\\ndescription: AI agent harness for coordinating Claude and GPT to make and execute extremely robust plans.\\n---\\n\\n) + the full contents of megaplan/data/instructions.md + \\n + the full contents of megaplan/data/claude_subagent_appendix.md. This mirrors what bundled_global_file('claude_skill.md') produces at cli.py:314. After writing, do a holistic review confirming the file covers: subagent mode as default for Claude, config commands (config show/set/reset), injection (add-note, kill-and-inject), --phase-model, step editing, full CLI command list, agent routing section.",
"depends_on": [
"T1",
"T2"
],
"status": "pending",
"executor_notes": "",
"files_changed": [
".claude/skills/megaplan.md"
],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
]
code
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[
{
"id": "T1",
"description": "Update orchestration defaults: (a) In megaplan/data/instructions.md lines 91-95, make the Orchestration Mode section agent-neutral \u2014 remove 'Inline mode is the default', replace with neutral wording like 'Inline mode runs phases in the main conversation. Subagent mode runs phases in a background agent (Claude Code only). The default depends on the agent; override with megaplan config set orchestration.mode inline|subagent.' (b) In megaplan/data/claude_subagent_appendix.md line 3, change 'inline execution remains the default' to 'subagent mode is the default for Claude'. (c) In the same file line 6, flip the activation rule to: 'Default to subagent unless an inline override is explicitly set for this run or megaplan config show reports \"orchestration\": {\"mode\": \"inline\"}.' (d) Verify lines 7-9 still read correctly and don't contradict the new default.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified the shared orchestration section is agent-neutral in instructions.md and no longer declares inline as the universal default. Verified the Claude appendix now states subagent is the Claude default and that the activation bullets still keep explicit inline overrides higher priority.",
"files_changed": [
"megaplan/data/instructions.md",
"megaplan/data/claude_subagent_appendix.md"
],
"commands_run": [
"nl -ba megaplan/data/instructions.md | sed -n '88,125p'",
"nl -ba megaplan/data/claude_subagent_appendix.md | sed -n '1,20p'"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add Agent Routing documentation to megaplan/data/instructions.md. Insert a ## Agent Routing section after the Orchestration Mode section (after line 95). Document: (a) The agents.<step> config keys and megaplan config set agents.<step> <agent> usage. (b) The default routing table from DEFAULT_AGENT_ROUTING in types.py:256-267: plan\u2192claude, prep\u2192claude, critique\u2192codex, revise\u2192claude, gate\u2192claude, finalize\u2192claude, execute\u2192codex, loop_plan\u2192claude, loop_execute\u2192codex, review\u2192codex. (c) The --phase-model CLI flag for per-run overrides (e.g., --phase-model critique=hermes:openai/gpt-5). Keep it concise \u2014 a table + two command examples.",
"depends_on": [],
"status": "done",
"executor_notes": "Added an Agent Routing section immediately after Orchestration Mode. Verified the documented step-to-agent defaults match DEFAULT_AGENT_ROUTING in types.py and that the section includes both agents. config usage and a --phase-model example.",
"files_changed": [
"megaplan/data/instructions.md"
],
"commands_run": [
"sed -n '240,280p' megaplan/types.py",
"nl -ba megaplan/data/instructions.md | sed -n '96,115p'"
],
"evidence_files": [],
"reviewer_verdict": ""
}
]
code
Prior batch deviations (address if applicable):
[
"Advisory observation mismatch: executor claimed files not observed in git status/content hash delta: .megaplan/plans/set-up-proper-defaults-and-20260406-2002/execution_batch_1.json",
"Advisory audit finding: Executor claimed changed files not present in git status: .claude/skills/megaplan.md",
"Advisory audit finding: Git status shows changed files not claimed by any task: README.md, megaplan/cli.py, tests/test_megaplan.py",
"Advisory audit finding: Sense check SC3 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC4 is missing an executor acknowledgment."
]
code
Batch-scoped sense checks:
[
{
"id": "SC3",
"task_id": "T3",
"question": "Does .claude/skills/megaplan.md exactly match _SKILL_HEADER + instructions.md + newline + claude_subagent_appendix.md? Does it cover subagent mode, config commands, injection, step editing, CLI command list, and agent routing?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "Update orchestration defaults: (a) In megaplan/data/instructions.md lines 91-95, make the Orchestration Mode section agent-neutral \u2014 remove 'Inline mode is the default', replace with neutral wording like 'Inline mode runs phases in the main conversation. Subagent mode runs phases in a background agent (Claude Code only). The default depends on the agent; override with megaplan config set orchestration.mode inline|subagent.' (b) In megaplan/data/claude_subagent_appendix.md line 3, change 'inline execution remains the default' to 'subagent mode is the default for Claude'. (c) In the same file line 6, flip the activation rule to: 'Default to subagent unless an inline override is explicitly set for this run or megaplan config show reports \"orchestration\": {\"mode\": \"inline\"}.' (d) Verify lines 7-9 still read correctly and don't contradict the new default.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified the shared orchestration section is agent-neutral in instructions.md and no longer declares inline as the universal default. Verified the Claude appendix now states subagent is the Claude default and that the activation bullets still keep explicit inline overrides higher priority.",
"files_changed": [
"megaplan/data/instructions.md",
"megaplan/data/claude_subagent_appendix.md"
],
"commands_run": [
"nl -ba megaplan/data/instructions.md | sed -n '88,125p'",
"nl -ba megaplan/data/claude_subagent_appendix.md | sed -n '1,20p'"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add Agent Routing documentation to megaplan/data/instructions.md. Insert a ## Agent Routing section after the Orchestration Mode section (after line 95). Document: (a) The agents.<step> config keys and megaplan config set agents.<step> <agent> usage. (b) The default routing table from DEFAULT_AGENT_ROUTING in types.py:256-267: plan\u2192claude, prep\u2192claude, critique\u2192codex, revise\u2192claude, gate\u2192claude, finalize\u2192claude, execute\u2192codex, loop_plan\u2192claude, loop_execute\u2192codex, review\u2192codex. (c) The --phase-model CLI flag for per-run overrides (e.g., --phase-model critique=hermes:openai/gpt-5). Keep it concise \u2014 a table + two command examples.",
"depends_on": [],
"status": "done",
"executor_notes": "Added an Agent Routing section immediately after Orchestration Mode. Verified the documented step-to-agent defaults match DEFAULT_AGENT_ROUTING in types.py and that the section includes both agents. config usage and a --phase-model example.",
"files_changed": [
"megaplan/data/instructions.md"
],
"commands_run": [
"sed -n '240,280p' megaplan/types.py",
"nl -ba megaplan/data/instructions.md | sed -n '96,115p'"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Regenerate .claude/skills/megaplan.md by concatenating: (the YAML frontmatter from cli.py:288-294, which is ) + the full contents of + + the full contents of . This mirrors what produces at cli.py:314. After writing, do a holistic review confirming the file covers: subagent mode as default for Claude, config commands (config show/set/reset), injection (add-note, kill-and-inject), , step editing, full CLI command list, agent routing section.",
"depends_on": [
"T1",
"T2"
],
"status": "pending",
"executor_notes": "",
"files_changed": [
".claude/skills/megaplan.md"
],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Run the full test suite with and verify all tests pass. Key tests to watch: (line ~1655) \u2014 Codex skill must still exclude subagent appendix. (lines ~2182-2210) \u2014 config system tests. If any test fails due to the updated text (e.g., assertions matching old 'inline is the default' wording), fix the assertion to match the new text and re-run. Also grep all source-of-truth files for any remaining 'inline is the default' or 'Inline mode is the default' strings to confirm none remain.",
"depends_on": [
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [
"python -m pytest tests/test_megaplan.py -x -v"
],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"FLAG-001: instructions.md must stay agent-neutral \u2014 no 'subagent is default' in the shared file. Only claude_subagent_appendix.md should declare the default.",
"FLAG-002/003: .claude/skills/megaplan.md is a manual copy, NOT generated by . Regenerate by concatenating _SKILL_HEADER + instructions.md + newline + appendix, matching bundled_global_file('claude_skill.md') at cli.py:314.",
"DEBT install-paths: local setup path (AGENTS.md) correctly gets only instructions.md (no appendix) \u2014 the neutral wording in instructions.md handles this. Do not break this.",
"Codex and Cursor skill files generated by setup --global must NOT mention subagent as default \u2014 they use bundled_global_file('skill.md') which excludes the appendix.",
"The default routing table in types.py:256-267 is the source of truth for agent routing docs \u2014 keep docs in sync with code.",
"No Python code changes should be needed \u2014 the default orchestration mode is conveyed through skill text only."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does instructions.md orchestration section avoid declaring either mode as the default? Does claude_subagent_appendix.md clearly state subagent is the default for Claude?",
"executor_note": "Confirmed instructions.md now describes both orchestration modes without declaring a shared default, and claude_subagent_appendix.md explicitly sets subagent as the Claude default with inline override precedence preserved.",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does the Agent Routing section accurately reflect the DEFAULT_AGENT_ROUTING table from types.py:256-267, and does it document both config and CLI flag?",
"executor_note": "Confirmed the Agent Routing table matches DEFAULT_AGENT_ROUTING exactly and the section documents both megaplan config set agents. and --phase-model step=agent[:model].",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does .claude/skills/megaplan.md exactly match _SKILL_HEADER + instructions.md + newline + claude_subagent_appendix.md? Does it cover subagent mode, config commands, injection, step editing, CLI command list, and agent routing?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Do all tests pass? Are there zero remaining instances of 'inline is the default' or 'Inline mode is the default' in any source-of-truth file?",
"executor_note": "",
"verdict": ""
}
],
"meta_commentary": "This is a text-only change \u2014 no Python code modifications needed. The key risk is accidentally putting Claude-specific defaults into the shared instructions.md (FLAG-001). The executor should be precise about which file gets which wording. T1 and T2 can run in parallel since they edit different sections of instructions.md (T1 edits lines 91-95, T2 adds new content after line 95) and T1 also edits the appendix. T3 must wait for both since it concatenates the updated files. The _SKILL_HEADER is a fixed string \u2014 copy it exactly from cli.py:288-294 including the trailing newline. When regenerating the skill file, read the full updated instructions.md and full appendix, don't rely on cached content.",
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Update orchestration defaults in Claude appendix and make instructions.md agent-neutral",
"finalize_task_ids": [
"T1"
]
},
{
"plan_step_summary": "Add agent routing documentation to instructions.md",
"finalize_task_ids": [
"T2"
]
},
{
"plan_step_summary": "Regenerate the project skill file .claude/skills/megaplan.md with holistic review",
"finalize_task_ids": [
"T3"
]
},
{
"plan_step_summary": "Run tests and verify changes",
"finalize_task_ids": [
"T4"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All four plan steps are covered 1:1 by finalize tasks. T1 handles Step 1 (both the appendix edits and the instructions.md neutralization). T2 handles Step 2 (agent routing docs). T3 handles Step 3 (skill file regeneration + holistic review). T4 handles Step 4 (test suite + string verification).",
"coverage_complete": true
}
}
code
Debt watch items (do not make these worse):
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the mobile action-surface plan is technically incorrect for the current component structure. submissioncarouselcard hides footercontent below the md breakpoint (src/components/submissioncarouselcard.tsx:219), while submissionscarouselpage also hides the score panel on mobile via asidecontent={<div classname="hidden md:block">... and passes hideactions to scorepanel at src/pages/submissionscarouselpage.tsx:250-263,347. reusing that pattern for entrypage would leave mobile users with no navigation controls and no scoring controls. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: i checked the sign-in callback path again. submissionslayout already wires usescoring(..., { onrequiresignin: () => pagemachine.dispatch({ type: 'open_sign_in_modal' }) }) at src/pages/submissionslayout.tsx:38-40, and scorepanel still has its own onrequiresignin prop. the revised step 4.2 is acceptable only if it explicitly rewires that prop to pagemachine.dispatch; otherwise removing local modal state would orphan the direct ui callback. the plan hints at this, but it remains easy to misread because the scoring-context callback and the scorepanel prop are separate mechanisms. (flagged 1 times across 1 plans)
[DEBT] are-the-success-criteria-well-prioritized-and-verifiable: are the success criteria well-prioritized and verifiable?: mobile behavior is still under-prioritized relative to the actual risk in this repo. the user constraint specifically mentions the mobile bottom nav, but the only mobile-specific success criterion left is 'mobile scoring ux is coherent' at info level. given that the plan currently removes the working mobile nav, there should be at least a should or must criterion stating that mobile users retain navigation and scoring controls. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: a new critical issue is introduced on mobile. step 4.9 says to remove entrypage's mobile sticky bottom nav and 'use the same footercontent slot in submissioncarouselcard', but src/components/submissioncarouselcard.tsx:217-221 renders footercontent inside classname="hidden md:block". in the current repo, the mobile sticky nav at is the only mobile surface for back/next and the score toggle, so the revised plan would remove working mobile controls and replace them with a slot that is explicitly hidden on phones. (flagged 1 times across 1 plans)
{"output":"Completed batch 2 for T3. Regenerated .claude/skills/megaplan.md from the canonical header plus the current megaplan/data/instructions.md and megaplan/data/claude_subagent_appendix.md, and checkpointed the batch result to execution_batch_2.json. No test module was run in this batch; full verification remains in T4.","files_changed":["megaplan/data/instructions.md",".claude/skills/megaplan.md"],"commands_run":["sed -n '284,320p' megaplan/cli.py","sed -n '1,80p' .claude/skills/megaplan.md","rg -n "config show|config set|config reset|add-note|kill-and-inject|phase-model|step add|step remove|step move|## Agent Routing|## Subagent Mode" .claude/skills/megaplan.md megaplan/data/instructions.md megaplan/data/claude_subagent_appendix.md","nl -ba megaplan/data/instructions.md | sed -n '116,140p'","tmp=(mktemp) && { cat <<'EOF' ... EOF; cat megaplan/data/instructions.md; printf '\\n'; cat megaplan/data/claude_subagent_appendix.md; } > \"tmp" && cp "tmp\" .claude/skills/megaplan.md && cmp -s \"tmp" .claude/skills/megaplan.md && rm "tmp\"","git check-ignore -v .claude/skills/megaplan.md","sed -n '1,220p' .megaplan/plans/set-up-proper-defaults-and-20260406-2002/execution_batch_2.json"],"deviations":["Expanded `megaplan/data/instructions.md` during T3 to add `megaplan config show`, `megaplan config set ...`, and `megaplan config reset` to the shared command list because the required holistic review for the regenerated skill would otherwise fail on config-command coverage."],"task_updates":[{"task_id":"T3","status":"done","executor_notes":"Regenerated the Claude skill mirror from the exact `_SKILL_HEADER + instructions.md + \"\\n\" + claude_subagent_appendix.md` concatenation and verified the on-disk mirror with `cmp`. Added the missing config show/set/reset entries to the shared command list first so the regenerated mirror now covers config commands, agent routing, `--phase-model` overrides, injection guidance, step editing, and the Claude subagent default. Note: `.claude/` is gitignored in this repo, so the mirror update is verified from file content rather than git status.","files_changed":["megaplan/data/instructions.md",".claude/skills/megaplan.md"],"commands_run":["sed -n '284,320p' megaplan/cli.py","rg -n \"config show|config set|config reset|add-note|kill-and-inject|phase-model|step add|step remove|step move|## Agent Routing|## Subagent Mode\" .claude/skills/megaplan.md megaplan/data/instructions.md megaplan/data/claude_subagent_appendix.md","tmp=(mktemp) && { cat <<'EOF' ... EOF; cat megaplan/data/instructions.md; printf '\n'; cat megaplan/data/claude_subagent_appendix.md; } > "tmp\" && cp \"tmp" .claude/skills/megaplan.md && cmp -s "tmp\" .claude/skills/megaplan.md && rm \"tmp"","git check-ignore -v .claude/skills/megaplan.md"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC3","executor_note":"Confirmed the regenerated .claude/skills/megaplan.md matches the canonical header-plus-sources concatenation and now covers the Claude subagent default, config show/set/reset, add-note injection and kill-and-relaunch guidance, --phase-model overrides, step editing, the shared command list, and the Agent Routing section."}]}
Set up proper defaults and configuration for the megaplan subagent mode. Several things need to happen: (1) The skill document (.claude/skills/megaplan.md) needs to be regenerated/synced with whatever the current state of instructions.md + claude_subagent_appendix.md is — it may be stale after recent changes. (2) The DEFAULT orchestration mode should be changed to subagent (not inline). Find where defaults are defined and update. Check if there's a default in the config system (megaplan/cli.py config handling) or if it's just in the skill prompt text. The skill/appendix currently says default to inline — change it to default to subagent. (3) There should be a place to specify default models for each phase. Check what already exists in the config system (look at DEFAULT_AGENT_ROUTING in cli.py or types.py) and make sure it's documented and accessible. The config system already supports agents. routing — make sure this is surfaced in the skill file and any relevant docs. (4) Review .claude/skills/megaplan.md holistically — does it cover the full current state of megaplan including subagent mode, config commands, injection, etc.?
code
Batch framing:
- Execute batch 3 of 3.
- Actionable task IDs for this batch: ['T4']
- Already completed task IDs available as dependency context: ['T1', 'T2', 'T3']
Actionable tasks for this batch:
[
{
"id": "T4",
"description": "Run the full test suite with python -m pytest tests/test_megaplan.py -x -v and verify all tests pass. Key tests to watch: test_global_setup_codex_no_subagent_appendix (line ~1655) \u2014 Codex skill must still exclude subagent appendix. test_config_set_orchestration_mode_* (lines ~2182-2210) \u2014 config system tests. If any test fails due to the updated text (e.g., assertions matching old 'inline is the default' wording), fix the assertion to match the new text and re-run. Also grep all source-of-truth files for any remaining 'inline is the default' or 'Inline mode is the default' strings to confirm none remain.",
"depends_on": [
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [
"python -m pytest tests/test_megaplan.py -x -v"
],
"evidence_files": [],
"reviewer_verdict": ""
}
]
code
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[
{
"id": "T1",
"description": "Update orchestration defaults: (a) In megaplan/data/instructions.md lines 91-95, make the Orchestration Mode section agent-neutral \u2014 remove 'Inline mode is the default', replace with neutral wording like 'Inline mode runs phases in the main conversation. Subagent mode runs phases in a background agent (Claude Code only). The default depends on the agent; override with megaplan config set orchestration.mode inline|subagent.' (b) In megaplan/data/claude_subagent_appendix.md line 3, change 'inline execution remains the default' to 'subagent mode is the default for Claude'. (c) In the same file line 6, flip the activation rule to: 'Default to subagent unless an inline override is explicitly set for this run or megaplan config show reports \"orchestration\": {\"mode\": \"inline\"}.' (d) Verify lines 7-9 still read correctly and don't contradict the new default.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified the shared orchestration section is agent-neutral in instructions.md and no longer declares inline as the universal default. Verified the Claude appendix now states subagent is the Claude default and that the activation bullets still keep explicit inline overrides higher priority.",
"files_changed": [
"megaplan/data/instructions.md",
"megaplan/data/claude_subagent_appendix.md"
],
"commands_run": [
"nl -ba megaplan/data/instructions.md | sed -n '88,125p'",
"nl -ba megaplan/data/claude_subagent_appendix.md | sed -n '1,20p'"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add Agent Routing documentation to megaplan/data/instructions.md. Insert a ## Agent Routing section after the Orchestration Mode section (after line 95). Document: (a) The agents.<step> config keys and megaplan config set agents.<step> <agent> usage. (b) The default routing table from DEFAULT_AGENT_ROUTING in types.py:256-267: plan\u2192claude, prep\u2192claude, critique\u2192codex, revise\u2192claude, gate\u2192claude, finalize\u2192claude, execute\u2192codex, loop_plan\u2192claude, loop_execute\u2192codex, review\u2192codex. (c) The --phase-model CLI flag for per-run overrides (e.g., --phase-model critique=hermes:openai/gpt-5). Keep it concise \u2014 a table + two command examples.",
"depends_on": [],
"status": "done",
"executor_notes": "Added an Agent Routing section immediately after Orchestration Mode. Verified the documented step-to-agent defaults match DEFAULT_AGENT_ROUTING in types.py and that the section includes both agents. config usage and a --phase-model example.",
"files_changed": [
"megaplan/data/instructions.md"
],
"commands_run": [
"sed -n '240,280p' megaplan/types.py",
"nl -ba megaplan/data/instructions.md | sed -n '96,115p'"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Regenerate .claude/skills/megaplan.md by concatenating: (the YAML frontmatter from cli.py:288-294, which is ) + the full contents of + + the full contents of . This mirrors what produces at cli.py:314. After writing, do a holistic review confirming the file covers: subagent mode as default for Claude, config commands (config show/set/reset), injection (add-note, kill-and-inject), , step editing, full CLI command list, agent routing section.",
"depends_on": [
"T1",
"T2"
],
"status": "done",
"executor_notes": "Regenerated the Claude skill mirror from the exact concatenation and verified the on-disk mirror with . Added the missing config show/set/reset entries to the shared command list first so the regenerated mirror now covers config commands, agent routing, overrides, injection guidance, step editing, and the Claude subagent default. Note: is gitignored in this repo, so the mirror update is verified from file content rather than git status.",
"files_changed": [
"megaplan/data/instructions.md",
".claude/skills/megaplan.md"
],
"commands_run": [
"sed -n '284,320p' megaplan/cli.py",
"rg -n "config show|config set|config reset|add-note|kill-and-inject|phase-model|step add|step remove|step move|## Agent Routing|## Subagent Mode" .claude/skills/megaplan.md megaplan/data/instructions.md megaplan/data/claude_subagent_appendix.md",
"tmp=tmp" && cp "tmp" .claude/skills/megaplan.md && rm "$tmp"",
"git check-ignore -v .claude/skills/megaplan.md"
],
"evidence_files": [],
"reviewer_verdict": ""
}
]
code
Prior batch deviations (address if applicable):
[
"Expanded megaplan/data/instructions.md during T3 to add megaplan config show, megaplan config set ..., and megaplan config reset to the shared command list because the required holistic review for the regenerated skill would otherwise fail on config-command coverage.",
"Advisory observation mismatch: executor claimed files not observed in git status/content hash delta: .claude/skills/megaplan.md",
"Advisory audit finding: Executor claimed changed files not present in git status: .claude/skills/megaplan.md",
"Advisory audit finding: Git status shows changed files not claimed by any task: README.md, megaplan/cli.py, tests/test_megaplan.py",
"Advisory audit finding: Sense check SC4 is missing an executor acknowledgment."
]
code
Batch-scoped sense checks:
[
{
"id": "SC4",
"task_id": "T4",
"question": "Do all tests pass? Are there zero remaining instances of 'inline is the default' or 'Inline mode is the default' in any source-of-truth file?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "Update orchestration defaults: (a) In megaplan/data/instructions.md lines 91-95, make the Orchestration Mode section agent-neutral \u2014 remove 'Inline mode is the default', replace with neutral wording like 'Inline mode runs phases in the main conversation. Subagent mode runs phases in a background agent (Claude Code only). The default depends on the agent; override with megaplan config set orchestration.mode inline|subagent.' (b) In megaplan/data/claude_subagent_appendix.md line 3, change 'inline execution remains the default' to 'subagent mode is the default for Claude'. (c) In the same file line 6, flip the activation rule to: 'Default to subagent unless an inline override is explicitly set for this run or megaplan config show reports \"orchestration\": {\"mode\": \"inline\"}.' (d) Verify lines 7-9 still read correctly and don't contradict the new default.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified the shared orchestration section is agent-neutral in instructions.md and no longer declares inline as the universal default. Verified the Claude appendix now states subagent is the Claude default and that the activation bullets still keep explicit inline overrides higher priority.",
"files_changed": [
"megaplan/data/instructions.md",
"megaplan/data/claude_subagent_appendix.md"
],
"commands_run": [
"nl -ba megaplan/data/instructions.md | sed -n '88,125p'",
"nl -ba megaplan/data/claude_subagent_appendix.md | sed -n '1,20p'"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Add Agent Routing documentation to megaplan/data/instructions.md. Insert a ## Agent Routing section after the Orchestration Mode section (after line 95). Document: (a) The agents.<step> config keys and megaplan config set agents.<step> <agent> usage. (b) The default routing table from DEFAULT_AGENT_ROUTING in types.py:256-267: plan\u2192claude, prep\u2192claude, critique\u2192codex, revise\u2192claude, gate\u2192claude, finalize\u2192claude, execute\u2192codex, loop_plan\u2192claude, loop_execute\u2192codex, review\u2192codex. (c) The --phase-model CLI flag for per-run overrides (e.g., --phase-model critique=hermes:openai/gpt-5). Keep it concise \u2014 a table + two command examples.",
"depends_on": [],
"status": "done",
"executor_notes": "Added an Agent Routing section immediately after Orchestration Mode. Verified the documented step-to-agent defaults match DEFAULT_AGENT_ROUTING in types.py and that the section includes both agents. config usage and a --phase-model example.",
"files_changed": [
"megaplan/data/instructions.md"
],
"commands_run": [
"sed -n '240,280p' megaplan/types.py",
"nl -ba megaplan/data/instructions.md | sed -n '96,115p'"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "Regenerate .claude/skills/megaplan.md by concatenating: (the YAML frontmatter from cli.py:288-294, which is ) + the full contents of + + the full contents of . This mirrors what produces at cli.py:314. After writing, do a holistic review confirming the file covers: subagent mode as default for Claude, config commands (config show/set/reset), injection (add-note, kill-and-inject), , step editing, full CLI command list, agent routing section.",
"depends_on": [
"T1",
"T2"
],
"status": "done",
"executor_notes": "Regenerated the Claude skill mirror from the exact concatenation and verified the on-disk mirror with . Added the missing config show/set/reset entries to the shared command list first so the regenerated mirror now covers config commands, agent routing, overrides, injection guidance, step editing, and the Claude subagent default. Note: is gitignored in this repo, so the mirror update is verified from file content rather than git status.",
"files_changed": [
"megaplan/data/instructions.md",
".claude/skills/megaplan.md"
],
"commands_run": [
"sed -n '284,320p' megaplan/cli.py",
"rg -n "config show|config set|config reset|add-note|kill-and-inject|phase-model|step add|step remove|step move|## Agent Routing|## Subagent Mode" .claude/skills/megaplan.md megaplan/data/instructions.md megaplan/data/claude_subagent_appendix.md",
"tmp=tmp" && cp "tmp" .claude/skills/megaplan.md && rm "$tmp"",
"git check-ignore -v .claude/skills/megaplan.md"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Run the full test suite with and verify all tests pass. Key tests to watch: (line ~1655) \u2014 Codex skill must still exclude subagent appendix. (lines ~2182-2210) \u2014 config system tests. If any test fails due to the updated text (e.g., assertions matching old 'inline is the default' wording), fix the assertion to match the new text and re-run. Also grep all source-of-truth files for any remaining 'inline is the default' or 'Inline mode is the default' strings to confirm none remain.",
"depends_on": [
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [
"python -m pytest tests/test_megaplan.py -x -v"
],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"FLAG-001: instructions.md must stay agent-neutral \u2014 no 'subagent is default' in the shared file. Only claude_subagent_appendix.md should declare the default.",
"FLAG-002/003: .claude/skills/megaplan.md is a manual copy, NOT generated by . Regenerate by concatenating _SKILL_HEADER + instructions.md + newline + appendix, matching bundled_global_file('claude_skill.md') at cli.py:314.",
"DEBT install-paths: local setup path (AGENTS.md) correctly gets only instructions.md (no appendix) \u2014 the neutral wording in instructions.md handles this. Do not break this.",
"Codex and Cursor skill files generated by setup --global must NOT mention subagent as default \u2014 they use bundled_global_file('skill.md') which excludes the appendix.",
"The default routing table in types.py:256-267 is the source of truth for agent routing docs \u2014 keep docs in sync with code.",
"No Python code changes should be needed \u2014 the default orchestration mode is conveyed through skill text only."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does instructions.md orchestration section avoid declaring either mode as the default? Does claude_subagent_appendix.md clearly state subagent is the default for Claude?",
"executor_note": "Confirmed instructions.md now describes both orchestration modes without declaring a shared default, and claude_subagent_appendix.md explicitly sets subagent as the Claude default with inline override precedence preserved.",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does the Agent Routing section accurately reflect the DEFAULT_AGENT_ROUTING table from types.py:256-267, and does it document both config and CLI flag?",
"executor_note": "Confirmed the Agent Routing table matches DEFAULT_AGENT_ROUTING exactly and the section documents both megaplan config set agents. and --phase-model step=agent[:model].",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does .claude/skills/megaplan.md exactly match _SKILL_HEADER + instructions.md + newline + claude_subagent_appendix.md? Does it cover subagent mode, config commands, injection, step editing, CLI command list, and agent routing?",
"executor_note": "Confirmed the regenerated matches the canonical header-plus-sources concatenation and now covers the Claude subagent default, config show/set/reset, add-note injection and kill-and-relaunch guidance, overrides, step editing, the shared command list, and the Agent Routing section.",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Do all tests pass? Are there zero remaining instances of 'inline is the default' or 'Inline mode is the default' in any source-of-truth file?",
"executor_note": "",
"verdict": ""
}
],
"meta_commentary": "This is a text-only change \u2014 no Python code modifications needed. The key risk is accidentally putting Claude-specific defaults into the shared instructions.md (FLAG-001). The executor should be precise about which file gets which wording. T1 and T2 can run in parallel since they edit different sections of instructions.md (T1 edits lines 91-95, T2 adds new content after line 95) and T1 also edits the appendix. T3 must wait for both since it concatenates the updated files. The _SKILL_HEADER is a fixed string \u2014 copy it exactly from cli.py:288-294 including the trailing newline. When regenerating the skill file, read the full updated instructions.md and full appendix, don't rely on cached content.",
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Update orchestration defaults in Claude appendix and make instructions.md agent-neutral",
"finalize_task_ids": [
"T1"
]
},
{
"plan_step_summary": "Add agent routing documentation to instructions.md",
"finalize_task_ids": [
"T2"
]
},
{
"plan_step_summary": "Regenerate the project skill file .claude/skills/megaplan.md with holistic review",
"finalize_task_ids": [
"T3"
]
},
{
"plan_step_summary": "Run tests and verify changes",
"finalize_task_ids": [
"T4"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All four plan steps are covered 1:1 by finalize tasks. T1 handles Step 1 (both the appendix edits and the instructions.md neutralization). T2 handles Step 2 (agent routing docs). T3 handles Step 3 (skill file regeneration + holistic review). T4 handles Step 4 (test suite + string verification).",
"coverage_complete": true
}
}
code
Debt watch items (do not make these worse):
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the mobile action-surface plan is technically incorrect for the current component structure. submissioncarouselcard hides footercontent below the md breakpoint (src/components/submissioncarouselcard.tsx:219), while submissionscarouselpage also hides the score panel on mobile via asidecontent={<div classname="hidden md:block">... and passes hideactions to scorepanel at src/pages/submissionscarouselpage.tsx:250-263,347. reusing that pattern for entrypage would leave mobile users with no navigation controls and no scoring controls. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: i checked the sign-in callback path again. submissionslayout already wires usescoring(..., { onrequiresignin: () => pagemachine.dispatch({ type: 'open_sign_in_modal' }) }) at src/pages/submissionslayout.tsx:38-40, and scorepanel still has its own onrequiresignin prop. the revised step 4.2 is acceptable only if it explicitly rewires that prop to pagemachine.dispatch; otherwise removing local modal state would orphan the direct ui callback. the plan hints at this, but it remains easy to misread because the scoring-context callback and the scorepanel prop are separate mechanisms. (flagged 1 times across 1 plans)
[DEBT] are-the-success-criteria-well-prioritized-and-verifiable: are the success criteria well-prioritized and verifiable?: mobile behavior is still under-prioritized relative to the actual risk in this repo. the user constraint specifically mentions the mobile bottom nav, but the only mobile-specific success criterion left is 'mobile scoring ux is coherent' at info level. given that the plan currently removes the working mobile nav, there should be at least a should or must criterion stating that mobile users retain navigation and scoring controls. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: a new critical issue is introduced on mobile. step 4.9 says to remove entrypage's mobile sticky bottom nav and 'use the same footercontent slot in submissioncarouselcard', but src/components/submissioncarouselcard.tsx:217-221 renders footercontent inside classname="hidden md:block". in the current repo, the mobile sticky nav at is the only mobile surface for back/next and the score toggle, so the revised plan would remove working mobile controls and replace them with a slot that is explicitly hidden on phones. (flagged 1 times across 1 plans)
inline is the default
Inline mode is the default
tests/test_megaplan.py
Not yet included in a published release.
_SKILL_HEADER
---\\nname: megaplan\\ndescription: AI agent harness for coordinating Claude and GPT to make and execute extremely robust plans.\\n---\\n\\n
megaplan/data/instructions.md
\\n
megaplan/data/claude_subagent_appendix.md
bundled_global_file('claude_skill.md')
--phase-model
python -m pytest tests/test_megaplan.py -x -v
test_global_setup_codex_no_subagent_appendix
test_config_set_orchestration_mode_*
setup --global
agents.<step>
--phase-model
src/pages/entrypage.tsx:283-340
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: the plan still contradicts itself on mobile behavior. assumption #3 says the browse-mode mobile score toggle will be preserved, but step 4.9 removes the entire mobile sticky nav that contains that toggle in src/pages/entrypage.tsx:314-330. the implementer cannot satisfy both instructions as written. (flagged 1 times across 1 plans)
[DEBT] does-the-change-touch-all-locations-and-supporting-infrastructure: does the change touch all locations and supporting infrastructure?: if the implementation really wants footercontent to carry mobile actions, the plan must also include a supporting change in src/components/submissioncarouselcard.tsx or render a separate mobile control surface outside the card. right now step 4.9 removes the mobile nav but does not list submissioncarouselcard.tsx:217-221 as a place that must change, so the required glue for mobile controls is missing. (flagged 1 times across 1 plans)
[DEBT] execute-phase-contract: early-killed baselines pass truncated output to the execute worker, which may produce lower-quality diagnosis than full output. (flagged 1 times across 1 plans)
[DEBT] find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them: find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: i checked the skip caller path against the real hook behavior and removefromqueue(entryid) looks redundant. scoring.skipentry(entryid) optimistically adds the id to skippedentryids in src/hooks/usescoring.ts:245-249, and usecarouselqueue already reactively filters skipped entries from submissions[] in src/hooks/usecarouselqueue.ts:154-165. calling removefromqueue() immediately afterward is safe, but it duplicates an existing state transition and should be justified as an explicit ux optimization rather than required logic. (flagged 1 times across 1 plans)
[DEBT] find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them: find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: the direct ui sign-in caller is still important here. scorepanel invokes its own onrequiresignin prop when an unauthenticated user interacts with the score ui (src/components/scorepanel.tsx:499-515), which is independent of the scoring hook's internal requireauth() path. the plan should be read as requiring that caller to dispatch open_sign_in_modal; otherwise one caller remains broken even if submitscore() is correctly wired. (flagged 1 times across 1 plans)
[DEBT] handler-boilerplate: _run_worker() pseudocode hardcodes iteration=state['iteration'] but handle_plan and handle_revise use different failure iteration values. (flagged 1 times across 1 plans)
[DEBT] handler-boilerplate: same issue as correctness-1: failure iteration would be wrong for plan/revise handlers. (flagged 1 times across 1 plans)
[DEBT] install-paths: local setup path doesn't expose subagent mode (flagged 1 times across 1 plans)
[DEBT] install-paths: no automated guard to keep the mirror file synchronized with source files (flagged 1 times across 1 plans)
[DEBT] install-paths: local setup test only checks agents.md existence, not content (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: the test-plan details still miss a small but real infrastructure update: the current locationdisplay helper in src/pages/submissionscarouselpage.test.tsx:289-291 only renders location.pathname, so the step 7 requirement to assert { state: { carousel: true, navdirection: 'forward' } } cannot be implemented unless that helper is extended to expose location.state. the same pattern exists in the related page tests. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: there is still no explicit mobile regression test in the plan, even though the revised implementation proposal removes the only current mobile nav/score surface. given the repository's actual component structure, a mobile-focused test or visual verification step is needed to prove controls remain accessible below md. (flagged 1 times across 1 plans)
[DEBT] mobile-ui: mobile ui: removing entrypage's mobile sticky nav and relying on submissioncarouselcard.footercontent would break mobile navigation and scoring because that footer slot is hidden below the md breakpoint. (flagged 1 times across 1 plans)
[DEBT] search-for-related-code-that-handles-the-same-concept-is-the-reported-issue-a-symptom-of-something-broader: search for related code that handles the same concept. is the reported issue a symptom of something broader?: the mobile problem is broader than entrypage. submissionscarouselpage already has a pre-existing mobile gap because its score panel is desktop-only and its footer actions are also hidden on mobile (src/pages/submissionscarouselpage.tsx:250-263,347-354 plus src/components/submissioncarouselcard.tsx:219). the revised plan says entrypage should 'match the carouselpage pattern', which would spread that existing gap into the one page that currently has working mobile controls. (flagged 1 times across 1 plans)
[DEBT] subagent-safeguards: hermes reference safeguard numbers not validated against actual implementation (flagged 1 times across 1 plans)
[DEBT] subagent-safeguards: plan's retry caps (1 phase, 3 execute) may differ from hermes-agent's actual policy (flagged 1 times across 1 plans)
[DEBT] worker-permissions: codex --full-auto flag only triggers for step == 'execute', not 'loop_execute' (flagged 1 times across 1 plans)
[DEBT] worker-permissions: claude --permission-mode bypasspermissions only triggers for step == 'execute', not 'loop_execute' (flagged 1 times across 1 plans)
[DEBT] workflow-state-machine: _plan_prompt() does not read research.json, so replanning from state_researched would ignore research results. (flagged 1 times across 1 plans)
[DEBT] workflow-state-machine: same issue as correctness-2: state_researched → plan path is only partially wired. (flagged 1 times across 1 plans)
[DEBT] workflow-state-machine: _plan_prompt() is a missed location for the state_researched → plan change. (flagged 1 times across 1 plans)
code
Note: User chose auto-approve mode. This execution was not manually reviewed at the gate. Exercise extra caution on destructive operations.
Robustness level: light.
Requirements:
- Execute only the actionable tasks in this batch.
- Treat completed tasks as dependency context, not new work.
- Return structured JSON only.
- Only produce `task_updates` for these tasks: [T3]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC3]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/megaplan/.megaplan/plans/set-up-proper-defaults-and-20260406-2002/execution_batch_2.json` is writable, checkpoint task and sense-check updates there (not `finalize.json`). The harness owns `finalize.json`.
- When verifying changes, run the entire test file or module, not individual test functions. Individual tests miss regressions.
- If a test fails and you determine the failure is pre-existing (fails without your changes too), you MUST still re-run the FULL test suite with your changes applied. Pre-existing failures do not excuse you from verifying all other tests still pass. Never narrow to individual test functions and stop.
- If this batch includes the final verification task, write a short script that reproduces the exact bug described in the task, run it to confirm the fix resolves it, then delete the script.
_SKILL_HEADER
---\\nname: megaplan\\ndescription: AI agent harness for coordinating Claude and GPT to make and execute extremely robust plans.\\n---\\n\\n
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: the plan still contradicts itself on mobile behavior. assumption #3 says the browse-mode mobile score toggle will be preserved, but step 4.9 removes the entire mobile sticky nav that contains that toggle in src/pages/entrypage.tsx:314-330. the implementer cannot satisfy both instructions as written. (flagged 1 times across 1 plans)
[DEBT] does-the-change-touch-all-locations-and-supporting-infrastructure: does the change touch all locations and supporting infrastructure?: if the implementation really wants footercontent to carry mobile actions, the plan must also include a supporting change in src/components/submissioncarouselcard.tsx or render a separate mobile control surface outside the card. right now step 4.9 removes the mobile nav but does not list submissioncarouselcard.tsx:217-221 as a place that must change, so the required glue for mobile controls is missing. (flagged 1 times across 1 plans)
[DEBT] execute-phase-contract: early-killed baselines pass truncated output to the execute worker, which may produce lower-quality diagnosis than full output. (flagged 1 times across 1 plans)
[DEBT] find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them: find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: i checked the skip caller path against the real hook behavior and removefromqueue(entryid) looks redundant. scoring.skipentry(entryid) optimistically adds the id to skippedentryids in src/hooks/usescoring.ts:245-249, and usecarouselqueue already reactively filters skipped entries from submissions[] in src/hooks/usecarouselqueue.ts:154-165. calling removefromqueue() immediately afterward is safe, but it duplicates an existing state transition and should be justified as an explicit ux optimization rather than required logic. (flagged 1 times across 1 plans)
[DEBT] find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them: find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: the direct ui sign-in caller is still important here. scorepanel invokes its own onrequiresignin prop when an unauthenticated user interacts with the score ui (src/components/scorepanel.tsx:499-515), which is independent of the scoring hook's internal requireauth() path. the plan should be read as requiring that caller to dispatch open_sign_in_modal; otherwise one caller remains broken even if submitscore() is correctly wired. (flagged 1 times across 1 plans)
[DEBT] handler-boilerplate: _run_worker() pseudocode hardcodes iteration=state['iteration'] but handle_plan and handle_revise use different failure iteration values. (flagged 1 times across 1 plans)
[DEBT] handler-boilerplate: same issue as correctness-1: failure iteration would be wrong for plan/revise handlers. (flagged 1 times across 1 plans)
[DEBT] install-paths: local setup path doesn't expose subagent mode (flagged 1 times across 1 plans)
[DEBT] install-paths: no automated guard to keep the mirror file synchronized with source files (flagged 1 times across 1 plans)
[DEBT] install-paths: local setup test only checks agents.md existence, not content (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: the test-plan details still miss a small but real infrastructure update: the current locationdisplay helper in src/pages/submissionscarouselpage.test.tsx:289-291 only renders location.pathname, so the step 7 requirement to assert { state: { carousel: true, navdirection: 'forward' } } cannot be implemented unless that helper is extended to expose location.state. the same pattern exists in the related page tests. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: there is still no explicit mobile regression test in the plan, even though the revised implementation proposal removes the only current mobile nav/score surface. given the repository's actual component structure, a mobile-focused test or visual verification step is needed to prove controls remain accessible below md. (flagged 1 times across 1 plans)
[DEBT] mobile-ui: mobile ui: removing entrypage's mobile sticky nav and relying on submissioncarouselcard.footercontent would break mobile navigation and scoring because that footer slot is hidden below the md breakpoint. (flagged 1 times across 1 plans)
[DEBT] search-for-related-code-that-handles-the-same-concept-is-the-reported-issue-a-symptom-of-something-broader: search for related code that handles the same concept. is the reported issue a symptom of something broader?: the mobile problem is broader than entrypage. submissionscarouselpage already has a pre-existing mobile gap because its score panel is desktop-only and its footer actions are also hidden on mobile (src/pages/submissionscarouselpage.tsx:250-263,347-354 plus src/components/submissioncarouselcard.tsx:219). the revised plan says entrypage should 'match the carouselpage pattern', which would spread that existing gap into the one page that currently has working mobile controls. (flagged 1 times across 1 plans)
[DEBT] subagent-safeguards: hermes reference safeguard numbers not validated against actual implementation (flagged 1 times across 1 plans)
[DEBT] subagent-safeguards: plan's retry caps (1 phase, 3 execute) may differ from hermes-agent's actual policy (flagged 1 times across 1 plans)
[DEBT] worker-permissions: codex --full-auto flag only triggers for step == 'execute', not 'loop_execute' (flagged 1 times across 1 plans)
[DEBT] worker-permissions: claude --permission-mode bypasspermissions only triggers for step == 'execute', not 'loop_execute' (flagged 1 times across 1 plans)
[DEBT] workflow-state-machine: _plan_prompt() does not read research.json, so replanning from state_researched would ignore research results. (flagged 1 times across 1 plans)
[DEBT] workflow-state-machine: same issue as correctness-2: state_researched → plan path is only partially wired. (flagged 1 times across 1 plans)
[DEBT] workflow-state-machine: _plan_prompt() is a missed location for the state_researched → plan change. (flagged 1 times across 1 plans)
code
Note: User chose auto-approve mode. This execution was not manually reviewed at the gate. Exercise extra caution on destructive operations.
Robustness level: light.
Requirements:
- Execute only the actionable tasks in this batch.
- Treat completed tasks as dependency context, not new work.
- Return structured JSON only.
- Only produce `task_updates` for these tasks: [T4]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC4]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/megaplan/.megaplan/plans/set-up-proper-defaults-and-20260406-2002/execution_batch_3.json` is writable, checkpoint task and sense-check updates there (not `finalize.json`). The harness owns `finalize.json`.
- When verifying changes, run the entire test file or module, not individual test functions. Individual tests miss regressions.
- If a test fails and you determine the failure is pre-existing (fails without your changes too), you MUST still re-run the FULL test suite with your changes applied. Pre-existing failures do not excuse you from verifying all other tests still pass. Never narrow to individual test functions and stop.
- If this batch includes the final verification task, write a short script that reproduces the exact bug described in the task, run it to confirm the fix resolves it, then delete the script.