agent-bios 0.19.4 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DEPENDENCIES.md +19 -5
- package/README.md +14 -19
- package/claude/agents/frontier.md +1 -1
- package/claude/guides/claude-prompting.md +475 -234
- package/claude/guides/cli-multi-model-workflow.md +4 -3
- package/claude/guides/gpt-prompting.md +235 -136
- package/claude/guides/session-distill-workflow.md +93 -43
- package/claude/guides/tooling-gotchas.md +3 -1
- package/codex/guides/claude-prompting.md +475 -234
- package/codex/guides/cli-multi-model-workflow.md +4 -3
- package/codex/guides/gpt-prompting.md +235 -136
- package/codex/guides/session-distill-workflow.md +93 -43
- package/codex/guides/tooling-gotchas.md +3 -1
- package/compose/assemble.py +4 -1
- package/compose/canary.sh +8 -6
- package/compose/host_platform.py +158 -15
- package/compose/instructions-state.py +183 -41
- package/compose/instructions_install.py +222 -27
- package/compose/instructions_session.py +250 -75
- package/compose/instructions_setup_cli.py +2 -36
- package/compose/instructions_store.py +160 -3
- package/compose/instructions_transaction.py +29 -5
- package/docs/advanced-launch.md +4 -0
- package/docs/releases/0.20.0.md +102 -0
- package/install.sh +42 -14
- package/launch/agent-launch.py +152 -18
- package/launch/agent-launch.toml +17 -7
- package/launch/agent-launch.zsh +104 -13
- package/launch/claude_subcommands.py +179 -0
- package/launch/shell_integration.py +7 -1
- package/learn/collect-learning.py +60 -9
- package/learn/migrate-learnings.py +70 -4
- package/learn/redact.py +2 -1
- package/package.json +36 -3
- package/provenance.json +1 -1
- package/session-cost.py +80 -9
- package/session-distill/coverage.json +6 -0
- package/session-distill/distill.py +2575 -0
- package/session-distill/grammar/__init__.py +0 -0
- package/session-distill/grammar/owner_lines.py +874 -0
- package/session-distill/originators.json +9 -0
- package/session-distill/packets/cross_review.md +31 -0
- package/session-distill/packets/form.md +86 -0
- package/session-distill/packets/judge.md +81 -0
- package/session-distill/packets/placement_contract.md +90 -0
- package/session-distill/packets/propose.md +124 -0
- package/session-distill/packets/read.md +57 -0
- package/session-distill/packets/reconsider.md +53 -0
- package/session-distill/packets/s7b.md +65 -0
- package/session-distill/packets/s9b.md +39 -0
- package/session-distill/packets/stitch.md +35 -0
- package/session-distill/packets/sweep.md +33 -0
- package/session-distill/runlib/__init__.py +0 -0
- package/session-distill/runlib/bound.py +1102 -0
- package/session-distill/runlib/breaker.py +467 -0
- package/session-distill/runlib/census.py +2347 -0
- package/session-distill/runlib/claims.py +420 -0
- package/session-distill/runlib/controls.py +902 -0
- package/session-distill/runlib/coverage.py +881 -0
- package/session-distill/runlib/declare.py +888 -0
- package/session-distill/runlib/delivery_evidence.py +1145 -0
- package/session-distill/runlib/derive.py +812 -0
- package/session-distill/runlib/destinations.py +3072 -0
- package/session-distill/runlib/dispatch.py +7939 -0
- package/session-distill/runlib/drift.py +1077 -0
- package/session-distill/runlib/entry.py +401 -0
- package/session-distill/runlib/evidence.py +890 -0
- package/session-distill/runlib/exposure.py +1162 -0
- package/session-distill/runlib/gate.py +2727 -0
- package/session-distill/runlib/gitread.py +79 -0
- package/session-distill/runlib/inventory.py +19624 -0
- package/session-distill/runlib/journal.py +1919 -0
- package/session-distill/runlib/ledger.py +3210 -0
- package/session-distill/runlib/ledger_compat.py +101 -0
- package/session-distill/runlib/ledger_migration.py +190 -0
- package/session-distill/runlib/lifecycle_intake.py +693 -0
- package/session-distill/runlib/lineage.py +454 -0
- package/session-distill/runlib/measures.py +249 -0
- package/session-distill/runlib/monitor.py +1180 -0
- package/session-distill/runlib/operations.py +522 -0
- package/session-distill/runlib/packet.py +838 -0
- package/session-distill/runlib/placement.py +1769 -0
- package/session-distill/runlib/projection.py +4090 -0
- package/session-distill/runlib/ranking.py +740 -0
- package/session-distill/runlib/receipts.py +200 -0
- package/session-distill/runlib/records.py +1965 -0
- package/session-distill/runlib/search.py +249 -0
- package/session-distill/runlib/sequencing.py +829 -0
- package/session-distill/runlib/sources.py +641 -0
- package/session-distill/runlib/stage_adjudicate.py +845 -0
- package/session-distill/runlib/stage_apply.py +1378 -0
- package/session-distill/runlib/stage_approvals.py +758 -0
- package/session-distill/runlib/stage_close.py +1220 -0
- package/session-distill/runlib/stage_confirm.py +929 -0
- package/session-distill/runlib/stage_delivery.py +3080 -0
- package/session-distill/runlib/stage_form.py +2576 -0
- package/session-distill/runlib/stage_judge.py +4248 -0
- package/session-distill/runlib/stage_propose.py +3307 -0
- package/session-distill/runlib/stage_read.py +5179 -0
- package/session-distill/runlib/stage_render.py +2739 -0
- package/session-distill/runlib/stage_retrieve.py +924 -0
- package/session-distill/runlib/stage_review_korean.py +1002 -0
- package/session-distill/runlib/stage_review_proposals.py +1292 -0
- package/session-distill/runlib/stagelock.py +412 -0
- package/session-distill/runlib/stop.py +1061 -0
- package/session-distill/runlib/targets.py +809 -0
- package/session-distill/runlib/usage.py +280 -0
- package/session-distill/runlib/validate.py +319 -0
- package/session-distill/runlib/views.py +4327 -0
- package/session-distill/schemas/adjudication.schema.json +35 -0
- package/session-distill/schemas/approval.schema.json +35 -0
- package/session-distill/schemas/census.schema.json +128 -0
- package/session-distill/schemas/checks.schema.json +207 -0
- package/session-distill/schemas/claim.schema.json +16 -0
- package/session-distill/schemas/confirmation.schema.json +24 -0
- package/session-distill/schemas/coverage.schema.json +66 -0
- package/session-distill/schemas/cross_review.schema.json +24 -0
- package/session-distill/schemas/event.schema.json +20 -0
- package/session-distill/schemas/evidence.schema.json +20 -0
- package/session-distill/schemas/expected_observation.schema.json +18 -0
- package/session-distill/schemas/form.schema.json +103 -0
- package/session-distill/schemas/intake.schema.json +71 -0
- package/session-distill/schemas/inventory.schema.json +872 -0
- package/session-distill/schemas/judge.schema.json +77 -0
- package/session-distill/schemas/ledger.schema.json +313 -0
- package/session-distill/schemas/observation.schema.json +16 -0
- package/session-distill/schemas/propose.schema.json +555 -0
- package/session-distill/schemas/read.schema.json +76 -0
- package/session-distill/schemas/reconsider.schema.json +122 -0
- package/session-distill/schemas/run.schema.json +150 -0
- package/session-distill/schemas/s7b.schema.json +200 -0
- package/session-distill/schemas/s9b.schema.json +28 -0
- package/session-distill/schemas/stitch.schema.json +25 -0
- package/session-distill/schemas/sweep.schema.json +25 -0
- package/session-distill/seats.json +149 -0
- package/session-distill/tables/allowed_pairs.json +257 -0
- package/session-distill/tables/controls.json +30 -0
- package/session-distill/tables/delivery_evidence.json +36 -0
- package/session-distill/tables/delivery_evidence_fixtures.json +731 -0
- package/session-distill/tables/destinations.json +684 -0
- package/session-distill/tables/drift_layers.json +68 -0
- package/session-distill/tables/exposure_rules.json +192 -0
- package/session-distill/tables/placement_rules.json +148 -0
- package/session-distill/tables/propose_fixtures.json +154 -0
- package/session-distill/tables/ranking.json +194 -0
- package/session-distill/tables/redundancy.json +10 -0
- package/session-distill/tables/structural_rules.json +44 -0
- package/session-distill/tables/transition_fixtures.json +398 -0
- package/session-distill/tables/transitions.json +69 -0
- package/session-distill/tables/unit_outcome.json +67 -0
- package/session-distill/tables/unit_outcome_fixtures.json +2364 -0
- package/wrappers/claude-run.sh +481 -33
- package/wrappers/claude_hermetic_evidence.py +1423 -0
- package/wrappers/codex-helm.sh +38 -7
- package/wrappers/codex-run.sh +183 -20
- package/wrappers/codex_frame_filter.py +1199 -0
- package/wrappers/codex_protocol.py +737 -0
- package/wrappers/jsonl_lines.py +65 -0
|
@@ -0,0 +1,872 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$comment": "design §6.1: the unit record a reference point's inventory carries, and the layers it answers for. This file is the authority the code is held against; the design section it was derived from is provenance, not an executable contract, because a dated record is a claim about a past tree and is superseded as a matter of course.",
|
|
4
|
+
"$ref": "#/$defs/document_kind",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"current_document": {
|
|
7
|
+
"$comment": "A reference point's document, judged whole: every member it publishes is declared here, and one it does not declare is refused (R1 #5). One root per published document, each naming its kind as a `document` const (step 0 S-21); the code's DOCUMENT_ROOTS picks it, because this schema policy has no oneOf.",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"required": ["document", "closure_rule", "reference", "produced_by", "units", "unknown_entries", "layers", "renames",
|
|
11
|
+
"scopes", "scope_universe"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"document": {"const": "current"},
|
|
14
|
+
"reference": {"$ref": "#/$defs/reference_block"},
|
|
15
|
+
"produced_by": {"$ref": "#/$defs/reference_produced_by"},
|
|
16
|
+
"closure_rule": {"$ref": "#/$defs/closure_rule"},
|
|
17
|
+
"unknown_entries": {"type": "array", "items": {"$ref": "#/$defs/unknown_requirement"}},
|
|
18
|
+
"units": {"type": "array", "items": {"$ref": "#/$defs/unit"}},
|
|
19
|
+
"layers": {"type": "array", "minItems": 1, "items": {"$ref": "#/$defs/layer_row"}},
|
|
20
|
+
"renames": {"type": "array", "items": {"$ref": "#/$defs/rename"}},
|
|
21
|
+
"scopes": {"type": "array", "items": {"$ref": "#/$defs/scope_answer"}},
|
|
22
|
+
"scope_universe": {"type": "array", "items": {"$ref": "#/$defs/scope_universe"}}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"release_document": {
|
|
26
|
+
"$comment": "`release.json`, the segment index (step 0 S-17, #8): per census session, each segment of each of its owners with one row per layer, or a row set of its own for a session no segment covers. It never picks one segment and never unions versions: a row points into a shared inventory or at the in-force event, and copies no unit. Validated whole.",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": ["document", "closure_rule", "produced_by", "sessions"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"document": {"const": "release"},
|
|
32
|
+
"closure_rule": {"$ref": "#/$defs/closure_rule"},
|
|
33
|
+
"produced_by": {"type": "object", "additionalProperties": false, "required": ["module", "design", "commit"],
|
|
34
|
+
"properties": {"module": {"type": "string"}, "design": {"type": "string"},
|
|
35
|
+
"commit": {"type": ["string", "null"]}}},
|
|
36
|
+
"sessions": {"type": "array", "items": {"$ref": "#/$defs/release_session"}}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"release_session": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"required": ["session_ref", "segments", "unsegmented"],
|
|
43
|
+
"properties": {
|
|
44
|
+
"session_ref": {"$ref": "#/$defs/session_ref"},
|
|
45
|
+
"segments": {"type": "array", "items": {"$ref": "#/$defs/release_segment"}},
|
|
46
|
+
"unsegmented": {"$ref": "#/$defs/release_rows"}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"release_segment": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": ["segment_ref", "inventory_refs", "layers", "complete", "incomplete_reasons"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"segment_ref": {"$ref": "#/$defs/segment_id"},
|
|
55
|
+
"inventory_refs": {"type": "array", "items": {"$ref": "#/$defs/inventory_id"}},
|
|
56
|
+
"layers": {"type": "array", "minItems": 1, "items": {"$ref": "#/$defs/release_row"}},
|
|
57
|
+
"complete": {"type": "boolean"},
|
|
58
|
+
"incomplete_reasons": {"type": "array", "items": {"$ref": "#/$defs/release_incomplete"}}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"release_rows": {
|
|
62
|
+
"$comment": "the row set of a session no segment covers (R3), or null",
|
|
63
|
+
"type": ["object", "null"],
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"required": ["inventory_refs", "layers", "complete", "incomplete_reasons"],
|
|
66
|
+
"properties": {
|
|
67
|
+
"inventory_refs": {"type": "array", "items": {"$ref": "#/$defs/inventory_id"}},
|
|
68
|
+
"layers": {"type": "array", "minItems": 1, "items": {"$ref": "#/$defs/release_row"}},
|
|
69
|
+
"complete": {"type": "boolean"},
|
|
70
|
+
"incomplete_reasons": {"type": "array", "items": {"$ref": "#/$defs/release_incomplete"}}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"release_row": {
|
|
74
|
+
"$comment": "one layer of one segment: its status, its reasons as declared keys (an uncertain one prefixed `uncertain: `, S-21), and its source, or null",
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"required": ["layer", "status", "reasons", "source"],
|
|
78
|
+
"properties": {
|
|
79
|
+
"layer": {"$ref": "#/$defs/layer_name"},
|
|
80
|
+
"status": {"type": "string", "enum": ["complete", "incomplete", "unsupported", "unknown"]},
|
|
81
|
+
"reasons": {"type": "array", "items": {"type": "string", "minLength": 1}},
|
|
82
|
+
"source": {"$ref": "#/$defs/release_source"}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"release_source": {
|
|
86
|
+
"$comment": "one shared inventory's row of the layer ({inventory_ref, layer, basis}: the basis is the session's own pin, or the baseline-selection history at the session's time, which is what the owner's library held then and not what the session received, D-20261110-9c60bc), the in-force event's own members of the layer ({event_ref, members}), that event's occurrences ({event_ref, occurrence_refs}), or null",
|
|
87
|
+
"type": ["object", "null"],
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"minProperties": 2,
|
|
90
|
+
"dependentRequired": {"inventory_ref": ["layer", "basis"], "layer": ["inventory_ref"], "basis": ["inventory_ref"],
|
|
91
|
+
"members": ["event_ref"], "occurrence_refs": ["event_ref"]},
|
|
92
|
+
"properties": {
|
|
93
|
+
"inventory_ref": {"$ref": "#/$defs/inventory_id"},
|
|
94
|
+
"layer": {"type": "string", "enum": ["catalog", "adopted_packages", "overlays"]},
|
|
95
|
+
"basis": {"type": "string", "enum": ["pin", "selection_history"]},
|
|
96
|
+
"event_ref": {"$ref": "#/$defs/event_id"},
|
|
97
|
+
"members": {"type": "array", "items": {
|
|
98
|
+
"type": "object", "additionalProperties": false, "required": ["carrier_id", "version_sha256"],
|
|
99
|
+
"properties": {"carrier_id": {"type": "string", "pattern": "^c-[0-9a-f]{24}$"},
|
|
100
|
+
"version_sha256": {"$ref": "#/$defs/sha256"}}}},
|
|
101
|
+
"occurrence_refs": {"type": "array", "items": {"type": "string", "pattern": "^q-[0-9a-f]{24}$"}}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"release_incomplete": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"required": ["layer", "status", "reasons", "inventory_ref"],
|
|
108
|
+
"properties": {
|
|
109
|
+
"layer": {"$ref": "#/$defs/layer_name"},
|
|
110
|
+
"status": {"type": "string", "enum": ["incomplete", "unsupported", "unknown"]},
|
|
111
|
+
"reasons": {"type": "array", "items": {"type": "string", "minLength": 1}},
|
|
112
|
+
"inventory_ref": {"type": ["string", "null"], "pattern": "^i-[0-9a-f]{24}$"}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"selection_document": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"required": ["document", "closure_rule", "reference", "produced_by", "units", "unknown_entries", "layers", "renames"],
|
|
119
|
+
"properties": {
|
|
120
|
+
"document": {"const": "selection"},
|
|
121
|
+
"reference": {"$ref": "#/$defs/reference_block"},
|
|
122
|
+
"produced_by": {"$ref": "#/$defs/reference_produced_by"},
|
|
123
|
+
"closure_rule": {"$ref": "#/$defs/closure_rule"},
|
|
124
|
+
"unknown_entries": {"type": "array", "items": {"$ref": "#/$defs/unknown_requirement"}},
|
|
125
|
+
"units": {"type": "array", "items": {"$ref": "#/$defs/unit"}},
|
|
126
|
+
"layers": {"type": "array", "minItems": 1, "items": {"$ref": "#/$defs/layer_row"}},
|
|
127
|
+
"renames": {"type": "array", "items": {"$ref": "#/$defs/rename"}}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"reference_block": {
|
|
131
|
+
"$comment": "R1 #5: a reference point's own block (REFERENCE_TABLE). Which of `commit` and `content_ref` it carries depends on the reference point, so neither is required.",
|
|
132
|
+
"type": "object",
|
|
133
|
+
"additionalProperties": false,
|
|
134
|
+
"required": ["kind", "complete", "incomplete_reasons"],
|
|
135
|
+
"properties": {
|
|
136
|
+
"kind": {"type": "string", "enum": ["current", "selection"]},
|
|
137
|
+
"complete": {"type": "boolean"},
|
|
138
|
+
"incomplete_reasons": {"type": "array", "items": {"type": "string"}},
|
|
139
|
+
"commit": {"type": ["string", "null"]},
|
|
140
|
+
"content_ref": {"type": ["string", "null"]}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"reference_produced_by": {
|
|
144
|
+
"$comment": "R1 #5: who produced a reference point's document (PRODUCED_BY_TABLE). `notes` declares the note keys NOTE_KEYS declares, each a producer's own tree.",
|
|
145
|
+
"type": "object",
|
|
146
|
+
"additionalProperties": false,
|
|
147
|
+
"required": ["module", "design", "state_root", "notes"],
|
|
148
|
+
"properties": {
|
|
149
|
+
"module": {"type": "string"},
|
|
150
|
+
"design": {"type": "string"},
|
|
151
|
+
"state_root": {"type": ["string", "null"]},
|
|
152
|
+
"notes": {"type": "object", "additionalProperties": false,
|
|
153
|
+
"properties": {"adopted_packages": {"$ref": "#/$defs/note_tree"}, "baselines": {"$ref": "#/$defs/note_tree"},
|
|
154
|
+
"frozen_missing": {"$ref": "#/$defs/note_tree"}, "hosts_in_scope": {"$ref": "#/$defs/note_tree"},
|
|
155
|
+
"installed_baseline_ref": {"$ref": "#/$defs/note_tree"},
|
|
156
|
+
"ledger_keep_held_back": {"$ref": "#/$defs/note_tree"},
|
|
157
|
+
"overlay_counts": {"$ref": "#/$defs/note_tree"}, "overlay_hosts": {"$ref": "#/$defs/note_tree"},
|
|
158
|
+
"pin": {"$ref": "#/$defs/note_tree"}, "release": {"$ref": "#/$defs/note_tree"},
|
|
159
|
+
"renames_base": {"$ref": "#/$defs/note_tree"}, "selection": {"$ref": "#/$defs/note_tree"},
|
|
160
|
+
"state": {"$ref": "#/$defs/note_tree"}, "transcripts": {"$ref": "#/$defs/note_tree"}}}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"note_tree": {
|
|
164
|
+
"$comment": "R1 #5: one producer note, the shape `as_tree` emits: null, a boolean, an integer, a string, or a list or object of notes. The KEY SET of `notes` is declared above; below it the shape is the producer's own, so an object here takes any string key, each value a note again. This is the schema's one licensed catch-all key pattern (CATCHALL_SITE in inventory.py): beside `additionalProperties: false` it is an open object the lint does not see, so every other site is refused (REFERENCE_CATCHALL_ELSEWHERE); a note is producer diagnostics, and copying fourteen producer shapes here would be a second copy of them.",
|
|
165
|
+
"type": ["null", "boolean", "integer", "string", "array", "object"],
|
|
166
|
+
"additionalProperties": false,
|
|
167
|
+
"patternProperties": {"^": {"$ref": "#/$defs/note_tree"}},
|
|
168
|
+
"items": {"$ref": "#/$defs/note_tree"}
|
|
169
|
+
},
|
|
170
|
+
"rename": {
|
|
171
|
+
"$comment": "R1 #5: a rename in either of its two shapes (RENAME_TABLE, RENAME_AMBIGUOUS_TABLE). The policy has no oneOf, so this is one closed row over both shapes' fields; each shape is held to its own fields by its table on the emission path.",
|
|
172
|
+
"type": "object",
|
|
173
|
+
"additionalProperties": false,
|
|
174
|
+
"required": ["unit_id"],
|
|
175
|
+
"properties": {
|
|
176
|
+
"unit_id": {"type": "string", "pattern": "^u-[0-9a-f]{16}(-[0-9]+)?$"},
|
|
177
|
+
"from_unit_id": {"type": "string", "pattern": "^u-[0-9a-f]{16}(-[0-9]+)?$"},
|
|
178
|
+
"from_carrier_id": {"type": "string", "pattern": "^c-[0-9a-f]{24}$"},
|
|
179
|
+
"to_carrier_id": {"type": "string", "pattern": "^c-[0-9a-f]{24}$"},
|
|
180
|
+
"from_path": {"type": "string"},
|
|
181
|
+
"to_path": {"type": "string"},
|
|
182
|
+
"from_layer": {"$ref": "#/$defs/layer_name"},
|
|
183
|
+
"to_layer": {"$ref": "#/$defs/layer_name"},
|
|
184
|
+
"moved": {"type": "array", "items": {"type": "string", "enum": ["path", "layer", "package", "carrier"]}},
|
|
185
|
+
"ambiguous": {"type": "boolean"},
|
|
186
|
+
"from_carriers": {"type": "array", "items": {"type": "string", "pattern": "^c-[0-9a-f]{24}$"}},
|
|
187
|
+
"to_carriers": {"type": "array", "items": {"type": "string", "pattern": "^c-[0-9a-f]{24}$"}},
|
|
188
|
+
"reason": {"type": "string"}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"sessions_document": {
|
|
192
|
+
"type": "object",
|
|
193
|
+
"additionalProperties": false,
|
|
194
|
+
"required": ["document", "closure_rule", "span_unit", "produced_by", "sessions", "events", "segments", "occurrences",
|
|
195
|
+
"context_sets", "override_sets", "unknown_entries"],
|
|
196
|
+
"properties": {
|
|
197
|
+
"document": {"const": "sessions"},
|
|
198
|
+
"closure_rule": {"$ref": "#/$defs/closure_rule"},
|
|
199
|
+
"span_unit": {"$comment": "the unit an occurrence's start and end count, in the decoded text of the FIELD its pointer names; a different coordinate from the store's, which counts in a carrier version's raw text", "const": "code_point"},
|
|
200
|
+
"produced_by": {
|
|
201
|
+
"type": "object",
|
|
202
|
+
"additionalProperties": false,
|
|
203
|
+
"required": ["module", "design", "commit"],
|
|
204
|
+
"properties": {
|
|
205
|
+
"module": {"type": "string"},
|
|
206
|
+
"design": {"type": "string"},
|
|
207
|
+
"commit": {"type": ["string", "null"]}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"sessions": {"type": "array", "items": {"$ref": "#/$defs/session"}},
|
|
211
|
+
"events": {"type": "array", "items": {"$ref": "#/$defs/event"}},
|
|
212
|
+
"segments": {"type": "array", "items": {"$ref": "#/$defs/segment"}},
|
|
213
|
+
"occurrences": {"type": "array", "items": {"$ref": "#/$defs/occurrence"}},
|
|
214
|
+
"context_sets": {"type": "array", "items": {"$ref": "#/$defs/context_set"}},
|
|
215
|
+
"override_sets": {"type": "array", "items": {"$ref": "#/$defs/override"}},
|
|
216
|
+
"unknown_entries": {"type": "array", "items": {"$ref": "#/$defs/unknown_requirement"}}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"shared_inventory_document": {
|
|
220
|
+
"$comment": "`shared/<selection|release>-<i>.json` (step 0 S-22): one per verified snapshot and per baseline a session's own pin names. Its layer rows, the carrier versions and units it holds by reference into shared/store.json, a selection's unavailable list (ref among the snapshot's own items, surface among the catalog's SURFACES) and a release's baseline items its units do not map.",
|
|
221
|
+
"type": "object",
|
|
222
|
+
"additionalProperties": false,
|
|
223
|
+
"required": ["document", "closure_rule", "inventory_id", "kind", "ref", "complete", "incomplete_reasons", "produced_by",
|
|
224
|
+
"layers", "carriers", "unit_refs", "edges", "unknown_entries"],
|
|
225
|
+
"properties": {
|
|
226
|
+
"document": {"const": "shared_inventory"},
|
|
227
|
+
"closure_rule": {"$ref": "#/$defs/closure_rule"},
|
|
228
|
+
"inventory_id": {"$ref": "#/$defs/inventory_id"},
|
|
229
|
+
"kind": {"type": "string", "enum": ["selection", "release"]},
|
|
230
|
+
"ref": {"type": "string", "minLength": 1},
|
|
231
|
+
"complete": {"type": "boolean"},
|
|
232
|
+
"incomplete_reasons": {"type": "array", "items": {"type": "string"}},
|
|
233
|
+
"produced_by": {"type": "object", "additionalProperties": false, "required": ["module", "design", "commit"],
|
|
234
|
+
"properties": {"module": {"type": "string"}, "design": {"type": "string"},
|
|
235
|
+
"commit": {"type": ["string", "null"]}}},
|
|
236
|
+
"layers": {"type": "array", "items": {"$ref": "#/$defs/layer_row"}},
|
|
237
|
+
"carriers": {"type": "array", "items": {
|
|
238
|
+
"type": "object", "additionalProperties": false, "required": ["carrier_id", "version_sha256"],
|
|
239
|
+
"properties": {"carrier_id": {"type": "string", "pattern": "^c-[0-9a-f]{24}$"},
|
|
240
|
+
"version_sha256": {"$ref": "#/$defs/sha256"}}}},
|
|
241
|
+
"unit_refs": {"type": "array", "items": {"$ref": "#/$defs/unit_ref"}},
|
|
242
|
+
"edges": {"type": "array", "items": {"$ref": "#/$defs/requirement_edges"}},
|
|
243
|
+
"unknown_entries": {"type": "array", "items": {"$ref": "#/$defs/unknown_requirement"}},
|
|
244
|
+
"unavailable": {"type": "array", "items": {
|
|
245
|
+
"type": "object", "additionalProperties": false, "required": ["ref", "surface", "reason"],
|
|
246
|
+
"properties": {"ref": {"type": "string"}, "surface": {"type": "string"}, "reason": {"type": "string"}}}},
|
|
247
|
+
"items": {"$comment": "a selection inventory's facts about the compiled instruction text (WP-11b): the items the session was given, with the surface the snapshot selected each at", "type": "array", "items": {
|
|
248
|
+
"type": "object", "additionalProperties": false, "required": ["ref", "surface"],
|
|
249
|
+
"properties": {"ref": {"type": "string"}, "surface": {"type": ["string", "null"]}}}},
|
|
250
|
+
"instruction_text_sha256": {"$comment": "the digest of the compiled instruction text the session was activated with; the text itself is the owner's and never enters a run", "type": ["string", "null"], "pattern": "^[0-9a-f]{64}$"},
|
|
251
|
+
"instruction_coverage": {"$comment": "per unit, how many of its operative-context lines that text held, as counts: what the delivery judge reads in the text's place (WP-11b)", "type": "array", "items": {
|
|
252
|
+
"type": "object", "additionalProperties": false, "required": ["unit_ref", "covered", "total"],
|
|
253
|
+
"properties": {"unit_ref": {"type": "string", "pattern": "^r-[0-9a-f]{24}$"},
|
|
254
|
+
"covered": {"type": "integer", "minimum": 0},
|
|
255
|
+
"total": {"type": "integer", "minimum": 0}}}},
|
|
256
|
+
"item_pointer_in_compiled_text": {"$comment": "per selected item, whether the compiled instruction text held ITS pointer — the router line for a relevant item, the primary member's emitted path for a requested one — as a fact, because the text never enters a run (WP-11b)", "type": "array", "items": {
|
|
257
|
+
"type": "object", "additionalProperties": false, "required": ["ref", "pointer", "basis"],
|
|
258
|
+
"properties": {"ref": {"type": "string"},
|
|
259
|
+
"pointer": {"type": ["boolean", "null"]},
|
|
260
|
+
"basis": {"enum": ["router_line", "emitted_path", "surface_has_no_pointer", "item_names_no_member"]}}}},
|
|
261
|
+
"router_path": {"$comment": "the path the compiled text names as its router, read out of that text", "type": ["string", "null"]},
|
|
262
|
+
"item_pointer_unavailable": {"$comment": "why item_pointer_in_compiled_text is not published, which a selection inventory then always says: the snapshot holds no compiled text, or the run had no catalog to spell the emitted paths by", "enum": ["compiled_text_absent", "catalog_rule_unread"]},
|
|
263
|
+
"unit_surfaces": {"$comment": "the catalogue surface of every unit this selection holds and of every judged unit that belongs to an item, with where it was read: the snapshot answers for the items the session was given, the installed baseline for the rest, and a unit neither answers for is unpublished (WP-11b)", "type": "array", "items": {
|
|
264
|
+
"type": "object", "additionalProperties": false, "required": ["unit_ref", "surface", "source"],
|
|
265
|
+
"properties": {"unit_ref": {"type": "string", "pattern": "^r-[0-9a-f]{24}$"},
|
|
266
|
+
"surface": {"type": ["string", "null"]},
|
|
267
|
+
"source": {"enum": ["snapshot", "baseline", "unpublished"]}}}},
|
|
268
|
+
"baseline_unmapped": {"type": "array", "items": {"type": "string"}},
|
|
269
|
+
"baseline_items_expected": {"type": ["integer", "null"], "minimum": 0}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"inventory_id": {"type": "string", "pattern": "^i-[0-9a-f]{24}$"},
|
|
273
|
+
"segment_id": {"type": "string", "pattern": "^g-[0-9a-f]{24}$"},
|
|
274
|
+
"in_force": {
|
|
275
|
+
"$comment": "one kind's state over a segment (step 0 S-17): the event in force, none recorded yet, the one in force past its certainty cut (the line named), or a kind nobody could look for, by its reason",
|
|
276
|
+
"type": "object",
|
|
277
|
+
"additionalProperties": false,
|
|
278
|
+
"required": ["state", "event_ref", "reason", "line"],
|
|
279
|
+
"properties": {
|
|
280
|
+
"state": {"enum": ["in_force", "no_event_yet", "uncertain", "unsought"]},
|
|
281
|
+
"event_ref": {"type": ["string", "null"], "pattern": "^e-[0-9a-f]{24}$"},
|
|
282
|
+
"reason": {"type": ["string", "null"], "minLength": 1},
|
|
283
|
+
"line": {"type": ["integer", "null"], "minimum": 1}
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"segment": {
|
|
287
|
+
"$comment": "an owner's line interval [from, to) of its transcript in which the event in force of each kind is fixed (step 0 S-17); one owner's segments partition [1, lines_read + 1)",
|
|
288
|
+
"type": "object",
|
|
289
|
+
"additionalProperties": false,
|
|
290
|
+
"required": ["segment_id", "session_ref", "owner_ref", "from", "to", "in_force", "context_set_ref"],
|
|
291
|
+
"properties": {
|
|
292
|
+
"segment_id": {"$ref": "#/$defs/segment_id"},
|
|
293
|
+
"session_ref": {"$ref": "#/$defs/session_ref"},
|
|
294
|
+
"owner_ref": {"$ref": "#/$defs/owner_ref"},
|
|
295
|
+
"from": {"$ref": "#/$defs/line"},
|
|
296
|
+
"to": {"$ref": "#/$defs/line"},
|
|
297
|
+
"in_force": {
|
|
298
|
+
"type": "object",
|
|
299
|
+
"additionalProperties": false,
|
|
300
|
+
"required": ["native", "session_injection"],
|
|
301
|
+
"properties": {
|
|
302
|
+
"native": {"$ref": "#/$defs/in_force"},
|
|
303
|
+
"session_injection": {"$ref": "#/$defs/in_force"}
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"context_set_ref": {"$ref": "#/$defs/context_set_id"}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"shared_store_document": {
|
|
310
|
+
"$comment": "`shared/store.json` (step 0 S-22): every carrier version the run names, once, keyed by carrier_id and then version_sha256, and every unit keyed by its unit_ref.",
|
|
311
|
+
"type": "object",
|
|
312
|
+
"additionalProperties": false,
|
|
313
|
+
"required": ["document", "closure_rule", "span_unit", "produced_by", "versions", "units"],
|
|
314
|
+
"properties": {
|
|
315
|
+
"document": {"const": "shared_store"},
|
|
316
|
+
"closure_rule": {"$ref": "#/$defs/closure_rule"},
|
|
317
|
+
"span_unit": {"$comment": "the unit every start and end counts, in the version's raw text", "const": "code_point"},
|
|
318
|
+
"produced_by": {
|
|
319
|
+
"type": "object",
|
|
320
|
+
"additionalProperties": false,
|
|
321
|
+
"required": ["module", "design", "commit"],
|
|
322
|
+
"properties": {
|
|
323
|
+
"module": {"type": "string"},
|
|
324
|
+
"design": {"type": "string"},
|
|
325
|
+
"commit": {"type": ["string", "null"]}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"versions": {
|
|
329
|
+
"type": "object",
|
|
330
|
+
"additionalProperties": false,
|
|
331
|
+
"patternProperties": {
|
|
332
|
+
"^c-[0-9a-f]{24}$": {
|
|
333
|
+
"type": "object",
|
|
334
|
+
"additionalProperties": false,
|
|
335
|
+
"minProperties": 1,
|
|
336
|
+
"patternProperties": {"^[0-9a-f]{64}$": {"$ref": "#/$defs/carrier_version"}}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"units": {
|
|
341
|
+
"type": "object",
|
|
342
|
+
"additionalProperties": false,
|
|
343
|
+
"patternProperties": {"^r-[0-9a-f]{24}$": {"$ref": "#/$defs/carrier_unit"}}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"document_kind": {
|
|
348
|
+
"$comment": "The file's own root. A document is validated against the $defs root its `document` names (the code's DOCUMENT_ROOTS); validated here, every real document is refused on purpose, because without oneOf no single root can admit them all.",
|
|
349
|
+
"type": "object",
|
|
350
|
+
"additionalProperties": false,
|
|
351
|
+
"required": ["document"],
|
|
352
|
+
"properties": {
|
|
353
|
+
"document": {"type": "string", "enum": ["current", "release", "selection", "sessions", "shared_store",
|
|
354
|
+
"shared_inventory"]}
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"event_id": {"type": "string", "pattern": "^e-[0-9a-f]{24}$"},
|
|
358
|
+
"unit_ref": {
|
|
359
|
+
"$comment": "opaque (step 0 S-11): r- over [\"unit\", carrier_id, version_sha256, n], n the block's 1-based position in that version",
|
|
360
|
+
"type": "string",
|
|
361
|
+
"pattern": "^r-[0-9a-f]{24}$"
|
|
362
|
+
},
|
|
363
|
+
"closure_rule": {
|
|
364
|
+
"$comment": "step 0 S-12: the one closure semantics every document carries; a reader that implements another refuses the document by name (CLOSURE_RULE_UNSUPPORTED)",
|
|
365
|
+
"const": "operative-context/1"
|
|
366
|
+
},
|
|
367
|
+
"unknown_id": {
|
|
368
|
+
"$comment": "opaque (step 0 S-12): k- over [\"unknown\", origin carrier_id, origin version_sha256, named span, heading span or null, kind]",
|
|
369
|
+
"type": "string",
|
|
370
|
+
"pattern": "^k-[0-9a-f]{24}$"
|
|
371
|
+
},
|
|
372
|
+
"unknown_requirement": {
|
|
373
|
+
"$comment": "step 0 S-12: one unresolved mention, a terminal requirement. One origin per entry: several carriers naming one missing thing are several entries. `named` and `heading` are [start, end) code points of the origin version's raw text, the coordinate the store's unit spans count in, and both are null when the floor withholds that version whole: a mention's offsets are finer than the unit spans the store publishes for it. The id still commits to them. `display` is projected once, at production, under that version's floor decision.",
|
|
374
|
+
"type": "object",
|
|
375
|
+
"additionalProperties": false,
|
|
376
|
+
"required": ["unknown_id", "kind", "carrier_id", "version_sha256", "named", "heading", "display"],
|
|
377
|
+
"properties": {
|
|
378
|
+
"unknown_id": {"$ref": "#/$defs/unknown_id"},
|
|
379
|
+
"kind": {"type": "string", "enum": ["plain", "heading", "ambiguous"]},
|
|
380
|
+
"carrier_id": {"type": "string", "pattern": "^c-[0-9a-f]{24}$"},
|
|
381
|
+
"version_sha256": {"$ref": "#/$defs/sha256"},
|
|
382
|
+
"named": {"type": ["array", "null"], "minItems": 2, "maxItems": 2, "items": {"type": "integer", "minimum": 0}},
|
|
383
|
+
"heading": {"type": ["array", "null"], "minItems": 2, "maxItems": 2, "items": {"type": "integer", "minimum": 0}},
|
|
384
|
+
"display": {"type": "string", "minLength": 1}
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"requirement_edges": {
|
|
388
|
+
"$comment": "step 0 S-12: one unit's edges in a shared inventory. `direct` holds the unit itself, its frontmatter, enclosing headings and condition spans; `reached` what its mentions resolved to in the inventory's own universe, an unresolved one as its k- entry. Both sorted by reference string.",
|
|
389
|
+
"type": "object",
|
|
390
|
+
"additionalProperties": false,
|
|
391
|
+
"required": ["unit_ref", "direct", "reached"],
|
|
392
|
+
"properties": {
|
|
393
|
+
"unit_ref": {"$ref": "#/$defs/unit_ref"},
|
|
394
|
+
"direct": {"type": "array", "items": {"$ref": "#/$defs/unit_ref"}},
|
|
395
|
+
"reached": {"type": "array", "items": {"type": "string", "pattern": "^(r|k)-[0-9a-f]{24}$"}}
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"context_set_id": {
|
|
399
|
+
"$comment": "opaque (step 0 S-11): x- over [\"context\", sorted [carrier_id, version_sha256] of every carrier version in the universe, sorted i- ids of the inventories the segment names]",
|
|
400
|
+
"type": "string",
|
|
401
|
+
"pattern": "^x-[0-9a-f]{24}$"
|
|
402
|
+
},
|
|
403
|
+
"override_set_id": {
|
|
404
|
+
"$comment": "opaque (step 0 S-11): v- over [\"override\", the i- id of the inventory whose units it overrides, sorted matched [resolution path, carrier_id, version_sha256] triples of that inventory's mentions]; the path is the raw resolution path, so the id commits to it without stating it",
|
|
405
|
+
"type": "string",
|
|
406
|
+
"pattern": "^v-[0-9a-f]{24}$"
|
|
407
|
+
},
|
|
408
|
+
"carrier_version_ref": {
|
|
409
|
+
"type": "object",
|
|
410
|
+
"additionalProperties": false,
|
|
411
|
+
"required": ["carrier_id", "version_sha256"],
|
|
412
|
+
"properties": {
|
|
413
|
+
"carrier_id": {"type": "string", "pattern": "^c-[0-9a-f]{24}$"},
|
|
414
|
+
"version_sha256": {"$ref": "#/$defs/sha256"}
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"context_set": {
|
|
418
|
+
"$comment": "step 0 S-12: one segment universe's context set, deduplicated by its id. A context set is computed over the KNOWN universe: the carrier versions of the events in force that the segment's index rows name, and the layers of the inventories they point to under the basis pin. A release inventory the selection history answers (basis selection_history) is what the owner's library held, not what the session received, and is no part of it until WP-10 rules on delivery evidence (D-20261110-195c15). An uncertain event, or an unknown inventory (a release the selection history does not answer, an unattributed sidechain), stays said by the segment's in_force and its index rows; the empty context set means an empty known universe, not no context. `edges` are the event units' edges; `override_refs` the override sets it applies; `closure_digest` the sha256 of the canonical closure map of every unit of the universe.",
|
|
419
|
+
"type": "object",
|
|
420
|
+
"additionalProperties": false,
|
|
421
|
+
"required": ["context_set_id", "carriers", "inventory_refs", "edges", "override_refs", "closure_digest"],
|
|
422
|
+
"properties": {
|
|
423
|
+
"context_set_id": {"$ref": "#/$defs/context_set_id"},
|
|
424
|
+
"carriers": {"type": "array", "items": {"$ref": "#/$defs/carrier_version_ref"}},
|
|
425
|
+
"inventory_refs": {"type": "array", "items": {"$ref": "#/$defs/inventory_id"}},
|
|
426
|
+
"edges": {"type": "array", "items": {"$ref": "#/$defs/requirement_edges"}},
|
|
427
|
+
"override_refs": {"type": "array", "items": {"$ref": "#/$defs/override_set_id"}},
|
|
428
|
+
"closure_digest": {"$ref": "#/$defs/sha256"}
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
"override": {
|
|
432
|
+
"$comment": "step 0 S-12: one shared inventory's override set, deduplicated by its id: the carrier versions its pointed units' mentions matched, and the reached list of every unit of its pointed layers whose reached differs in the universe. `direct` is never overridden.",
|
|
433
|
+
"type": "object",
|
|
434
|
+
"additionalProperties": false,
|
|
435
|
+
"required": ["override_set_id", "inventory_ref", "matches", "overrides"],
|
|
436
|
+
"properties": {
|
|
437
|
+
"override_set_id": {"$ref": "#/$defs/override_set_id"},
|
|
438
|
+
"inventory_ref": {"$ref": "#/$defs/inventory_id"},
|
|
439
|
+
"matches": {"type": "array", "items": {"$ref": "#/$defs/carrier_version_ref"}},
|
|
440
|
+
"overrides": {"type": "array", "items": {
|
|
441
|
+
"type": "object",
|
|
442
|
+
"additionalProperties": false,
|
|
443
|
+
"required": ["unit_ref", "reached"],
|
|
444
|
+
"properties": {
|
|
445
|
+
"unit_ref": {"$ref": "#/$defs/unit_ref"},
|
|
446
|
+
"reached": {"type": "array", "items": {"type": "string", "pattern": "^(r|k)-[0-9a-f]{24}$"}}
|
|
447
|
+
}
|
|
448
|
+
}}
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
"git": {
|
|
452
|
+
"$comment": "What a Codex session_meta records of its repository (step 0 S-19); the URL's userinfo is removed before the floor.",
|
|
453
|
+
"type": "object",
|
|
454
|
+
"additionalProperties": false,
|
|
455
|
+
"required": ["commit_hash", "branch", "repository_url"],
|
|
456
|
+
"properties": {
|
|
457
|
+
"commit_hash": {"type": ["string", "null"], "pattern": "^[0-9a-f]{7,64}$"},
|
|
458
|
+
"branch": {"type": ["string", "null"]},
|
|
459
|
+
"repository_url": {"type": ["string", "null"]}
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"occurrence": {
|
|
463
|
+
"$comment": "One recorded occurrence of a carrier version in an event (step 0 S-12, S-13). [start, end) counts code points of the decoded field text the pointer names. An unmapped occurrence (a normalised match whose offsets could not be recovered) carries no version, span or digest, and the reason recorded_unmapped.",
|
|
464
|
+
"type": "object",
|
|
465
|
+
"additionalProperties": false,
|
|
466
|
+
"required": ["occurrence_id", "event_id", "ordinal", "pointer", "carrier_id", "version_sha256", "start", "end",
|
|
467
|
+
"sha256", "method", "reason", "context_set"],
|
|
468
|
+
"properties": {
|
|
469
|
+
"occurrence_id": {"type": "string", "pattern": "^q-[0-9a-f]{24}$"},
|
|
470
|
+
"event_id": {"$ref": "#/$defs/event_id"},
|
|
471
|
+
"ordinal": {"type": "integer", "minimum": 0},
|
|
472
|
+
"pointer": {"type": "string", "minLength": 1},
|
|
473
|
+
"carrier_id": {"type": "string", "pattern": "^c-[0-9a-f]{24}$"},
|
|
474
|
+
"version_sha256": {"type": ["string", "null"], "pattern": "^[0-9a-f]{64}$"},
|
|
475
|
+
"start": {"type": ["integer", "null"], "minimum": 0},
|
|
476
|
+
"end": {"type": ["integer", "null"], "minimum": 0},
|
|
477
|
+
"sha256": {"type": ["string", "null"], "pattern": "^[0-9a-f]{64}$"},
|
|
478
|
+
"method": {"type": "string", "enum": ["field", "exact", "normalised", "unmapped"]},
|
|
479
|
+
"reason": {"type": ["string", "null"], "enum": ["recorded_unmapped", null]},
|
|
480
|
+
"context_set": {"$comment": "the context set of the segment its event starts in its owner's partition; null only for an owner-less event (R10)", "type": ["string", "null"], "pattern": "^x-[0-9a-f]{24}$"},
|
|
481
|
+
"git": {"$ref": "#/$defs/git"}
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"carrier_version": {
|
|
485
|
+
"$comment": "One carrier version in the store. `length` is the raw text's length in Unicode code points; `unit_refs` lists its units in order; `split` says whether the splitter read it.",
|
|
486
|
+
"type": "object",
|
|
487
|
+
"additionalProperties": false,
|
|
488
|
+
"required": ["layer", "path", "item_ref", "package_id", "form", "length", "split", "unit_refs"],
|
|
489
|
+
"properties": {
|
|
490
|
+
"layer": {"$ref": "#/$defs/layer_name"},
|
|
491
|
+
"path": {"type": "string", "minLength": 1},
|
|
492
|
+
"item_ref": {"type": ["string", "null"]},
|
|
493
|
+
"package_id": {"type": ["string", "null"]},
|
|
494
|
+
"form": {"type": "string", "enum": ["markdown", "python", "json", "toml", "plain"]},
|
|
495
|
+
"length": {"type": "integer", "minimum": 0},
|
|
496
|
+
"split": {"type": "string", "enum": ["split", "malformed", "unsupported", "withheld"]},
|
|
497
|
+
"unit_refs": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/unit_ref"}},
|
|
498
|
+
"withheld": {"$ref": "#/$defs/withheld_counts"}
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
"withheld_counts": {
|
|
502
|
+
"$comment": "A withheld version's would-be units (WP-11b X r1 (i)): how many there were, how many match a unit the store publishes by text sha, and how many match none. The text is the owner's and never enters a run.",
|
|
503
|
+
"type": "object",
|
|
504
|
+
"additionalProperties": false,
|
|
505
|
+
"required": ["units", "matched", "unmatched"],
|
|
506
|
+
"properties": {
|
|
507
|
+
"units": {"type": "integer", "minimum": 0},
|
|
508
|
+
"matched": {"type": "integer", "minimum": 0},
|
|
509
|
+
"unmatched": {"type": "integer", "minimum": 0}
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
"withheld": {
|
|
513
|
+
"$comment": "A layer row whose units are not published because its text is the owner's (D-20261111-d05b16; WP-11b X r1 (i)): the reason, the would-be units, how many match a unit the same document publishes by text sha and how many match none (units this reference point cannot judge), the unmatched by class, and the same counts per carrier version.",
|
|
514
|
+
"type": "object",
|
|
515
|
+
"additionalProperties": false,
|
|
516
|
+
"required": ["reason", "units", "matched", "unmatched", "unmatched_by_class", "carriers"],
|
|
517
|
+
"properties": {
|
|
518
|
+
"reason": {"type": "string", "enum": ["owner_text_never_enters_a_run"]},
|
|
519
|
+
"units": {"type": "integer", "minimum": 0},
|
|
520
|
+
"matched": {"type": "integer", "minimum": 0},
|
|
521
|
+
"unmatched": {"type": "integer", "minimum": 0},
|
|
522
|
+
"unmatched_by_class": {"type": "object", "additionalProperties": false,
|
|
523
|
+
"properties": {"operative": {"type": "integer", "minimum": 0},
|
|
524
|
+
"reference": {"type": "integer", "minimum": 0}}},
|
|
525
|
+
"carriers": {"type": "array", "minItems": 1, "items": {
|
|
526
|
+
"type": "object", "additionalProperties": false,
|
|
527
|
+
"required": ["carrier_id", "version_sha256", "units", "matched", "unmatched"],
|
|
528
|
+
"properties": {"carrier_id": {"type": "string"},
|
|
529
|
+
"version_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
530
|
+
"units": {"type": "integer", "minimum": 0},
|
|
531
|
+
"matched": {"type": "integer", "minimum": 0},
|
|
532
|
+
"unmatched": {"type": "integer", "minimum": 0}}}}
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"carrier_unit": {
|
|
536
|
+
"$comment": "A context-free unit of one carrier version. [start, end) is its span in the version's RAW text, in Unicode code points; `sha` is the raw fragment's sha256, and `text` its projection.",
|
|
537
|
+
"type": "object",
|
|
538
|
+
"additionalProperties": false,
|
|
539
|
+
"required": ["carrier_id", "version_sha256", "n", "start", "end", "sha", "heading", "text", "class", "block",
|
|
540
|
+
"redaction_version"],
|
|
541
|
+
"properties": {
|
|
542
|
+
"carrier_id": {"type": "string", "pattern": "^c-[0-9a-f]{24}$"},
|
|
543
|
+
"version_sha256": {"$ref": "#/$defs/sha256"},
|
|
544
|
+
"n": {"type": "integer", "minimum": 1},
|
|
545
|
+
"start": {"type": "integer", "minimum": 0},
|
|
546
|
+
"end": {"type": "integer", "minimum": 0},
|
|
547
|
+
"sha": {"$ref": "#/$defs/sha256"},
|
|
548
|
+
"heading": {"type": "string"},
|
|
549
|
+
"text": {"type": "string"},
|
|
550
|
+
"class": {"type": "string", "enum": ["operative", "reference"]},
|
|
551
|
+
"block": {"type": "string", "minLength": 1},
|
|
552
|
+
"redaction_version": {"type": "string", "pattern": "^r[0-9]+$"}
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"scope_id": {"type": "string", "pattern": "^s-[0-9a-f]{24}$"},
|
|
556
|
+
"scope_reason": {
|
|
557
|
+
"type": "object",
|
|
558
|
+
"additionalProperties": false,
|
|
559
|
+
"required": ["reason"],
|
|
560
|
+
"properties": {
|
|
561
|
+
"reason": {"type": "string", "minLength": 1},
|
|
562
|
+
"event_id": {"$ref": "#/$defs/event_id"},
|
|
563
|
+
"session_ref": {"$ref": "#/$defs/session_ref"},
|
|
564
|
+
"line": {"$ref": "#/$defs/line"}
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
"scope_answer": {
|
|
568
|
+
"$comment": "One scope's answer at the current reference point (step 0 S-10): a scope is a (layer, host, key) the host distinguishes, answered by its own newest eligible outcome.",
|
|
569
|
+
"type": "object",
|
|
570
|
+
"additionalProperties": false,
|
|
571
|
+
"required": ["scope_id", "layer", "host", "scope", "status", "as_of", "session", "session_ref", "line",
|
|
572
|
+
"event_ids", "reasons", "evidence", "limitations", "freshness"],
|
|
573
|
+
"properties": {
|
|
574
|
+
"scope_id": {"$ref": "#/$defs/scope_id"},
|
|
575
|
+
"layer": {"type": "string", "enum": ["native_global", "native_project", "native_memory", "native_undivided"]},
|
|
576
|
+
"host": {"$ref": "#/$defs/host"},
|
|
577
|
+
"scope": {"type": ["string", "null"]},
|
|
578
|
+
"status": {"type": "string", "enum": ["answered", "empty", "incomplete", "uncertain", "unknown"]},
|
|
579
|
+
"as_of": {"type": ["string", "null"]},
|
|
580
|
+
"session": {"type": ["string", "null"]},
|
|
581
|
+
"session_ref": {"type": ["string", "null"], "pattern": "^p-[0-9a-f]{24}$"},
|
|
582
|
+
"line": {"type": ["integer", "null"], "minimum": 1},
|
|
583
|
+
"event_ids": {"type": "array", "items": {"$ref": "#/$defs/event_id"}},
|
|
584
|
+
"reasons": {"type": "array", "items": {"$ref": "#/$defs/scope_reason"}},
|
|
585
|
+
"evidence": {"type": "array", "items": {
|
|
586
|
+
"type": "object", "additionalProperties": false, "required": ["event_id", "as_of"],
|
|
587
|
+
"properties": {"event_id": {"$ref": "#/$defs/event_id"}, "as_of": {"type": ["string", "null"]}}}},
|
|
588
|
+
"limitations": {"type": "array", "items": {"type": "string", "minLength": 1}},
|
|
589
|
+
"freshness": {"type": "string", "minLength": 1}
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
"scope_universe": {
|
|
593
|
+
"type": "object",
|
|
594
|
+
"additionalProperties": false,
|
|
595
|
+
"required": ["host", "no_scope", "cwd_unreadable", "memory_path_relative", "memory_path_unusable",
|
|
596
|
+
"global_excluded_by_launch", "ineligible", "transcript_unread", "memory_membership_unknown"],
|
|
597
|
+
"properties": {
|
|
598
|
+
"host": {"$ref": "#/$defs/host"},
|
|
599
|
+
"no_scope": {"type": "integer", "minimum": 0},
|
|
600
|
+
"cwd_unreadable": {"type": "integer", "minimum": 0},
|
|
601
|
+
"memory_path_relative": {"type": "integer", "minimum": 0},
|
|
602
|
+
"memory_path_unusable": {"type": "integer", "minimum": 0},
|
|
603
|
+
"global_excluded_by_launch": {"type": "integer", "minimum": 0},
|
|
604
|
+
"ineligible": {"type": "integer", "minimum": 0},
|
|
605
|
+
"transcript_unread": {"type": "integer", "minimum": 0},
|
|
606
|
+
"memory_membership_unknown": {"type": "integer", "minimum": 0}
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"owner_ref": {"type": "string", "pattern": "^o-[0-9a-f]{24}$"},
|
|
610
|
+
"session_ref": {"type": "string", "pattern": "^p-[0-9a-f]{24}$"},
|
|
611
|
+
"host": {"type": "string", "enum": ["claude", "codex"]},
|
|
612
|
+
"line": {"type": "integer", "minimum": 1},
|
|
613
|
+
"unknown_entry": {
|
|
614
|
+
"type": "object",
|
|
615
|
+
"additionalProperties": false,
|
|
616
|
+
"required": ["reason"],
|
|
617
|
+
"properties": {
|
|
618
|
+
"reason": {"type": "string", "minLength": 1},
|
|
619
|
+
"line": {"$ref": "#/$defs/line"}
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
"ownership": {
|
|
623
|
+
"type": "object",
|
|
624
|
+
"additionalProperties": false,
|
|
625
|
+
"required": ["intervals", "unknown"],
|
|
626
|
+
"properties": {
|
|
627
|
+
"intervals": {"type": "array", "items": {
|
|
628
|
+
"type": "object", "additionalProperties": false, "required": ["owner_ref", "from", "to"],
|
|
629
|
+
"properties": {"owner_ref": {"$ref": "#/$defs/owner_ref"}, "from": {"$ref": "#/$defs/line"},
|
|
630
|
+
"to": {"$ref": "#/$defs/line"}}}},
|
|
631
|
+
"unknown": {"type": "array", "items": {
|
|
632
|
+
"type": "object", "additionalProperties": false, "required": ["from", "to"],
|
|
633
|
+
"properties": {"from": {"$ref": "#/$defs/line"}, "to": {"$ref": "#/$defs/line"}}}}
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
"limitation": {
|
|
637
|
+
"$comment": "One row per limitation kind; the code's LIMITATION_TABLE holds each kind to its own fields.",
|
|
638
|
+
"type": "object",
|
|
639
|
+
"additionalProperties": false,
|
|
640
|
+
"required": ["kind"],
|
|
641
|
+
"properties": {
|
|
642
|
+
"kind": {"type": "string", "enum": ["alt_paths", "undecodable", "member_rejected", "damaged", "agent_id_unusable",
|
|
643
|
+
"member_duplicate"]},
|
|
644
|
+
"count": {"type": "integer", "minimum": 1},
|
|
645
|
+
"category": {"type": "string", "enum": ["not_json", "not_object", "member_not_object", "member_type_unmapped",
|
|
646
|
+
"member_path_invalid", "member_content_invalid", "container_unusable",
|
|
647
|
+
"locator_unusable", "locator_element_rejected"]},
|
|
648
|
+
"line": {"$ref": "#/$defs/line"},
|
|
649
|
+
"ordinal": {"type": "integer", "minimum": 0}
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
"session": {
|
|
653
|
+
"type": "object",
|
|
654
|
+
"additionalProperties": false,
|
|
655
|
+
"required": ["session_ref", "session", "host", "kind", "transcript", "parent_ref", "binding", "read",
|
|
656
|
+
"lines_read", "owners", "ownership", "inherited_session_meta", "own_meta_unidentified",
|
|
657
|
+
"limitations", "event_refs", "segment_refs", "unknown", "pin", "delivery", "selection"],
|
|
658
|
+
"properties": {
|
|
659
|
+
"session_ref": {"$ref": "#/$defs/session_ref"},
|
|
660
|
+
"session": {"type": "string"},
|
|
661
|
+
"host": {"$ref": "#/$defs/host"},
|
|
662
|
+
"kind": {"type": "string", "enum": ["main", "subagent"]},
|
|
663
|
+
"transcript": {"type": "object", "additionalProperties": false, "required": ["host", "id", "source"],
|
|
664
|
+
"properties": {"host": {"$ref": "#/$defs/host"}, "id": {"type": "string"},
|
|
665
|
+
"source": {"type": ["string", "null"]}}},
|
|
666
|
+
"parent_ref": {"type": ["string", "null"], "pattern": "^p-[0-9a-f]{24}$"},
|
|
667
|
+
"binding": {"type": "string", "enum": ["whole", "prefix", "none"]},
|
|
668
|
+
"read": {"type": "string", "enum": ["bound", "appended", "changed", "unbound", "binding_invalid", "no_path",
|
|
669
|
+
"unreadable"]},
|
|
670
|
+
"lines_read": {"type": ["integer", "null"], "minimum": 0},
|
|
671
|
+
"owners": {"type": "array", "items": {
|
|
672
|
+
"type": "object", "additionalProperties": false, "required": ["owner_ref", "display"],
|
|
673
|
+
"properties": {"owner_ref": {"$ref": "#/$defs/owner_ref"}, "display": {"type": "string"}}}},
|
|
674
|
+
"ownership": {"$ref": "#/$defs/ownership"},
|
|
675
|
+
"inherited_session_meta": {
|
|
676
|
+
"type": "object", "additionalProperties": false, "required": ["another_session_id", "no_session_id"],
|
|
677
|
+
"properties": {"another_session_id": {"type": "integer", "minimum": 0},
|
|
678
|
+
"no_session_id": {"type": "integer", "minimum": 0}}},
|
|
679
|
+
"own_meta_unidentified": {"type": ["integer", "null"], "minimum": 1},
|
|
680
|
+
"limitations": {"type": "array", "items": {"$ref": "#/$defs/limitation"}},
|
|
681
|
+
"event_refs": {"type": "array", "items": {"$ref": "#/$defs/event_id"}},
|
|
682
|
+
"segment_refs": {"type": "array", "items": {"$ref": "#/$defs/segment_id"}},
|
|
683
|
+
"unknown": {"type": "array", "items": {"$ref": "#/$defs/unknown_entry"}},
|
|
684
|
+
"pin": {"$ref": "#/$defs/pin"},
|
|
685
|
+
"delivery": {"$ref": "#/$defs/delivery"},
|
|
686
|
+
"selection": {"$ref": "#/$defs/session_selection"}
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
"session_selection": {
|
|
690
|
+
"$comment": "A session's selection (step 0 S-14, S-15): the shared selection inventory its own verified snapshot is (inventory_ref), or the one reason of the first broken link of its pin and snapshot.",
|
|
691
|
+
"type": "object",
|
|
692
|
+
"additionalProperties": false,
|
|
693
|
+
"required": ["status", "reason", "inventory_ref"],
|
|
694
|
+
"properties": {
|
|
695
|
+
"status": {"type": "string", "enum": ["read", "unpinned", "unknown"]},
|
|
696
|
+
"reason": {"enum": ["unpinned", "rollout_claimed_twice", "rollout_unmatched", "pin_predates_rollout_binding",
|
|
697
|
+
"rollout_unresolved", "pin_absent", "pin_mismatch", "pin_content_ref_mismatch",
|
|
698
|
+
"input_failed", "input_unread", "snapshot_absent", null]},
|
|
699
|
+
"inventory_ref": {"type": ["string", "null"], "pattern": "^i-[0-9a-f]{24}$"}
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
"pin": {
|
|
703
|
+
"$comment": "A session's own pin (step 0 S-14, S-15, S-16). reason is null exactly when the pin was read; content_ref is the one the pin names when the pin was read, agreeing with the census or not (pin_content_ref_mismatch), else the one the census row names (a Codex row's is read for nothing); baseline_ref is what the pin's verified snapshot names.",
|
|
704
|
+
"type": "object",
|
|
705
|
+
"additionalProperties": false,
|
|
706
|
+
"required": ["status", "reason", "content_ref", "baseline_ref", "include_global_instructions"],
|
|
707
|
+
"properties": {
|
|
708
|
+
"status": {"type": "string", "enum": ["read", "unpinned", "unknown"]},
|
|
709
|
+
"reason": {"enum": ["unpinned", "rollout_claimed_twice", "rollout_unmatched", "pin_predates_rollout_binding",
|
|
710
|
+
"rollout_unresolved", "pin_absent", "pin_mismatch", "pin_content_ref_mismatch",
|
|
711
|
+
"input_failed", "input_unread", null]},
|
|
712
|
+
"content_ref": {"type": ["string", "null"], "pattern": "^[0-9a-f]{64}$"},
|
|
713
|
+
"baseline_ref": {"type": ["string", "null"]},
|
|
714
|
+
"include_global_instructions": {"type": ["boolean", "null"]}
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
"delivery": {
|
|
718
|
+
"$comment": "Whether the session's own selected body was delivered (step 0 S-13, S-14): confirmed by a usable recorded occurrence its own owner holds, else unknown with ONE reason, the first broken link of the pin, its snapshot, the transcript read, a damaged injection event of its own owner and a recorded occurrence whose offsets could not be recovered (recorded_unmapped), and no_record only when none is broken.",
|
|
719
|
+
"type": "object",
|
|
720
|
+
"additionalProperties": false,
|
|
721
|
+
"required": ["status", "reason", "event_refs"],
|
|
722
|
+
"properties": {
|
|
723
|
+
"status": {"type": "string", "enum": ["confirmed", "unknown"]},
|
|
724
|
+
"reason": {"enum": ["unpinned", "rollout_claimed_twice", "rollout_unmatched", "pin_predates_rollout_binding",
|
|
725
|
+
"rollout_unresolved", "pin_absent", "pin_mismatch", "pin_content_ref_mismatch",
|
|
726
|
+
"input_failed", "input_unread", "snapshot_absent", "unbound", "binding_invalid",
|
|
727
|
+
"no_path", "changed", "unreadable", "container_unusable", "locator_element_rejected",
|
|
728
|
+
"recorded_unmapped", "no_record", null]},
|
|
729
|
+
"event_refs": {"type": "array", "items": {"$ref": "#/$defs/event_id"}}
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"event": {
|
|
733
|
+
"type": "object",
|
|
734
|
+
"additionalProperties": false,
|
|
735
|
+
"required": ["event_id", "kind", "host", "session_ref", "owner_ref", "owner", "line", "at", "at_reason",
|
|
736
|
+
"damaged", "interval_from", "interval_to", "certain_to", "uncertain_reason", "where",
|
|
737
|
+
"rejected", "members"],
|
|
738
|
+
"properties": {
|
|
739
|
+
"event_id": {"$ref": "#/$defs/event_id"},
|
|
740
|
+
"kind": {"type": "string", "enum": ["native", "session_injection"]},
|
|
741
|
+
"host": {"$ref": "#/$defs/host"},
|
|
742
|
+
"session_ref": {"$ref": "#/$defs/session_ref"},
|
|
743
|
+
"owner_ref": {"type": ["string", "null"], "pattern": "^o-[0-9a-f]{24}$"},
|
|
744
|
+
"owner": {"type": "string"},
|
|
745
|
+
"line": {"$ref": "#/$defs/line"},
|
|
746
|
+
"at": {"type": ["string", "null"]},
|
|
747
|
+
"at_reason": {"enum": ["undated", "undated_naive", null]},
|
|
748
|
+
"damaged": {"enum": ["container_unusable", "locator_element_rejected", null]},
|
|
749
|
+
"interval_from": {"type": ["integer", "null"], "minimum": 1},
|
|
750
|
+
"interval_to": {"type": ["integer", "null"], "minimum": 1},
|
|
751
|
+
"certain_to": {"type": ["integer", "null"], "minimum": 1},
|
|
752
|
+
"uncertain_reason": {"enum": ["undecodable_after", "ownership_unknown", null]},
|
|
753
|
+
"where": {"type": ["string", "null"]},
|
|
754
|
+
"rejected": {"type": "array", "items": {
|
|
755
|
+
"type": "object", "additionalProperties": false, "required": ["ordinal", "category"],
|
|
756
|
+
"properties": {"ordinal": {"type": "integer", "minimum": 0},
|
|
757
|
+
"category": {"enum": ["member_not_object", "member_type_unmapped", "member_path_invalid",
|
|
758
|
+
"member_content_invalid"]}}}},
|
|
759
|
+
"members": {"type": "array", "items": {
|
|
760
|
+
"type": "object", "additionalProperties": false, "required": ["ordinal", "carrier_id", "version_sha256"],
|
|
761
|
+
"properties": {"ordinal": {"type": "integer", "minimum": 0},
|
|
762
|
+
"carrier_id": {"type": "string", "pattern": "^c-[0-9a-f]{24}$"},
|
|
763
|
+
"version_sha256": {"$ref": "#/$defs/sha256"}}}}
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
"layer_name": {
|
|
767
|
+
"type": "string",
|
|
768
|
+
"enum": [
|
|
769
|
+
"catalog",
|
|
770
|
+
"adopted_packages",
|
|
771
|
+
"overlays",
|
|
772
|
+
"native_global",
|
|
773
|
+
"native_project",
|
|
774
|
+
"native_settings",
|
|
775
|
+
"native_memory",
|
|
776
|
+
"native_undivided",
|
|
777
|
+
"session_injection",
|
|
778
|
+
"ledger_incubating",
|
|
779
|
+
"ledger_keep"
|
|
780
|
+
]
|
|
781
|
+
},
|
|
782
|
+
"sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
783
|
+
"unit": {
|
|
784
|
+
"type": "object",
|
|
785
|
+
"additionalProperties": false,
|
|
786
|
+
"required": [
|
|
787
|
+
"unit_id",
|
|
788
|
+
"unit_ref",
|
|
789
|
+
"layer",
|
|
790
|
+
"path",
|
|
791
|
+
"heading",
|
|
792
|
+
"n",
|
|
793
|
+
"text",
|
|
794
|
+
"sha",
|
|
795
|
+
"class",
|
|
796
|
+
"operative_context",
|
|
797
|
+
"version_sha256",
|
|
798
|
+
"redaction_version"
|
|
799
|
+
],
|
|
800
|
+
"properties": {
|
|
801
|
+
"unit_id": {"type": "string", "pattern": "^u-[0-9a-f]{16}(-[0-9]+)?$"},
|
|
802
|
+
"unit_ref": {"$ref": "#/$defs/unit_ref"},
|
|
803
|
+
"layer": {"$ref": "#/$defs/layer_name"},
|
|
804
|
+
"path": {"type": "string", "minLength": 1},
|
|
805
|
+
"heading": {"type": "string"},
|
|
806
|
+
"n": {"type": "integer", "minimum": 1},
|
|
807
|
+
"text": {"type": "string"},
|
|
808
|
+
"sha": {"$ref": "#/$defs/sha256"},
|
|
809
|
+
"class": {"type": "string", "enum": ["operative", "reference"]},
|
|
810
|
+
"operative_context": {"$comment": "sorted unit ids and k- ids (step 0 S-12); a k- names a row of the document's unknown_entries",
|
|
811
|
+
"type": "array", "items": {"type": "string", "pattern": "^(u-[0-9a-f]{16}(-[0-9]+)?|k-[0-9a-f]{24})$"}},
|
|
812
|
+
"version_sha256": {"$ref": "#/$defs/sha256"},
|
|
813
|
+
"redaction_version": {"type": "string", "pattern": "^r[0-9]+$"},
|
|
814
|
+
"block": {"type": "string", "minLength": 1},
|
|
815
|
+
"item_ref": {"type": ["string", "null"]},
|
|
816
|
+
"package_id": {"type": ["string", "null"]},
|
|
817
|
+
"carrier_id": {
|
|
818
|
+
"$comment": "opaque: an identity, not a spelling of what it was built from",
|
|
819
|
+
"type": "string",
|
|
820
|
+
"pattern": "^c-[0-9a-f]{24}$"
|
|
821
|
+
},
|
|
822
|
+
"provenance": {"$ref": "#/$defs/provenance"},
|
|
823
|
+
"edges": {"$ref": "#/$defs/unit_edges"}
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
"unit_edges": {
|
|
827
|
+
"$comment": "plan WP-11, lead decision D1 (a1): one unit's edges in current.json, the shared inventories' edges shape by the document's own ids. `direct` holds the unit itself, its frontmatter, enclosing headings and condition spans; `reached` what its mentions resolved to one step out, an unresolved one as its k- entry. Both sorted; the closure over every unit's edges is its operative_context. Optional on a unit, and then carried by every unit of the document or by none.",
|
|
828
|
+
"type": "object",
|
|
829
|
+
"additionalProperties": false,
|
|
830
|
+
"required": ["direct", "reached"],
|
|
831
|
+
"properties": {
|
|
832
|
+
"direct": {"type": "array", "items": {"type": "string", "pattern": "^u-[0-9a-f]{16}(-[0-9]+)?$"}},
|
|
833
|
+
"reached": {"type": "array", "items": {"type": "string", "pattern": "^(u-[0-9a-f]{16}(-[0-9]+)?|k-[0-9a-f]{24})$"}}
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
"provenance": {
|
|
837
|
+
"type": "object",
|
|
838
|
+
"additionalProperties": false,
|
|
839
|
+
"properties": {
|
|
840
|
+
"as_of": {"type": ["string", "null"]},
|
|
841
|
+
"session": {"type": ["string", "null"]},
|
|
842
|
+
"transcript": {"type": ["string", "null"]},
|
|
843
|
+
"where": {"type": ["string", "null"]},
|
|
844
|
+
"scope": {"type": ["string", "null"]},
|
|
845
|
+
"reference": {"type": ["string", "null"]},
|
|
846
|
+
"record": {"type": ["integer", "null"]},
|
|
847
|
+
"identity": {"type": ["string", "null"]},
|
|
848
|
+
"status": {"type": ["string", "null"]},
|
|
849
|
+
"keep_units": {"type": "array", "items": {"type": "string"}},
|
|
850
|
+
"keep_reason": {"type": ["string", "null"]},
|
|
851
|
+
"hosts": {"type": "array", "items": {"type": "string"}},
|
|
852
|
+
"scope_id": {"$ref": "#/$defs/scope_id"},
|
|
853
|
+
"event_id": {"$ref": "#/$defs/event_id"},
|
|
854
|
+
"git": {"$ref": "#/$defs/git"}
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
"layer_row": {
|
|
858
|
+
"type": "object",
|
|
859
|
+
"additionalProperties": false,
|
|
860
|
+
"required": ["layer", "producer", "status", "reasons", "units", "empty"],
|
|
861
|
+
"properties": {
|
|
862
|
+
"layer": {"$ref": "#/$defs/layer_name"},
|
|
863
|
+
"producer": {"type": ["string", "null"]},
|
|
864
|
+
"status": {"type": "string", "enum": ["complete", "incomplete", "unsupported", "unknown"]},
|
|
865
|
+
"reasons": {"type": "array", "items": {"type": "string"}},
|
|
866
|
+
"units": {"type": "integer", "minimum": 0},
|
|
867
|
+
"empty": {"type": "boolean"},
|
|
868
|
+
"withheld": {"$ref": "#/$defs/withheld"}
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
}
|