Add config-backed defaults for execution.auto_approve (bool) and execution.robustness (enum) so users can set them via 'megaplan config set' instead of passing CLI flags every init. Wire init parser to fall back to get_effective() when flags omitted, extend handle_config to validate bool and enum settable keys (currently only numeric/agents/orchestration.mode supported), and update instructions.md so the harness skips asking execution mode when a default is configured.
User notes and answers:
Q1: No --no-auto-approve flag. Single --auto-approve store_true is fine; per-run opt-out can wait. Q2: Accept case-insensitive {true,false,1,0,yes,no,on,off}. Q3: 'Configured' means the key is explicitly present in raw config.json (not the hard default). The harness should check 'megaplan config show' raw_config, not get_effective, so it can distinguish 'user set false' from 'unset'. handle_init in cli.py should still use get_effective since for the actual value the distinction doesn't matter.
code
Batch framing:
- Execute batch 1 of 4.
- Actionable task IDs for this batch: ['T1', 'T4', 'T5']
- Already completed task IDs available as dependency context: []
Actionable tasks for this batch:
[
{
"id": "T1",
"description": "In megaplan/types.py, add two entries to DEFAULTS: \"execution.auto_approve\": False and \"execution.robustness\": \"standard\". Add new sets next to _SETTABLE_NUMERIC: _SETTABLE_BOOL = {\"execution.auto_approve\"} and _SETTABLE_ENUM = {\"execution.robustness\": ROBUSTNESS_LEVELS}.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Update megaplan/data/instructions.md so the harness inspects raw_config.execution.auto_approve from megaplan config show (not effective_settings) and skips the execution-mode question only when that key is explicitly present. Mention execution.robustness as a settable override in the same paragraph. Add a line under ## Configuration listing both new settable keys.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update megaplan/data/claude_subagent_appendix.md so the launcher contract documents that and a new should expand to empty strings when the corresponding raw_config.execution keys are explicitly set. Update the agent prompt template's startup command (line ~58) to use conditional substitutions with a one-line note above. Keep the descriptive / header lines (~32-33) reporting effective values. Note that users must rerun to refresh installed SKILL.md files.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
]
Assistant
User
Assistant
Working through the CLI and handler paths now. I’m checking the current parser/config branches first so I can patch only the two requested behaviors without disturbing the unrelated in-progress changes already in megaplan/handlers.py.
Assistant
I’ve isolated the two code paths. Next I’m patching handle_config, the init parser defaults, and handle_init fallback logic, then I’ll verify them with whole-module checks or direct CLI/handler probes rather than ad hoc line inspection only.
Assistant
I’ve got the exact branches to change. I’m editing megaplan/cli.py now for config validation and tristate parser defaults, then I’ll patch handle_init in megaplan/handlers.py to pull from get_effective() only when flags are omitted.
Assistant
The code changes are in. I’m verifying behavior now with direct Python probes against the CLI and handler APIs, using temporary config directories so the checks don’t touch the user’s real config.
Assistant
The behavior checks passed: config set now accepts YES for execution.auto_approve, rejects execution.robustness=turbo with the allowed values in the error, the parser now leaves omitted init flags as None, and handle_init falls back to the configured defaults. I’m writing the batch checkpoint and then I’ll return the structured batch result.
Assistant
I’ve covered the main batch checks. I’m running one more direct probe for the defensive robustness clamp and the no-config fallback so this batch doesn’t leave that edge unverified.
Assistant
User
Assistant
Adding the test coverage batch now. I’m reading the existing test modules and current namespace fixtures first so I can extend the right files and flip only the fixtures that are supposed to exercise the new fallback path.
Assistant
I’ve got the test shape. I’m editing the shared Namespace factories to use None defaults for omitted init flags, and I’m adding focused coverage in tests/test_config.py for bool tokens, enum validation, parser tristate behavior, config-backed handle_init, and explicit-flag precedence.
Assistant
The test edits are in. I’m checking the new cases and the shared factories once before running the full edited modules, because the fixture default flip touches a lot of downstream tests.
Assistant
The edited modules are under pytest now. tests/test_config.py has already passed, and tests/test_megaplan.py is well into the run; I’m waiting on the rest before I checkpoint the batch.
Assistant
The edited test modules passed cleanly: 200 passed in 3.89s across tests/test_config.py, tests/test_megaplan.py, and tests/test_handle_review_robustness.py. I’m writing the batch checkpoint now with the test coverage and verification details.
Assistant
User
Assistant
Running the final verification batch now. I’m doing it in the required order: targeted pytest, then the full suite, then a throwaway config-backed-init repro script that I’ll run and delete.
Assistant
The targeted verification passed cleanly: 200 passed. I’m moving to the required full-suite run now; if anything trips there, I’ll treat that as the remaining blocker for this batch.
Assistant
The full suite is underway and has cleared the early modules, including the config and robustness tests. I’m waiting on the rest of the 469-test run before I create the repro script and checkpoint.
Assistant
The suite is still progressing without a failure signal. I’m keeping the run intact rather than polling too aggressively so the final result is from the full pass, not a restarted subset.
Assistant
The full suite passed: 469 passed in 20.78s. I’m on the last required check now: a throwaway repro script that writes a temp config, proves omitted parser flags stay None, calls handle_init, and then gets deleted.
Assistant
The repro script hit a small script bug, not a product failure: I passed name twice into Namespace. I’m fixing the throwaway script and rerunning it, then I’ll delete it as planned.
Assistant
The repro script now passes and has been removed. I’m doing the final cleanup checks, then I’ll write the batch checkpoint and return the structured verification result.
Assistant
{AUTO_APPROVE_FLAG}
{ROBUSTNESS_FLAG}
{AUTO_APPROVE_FLAG} {ROBUSTNESS_FLAG}
{AUTO_APPROVE}
{ROBUSTNESS}
megaplan setup --force
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 DEFAULTS now contain both execution.auto_approve and execution.robustness, and are _SETTABLE_BOOL/_SETTABLE_ENUM defined alongside _SETTABLE_NUMERIC?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Does instructions.md tell the harness to inspect raw_config (not effective_settings), and does the Configuration section list the two new keys?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Does claude_subagent_appendix.md document the conditional flag substitution and use empty-string expansion for {AUTO_APPROVE_FLAG}/{ROBUSTNESS_FLAG} when raw_config.execution sets them? Does the descriptive header still report effective values?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "In megaplan/types.py, add two entries to DEFAULTS: \"execution.auto_approve\": False and \"execution.robustness\": \"standard\". Add new sets next to _SETTABLE_NUMERIC: _SETTABLE_BOOL = {\"execution.auto_approve\"} and _SETTABLE_ENUM = {\"execution.robustness\": ROBUSTNESS_LEVELS}.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "In megaplan/cli.py, import _SETTABLE_BOOL and _SETTABLE_ENUM. Extend valid_keys in handle_config to include sorted(_SETTABLE_BOOL) and sorted(_SETTABLE_ENUM). Add bool branch using {true,1,yes,on}/{false,0,no,off} (case-insensitive) raising CliError("invalid_args", ...) on bad token; add enum branch validating against _SETTABLE_ENUM[key], raising CliError listing allowed values. Confirm save_config + return payload still works for bool/str.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "In megaplan/cli.py init parser, set --auto-approve to action=\"store_true\", default=None and --robustness to choices=list(ROBUSTNESS_LEVELS), default=None. In megaplan/handlers.py handle_init, fall back to get_effective("execution","robustness")/("execution","auto_approve") when args are None; clamp robustness to ROBUSTNESS_LEVELS, defaulting to "standard" if invalid; coerce auto_approve to bool.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Update megaplan/data/instructions.md so the harness inspects raw_config.execution.auto_approve from megaplan config show (not effective_settings) and skips the execution-mode question only when that key is explicitly present. Mention execution.robustness as a settable override in the same paragraph. Add a line under ## Configuration listing both new settable keys.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update megaplan/data/claude_subagent_appendix.md so the launcher contract documents that {AUTO_APPROVE_FLAG} and a new {ROBUSTNESS_FLAG} should expand to empty strings when the corresponding raw_config.execution keys are explicitly set. Update the agent prompt template's startup command (line ~58) to use {AUTO_APPROVE_FLAG} {ROBUSTNESS_FLAG} conditional substitutions with a one-line note above. Keep the descriptive {AUTO_APPROVE} / {ROBUSTNESS} header lines (~32-33) reporting effective values. Note that users must rerun megaplan setup --force to refresh installed SKILL.md files.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Add tests: (a) in tests/test_config.py, exercise handle_config set for execution.auto_approve with case-insensitive true/false/1/0/yes/no/on/off and an invalid token raising CliError; for execution.robustness with light/standard/heavy and an invalid value (turbo) raising CliError listing valid values. (b) Parser-level test using from megaplan.cli import build_parser: assert omitted flags yield auto_approve is None and robustness is None, and explicit --auto-approve --robustness heavy yield True/"heavy". (c) handle_init test where config.json sets execution.auto_approve=true and execution.robustness=heavy and Namespace omits both \u2014 assert resolved state['config'] reports heavy/true. (d) Precedence test: explicit Namespace(robustness="light") beats configured heavy. (e) Audit tests/test_megaplan.py:44-63 and tests/test_handle_review_robustness.py:24-43 \u2014 switch any Namespace fixtures that rely on implicit defaults to use auto_approve=None, robustness=None so they exercise the fallback path.",
"depends_on": [
"T2",
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Run tests and verify the fix. First run targeted: pytest tests/test_config.py tests/test_megaplan.py tests/test_handle_review_robustness.py -x. Then full suite: pytest -x. Also write a short throwaway script that (1) writes a temp config.json with execution.auto_approve=true and execution.robustness=heavy, (2) calls build_parser().parse_args(["init","--project-dir",,"idea"]) and confirms None/None, (3) calls handle_init with that Namespace and asserts the response payload reports auto_approve=true, robustness='heavy'. Run it, confirm it passes, then delete it. If any test fails, fix root cause and rerun until green.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"Init parser must use default=None for BOTH --auto-approve and --robustness \u2014 without this the entire feature is silently broken (FLAG-002). Verify via parser-level test, not just handler test.",
"Claude subagent appendix path (FLAG-001): if claude_subagent_appendix.md still hardcodes --auto-approve/--robustness, the Claude subagent path overrides config defaults even when other code is correct. Both the launcher contract section AND the agent prompt template startup command must be updated.",
"Bool token set is fixed: case-insensitive {true,false,1,0,yes,no,on,off}. Any other value must raise CliError listing the valid tokens. Don't silently coerce.",
"Harness instructions must read raw_config.execution.auto_approve (not effective_settings) so the harness can distinguish 'user explicitly set false' from 'unset'. handle_init itself still uses get_effective \u2014 that's intentional.",
"get_effective requires the key to live in DEFAULTS \u2014 Step 1 must land before Step 3 or fallback raises.",
"Existing Namespace-based test fixtures may pass auto_approve=False/robustness='standard' explicitly; those still work but should be flipped to None where they intend to test default behavior so the fallback path is exercised.",
"No --no-auto-approve flag (per user Q1). Resist adding negation.",
"execution.robustness invalid in config should fall back to 'standard' in handle_init (defensive clamp), since config can be hand-edited.",
"Don't break behavior when no config file exists: must still yield robustness=standard, auto_approve=false."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does DEFAULTS now contain both execution.auto_approve and execution.robustness, and are _SETTABLE_BOOL/_SETTABLE_ENUM defined alongside _SETTABLE_NUMERIC?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does megaplan config set execution.auto_approve YES persist Python True, and does megaplan config set execution.robustness turbo raise CliError listing light/standard/heavy? Are both keys in valid_keys?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does build_parser().parse_args([\"init\",\"--project-dir\",\"/tmp\",\"idea\"]) return auto_approve=None and robustness=None? Does handle_init then fall back to get_effective?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Does instructions.md tell the harness to inspect raw_config (not effective_settings), and does the Configuration section list the two new keys?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Does claude_subagent_appendix.md document the conditional flag substitution and use empty-string expansion for {AUTO_APPROVE_FLAG}/{ROBUSTNESS_FLAG} when raw_config.execution sets them? Does the descriptive header still report effective values?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Do the new tests cover (a) bool case-insensitive tokens + invalid, (b) enum valid + invalid, (c) parser-level None for omitted flags, (d) handler fallback to config, (e) explicit-flag precedence over config?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Does the full pytest suite pass, and did the throwaway repro script confirm config-only init resolves to heavy/true?",
"executor_note": "",
"verdict": ""
}
],
"meta_commentary": "Land Step 1 (types.py) first \u2014 every other code change depends on get_effective finding the new keys in DEFAULTS. Steps 2 and 3 are independent after T1 and can be implemented back-to-back. Steps 4 and 5 are pure markdown and can land in parallel with code. The FLAG-002 risk is real: it is easy to "fix" handle_init while leaving the parser still defaulting auto_approve to False \u2014 always include a parser-level test using build_parser(). For FLAG-001, remember that claude_subagent_appendix.md is appended to instructions.md at install time via bundled_global_file; touching only one of the two markdown files leaves the Claude subagent path broken. Watch out for the existing Namespace-based test fixtures in tests/test_megaplan.py and tests/test_handle_review_robustness.py \u2014 they construct Namespace directly so the parser defaults don't apply; you only need to update the ones that rely on implicit default semantics. Bool parsing tokens are exactly {true,false,1,0,yes,no,on,off} case-insensitive \u2014 anything else must raise. No --no-auto-approve flag per user Q1.",
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Step 1: Register new settable keys in types.py (DEFAULTS + _SETTABLE_BOOL/_SETTABLE_ENUM)",
"finalize_task_ids": [
"T1"
]
},
{
"plan_step_summary": "Step 2: Teach handle_config to set bool and enum keys with validation",
"finalize_task_ids": [
"T2"
]
},
{
"plan_step_summary": "Step 3: Make init parser tristate and have handle_init fall back to get_effective",
"finalize_task_ids": [
"T3"
]
},
{
"plan_step_summary": "Step 4: Update instructions.md to read raw_config and document new settable keys",
"finalize_task_ids": [
"T4"
]
},
{
"plan_step_summary": "Step 5: Update claude_subagent_appendix.md to omit flags when config sets them",
"finalize_task_ids": [
"T5"
]
},
{
"plan_step_summary": "Step 6: Tests \u2014 config bool/enum, parser-level None, handle_init fallback, precedence, fixture audit",
"finalize_task_ids": [
"T6"
]
},
{
"plan_step_summary": "Validation: targeted + full pytest suite, plus manual smoke",
"finalize_task_ids": [
"T7"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All seven plan sections mapped to tasks. The validation/manual-smoke section is folded into T7 (with the throwaway repro script standing in for the manual smoke).",
"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-proposed-changes-technically-correct: are the proposed changes technically correct?: checked the new diff-helper proposal against the repo's existing execution-evidence semantics. validate_execution_evidence() in megaplan/evaluation.py:109-175 uses git status --short, so untracked files count as real changed files today, but step 3 proposes collect_git_diff_patch(project_dir) via git diff head; by git behavior that will not include untracked files, so heavy review could miss exactly the newly created files that execute and review already treat as part of the patch. (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] criteria-prompt: criteria prompt: v3 replaces _review_prompt() in heavy mode with a new heavy_criteria_review_prompt, so the plan no longer follows the brief's explicit requirement that _review_prompt() remain the heavy-mode criteria_verdict check. (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] 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?: checked step 7 against the brief's explicit prompt-builder requirement. the revision fixes the old context leak by introducing a brand-new heavy_criteria_review_prompt, but the brief said _review_prompt() should stay as-is and still run as the criteria_verdict check in heavy mode; v3 solves the problem by replacing that heavy-mode criteria path instead of reusing the baseline review prompt, which is still a material divergence from the requested design. (flagged 1 times across 1 plans)
[DEBT] diff-capture: diff capture: the proposed collect_git_diff_patch(project_dir) helper uses git diff head, which will miss untracked files even though the existing execution-evidence path already treats untracked files as real changed work. (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, T4, T5]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC1, SC4, SC5]
- 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/add-config-backed-defaults-20260408-0303/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":"Implemented batch 1 only. Added the new execution defaults/settable key metadata in megaplan/types.py, updated megaplan/data/instructions.md to use raw_config.execution.auto_approve semantics and document both new config keys, updated megaplan/data/claude_subagent_appendix.md for conditional {AUTO_APPROVE_FLAG} / {ROBUSTNESS_FLAG} expansion plus the megaplan setup --force refresh note, and wrote the batch checkpoint to .megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_1.json. Verification in this batch was by inspecting the edited source sections; no tests were run.","files_changed":["megaplan/types.py","megaplan/data/instructions.md","megaplan/data/claude_subagent_appendix.md",".megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_1.json"],"commands_run":["pwd && git status --short","rg -n "DEFAULTS|_SETTABLE_NUMERIC|ROBUSTNESS_LEVELS" megaplan/types.py megaplan/data/instructions.md megaplan/data/claude_subagent_appendix.md","sed -n '250,330p' megaplan/types.py","sed -n '1,260p' megaplan/data/instructions.md","sed -n '1,220p' megaplan/data/claude_subagent_appendix.md","rg -n "effective_settings|raw_config|AUTO_APPROVE_FLAG|ROBUSTNESS_FLAG|setup --force|--robustness" megaplan/data/instructions.md megaplan/data/claude_subagent_appendix.md","nl -ba megaplan/data/claude_subagent_appendix.md | sed -n '1,120p'","sed -n '280,325p' megaplan/types.py","sed -n '1,40p' megaplan/data/instructions.md && printf '\n---\n' && sed -n '118,145p' megaplan/data/instructions.md","sed -n '10,75p' megaplan/data/claude_subagent_appendix.md","sed -n '108,132p' megaplan/data/instructions.md","rg -n "## Configuration|Settable execution keys" megaplan/data/instructions.md","sed -n '88,98p' megaplan/data/instructions.md","rg -n "effective_settings|raw_config\.execution\.auto_approve|raw_config\.execution\.robustness|ROBUSTNESS_FLAG|AUTO_APPROVE_FLAG" megaplan/data/instructions.md megaplan/data/claude_subagent_appendix.md","test -d /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303 && test -w /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303 && echo writable || echo not_writable","if [ -f /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_1.json ]; then echo exists; sed -n '1,220p' /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_1.json; else echo missing; fi"],"deviations":[],"task_updates":[{"task_id":"T1","status":"done","executor_notes":"Verified by inspecting megaplan/types.py that DEFAULTS now contains execution.auto_approve=False and execution.robustness=\"standard\", and that _SETTABLE_BOOL / _SETTABLE_ENUM are defined alongside _SETTABLE_NUMERIC.","files_changed":["megaplan/types.py"],"commands_run":["sed -n '280,325p' megaplan/types.py"]},{"task_id":"T4","status":"done","executor_notes":"Verified by inspecting megaplan/data/instructions.md that the harness guidance now reads raw_config.execution.auto_approve, skips the execution-mode question only when that raw key is explicitly present, mentions execution.robustness as a settable override, and lists both keys under ## Configuration.","files_changed":["megaplan/data/instructions.md"],"commands_run":["sed -n '1,40p' megaplan/data/instructions.md","sed -n '88,98p' megaplan/data/instructions.md","rg -n "effective_settings|raw_config\.execution\.auto_approve|raw_config\.execution\.robustness" megaplan/data/instructions.md"]},{"task_id":"T5","status":"done","executor_notes":"Verified by inspecting megaplan/data/claude_subagent_appendix.md that the launcher contract documents empty-string expansion for {AUTO_APPROVE_FLAG} and {ROBUSTNESS_FLAG} when the corresponding raw config keys are explicitly set, the startup command now uses both placeholders, the descriptive header still reports effective {AUTO_APPROVE} / {ROBUSTNESS} values, and the file now notes rerunning megaplan setup --force.","files_changed":["megaplan/data/claude_subagent_appendix.md"],"commands_run":["sed -n '10,75p' megaplan/data/claude_subagent_appendix.md","rg -n "raw_config\.execution\.auto_approve|raw_config\.execution\.robustness|AUTO_APPROVE_FLAG|ROBUSTNESS_FLAG|setup --force" megaplan/data/claude_subagent_appendix.md"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC1","executor_note":"Confirmed in megaplan/types.py that both execution defaults were added to DEFAULTS and _SETTABLE_BOOL / _SETTABLE_ENUM now sit next to _SETTABLE_NUMERIC."},{"sense_check_id":"SC4","executor_note":"Confirmed in megaplan/data/instructions.md that the harness is told to inspect raw_config.execution.auto_approve rather than effective settings, and that the Configuration section lists both new execution keys."},{"sense_check_id":"SC5","executor_note":"Confirmed in megaplan/data/claude_subagent_appendix.md that {AUTO_APPROVE_FLAG} / {ROBUSTNESS_FLAG} are documented as conditional empty-string substitutions when raw config explicitly sets those keys, while the descriptive header still reports effective execution mode and robustness."}]}
Add config-backed defaults for execution.auto_approve (bool) and execution.robustness (enum) so users can set them via 'megaplan config set' instead of passing CLI flags every init. Wire init parser to fall back to get_effective() when flags omitted, extend handle_config to validate bool and enum settable keys (currently only numeric/agents/orchestration.mode supported), and update instructions.md so the harness skips asking execution mode when a default is configured.
User notes and answers:
Q1: No --no-auto-approve flag. Single --auto-approve store_true is fine; per-run opt-out can wait. Q2: Accept case-insensitive {true,false,1,0,yes,no,on,off}. Q3: 'Configured' means the key is explicitly present in raw config.json (not the hard default). The harness should check 'megaplan config show' raw_config, not get_effective, so it can distinguish 'user set false' from 'unset'. handle_init in cli.py should still use get_effective since for the actual value the distinction doesn't matter.
code
Batch framing:
- Execute batch 2 of 4.
- Actionable task IDs for this batch: ['T2', 'T3']
- Already completed task IDs available as dependency context: ['T1', 'T4', 'T5']
Actionable tasks for this batch:
[
{
"id": "T2",
"description": "In megaplan/cli.py, import _SETTABLE_BOOL and _SETTABLE_ENUM. Extend valid_keys in handle_config to include sorted(_SETTABLE_BOOL) and sorted(_SETTABLE_ENUM). Add bool branch using {true,1,yes,on}/{false,0,no,off} (case-insensitive) raising CliError("invalid_args", ...) on bad token; add enum branch validating against _SETTABLE_ENUM[key], raising CliError listing allowed values. Confirm save_config + return payload still works for bool/str.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "In megaplan/cli.py init parser, set --auto-approve to action=\"store_true\", default=None and --robustness to choices=list(ROBUSTNESS_LEVELS), default=None. In megaplan/handlers.py handle_init, fall back to get_effective("execution","robustness")/("execution","auto_approve") when args are None; clamp robustness to ROBUSTNESS_LEVELS, defaulting to "standard" if invalid; coerce auto_approve to bool.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"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": "In megaplan/types.py, add two entries to DEFAULTS: \"execution.auto_approve\": False and \"execution.robustness\": \"standard\". Add new sets next to _SETTABLE_NUMERIC: _SETTABLE_BOOL = {\"execution.auto_approve\"} and _SETTABLE_ENUM = {\"execution.robustness\": ROBUSTNESS_LEVELS}.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting megaplan/types.py that DEFAULTS now contains execution.auto_approve=False and execution.robustness=\"standard\", and that _SETTABLE_BOOL / _SETTABLE_ENUM are defined alongside _SETTABLE_NUMERIC.",
"files_changed": [
"megaplan/types.py"
],
"commands_run": [
"sed -n '280,325p' megaplan/types.py"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Update megaplan/data/instructions.md so the harness inspects raw_config.execution.auto_approve from megaplan config show (not effective_settings) and skips the execution-mode question only when that key is explicitly present. Mention execution.robustness as a settable override in the same paragraph. Add a line under ## Configuration listing both new settable keys.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting megaplan/data/instructions.md that the harness guidance now reads raw_config.execution.auto_approve, skips the execution-mode question only when that raw key is explicitly present, mentions execution.robustness as a settable override, and lists both keys under ## Configuration.",
"files_changed": [
"megaplan/data/instructions.md"
],
"commands_run": [
"sed -n '1,40p' megaplan/data/instructions.md",
"sed -n '88,98p' megaplan/data/instructions.md",
"rg -n "effective_settings|raw_config\.execution\.auto_approve|raw_config\.execution\.robustness" megaplan/data/instructions.md"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update megaplan/data/claude_subagent_appendix.md so the launcher contract documents that {AUTO_APPROVE_FLAG} and a new {ROBUSTNESS_FLAG} should expand to empty strings when the corresponding raw_config.execution keys are explicitly set. Update the agent prompt template's startup command (line ~58) to use {AUTO_APPROVE_FLAG} {ROBUSTNESS_FLAG} conditional substitutions with a one-line note above. Keep the descriptive {AUTO_APPROVE} / {ROBUSTNESS} header lines (~32-33) reporting effective values. Note that users must rerun megaplan setup --force to refresh installed SKILL.md files.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting megaplan/data/claude_subagent_appendix.md that the launcher contract documents empty-string expansion for and when the corresponding raw config keys are explicitly set, the startup command now uses both placeholders, the descriptive header still reports effective / values, and the file now notes rerunning .",
"files_changed": [
"megaplan/data/claude_subagent_appendix.md"
],
"commands_run": [
"sed -n '10,75p' megaplan/data/claude_subagent_appendix.md",
"rg -n "raw_config\.execution\.auto_approve|raw_config\.execution\.robustness|AUTO_APPROVE_FLAG|ROBUSTNESS_FLAG|setup --force" megaplan/data/claude_subagent_appendix.md"
],
"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/add-config-backed-defaults-20260408-0303/execution_batch_1.json",
"Advisory quality: code changes lacked test updates: megaplan/types.py.",
"Advisory audit finding: Git status shows changed files not claimed by any task: megaplan/_core/init.py, megaplan/_core/io.py, megaplan/checks.py, megaplan/flags.py, megaplan/handlers.py, megaplan/parallel_review.py, megaplan/prompts/init.py, megaplan/prompts/review.py, megaplan/review_checks.py, megaplan/review_mechanical.py, megaplan/schemas.py, megaplan/workers.py, plan.md, tests/test_checks.py, tests/test_handle_review_robustness.py, tests/test_io_git_patch.py, tests/test_parallel_critique.py, tests/test_parallel_review.py, tests/test_prompts.py, tests/test_review_checks.py, tests/test_review_mechanical.py, tests/test_schemas.py",
"Advisory audit finding: Sense check SC2 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC3 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC6 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC7 is missing an executor acknowledgment."
]
code
Batch-scoped sense checks:
[
{
"id": "SC2",
"task_id": "T2",
"question": "Does megaplan config set execution.auto_approve YES persist Python True, and does megaplan config set execution.robustness turbo raise CliError listing light/standard/heavy? Are both keys in valid_keys?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does build_parser().parse_args([\"init\",\"--project-dir\",\"/tmp\",\"idea\"]) return auto_approve=None and robustness=None? Does handle_init then fall back to get_effective?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "In megaplan/types.py, add two entries to DEFAULTS: \"execution.auto_approve\": False and \"execution.robustness\": \"standard\". Add new sets next to _SETTABLE_NUMERIC: _SETTABLE_BOOL = {\"execution.auto_approve\"} and _SETTABLE_ENUM = {\"execution.robustness\": ROBUSTNESS_LEVELS}.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting megaplan/types.py that DEFAULTS now contains execution.auto_approve=False and execution.robustness=\"standard\", and that _SETTABLE_BOOL / _SETTABLE_ENUM are defined alongside _SETTABLE_NUMERIC.",
"files_changed": [
"megaplan/types.py"
],
"commands_run": [
"sed -n '280,325p' megaplan/types.py"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "In megaplan/cli.py, import _SETTABLE_BOOL and _SETTABLE_ENUM. Extend valid_keys in handle_config to include sorted(_SETTABLE_BOOL) and sorted(_SETTABLE_ENUM). Add bool branch using {true,1,yes,on}/{false,0,no,off} (case-insensitive) raising CliError("invalid_args", ...) on bad token; add enum branch validating against _SETTABLE_ENUM[key], raising CliError listing allowed values. Confirm save_config + return payload still works for bool/str.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "In megaplan/cli.py init parser, set --auto-approve to action=\"store_true\", default=None and --robustness to choices=list(ROBUSTNESS_LEVELS), default=None. In megaplan/handlers.py handle_init, fall back to get_effective("execution","robustness")/("execution","auto_approve") when args are None; clamp robustness to ROBUSTNESS_LEVELS, defaulting to "standard" if invalid; coerce auto_approve to bool.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Update megaplan/data/instructions.md so the harness inspects raw_config.execution.auto_approve from megaplan config show (not effective_settings) and skips the execution-mode question only when that key is explicitly present. Mention execution.robustness as a settable override in the same paragraph. Add a line under ## Configuration listing both new settable keys.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting megaplan/data/instructions.md that the harness guidance now reads raw_config.execution.auto_approve, skips the execution-mode question only when that raw key is explicitly present, mentions execution.robustness as a settable override, and lists both keys under .",
"files_changed": [
"megaplan/data/instructions.md"
],
"commands_run": [
"sed -n '1,40p' megaplan/data/instructions.md",
"sed -n '88,98p' megaplan/data/instructions.md",
"rg -n "effective_settings|raw_config\.execution\.auto_approve|raw_config\.execution\.robustness" megaplan/data/instructions.md"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update megaplan/data/claude_subagent_appendix.md so the launcher contract documents that and a new should expand to empty strings when the corresponding raw_config.execution keys are explicitly set. Update the agent prompt template's startup command (line ~58) to use conditional substitutions with a one-line note above. Keep the descriptive / header lines (~32-33) reporting effective values. Note that users must rerun to refresh installed SKILL.md files.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting that the launcher contract documents empty-string expansion for and when the corresponding raw config keys are explicitly set, the startup command now uses both placeholders, the descriptive header still reports effective / values, and the file now notes rerunning .",
"files_changed": [
"megaplan/data/claude_subagent_appendix.md"
],
"commands_run": [
"sed -n '10,75p' megaplan/data/claude_subagent_appendix.md",
"rg -n "raw_config\.execution\.auto_approve|raw_config\.execution\.robustness|AUTO_APPROVE_FLAG|ROBUSTNESS_FLAG|setup --force" megaplan/data/claude_subagent_appendix.md"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Add tests: (a) in tests/test_config.py, exercise handle_config set for execution.auto_approve with case-insensitive true/false/1/0/yes/no/on/off and an invalid token raising CliError; for execution.robustness with light/standard/heavy and an invalid value () raising CliError listing valid values. (b) Parser-level test using : assert omitted flags yield and , and explicit yield True/"heavy". (c) handle_init test where config.json sets execution.auto_approve=true and execution.robustness=heavy and Namespace omits both \u2014 assert resolved state['config'] reports heavy/true. (d) Precedence test: explicit Namespace(robustness="light") beats configured heavy. (e) Audit tests/test_megaplan.py:44-63 and tests/test_handle_review_robustness.py:24-43 \u2014 switch any Namespace fixtures that rely on implicit defaults to use so they exercise the fallback path.",
"depends_on": [
"T2",
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Run tests and verify the fix. First run targeted: . Then full suite: . Also write a short throwaway script that (1) writes a temp config.json with execution.auto_approve=true and execution.robustness=heavy, (2) calls build_parser().parse_args(["init","--project-dir",,"idea"]) and confirms None/None, (3) calls handle_init with that Namespace and asserts the response payload reports auto_approve=true, robustness='heavy'. Run it, confirm it passes, then delete it. If any test fails, fix root cause and rerun until green.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"Init parser must use for BOTH --auto-approve and --robustness \u2014 without this the entire feature is silently broken (FLAG-002). Verify via parser-level test, not just handler test.",
"Claude subagent appendix path (FLAG-001): if claude_subagent_appendix.md still hardcodes --auto-approve/--robustness, the Claude subagent path overrides config defaults even when other code is correct. Both the launcher contract section AND the agent prompt template startup command must be updated.",
"Bool token set is fixed: case-insensitive {true,false,1,0,yes,no,on,off}. Any other value must raise CliError listing the valid tokens. Don't silently coerce.",
"Harness instructions must read (not effective_settings) so the harness can distinguish 'user explicitly set false' from 'unset'. handle_init itself still uses get_effective \u2014 that's intentional.",
" requires the key to live in DEFAULTS \u2014 Step 1 must land before Step 3 or fallback raises.",
"Existing Namespace-based test fixtures may pass auto_approve=False/robustness='standard' explicitly; those still work but should be flipped to None where they intend to test default behavior so the fallback path is exercised.",
"No --no-auto-approve flag (per user Q1). Resist adding negation.",
" invalid in config should fall back to 'standard' in handle_init (defensive clamp), since config can be hand-edited.",
"Don't break behavior when no config file exists: must still yield robustness=standard, auto_approve=false."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does DEFAULTS now contain both and , and are / defined alongside ?",
"executor_note": "Confirmed in that both execution defaults were added to and / now sit next to .",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does persist Python , and does raise CliError listing light/standard/heavy? Are both keys in valid_keys?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does return auto_approve=None and robustness=None? Does handle_init then fall back to get_effective?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Does instructions.md tell the harness to inspect raw_config (not effective_settings), and does the Configuration section list the two new keys?",
"executor_note": "Confirmed in that the harness is told to inspect rather than effective settings, and that the Configuration section lists both new execution keys.",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Does claude_subagent_appendix.md document the conditional flag substitution and use empty-string expansion for {AUTO_APPROVE_FLAG}/{ROBUSTNESS_FLAG} when raw_config.execution sets them? Does the descriptive header still report effective values?",
"executor_note": "Confirmed in that / are documented as conditional empty-string substitutions when raw config explicitly sets those keys, while the descriptive header still reports effective execution mode and robustness.",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Do the new tests cover (a) bool case-insensitive tokens + invalid, (b) enum valid + invalid, (c) parser-level None for omitted flags, (d) handler fallback to config, (e) explicit-flag precedence over config?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Does the full pytest suite pass, and did the throwaway repro script confirm config-only init resolves to heavy/true?",
"executor_note": "",
"verdict": ""
}
],
"meta_commentary": "Land Step 1 (types.py) first \u2014 every other code change depends on finding the new keys in DEFAULTS. Steps 2 and 3 are independent after T1 and can be implemented back-to-back. Steps 4 and 5 are pure markdown and can land in parallel with code. The FLAG-002 risk is real: it is easy to "fix" handle_init while leaving the parser still defaulting auto_approve to False \u2014 always include a parser-level test using build_parser(). For FLAG-001, remember that claude_subagent_appendix.md is appended to instructions.md at install time via bundled_global_file; touching only one of the two markdown files leaves the Claude subagent path broken. Watch out for the existing Namespace-based test fixtures in tests/test_megaplan.py and tests/test_handle_review_robustness.py \u2014 they construct Namespace directly so the parser defaults don't apply; you only need to update the ones that rely on implicit default semantics. Bool parsing tokens are exactly {true,false,1,0,yes,no,on,off} case-insensitive \u2014 anything else must raise. No --no-auto-approve flag per user Q1.",
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Step 1: Register new settable keys in types.py (DEFAULTS + _SETTABLE_BOOL/_SETTABLE_ENUM)",
"finalize_task_ids": [
"T1"
]
},
{
"plan_step_summary": "Step 2: Teach handle_config to set bool and enum keys with validation",
"finalize_task_ids": [
"T2"
]
},
{
"plan_step_summary": "Step 3: Make init parser tristate and have handle_init fall back to get_effective",
"finalize_task_ids": [
"T3"
]
},
{
"plan_step_summary": "Step 4: Update instructions.md to read raw_config and document new settable keys",
"finalize_task_ids": [
"T4"
]
},
{
"plan_step_summary": "Step 5: Update claude_subagent_appendix.md to omit flags when config sets them",
"finalize_task_ids": [
"T5"
]
},
{
"plan_step_summary": "Step 6: Tests \u2014 config bool/enum, parser-level None, handle_init fallback, precedence, fixture audit",
"finalize_task_ids": [
"T6"
]
},
{
"plan_step_summary": "Validation: targeted + full pytest suite, plus manual smoke",
"finalize_task_ids": [
"T7"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All seven plan sections mapped to tasks. The validation/manual-smoke section is folded into T7 (with the throwaway repro script standing in for the manual smoke).",
"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-proposed-changes-technically-correct: are the proposed changes technically correct?: checked the new diff-helper proposal against the repo's existing execution-evidence semantics. validate_execution_evidence() in megaplan/evaluation.py:109-175 uses git status --short, so untracked files count as real changed files today, but step 3 proposes collect_git_diff_patch(project_dir) via git diff head; by git behavior that will not include untracked files, so heavy review could miss exactly the newly created files that execute and review already treat as part of the patch. (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] criteria-prompt: criteria prompt: v3 replaces _review_prompt() in heavy mode with a new heavy_criteria_review_prompt, so the plan no longer follows the brief's explicit requirement that _review_prompt() remain the heavy-mode criteria_verdict check. (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] 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?: checked step 7 against the brief's explicit prompt-builder requirement. the revision fixes the old context leak by introducing a brand-new heavy_criteria_review_prompt, but the brief said _review_prompt() should stay as-is and still run as the criteria_verdict check in heavy mode; v3 solves the problem by replacing that heavy-mode criteria path instead of reusing the baseline review prompt, which is still a material divergence from the requested design. (flagged 1 times across 1 plans)
[DEBT] diff-capture: diff capture: the proposed collect_git_diff_patch(project_dir) helper uses git diff head, which will miss untracked files even though the existing execution-evidence path already treats untracked files as real changed work. (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: [T2, T3]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC2, 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/add-config-backed-defaults-20260408-0303/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.
{"output":"Batch 2 complete: T2 and T3 are implemented. megaplan/cli.py now accepts config-backed bool and enum keys for config set, and init now leaves omitted --auto-approve / --robustness as None so megaplan/handlers.py can fall back to get_effective(). Verification passed via python -m compileall and direct Python probes using temporary XDG config directories, including bool persistence, enum rejection messaging, parser tristate behavior, configured fallback, invalid-robustness clamp to standard, and no-config fallback to standard / false. Batch checkpoint was written to .megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_2.json.","files_changed":["megaplan/cli.py","megaplan/handlers.py",".megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_2.json"],"commands_run":["git status --short megaplan/cli.py megaplan/handlers.py megaplan/types.py","rg -n "handle_config|auto-approve|robustness|ROBUSTNESS_LEVELS|_SETTABLE_NUMERIC|orchestration.mode|config set" megaplan/cli.py megaplan/handlers.py","sed -n '1,260p' megaplan/cli.py","sed -n '1,260p' megaplan/handlers.py","sed -n '395,490p' megaplan/cli.py","sed -n '585,675p' megaplan/handlers.py","sed -n '450,510p' megaplan/cli.py","rg -n "def load_config|def save_config|def config_dir|def get_effective" megaplan/_core -g '*.py'","sed -n '1,240p' megaplan/_core/io.py","sed -n '1,240p' megaplan/_core/init.py","sed -n '240,290p' megaplan/_core/io.py","sed -n '1,30p' megaplan/cli.py && printf '\n---\n' && sed -n '401,470p' megaplan/cli.py && printf '\n---\n' && sed -n '485,505p' megaplan/cli.py","sed -n '592,610p' megaplan/handlers.py","python -m compileall megaplan/cli.py megaplan/handlers.py","TMP_XDG=(mktemp -d /tmp/megaplan-batch2-config-XXXXXX) && XDG_CONFIG_HOME=\"TMP_XDG" python - <<'PY' ... PY\nrm -rf "TMPXDG"¨,"TMPXDG=(mktemp -d /tmp/megaplan-batch2-config-extra-XXXXXX) && XDG_CONFIG_HOME="TMP_XDG\" python - <<'PY' ... PY\nrm -rf \"TMP_XDG"","test -d /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303 && test -w /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303 && echo writable || echo not_writable","if [ -f /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_2.json ]; then echo exists; sed -n '1,220p' /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_2.json; else echo missing; fi"],"deviations":[],"task_updates":[{"task_id":"T2","status":"done","executor_notes":"Verified in megaplan/cli.py that handle_config now imports _SETTABLE_BOOL and _SETTABLE_ENUM, includes both key sets in valid_keys, accepts case-insensitive bool tokens for execution.auto_approve, rejects invalid bool tokens with CliError(\"invalid_args\", ...), validates execution.robustness against light, standard, heavy, and persists/returns saved bool and string values through the existing config-set payload.","files_changed":["megaplan/cli.py"],"commands_run":["python -m compileall megaplan/cli.py megaplan/handlers.py","TMP_XDG=(mktemp -d /tmp/megaplan-batch2-config-XXXXXX) && XDG_CONFIG_HOME=\"TMP_XDG" python - <<'PY' ... PY\nrm -rf "TMP_XDG\""]},{"task_id":"T3","status":"done","executor_notes":"Verified in `megaplan/cli.py` and `megaplan/handlers.py` that omitted `init` flags now parse as `auto_approve=None` and `robustness=None`, explicit flags still parse normally, `handle_init()` falls back to `get_effective('execution', ...)` only when args are omitted, invalid configured robustness is clamped to `standard`, and omitted config still yields `robustness='standard'` and `auto_approve=False`.","files_changed":["megaplan/cli.py","megaplan/handlers.py"],"commands_run":["python -m compileall megaplan/cli.py megaplan/handlers.py","TMP_XDG=(mktemp -d /tmp/megaplan-batch2-config-XXXXXX) && XDG_CONFIG_HOME="TMP_XDG\" python - <<'PY' ... PY\nrm -rf \"TMP_XDG"","TMP_XDG=(mktemp -d /tmp/megaplan-batch2-config-extra-XXXXXX) && XDG_CONFIG_HOME=\"TMP_XDG" python - <<'PY' ... PY\nrm -rf "$TMP_XDG""]}],"sense_check_acknowledgments":[{"sense_check_id":"SC2","executor_note":"Confirmed with a temporary XDG config directory that handle_config persists Python True for execution.auto_approve=YES, rejects execution.robustness=turbo with light, standard, heavy in the error text, and malformed-key validation now lists both new execution keys."},{"sense_check_id":"SC3","executor_note":"Confirmed with direct parser and handler probes that build_parser().parse_args(['init', '--project-dir', '/tmp', 'idea']) returns auto_approve=None and robustness=None, and handle_init then resolves configured values through get_effective, while still defaulting invalid or absent config to standard / false."}]}
Add config-backed defaults for execution.auto_approve (bool) and execution.robustness (enum) so users can set them via 'megaplan config set' instead of passing CLI flags every init. Wire init parser to fall back to get_effective() when flags omitted, extend handle_config to validate bool and enum settable keys (currently only numeric/agents/orchestration.mode supported), and update instructions.md so the harness skips asking execution mode when a default is configured.
User notes and answers:
Q1: No --no-auto-approve flag. Single --auto-approve store_true is fine; per-run opt-out can wait. Q2: Accept case-insensitive {true,false,1,0,yes,no,on,off}. Q3: 'Configured' means the key is explicitly present in raw config.json (not the hard default). The harness should check 'megaplan config show' raw_config, not get_effective, so it can distinguish 'user set false' from 'unset'. handle_init in cli.py should still use get_effective since for the actual value the distinction doesn't matter.
code
Batch framing:
- Execute batch 3 of 4.
- Actionable task IDs for this batch: ['T6']
- Already completed task IDs available as dependency context: ['T1', 'T2', 'T3', 'T4', 'T5']
Actionable tasks for this batch:
[
{
"id": "T6",
"description": "Add tests: (a) in tests/test_config.py, exercise handle_config set for execution.auto_approve with case-insensitive true/false/1/0/yes/no/on/off and an invalid token raising CliError; for execution.robustness with light/standard/heavy and an invalid value (turbo) raising CliError listing valid values. (b) Parser-level test using from megaplan.cli import build_parser: assert omitted flags yield auto_approve is None and robustness is None, and explicit --auto-approve --robustness heavy yield True/"heavy". (c) handle_init test where config.json sets execution.auto_approve=true and execution.robustness=heavy and Namespace omits both \u2014 assert resolved state['config'] reports heavy/true. (d) Precedence test: explicit Namespace(robustness="light") beats configured heavy. (e) Audit tests/test_megaplan.py:44-63 and tests/test_handle_review_robustness.py:24-43 \u2014 switch any Namespace fixtures that rely on implicit defaults to use auto_approve=None, robustness=None so they exercise the fallback path.",
"depends_on": [
"T2",
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"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": "In megaplan/types.py, add two entries to DEFAULTS: \"execution.auto_approve\": False and \"execution.robustness\": \"standard\". Add new sets next to _SETTABLE_NUMERIC: _SETTABLE_BOOL = {\"execution.auto_approve\"} and _SETTABLE_ENUM = {\"execution.robustness\": ROBUSTNESS_LEVELS}.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting megaplan/types.py that DEFAULTS now contains execution.auto_approve=False and execution.robustness=\"standard\", and that _SETTABLE_BOOL / _SETTABLE_ENUM are defined alongside _SETTABLE_NUMERIC.",
"files_changed": [
"megaplan/types.py"
],
"commands_run": [
"sed -n '280,325p' megaplan/types.py"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "In megaplan/cli.py, import _SETTABLE_BOOL and _SETTABLE_ENUM. Extend valid_keys in handle_config to include sorted(_SETTABLE_BOOL) and sorted(_SETTABLE_ENUM). Add bool branch using {true,1,yes,on}/{false,0,no,off} (case-insensitive) raising CliError("invalid_args", ...) on bad token; add enum branch validating against _SETTABLE_ENUM[key], raising CliError listing allowed values. Confirm save_config + return payload still works for bool/str.",
"depends_on": [
"T1"
],
"status": "done",
"executor_notes": "Verified in megaplan/cli.py that handle_config now imports _SETTABLE_BOOL and _SETTABLE_ENUM, includes both key sets in valid_keys, accepts case-insensitive bool tokens for execution.auto_approve, rejects invalid bool tokens with CliError(\"invalid_args\", ...), validates execution.robustness against light, standard, heavy, and persists/returns saved bool and string values through the existing config-set payload.",
"files_changed": [
"megaplan/cli.py"
],
"commands_run": [
"python -m compileall megaplan/cli.py megaplan/handlers.py",
"TMP_XDG=(mktemp -d /tmp/megaplan-batch2-config-XXXXXX) && XDG_CONFIG_HOME=\"TMP_XDG" python - <<'PY' ... PY\nrm -rf "TMP_XDG\""
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "In megaplan/cli.py init parser, set `--auto-approve` to `action=\"store_true\", default=None` and `--robustness` to `choices=list(ROBUSTNESS_LEVELS), default=None`. In megaplan/handlers.py handle_init, fall back to get_effective(\"execution\",\"robustness\")/(\"execution\",\"auto_approve\") when args are None; clamp robustness to ROBUSTNESS_LEVELS, defaulting to \"standard\" if invalid; coerce auto_approve to bool.",
"depends_on": [
"T1"
],
"status": "done",
"executor_notes": "Verified in `megaplan/cli.py` and `megaplan/handlers.py` that omitted `init` flags now parse as `auto_approve=None` and `robustness=None`, explicit flags still parse normally, `handle_init()` falls back to `get_effective('execution', ...)` only when args are omitted, invalid configured robustness is clamped to `standard`, and omitted config still yields `robustness='standard'` and `auto_approve=False`.",
"files_changed": [
"megaplan/cli.py",
"megaplan/handlers.py"
],
"commands_run": [
"python -m compileall megaplan/cli.py megaplan/handlers.py",
"TMP_XDG=(mktemp -d /tmp/megaplan-batch2-config-XXXXXX) && XDG_CONFIG_HOME="TMP_XDG"",
"TMP_XDG=TMP_XDG" python - <<'PY' ... PY\nrm -rf "$TMP_XDG""
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Update megaplan/data/instructions.md so the harness inspects from (not effective_settings) and skips the execution-mode question only when that key is explicitly present. Mention as a settable override in the same paragraph. Add a line under ## Configuration listing both new settable keys.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting that the harness guidance now reads , skips the execution-mode question only when that raw key is explicitly present, mentions as a settable override, and lists both keys under .",
"files_changed": [
"megaplan/data/instructions.md"
],
"commands_run": [
"sed -n '1,40p' megaplan/data/instructions.md",
"sed -n '88,98p' megaplan/data/instructions.md",
"rg -n "effective_settings|raw_config\.execution\.auto_approve|raw_config\.execution\.robustness" megaplan/data/instructions.md"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update megaplan/data/claude_subagent_appendix.md so the launcher contract documents that and a new should expand to empty strings when the corresponding raw_config.execution keys are explicitly set. Update the agent prompt template's startup command (line ~58) to use conditional substitutions with a one-line note above. Keep the descriptive / header lines (~32-33) reporting effective values. Note that users must rerun to refresh installed SKILL.md files.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting that the launcher contract documents empty-string expansion for and when the corresponding raw config keys are explicitly set, the startup command now uses both placeholders, the descriptive header still reports effective / values, and the file now notes rerunning .",
"files_changed": [
"megaplan/data/claude_subagent_appendix.md"
],
"commands_run": [
"sed -n '10,75p' megaplan/data/claude_subagent_appendix.md",
"rg -n "raw_config\.execution\.auto_approve|raw_config\.execution\.robustness|AUTO_APPROVE_FLAG|ROBUSTNESS_FLAG|setup --force" megaplan/data/claude_subagent_appendix.md"
],
"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/add-config-backed-defaults-20260408-0303/execution_batch_2.json",
"Advisory quality: megaplan/handlers.py adds unused imports: _validate_merge_inputs.",
"Advisory quality: code changes lacked test updates: megaplan/cli.py, megaplan/handlers.py.",
"Advisory audit finding: Git status shows changed files not claimed by any task: megaplan/_core/init.py, megaplan/_core/io.py, megaplan/checks.py, megaplan/flags.py, megaplan/parallel_review.py, megaplan/prompts/init.py, megaplan/prompts/review.py, megaplan/review_checks.py, megaplan/review_mechanical.py, megaplan/schemas.py, megaplan/workers.py, plan.md, tests/test_checks.py, tests/test_handle_review_robustness.py, tests/test_io_git_patch.py, tests/test_parallel_critique.py, tests/test_parallel_review.py, tests/test_prompts.py, tests/test_review_checks.py, tests/test_review_mechanical.py, tests/test_schemas.py",
"Advisory audit finding: Sense check SC6 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC7 is missing an executor acknowledgment."
]
code
Batch-scoped sense checks:
[
{
"id": "SC6",
"task_id": "T6",
"question": "Do the new tests cover (a) bool case-insensitive tokens + invalid, (b) enum valid + invalid, (c) parser-level None for omitted flags, (d) handler fallback to config, (e) explicit-flag precedence over config?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "In megaplan/types.py, add two entries to DEFAULTS: \"execution.auto_approve\": False and \"execution.robustness\": \"standard\". Add new sets next to _SETTABLE_NUMERIC: _SETTABLE_BOOL = {\"execution.auto_approve\"} and _SETTABLE_ENUM = {\"execution.robustness\": ROBUSTNESS_LEVELS}.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting megaplan/types.py that DEFAULTS now contains execution.auto_approve=False and execution.robustness=\"standard\", and that _SETTABLE_BOOL / _SETTABLE_ENUM are defined alongside _SETTABLE_NUMERIC.",
"files_changed": [
"megaplan/types.py"
],
"commands_run": [
"sed -n '280,325p' megaplan/types.py"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "In megaplan/cli.py, import _SETTABLE_BOOL and _SETTABLE_ENUM. Extend valid_keys in handle_config to include sorted(_SETTABLE_BOOL) and sorted(_SETTABLE_ENUM). Add bool branch using {true,1,yes,on}/{false,0,no,off} (case-insensitive) raising CliError("invalid_args", ...) on bad token; add enum branch validating against _SETTABLE_ENUM[key], raising CliError listing allowed values. Confirm save_config + return payload still works for bool/str.",
"depends_on": [
"T1"
],
"status": "done",
"executor_notes": "Verified in megaplan/cli.py that handle_config now imports _SETTABLE_BOOL and _SETTABLE_ENUM, includes both key sets in valid_keys, accepts case-insensitive bool tokens for execution.auto_approve, rejects invalid bool tokens with CliError(\"invalid_args\", ...), validates execution.robustness against light, standard, heavy, and persists/returns saved bool and string values through the existing config-set payload.",
"files_changed": [
"megaplan/cli.py"
],
"commands_run": [
"python -m compileall megaplan/cli.py megaplan/handlers.py",
"TMP_XDG=(mktemp -d /tmp/megaplan-batch2-config-XXXXXX) && XDG_CONFIG_HOME=\"TMP_XDG" python - <<'PY' ... PY\nrm -rf "TMP_XDG\""
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "In megaplan/cli.py init parser, set `--auto-approve` to `action=\"store_true\", default=None` and `--robustness` to `choices=list(ROBUSTNESS_LEVELS), default=None`. In megaplan/handlers.py handle_init, fall back to get_effective(\"execution\",\"robustness\")/(\"execution\",\"auto_approve\") when args are None; clamp robustness to ROBUSTNESS_LEVELS, defaulting to \"standard\" if invalid; coerce auto_approve to bool.",
"depends_on": [
"T1"
],
"status": "done",
"executor_notes": "Verified in `megaplan/cli.py` and `megaplan/handlers.py` that omitted `init` flags now parse as `auto_approve=None` and `robustness=None`, explicit flags still parse normally, `handle_init()` falls back to `get_effective('execution', ...)` only when args are omitted, invalid configured robustness is clamped to `standard`, and omitted config still yields `robustness='standard'` and `auto_approve=False`.",
"files_changed": [
"megaplan/cli.py",
"megaplan/handlers.py"
],
"commands_run": [
"python -m compileall megaplan/cli.py megaplan/handlers.py",
"TMP_XDG=(mktemp -d /tmp/megaplan-batch2-config-XXXXXX) && XDG_CONFIG_HOME="TMP_XDG"",
"TMP_XDG=TMP_XDG" python - <<'PY' ... PY\nrm -rf "$TMP_XDG""
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Update megaplan/data/instructions.md so the harness inspects from (not effective_settings) and skips the execution-mode question only when that key is explicitly present. Mention as a settable override in the same paragraph. Add a line under ## Configuration listing both new settable keys.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting that the harness guidance now reads , skips the execution-mode question only when that raw key is explicitly present, mentions as a settable override, and lists both keys under .",
"files_changed": [
"megaplan/data/instructions.md"
],
"commands_run": [
"sed -n '1,40p' megaplan/data/instructions.md",
"sed -n '88,98p' megaplan/data/instructions.md",
"rg -n "effective_settings|raw_config\.execution\.auto_approve|raw_config\.execution\.robustness" megaplan/data/instructions.md"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update megaplan/data/claude_subagent_appendix.md so the launcher contract documents that and a new should expand to empty strings when the corresponding raw_config.execution keys are explicitly set. Update the agent prompt template's startup command (line ~58) to use conditional substitutions with a one-line note above. Keep the descriptive / header lines (~32-33) reporting effective values. Note that users must rerun to refresh installed SKILL.md files.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting that the launcher contract documents empty-string expansion for and when the corresponding raw config keys are explicitly set, the startup command now uses both placeholders, the descriptive header still reports effective / values, and the file now notes rerunning .",
"files_changed": [
"megaplan/data/claude_subagent_appendix.md"
],
"commands_run": [
"sed -n '10,75p' megaplan/data/claude_subagent_appendix.md",
"rg -n "raw_config\.execution\.auto_approve|raw_config\.execution\.robustness|AUTO_APPROVE_FLAG|ROBUSTNESS_FLAG|setup --force" megaplan/data/claude_subagent_appendix.md"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Add tests: (a) in tests/test_config.py, exercise handle_config set for execution.auto_approve with case-insensitive true/false/1/0/yes/no/on/off and an invalid token raising CliError; for execution.robustness with light/standard/heavy and an invalid value () raising CliError listing valid values. (b) Parser-level test using : assert omitted flags yield and , and explicit yield True/"heavy". (c) handle_init test where config.json sets execution.auto_approve=true and execution.robustness=heavy and Namespace omits both \u2014 assert resolved state['config'] reports heavy/true. (d) Precedence test: explicit Namespace(robustness="light") beats configured heavy. (e) Audit tests/test_megaplan.py:44-63 and tests/test_handle_review_robustness.py:24-43 \u2014 switch any Namespace fixtures that rely on implicit defaults to use so they exercise the fallback path.",
"depends_on": [
"T2",
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Run tests and verify the fix. First run targeted: . Then full suite: . Also write a short throwaway script that (1) writes a temp config.json with execution.auto_approve=true and execution.robustness=heavy, (2) calls build_parser().parse_args(["init","--project-dir",,"idea"]) and confirms None/None, (3) calls handle_init with that Namespace and asserts the response payload reports auto_approve=true, robustness='heavy'. Run it, confirm it passes, then delete it. If any test fails, fix root cause and rerun until green.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"Init parser must use for BOTH --auto-approve and --robustness \u2014 without this the entire feature is silently broken (FLAG-002). Verify via parser-level test, not just handler test.",
"Claude subagent appendix path (FLAG-001): if claude_subagent_appendix.md still hardcodes --auto-approve/--robustness, the Claude subagent path overrides config defaults even when other code is correct. Both the launcher contract section AND the agent prompt template startup command must be updated.",
"Bool token set is fixed: case-insensitive {true,false,1,0,yes,no,on,off}. Any other value must raise CliError listing the valid tokens. Don't silently coerce.",
"Harness instructions must read (not effective_settings) so the harness can distinguish 'user explicitly set false' from 'unset'. handle_init itself still uses get_effective \u2014 that's intentional.",
" requires the key to live in DEFAULTS \u2014 Step 1 must land before Step 3 or fallback raises.",
"Existing Namespace-based test fixtures may pass auto_approve=False/robustness='standard' explicitly; those still work but should be flipped to None where they intend to test default behavior so the fallback path is exercised.",
"No --no-auto-approve flag (per user Q1). Resist adding negation.",
" invalid in config should fall back to 'standard' in handle_init (defensive clamp), since config can be hand-edited.",
"Don't break behavior when no config file exists: must still yield robustness=standard, auto_approve=false."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does DEFAULTS now contain both and , and are / defined alongside ?",
"executor_note": "Confirmed in that both execution defaults were added to and / now sit next to .",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does persist Python , and does raise CliError listing light/standard/heavy? Are both keys in valid_keys?",
"executor_note": "Confirmed with a temporary XDG config directory that persists Python for , rejects with in the error text, and malformed-key validation now lists both new execution keys.",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does return auto_approve=None and robustness=None? Does handle_init then fall back to get_effective?",
"executor_note": "Confirmed with direct parser and handler probes that returns and , and then resolves configured values through , while still defaulting invalid or absent config to / .",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Does instructions.md tell the harness to inspect raw_config (not effective_settings), and does the Configuration section list the two new keys?",
"executor_note": "Confirmed in that the harness is told to inspect rather than effective settings, and that the Configuration section lists both new execution keys.",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Does claude_subagent_appendix.md document the conditional flag substitution and use empty-string expansion for {AUTO_APPROVE_FLAG}/{ROBUSTNESS_FLAG} when raw_config.execution sets them? Does the descriptive header still report effective values?",
"executor_note": "Confirmed in that / are documented as conditional empty-string substitutions when raw config explicitly sets those keys, while the descriptive header still reports effective execution mode and robustness.",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Do the new tests cover (a) bool case-insensitive tokens + invalid, (b) enum valid + invalid, (c) parser-level None for omitted flags, (d) handler fallback to config, (e) explicit-flag precedence over config?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Does the full pytest suite pass, and did the throwaway repro script confirm config-only init resolves to heavy/true?",
"executor_note": "",
"verdict": ""
}
],
"meta_commentary": "Land Step 1 (types.py) first \u2014 every other code change depends on finding the new keys in DEFAULTS. Steps 2 and 3 are independent after T1 and can be implemented back-to-back. Steps 4 and 5 are pure markdown and can land in parallel with code. The FLAG-002 risk is real: it is easy to "fix" handle_init while leaving the parser still defaulting auto_approve to False \u2014 always include a parser-level test using build_parser(). For FLAG-001, remember that claude_subagent_appendix.md is appended to instructions.md at install time via bundled_global_file; touching only one of the two markdown files leaves the Claude subagent path broken. Watch out for the existing Namespace-based test fixtures in tests/test_megaplan.py and tests/test_handle_review_robustness.py \u2014 they construct Namespace directly so the parser defaults don't apply; you only need to update the ones that rely on implicit default semantics. Bool parsing tokens are exactly {true,false,1,0,yes,no,on,off} case-insensitive \u2014 anything else must raise. No --no-auto-approve flag per user Q1.",
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Step 1: Register new settable keys in types.py (DEFAULTS + _SETTABLE_BOOL/_SETTABLE_ENUM)",
"finalize_task_ids": [
"T1"
]
},
{
"plan_step_summary": "Step 2: Teach handle_config to set bool and enum keys with validation",
"finalize_task_ids": [
"T2"
]
},
{
"plan_step_summary": "Step 3: Make init parser tristate and have handle_init fall back to get_effective",
"finalize_task_ids": [
"T3"
]
},
{
"plan_step_summary": "Step 4: Update instructions.md to read raw_config and document new settable keys",
"finalize_task_ids": [
"T4"
]
},
{
"plan_step_summary": "Step 5: Update claude_subagent_appendix.md to omit flags when config sets them",
"finalize_task_ids": [
"T5"
]
},
{
"plan_step_summary": "Step 6: Tests \u2014 config bool/enum, parser-level None, handle_init fallback, precedence, fixture audit",
"finalize_task_ids": [
"T6"
]
},
{
"plan_step_summary": "Validation: targeted + full pytest suite, plus manual smoke",
"finalize_task_ids": [
"T7"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All seven plan sections mapped to tasks. The validation/manual-smoke section is folded into T7 (with the throwaway repro script standing in for the manual smoke).",
"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-proposed-changes-technically-correct: are the proposed changes technically correct?: checked the new diff-helper proposal against the repo's existing execution-evidence semantics. validate_execution_evidence() in megaplan/evaluation.py:109-175 uses git status --short, so untracked files count as real changed files today, but step 3 proposes collect_git_diff_patch(project_dir) via git diff head; by git behavior that will not include untracked files, so heavy review could miss exactly the newly created files that execute and review already treat as part of the patch. (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] criteria-prompt: criteria prompt: v3 replaces _review_prompt() in heavy mode with a new heavy_criteria_review_prompt, so the plan no longer follows the brief's explicit requirement that _review_prompt() remain the heavy-mode criteria_verdict check. (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] 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?: checked step 7 against the brief's explicit prompt-builder requirement. the revision fixes the old context leak by introducing a brand-new heavy_criteria_review_prompt, but the brief said _review_prompt() should stay as-is and still run as the criteria_verdict check in heavy mode; v3 solves the problem by replacing that heavy-mode criteria path instead of reusing the baseline review prompt, which is still a material divergence from the requested design. (flagged 1 times across 1 plans)
[DEBT] diff-capture: diff capture: the proposed collect_git_diff_patch(project_dir) helper uses git diff head, which will miss untracked files even though the existing execution-evidence path already treats untracked files as real changed work. (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: [T6]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC6]
- 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/add-config-backed-defaults-20260408-0303/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.
{"output":"Batch 3 complete: T6 is implemented. Added test coverage in tests/test_config.py for case-insensitive bool config tokens, invalid bool token rejection, robustness enum valid/invalid values, parser tristate init flags, config-backed handle_init fallback, and explicit robustness precedence over config. Updated the shared Namespace factories in tests/test_megaplan.py and tests/test_handle_review_robustness.py to default omitted init flags to None so the fallback path is exercised. Verification passed by running the full edited test modules: pytest tests/test_config.py tests/test_megaplan.py tests/test_handle_review_robustness.py -x with 200 passed in 3.89s. Batch checkpoint was written to .megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_3.json.","files_changed":["tests/test_config.py","tests/test_megaplan.py","tests/test_handle_review_robustness.py",".megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_3.json"],"commands_run":["git status --short tests/test_config.py tests/test_megaplan.py tests/test_handle_review_robustness.py megaplan/cli.py megaplan/handlers.py","sed -n '1,260p' tests/test_config.py","sed -n '1,220p' tests/test_megaplan.py","sed -n '1,220p' tests/test_handle_review_robustness.py","rg -n "auto_approve|robustness" tests/test_megaplan.py","rg -n "auto_approve|robustness" tests/test_handle_review_robustness.py","rg -n "handle_init\(|build_parser\(|handle_config\(" tests -g 'test_*.py'","sed -n '480,530p' tests/test_megaplan.py","sed -n '1670,1715p' tests/test_megaplan.py","sed -n '1940,1985p' tests/test_megaplan.py","sed -n '2110,2165p' tests/test_megaplan.py","sed -n '220,420p' tests/test_handle_review_robustness.py","pytest tests/test_config.py tests/test_megaplan.py tests/test_handle_review_robustness.py -x","test -d /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303 && test -w /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303 && echo writable || echo not_writable","if [ -f /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_3.json ]; then echo exists; sed -n '1,220p' /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_3.json; else echo missing; fi"],"deviations":[],"task_updates":[{"task_id":"T6","status":"done","executor_notes":"Verified by running the full edited test modules that the new tests cover: (a) case-insensitive bool config tokens plus invalid-token rejection, (b) robustness enum valid and invalid values, (c) parser-level None defaults for omitted init flags, (d) handle_init fallback to configured execution defaults, and (e) explicit robustness precedence over configured heavy. The shared Namespace fixtures in tests/test_megaplan.py and tests/test_handle_review_robustness.py now default omitted init flags to None, and pytest tests/test_config.py tests/test_megaplan.py tests/test_handle_review_robustness.py -x passed with 200 passing tests.","files_changed":["tests/test_config.py","tests/test_megaplan.py","tests/test_handle_review_robustness.py"],"commands_run":["pytest tests/test_config.py tests/test_megaplan.py tests/test_handle_review_robustness.py -x"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC6","executor_note":"Confirmed by test coverage and execution: the added tests cover bool case-insensitive tokens plus invalid handling, enum valid and invalid values, parser-level None for omitted init flags, handler fallback to config-backed execution defaults, and explicit robustness precedence over configured heavy. The full edited test modules passed (200 passed)."}]}
Add config-backed defaults for execution.auto_approve (bool) and execution.robustness (enum) so users can set them via 'megaplan config set' instead of passing CLI flags every init. Wire init parser to fall back to get_effective() when flags omitted, extend handle_config to validate bool and enum settable keys (currently only numeric/agents/orchestration.mode supported), and update instructions.md so the harness skips asking execution mode when a default is configured.
User notes and answers:
Q1: No --no-auto-approve flag. Single --auto-approve store_true is fine; per-run opt-out can wait. Q2: Accept case-insensitive {true,false,1,0,yes,no,on,off}. Q3: 'Configured' means the key is explicitly present in raw config.json (not the hard default). The harness should check 'megaplan config show' raw_config, not get_effective, so it can distinguish 'user set false' from 'unset'. handle_init in cli.py should still use get_effective since for the actual value the distinction doesn't matter.
code
Batch framing:
- Execute batch 4 of 4.
- Actionable task IDs for this batch: ['T7']
- Already completed task IDs available as dependency context: ['T1', 'T2', 'T3', 'T4', 'T5', 'T6']
Actionable tasks for this batch:
[
{
"id": "T7",
"description": "Run tests and verify the fix. First run targeted: pytest tests/test_config.py tests/test_megaplan.py tests/test_handle_review_robustness.py -x. Then full suite: pytest -x. Also write a short throwaway script that (1) writes a temp config.json with execution.auto_approve=true and execution.robustness=heavy, (2) calls build_parser().parse_args(["init","--project-dir",,"idea"]) and confirms None/None, (3) calls handle_init with that Namespace and asserts the response payload reports auto_approve=true, robustness='heavy'. Run it, confirm it passes, then delete it. If any test fails, fix root cause and rerun until green.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"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": "In megaplan/types.py, add two entries to DEFAULTS: \"execution.auto_approve\": False and \"execution.robustness\": \"standard\". Add new sets next to _SETTABLE_NUMERIC: _SETTABLE_BOOL = {\"execution.auto_approve\"} and _SETTABLE_ENUM = {\"execution.robustness\": ROBUSTNESS_LEVELS}.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting megaplan/types.py that DEFAULTS now contains execution.auto_approve=False and execution.robustness=\"standard\", and that _SETTABLE_BOOL / _SETTABLE_ENUM are defined alongside _SETTABLE_NUMERIC.",
"files_changed": [
"megaplan/types.py"
],
"commands_run": [
"sed -n '280,325p' megaplan/types.py"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "In megaplan/cli.py, import _SETTABLE_BOOL and _SETTABLE_ENUM. Extend valid_keys in handle_config to include sorted(_SETTABLE_BOOL) and sorted(_SETTABLE_ENUM). Add bool branch using {true,1,yes,on}/{false,0,no,off} (case-insensitive) raising CliError("invalid_args", ...) on bad token; add enum branch validating against _SETTABLE_ENUM[key], raising CliError listing allowed values. Confirm save_config + return payload still works for bool/str.",
"depends_on": [
"T1"
],
"status": "done",
"executor_notes": "Verified in megaplan/cli.py that handle_config now imports _SETTABLE_BOOL and _SETTABLE_ENUM, includes both key sets in valid_keys, accepts case-insensitive bool tokens for execution.auto_approve, rejects invalid bool tokens with CliError(\"invalid_args\", ...), validates execution.robustness against light, standard, heavy, and persists/returns saved bool and string values through the existing config-set payload.",
"files_changed": [
"megaplan/cli.py"
],
"commands_run": [
"python -m compileall megaplan/cli.py megaplan/handlers.py",
"TMP_XDG=(mktemp -d /tmp/megaplan-batch2-config-XXXXXX) && XDG_CONFIG_HOME=\"TMP_XDG" python - <<'PY' ... PY\nrm -rf "TMP_XDG\""
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "In megaplan/cli.py init parser, set `--auto-approve` to `action=\"store_true\", default=None` and `--robustness` to `choices=list(ROBUSTNESS_LEVELS), default=None`. In megaplan/handlers.py handle_init, fall back to get_effective(\"execution\",\"robustness\")/(\"execution\",\"auto_approve\") when args are None; clamp robustness to ROBUSTNESS_LEVELS, defaulting to \"standard\" if invalid; coerce auto_approve to bool.",
"depends_on": [
"T1"
],
"status": "done",
"executor_notes": "Verified in `megaplan/cli.py` and `megaplan/handlers.py` that omitted `init` flags now parse as `auto_approve=None` and `robustness=None`, explicit flags still parse normally, `handle_init()` falls back to `get_effective('execution', ...)` only when args are omitted, invalid configured robustness is clamped to `standard`, and omitted config still yields `robustness='standard'` and `auto_approve=False`.",
"files_changed": [
"megaplan/cli.py",
"megaplan/handlers.py"
],
"commands_run": [
"python -m compileall megaplan/cli.py megaplan/handlers.py",
"TMP_XDG=(mktemp -d /tmp/megaplan-batch2-config-XXXXXX) && XDG_CONFIG_HOME="TMP_XDG\" python - <<'PY' ... PY\nrm -rf \"TMP_XDG"",
"TMP_XDG=(mktemp -d /tmp/megaplan-batch2-config-extra-XXXXXX) && XDG_CONFIG_HOME=\"TMP_XDG" python - <<'PY' ... PY\nrm -rf "$TMP_XDG""
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Update megaplan/data/instructions.md so the harness inspects raw_config.execution.auto_approve from megaplan config show (not effective_settings) and skips the execution-mode question only when that key is explicitly present. Mention execution.robustness as a settable override in the same paragraph. Add a line under ## Configuration listing both new settable keys.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting megaplan/data/instructions.md that the harness guidance now reads raw_config.execution.auto_approve, skips the execution-mode question only when that raw key is explicitly present, mentions execution.robustness as a settable override, and lists both keys under ## Configuration.",
"files_changed": [
"megaplan/data/instructions.md"
],
"commands_run": [
"sed -n '1,40p' megaplan/data/instructions.md",
"sed -n '88,98p' megaplan/data/instructions.md",
"rg -n "effective_settings|raw_config\.execution\.auto_approve|raw_config\.execution\.robustness" megaplan/data/instructions.md"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update megaplan/data/claude_subagent_appendix.md so the launcher contract documents that {AUTO_APPROVE_FLAG} and a new {ROBUSTNESS_FLAG} should expand to empty strings when the corresponding raw_config.execution keys are explicitly set. Update the agent prompt template's startup command (line ~58) to use {AUTO_APPROVE_FLAG} {ROBUSTNESS_FLAG} conditional substitutions with a one-line note above. Keep the descriptive {AUTO_APPROVE} / {ROBUSTNESS} header lines (~32-33) reporting effective values. Note that users must rerun megaplan setup --force to refresh installed SKILL.md files.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting megaplan/data/claude_subagent_appendix.md that the launcher contract documents empty-string expansion for {AUTO_APPROVE_FLAG} and {ROBUSTNESS_FLAG} when the corresponding raw config keys are explicitly set, the startup command now uses both placeholders, the descriptive header still reports effective {AUTO_APPROVE} / {ROBUSTNESS} values, and the file now notes rerunning megaplan setup --force.",
"files_changed": [
"megaplan/data/claude_subagent_appendix.md"
],
"commands_run": [
"sed -n '10,75p' megaplan/data/claude_subagent_appendix.md",
"rg -n "raw_config\.execution\.auto_approve|raw_config\.execution\.robustness|AUTO_APPROVE_FLAG|ROBUSTNESS_FLAG|setup --force" megaplan/data/claude_subagent_appendix.md"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Add tests: (a) in tests/test_config.py, exercise handle_config set for execution.auto_approve with case-insensitive true/false/1/0/yes/no/on/off and an invalid token raising CliError; for execution.robustness with light/standard/heavy and an invalid value (turbo) raising CliError listing valid values. (b) Parser-level test using from megaplan.cli import build_parser: assert omitted flags yield auto_approve is None and robustness is None, and explicit --auto-approve --robustness heavy yield True/"heavy". (c) handle_init test where config.json sets execution.auto_approve=true and execution.robustness=heavy and Namespace omits both \u2014 assert resolved state['config'] reports heavy/true. (d) Precedence test: explicit Namespace(robustness="light") beats configured heavy. (e) Audit tests/test_megaplan.py:44-63 and tests/test_handle_review_robustness.py:24-43 \u2014 switch any Namespace fixtures that rely on implicit defaults to use auto_approve=None, robustness=None so they exercise the fallback path.",
"depends_on": [
"T2",
"T3"
],
"status": "done",
"executor_notes": "Verified by running the full edited test modules that the new tests cover: (a) case-insensitive bool config tokens plus invalid-token rejection, (b) robustness enum valid and invalid values, (c) parser-level None defaults for omitted init flags, (d) handle_init fallback to configured execution defaults, and (e) explicit robustness precedence over configured heavy. The shared Namespace fixtures in tests/test_megaplan.py and tests/test_handle_review_robustness.py now default omitted init flags to None, and pytest tests/test_config.py tests/test_megaplan.py tests/test_handle_review_robustness.py -x passed with 200 passing tests.",
"files_changed": [
"tests/test_config.py",
"tests/test_megaplan.py",
"tests/test_handle_review_robustness.py"
],
"commands_run": [
"pytest tests/test_config.py tests/test_megaplan.py tests/test_handle_review_robustness.py -x"
],
"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/add-config-backed-defaults-20260408-0303/execution_batch_3.json",
"Advisory quality: tests/test_handle_review_robustness.py has similar functions _make_args_factory and make_args (91% similarity).",
"Advisory audit finding: Git status shows changed files not claimed by any task: megaplan/_core/init.py, megaplan/_core/io.py, megaplan/checks.py, megaplan/flags.py, megaplan/parallel_review.py, megaplan/prompts/init.py, megaplan/prompts/review.py, megaplan/review_checks.py, megaplan/review_mechanical.py, megaplan/schemas.py, megaplan/workers.py, plan.md, tests/test_checks.py, tests/test_io_git_patch.py, tests/test_parallel_critique.py, tests/test_parallel_review.py, tests/test_prompts.py, tests/test_review_checks.py, tests/test_review_mechanical.py, tests/test_schemas.py",
"Advisory audit finding: Sense check SC7 is missing an executor acknowledgment."
]
code
Batch-scoped sense checks:
[
{
"id": "SC7",
"task_id": "T7",
"question": "Does the full pytest suite pass, and did the throwaway repro script confirm config-only init resolves to heavy/true?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "In megaplan/types.py, add two entries to DEFAULTS: \"execution.auto_approve\": False and \"execution.robustness\": \"standard\". Add new sets next to _SETTABLE_NUMERIC: _SETTABLE_BOOL = {\"execution.auto_approve\"} and _SETTABLE_ENUM = {\"execution.robustness\": ROBUSTNESS_LEVELS}.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting megaplan/types.py that DEFAULTS now contains execution.auto_approve=False and execution.robustness=\"standard\", and that _SETTABLE_BOOL / _SETTABLE_ENUM are defined alongside _SETTABLE_NUMERIC.",
"files_changed": [
"megaplan/types.py"
],
"commands_run": [
"sed -n '280,325p' megaplan/types.py"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "In megaplan/cli.py, import _SETTABLE_BOOL and _SETTABLE_ENUM. Extend valid_keys in handle_config to include sorted(_SETTABLE_BOOL) and sorted(_SETTABLE_ENUM). Add bool branch using {true,1,yes,on}/{false,0,no,off} (case-insensitive) raising CliError("invalid_args", ...) on bad token; add enum branch validating against _SETTABLE_ENUM[key], raising CliError listing allowed values. Confirm save_config + return payload still works for bool/str.",
"depends_on": [
"T1"
],
"status": "done",
"executor_notes": "Verified in megaplan/cli.py that handle_config now imports _SETTABLE_BOOL and _SETTABLE_ENUM, includes both key sets in valid_keys, accepts case-insensitive bool tokens for execution.auto_approve, rejects invalid bool tokens with CliError(\"invalid_args\", ...), validates execution.robustness against light, standard, heavy, and persists/returns saved bool and string values through the existing config-set payload.",
"files_changed": [
"megaplan/cli.py"
],
"commands_run": [
"python -m compileall megaplan/cli.py megaplan/handlers.py",
"TMP_XDG=(mktemp -d /tmp/megaplan-batch2-config-XXXXXX) && XDG_CONFIG_HOME=\"TMP_XDG" python - <<'PY' ... PY\nrm -rf "TMP_XDG\""
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T3",
"description": "In megaplan/cli.py init parser, set `--auto-approve` to `action=\"store_true\", default=None` and `--robustness` to `choices=list(ROBUSTNESS_LEVELS), default=None`. In megaplan/handlers.py handle_init, fall back to get_effective(\"execution\",\"robustness\")/(\"execution\",\"auto_approve\") when args are None; clamp robustness to ROBUSTNESS_LEVELS, defaulting to \"standard\" if invalid; coerce auto_approve to bool.",
"depends_on": [
"T1"
],
"status": "done",
"executor_notes": "Verified in `megaplan/cli.py` and `megaplan/handlers.py` that omitted `init` flags now parse as `auto_approve=None` and `robustness=None`, explicit flags still parse normally, `handle_init()` falls back to `get_effective('execution', ...)` only when args are omitted, invalid configured robustness is clamped to `standard`, and omitted config still yields `robustness='standard'` and `auto_approve=False`.",
"files_changed": [
"megaplan/cli.py",
"megaplan/handlers.py"
],
"commands_run": [
"python -m compileall megaplan/cli.py megaplan/handlers.py",
"TMP_XDG=(mktemp -d /tmp/megaplan-batch2-config-XXXXXX) && XDG_CONFIG_HOME="TMP_XDG"",
"TMP_XDG=TMP_XDG" python - <<'PY' ... PY\nrm -rf "$TMP_XDG""
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T4",
"description": "Update megaplan/data/instructions.md so the harness inspects from (not effective_settings) and skips the execution-mode question only when that key is explicitly present. Mention as a settable override in the same paragraph. Add a line under ## Configuration listing both new settable keys.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting that the harness guidance now reads , skips the execution-mode question only when that raw key is explicitly present, mentions as a settable override, and lists both keys under .",
"files_changed": [
"megaplan/data/instructions.md"
],
"commands_run": [
"sed -n '1,40p' megaplan/data/instructions.md",
"sed -n '88,98p' megaplan/data/instructions.md",
"rg -n "effective_settings|raw_config\.execution\.auto_approve|raw_config\.execution\.robustness" megaplan/data/instructions.md"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T5",
"description": "Update megaplan/data/claude_subagent_appendix.md so the launcher contract documents that and a new should expand to empty strings when the corresponding raw_config.execution keys are explicitly set. Update the agent prompt template's startup command (line ~58) to use conditional substitutions with a one-line note above. Keep the descriptive / header lines (~32-33) reporting effective values. Note that users must rerun to refresh installed SKILL.md files.",
"depends_on": [],
"status": "done",
"executor_notes": "Verified by inspecting that the launcher contract documents empty-string expansion for and when the corresponding raw config keys are explicitly set, the startup command now uses both placeholders, the descriptive header still reports effective / values, and the file now notes rerunning .",
"files_changed": [
"megaplan/data/claude_subagent_appendix.md"
],
"commands_run": [
"sed -n '10,75p' megaplan/data/claude_subagent_appendix.md",
"rg -n "raw_config\.execution\.auto_approve|raw_config\.execution\.robustness|AUTO_APPROVE_FLAG|ROBUSTNESS_FLAG|setup --force" megaplan/data/claude_subagent_appendix.md"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T6",
"description": "Add tests: (a) in tests/test_config.py, exercise handle_config set for execution.auto_approve with case-insensitive true/false/1/0/yes/no/on/off and an invalid token raising CliError; for execution.robustness with light/standard/heavy and an invalid value () raising CliError listing valid values. (b) Parser-level test using : assert omitted flags yield and , and explicit yield True/"heavy". (c) handle_init test where config.json sets execution.auto_approve=true and execution.robustness=heavy and Namespace omits both \u2014 assert resolved state['config'] reports heavy/true. (d) Precedence test: explicit Namespace(robustness="light") beats configured heavy. (e) Audit tests/test_megaplan.py:44-63 and tests/test_handle_review_robustness.py:24-43 \u2014 switch any Namespace fixtures that rely on implicit defaults to use so they exercise the fallback path.",
"depends_on": [
"T2",
"T3"
],
"status": "done",
"executor_notes": "Verified by running the full edited test modules that the new tests cover: (a) case-insensitive bool config tokens plus invalid-token rejection, (b) robustness enum valid and invalid values, (c) parser-level defaults for omitted init flags, (d) fallback to configured execution defaults, and (e) explicit robustness precedence over configured heavy. The shared Namespace fixtures in and now default omitted init flags to , and passed with 200 passing tests.",
"files_changed": [
"tests/test_config.py",
"tests/test_megaplan.py",
"tests/test_handle_review_robustness.py"
],
"commands_run": [
"pytest tests/test_config.py tests/test_megaplan.py tests/test_handle_review_robustness.py -x"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T7",
"description": "Run tests and verify the fix. First run targeted: . Then full suite: . Also write a short throwaway script that (1) writes a temp config.json with execution.auto_approve=true and execution.robustness=heavy, (2) calls build_parser().parse_args(["init","--project-dir",,"idea"]) and confirms None/None, (3) calls handle_init with that Namespace and asserts the response payload reports auto_approve=true, robustness='heavy'. Run it, confirm it passes, then delete it. If any test fails, fix root cause and rerun until green.",
"depends_on": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"Init parser must use for BOTH --auto-approve and --robustness \u2014 without this the entire feature is silently broken (FLAG-002). Verify via parser-level test, not just handler test.",
"Claude subagent appendix path (FLAG-001): if claude_subagent_appendix.md still hardcodes --auto-approve/--robustness, the Claude subagent path overrides config defaults even when other code is correct. Both the launcher contract section AND the agent prompt template startup command must be updated.",
"Bool token set is fixed: case-insensitive {true,false,1,0,yes,no,on,off}. Any other value must raise CliError listing the valid tokens. Don't silently coerce.",
"Harness instructions must read (not effective_settings) so the harness can distinguish 'user explicitly set false' from 'unset'. handle_init itself still uses get_effective \u2014 that's intentional.",
" requires the key to live in DEFAULTS \u2014 Step 1 must land before Step 3 or fallback raises.",
"Existing Namespace-based test fixtures may pass auto_approve=False/robustness='standard' explicitly; those still work but should be flipped to None where they intend to test default behavior so the fallback path is exercised.",
"No --no-auto-approve flag (per user Q1). Resist adding negation.",
" invalid in config should fall back to 'standard' in handle_init (defensive clamp), since config can be hand-edited.",
"Don't break behavior when no config file exists: must still yield robustness=standard, auto_approve=false."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does DEFAULTS now contain both and , and are / defined alongside ?",
"executor_note": "Confirmed in that both execution defaults were added to and / now sit next to .",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Does persist Python , and does raise CliError listing light/standard/heavy? Are both keys in valid_keys?",
"executor_note": "Confirmed with a temporary XDG config directory that persists Python for , rejects with in the error text, and malformed-key validation now lists both new execution keys.",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "Does return auto_approve=None and robustness=None? Does handle_init then fall back to get_effective?",
"executor_note": "Confirmed with direct parser and handler probes that returns and , and then resolves configured values through , while still defaulting invalid or absent config to / .",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "Does instructions.md tell the harness to inspect raw_config (not effective_settings), and does the Configuration section list the two new keys?",
"executor_note": "Confirmed in that the harness is told to inspect rather than effective settings, and that the Configuration section lists both new execution keys.",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Does claude_subagent_appendix.md document the conditional flag substitution and use empty-string expansion for {AUTO_APPROVE_FLAG}/{ROBUSTNESS_FLAG} when raw_config.execution sets them? Does the descriptive header still report effective values?",
"executor_note": "Confirmed in that / are documented as conditional empty-string substitutions when raw config explicitly sets those keys, while the descriptive header still reports effective execution mode and robustness.",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Do the new tests cover (a) bool case-insensitive tokens + invalid, (b) enum valid + invalid, (c) parser-level None for omitted flags, (d) handler fallback to config, (e) explicit-flag precedence over config?",
"executor_note": "Confirmed by test coverage and execution: the added tests cover bool case-insensitive tokens plus invalid handling, enum valid and invalid values, parser-level for omitted init flags, handler fallback to config-backed execution defaults, and explicit robustness precedence over configured heavy. The full edited test modules passed (200 passed).",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Does the full pytest suite pass, and did the throwaway repro script confirm config-only init resolves to heavy/true?",
"executor_note": "",
"verdict": ""
}
],
"meta_commentary": "Land Step 1 (types.py) first \u2014 every other code change depends on finding the new keys in DEFAULTS. Steps 2 and 3 are independent after T1 and can be implemented back-to-back. Steps 4 and 5 are pure markdown and can land in parallel with code. The FLAG-002 risk is real: it is easy to "fix" handle_init while leaving the parser still defaulting auto_approve to False \u2014 always include a parser-level test using build_parser(). For FLAG-001, remember that claude_subagent_appendix.md is appended to instructions.md at install time via bundled_global_file; touching only one of the two markdown files leaves the Claude subagent path broken. Watch out for the existing Namespace-based test fixtures in tests/test_megaplan.py and tests/test_handle_review_robustness.py \u2014 they construct Namespace directly so the parser defaults don't apply; you only need to update the ones that rely on implicit default semantics. Bool parsing tokens are exactly {true,false,1,0,yes,no,on,off} case-insensitive \u2014 anything else must raise. No --no-auto-approve flag per user Q1.",
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Step 1: Register new settable keys in types.py (DEFAULTS + _SETTABLE_BOOL/_SETTABLE_ENUM)",
"finalize_task_ids": [
"T1"
]
},
{
"plan_step_summary": "Step 2: Teach handle_config to set bool and enum keys with validation",
"finalize_task_ids": [
"T2"
]
},
{
"plan_step_summary": "Step 3: Make init parser tristate and have handle_init fall back to get_effective",
"finalize_task_ids": [
"T3"
]
},
{
"plan_step_summary": "Step 4: Update instructions.md to read raw_config and document new settable keys",
"finalize_task_ids": [
"T4"
]
},
{
"plan_step_summary": "Step 5: Update claude_subagent_appendix.md to omit flags when config sets them",
"finalize_task_ids": [
"T5"
]
},
{
"plan_step_summary": "Step 6: Tests \u2014 config bool/enum, parser-level None, handle_init fallback, precedence, fixture audit",
"finalize_task_ids": [
"T6"
]
},
{
"plan_step_summary": "Validation: targeted + full pytest suite, plus manual smoke",
"finalize_task_ids": [
"T7"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All seven plan sections mapped to tasks. The validation/manual-smoke section is folded into T7 (with the throwaway repro script standing in for the manual smoke).",
"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-proposed-changes-technically-correct: are the proposed changes technically correct?: checked the new diff-helper proposal against the repo's existing execution-evidence semantics. validate_execution_evidence() in megaplan/evaluation.py:109-175 uses git status --short, so untracked files count as real changed files today, but step 3 proposes collect_git_diff_patch(project_dir) via git diff head; by git behavior that will not include untracked files, so heavy review could miss exactly the newly created files that execute and review already treat as part of the patch. (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] criteria-prompt: criteria prompt: v3 replaces _review_prompt() in heavy mode with a new heavy_criteria_review_prompt, so the plan no longer follows the brief's explicit requirement that _review_prompt() remain the heavy-mode criteria_verdict check. (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] 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?: checked step 7 against the brief's explicit prompt-builder requirement. the revision fixes the old context leak by introducing a brand-new heavy_criteria_review_prompt, but the brief said _review_prompt() should stay as-is and still run as the criteria_verdict check in heavy mode; v3 solves the problem by replacing that heavy-mode criteria path instead of reusing the baseline review prompt, which is still a material divergence from the requested design. (flagged 1 times across 1 plans)
[DEBT] diff-capture: diff capture: the proposed collect_git_diff_patch(project_dir) helper uses git diff head, which will miss untracked files even though the existing execution-evidence path already treats untracked files as real changed work. (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: [T7]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC7]
- 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/add-config-backed-defaults-20260408-0303/execution_batch_4.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":"Batch 4 complete: T7 verified. The targeted regression run passed (pytest tests/test_config.py tests/test_megaplan.py tests/test_handle_review_robustness.py -x: 200 passed), the full suite passed (pytest -x: 469 passed in 20.78s), and the required throwaway repro script confirmed that config-only init resolves to auto_approve=true and robustness='heavy' while omitted parser flags remain None. The repro script was deleted after it passed. Batch checkpoint was written to .megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_4.json.","files_changed":[],"commands_run":["pytest tests/test_config.py tests/test_megaplan.py tests/test_handle_review_robustness.py -x","pytest -x","python /tmp/megaplan_batch4_repro.py","rm /tmp/megaplan_batch4_repro.py","test -d /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303 && test -w /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303 && echo writable || echo not_writable","if [ -f /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_4.json ]; then echo exists; sed -n '1,220p' /Users/user_c042661f/Documents/megaplan/.megaplan/plans/add-config-backed-defaults-20260408-0303/execution_batch_4.json; else echo missing; fi","test ! -e /tmp/megaplan_batch4_repro.py && echo removed || echo still_present"],"deviations":["The first throwaway repro-script run failed due to a duplicate name argument in the temporary script itself. I corrected the script, reran it successfully, and deleted it; no repository code changes were required."],"task_updates":[{"task_id":"T7","status":"done","executor_notes":"Verified by execution that the targeted regression modules passed (pytest tests/test_config.py tests/test_megaplan.py tests/test_handle_review_robustness.py -x: 200 passed), the full suite passed (pytest -x: 469 passed), and the throwaway repro script wrote a temp config with execution.auto_approve=true and execution.robustness=heavy, confirmed build_parser().parse_args(['init', '--project-dir', <tmp>, 'idea']) leaves both fields as None, then confirmed handle_init resolved the response payload to auto_approve=true and robustness='heavy' before the script was deleted.","files_changed":[],"commands_run":["pytest tests/test_config.py tests/test_megaplan.py tests/test_handle_review_robustness.py -x","pytest -x","python /tmp/megaplan_batch4_repro.py","rm /tmp/megaplan_batch4_repro.py"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC7","executor_note":"Confirmed by execution: the full pytest -x suite passed (469 passed), and the throwaway repro script verified the config-only init path resolves to auto_approve=true and robustness='heavy' while omitted parser flags remain None."}]}