kunibert
All repositories: gitoria
3.0 KB
# Konrad handover part 3: output schema and how it is used## Output schema (verbatim, used with codex --output-schema)```json{"type": "object","additionalProperties": false,"required": ["summary","axes","verdict","findings","replies"],"properties": {"summary": {"type": "string"},"axes": {"type": "object","additionalProperties": false,"required": ["correctness","spec","standards"],"properties": {"correctness": {"type": "string"},"spec": {"type": "string"},"standards": {"type": "string"}}},"verdict": {"type": "string","enum": ["approve","comment","request_changes"]},"findings": {"type": "array","items": {"type": "object","additionalProperties": false,"required": ["axis","path","line","severity","title","body"],"properties": {"axis": {"type": "string","enum": ["correctness","spec","standards"]},"path": {"type": "string"},"line": {"type": "integer"},"severity": {"type": "string","enum": ["blocker","major","minor","nit"]},"title": {"type": "string"},"body": {"type": "string"}}}},"replies": {"type": "array","items": {"type": "object","additionalProperties": false,"required": ["thread","body","resolve"],"properties": {"thread": {"type": "string"},"body": {"type": "string"},"resolve": {"type": "boolean"}}}}}}```## How the output is used- **Inline comment:** `**<badge> <Severity> · <Axis>: <title>**` followed by the body. Badges: 🛑 blocker, 🔶 major, 🔹 minor, 💬 nit.- **Review body:**- the summary;- per axis: `### Correctness (N new, M still open)`, then the axis text, then "_Not on changed lines:_" findings, then "_Still open from earlier rounds:_".- **Status:** failure if the verdict is request_changes. The summary line reads "<n> new finding(s), <m> thread replies".- **Thread keys:** T<root comment id>. The axis of an old thread is parsed back from its badge line.## Suggested first tickets1. Forge event intake + job queue.2. Local git cache + diff.3. Model runner + schema.4. Posting reviews, threads and status.5. Per-PR session memory.6. A lane with gates (the gap Konrad still has).