feat(#1137): migrate review verification hooks to capabilities (#1147)

* feat(#1137): migrate review verification hooks to capabilities

* chore(#1147): add changeset
This commit is contained in:
Tom Boucher
2026-06-12 21:24:09 -04:00
committed by GitHub
parent 44024aa535
commit 1b880fefd7
25 changed files with 951 additions and 109 deletions

View File

@@ -178,11 +178,19 @@ describe('SECURE: secure-phase workflow file', () => {
);
});
test('contains security_enforcement config check', () => {
test('contains security capability hook check', () => {
const content = fs.readFileSync(wfPath, 'utf-8');
assert.ok(
content.includes('security_enforcement'),
'must check security_enforcement config setting'
content.includes('loop render-hooks verify:post'),
'must resolve security activation through verify:post capability hooks'
);
assert.ok(
content.includes('ref.skill == "secure-phase"'),
'must identify the secure-phase capability hook'
);
assert.ok(
!content.includes('config-get workflow.security_enforcement'),
'must not read workflow.security_enforcement directly after capability cutover'
);
});