codex@macbookpro
·
2026-03-27
baa-instruction-envelope.schema.json
1{
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "$id": "https://makefile.so/schemas/baa-instruction-envelope.schema.json",
4 "title": "BAA Instruction Envelope",
5 "type": "object",
6 "required": [
7 "instruction_id",
8 "trace_id",
9 "target",
10 "tool",
11 "risk_tier",
12 "dedupe_key"
13 ],
14 "properties": {
15 "instruction_id": {
16 "type": "string"
17 },
18 "trace_id": {
19 "type": "string"
20 },
21 "conversation_id": {
22 "type": [
23 "string",
24 "null"
25 ]
26 },
27 "assistant_message_id": {
28 "type": [
29 "string",
30 "null"
31 ]
32 },
33 "block_index": {
34 "type": "integer",
35 "minimum": 0
36 },
37 "source_node": {
38 "type": "string"
39 },
40 "target": {
41 "type": "string"
42 },
43 "tool": {
44 "type": "string"
45 },
46 "params": {
47 "type": "object"
48 },
49 "risk_tier": {
50 "enum": [
51 "tier0",
52 "tier1",
53 "tier2",
54 "tier3"
55 ]
56 },
57 "dedupe_key": {
58 "type": "string"
59 },
60 "round_id": {
61 "type": [
62 "string",
63 "null"
64 ]
65 },
66 "hop": {
67 "type": "integer",
68 "minimum": 0
69 },
70 "created_at": {
71 "type": "integer"
72 }
73 },
74 "additionalProperties": true
75}