crumb-spec
Crumb Protocol specification and filesystem standard for sovereign AI agents
Brought by drakestapleton
crumb-spec / examples / basic / .crumb
| 1 | { |
| 2 | "schema_version": "1.0.0", |
| 3 | "name": "auth-service", |
| 4 | "layer": "services/auth", |
| 5 | "purpose": "JWT token verification, OAuth2 exchange, and session revocation", |
| 6 | "above": { |
| 7 | "name": "platform-core", |
| 8 | "path": "../../", |
| 9 | "invariants": [ |
| 10 | "Zero disk secrets: hardware TPM vault only", |
| 11 | "Pure compiled architecture" |
| 12 | ] |
| 13 | }, |
| 14 | "below": [ |
| 15 | { "name": "routes", "role": "HTTP endpoint handlers for login and refresh" }, |
| 16 | { "name": "crypto", "role": "Ed25519 signing and verification primitives" } |
| 17 | ], |
| 18 | "invariants": [ |
| 19 | "Tokens must be signed with Ed25519, never HMAC-SHA256", |
| 20 | "All authentication routes must enforce rate limiting" |
| 21 | ], |
| 22 | "exports": [ |
| 23 | "auth_service::verify_bearer_token", |
| 24 | "auth_service::issue_session_token" |
| 25 | ] |
| 26 | } |