Sprint 12B: Optional Cleanup Sprint or Post-Canary PRs
Overall Context
This is optional cleanup after the migration is safe, or before Sprint 0 only if all affected baselines are regenerated. It is explicitly not a migration prerequisite.
Shared Operating Rules
One PR per cleanup category.
UNUSED status is not deletion proof by itself; run the Section 8A deletion gate.
If cleanup lands mid-migration, rerun affected baselines and resolver tests before comparison or canary.
Defer cleanup when it risks invalidating frozen baselines.
Sprint Goal
Perform cleanup-only work without changing migration correctness assumptions.
Required Deliverables
Turbo-mode scaffolding cleanup after contract safety.
UNUSED-handler deletion only after Section 8A deletion gate.
Pyproject dedupe.
AMBIGUOUS rows proven dead.
Optional Supabase cleanup migration.
DB/admin/debug/direct-emitter proof for handler deletions.
Exit Criteria
Cleanup lands before Sprint 0 with regenerated baselines or after Sprint 11; if it lands mid-migration, affected baselines and resolver tests rerun before comparison/canary.
code
Batch framing:
- Execute batch 1 of 5.
- Actionable task IDs for this batch: ['T8']
- Already completed task IDs available as dependency context: []
Actionable tasks for this batch:
[
{
"id": "T8",
"description": "Read user_actions.md. For each before_execute action, programmatically verify completion using bash tools \u2014 grep .env for required keys, query the migrations table, curl the dev server, etc. Reading the file does NOT count as verification; you must run a command. For actions that genuinely cannot be verified mechanically (manual UI checks), explicitly ask the user. If anything is incomplete or unverifiable, mark this task blocked with reason and STOP.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
]
code
Assistant
{"output":"I’ll verify the before-execute actions mechanically only, then stop at T8 as requested. I’m going to locate user_actions.md and the likely project directory before running the verification commands.","files_changed":[],"commands_run":[],"deviations":[],"task_updates":[],"sense_check_acknowledgments":[]}
Assistant
{"output":"rg --files did not find user_actions.md under the workspace, so I’m widening the file search and checking the batch checkpoint path. If the action file is missing, that becomes part of the verification result rather than an assumption.","files_changed":[],"commands_run":["pwd && rg --files -g 'user_actions.md' -g 'execution_batch_1.json' -g '.env*'","find /Users/user_c042661f/Documents/reigh-workspace -maxdepth 2 -type d -name 'megaplan-fix' -o -name '.megaplan'"],"deviations":[],"task_updates":[],"sense_check_acknowledgments":[]}
Assistant
{"output":"I found the sprint-specific user_actions.md in the plan directory. Next I’m reading it and will verify each before_execute item with a command, separating what can be proven locally from anything that needs a human decision.","files_changed":[],"commands_run":["find /Users/user_c042661f/Documents/reigh-workspace -name user_actions.md -print","ls -la /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318 && test -w /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318 && echo WRITABLE || echo NOT_WRITABLE","find /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix -maxdepth 2 -type f \( -name '.env' -o -name '.env.local' -o -name '.envrc' -o -name 'pyproject.toml' \) -print"],"deviations":[],"task_updates":[],"sense_check_acknowledgments":[]}
Assistant
{"output":"U1 is a human timing decision, so unless the plan state records an answer it cannot be mechanically proven. I’m checking the plan artifacts and shell environment for recorded decisions and DB access before deciding whether T8 is blocked.","files_changed":[],"commands_run":["sed -n '1,220p' /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318/user_actions.md","find /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix -maxdepth 3 -type f \( -name '.env' -o -name '.env.' -o -name '.envrc' \) -print","rg -n "SUPABASE_DB_URL|DATABASE_URL|DB_URL|supabase" /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix -g '.py' -g '.toml' -g '.md' -g '*.sql'"],"deviations":[],"task_updates":[],"sense_check_acknowledgments":[]}
Assistant
{"output":"The mechanical checks found two blockers: no recorded U1 timing decision in the plan artifacts, and no usable DB-backed access in the current shell. I’m writing the requested batch checkpoint now and will not proceed to cleanup tasks.","files_changed":[],"commands_run":["rg -n "Sprint 12B cleanup|pre-Sprint-0|mid-migration|post-Sprint-11|deferred|post-canary|U1|U2|SUPABASE_DB_URL|DB-backed|before_execute" /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318","if [ -n "{SUPABASE_DB_URL:-}\" ]; then printf 'SUPABASE_DB_URL_SET\\n'; else printf 'SUPABASE_DB_URL_MISSING\\n'; fi; if [ -n \"{DATABASE_URL:-}" ]; then printf 'DATABASE_URL_SET\n'; else printf 'DATABASE_URL_MISSING\n'; fi; if command -v supabase >/dev/null 2>&1; then supabase --version; else printf 'SUPABASE_CLI_MISSING\n'; fi","rg -n "def db_store_factory|--backend|SUPABASE_DB_URL|pytest_addoption" tests/conftest.py tests/test_db_store.py","supabase status 2>&1 || true","git -C /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix status --short --branch","test -f /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318/execution_batch_1.json && sed -n '1,220p' /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318/execution_batch_1.json || printf 'NO_CHECKPOINT_FILE\n'"],"deviations":[],"task_updates":[],"sense_check_acknowledgments":[]}
Assistant
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[]
Prior batch deviations (address if applicable):
None
User action prerequisites:
No user_action prerequisites for this batch.
Batch-scoped sense checks:
[
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T8",
"description": "Read user_actions.md. For each before_execute action, programmatically verify completion using bash tools \u2014 grep .env for required keys, query the migrations table, curl the dev server, etc. Reading the file does NOT count as verification; you must run a command. For actions that genuinely cannot be verified mechanically (manual UI checks), explicitly ask the user. If anything is incomplete or unverifiable, mark this task blocked with reason and STOP.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T1",
"description": "In /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix, create the cleanup gate inventory and establish the pre-cleanup baseline. Audit candidates using source-backed searches for UNUSED, AMBIGUOUS, deprecated handler names, schema/status values, migration-only columns, handler exports, control intents, resident tools, store protocol methods, file-store and DB-store paths, Supabase migrations, debug/progress/direct emitters, and DB copy-table constants. Record deletion/deadness proof in the PR description or an existing tracked audit fixture. Run and capture baseline results separately from later regressions for: pytest tests/test_config.py tests/test_store_contract_adapter.py tests/test_file_store.py tests/test_db_store.py tests/test_control.py tests/test_resident_runtime_profile.py tests/test_resident_cloud_tools.py.",
"depends_on": [
"T8"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T2",
"description": "Implement PR 1: turbo-mode scaffolding cleanup only. Verify turbo is invalid via current config tests, search top-level package code while excluding vendored megaplan/agent/, remove only stale config/docs/defaults/CLI/help/branches tied to unsupported turbo robustness mode, and avoid touching vendored Hermes provider/model strings where turbo is legitimate. Run the focused validation for this PR: pytest tests/test_config.py tests/test_modes_helpers.py tests/test_profiles.py.",
"depends_on": [
"T8",
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T3",
"description": "Implement PR 2: UNUSED handler deletion only for candidates that pass the deletion gate. Build the handler candidate list from handler exports, CLI parser registrations, control intents, resident/admin/cloud tool registrations, direct imports/public APIs, DB control messages, debug operations, progress/direct emitters, and tests. Check _default_handlers and SUPPORTED_CONTROL_INTENTS in megaplan/control.py, megaplan/handlers/__init__.py, resident tools, and all execution/review/init paths. Delete only handlers with complete proof; keep and document ambiguous candidates. Run: pytest tests/test_control.py tests/test_init_plan.py tests/test_execute.py tests/test_review.py tests/test_resident_runtime_profile.py tests/test_resident_cloud_tools.py.",
"depends_on": [
"T8",
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T4",
"description": "Implement PR 3: pyproject dependency dedupe without breaking Hermes extras. Normalize duplicate dependency spelling and ownership across top-level pyproject.toml and megaplan/agent/pyproject.toml; keep default install deps minimal, db owning psycopg, and [agent] owning every dependency required by megaplan/hermes_worker.py and vendored Hermes startup. Do not remove or weaken top-level megaplan-harness[agent] unless an equivalent install path is implemented and documented. Validate with python -m build if available or the repo packaging equivalent, pytest tests/test_core_without_bakeoff.py tests/test_core_without_cloud.py tests/test_config.py, and the documented fresh-venv smoke: create /tmp/megaplan-agent-smoke, install pip install -e '.[agent]', run _import_hermes_runtime(), import model_tools, then clean up the venv. Treat this fresh-env smoke as a hard gate.",
"depends_on": [
"T8",
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T5",
"description": "Implement PR 4: AMBIGUOUS row/value cleanup only after proving deadness. First define what AMBIGUOUS means in this repo, since literal source searches may not find it. Cross-check schema literals in megaplan/schemas/arnold.py and megaplan/schemas/sprint1.py, DB copy constants in megaplan/store/db.py, file-store filtering and serialization/replay behavior, Supabase CHECK constraints, control resolver paths, resident tools, and tests. Remove only rows/values proven unused and update existing schema/migration-locking tests as needed. Run: pytest tests/test_schemas.py tests/test_db_store.py tests/test_file_store.py tests/test_multi_store.py tests/test_store_contract_adapter.py.",
"depends_on": [
"T8",
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T6",
"description": "Implement PR 5 only if cleanup changed live DB shape: decide whether a Supabase cleanup migration is needed. If no DB columns, enum/check values, indexes, or tables changed, skip the migration and document why. If needed, add one idempotent, non-destructive migration after supabase/migrations/202605060001_resident_orchestration.sql, unless the deletion gate proves destructive cleanup is safe. Update existing migration text assertions in tests/test_db_store.py or adjacent existing tests. Run pytest tests/test_db_store.py; also run DB-backed contract tests if a test DB fixture or SUPABASE_DB_URL is available.",
"depends_on": [
"T8",
"T3",
"T5"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T7",
"description": "Final verification task: run the full affected validation package and verify the cleanup set works end to end. Re-run all focused tests for touched categories, always including resolver/store contract tests: pytest tests/test_control.py tests/test_store_contract_adapter.py tests/test_file_store.py tests/test_db_store.py. Re-run the Hermes [agent] fresh-env smoke after any pyproject change. If cleanup is pre-Sprint-0 or mid-migration, regenerate affected baselines and rerun resolver tests before comparison/canary. Write a short throwaway verification script only where a cleanup changed behavior that is not already covered by the existing commands, run it to confirm the specific behavior, then delete it. If any test fails, read the error, fix the code, and re-run until the relevant suite passes or a real external dependency blocks it.",
"depends_on": [
"T8",
"T2",
"T3",
"T4",
"T5",
"T6"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
}
],
"watch_items": [
"This is optional cleanup, not a migration prerequisite. Defer rather than force changes that invalidate frozen migration baselines.",
"One PR per cleanup category; avoid bundling handler/schema/store/packaging changes together.",
"UNUSED status is not deletion proof. Handler deletion needs proof across CLI wiring, control intents/default handlers, resident/admin/cloud tools, direct imports, tests, DB control messages, debug paths, and progress/direct emitters.",
"AMBIGUOUS may be an external audit classification rather than a literal source string; do not delete schema/status values without proving file store, DB store, migrations, tests, resolver, resident tools, and replay paths are clean.",
"Pyproject dedupe must preserve the top-level megaplan-harness[agent] install contract and the _import_hermes_runtime() smoke in a fresh venv.",
"Do not touch vendored Hermes internals unless directly required; turbo inside megaplan/agent/ may be a valid provider/model string.",
"Supabase cleanup migration is optional and should not be created as a no-op. Add SQL only for live DB shape changes.",
"If cleanup lands mid-migration or before Sprint 0, regenerate affected baselines and rerun resolver/store tests before comparison or canary.",
"Existing baseline failures must be recorded separately from regressions introduced by cleanup.",
"The likely project is /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix; confirm before editing."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does the inventory identify every cleanup candidate and show the Section 8A proof sources, and are pre-existing test failures separated from cleanup-caused failures?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "Did turbo cleanup remove only unsupported top-level robustness scaffolding while leaving vendored Hermes turbo provider/model references untouched?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "For every deleted handler, is there explicit proof that no CLI, control intent, resident/admin/cloud tool, DB message, debug path, progress/direct emitter, test, or public import still targets it?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "After dependency dedupe, does pip install -e '.[agent]' in a fresh venv successfully import _import_hermes_runtime() and model_tools without weakening default install boundaries?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "Are removed schema/status rows proven dead across schemas, file store, DB store constants, Supabase constraints, tests, resolver paths, resident tools, and serialization/replay?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Was a Supabase migration skipped when DB shape did not change, or made idempotent and justified when DB shape did change?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Do all focused category tests, resolver/store contract tests, pyproject smoke gates, and any required regenerated baselines pass before cleanup is considered ready?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC8",
"task_id": "T8",
"question": "Were all before_execute user_actions programmatically verified before execution proceeded?",
"executor_note": "",
"verdict": ""
}
],
"user_actions": [
{
"id": "U1",
"description": "Confirm whether Sprint 12B cleanup is being executed pre-Sprint-0, mid-migration, post-Sprint-11, or deferred/post-canary.",
"phase": "before_execute",
"blocks_task_ids": [
"T2",
"T3",
"T4",
"T5",
"T6",
"T7"
],
"rationale": "The timing determines whether affected baselines must be regenerated immediately or only documented for later.",
"requires_human_only_reason": null
},
{
"id": "U2",
"description": "Provide or confirm access to SUPABASE_DB_URL or the repo's DB-backed test fixture if live DB-backed contract validation is required for a Supabase cleanup migration.",
"phase": "before_execute",
"blocks_task_ids": [
"T6",
"T7"
],
"rationale": "The executor can write and test code locally, but cannot invent missing DB credentials or infrastructure access.",
"requires_human_only_reason": null
},
{
"id": "U3",
"description": "If a Supabase cleanup migration is added and approved, trigger the migration in the target environment using the normal deployment process.",
"phase": "after_execute",
"blocks_task_ids": null,
"rationale": "Applying migrations to shared or production infrastructure is an operational action outside repo editing.",
"requires_human_only_reason": null
}
],
"meta_commentary": "Keep this as cleanup-only work. Start in megaplan-fix, preserve the one-PR-per-category boundary, and make deletion proofs first-class review artifacts. The highest-risk item is pyproject dedupe because the top-level package still promises megaplan-harness[agent]; the fresh-venv Hermes smoke is not optional. Handler and AMBIGUOUS cleanup should be conservative: if proof is incomplete, keep the code/value and document why. Do not add a Supabase migration unless source cleanup changes live DB shape. Treat existing baseline failures as environmental or pre-existing until proven otherwise, and re-run affected baselines if the timing decision makes this part of the migration comparison path.",
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Step 1: Define Section 8A deletion checklist and audit cleanup candidates",
"finalize_item_ids": [
"T1"
]
},
{
"plan_step_summary": "Step 2: Establish focused validation baseline before cleanup edits",
"finalize_item_ids": [
"T1"
]
},
{
"plan_step_summary": "Step 3: Remove stale turbo-mode scaffolding after proving contract safety",
"finalize_item_ids": [
"T2"
]
},
{
"plan_step_summary": "Step 4: Prove UNUSED handlers unreachable before deleting them",
"finalize_item_ids": [
"T3"
]
},
{
"plan_step_summary": "Step 5: Dedupe pyproject dependencies while preserving Hermes [agent] extra and smoke validation",
"finalize_item_ids": [
"T4"
]
},
{
"plan_step_summary": "Step 6: Audit and remove only proven-dead AMBIGUOUS schema/status rows or values",
"finalize_item_ids": [
"T5"
]
},
{
"plan_step_summary": "Step 7: Add optional Supabase cleanup migration only for live DB shape changes",
"finalize_item_ids": [
"T6",
"U2",
"U3"
]
},
{
"plan_step_summary": "Step 8: Re-run affected baselines, resolver/store tests, and packaging/Hermes validation",
"finalize_item_ids": [
"T7",
"U1"
]
},
{
"plan_step_summary": "Verify before_execute user_actions",
"finalize_item_ids": [
"T8"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All approved plan steps are mapped to executor tasks, with human-only operational inputs separated into user actions. U1 covers the sprint timing decision that affects baseline regeneration. U2 and U3 cover only infrastructure access and migration application; writing migration SQL remains an executor task. No implementation task is blocked on inferred permissions.",
"coverage_complete": true
},
"baseline_test_failures": [],
"baseline_test_command": "pytest --tb=no -q --no-header",
"baseline_test_note": "Run before cleanup edits in T1 and record any existing failures separately from cleanup regressions."
}
code
Debt watch items (do not make these worse):
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: for ordinary pairs, the new diagnosis is not well-supported by the repo. the current sync effect in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/usesegmentslotmode.ts already syncs url and primaryvariantid, and the regenerate path reads exactly starturl, endurl, startgenid, endgenid, startvariantid, and endvariantid from segmentslotmode.pairdata in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/domains/media-lightbox/hooks/usevideoregeneratemode.ts. adding thumburl and generationid to the sync does not, by itself, explain why an old image url is still being used for regular pairs. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the fix is incomplete for extra trailing slots. handlepairclick can populate activepairdata from trailingpairdata when pairindex === pairdatabyindex.size in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/usesegmentslotmode.ts, but the proposed sync effect only reads pairdatabyindex.get(segmentslotlightboxindex). for those trailing-slot cases fresh is undefined, so no image refresh happens. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the merge pseudocode does not actually sync 'all image fields' as claimed. it omits id and position from change detection, and when fresh.startimage or fresh.endimage becomes null it preserves the stale previous object instead of syncing that null state. as written, it also needs explicit null-guards around spreads of prev.startimage / prev.endimage to be safe in strict typescript. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the plan's claim that worker_state.py:200-204 (the 30-minute startup safety net) catches abandoned pods that exited before patching is slightly imprecise. line 200-204 only runs when in_startup_phase is true, which requires startup_phase to be in ('deps_installing', 'deps_verified', 'worker_starting') per line 161. a pod that exits before its first patch has startup_phase = none, so in_startup_phase is false and the code falls through to the normal timeout checks (active_stale / not_claiming) at line 207+, not the 30-minute startup cap. both paths eventually reap the worker, so the end result is the same, but the overview's reasoning (naming 200-204 specifically) is wrong. worth correcting so future readers don't mis-reason about the invariant. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: checked worker_state.py line 161 (in_startup_phase = startup_phase in (...)) against the plan's assumption that subsequent lenient writes are safe. if deps_installing succeeds but deps_verified silently fails, startup_phase stays at 'deps_installing' and the 30-minute cap from line 200-204 applies — even though the pod is actually progressing through uv sync. on a slow runpod image with cold wheel downloads, uv sync --extra cuda124 plus wan2gp deps can take 20+ minutes. there's no concrete benchmark in the plan that says the 30-minute cap is safely above the expected sync time; if uv sync legitimately takes 25 minutes and the deps_verified patch fails on a transient network blip, the orchestrator will terminate a healthy pod. plan should either bump the cap or note that deps_verified swallowing is acceptable because the cap is generously above typical sync time. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the path-mapping defect from the previous iteration is fixed, but a different technical gap remains around self_refiner. repository search shows shared.utils.self_refiner is imported by wan2gp/wgp.py, wan2gp/models/ltx2/ltx_pipelines/distilled.py, ti2vid_one_stage.py, ti2vid_two_stages.py, wan2gp/models/ltx2/ltx_pipelines/utils/helpers.py, and wan2gp/models/wan/any2video.py; the v4 plan still aligns wan2gp/shared/utils/self_refiner.py to upstream head without any concrete runtime step that exercises those code paths after the change, so the only repo-documented behavior check for that file is still missing from the executable body. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: the direct adapter still has a correctness risk around resolution parity. current vibecomfy ready templates hardcode image dimensions (image/z_image uses emptysd3latentimage 1024x1024 and image/qwen_image_2512 uses 768x768), while vibecomfy run exposes no --resolution flag; the revised plan says a temporary scratchpad/input file may be generated only if supported, otherwise resolution is left out. that means a vibecomfy-supported direct route can silently ignore the worker's resolution param unless scratchpad resolution patching is made mandatory for supported direct routes or the support is explicitly limited to default-resolution smoke fixtures. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: route support states: the revised step 5 says to classify ltx control rows as vibecomfy_supported, wgp_only, vibecomfy_unsupported, new, or blocked, but the current worker routesupportstate enum at reigh-worker/source/task_handlers/tasks/template_routing.py:17-20 only supports wgp_only, vibecomfy_supported, and vibecomfy_unsupported. the plan needs to either extend the enum/report schema for new/blocked or keep new/blocked strictly as fixture disposition values mapped to an existing runtime support state. (flagged 1 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: startup tests: step 11 still needs sharper wording for vibecomfy_memory_profile. the current startup template exports it only inside if [ "$reigh_backend" = "vibecomfy" ] && [[ "$reigh_worker_profile" =~ ^[0-9]+$ ]] at worker_startup.template.sh lines 28-30, while the revised plan says to assert it is exported consistently when proving both wgp and vibecomfy render from the same template. if implemented as an unconditional wgp+vibecomfy export assertion, the test would conflict with the current template's intentional conditional behavior. (flagged 1 times across 1 plans)
[DEBT] are-the-success-criteria-well-prioritized-and-verifiable: are the success criteria well-prioritized and verifiable?: the attached success criteria are stale and do not match the current plan body. they still require 'no usestate for activepairdata', 'setactivepairdata fully removed', 'sync effect deleted', and 'onpairclick simplified to (pairindex: number) => void', which are the opposite of the current targeted-sync plan. as presented, the criteria are not usable for review or execution. (flagged 1 times across 1 plans)
[DEBT] audio-loading: getaudiodata in useeffect removes render-readiness signal (flagged 1 times across 1 plans)
[DEBT] audio-loading: same as correctness-3 — preview/render parity risk (flagged 1 times across 1 plans)
[DEBT] audio-loading: preview/render parity partially satisfied (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: overlapping clips use first-found, volume not scaled (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: same as audio-reactivity-1 — overlapping/volume-adjusted clips diverge from audible mix (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: textclip missing globalframeprovider (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: same as audio-reactivity-2 — textclipsequence missing provider (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: textclip effects surface not covered (flagged 1 times across 1 plans)
[DEBT] audio-reactivity: continuous effects shared by visual and text clips (flagged 1 times across 1 plans)
[DEBT] batch-generation-pipeline: enhancement in usegeneratebatch before generatevideo() could compute prompts against a stale pair snapshot if mutations are still in flight. (flagged 1 times across 1 plans)
[DEBT] cas-intern-short-circuit: symlink short-circuit comparison may produce false negatives on macos-like layouts where project_dir contains symlinked segments (/var → /private/var) because resolve(strict=true) on the source returns canonical paths but project_dir / cas_dirname may be non-canonical. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: cascade lookup only reads params->>'orchestrator_task_id_ref', missing shared reference paths and orchestrator-self detection. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: duplicate of correctness-2 + correctness-3: invalid sql syntax and narrow cascade lookup. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: shared orchestrator-reference helpers not referenced. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: orchestrator tasks that crash don't get orchestrator-self cascade. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-cascade-paths: hardcoded params->>'orchestrator_task_id_ref' misses other reference paths. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: crash requeue sql does not increment attempts, risking infinite requeue loop. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: duplicate of correctness-1: attempts never advance on crash requeue. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: missing attempts increment location in heartbeat sql. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-retry: step 6 under-scoped for real retry convergence and orchestrator-self handling. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-sql-syntax: bare select inside plpgsql is invalid — needs perform. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-testing: no multi-crash convergence test exercising attempts 0→1→2→3. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-testing: no validation that plpgsql body executes successfully. (flagged 1 times across 1 plans)
[DEBT] crash-recovery-testing: criteria don't require proof of crash requeue convergence. (flagged 1 times across 1 plans)
[DEBT] criteria-verifiability: 'no unsafe .maybesingle()' criterion requires judgment about column uniqueness. (flagged 1 times across 1 plans)
[DEBT] criteria-verifiability: decision documentation location not specified. (flagged 1 times across 1 plans)
[DEBT] criteria-verifiability: the must criterion requiring 5 task types to exist as active db rows is not verifiable from code diff alone — it requires a live db query. (flagged 1 times across 1 plans)
[DEBT] db-fallback-testing: no new automated test for the db fallback dispatch path or dependant_on preservation for raw worker families. (flagged 1 times across 1 plans)
[DEBT] dependency-resolution: dependency resolution: the plan does not lock down the active python-version matrix even though the repo currently splits between python 3.10 local installs and a python 3.11 runpod image. (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 package is internally inconsistent. the plan body says to keep activepairdata in usestate and make phase 2 optional, but the attached metadata and success criteria still describe the previous derive-via-usememo / remove-setactivepairdata / simplify-onpairclick plan. that means the approved-plan requirements are only partially coherent as presented. (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 linux distro note is documentation-only; the generated install command in step 7 still runs apt-get install python3.10-venv python3.10-dev ffmpeg without any pre-check that the package exists. users on ubuntu 24.04+ who ignore the doc and try to copy-paste the command will hit a confusing e: unable to locate package python3.10-venv from apt rather than a targeted error from commandutils.ts. a one-line detection pre-check (e.g., apt-cache show python3.10-venv >/dev/null 2>&1 || { echo 'install deadsnakes ppa first — see readme'; exit 1; }) would convert the silent failure into an actionable error, but the plan does not add this. (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 the revised v4 body against docs/wan2gp_fork_migration_plan.md sprint 2. the repo plan doc still lists an "ltx-2 self_refiner smoke against the pre-sprint behavioral baseline" as a sprint 2 verification gate and repeats that smoke in the functionality-preservation checks, but the revised execution steps no longer schedule that smoke anywhere; it survives only as an info-level metadata criterion. because wan2gp/shared/utils/self_refiner.py remains an explicit sprint 2 deliverable, the revised plan still only partially carries forward the verification package described in the source migration plan. (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?: worker integration: the migration doc describes the per-call profile override gap as involving reigh-worker adapter handling of override_profile before constructing vibecomfy sessionconfig, but the plan limits sprint 1 per-run work to the vibecomfy cli/runtime. that may be acceptable for a vibecomfy-library mvp, but it does not fully exercise the production-facing per-task override semantics called out in the overall context. (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 residual issue-hint tension remains for resolution handling. the plan acknowledges current vibecomfy run lacks a resolution flag, but allows the adapter to leave resolution and other template-specific values unwired for sprint 2. because z_image_turbo and qwen_image_2512 are marked vibecomfy-supported direct routes, this may not preserve the existing worker task-parameter contract for tasks that provide a non-default resolution. (flagged 1 times across 1 plans)
[DEBT] direct-route-parameter-parity: direct route parameter parity: vibecomfy-supported direct routes may ignore the worker resolution parameter. (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?: phase 1 still misses a real supporting-data location: trailingpairdata lives outside pairdatabyindex in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/usesegmentslotpresentationadapter.ts, but the proposed sync logic only considers pairdatabyindex. if trailing slot regenerate is part of the bug surface, that location is not covered. (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?: the non-swallowing helper update_worker_phase_strict is a new shell function, but phase 1 step 2 introduces it only as pseudo-code. there is no concrete note that the helper must handle supabase http non-2xx responses as failures (curl returns 0 even on http 4xx/5xx by default unless -f or --fail-with-body is used). if the implementer ports update_worker_phase verbatim with only || return 0 removed, a 500 from supabase would still report success because curl's exit code is 0. the plan should specify curl --fail or explicit http status code checking in the strict variant. (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?: the supporting-infrastructure review still finds one missing check. in docs/wan2gp_fork_migration_plan.md, sprint 2's verification matrix and risk register both single out self_refiner as a distinct drift-upgrade surface with its own smoke and its own silent-behavior-change risk, but the revised v4 body updates the file without keeping that supporting verification step in the actual execution checklist. (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?: documentation/data gap: the sprint exit criteria require profiles 1 and 3 to have vram and wall-clock data, but the plan puts that only in metadata as an info-level criterion and does not schedule a concrete artifact location or command for recording the measurements. the implementation could satisfy all unit tests while still missing one of the explicit exit criteria. (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?: the supporting infrastructure for resolution is still incomplete if direct vibecomfy routes are considered production-supported. vibecomfy has a vibecomfy.patches.resolution helper and the cli can load scratchpad files with allow_scratchpad=true, but the plan does not require using that path; it permits leaving resolution out for sprint 2. (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?: checked vibecomfy profile wording against vibecomfy/tests/test_ready_templates.py. the revised plan says to add the production template to representative compile profile coverage 'alongside the existing dry-run id', but the dry-run id is not currently in profile_smoke_template_ids; only video/wanvideo_wrapper_22_5b_i2v and video/wan_t2v are. this is a small wording mismatch rather than a functional blocker because adding either the production id alone or both ids would still satisfy sprint 4. (flagged 1 times across 1 plans)
[DEBT] edge-test-config: plan's vitest commands use the wrong config entry point. (flagged 1 times across 1 plans)
[DEBT] edge-test-config: same as verification-3: wrong vitest config in validation commands. (flagged 1 times across 1 plans)
[DEBT] edge-test-config: success criterion references wrong test command. (flagged 1 times across 1 plans)
[DEBT] error-handling: db loader error handling convention mismatch (plan says log+null, existing loaders throw) (flagged 1 times across 1 plans)
[DEBT] error-propagation-logging: generation.ts and handler.ts logging endpoints are not directly tested. (flagged 1 times across 1 plans)
[DEBT] error-propagation-testing: no end-to-end regression test for the full symptom chain (db error → tocompletionerror metadata → handler log). (flagged 1 times across 1 plans)
[DEBT] error-propagation-testing: handler.ts metadata surfacing criterion lacks a concrete automated verifier. (flagged 1 times across 1 plans)
[DEBT] error-propagation-testing: main issue only partially validated without an integration test. (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 step 2 retry loop uses a naked sleep 2 between attempts, which adds up to 6 seconds of latency on the happy path when the first patch eventually succeeds on attempt 2 or 3. for pods where supabase is reachable but slow during the initial moments of a cold runpod start, the retry logic is fine. however, if the first attempt fails with a tls handshake delay and the retry loop sleeps 2s per attempt regardless of whether curl itself has been blocking for tens of seconds, the total startup latency penalty could be substantial. this is a minor tuning concern, not a correctness issue. (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?: finding callers of the changed module shows that shared.utils.self_refiner is consumed by wan2gp/wgp.py, wan2gp/models/ltx2/ltx2_handler.py, multiple ltx2 pipeline modules, and wan2gp/models/wan/any2video.py. the revised validation steps still only drive the three bridge getters in source/runtime/wgp_ports/vendor_imports.py; none of the scheduled commands execute a real self_refiner caller, so the plan does not yet verify the main caller shapes for the other explicit sprint 2 file change. (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?: checked direct queue caller values in db_task_to_generation_task(): direct image tasks may carry resolution, steps/num_inference_steps, seed, and override_profile. the revised adapter plan covers seed, steps, and memory profile but not guaranteed resolution propagation, so it does not handle all relevant direct-route caller arguments for a supported vibecomfy direct route. (flagged 1 times across 1 plans)
[DEBT] gpu-branching-test-matrix: linux cuda128 path under-verified (flagged 1 times across 1 plans)
[DEBT] gpu-branching-ui-surface: nvidia-50 option is exposed on linux in the ui but linux cuda128 smoke test is missing (flagged 1 times across 1 plans)
[DEBT] hook-abstraction: usepairsettingshandler becomes trivial with single caller — keeping it is extra indirection. (flagged 1 times across 1 plans)
[DEBT] hype-mirror-cas-coverage: hype-mirrored files whose parent step does not declare matching produces will not be cas-interned, even with the follow_symlinks=false edit. (flagged 1 times across 1 plans)
[DEBT] is-the-change-in-the-right-place-and-would-it-break-any-callers: is the change in the right place, and would it break any callers?: the optional cleanup steps are not in the right place yet. pairregionslayer does not receive pairdatabyindex today; its props are only images, imagepositionswithpending, pairinfowithpending, and callback/display props in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/timeline/timelinecontainer/components/pairregionslayer.tsx. so step 4's 'pass pairdatabyindex.get(pairindex) directly' would require new prop plumbing or a different seam. (flagged 1 times across 1 plans)
[DEBT] is-the-scope-and-scale-of-the-change-appropriate: is the scope and scale of the change appropriate?: phase 2 is still under-specified for execution. step 4 says pairregionslayer should either pass pairdatabyindex.get(pairindex) directly or 'just pass the index + frame-only data', which are materially different designs. if phase 2 is kept in the plan, it needs a single concrete direction. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: the plan still lacks an explicit automated regression test for the reported bug. step 2 is manual ('check that usevideoregeneratemode now gets the fresh url'), but there is no concrete test that opens a segment slot, changes the primary variant data, and asserts that the regenerate path sees the fresh url, generationid, and primaryvariantid. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: the current usesegmentslotmode test remains only a smoke test in /users/user_c042661f/documents/reigh-workspace/reigh-app/src/tools/travel-between-images/components/shotimageseditor/hooks/tests/usesegmentslotmode.test.ts, and the plan does not add behavior coverage for the new sync effect. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: no verification step covers the trailing-slot branch, even though the proposed phase 1 logic currently misses trailingpairdata refreshes. (flagged 1 times across 1 plans)
[DEBT] legacy-data-backfill: the step 8 diagnostic query only detects cross-shot pair_shot_generation_id misassociations, not same-shot misassociations caused by timeline reordering within a shot. (flagged 1 times across 1 plans)
[DEBT] lookup-consistency: other repo call sites use unordered .limit(1).maybesingle() and will remain inconsistent. (flagged 1 times across 1 plans)
[DEBT] lookup-consistency: other call sites with same unsafe pattern not covered. (flagged 1 times across 1 plans)
[DEBT] lora-management: lora tools simplified vs full ui parity (multi-stage metadata, private loras) (flagged 1 times across 1 plans)
[DEBT] media-lightbox-persistence: variant switches do not clear/restore inpaintprompt, so stale prompt state can leak across variants with no cached prompt. (flagged 1 times across 1 plans)
[DEBT] media-lightbox-persistence: removing prompt/numgenerations from the variant-keyed localstorage cache means all variants within a generation share the same prompt. this broadens existing debt-002 (variant prompt leakage). (flagged 1 times across 1 plans)
[DEBT] media-lightbox-segment-slot: media lightbox / segment slot: the targeted sync rationale does not fully explain the reported stale-url bug for regular pairs, and the proposed effect still misses trailing-slot refreshes because those can come from trailingpairdata rather than pairdatabyindex. (flagged 1 times across 1 plans)
[DEBT] number-input-nullable: plan doesn't explicitly state onchange must also accept null, though step 3 depends on it. (flagged 1 times across 1 plans)
[DEBT] number-input-nullable: disputed v1 flag — original concern about bulkclippanel being unimplementable. (flagged 1 times across 1 plans)
[DEBT] number-input-nullable: onchange null filtering not explicitly addressed in plan. (flagged 1 times across 1 plans)
[DEBT] number-input-testing: no planned tests for numberinput shared component or bulkclippanel nullable draft flow. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: pre-existing individual_travel_segment children won't drive orchestrator completion through segment_type_config after deploy. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: missing compatibility seam in orchestratorcore.ts:123-126 for old individual_travel_segment rows. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: mixed old/new data during rollout can leave old orchestrators without completion counting. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: no test or deployment guard for pre-existing individual_travel_segment children completing after worker change. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: plan overstates backward compatibility for existing data. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: missing rollout compatibility step for in-flight individual_travel_segment tasks. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: pre-deploy individual_travel_segment child completing post-rollout won't be treated as segment task by checkorchestratorcompletion. (flagged 1 times across 1 plans)
[DEBT] orchestrator-completion-rollout: orchestrator.test.ts criterion too narrow to verify old individual_travel_segment compatibility. (flagged 1 times across 1 plans)
[DEBT] pair-settings-plumbing: handleopenpairsettings(pairindex, pairframedata) path in timelinetrackprelude, segmentoutputstrip, and usesegmentoutputstrip not explicitly named. (flagged 1 times across 1 plans)
[DEBT] pair-settings-plumbing: same as flag-002 — segmentoutputstrip and usesegmentoutputstrip still carry pairframedata. (flagged 1 times across 1 plans)
[DEBT] pair-settings-plumbing: timelinetrackprelude and segmentoutputstrip still forward (pairindex, pairframedata). (flagged 1 times across 1 plans)
[DEBT] plan-scope: step 3 is larger than a light megaplan warrants. (flagged 1 times across 1 plans)
[DEBT] planning-metadata: planning metadata: the attached metadata and success criteria still describe a different implementation than the current plan body, which risks sending execution and review down the wrong path. (flagged 1 times across 1 plans)
[DEBT] planning-metadata: success criteria don't cover wave 4 scope (flagged 1 times across 1 plans)
[DEBT] position-key-semantics: plan investigates a unique constraint on (parent_generation_id, child_order) which doesn't match repo semantics for position keys. (flagged 1 times across 1 plans)
[DEBT] position-key-semantics: plan weights toward child_order rather than pair_shot_generation_id as the key that matters. (flagged 1 times across 1 plans)
[DEBT] position-key-semantics: unique constraint on (parent_generation_id, child_order) not supported by repo semantics. (flagged 1 times across 1 plans)
[DEBT] prompt-composition: the plan's step 1 signature includes textbeforeprompts/textafterprompts parameters that would be applied before enhancement, double-wrapping the prompt. (flagged 1 times across 1 plans)
[DEBT] ready-template-snapshots: step 4.2 drops markdownnote nodes but step 4.5 and the success criteria require class_type/widget parity with pre-refactor snapshots, which currently include markdownnote nodes. (flagged 1 times across 1 plans)
[DEBT] ready-template-snapshots: same tension as issue_hints v2: drop-markdownnote vs. snapshot parity. (flagged 1 times across 1 plans)
[DEBT] reigh-worker-orchestrator-dockerfile: step 7 §3 claims gpu_orchestrator/dockerfile has wan2gp install steps; current main is generic and contains none. (flagged 1 times across 1 plans)
[DEBT] reigh-worker-orchestrator-runpod-startup: gpu_orchestrator/runpod/startup_script.py embeds headless-wan2gp in _workdir_discovery_snippet and is not named explicitly in step 7 §3's checklist. (flagged 1 times across 1 plans)
[DEBT] route-support-states: route support states: new and blocked are added to the plan as worker support classifications but are not representable in the current routesupportstate enum. (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?: checked the broader runtime surface after the v4 path fix. sprint 2 is still moving two behavior-sensitive seams rather than just the import-path contract: the wan2gp/ mount path and the self_refiner runtime. step 6.2 covers only the three vendor_imports getters, while the 6-file travel suite and the bridge-contract tests do not mention self_refiner, so dropping the dedicated self-refiner smoke from the runnable steps leaves the broader downstream surface of that changed file under-covered. (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 supported direct-route scope is still broader than the adapter's guaranteed parameter surface. db_task_to_generation_task() currently carries direct task params such as resolution, steps, and seed into wgp generation, but the vibecomfy cli path only guarantees prompt, seed, steps, and memory profile; resolution remains optional/documentation-only in the plan. (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?: checked the revised child-route scope against migration-thresholds.yaml. the threshold corpus currently has wan/vace entries for travel_segment__model-wan22_vace__... and join_clips_segment__model-wan22_vace__..., but only an i2v entry for individual_travel_segment; the revised plan makes individual_travel_segment with vace model params a must-level worker fixture, which broadens the worker smoke scope beyond the currently tracked wan/vace threshold routes. (flagged 1 times across 1 plans)
[DEBT] self-refiner-verification: self-refiner verification: the revised plan still aligns wan2gp/shared/utils/self_refiner.py without scheduling the sprint 2 ltx-2 self_refiner smoke that docs/wan2gp_fork_migration_plan.md defines as the behavior-preservation check for that drift upgrade. (flagged 1 times across 1 plans)
[DEBT] settings-defaults: workerrepopath default can go stale if user switches computertype before editing path (flagged 1 times across 1 plans)
[DEBT] settings-resolution: settings cascade missing — shot-only read diverges from form's defaults→user→project→shot merge (flagged 1 times across 1 plans)
[DEBT] settings-resolution: settings cascade missing — shot-only read (flagged 1 times across 1 plans)
[DEBT] shared-component-compatibility: numberinput changes affect callers outside video-editor (billing, travel-between-images, phaseconfigselectormodal). (flagged 1 times across 1 plans)
[DEBT] shared-component-compatibility: shared ui component blast radius not audited in plan. (flagged 1 times across 1 plans)
[DEBT] shot-linking-testing: no test covers the linkgenerationtoshot error/catch branches. (flagged 1 times across 1 plans)
[DEBT] signature-propagation: plan doesn't explicitly name timeline/index.tsx and segmentslotcontracts.ts for updates. (flagged 1 times across 1 plans)
[DEBT] signature-propagation: same as flag-001 — timeline/index.tsx and segmentslotcontracts.ts not in checklist. (flagged 1 times across 1 plans)
[DEBT] signature-propagation: five supporting contract/plumbing sites not named in the checklist. (flagged 1 times across 1 plans)
[DEBT] task-types-verification: step 3 cites wrong migration file (task_cost_configs instead of task_types) as evidence for db fallback path. (flagged 1 times across 1 plans)
[DEBT] task-types-verification: step 3 should cite task_types source, not task_cost_configs. (flagged 1 times across 1 plans)
[DEBT] task-types-verification: plan doesn't verify travel_segment and travel_stitch exist as active task_types rows using the correct table. (flagged 1 times across 1 plans)
[DEBT] test-coverage: current generation-child.test.ts is only a smoke test. (flagged 1 times across 1 plans)
[DEBT] test-coverage: no plan to verify other lookup paths choose rows consistently. (flagged 1 times across 1 plans)
[DEBT] test-coverage: no new tests for db loader or travel param merge path (flagged 1 times across 1 plans)
[DEBT] test-coverage: must-level criteria depend on manual testing rather than automated assertions (flagged 1 times across 1 plans)
[DEBT] test-coverage: no new unit tests for wave 4 tools (flagged 1 times across 1 plans)
[DEBT] test-coverage: must criteria backed by manual testing only (flagged 1 times across 1 plans)
[DEBT] test-infrastructure: no test fixtures for resources table (flagged 1 times across 1 plans)
[DEBT] timeline-drag-coordination: plan keeps two hooks instead of a single coordinator (flagged 1 times across 1 plans)
[DEBT] timeline-drag-coordination: brief says single coordinator but plan keeps separate hooks (flagged 2 times across 1 plans)
[DEBT] timeline-drag-coordination: pendingopsref retained despite brief suggesting removal (flagged 1 times across 1 plans)
[DEBT] timeline-drag-coordination: wrapper-bound listener mount wiring under-specified (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: read path still assembles config and registry from separate requests (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: poll sync verification not structurally changed (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend save helpers not wired to new rpc (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: read infrastructure not updated (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend tests not in validation list (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend callers not migrated (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: broader persistence-contract problem (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: backend split-save not addressed (flagged 1 times across 1 plans)
[DEBT] timeline-persistence: split polling can combine config and registry from different snapshots (flagged 1 times across 1 plans)
[DEBT] timeline-scaling: the plan only specifies a concrete fix for the default scale(1) case; explicit-scale tracks may still break blend-mode effects. (flagged 1 times across 1 plans)
[DEBT] timeline-snap-threshold: threshold is generous (duration) rather than zoom-scaled (8px) (flagged 1 times across 1 plans)
[DEBT] timeline-snap-threshold: computedropposition does not pass a zoom-scaled threshold override (flagged 1 times across 1 plans)
[DEBT] travel-continuations: smooth continuations not threaded — agent tasks won't have continuation_config even when shot settings enable it (flagged 1 times across 1 plans)
[DEBT] travel-continuations: continuation_config omitted from form parity (flagged 1 times across 1 plans)
[DEBT] travel-payload-cleanup-scope: plan scope narrower than original user request (flagged 1 times across 1 plans)
[DEBT] travel-payload-cleanup-scope: broader create-task contract problem left untouched (flagged 1 times across 1 plans)
[DEBT] travel-payload-readers: phase 4 app-side reader audit incomplete (flagged 1 times across 1 plans)
[DEBT] travel-payload-readers: phase 4 field inventory incomplete for app-side readers (flagged 1 times across 1 plans)
[DEBT] travel-request-contract: image_variant_ids is in frontend request contract (flagged 1 times across 1 plans)
[DEBT] travel-request-contract: image_variant_ids contract change (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: spawn_worker does not internally call start_worker_process; harness must call both explicitly (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: worker_id and runpod_id must be generated and threaded distinctly; plan currently uses pod_id as both (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-1 — spawn_worker two-step misstatement (flagged 2 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-2 — worker_id/runpod_id propagation across takeover and restore paths (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-1 + correctness-2 — missing create_worker_record glue and start_worker_process integration (flagged 1 times across 1 plans)
[DEBT] variant-update-b-fresh-takeover: duplicate of correctness-2 — caller contract for spawn_worker requires worker_id, not pod_id (flagged 1 times across 1 plans)
[DEBT] verification: no end-to-end render test for audio analysis timing (flagged 1 times across 1 plans)
[DEBT] verification: no automated coverage for text clips or overlapping clips with audio effects (flagged 1 times across 1 plans)
[DEBT] verification-coverage: no automated test exercises the full segment-slot opening path after cleanup. (flagged 1 times across 1 plans)
[DEBT] verification-coverage: no automated coverage that clicking a pair opens the correct modal after cleanup. (flagged 1 times across 1 plans)
[DEBT] verification-coverage: zero behavioral change criterion is not verifiable from tsc + existing tests alone. (flagged 1 times across 1 plans)
[DEBT] verification-workflow: tsconfig.app.json excludes test files, so tsc won't catch test breakage. (flagged 1 times across 1 plans)
[DEBT] worker-test-staleness: worker test in test_additional_coverage_modules.py:37 may assert stale payload structure (task_type vs family). (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: [T8]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC8]
- 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/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318/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.
- finalize.json includes baseline_test_failures — a list of test IDs that were already failing before your changes. If a test fails and its ID appears in baseline_test_failures, it is pre-existing — do not scope-creep into fixing it. If baseline_test_failures is null, the baseline could not be captured; use your judgment but err on the side of assuming failures are regressions. You MUST still re-run the FULL test suite with your changes applied — pre-existing failures do not excuse skipping verification. 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":"T8 is blocked. I read the sprint-specific user_actions.md and mechanically checked both before_execute actions. U1 has no recorded timing decision in the plan artifacts, so it remains unverifiable/incomplete. U2 has no usable DB-backed validation access in this environment: SUPABASE_DB_URL and DATABASE_URL are missing, the repo DB fixture skips without --backend db plus SUPABASE_DB_URL, and supabase status could not inspect the local stack because Docker socket access was denied. I stopped before executing any cleanup tasks.","files_changed":[".megaplan/plans/sprint-12b-optional-cleanup-20260507-0318/execution_batch_1.json"],"commands_run":["pwd && rg --files -g 'user_actions.md' -g 'execution_batch_1.json' -g '.env*'","find /Users/user_c042661f/Documents/reigh-workspace -maxdepth 2 -type d -name 'megaplan-fix' -o -name '.megaplan'","find /Users/user_c042661f/Documents/reigh-workspace -name user_actions.md -print","ls -la /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318 && test -w /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318 && echo WRITABLE || echo NOT_WRITABLE","find /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix -maxdepth 2 -type f \( -name '.env' -o -name '.env.local' -o -name '.envrc' -o -name 'pyproject.toml' \) -print","sed -n '1,220p' /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318/user_actions.md","find /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix -maxdepth 3 -type f \( -name '.env' -o -name '.env.' -o -name '.envrc' \) -print","rg -n "SUPABASE_DB_URL|DATABASE_URL|DB_URL|supabase" /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix -g '.py' -g '.toml' -g '.md' -g '*.sql'","rg -n "Sprint 12B cleanup|pre-Sprint-0|mid-migration|post-Sprint-11|deferred|post-canary|U1|U2|SUPABASE_DB_URL|DB-backed|before_execute" /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318","if [ -n "{SUPABASE_DB_URL:-}\" ]; then printf 'SUPABASE_DB_URL_SET\\n'; else printf 'SUPABASE_DB_URL_MISSING\\n'; fi; if [ -n \"{DATABASE_URL:-}" ]; then printf 'DATABASE_URL_SET\n'; else printf 'DATABASE_URL_MISSING\n'; fi; if command -v supabase >/dev/null 2>&1; then supabase --version; else printf 'SUPABASE_CLI_MISSING\n'; fi","rg -n "def db_store_factory|--backend|SUPABASE_DB_URL|pytest_addoption" tests/conftest.py tests/test_db_store.py","supabase status 2>&1 || true","git -C /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix status --short --branch","test -f /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318/execution_batch_1.json && sed -n '1,220p' /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318/execution_batch_1.json || printf 'NO_CHECKPOINT_FILE\n'","find /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix/supabase/.temp -maxdepth 2 -type f -print 2>/dev/null | sed -n '1,40p'","rm /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix/supabase/.temp/cli-latest","rmdir /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix/supabase/.temp","git -C /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix status --short --branch","sed -n '1,260p' /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318/execution_batch_1.json","git -C /Users/user_c042661f/Documents/reigh-workspace status --short -- .megaplan/plans/sprint-12b-optional-cleanup-20260507-0318/execution_batch_1.json && git -C /Users/user_c042661f/Documents/reigh-workspace/megaplan-fix status --short --branch"],"deviations":["No implementation or tests were run because T8 explicitly requires STOP when before_execute actions are incomplete or unverifiable."],"task_updates":[{"task_id":"T8","status":"blocked","executor_notes":"Read sprint-specific user_actions.md and mechanically checked both before_execute actions. U1 is incomplete/unverifiable: rg across the plan directory found only prompts/criteria mentioning pre-Sprint-0, mid-migration, post-Sprint-11, deferred/post-canary, U1, and no recorded cleanup timing decision. U2 is incomplete for DB-backed validation access: shell checks reported SUPABASE_DB_URL_MISSING and DATABASE_URL_MISSING; repo tests define a db_store_factory fixture, but tests/conftest.py shows it skips unless --backend db is passed and SUPABASE_DB_URL is set. supabase CLI exists (2.75.0), but supabase status could not inspect the local stack because Docker socket access was denied. Stopped before cleanup execution.","files_changed":[".megaplan/plans/sprint-12b-optional-cleanup-20260507-0318/execution_batch_1.json"],"commands_run":["sed -n '1,220p' /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318/user_actions.md","rg -n "Sprint 12B cleanup|pre-Sprint-0|mid-migration|post-Sprint-11|deferred|post-canary|U1|U2|SUPABASE_DB_URL|DB-backed|before_execute" /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-12b-optional-cleanup-20260507-0318","if [ -n "{SUPABASE_DB_URL:-}\" ]; then printf 'SUPABASE_DB_URL_SET\\n'; else printf 'SUPABASE_DB_URL_MISSING\\n'; fi; if [ -n \"{DATABASE_URL:-}" ]; then printf 'DATABASE_URL_SET\n'; else printf 'DATABASE_URL_MISSING\n'; fi; if command -v supabase >/dev/null 2>&1; then supabase --version; else printf 'SUPABASE_CLI_MISSING\n'; fi","rg -n "def db_store_factory|--backend|SUPABASE_DB_URL|pytest_addoption" tests/conftest.py tests/test_db_store.py","supabase status 2>&1 || true"],"auto_attributed_files":null}],"sense_check_acknowledgments":[{"sense_check_id":"SC8","executor_note":"No. The before_execute actions were checked with commands, but U1 has no mechanically verifiable recorded timing decision and U2 has no usable DB-backed access in the current environment. Execution stopped."}]}