You are already running inside the megaplan harness for this step. Do the requested planning/review/execution work directly. Do NOT invoke the megaplan CLI, do NOT read or activate the megaplan skill, do NOT start nested megaplan plans, and do NOT recurse into another planning harness. Treat mentions of megaplan in the repository or environment as implementation context only.
You are an independent reviewer. Critique the plan against the actual repository.
MP-Pack-Ensure: add the missing 'actually install' verb so vibecomfy can chain install-plan → install → reload in one command, plus pin ComfyUI-QwenTTS in the lockfile.
Today (post-P1) the discovery and verification machinery is wired but installation itself is a printed plan, not an action:
vibecomfy/commands/nodes.py has _cmd_nodes_install_plan() which scans a workflow, finds missing class_types, looks them up in KNOWN_NODE_PACKS, and PRINTS the suggested packs.
vibecomfy/node_packs.py:KNOWN_NODE_PACKS is the static registry mapping class_type → CustomNodePack(name, repo, classes, pip_packages).
vibecomfy/node_packs_lockfile.py reads/writes custom_nodes.lock with git_commit_sha pins (added in P1).
vibecomfy/commands/doctor.py fail-closes on SHA drift before session.start() (added in P1).
EmbeddedSession.reload_for_nodepack_change() is the post-install reload verb (added in P1).
The gap: no command actually performs the install. User has to copy the printed git clone + pip install commands and run them by hand. This is also why ComfyUI-QwenTTS is referenced in ready_templates/video/ltx2_3_runexx_talking_avatar_qwen_tts.py:363 but is not pinned in custom_nodes.lock — the workflow worked with manual install but never went through the lockfile path.
DELIVERABLES:
New command 'vibecomfy nodes install ' OR '--repo ' that:
Clones the repo into the local custom_nodes directory (search the project for the canonical install path; check vibecomfy/runtime/session.py and existing scripts to find where Comfy expects custom nodes — likely a 'custom_nodes/' dir).
Pip-installs the pack's pip_packages from KNOWN_NODE_PACKS (use subprocess with the project's existing pip command discovery; mirror what install-plan currently SUGGESTS).
On success, calls into vibecomfy/node_packs_lockfile.py to UPSERT the new entry with git_commit_sha read from the cloned repo HEAD.
On failure (clone error, pip error), prints a clear error and exits non-zero. Does NOT mutate the lockfile on failure.
{"checks":[],"flags":[{"id":"FLAG-001","concern":"Runtime integration: EmbeddedSession.run is synchronous in the current repository, so the plan's would be invalid Python/behavior for this method. The implementation needs to call the existing synchronous reload method directly or skip the optional kwarg path.","category":"correctness","severity_hint":"likely-significant","evidence":"The plan says to extend and, when installs happen, . In the repo, defines , not , and is also defined as a normal synchronous method."},{"id":"FLAG-002","concern":"Runtime integration: importing CLI helpers from inside would create an improper dependency from runtime code to argparse/CLI command handlers, making the optional path brittle and hard to test outside CLI context. Shared install/resolve logic should live in a neutral module if the runtime API is added.","category":"maintainability","severity_hint":"likely-significant","evidence":"The plan's assumption says lives in and is imported by when ; the same plan calls from . Current does not depend on , and is planned around argparse namespaces and CLI printing/exit-code semantics."},{"id":"FLAG-003","concern":"QwenTTS pinning: the plan does not satisfy the deliverable to pin ComfyUI-QwenTTS in ; it downgrades the requirement to a docs follow-up. The brief allows documenting follow-up only if installing is risky, but still asks to record the intended entry, and acceptance says ComfyUI-QwenTTS is recorded in the lockfile path/follow-up. A pure docs note leaves doctor unable to enforce the pack's SHA.","category":"completeness","severity_hint":"likely-significant","evidence":"Deliverable 3 says to pin ComfyUI-QwenTTS in by running install or, if risky, 'record the intended entry and document the user-action follow-up.' The plan's Step 6 says 'Do not hand-edit ' and only updates , so no lockfile entry is produced."}],"verified_flag_ids":[],"disputed_flag_ids":[]}
{"checks":[],"flags":[{"id":"FLAG-001","concern":"QwenTTS lockfile pinning: the plan does not satisfy the deliverable to pin ComfyUI-QwenTTS in custom_nodes.lock; it downgrades that requirement to a docs-only follow-up. That leaves doctor unable to fail-close on QwenTTS SHA drift for the ready template that already declares the pack.","category":"completeness","severity_hint":"likely-significant","evidence":"custom_nodes.lock currently contains only ComfyUI-KJNodes and ComfyUI-WanVideoWrapper. The brief's deliverable 3 says to pin ComfyUI-QwenTTS by running install or, if risky, to record the intended entry and document the follow-up. The plan's Step 6 explicitly says not to edit custom_nodes.lock and only updates docs/custom_nodes.md."},{"id":"FLAG-002","concern":"Runtime ensure_packs layering: the plan has import and call private CLI helpers from , including with argparse/print/exit-code semantics. That makes the runtime API depend on CLI command wiring and error reporting, which is brittle for an opt-in runtime feature; if this kwarg is implemented, shared resolve/install code should live in a neutral module and the CLI should wrap it.","category":"maintainability","severity_hint":"likely-significant","evidence":"The plan's Step 4 calls shared and from , and its assumptions place that helper in . Current has no dependency on , while is an argparse command module that prints user-facing output and returns integer command status."}],"verified_flag_ids":[],"disputed_flag_ids":[]}
Idempotent: if the repo already exists at the install path with a clean working tree, just refreshes the SHA and returns success. If dirty, refuses unless --force.
New command 'vibecomfy nodes ensure --template ' OR '--workflow ' that:
Calls the existing install-plan logic to identify missing packs.
For each missing pack, calls the new 'install' verb.
After all installs, optionally calls session.reload_for_nodepack_change() if a session is reachable; if not, prints clearly that the user should reload/restart their session.
Exits non-zero if any install fails.
Has --dry-run that just prints the plan (essentially aliasing install-plan for ergonomics).
Pin ComfyUI-QwenTTS in custom_nodes.lock by:
Adding the QwenTTS entry to vibecomfy/node_packs.py:KNOWN_NODE_PACKS (lookup the actual class_types it provides — at minimum 'AILab_Qwen3TTSVoiceClone' from the talking-avatar template; check the pack's repo for the full class list).
Running 'vibecomfy nodes install ComfyUI-QwenTTS' (or scripted equivalent at execution time) to populate the lockfile entry, OR if installing during the megaplan run is risky, just record the intended entry and document the user-action follow-up.
Repo URL: research the canonical ComfyUI-QwenTTS repo (likely under 'AIFSH' or similar org on GitHub — verify before committing).
Optional but nice-to-have: add an 'ensure_packs: bool = False' kwarg to EmbeddedSession.run(...) that calls the ensure path before executing. Default False (opt-in, no surprise installs). If True and a pack is missing, install + reload + then execute. Document explicitly that this is a convenience for dev workflows; production should pre-stage installs via 'vibecomfy nodes ensure'.
Tests:
Unit test for the install verb using a mocked subprocess (don't actually clone repos in CI). Assert: lockfile UPSERT happens on success, no mutation on failure, idempotent on existing clean clone.
Unit test for ensure that mocks install and asserts the dependency-resolution logic.
If ensure_packs kwarg is added: integration-style test (mocked) that asserts session.run with ensure_packs=True calls the install path before queue_prompt_api.
CRITICAL CONSTRAINTS:
Backward compat: existing 'vibecomfy nodes install-plan' must keep working unchanged — install is a NEW verb, not a replacement.
Do NOT actually clone real repos or pip-install during the megaplan execution phase — use mocks for tests. The user (or post-merge CI) can do real installs.
Do NOT touch P1 territory beyond what's necessary: vibecomfy/commands/nodes.py and vibecomfy/commands/doctor.py are P1's; touching them to ADD new subcommands is fine, but don't refactor what P1 just shipped.
Do NOT add hot-loading without session reload — sticking to the SD-005 / plan §'Custom Nodes — Adding On the Fly' policy: 'Hot-loading a new nodepack into an already-running HiddenSwitch executor is not the default. Adding a new pack defaults to session reload or restart.'
Do NOT touch vibecomfy/blocks/, vibecomfy/workflow.py, vibecomfy/runtime/session.py beyond adding the optional ensure_packs kwarg surface (and only if cleanly additive).
KEY FILES:
vibecomfy/commands/nodes.py (existing install-plan; new install + ensure subcommands here)
vibecomfy/node_packs.py:KNOWN_NODE_PACKS (registry to extend with QwenTTS)
vibecomfy/node_packs_lockfile.py (LockEntry, read_lockfile, write_lockfile — P1 just added these)
docs/python_composition_dsl_plan.md §'Custom Nodes' for design intent
ACCEPTANCE:
'vibecomfy nodes install ComfyUI-QwenTTS' (with appropriate args) installs the pack and updates the lockfile (mocked in tests; real install is user follow-up).
'vibecomfy nodes ensure --template video/ltx2_3_runexx_talking_avatar_qwen_tts' identifies missing packs and installs them (mocked).
ComfyUI-QwenTTS is recorded in KNOWN_NODE_PACKS with its class types.
Existing 'install-plan' command still works.
All existing tests pass.
New tests for install / ensure behavior pass with mocks.
P1 already shipped the lockfile (vibecomfy/node_packs_lockfile.py), the doctor SHA-drift gate (vibecomfy/commands/doctor.py:98), the embedded reload verb (vibecomfy/runtime/session.py:210), the static catalog (vibecomfy/node_packs.py:14), and the nodes install-plan command that prints missing packs (vibecomfy/commands/nodes.py:46). The gap is the verb that actually performs the install and writes back to custom_nodes.lock. This change adds two CLI verbs (install, ensure), an opt-in EmbeddedSession.run(..., ensure_packs=True) convenience, and the QwenTTS lockfile follow-up.
Notable repo facts that shape the design:
Canonical install path is custom_nodes/<pack-name>/ (used by every script in scripts/, e.g. scripts/runpod_corpus_matrix.py:438, and matched by _installed_nodepack_dir at vibecomfy/commands/nodes.py:130). Vendor paths exist as fallbacks for doctor reads only.
KNOWN_NODE_PACKS already includes ComfyUI-QwenTTS with AILab_Qwen3TTSVoiceClone and the rest of the AILab class set (vibecomfy/node_packs.py:116). So deliverable #3 only needs the custom_nodes.lock pin / docs note.
Current custom_nodes.lock is the legacy 2-line format. read_lockfile/write_lockfile round-trip legacy → TOML cleanly.
_installed_nodepack_dir and _git_head helpers already exist and can be reused.
Constraints honored: existing install-plan is untouched; no real clone/pip in tests; vibecomfy/blocks/ and vibecomfy/workflow.py are not touched; runtime/session.py gets a strictly-additive kwarg.
Main Phase
Step 1: Add a lockfile UPSERT helper (vibecomfy/node_packs_lockfile.py)
Scope: Small
Addupsert_lockfile_entry(entry: LockEntry, path: Path = Path(\"custom_nodes.lock\")) -> None next to write_lockfile (vibecomfy/node_packs_lockfile.py:38). Read existing entries, replace by name if present else append, then call write_lockfile.
Note: First UPSERT migrates legacy → TOML, which read_lockfile already accepts (vibecomfy/node_packs_lockfile.py:34).
Add_cmd_nodes_install(args) accepting <pack-name> positional or--repo <url> (with optional --name override). Resolve the catalog CustomNodePack for the pip-package list when invoked by name.
Compute install dir as Path(\"custom_nodes\") / name, matching the priority of _installed_nodepack_dir (vibecomfy/commands/nodes.py:130).
Idempotent path — if the dir exists:
clean (git -C <dir> status --porcelain empty) → read HEAD via _git_head, UPSERT, exit 0.
dirty → refuse unless --force. With --force, skip clone but UPSERT current HEAD (do not destroy local edits).
Clone path — dir absent:
subprocess.run([\"git\", \"clone\", pack.repo, str(install_dir)], check=True, capture_output=True, text=True). On failure, print stderr, return non-zero, no UPSERT.
If catalog pip_packages non-empty, subprocess.run([sys.executable, \"-m\", \"pip\", \"install\", *pip_packages], check=True, ...). On failure, print stderr, return non-zero, no UPSERT.
On success: _git_head(install_dir) → upsert_lockfile_entry(LockEntry(name=pack.name, git_commit_sha=sha, url=pack.repo)).
Wire in register() (vibecomfy/commands/nodes.py:165) — new install subparser, leave install-plan parser intact.
Add_cmd_nodes_ensure(args) taking mutually-exclusive --template or --workflow, both flowing through load_workflow_reference.
Extract the resolve step from _cmd_nodes_install_plan into _missing_packs_for_workflow(workflow) -> (list[CustomNodePack], list[str unresolved]) so both verbs share it. No behavior change to install-plan.
Dry-run: --dry-run prints the same human plan as install-plan, exits with the same code semantics.
Install loop: for each missing pack, call _cmd_nodes_install(argparse.Namespace(name=pack.name, repo=None, force=False)); on first non-zero, abort and propagate.
Reload hint: after success, print one line telling the user to call session.reload_for_nodepack_change(...) or restart their session.
Wire in register() — new ensure subparser with mutex --template / --workflow and --dry-run.
Step 4: Optional ensure_packs kwarg on EmbeddedSession.run (vibecomfy/runtime/session.py)
Scope: Small
ExtendEmbeddedSession.run(self, workflow, *, backend=\"api\", ensure_packs: bool = False) (vibecomfy/runtime/session.py:112). When True, before _run_untracked: call shared _missing_packs_for_workflow, run each install via _cmd_nodes_install, then await self.reload_for_nodepack_change(reason=\"ensure_packs\") if anything was installed. On any install failure raise RuntimeError(\"ensure_packs: install failed for <pack>\") before queueing.
Do not wire ServerSession — out of scope.
One-line comment on the new kwarg flagging dev-convenience only.
ConfirmKNOWN_NODE_PACKS already covers QwenTTS — no code edit (vibecomfy/node_packs.py:116).
Updatedocs/custom_nodes.md to replace the stale lockfile snippet with a pointer to custom_nodes.lock and add: "ComfyUI-QwenTTS is required by ready_templates/video/ltx2_3_runexx_talking_avatar_qwen_tts.py. Run vibecomfy nodes install ComfyUI-QwenTTS locally (or in CI) to populate custom_nodes.lock with the resolved SHA."
Do not hand-edit custom_nodes.lock with a fabricated SHA — see assumption.
Execution Order
UPSERT helper (Step 1).
install verb + its tests (Step 2 + part of Step 5).
ensure verb + its tests (Step 3 + part of Step 5).
ensure_packs kwarg + its test (Step 4 + final test).
Docs (Step 6).
Validation Order
pytest tests/test_nodes_lock.py tests/test_nodes_install.py — fastest signal on the new code.
pytest tests/test_cli.py tests/test_doctor_lockfile.py — backward-compat for install-plan and the doctor SHA gate.
pytest — full sweep.
code
Plan metadata:
{
"version": 1,
"timestamp": "2026-04-26T20:28:19Z",
"hash": "sha256:f36fe9412901cc6c3b91170c526e2aa840acce8519c3c5d602d5e8bde4df0e64",
"questions": [
"Should vibecomfy nodes install UPSERT the lockfile or only the explicit vibecomfy nodes lock command? The brief says install should UPSERT directly; confirm you want the lockfile mutated automatically on every successful install, not as a separate step.",
"For the QwenTTS lockfile pin: do you want me to (a) leave it as a documented user-action follow-up (no custom_nodes.lock edit in this PR), or (b) you provide a known-good git_commit_sha from a prior successful install and I hand-edit the lockfile? Per the brief constraint we cannot do real clones during execution.",
"Should ensure --workflow accept the same loose path resolution as doctor and install-plan (scratchpad .py / .json / template-id), or strictly a filesystem path? I'm assuming the former for ergonomic parity.",
"For the ensure_packs kwarg, when no missing packs are detected, should run() skip reload_for_nodepack_change entirely (my plan) or always reload to flush schema cache? The conservative read of the SD-005 policy says skip when no installs happened.",
"Should nodes install --repo URL infer pack name from the repo URL basename (.git stripped), or require an explicit --name? My plan infers, with --name as override."
],
"success_criteria": [
{
"criterion": "vibecomfy nodes install <pack> clones the repo into custom_nodes/<pack>/, runs pip install for the catalog's pip_packages, and UPSERTs custom_nodes.lock with the cloned HEAD SHA \u2014 verified via mocked-subprocess unit tests.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "vibecomfy nodes install does not mutate custom_nodes.lock when either the git clone or the pip install fails \u2014 verified via mocked-subprocess unit tests.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "vibecomfy nodes install is idempotent on a clean existing checkout (no clone, UPSERT only) and refuses on a dirty checkout without --force \u2014 verified via unit tests.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "vibecomfy nodes ensure --template <id> resolves missing packs via the same logic as install-plan and invokes install for each \u2014 verified via a unit test that mocks _cmd_nodes_install.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "vibecomfy nodes ensure --dry-run prints the plan and never invokes the install verb \u2014 verified via a unit test with a fail-loud install mock.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "Existing vibecomfy nodes install-plan behavior is unchanged: tests/test_cli.py::test_nodes_install_plan_suggests_pack_for_missing_class still passes.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "Doctor still fail-closes on a synthetic SHA mismatch: tests/test_doctor_lockfile.py::test_doctor_lockfile_mismatch_fails_closed still passes.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "EmbeddedSession.run(workflow, ensure_packs=True) runs install \u2192 reload \u2192 queue_prompt_api in that order when packs are missing \u2014 verified via a mocked test in tests/test_runtime_session.py.",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "ComfyUI-QwenTTS is present in KNOWN_NODE_PACKS with AILab_Qwen3TTSVoiceClone (and the rest of the AILab class set) covering the talking-avatar template's needs.",
"priority": "must",
"requires": [
"read_files"
]
},
{
"criterion": "docs/custom_nodes.md documents the vibecomfy nodes install ComfyUI-QwenTTS follow-up so a user can populate custom_nodes.lock outside of CI.",
"priority": "must",
"requires": [
"read_files"
]
},
{
"criterion": "Full pytest suite passes (no regressions).",
"priority": "must",
"requires": [
"run_tests"
]
},
{
"criterion": "No real git clone or pip install is executed during the test run; all subprocess interactions are mocked.",
"priority": "must",
"requires": [
"read_files",
"run_tests"
]
},
{
"criterion": "vibecomfy/blocks/, vibecomfy/workflow.py, and the non-additive parts of vibecomfy/runtime/session.py are untouched (only the new ensure_packs kwarg surface is added).",
"priority": "must",
"requires": [
"parse_diff"
]
},
{
"criterion": "The shared _missing_packs_for_workflow helper is reused by install-plan, ensure, and the ensure_packs kwarg path (no copy-paste duplication of the resolve logic).",
"priority": "should",
"requires": [
"read_files"
]
},
{
"criterion": "Subparser registration keeps nodes install-plan and the new nodes install distinct verbs (no naming collision, no backward-incompat rename).",
"priority": "must",
"requires": [
"read_files",
"run_tests"
]
},
{
"criterion": "Real install of ComfyUI-QwenTTS against the live GitHub repo succeeds outside CI and produces the lockfile entry \u2014 manual follow-up.",
"priority": "info",
"requires": [
"subjective_judgment"
]
}
],
"assumptions": [
"The legacy 2-line custom_nodes.lock may be migrated to the TOML format on the first UPSERT. read_lockfile already accepts both, and the existing P1 _cmd_nodes_lock writes TOML, so this is the documented direction.",
"QwenTTS will NOT be hand-pinned into custom_nodes.lock in this PR (no fabricated SHA). The PR documents the install command as the user-action follow-up. Question #2 may override this.",
"The ensure reload behavior is best-effort print-only: there is no published live-session bus to attach to from the CLI, so the CLI tells the user to reload their session manually. Inside EmbeddedSession.run(ensure_packs=True), reload IS performed against the calling session.",
"Pip installs use sys.executable -m pip install with the catalog's pip_packages tuple, no extra flags (no --no-deps, no --user). This matches the current scripts' default behavior in scripts/runpod_model_matrix.py:48.",
"The --force flag with a dirty repo skips the clone but proceeds to UPSERT the current HEAD \u2014 it does not run git checkout or git reset (no destructive ops without explicit user request).",
"ServerSession does NOT get an ensure_packs kwarg in this PR (per brief constraint to keep the surface additive). Only EmbeddedSession.run gets it.",
"The shared _missing_packs_for_workflow helper lives in vibecomfy/commands/nodes.py and is imported by vibecomfy/runtime/session.py only when ensure_packs=True (lazy import to avoid CLI-side imports leaking into hot paths)."
],
"structure_warnings": []
}
code
Plan structure warnings from validator:
[]
Existing flags:
[]
Known accepted debt grouped by subsystem:
{
"are-the-proposed-changes-technically-correct": [
{
"id": "DEBT-010",
"concern": "are the proposed changes technically correct?: the plan places _coercion_log.py under vibecomfy/blocks/ but also needs vibeworkflow.connect in vibecomfy/workflow.py to consult handle_trace_active and record events. because importing vibecomfy.blocks._coercion_log executes vibecomfy/blocks/init.py, and that package currently imports vibeworkflow at top level, any top-level import from workflow.py to vibecomfy.blocks._coercion_log would create a circular import risk unless the implementation uses carefully lazy imports or moves the shared trace module outside the blocks package.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"does-the-change-touch-all-locations-and-supporting-infrastructure": [
{
"id": "DEBT-006",
"concern": "does the change touch all locations and supporting infrastructure?: the proposed _coercion_log.py under vibecomfy/blocks/ is supporting infrastructure that both blocks and workflow need. given the current package dependency direction (blocks imports workflow), the safer location is a neutral module such as vibecomfy/handles.py or vibecomfy/handle_warnings.py; leaving it under blocks increases import-order fragility unless the implementation is very deliberate.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"find-the-callers-of-the-changed-function-what-arguments-do-they-actually-pass-does-the-fix-handle-all-of-them": [
{
"id": "DEBT-007",
"concern": "find the callers of the changed function. what arguments do they actually pass? does the fix handle all of them?: for the block helper caller path, vibeworkflow.connect is usually called by vibecomfy.blocks._utils.connect, not by the user's block function directly. the plan's immediate-caller-frame heuristic can work if _utils.connect has a handle local named source, but it will not identify the higher-level block function unless record_raw_ref_coercion preserves or walks to the block frame rather than skipping blocks frames.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"handle-equality-hash-semantics": [
{
"id": "DEBT-001",
"concern": "strict python hash/eq invariant violated for the bare-id compatibility bridge (handle('1', 0) == '1' and == '1.0' but hash('1') != hash('1.0')).",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-002",
"concern": "hash/eq compromise is documented but not strictly satisfied for bare-id bridge.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"import-architecture": [
{
"id": "DEBT-009",
"concern": "import architecture: placing shared trace state in vibecomfy.blocks._coercion_log risks circular imports because workflow.py needs the state for connect-site detection while vibecomfy.blocks.__init__ currently imports vibeworkflow at package import time.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"search-for-related-code-that-handles-the-same-concept-is-the-reported-issue-a-symptom-of-something-broader": [
{
"id": "DEBT-008",
"concern": "search for related code that handles the same concept. is the reported issue a symptom of something broader?: the plan's record_raw_ref_coercion helper says it finds the first non-vibecomfy/blocks frame for the site. that conflicts with the stated goal that raw string refs in block code are visible: a missed handles(image="...") inside a block called by a ready template could be attributed to an allowlisted ready_templates frame and suppressed, or at minimum would not identify the block module as the source.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"untyped-raw-ref-doctor-rule-coverage": [
{
"id": "DEBT-005",
"concern": "runtime detection covers handles values and connect refs but not arbitrary python dict keys outside those flows.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
],
"wf-node-out-api-contract": [
{
"id": "DEBT-003",
"concern": "non-digit slot names raise notimplementederror instead of returning a handle; diverges from brief's .out(name_or_index) literal wording.",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-004",
"concern": "same as issue_hints-1.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
}
code
Escalated debt subsystems:
[
{
"subsystem": "handle-equality-hash-semantics",
"total_occurrences": 3,
"plan_count": 2,
"entries": [
{
"id": "DEBT-001",
"concern": "strict python hash/eq invariant violated for the bare-id compatibility bridge (handle('1', 0) == '1' and == '1.0' but hash('1') != hash('1.0')).",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-002",
"concern": "hash/eq compromise is documented but not strictly satisfied for bare-id bridge.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
},
{
"subsystem": "wf-node-out-api-contract",
"total_occurrences": 3,
"plan_count": 2,
"entries": [
{
"id": "DEBT-003",
"concern": "non-digit slot names raise notimplementederror instead of returning a handle; diverges from brief's .out(name_or_index) literal wording.",
"occurrence_count": 2,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845",
"p1-foundation-typed-handle-20260426-1927"
]
},
{
"id": "DEBT-004",
"concern": "same as issue_hints-1.",
"occurrence_count": 1,
"plan_ids": [
"mp-2-implement-p1-hard-gates-20260426-1845"
]
}
]
}
]
code
Debt guidance:
- These are known accepted limitations. Do not re-flag them unless the current plan makes them worse, broadens them, or fails to contain them.
- Prefix every new concern with a subsystem tag followed by a colon, for example `Timeout recovery: retry backoff remains brittle`.
- When a concern is recurring debt that still needs to be flagged, prefix it with `Recurring debt:` after the subsystem tag, for example `Timeout recovery: Recurring debt: retry backoff remains brittle`.
Your output template is at: /Users/user_c042661f/Documents/reigh-workspace/vibecomfy/.megaplan/plans/mp-pack-ensure-add-the-20260426-2223/critique_output.json
Review the plan with a broad scope. Consider whether the approach is correct, whether it covers
all the places it needs to, whether it would break callers or violate codebase conventions,
and whether its verification strategy is adequate.
Place any concrete concerns in the flags array in the template file using the standard format
(id, concern, category, severity_hint, evidence). Leave checks as an empty array.
Workflow: read the file → investigate → read file again → add findings → write file back.
code
Additional guidelines:
- Robustness level: light. Be pragmatic. Only flag issues that would cause real failures. Ignore style, minor edge cases, and issues the executor will naturally resolve.
- Over-engineering: prefer the simplest approach that fully solves the problem.
- Reuse existing flag IDs when the same concern is still open.
- `verified_flag_ids`: list flag IDs from prior iterations that the revised plan actually resolves (e.g., if the plan was revised to fix FLAG-001, and you confirm the fix is correct, include "FLAG-001"). Only include flags you've verified — don't guess.
- Verify that the plan follows the expected structure when validator warnings or the outline suggest drift.
- Additional flags may use these categories: correctness, security, completeness, performance, maintainability, other.
- Focus on concrete issues, not structural formatting.