Repository navigation
Expand file tree
/
Copy pathmeta-wizard-output.yaml
More file actions
45 lines (45 loc) · 1.69 KB
/
Copy pathmeta-wizard-output.yaml
File metadata and controls
45 lines (45 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# WizardOutput — the typed shape each wizard emits via Anthropic tool_use.
# takeMarkdown is the free-form prose users actually read; the rest is
# structured signal for the Clerk's verdict synthesis.
#
# This one object.value fans out to: src/db/generated/WizardOutput.ts (Zod), the
# render payload in src/render/generated/prompts.ts, the emit_wizard_take tool
# schema in src/llm/generated/toolcalls.ts, and the `wizard` SSE frame in
# src/web/generated/council-frames.ts — rename a field and the drift gate fails
# everywhere it's used at once. (Tour: docs/how-metaobjects-is-used.md.)
metadata:
package: wizardsofodd
children:
- object.value:
name: WizardOutput
children:
- field.enum:
name: stance
extends: wizardStance
required: true
- field.string:
name: takeMarkdown
required: true
- field.string:
name: oneLineSummary
maxLength: 140
required: true
- field.float:
name: confidence
required: true
# The prompts promise a 0–1 calibration; enforce it so a model that
# returns e.g. 87 fails validation (and retries) instead of the
# out-of-range value flowing into the tool schema and the UI.
children:
- validator.numeric:
min: 0
max: 1
- field.string:
name: keyClaims
isArray: true
required: true
- field.object:
name: citations
objectRef: SourceLens
isArray: true
required: false