feat(verify-gate): register enforce-verify-gate in manifest (G1 task7)

This commit is contained in:
Дмитрий
2026-06-09 10:22:36 +03:00
parent f28bf7b8e9
commit 0885d88546
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -39,6 +39,7 @@ const DEFAULT_REQUIRED_HOOKS = [
'enforce-snapshot.mjs', // М6 снимок: точка отката перед разрушительным
'enforce-floor-escape-consume.mjs', // М6 escape владельца: единственная законная дверь
'enforce-skill-journaler.mjs', // М1 журналер навыков: неподделываемый канал K2
'enforce-verify-gate.mjs', // G1 М5-family: подписанный verify-receipt перед commit/push
];
/** Собрать все command-строки хуков из settings (битые/пустые секции игнорируются, не бросает). */
+7
View File
@@ -80,6 +80,7 @@ describe('floor-manifest-check — F-3: DEFAULT защитный набор ши
{ type: 'command', command: 'node tools/enforce-snapshot.mjs' },
{ type: 'command', command: 'node tools/enforce-floor-escape-consume.mjs' },
{ type: 'command', command: 'node tools/enforce-skill-journaler.mjs' },
{ type: 'command', command: 'node tools/enforce-verify-gate.mjs' },
] }] } };
const r = checkManifest({ settings: full }); // без requiredHooks → DEFAULT
expect(r.ok).toBe(true);
@@ -107,3 +108,9 @@ describe('SE-B (М7 Фаза 6): DEFAULT включает М4 (judge-gate) + М6
expect(r.missing).toContain('enforce-judge-gate.mjs');
});
});
describe('G1: DEFAULT_REQUIRED_HOOKS включает enforce-verify-gate (М5-family verify)', () => {
it('DEFAULT_REQUIRED_HOOKS содержит enforce-verify-gate.mjs', () => {
expect(manifestInternals.DEFAULT_REQUIRED_HOOKS).toContain('enforce-verify-gate.mjs');
});
});