Skip to content

Commit 99c8f68

Browse files
authored
docs(schema): complete extensions coverage (#496)
1 parent 90af064 commit 99c8f68

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

schema/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ validate-fixtures:
4646
fixtures/valid-unit.json \
4747
fixtures/minimal-unit.json \
4848
fixtures/flagged-unit.json \
49-
fixtures/duplicate-flag.json
49+
fixtures/duplicate-flag.json \
50+
fixtures/extensions-unit.json
5051
uv run --locked --project python check-jsonschema \
5152
--schemafile node_discovery.json \
5253
fixtures/node_discovery_minimal.json \

schema/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ A single unit of shared agent knowledge. This is the core data type; other schem
2626
| `tier` | `"local"` \| `"private"` \| `"public"` | no | Storage tier. |
2727
| `created_by` | string | no | Identifier of the agent or user that created this unit. |
2828
| `superseded_by` | string (`ku_<32 hex>`) | no | ID of the replacing knowledge unit, if any. |
29+
| `extensions` | Extensions | no | Implementation-specific namespaced fields; not portable across implementations. |
2930
| `flags` | Flag[] | no | Recorded flags against this unit. |
3031

3132
#### Defined types
@@ -46,6 +47,8 @@ A single unit of shared agent knowledge. This is the core data type; other schem
4647
| `frameworks` | string[] | no | Frameworks. |
4748
| `pattern` | string | no | Reusable cross-cutting pattern. |
4849

50+
**Extensions** — implementation-specific fields carried under namespaced keys, not portable across implementations. See the `Extensions` definition in `knowledge_unit.json` for the normative producer and consumer rules.
51+
4952
**Evidence** — confidence and confirmation metrics.
5053

5154
| Field | Type | Required | Description |
@@ -92,6 +95,7 @@ Request to propose a new knowledge unit.
9295
| `domains` | string[] (>= 1) | yes | At least one domain is required. |
9396
| `insight` | Insight | yes | Tripartite insight (defined in knowledge_unit.json). |
9497
| `context` | Context | no | Language, framework, and pattern context. |
98+
| `extensions` | Extensions | no | Implementation-specific namespaced fields (defined in knowledge_unit.json). |
9599
| `created_by` | string | no | Identifier of the proposing agent or user. |
96100

97101
---

0 commit comments

Comments
 (0)