interplane.Get Omega
Read in your language

crumb-spec

Crumb Protocol specification and filesystem standard for sovereign AI agents

Brought by drakestapleton

branch main Branches Tags History

crumb-spec / schema / crumb.schema.json

72 lines · 2175 bytes Raw Blame History
1{
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "$id": "https://raw.githubusercontent.com/aien-dev/crumb-spec/main/schema/crumb.schema.json",
4 "title": "DirCrumb",
5 "description": "Durable architectural metadata manifest for a codebase directory.",
6 "type": "object",
7 "required": ["schema_version", "name", "purpose"],
8 "properties": {
9 "schema_version": {
10 "type": "string",
11 "enum": ["1.0.0"]
12 },
13 "name": {
14 "type": "string",
15 "description": "Human-readable identifier for the module or directory."
16 },
17 "layer": {
18 "type": "string",
19 "description": "Architectural layer identifier (e.g. core/runtime, ui/web, infra/db)."
20 },
21 "purpose": {
22 "type": "string",
23 "description": "Concise summary of directory responsibilities and scope."
24 },
25 "above": {
26 "description": "Pointer to parent architectural domain or repository root.",
27 "oneOf": [
28 { "type": "string" },
29 {
30 "type": "object",
31 "required": ["name", "path"],
32 "properties": {
33 "name": { "type": "string" },
34 "path": { "type": "string" },
35 "invariants": {
36 "type": "array",
37 "items": { "type": "string" }
38 }
39 }
40 }
41 ]
42 },
43 "below": {
44 "type": "array",
45 "description": "List of notable child components and their roles.",
46 "items": {
47 "type": "object",
48 "required": ["name", "role"],
49 "properties": {
50 "name": { "type": "string" },
51 "role": { "type": "string" }
52 }
53 }
54 },
55 "invariants": {
56 "type": "array",
57 "description": "Non-negotiable architectural rules enforced within this directory.",
58 "items": { "type": "string" }
59 },
60 "exports": {
61 "type": "array",
62 "description": "Key public functions, crates, modules, or services provided.",
63 "items": { "type": "string" }
64 },
65 "extensions": {
66 "type": "object",
67 "description": "Arbitrary vendor or domain-specific metadata.",
68 "additionalProperties": true
69 }
70 },
71 "additionalProperties": false
72}