fix(athena): enforce strict schema validation for council members

Add .strict() to CouncilMemberSchema to reject unknown fields like temperature. Remove unused Zod-inferred type exports. Add test verifying unknown fields are rejected.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
ismeth
2026-02-18 20:55:05 +01:00
committed by YeonGyu-Kim
parent 94bd5ac47f
commit 09be9fe75f
2 changed files with 12 additions and 5 deletions
+11
View File
@@ -111,6 +111,17 @@ describe("CouncilMemberSchema", () => {
expect(parsed.variant).toBeUndefined()
expect(parsed.name).toBeUndefined()
})
test("rejects member config with unknown fields", () => {
//#given
const config = { model: "openai/gpt-5.3-codex", temperature: 0.2 }
//#when
const result = CouncilMemberSchema.safeParse(config)
//#then
expect(result.success).toBe(false)
})
})
describe("CouncilConfigSchema", () => {