Skip to content

Commit a00df30

Browse files
committed
test(runtime): read leave_organization's variant leg with its bucket-C override set aside
leave_organization now declares ai.requiresConfirmation: true (ADR-0011's 2026-10-30 addendum, bucket C), and the declared override is read before the variant, so "still destructive off variant alone" passed without reading the variant. The case now asserts the declared flag on its own and classifies the real declaration with the override set aside; dropping the variant there turns it red. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4czk9umSFBVoz5cijzX
1 parent 0bd1491 commit a00df30

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎packages/runtime/src/action-execution-destructive.test.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ describe('sibling identity actions with a declared destructive signal still read
214214
const action = actionByName(SysOrganization, 'leave_organization');
215215
expect(action.variant).toBe('danger');
216216
expect(action.mode).not.toBe('delete');
217+
// ADR-0011's 2026-10-30 addendum exposes it in bucket C, and its declared
218+
// `ai.requiresConfirmation: true` is read before the variant — so the
219+
// variant leg is read with that override set aside, and the declared
220+
// flag is asserted on its own.
221+
expect(action.ai?.requiresConfirmation).toBe(true);
222+
expect(actionLooksDestructive(deps, { ...action, ai: undefined })).toBe(true);
217223
expect(actionLooksDestructive(deps, action)).toBe(true);
218224
});
219225
});

0 commit comments

Comments
 (0)