mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-12 22:13:05 +00:00
test(DESIGN1): alinha o spec do gate de arquivos ao DESIGN.md do front/designer
O DESIGN1 liberou só o frontier para evoluir as regras visuais vivas (`DESIGN.md` §7) e manteve o tier degradado propondo — o spec pinava a lista antiga de `permission.edit` e derrubou o `verify` da main (deploy run 36247187381), o que bloqueava qualquer PR. A expectativa vira por agente.
This commit is contained in:
parent
3e8429daae
commit
3ccb1aea9b
1 changed files with 8 additions and 1 deletions
|
|
@ -91,8 +91,15 @@ describe('design agents share the OPS117 bash write guard', () => {
|
|||
expect(rules).toEqual(expectedBash)
|
||||
})
|
||||
|
||||
// DESIGN1: only the frontier designer evolves the living visual rules
|
||||
// (`DESIGN.md` §7); the degraded tier proposes and hands the decision back.
|
||||
const expectedEdit = {
|
||||
designer: [`'*': deny`, `'docs/plans/*-ui-design*': allow`, `'DESIGN.md': allow`],
|
||||
'designer-degraded': [`'*': deny`, `'docs/plans/*-ui-design*': allow`],
|
||||
} as const
|
||||
|
||||
it.each(agents)('%s keeps the file-tool gate fail-closed (OPS113 intact)', (agent) => {
|
||||
expect(block(agent, 'edit')).toEqual([`'*': deny`, `'docs/plans/*-ui-design*': allow`])
|
||||
expect(block(agent, 'edit')).toEqual(expectedEdit[agent])
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue