feat(ql3): enforce staged secret binding persistence

This commit is contained in:
whyour
2026-08-13 19:20:39 +08:00
parent f111d8b10c
commit 326783ff14
32 changed files with 1071 additions and 71 deletions
@@ -129,6 +129,14 @@ test('publishes, exact-replays and finds one binding', async () => {
value.queries.find(({ text }) => text.startsWith('INSERT')).text,
/install\.state = 'active'/,
);
assert.match(
value.queries.find(({ text }) => text.startsWith('INSERT')).text,
/install\.state = 'staged'/,
);
assert.match(
value.queries.find(({ text }) => text.startsWith('INSERT')).text,
/MAX\(history\.target_generation\)/,
);
});
test('rejects inactive targets and conflicting content', async () => {