This is the code-change slice of Sprint 11 production canary. RayWorker routes are promoted sequentially by selector, and any code changes during canary need extra care because there may be no comfortable rollback iteration once users are involved.
Shared Operating Rules
Promote by route cohort, not by broad backend switch.
Cohort A holds 48 hours before B; B holds before E.
Emergency rollback is a selector flip back to WGP; WGP remains selectable.
Code patches must be narrow, reversible, and tied to live canary evidence.
Do not mix runbook/dashboard-only edits into this milestone; those belong to Sprint 11B.
Sprint Goal
Handle necessary mid-canary code patches without widening production risk.
Required Deliverables
Selector or worker/orchestrator code patches required by canary evidence.
Focused regression tests for each patch.
Updated rollback notes for any changed behavior.
Evidence that active non-RayWorker routes remain green when shared app/completion/billing surfaces are touched.
Exit Criteria
Each code patch has a concrete canary trigger, test evidence, and rollback path; no runbook-only dashboard work is mixed into the code milestone; WGP remains selectable for every affected route.
code
Batch framing:
- Execute batch 1 of 8.
- Actionable task IDs for this batch: ['T9']
- Already completed task IDs available as dependency context: []
Actionable tasks for this batch:
[
{
"id": "T9",
"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 and stop if any prerequisite cannot be proven. I’m going to locate user_actions.md, read the relevant actions, then run commands for each verification rather than treating the file read as evidence.","files_changed":[],"commands_run":[],"deviations":[],"task_updates":[],"sense_check_acknowledgments":[]}
Assistant
{"output":"rg --files did not find a user_actions.md at the workspace root or under .megaplan with that exact filename. I’m checking the plan directory and nearby files now so I can distinguish “missing file” from “different location.”","files_changed":[],"commands_run":["rg --files -g 'user_actions.md' -g '.megaplan/**'","test -w /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-11a-production-canary-20260506-2145 && printf writable || printf not-writable"],"deviations":[],"task_updates":[],"sense_check_acknowledgments":[]}
Assistant
{"output":"The plan directory does contain the target user_actions.md. I’m reading it now and then I’ll run a mechanical search for the required U1 evidence fields in the plan artifacts; if the evidence is not present, this batch stops as blocked per T9.","files_changed":[],"commands_run":["ls -la .megaplan/plans/sprint-11a-production-canary-20260506-2145","find . -name user_actions.md -print","find .megaplan -maxdepth 4 -type f -print"],"deviations":[],"task_updates":[],"sense_check_acknowledgments":[]}
Assistant
{"output":"The only before_execute action is U1, and the artifacts contain the requirement text but no concrete live canary values or T1 executor evidence. Because U1 is explicitly human-sourced live operational evidence, T9 is blocked and I will checkpoint that result without touching finalize.json.","files_changed":[],"commands_run":["sed -n '1,220p' .megaplan/plans/sprint-11a-production-canary-20260506-2145/user_actions.md","jq -r '.user_actions[] | select(.phase=="before_execute") | [.id,.description,.requires_human_only_reason] | @tsv' .megaplan/plans/sprint-11a-production-canary-20260506-2145/finalize.json","rg -n "route cohort|route key|selector namespace|selector version|selected backend|worker pool|affected task|log refs|observed failure|non-RayWorker" .megaplan/plans/sprint-11a-production-canary-20260506-2145 -g '!critique_v*_raw.txt' -g '!*.lock'","find .megaplan/plans/sprint-11a-production-canary-20260506-2145 -maxdepth 1 -type f \( -iname 'evidence' -o -iname 'canary' -o -iname '' -o -iname '' -o -iname 'execution_batch_1.json' \) -print","jq -e '.tasks[] | select(.id=="T1") | (.executor_notes // "") | test("route cohort|selector namespace|selected backend|worker pool|observed failure"; "i")' .megaplan/plans/sprint-11a-production-canary-20260506-2145/finalize.json"],"deviations":["T9 blocked because U1 cannot be mechanically verified from repository or plan artifacts."],"task_updates":[],"sense_check_acknowledgments":[]}
Assistant
User
Assistant
User
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": "T9",
"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": "Capture the concrete live canary trigger and choose exactly one Sprint 11A patch boundary. Record route cohort, route key or task type, selector namespace/version, selected backend, worker pool, affected task IDs or log refs, observed failure, and whether touched app/completion/billing paths are shared by non-RayWorker routes. Reject dashboard-only, readiness-only, and runbook-only work except rollback notes tied to runtime behavior changes.",
"depends_on": [
"T9"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T2",
"description": "Apply the narrow selector or route-contract patch if the selected boundary touches route key derivation, support state, selected template/profile, selector namespace/version, route run ID, or worker contract version. Keep WGP selectable for unsupported, missing, malformed, or explicitly WGP-only routes. Mirror runtime route-contract fields between reigh-worker/source/task_handlers/tasks/template_routing.py and reigh-app/supabase/functions/_shared/selectedRoute.ts when both surfaces represent the same contract; for Section 3A disposition or blocking_reason changes, either mirror TypeScript support-report behavior with tests or document why the metadata is worker-only.",
"depends_on": [
"T9",
"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": "Apply the narrow worker claim, app claim, task-count, or selected-pool patch if the selected boundary touches execution isolation or route-aware visibility. Treat claim-next-task and worker claim guards as the execution gate, carrying and validating worker_backend, worker_profile, selector_namespace, selector_version, and worker_contract_version. Treat task-counts.totals as legacy/global unless the SQL/RPC layer is changed and tested; use route_totals and orchestrator selected_pool_totals for selected-route scaling confidence.",
"depends_on": [
"T9",
"T1",
"T2"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T4",
"description": "Apply the narrow orchestrator lifecycle patch if live evidence points to route-stale detection, selected-pool capacity accounting, stale worker drain/termination behavior, or route metadata written during worker spawn. Preserve drain-first behavior: active route-stale workers finish current work, idle route-stale workers become terminable, and route-stale workers are not counted as healthy capacity for the new selector.",
"depends_on": [
"T9",
"T1",
"T2",
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T5",
"description": "Apply the narrow completion or billing patch only if the canary trigger is a completion/billing regression or an unavoidable selector/claim change alters completion metadata consumed by those paths. Preserve complete_task idempotency, child task cost skipping where parent/orchestrator billing owns cost, and calculate-task-cost spend-ledger idempotency. Protect active non-RayWorker routes when shared app surfaces are touched.",
"depends_on": [
"T9",
"T1",
"T2",
"T3",
"T4"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T6",
"description": "Add focused regression coverage for the exact behavior changed. Use reigh-worker/tests/test_template_routing.py for worker route changes; reigh-app/supabase/functions/create-task/routeContract.test.ts or a colocated _shared/selectedRoute test for TypeScript route mirror changes; focused claim-gate tests for backend/profile/selector/contract mismatches when claim or counts are touched; reigh-worker-orchestrator/tests/test_route_stale_worker_state.py and reigh-worker-orchestrator/tests/gpu_orchestrator/test_route_aware_task_counts.py for lifecycle or selected-pool changes; and relevant billing/completion edge tests for shared completion or billing changes.",
"depends_on": [
"T9",
"T2",
"T3",
"T4",
"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": "Update rollback notes in every repo whose runtime behavior changed: reigh-app/tasks/canary-rollback-app.md for app-owned selector, route stamping, claim, task-count, completion, billing, or non-RayWorker route behavior; reigh-worker/tasks/canary-rollback-worker.md for worker routing, claim guards, adapters, or WGP/VibeComfy execution behavior; and reigh-worker-orchestrator/tasks/canary-rollback-orchestrator.md for selected-pool orchestration, worker pool identity, route-stale lifecycle, scaling, or worker spawn route metadata. Include selector env vars, worker pool identity, route contract version, stale-route drain expectations, and emergency selector flip back to WGP.",
"depends_on": [
"T9",
"T2",
"T3",
"T4",
"T5"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T8",
"description": "Run focused tests first, then the smallest broader suite for each repo touched, and verify the specific bug with a short throwaway script that reproduces the canary failure; run the script before and after the fix when feasible, then delete it. Use these commands when relevant: cd reigh-worker && python -m pytest tests/test_template_routing.py tests/runtime/test_worker_preflight.py; cd reigh-worker-orchestrator && python -m pytest tests/test_route_stale_worker_state.py tests/gpu_orchestrator/test_route_aware_task_counts.py; cd reigh-app && npx vitest run --config config/testing/vitest.edge.config.ts supabase/functions/create-task/routeContract.test.ts supabase/functions/complete_task/billing.test.ts supabase/functions/_shared/billing.test.ts supabase/functions/calculate-task-cost/index.test.ts; and cd reigh-worker && python -m pytest scripts/dual_run_compare/tests/test_non_rayworker_fixtures.py whenever shared app claim, task-count, completion, or billing surfaces are touched. If tests fail, read the error, fix the code, and re-run until passing or a real blocker is identified.",
"depends_on": [
"T9",
"T6",
"T7"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
}
],
"watch_items": [
"Do not start nested megaplan work; this briefing is the execution artifact for the already-approved plan.",
"No code patch should start until there is a concrete live canary trigger with route cohort, route key or task type, selector namespace/version, selected backend, worker pool, affected task IDs or log refs, and observed failure.",
"WGP must remain selectable for every affected route; emergency rollback remains a selector flip back to WGP.",
"Promote by route cohort, not by broad backend switch; cohorts A, B, and E require 48-hour holds between promotions as an operational gate.",
"Keep patches narrow, reversible, and tied to live canary evidence; avoid broad selector migrations, unrelated refactors, and defensive wrappers without evidence.",
"Do not include dashboard-only, readiness-only, or runbook-only work in Sprint 11A; only behavior-specific rollback notes belong in this milestone.",
"claim-next-task and worker claim guards are the execution isolation boundary; do not use aggregate task-counts.totals as proof of route isolation.",
"task-counts.totals should be treated as legacy/global unless SQL/RPC signatures and implementations are explicitly changed and tested.",
"Route-aware scaling confidence should come from route_totals and orchestrator selected_pool_totals.",
"If Section 3A disposition or blocking_reason metadata changes, enforce the mirror-or-document rule explicitly.",
"When app/completion/billing shared surfaces are touched, prove active non-RayWorker routes remain green.",
"Rollback notes must be updated in every repo whose runtime behavior changes, especially reigh-app/tasks/canary-rollback-app.md for app-owned edge behavior."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does the patch have a named canary trigger with route cohort, route key/task type, selector namespace/version, selected backend, worker pool, task/log refs, observed symptom, and exactly one primary boundary?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "For every selector or route-contract change, does WGP remain selectable and are runtime contract fields mirrored between Python and TypeScript where both surfaces own the same behavior?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "If claim or count behavior changed, do tests prove mismatched backend/profile/selector namespace/version/contract workers cannot execute the selected task, and are aggregate totals not overstated as route-filtered proof?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "If orchestrator lifecycle changed, do active route-stale workers drain, idle stale workers become terminable, and stale workers stop contributing healthy capacity for the new selector?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "If completion or billing changed, are idempotency, child task billing ownership, spend-ledger behavior, and active non-RayWorker route behavior preserved?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Does focused regression coverage directly exercise the canary trigger and each changed selector, claim/count, lifecycle, completion, or billing behavior?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Do rollback notes exist in every repo whose behavior changed and do they describe selector env vars, worker pool identity, route contract version, stale-route drain behavior, and selector flip back to WGP?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC8",
"task_id": "T8",
"question": "Did focused and relevant broader tests pass, did the throwaway reproduction script verify the bug fix, and was the throwaway script deleted afterward?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC9",
"task_id": "T9",
"question": "Were all before_execute user_actions programmatically verified before execution proceeded?",
"executor_note": "",
"verdict": ""
}
],
"user_actions": [
{
"id": "U1",
"description": "Provide or confirm the live canary trigger details before execution: route cohort, route key or task type, selector namespace/version, selected backend, worker pool, affected task IDs or log refs, observed failure, and any known non-RayWorker shared-surface exposure.",
"phase": "before_execute",
"blocks_task_ids": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7",
"T8"
],
"rationale": "The approved plan forbids code patches without concrete live canary evidence.",
"requires_human_only_reason": "This operational evidence comes from the live canary environment and cannot be inferred safely from repository code alone."
},
{
"id": "U2",
"description": "After local validation and code review, deploy the changed repo(s), perform the production selector operation for the intended route cohort, and observe the required 48-hour cohort hold before the next promotion.",
"phase": "after_execute",
"blocks_task_ids": null,
"rationale": "Production deploys, selector flips, and canary hold decisions are operational actions outside repo editing.",
"requires_human_only_reason": "This is the sole coverage for the approved plan's live canary promotion hold criterion, which requires production access and runtime observation."
}
],
"meta_commentary": "Execute this as a narrow evidence-driven patch, not a general Sprint 11 cleanup. Start by pinning the canary trigger and choosing one boundary; only touch other repos if the chosen boundary forces a cross-repo contract or rollback update. The highest-risk trap is treating task-counts.totals as cohort isolation evidence: the execution gate is claim behavior, while counts are scaling/visibility unless the SQL/RPC layer is changed. The other key trap is Section 3A metadata: runtime route fields must mirror between Python and TypeScript, but report-only metadata can remain worker-only only if the patch says so explicitly. Keep WGP selectable throughout and keep rollback notes behavior-specific.",
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Step 1: Pin live canary evidence and choose one patch boundary",
"finalize_item_ids": [
"U1",
"T1"
]
},
{
"plan_step_summary": "Step 2: Patch selector contracts with WGP safety and Python/TypeScript mirror rules",
"finalize_item_ids": [
"T2",
"T6",
"T7",
"T8"
]
},
{
"plan_step_summary": "Step 3: Patch claim and task-count behavior while distinguishing claim gates from aggregate counts",
"finalize_item_ids": [
"T3",
"T6",
"T7",
"T8"
]
},
{
"plan_step_summary": "Step 4: Patch worker/orchestrator lifecycle only when live evidence points there",
"finalize_item_ids": [
"T4",
"T6",
"T7",
"T8"
]
},
{
"plan_step_summary": "Step 5: Patch completion or billing shared paths only with non-RayWorker protection",
"finalize_item_ids": [
"T5",
"T6",
"T7",
"T8"
]
},
{
"plan_step_summary": "Step 6: Update behavior-specific rollback notes for every repo changed",
"finalize_item_ids": [
"T7"
]
},
{
"plan_step_summary": "Step 7: Prove the patch with focused tests, non-RayWorker evidence where needed, broader touched-repo checks, and a throwaway reproduction script",
"finalize_item_ids": [
"T6",
"T8"
]
},
{
"plan_step_summary": "Verify before_execute user_actions",
"finalize_item_ids": [
"T9"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All seven approved plan steps are mapped to execution tasks, with human actions only for live canary evidence and production deployment/hold operations. Boundary-specific code tasks are conditional on the selected canary trigger so the executor can keep the patch narrow while still covering all approved surfaces if evidence requires them.",
"coverage_complete": true
},
"baseline_test_failures": null,
"baseline_test_command": "pytest --tb=no -q --no-header",
"baseline_test_note": "Baseline test capture timed out after 120 seconds while running: pytest --tb=no -q --no-header"
}
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-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: standard.
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: [T9]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC9]
- 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-11a-production-canary-20260506-2145/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.
trigger
user
{"output":"Blocked at T9. The only before_execute action is U1, which requires concrete live canary trigger details from the live environment. I verified with shell commands that the action exists and is human-sourced, then searched the plan artifacts for concrete route cohort, route key/task type, selector namespace/version, selected backend, worker pool, task/log refs, observed failure, and non-RayWorker exposure. The artifacts only contain requirement text, not completed evidence, so execution stopped as required.","files_changed":[".megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_1.json"],"commands_run":["rg --files -g 'user_actions.md' -g '.megaplan/'","test -w /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-11a-production-canary-20260506-2145 && printf writable || printf not-writable","ls -la .megaplan/plans/sprint-11a-production-canary-20260506-2145","find . -name user_actions.md -print","find .megaplan -maxdepth 4 -type f -print","sed -n '1,220p' .megaplan/plans/sprint-11a-production-canary-20260506-2145/user_actions.md","jq -r '.user_actions[] | select(.phase=="before_execute") | [.id,.description,.requires_human_only_reason] | @tsv' .megaplan/plans/sprint-11a-production-canary-20260506-2145/finalize.json","rg -n "route cohort|route key|selector namespace|selector version|selected backend|worker pool|affected task|log refs|observed failure|non-RayWorker" .megaplan/plans/sprint-11a-production-canary-20260506-2145 -g '!critique_v*_raw.txt' -g '!*.lock'","find .megaplan/plans/sprint-11a-production-canary-20260506-2145 -maxdepth 1 -type f \( -iname 'evidence' -o -iname 'canary' -o -iname 'trigger' -o -iname 'user' -o -iname 'execution_batch_1.json' \) -print","jq -e '.tasks[] | select(.id=="T1") | (.executor_notes // "") | test("route cohort|selector namespace|selected backend|worker pool|observed failure"; "i")' .megaplan/plans/sprint-11a-production-canary-20260506-2145/finalize.json","jq . .megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_1.json >/dev/null && printf checkpoint-valid"],"deviations":["T9 blocked because U1 cannot be mechanically verified from repository or plan artifacts."],"task_updates":[{"task_id":"T9","status":"blocked","executor_notes":"Read user_actions.md and mechanically inspected before_execute actions. U1 requires live canary trigger details: route cohort, route key/task type, selector namespace/version, selected backend, worker pool, affected task IDs/log refs, observed failure, and non-RayWorker shared-surface exposure. Commands verified that U1 exists and is marked human-sourced in finalize.json; searches found only requirement/plan text, no concrete confirmed canary trigger values or T1 executor evidence. Because this operational evidence cannot be inferred safely from repository code and was not present in artifacts, T9 is blocked and execution must stop.","files_changed":[".megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_1.json"],"commands_run":["rg --files -g 'user_actions.md' -g '.megaplan/'","test -w /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-11a-production-canary-20260506-2145 && printf writable || printf not-writable","ls -la .megaplan/plans/sprint-11a-production-canary-20260506-2145","find . -name user_actions.md -print","find .megaplan -maxdepth 4 -type f -print","sed -n '1,220p' .megaplan/plans/sprint-11a-production-canary-20260506-2145/user_actions.md","jq -r '.user_actions[] | select(.phase=="before_execute") | [.id,.description,.requires_human_only_reason] | @tsv' .megaplan/plans/sprint-11a-production-canary-20260506-2145/finalize.json","rg -n "route cohort|route key|selector namespace|selector version|selected backend|worker pool|affected task|log refs|observed failure|non-RayWorker" .megaplan/plans/sprint-11a-production-canary-20260506-2145 -g '!critique_v*_raw.txt' -g '!*.lock'","find .megaplan/plans/sprint-11a-production-canary-20260506-2145 -maxdepth 1 -type f \( -iname 'evidence' -o -iname 'canary' -o -iname 'trigger' -o -iname 'user' -o -iname 'execution_batch_1.json' \) -print","jq -e '.tasks[] | select(.id=="T1") | (.executor_notes // "") | test("route cohort|selector namespace|selected backend|worker pool|observed failure"; "i")' .megaplan/plans/sprint-11a-production-canary-20260506-2145/finalize.json","jq . .megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_1.json >/dev/null && printf checkpoint-valid"],"auto_attributed_files":false}],"sense_check_acknowledgments":[{"sense_check_id":"SC9","executor_note":"No. The before_execute action U1 was identified and checked with shell commands, but completion could not be verified because no concrete live canary trigger details were present in repository or plan artifacts. Execution stopped blocked before any downstream work."}]}
This is the code-change slice of Sprint 11 production canary. RayWorker routes are promoted sequentially by selector, and any code changes during canary need extra care because there may be no comfortable rollback iteration once users are involved.
Shared Operating Rules
Promote by route cohort, not by broad backend switch.
Cohort A holds 48 hours before B; B holds before E.
Emergency rollback is a selector flip back to WGP; WGP remains selectable.
Code patches must be narrow, reversible, and tied to live canary evidence.
Do not mix runbook/dashboard-only edits into this milestone; those belong to Sprint 11B.
Sprint Goal
Handle necessary mid-canary code patches without widening production risk.
Required Deliverables
Selector or worker/orchestrator code patches required by canary evidence.
Focused regression tests for each patch.
Updated rollback notes for any changed behavior.
Evidence that active non-RayWorker routes remain green when shared app/completion/billing surfaces are touched.
Exit Criteria
Each code patch has a concrete canary trigger, test evidence, and rollback path; no runbook-only dashboard work is mixed into the code milestone; WGP remains selectable for every affected route.
code
Batch framing:
- Execute batch 2 of 8.
- Actionable task IDs for this batch: ['T1']
- Already completed task IDs available as dependency context: []
Actionable tasks for this batch:
[
{
"id": "T1",
"description": "Capture the concrete live canary trigger and choose exactly one Sprint 11A patch boundary. Record route cohort, route key or task type, selector namespace/version, selected backend, worker pool, affected task IDs or log refs, observed failure, and whether touched app/completion/billing paths are shared by non-RayWorker routes. Reject dashboard-only, readiness-only, and runbook-only work except rollback notes tied to runtime behavior changes.",
"depends_on": [
"T9"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
}
]
code
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[]
Prior batch deviations (address if applicable):
[
"T9 blocked because U1 cannot be mechanically verified from repository or plan artifacts.",
"1/1 batch tasks have no executor update \u2014 tracking is incomplete.",
"Advisory observation mismatch: executor claimed files not observed in git status/content hash delta: .megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_1.json",
"Advisory audit finding: Executor claimed changed files not present in git status: .megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_1.json",
"Advisory audit finding: Git status shows changed files not claimed by any task: reigh-app-cloud-chain",
"Advisory audit finding: Sense check SC1 is missing an executor acknowledgment.",
"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 SC4 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC5 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.",
"Advisory audit finding: Sense check SC8 is missing an executor acknowledgment.",
"Advisory audit finding: Tasks left pending after execute (executor never started them): T1, T2, T3, T4, T5, T6, T7, T8"
]
code
User action prerequisites:
PREREQUISITE for T1: This task depends on user action U1: Provide or confirm the live canary trigger details before execution: route cohort, route key or task type, selector namespace/version, selected backend, worker pool, affected task IDs or log refs, observed failure, and any known non-RayWorker shared-surface exposure.. If U1 is not complete (verify if possible — grep .env, curl, etc.), mark this task blocked with reason `awaiting U1` rather than attempting it.
Batch-scoped sense checks:
[
{
"id": "SC1",
"task_id": "T1",
"question": "Does the patch have a named canary trigger with route cohort, route key/task type, selector namespace/version, selected backend, worker pool, task/log refs, observed symptom, and exactly one primary boundary?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T9",
"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": "blocked",
"executor_notes": "Read user_actions.md and mechanically inspected before_execute actions. U1 requires live canary trigger details: route cohort, route key/task type, selector namespace/version, selected backend, worker pool, affected task IDs/log refs, observed failure, and non-RayWorker shared-surface exposure. Commands verified that U1 exists and is marked human-sourced in finalize.json; searches found only requirement/plan text, no concrete confirmed canary trigger values or T1 executor evidence. Because this operational evidence cannot be inferred safely from repository code and was not present in artifacts, T9 is blocked and execution must stop.",
"files_changed": [
".megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_1.json"
],
"commands_run": [
"rg --files -g 'user_actions.md' -g '.megaplan/**'",
"test -w /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-11a-production-canary-20260506-2145 && printf writable || printf not-writable",
"ls -la .megaplan/plans/sprint-11a-production-canary-20260506-2145",
"find . -name user_actions.md -print",
"find .megaplan -maxdepth 4 -type f -print",
"sed -n '1,220p' .megaplan/plans/sprint-11a-production-canary-20260506-2145/user_actions.md",
"jq -r '.user_actions[] | select(.phase=="before_execute") | [.id,.description,.requires_human_only_reason] | @tsv' .megaplan/plans/sprint-11a-production-canary-20260506-2145/finalize.json",
"rg -n "route cohort|route key|selector namespace|selector version|selected backend|worker pool|affected task|log refs|observed failure|non-RayWorker" .megaplan/plans/sprint-11a-production-canary-20260506-2145 -g '!critique_v*_raw.txt' -g '!*.lock'",
"find .megaplan/plans/sprint-11a-production-canary-20260506-2145 -maxdepth 1 -type f \( -iname 'evidence' -o -iname 'canary' -o -iname 'trigger' -o -iname 'user' -o -iname 'execution_batch_1.json' \) -print",
"jq -e '.tasks[] | select(.id=="T1") | (.executor_notes // "") | test("route cohort|selector namespace|selected backend|worker pool|observed failure"; "i")' .megaplan/plans/sprint-11a-production-canary-20260506-2145/finalize.json",
"jq . .megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_1.json >/dev/null && printf checkpoint-valid"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T1",
"description": "Capture the concrete live canary trigger and choose exactly one Sprint 11A patch boundary. Record route cohort, route key or task type, selector namespace/version, selected backend, worker pool, affected task IDs or log refs, observed failure, and whether touched app/completion/billing paths are shared by non-RayWorker routes. Reject dashboard-only, readiness-only, and runbook-only work except rollback notes tied to runtime behavior changes.",
"depends_on": [
"T9"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T2",
"description": "Apply the narrow selector or route-contract patch if the selected boundary touches route key derivation, support state, selected template/profile, selector namespace/version, route run ID, or worker contract version. Keep WGP selectable for unsupported, missing, malformed, or explicitly WGP-only routes. Mirror runtime route-contract fields between and when both surfaces represent the same contract; for Section 3A or changes, either mirror TypeScript support-report behavior with tests or document why the metadata is worker-only.",
"depends_on": [
"T9",
"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": "Apply the narrow worker claim, app claim, task-count, or selected-pool patch if the selected boundary touches execution isolation or route-aware visibility. Treat and worker claim guards as the execution gate, carrying and validating , , , , and . Treat as legacy/global unless the SQL/RPC layer is changed and tested; use and orchestrator for selected-route scaling confidence.",
"depends_on": [
"T9",
"T1",
"T2"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T4",
"description": "Apply the narrow orchestrator lifecycle patch if live evidence points to route-stale detection, selected-pool capacity accounting, stale worker drain/termination behavior, or route metadata written during worker spawn. Preserve drain-first behavior: active route-stale workers finish current work, idle route-stale workers become terminable, and route-stale workers are not counted as healthy capacity for the new selector.",
"depends_on": [
"T9",
"T1",
"T2",
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T5",
"description": "Apply the narrow completion or billing patch only if the canary trigger is a completion/billing regression or an unavoidable selector/claim change alters completion metadata consumed by those paths. Preserve idempotency, child task cost skipping where parent/orchestrator billing owns cost, and spend-ledger idempotency. Protect active non-RayWorker routes when shared app surfaces are touched.",
"depends_on": [
"T9",
"T1",
"T2",
"T3",
"T4"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T6",
"description": "Add focused regression coverage for the exact behavior changed. Use for worker route changes; or a colocated test for TypeScript route mirror changes; focused claim-gate tests for backend/profile/selector/contract mismatches when claim or counts are touched; and for lifecycle or selected-pool changes; and relevant billing/completion edge tests for shared completion or billing changes.",
"depends_on": [
"T9",
"T2",
"T3",
"T4",
"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": "Update rollback notes in every repo whose runtime behavior changed: for app-owned selector, route stamping, claim, task-count, completion, billing, or non-RayWorker route behavior; for worker routing, claim guards, adapters, or WGP/VibeComfy execution behavior; and for selected-pool orchestration, worker pool identity, route-stale lifecycle, scaling, or worker spawn route metadata. Include selector env vars, worker pool identity, route contract version, stale-route drain expectations, and emergency selector flip back to WGP.",
"depends_on": [
"T9",
"T2",
"T3",
"T4",
"T5"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T8",
"description": "Run focused tests first, then the smallest broader suite for each repo touched, and verify the specific bug with a short throwaway script that reproduces the canary failure; run the script before and after the fix when feasible, then delete it. Use these commands when relevant: ; ; ; and whenever shared app claim, task-count, completion, or billing surfaces are touched. If tests fail, read the error, fix the code, and re-run until passing or a real blocker is identified.",
"depends_on": [
"T9",
"T6",
"T7"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
}
],
"watch_items": [
"Do not start nested megaplan work; this briefing is the execution artifact for the already-approved plan.",
"No code patch should start until there is a concrete live canary trigger with route cohort, route key or task type, selector namespace/version, selected backend, worker pool, affected task IDs or log refs, and observed failure.",
"WGP must remain selectable for every affected route; emergency rollback remains a selector flip back to WGP.",
"Promote by route cohort, not by broad backend switch; cohorts A, B, and E require 48-hour holds between promotions as an operational gate.",
"Keep patches narrow, reversible, and tied to live canary evidence; avoid broad selector migrations, unrelated refactors, and defensive wrappers without evidence.",
"Do not include dashboard-only, readiness-only, or runbook-only work in Sprint 11A; only behavior-specific rollback notes belong in this milestone.",
" and worker claim guards are the execution isolation boundary; do not use aggregate as proof of route isolation.",
" should be treated as legacy/global unless SQL/RPC signatures and implementations are explicitly changed and tested.",
"Route-aware scaling confidence should come from and orchestrator .",
"If Section 3A or metadata changes, enforce the mirror-or-document rule explicitly.",
"When app/completion/billing shared surfaces are touched, prove active non-RayWorker routes remain green.",
"Rollback notes must be updated in every repo whose runtime behavior changes, especially for app-owned edge behavior."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does the patch have a named canary trigger with route cohort, route key/task type, selector namespace/version, selected backend, worker pool, task/log refs, observed symptom, and exactly one primary boundary?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "For every selector or route-contract change, does WGP remain selectable and are runtime contract fields mirrored between Python and TypeScript where both surfaces own the same behavior?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "If claim or count behavior changed, do tests prove mismatched backend/profile/selector namespace/version/contract workers cannot execute the selected task, and are aggregate totals not overstated as route-filtered proof?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "If orchestrator lifecycle changed, do active route-stale workers drain, idle stale workers become terminable, and stale workers stop contributing healthy capacity for the new selector?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "If completion or billing changed, are idempotency, child task billing ownership, spend-ledger behavior, and active non-RayWorker route behavior preserved?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Does focused regression coverage directly exercise the canary trigger and each changed selector, claim/count, lifecycle, completion, or billing behavior?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Do rollback notes exist in every repo whose behavior changed and do they describe selector env vars, worker pool identity, route contract version, stale-route drain behavior, and selector flip back to WGP?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC8",
"task_id": "T8",
"question": "Did focused and relevant broader tests pass, did the throwaway reproduction script verify the bug fix, and was the throwaway script deleted afterward?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC9",
"task_id": "T9",
"question": "Were all before_execute user_actions programmatically verified before execution proceeded?",
"executor_note": "No. The before_execute action U1 was identified and checked with shell commands, but completion could not be verified because no concrete live canary trigger details were present in repository or plan artifacts. Execution stopped blocked before any downstream work.",
"verdict": ""
}
],
"user_actions": [
{
"id": "U1",
"description": "Provide or confirm the live canary trigger details before execution: route cohort, route key or task type, selector namespace/version, selected backend, worker pool, affected task IDs or log refs, observed failure, and any known non-RayWorker shared-surface exposure.",
"phase": "before_execute",
"blocks_task_ids": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7",
"T8"
],
"rationale": "The approved plan forbids code patches without concrete live canary evidence.",
"requires_human_only_reason": "This operational evidence comes from the live canary environment and cannot be inferred safely from repository code alone."
},
{
"id": "U2",
"description": "After local validation and code review, deploy the changed repo(s), perform the production selector operation for the intended route cohort, and observe the required 48-hour cohort hold before the next promotion.",
"phase": "after_execute",
"blocks_task_ids": null,
"rationale": "Production deploys, selector flips, and canary hold decisions are operational actions outside repo editing.",
"requires_human_only_reason": "This is the sole coverage for the approved plan's live canary promotion hold criterion, which requires production access and runtime observation."
}
],
"meta_commentary": "Execute this as a narrow evidence-driven patch, not a general Sprint 11 cleanup. Start by pinning the canary trigger and choosing one boundary; only touch other repos if the chosen boundary forces a cross-repo contract or rollback update. The highest-risk trap is treating as cohort isolation evidence: the execution gate is claim behavior, while counts are scaling/visibility unless the SQL/RPC layer is changed. The other key trap is Section 3A metadata: runtime route fields must mirror between Python and TypeScript, but report-only metadata can remain worker-only only if the patch says so explicitly. Keep WGP selectable throughout and keep rollback notes behavior-specific.",
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Step 1: Pin live canary evidence and choose one patch boundary",
"finalize_item_ids": [
"U1",
"T1"
]
},
{
"plan_step_summary": "Step 2: Patch selector contracts with WGP safety and Python/TypeScript mirror rules",
"finalize_item_ids": [
"T2",
"T6",
"T7",
"T8"
]
},
{
"plan_step_summary": "Step 3: Patch claim and task-count behavior while distinguishing claim gates from aggregate counts",
"finalize_item_ids": [
"T3",
"T6",
"T7",
"T8"
]
},
{
"plan_step_summary": "Step 4: Patch worker/orchestrator lifecycle only when live evidence points there",
"finalize_item_ids": [
"T4",
"T6",
"T7",
"T8"
]
},
{
"plan_step_summary": "Step 5: Patch completion or billing shared paths only with non-RayWorker protection",
"finalize_item_ids": [
"T5",
"T6",
"T7",
"T8"
]
},
{
"plan_step_summary": "Step 6: Update behavior-specific rollback notes for every repo changed",
"finalize_item_ids": [
"T7"
]
},
{
"plan_step_summary": "Step 7: Prove the patch with focused tests, non-RayWorker evidence where needed, broader touched-repo checks, and a throwaway reproduction script",
"finalize_item_ids": [
"T6",
"T8"
]
},
{
"plan_step_summary": "Verify before_execute user_actions",
"finalize_item_ids": [
"T9"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All seven approved plan steps are mapped to execution tasks, with human actions only for live canary evidence and production deployment/hold operations. Boundary-specific code tasks are conditional on the selected canary trigger so the executor can keep the patch narrow while still covering all approved surfaces if evidence requires them.",
"coverage_complete": true
},
"baseline_test_failures": null,
"baseline_test_command": "pytest --tb=no -q --no-header",
"baseline_test_note": "Baseline test capture timed out after 120 seconds while running: pytest --tb=no -q --no-header"
}
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 / to be safe in strict typescript. (flagged 1 times across 1 plans)
{"output":"Blocked at T1: awaiting U1. T1 depends on T9/U1, and finalize.json shows T9 is already blocked because U1 could not be mechanically verified. I re-read user_actions.md and searched the Sprint 11A artifacts for concrete canary trigger details; only requirement text is present, not the live evidence needed to choose a patch boundary.","files_changed":[".megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_2.json"],"commands_run":["test -w /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-11a-production-canary-20260506-2145 && printf writable || printf not-writable","jq -r '.tasks[] | select(.id=="T9" or .id=="T1") | [.id,.status,(.executor_notes//"")] | @tsv' .megaplan/plans/sprint-11a-production-canary-20260506-2145/finalize.json","sed -n '1,80p' .megaplan/plans/sprint-11a-production-canary-20260506-2145/user_actions.md","rg -n "route cohort|route key|selector namespace/version|selected backend|worker pool|affected task IDs|log refs|observed failure|non-RayWorker shared-surface|canary trigger" .megaplan/plans/sprint-11a-production-canary-20260506-2145 -g '!critique_v*_raw.txt' -g '!execution_batch_1.json' -g '!.lock'","find .megaplan/plans/sprint-11a-production-canary-20260506-2145 -maxdepth 1 -type f \( -name 'trigger' -o -name 'evidence' -o -name 'canary' -o -name 'execution_batch_2.json' \) -print","jq . .megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_2.json >/dev/null && printf checkpoint-valid"],"deviations":["T1 blocked with reason awaiting U1; no patch boundary selected because required live canary evidence is absent from repository and plan artifacts."],"task_updates":[{"task_id":"T1","status":"blocked","executor_notes":"Blocked awaiting U1. T1 depends on T9 and U1; finalize.json shows T9 is blocked because U1 could not be mechanically verified. Re-read user_actions.md and searched the Sprint 11A plan artifacts for concrete live canary trigger values. The artifacts contain only requirement text, not a confirmed route cohort, route key/task type, selector namespace/version, selected backend, worker pool, affected task IDs/log refs, observed failure, or non-RayWorker shared-surface exposure. No patch boundary can be selected without that live evidence.","files_changed":[".megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_2.json"],"commands_run":["test -w /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-11a-production-canary-20260506-2145 && printf writable || printf not-writable","jq -r '.tasks[] | select(.id=="T9" or .id=="T1") | [.id,.status,(.executor_notes//"")] | @tsv' .megaplan/plans/sprint-11a-production-canary-20260506-2145/finalize.json","sed -n '1,80p' .megaplan/plans/sprint-11a-production-canary-20260506-2145/user_actions.md","rg -n "route cohort|route key|selector namespace/version|selected backend|worker pool|affected task IDs|log refs|observed failure|non-RayWorker shared-surface|canary trigger" .megaplan/plans/sprint-11a-production-canary-20260506-2145 -g '!critique_v_raw.txt' -g '!execution_batch_1.json' -g '!*.lock'","find .megaplan/plans/sprint-11a-production-canary-20260506-2145 -maxdepth 1 -type f \( -name 'trigger' -o -name 'evidence' -o -name 'canary' -o -name 'execution_batch_2.json' \) -print","jq . .megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_2.json >/dev/null && printf checkpoint-valid"],"auto_attributed_files":false,"stance":"blocked","stop_signal":"awaiting U1"}],"sense_check_acknowledgments":[{"sense_check_id":"SC1","executor_note":"No. U1 remains unverified and no named canary trigger with route cohort, route key/task type, selector namespace/version, selected backend, worker pool, task/log refs, observed symptom, and exactly one primary boundary is available. T1 is blocked awaiting U1."}]}
This is the code-change slice of Sprint 11 production canary. RayWorker routes are promoted sequentially by selector, and any code changes during canary need extra care because there may be no comfortable rollback iteration once users are involved.
Shared Operating Rules
Promote by route cohort, not by broad backend switch.
Cohort A holds 48 hours before B; B holds before E.
Emergency rollback is a selector flip back to WGP; WGP remains selectable.
Code patches must be narrow, reversible, and tied to live canary evidence.
Do not mix runbook/dashboard-only edits into this milestone; those belong to Sprint 11B.
Sprint Goal
Handle necessary mid-canary code patches without widening production risk.
Required Deliverables
Selector or worker/orchestrator code patches required by canary evidence.
Focused regression tests for each patch.
Updated rollback notes for any changed behavior.
Evidence that active non-RayWorker routes remain green when shared app/completion/billing surfaces are touched.
Exit Criteria
Each code patch has a concrete canary trigger, test evidence, and rollback path; no runbook-only dashboard work is mixed into the code milestone; WGP remains selectable for every affected route.
code
Batch framing:
- Execute batch 3 of 8.
- Actionable task IDs for this batch: ['T2']
- Already completed task IDs available as dependency context: []
Actionable tasks for this batch:
[
{
"id": "T2",
"description": "Apply the narrow selector or route-contract patch if the selected boundary touches route key derivation, support state, selected template/profile, selector namespace/version, route run ID, or worker contract version. Keep WGP selectable for unsupported, missing, malformed, or explicitly WGP-only routes. Mirror runtime route-contract fields between reigh-worker/source/task_handlers/tasks/template_routing.py and reigh-app/supabase/functions/_shared/selectedRoute.ts when both surfaces represent the same contract; for Section 3A disposition or blocking_reason changes, either mirror TypeScript support-report behavior with tests or document why the metadata is worker-only.",
"depends_on": [
"T9",
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
}
]
code
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[]
Prior batch deviations (address if applicable):
[
"T1 blocked with reason awaiting U1; no patch boundary selected because required live canary evidence is absent from repository and plan artifacts.",
"1/1 batch tasks have no executor update \u2014 tracking is incomplete.",
"Advisory observation mismatch: executor claimed files not observed in git status/content hash delta: .megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_2.json",
"Advisory audit finding: Executor claimed changed files not present in git status: .megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_1.json, .megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_2.json",
"Advisory audit finding: Git status shows changed files not claimed by any task: reigh-app-cloud-chain",
"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 SC4 is missing an executor acknowledgment.",
"Advisory audit finding: Sense check SC5 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.",
"Advisory audit finding: Sense check SC8 is missing an executor acknowledgment.",
"Advisory audit finding: Tasks left pending after execute (executor never started them): T2, T3, T4, T5, T6, T7, T8"
]
code
User action prerequisites:
PREREQUISITE for T2: This task depends on user action U1: Provide or confirm the live canary trigger details before execution: route cohort, route key or task type, selector namespace/version, selected backend, worker pool, affected task IDs or log refs, observed failure, and any known non-RayWorker shared-surface exposure.. If U1 is not complete (verify if possible — grep .env, curl, etc.), mark this task blocked with reason `awaiting U1` rather than attempting it.
Batch-scoped sense checks:
[
{
"id": "SC2",
"task_id": "T2",
"question": "For every selector or route-contract change, does WGP remain selectable and are runtime contract fields mirrored between Python and TypeScript where both surfaces own the same behavior?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T9",
"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": "blocked",
"executor_notes": "Read user_actions.md and mechanically inspected before_execute actions. U1 requires live canary trigger details: route cohort, route key/task type, selector namespace/version, selected backend, worker pool, affected task IDs/log refs, observed failure, and non-RayWorker shared-surface exposure. Commands verified that U1 exists and is marked human-sourced in finalize.json; searches found only requirement/plan text, no concrete confirmed canary trigger values or T1 executor evidence. Because this operational evidence cannot be inferred safely from repository code and was not present in artifacts, T9 is blocked and execution must stop.",
"files_changed": [
".megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_1.json"
],
"commands_run": [
"rg --files -g 'user_actions.md' -g '.megaplan/**'",
"test -w /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-11a-production-canary-20260506-2145 && printf writable || printf not-writable",
"ls -la .megaplan/plans/sprint-11a-production-canary-20260506-2145",
"find . -name user_actions.md -print",
"find .megaplan -maxdepth 4 -type f -print",
"sed -n '1,220p' .megaplan/plans/sprint-11a-production-canary-20260506-2145/user_actions.md",
"jq -r '.user_actions[] | select(.phase=="before_execute") | [.id,.description,.requires_human_only_reason] | @tsv' .megaplan/plans/sprint-11a-production-canary-20260506-2145/finalize.json",
"rg -n "route cohort|route key|selector namespace|selector version|selected backend|worker pool|affected task|log refs|observed failure|non-RayWorker" .megaplan/plans/sprint-11a-production-canary-20260506-2145 -g '!critique_v*_raw.txt' -g '!.lock'",
"find .megaplan/plans/sprint-11a-production-canary-20260506-2145 -maxdepth 1 -type f \( -iname 'evidence' -o -iname 'canary' -o -iname 'trigger' -o -iname 'user' -o -iname 'execution_batch_1.json' \) -print",
"jq -e '.tasks[] | select(.id=="T1") | (.executor_notes // "") | test("route cohort|selector namespace|selected backend|worker pool|observed failure"; "i")' .megaplan/plans/sprint-11a-production-canary-20260506-2145/finalize.json",
"jq . .megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_1.json >/dev/null && printf checkpoint-valid"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T1",
"description": "Capture the concrete live canary trigger and choose exactly one Sprint 11A patch boundary. Record route cohort, route key or task type, selector namespace/version, selected backend, worker pool, affected task IDs or log refs, observed failure, and whether touched app/completion/billing paths are shared by non-RayWorker routes. Reject dashboard-only, readiness-only, and runbook-only work except rollback notes tied to runtime behavior changes.",
"depends_on": [
"T9"
],
"status": "blocked",
"executor_notes": "Blocked awaiting U1. T1 depends on T9 and U1; finalize.json shows T9 is blocked because U1 could not be mechanically verified. Re-read user_actions.md and searched the Sprint 11A plan artifacts for concrete live canary trigger values. The artifacts contain only requirement text, not a confirmed route cohort, route key/task type, selector namespace/version, selected backend, worker pool, affected task IDs/log refs, observed failure, or non-RayWorker shared-surface exposure. No patch boundary can be selected without that live evidence.",
"files_changed": [
".megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_2.json"
],
"commands_run": [
"test -w /Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-11a-production-canary-20260506-2145 && printf writable || printf not-writable",
"jq -r '.tasks[] | select(.id=="T9" or .id=="T1") | [.id,.status,(.executor_notes//"")] | @tsv' .megaplan/plans/sprint-11a-production-canary-20260506-2145/finalize.json",
"sed -n '1,80p' .megaplan/plans/sprint-11a-production-canary-20260506-2145/user_actions.md",
"rg -n "route cohort|route key|selector namespace/version|selected backend|worker pool|affected task IDs|log refs|observed failure|non-RayWorker shared-surface|canary trigger" .megaplan/plans/sprint-11a-production-canary-20260506-2145 -g '!critique_v_raw.txt' -g '!execution_batch_1.json' -g '!*.lock'",
"find .megaplan/plans/sprint-11a-production-canary-20260506-2145 -maxdepth 1 -type f \( -name '' -o -name '' -o -name '' -o -name 'execution_batch_2.json' \) -print",
"jq . .megaplan/plans/sprint-11a-production-canary-20260506-2145/execution_batch_2.json >/dev/null && printf checkpoint-valid"
],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T2",
"description": "Apply the narrow selector or route-contract patch if the selected boundary touches route key derivation, support state, selected template/profile, selector namespace/version, route run ID, or worker contract version. Keep WGP selectable for unsupported, missing, malformed, or explicitly WGP-only routes. Mirror runtime route-contract fields between and when both surfaces represent the same contract; for Section 3A or changes, either mirror TypeScript support-report behavior with tests or document why the metadata is worker-only.",
"depends_on": [
"T9",
"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": "Apply the narrow worker claim, app claim, task-count, or selected-pool patch if the selected boundary touches execution isolation or route-aware visibility. Treat and worker claim guards as the execution gate, carrying and validating , , , , and . Treat as legacy/global unless the SQL/RPC layer is changed and tested; use and orchestrator for selected-route scaling confidence.",
"depends_on": [
"T9",
"T1",
"T2"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T4",
"description": "Apply the narrow orchestrator lifecycle patch if live evidence points to route-stale detection, selected-pool capacity accounting, stale worker drain/termination behavior, or route metadata written during worker spawn. Preserve drain-first behavior: active route-stale workers finish current work, idle route-stale workers become terminable, and route-stale workers are not counted as healthy capacity for the new selector.",
"depends_on": [
"T9",
"T1",
"T2",
"T3"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T5",
"description": "Apply the narrow completion or billing patch only if the canary trigger is a completion/billing regression or an unavoidable selector/claim change alters completion metadata consumed by those paths. Preserve idempotency, child task cost skipping where parent/orchestrator billing owns cost, and spend-ledger idempotency. Protect active non-RayWorker routes when shared app surfaces are touched.",
"depends_on": [
"T9",
"T1",
"T2",
"T3",
"T4"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T6",
"description": "Add focused regression coverage for the exact behavior changed. Use for worker route changes; or a colocated test for TypeScript route mirror changes; focused claim-gate tests for backend/profile/selector/contract mismatches when claim or counts are touched; and for lifecycle or selected-pool changes; and relevant billing/completion edge tests for shared completion or billing changes.",
"depends_on": [
"T9",
"T2",
"T3",
"T4",
"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": "Update rollback notes in every repo whose runtime behavior changed: for app-owned selector, route stamping, claim, task-count, completion, billing, or non-RayWorker route behavior; for worker routing, claim guards, adapters, or WGP/VibeComfy execution behavior; and for selected-pool orchestration, worker pool identity, route-stale lifecycle, scaling, or worker spawn route metadata. Include selector env vars, worker pool identity, route contract version, stale-route drain expectations, and emergency selector flip back to WGP.",
"depends_on": [
"T9",
"T2",
"T3",
"T4",
"T5"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
},
{
"id": "T8",
"description": "Run focused tests first, then the smallest broader suite for each repo touched, and verify the specific bug with a short throwaway script that reproduces the canary failure; run the script before and after the fix when feasible, then delete it. Use these commands when relevant: ; ; ; and whenever shared app claim, task-count, completion, or billing surfaces are touched. If tests fail, read the error, fix the code, and re-run until passing or a real blocker is identified.",
"depends_on": [
"T9",
"T6",
"T7"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"auto_attributed_files": null,
"evidence_files": [],
"reviewer_verdict": "",
"stance": null,
"stop_signal": null
}
],
"watch_items": [
"Do not start nested megaplan work; this briefing is the execution artifact for the already-approved plan.",
"No code patch should start until there is a concrete live canary trigger with route cohort, route key or task type, selector namespace/version, selected backend, worker pool, affected task IDs or log refs, and observed failure.",
"WGP must remain selectable for every affected route; emergency rollback remains a selector flip back to WGP.",
"Promote by route cohort, not by broad backend switch; cohorts A, B, and E require 48-hour holds between promotions as an operational gate.",
"Keep patches narrow, reversible, and tied to live canary evidence; avoid broad selector migrations, unrelated refactors, and defensive wrappers without evidence.",
"Do not include dashboard-only, readiness-only, or runbook-only work in Sprint 11A; only behavior-specific rollback notes belong in this milestone.",
" and worker claim guards are the execution isolation boundary; do not use aggregate as proof of route isolation.",
" should be treated as legacy/global unless SQL/RPC signatures and implementations are explicitly changed and tested.",
"Route-aware scaling confidence should come from and orchestrator .",
"If Section 3A or metadata changes, enforce the mirror-or-document rule explicitly.",
"When app/completion/billing shared surfaces are touched, prove active non-RayWorker routes remain green.",
"Rollback notes must be updated in every repo whose runtime behavior changes, especially for app-owned edge behavior."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does the patch have a named canary trigger with route cohort, route key/task type, selector namespace/version, selected backend, worker pool, task/log refs, observed symptom, and exactly one primary boundary?",
"executor_note": "No. U1 remains unverified and no named canary trigger with route cohort, route key/task type, selector namespace/version, selected backend, worker pool, task/log refs, observed symptom, and exactly one primary boundary is available. T1 is blocked awaiting U1.",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T2",
"question": "For every selector or route-contract change, does WGP remain selectable and are runtime contract fields mirrored between Python and TypeScript where both surfaces own the same behavior?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T3",
"question": "If claim or count behavior changed, do tests prove mismatched backend/profile/selector namespace/version/contract workers cannot execute the selected task, and are aggregate totals not overstated as route-filtered proof?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T4",
"question": "If orchestrator lifecycle changed, do active route-stale workers drain, idle stale workers become terminable, and stale workers stop contributing healthy capacity for the new selector?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC5",
"task_id": "T5",
"question": "If completion or billing changed, are idempotency, child task billing ownership, spend-ledger behavior, and active non-RayWorker route behavior preserved?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC6",
"task_id": "T6",
"question": "Does focused regression coverage directly exercise the canary trigger and each changed selector, claim/count, lifecycle, completion, or billing behavior?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC7",
"task_id": "T7",
"question": "Do rollback notes exist in every repo whose behavior changed and do they describe selector env vars, worker pool identity, route contract version, stale-route drain behavior, and selector flip back to WGP?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC8",
"task_id": "T8",
"question": "Did focused and relevant broader tests pass, did the throwaway reproduction script verify the bug fix, and was the throwaway script deleted afterward?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC9",
"task_id": "T9",
"question": "Were all before_execute user_actions programmatically verified before execution proceeded?",
"executor_note": "No. The before_execute action U1 was identified and checked with shell commands, but completion could not be verified because no concrete live canary trigger details were present in repository or plan artifacts. Execution stopped blocked before any downstream work.",
"verdict": ""
}
],
"user_actions": [
{
"id": "U1",
"description": "Provide or confirm the live canary trigger details before execution: route cohort, route key or task type, selector namespace/version, selected backend, worker pool, affected task IDs or log refs, observed failure, and any known non-RayWorker shared-surface exposure.",
"phase": "before_execute",
"blocks_task_ids": [
"T1",
"T2",
"T3",
"T4",
"T5",
"T6",
"T7",
"T8"
],
"rationale": "The approved plan forbids code patches without concrete live canary evidence.",
"requires_human_only_reason": "This operational evidence comes from the live canary environment and cannot be inferred safely from repository code alone."
},
{
"id": "U2",
"description": "After local validation and code review, deploy the changed repo(s), perform the production selector operation for the intended route cohort, and observe the required 48-hour cohort hold before the next promotion.",
"phase": "after_execute",
"blocks_task_ids": null,
"rationale": "Production deploys, selector flips, and canary hold decisions are operational actions outside repo editing.",
"requires_human_only_reason": "This is the sole coverage for the approved plan's live canary promotion hold criterion, which requires production access and runtime observation."
}
],
"meta_commentary": "Execute this as a narrow evidence-driven patch, not a general Sprint 11 cleanup. Start by pinning the canary trigger and choosing one boundary; only touch other repos if the chosen boundary forces a cross-repo contract or rollback update. The highest-risk trap is treating as cohort isolation evidence: the execution gate is claim behavior, while counts are scaling/visibility unless the SQL/RPC layer is changed. The other key trap is Section 3A metadata: runtime route fields must mirror between Python and TypeScript, but report-only metadata can remain worker-only only if the patch says so explicitly. Keep WGP selectable throughout and keep rollback notes behavior-specific.",
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Step 1: Pin live canary evidence and choose one patch boundary",
"finalize_item_ids": [
"U1",
"T1"
]
},
{
"plan_step_summary": "Step 2: Patch selector contracts with WGP safety and Python/TypeScript mirror rules",
"finalize_item_ids": [
"T2",
"T6",
"T7",
"T8"
]
},
{
"plan_step_summary": "Step 3: Patch claim and task-count behavior while distinguishing claim gates from aggregate counts",
"finalize_item_ids": [
"T3",
"T6",
"T7",
"T8"
]
},
{
"plan_step_summary": "Step 4: Patch worker/orchestrator lifecycle only when live evidence points there",
"finalize_item_ids": [
"T4",
"T6",
"T7",
"T8"
]
},
{
"plan_step_summary": "Step 5: Patch completion or billing shared paths only with non-RayWorker protection",
"finalize_item_ids": [
"T5",
"T6",
"T7",
"T8"
]
},
{
"plan_step_summary": "Step 6: Update behavior-specific rollback notes for every repo changed",
"finalize_item_ids": [
"T7"
]
},
{
"plan_step_summary": "Step 7: Prove the patch with focused tests, non-RayWorker evidence where needed, broader touched-repo checks, and a throwaway reproduction script",
"finalize_item_ids": [
"T6",
"T8"
]
},
{
"plan_step_summary": "Verify before_execute user_actions",
"finalize_item_ids": [
"T9"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All seven approved plan steps are mapped to execution tasks, with human actions only for live canary evidence and production deployment/hold operations. Boundary-specific code tasks are conditional on the selected canary trigger so the executor can keep the patch narrow while still covering all approved surfaces if evidence requires them.",
"coverage_complete": true
},
"baseline_test_failures": null,
"baseline_test_command": "pytest --tb=no -q --no-header",
"baseline_test_note": "Baseline test capture timed out after 120 seconds while running: pytest --tb=no -q --no-header"
}
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 / to be safe in strict typescript. (flagged 1 times across 1 plans)
cd reigh-worker && python -m pytest tests/test_template_routing.py tests/runtime/test_worker_preflight.py
cd reigh-worker-orchestrator && python -m pytest tests/test_route_stale_worker_state.py tests/gpu_orchestrator/test_route_aware_task_counts.py
cd reigh-app && npx vitest run --config config/testing/vitest.edge.config.ts supabase/functions/create-task/routeContract.test.ts supabase/functions/complete_task/billing.test.ts supabase/functions/_shared/billing.test.ts supabase/functions/calculate-task-cost/index.test.ts
cd reigh-worker && python -m pytest scripts/dual_run_compare/tests/test_non_rayworker_fixtures.py
claim-next-task
task-counts.totals
task-counts.totals
route_totals
selected_pool_totals
disposition
blocking_reason
reigh-app/tasks/canary-rollback-app.md
task-counts.totals
prev.endimage
[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-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: standard.
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]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC1]
- 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-11a-production-canary-20260506-2145/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.
- 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.
cd reigh-worker && python -m pytest tests/test_template_routing.py tests/runtime/test_worker_preflight.py
cd reigh-worker-orchestrator && python -m pytest tests/test_route_stale_worker_state.py tests/gpu_orchestrator/test_route_aware_task_counts.py
cd reigh-app && npx vitest run --config config/testing/vitest.edge.config.ts supabase/functions/create-task/routeContract.test.ts supabase/functions/complete_task/billing.test.ts supabase/functions/_shared/billing.test.ts supabase/functions/calculate-task-cost/index.test.ts
cd reigh-worker && python -m pytest scripts/dual_run_compare/tests/test_non_rayworker_fixtures.py
claim-next-task
task-counts.totals
task-counts.totals
route_totals
selected_pool_totals
disposition
blocking_reason
reigh-app/tasks/canary-rollback-app.md
task-counts.totals
prev.endimage
[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-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: standard.
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]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC2]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/reigh-workspace/.megaplan/plans/sprint-11a-production-canary-20260506-2145/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.
- 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.