test(athena): add tests for intent addendums, hook enforcement, restriction parity, and council prompt regression

This commit is contained in:
ismeth
2026-02-27 16:46:38 +01:00
committed by YeonGyu-Kim
parent 6b450b42db
commit da446979f6
5 changed files with 279 additions and 3 deletions
@@ -20,5 +20,27 @@ describe("COUNCIL_MEMBER_PROMPT", () => {
expect(COUNCIL_MEMBER_PROMPT).toContain("</COUNCIL_MEMBER_RESPONSE>")
})
})
describe("#when checking for audit bias regression", () => {
it("#then does not contain severity (moved to AUDIT addendum)", () => {
expect(COUNCIL_MEMBER_PROMPT).not.toContain("severity")
})
it("#then does not contain Search the codebase (codebase-specific)", () => {
expect(COUNCIL_MEMBER_PROMPT).not.toContain("Search the codebase")
})
it("#then does not contain Focus on finding real issues (AUDIT-specific)", () => {
expect(COUNCIL_MEMBER_PROMPT).not.toContain("Focus on finding real issues")
})
it("#then does not contain AUDIT-style numbered finding headers", () => {
expect(COUNCIL_MEMBER_PROMPT).not.toMatch(/## Finding \d/)
})
it("#then contains evidence-based (generic analysis language)", () => {
expect(COUNCIL_MEMBER_PROMPT).toContain("evidence-based")
})
})
})
})