// allow-test-rule: source-text-is-the-product (#3301) // The workflow markdown IS the installed orchestration contract; these rows // extract the real shipped bash and execute it, never a hand-copied duplicate. 'use strict'; /** * #3301 — reviewers in the cross-AI plan-review workflow are never told the * plan ids or the total plan count, so a review that silently covers 6 of 7 * plans is indistinguishable from one that covers all 7. * * Two behavioral seams, both extracted from the REAL shipped bash in * msd-core/workflows/review.md (the same pattern as * tests/review-build-prompt-optional-sections.test.cjs): * * 1. build_prompt's plan-copy block — must derive a `.plans-manifest.md` * (plan ids + total count) from the `*-PLAN.md` filenames and append it * to both msd-review-instructions.md and msd-review-prompt.md. * 2. write_reviews' plan-coverage-check block — must grade each dispatched * lane's review file against that manifest, honoring two named regex * traps (escaped ids, hyphen-boundary exclusion) and skipping stub/empty/ * CodeRabbit lanes. * * Script transport is temp-FILE based, never `bash -c