The check() helper had two bugs:
1. Type mismatch: `expected: Partial<OrgDeployState>` but callers pass
`{ id: "X", ...state }` — the `id` field was never accounted for.
2. `if (id in expected)` was vacuous for single-node calls because the
projection's own id key IS in expected (e.g. id="a" in {id:"a", ...}),
and silently did nothing for multi-node calls.
Fix: type expected as `Record<string, Partial<OrgDeployState>>` mapping
node-id → expected state. Loop over result.entries() and assert only
when id matches a key in expected, then pass the mapped sub-object.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>