{"openapi":"3.0.3","info":{"title":"Ebb Memory Engine API","description":"Production cognitive memory engine and multi-transport gateway for autonomous AI agents. Features continuous mass-dilated logarithmic decay, Hebbian co-activation networks, off-heap mmap storage, and unified enterprise security.\n\nCanonical public HTTP contract for Ebb client SDKs. Generated from the hosted FastAPI application. Excludes internal and admin routes. Protected operations require `Authorization: Bearer <token>` (security scheme `HTTPBearer`). The same routes accept an optional `X-API-Key` header and `X-Ebb-Namespace` to select a namespace. Error responses use the `ErrorResponse` envelope (`code`, `message`, `details`) plus FastAPI's `HTTPValidationError` for 422.\n\nSDK subset of the Ebb HTTP contract. Includes Memory, Tasks, Events, and Health. Omits admin, runtime config, provider probes, registration, password reset, and SSO.","contact":{"name":"Spectrayan Ebb Project Maintainers","url":"https://spectrayan.com/","email":"maintainers@spectrayan.com"},"version":"0.2.0"},"servers":[{"url":"/","description":"Your ebbmem API origin (EBBMEM_ORIGIN)"}],"paths":{"/healthz":{"get":{"tags":["Health"],"summary":"Healthz","description":"Liveness probe endpoint.","operationId":"health","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"Unstructured JSON object."}}}},"400":{"$ref":"#/components/responses/ClientError"}},"security":[]}},"/readyz":{"get":{"tags":["Health"],"summary":"Readyz","description":"Readiness probe endpoint.","operationId":"ready","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"Unstructured JSON object."}}}},"400":{"$ref":"#/components/responses/ClientError"}},"security":[]}},"/api/v1/memory/remember":{"post":{"tags":["Memory"],"summary":"Remember","description":"Ingest observation into cognitive memory tier.","operationId":"remember","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RememberRequestModel"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryOperationResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/remember/batch":{"post":{"tags":["Memory"],"summary":"Remember Batch","description":"Batch ingest memories.","operationId":"rememberBatch","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRememberRequestModel"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRememberResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/recall":{"post":{"tags":["Memory"],"summary":"Recall Post","description":"Retrieve memories using cognitive scoring scan (POST).","operationId":"recall","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallRequestModel"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallResponseModel"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Memory"],"summary":"Recall Get","description":"Retrieve memories using cognitive scoring scan (GET).","operationId":"recallQuery","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Search query string","title":"Query"},"description":"Search query string"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"Max candidate engrams to return","default":5,"title":"Limit"},"description":"Max candidate engrams to return"},{"name":"profile","in":"query","required":false,"schema":{"type":"string","description":"Thalamic retrieval profile preset","default":"Balanced","title":"Profile"},"description":"Thalamic retrieval profile preset"},{"name":"min_score","in":"query","required":false,"schema":{"type":"number","description":"Minimum fused score threshold","title":"Min Score","nullable":true},"description":"Minimum fused score threshold"},{"name":"domain","in":"query","required":false,"schema":{"type":"string","description":"Optional domain filter","title":"Domain","nullable":true},"description":"Optional domain filter"},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","description":"Target namespace partition","title":"Namespace","nullable":true},"description":"Target namespace partition"},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallResponseModel"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/recall/federated":{"post":{"tags":["Memory"],"summary":"Recall Federated Post","description":"Retrieve memories across multiple namespaces using federated rank fusion (POST).","operationId":"recallFederated","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FederatedRecallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FederatedRecallCandidate"},"title":"Response Recallfederated"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Memory"],"summary":"Recall Federated Get","description":"Retrieve memories across multiple namespaces using federated rank fusion (GET).","operationId":"recallFederatedQuery","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Search query string","title":"Query"},"description":"Search query string"},{"name":"namespaces","in":"query","required":false,"schema":{"type":"string","description":"Comma-separated target namespaces or 'granted' for auto-discovery","default":"granted","title":"Namespaces"},"description":"Comma-separated target namespaces or 'granted' for auto-discovery"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"Maximum number of fused hits to return","default":10,"title":"Limit"},"description":"Maximum number of fused hits to return"},{"name":"profile","in":"query","required":false,"schema":{"type":"string","description":"Cognitive scoring profile","default":"BALANCED","title":"Profile"},"description":"Cognitive scoring profile"},{"name":"min_score","in":"query","required":false,"schema":{"type":"number","maximum":1.0,"minimum":0.0,"description":"Minimum fused score threshold","default":0.0,"title":"Min Score"},"description":"Minimum fused score threshold"},{"name":"domain","in":"query","required":false,"schema":{"type":"string","description":"Optional domain filter","title":"Domain","nullable":true},"description":"Optional domain filter"},{"name":"salience_weights","in":"query","required":false,"schema":{"type":"string","description":"Optional JSON dictionary of namespace salience weights","title":"Salience Weights","nullable":true},"description":"Optional JSON dictionary of namespace salience weights"},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FederatedRecallCandidate"},"title":"Response Recallfederatedquery"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/reinforce":{"post":{"tags":["Memory"],"summary":"Reinforce","description":"Reinforce Hebbian associations or memory trace.","operationId":"reinforce","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReinforceRequestModel"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReinforceResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/dream":{"post":{"tags":["Memory"],"summary":"Dream","description":"Trigger sleep consolidation generative replay rest cycle.","operationId":"dream","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DreamRequestModel"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DreamResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/reflect":{"post":{"tags":["Memory"],"summary":"Reflect","description":"Trigger self-model reflection and crystallization.","operationId":"reflect","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReflectRequestModel"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReflectResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/wander":{"post":{"tags":["Memory"],"summary":"Wander","description":"Trigger Default Mode Network stochastic associative walk.","operationId":"wander","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WanderRequestModel"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WanderResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/introspect":{"get":{"tags":["Memory"],"summary":"Introspect","description":"Retrieve cognitive state and topological graph summary.","operationId":"introspect","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"type":"string","description":"Target namespace partition","title":"Namespace","nullable":true},"description":"Target namespace partition"},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntrospectResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/status":{"get":{"tags":["Memory"],"summary":"Status Endpoint","description":"Retrieve health check and storage slab capacity stats.","operationId":"status","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"type":"string","description":"Target namespace partition","title":"Namespace","nullable":true},"description":"Target namespace partition"},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryStatusResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/why-not":{"post":{"tags":["Memory"],"summary":"Why Not","description":"Explain why candidate engram was dropped during retrieval.","operationId":"whyNot","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhyNotRequestModel"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhyNotResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/table":{"get":{"tags":["Memory"],"summary":"List Memories","description":"Retrieve paginated and filtered table rows of memory traces via cursor or page seeking.","operationId":"listMemoriesTable","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","title":"Cursor","nullable":true}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"tier","in":"query","required":false,"schema":{"type":"string","title":"Tier","nullable":true}},{"name":"tags","in":"query","required":false,"schema":{"type":"string","title":"Tags","nullable":true}},{"name":"tombstoned","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Tombstoned"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","title":"Search","nullable":true}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","title":"Namespace","nullable":true}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"title":"Page","nullable":true}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"title":"Page Size","nullable":true}},{"name":"min_importance","in":"query","required":false,"schema":{"type":"number","maximum":10.0,"minimum":0.0,"title":"Min Importance","nullable":true}},{"name":"min_valence","in":"query","required":false,"schema":{"type":"integer","maximum":127,"minimum":-128,"title":"Min Valence","nullable":true}},{"name":"max_valence","in":"query","required":false,"schema":{"type":"integer","maximum":127,"minimum":-128,"title":"Max Valence","nullable":true}},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryTableResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory":{"get":{"tags":["Memory"],"summary":"List Memories","description":"Retrieve paginated and filtered table rows of memory traces via cursor or page seeking.","operationId":"listMemories","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","title":"Cursor","nullable":true}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"tier","in":"query","required":false,"schema":{"type":"string","title":"Tier","nullable":true}},{"name":"tags","in":"query","required":false,"schema":{"type":"string","title":"Tags","nullable":true}},{"name":"tombstoned","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Tombstoned"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","title":"Search","nullable":true}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","title":"Namespace","nullable":true}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"title":"Page","nullable":true}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"title":"Page Size","nullable":true}},{"name":"min_importance","in":"query","required":false,"schema":{"type":"number","maximum":10.0,"minimum":0.0,"title":"Min Importance","nullable":true}},{"name":"min_valence","in":"query","required":false,"schema":{"type":"integer","maximum":127,"minimum":-128,"title":"Min Valence","nullable":true}},{"name":"max_valence","in":"query","required":false,"schema":{"type":"integer","maximum":127,"minimum":-128,"title":"Max Valence","nullable":true}},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryTableResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/vacuum":{"post":{"tags":["Memory"],"summary":"Vacuum Endpoint","description":"Reclaim slab space from tombstones and trigger deep consolidation.","operationId":"vacuum","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VacuumRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompactionResult"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/{memory_id}":{"patch":{"tags":["Memory"],"summary":"Update Memory Endpoint","description":"Update cognitive attributes on an existing memory engram.","operationId":"updateMemory","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","description":"Target engram ID to update","title":"Memory Id"},"description":"Target engram ID to update"},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","description":"Target namespace partition","title":"Namespace","nullable":true},"description":"Target namespace partition"},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryRow"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Memory"],"summary":"Delete Memory Endpoint","description":"Tombstone (soft-delete) or physically purge a memory trace.","operationId":"forgetMemory","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","description":"Target engram ID to delete or purge","title":"Memory Id"},"description":"Target engram ID to delete or purge"},{"name":"purge","in":"query","required":false,"schema":{"type":"boolean","description":"Execute irreversible physical purge","default":false,"title":"Purge"},"description":"Execute irreversible physical purge"},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","description":"Target namespace partition","title":"Namespace","nullable":true},"description":"Target namespace partition"},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseForgetmemory"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Memory"],"summary":"Get Memory Detail Endpoint","description":"Retrieve full details of a specific memory engram.","operationId":"getMemory","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","description":"Target engram ID to fetch","title":"Memory Id"},"description":"Target engram ID to fetch"},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","description":"Target namespace partition","title":"Namespace","nullable":true},"description":"Target namespace partition"},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryRow"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/{memory_id}/purge":{"delete":{"tags":["Memory"],"summary":"Purge Memory Endpoint","description":"Irreversibly physically destroy an engram across slabs, bundles, and graphs.","operationId":"purgeMemory","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","description":"Target engram ID to physically purge","title":"Memory Id"},"description":"Target engram ID to physically purge"},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","description":"Target namespace partition","title":"Namespace","nullable":true},"description":"Target namespace partition"},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurgeResultResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/graph/overview":{"get":{"tags":["Memory"],"summary":"Graph Overview Endpoint","description":"Sample topological nodes and Hebbian co-activation edges for 3D visualizers.","operationId":"graphOverview","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"max_nodes","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"description":"Max topological nodes per page","default":200,"title":"Max Nodes"},"description":"Max topological nodes per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Pagination offset into namespace nodes","default":0,"title":"Offset"},"description":"Pagination offset into namespace nodes"},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","description":"Target namespace partition","title":"Namespace","nullable":true},"description":"Target namespace partition"},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryGraphResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/{memory_id}/graph":{"get":{"tags":["Memory"],"summary":"Get Memory Neighborhood Endpoint","description":"Retrieve synaptic neighborhood graph centered on a target memory trace.","operationId":"getMemoryGraph","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","description":"Target engram ID","title":"Memory Id"},"description":"Target engram ID"},{"name":"depth","in":"query","required":false,"schema":{"type":"integer","maximum":3,"minimum":1,"description":"Synaptic hop depth traversal","default":1,"title":"Depth"},"description":"Synaptic hop depth traversal"},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","description":"Target namespace partition","title":"Namespace","nullable":true},"description":"Target namespace partition"},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryGraphResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/{memory_id}/vector":{"get":{"tags":["Memory"],"summary":"Get Memory Vector Endpoint","description":"Retrieve 16-lane SIMD vector embedding for target memory trace.","operationId":"getMemoryVector","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","description":"Target engram ID","title":"Memory Id"},"description":"Target engram ID"},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","description":"Target namespace partition","title":"Namespace","nullable":true},"description":"Target namespace partition"},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryVectorResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/mel":{"post":{"tags":["Memory"],"summary":"Execute Mel Endpoint","description":"Execute one or more MEL-001 (Memory Engine Language) statements.","operationId":"executeMel","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MelExecuteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MelExecuteResponse"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/remember/upload":{"post":{"tags":["Memory"],"summary":"Remember Upload Endpoint","description":"Sensory file/folder upload adapter returning 202 Accepted with background task descriptor .","operationId":"rememberUpload","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"wait","in":"query","required":false,"schema":{"type":"boolean","description":"Await background task completion synchronously","default":false,"title":"Wait"},"description":"Await background task completion synchronously"},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","title":"Idempotency-Key","nullable":true}},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_rememberUpload"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rememberupload"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/{memory_id}/document":{"get":{"tags":["Memory"],"summary":"Get Memory Document Endpoint","description":"Reconstruct the full de-overlapped document from any constituent chunk memory ID.","operationId":"getMemoryDocument","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","description":"Target chunk or memory ID to reconstruct full document from","title":"Memory Id"},"description":"Target chunk or memory ID to reconstruct full document from"},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","description":"Target namespace partition","title":"Namespace","nullable":true},"description":"Target namespace partition"},{"name":"X-Ebb-Namespace","in":"header","required":false,"schema":{"type":"string","title":"X-Ebb-Namespace","nullable":true}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Getmemorydocument"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tasks":{"get":{"tags":["Tasks"],"summary":"List Ingestion Tasks","description":"List background ingestion tasks visible to the authenticated caller.","operationId":"listTasks","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","description":"Comma-separated task status filter (e.g. 'pending,running,completed')","title":"Status","nullable":true},"description":"Comma-separated task status filter (e.g. 'pending,running,completed')"},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","description":"Optional namespace filter","title":"Namespace","nullable":true},"description":"Optional namespace filter"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Maximum tasks to return","default":50,"title":"Limit"},"description":"Maximum tasks to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Listtasks"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tasks/{task_id}":{"get":{"tags":["Tasks"],"summary":"Get Ingestion Task","description":"Retrieve status, counters, timestamps, and error summary for a specific ingestion task.","operationId":"getTask","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","description":"Target ingestion task ID","title":"Task Id"},"description":"Target ingestion task ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Gettask"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Tasks"],"summary":"Cancel Ingestion Task","description":"Request cooperative cancellation of a queued or running ingestion task (idempotent).","operationId":"cancelTask","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","description":"Target ingestion task ID to cancel","title":"Task Id"},"description":"Target ingestion task ID to cancel"}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Canceltask"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tasks/{task_id}/cancel":{"post":{"tags":["Tasks"],"summary":"Cancel Ingestion Task","description":"Request cooperative cancellation of a queued or running ingestion task (idempotent).","operationId":"cancelTaskByPost","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","description":"Target ingestion task ID to cancel","title":"Task Id"},"description":"Target ingestion task ID to cancel"}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Canceltaskbypost"}}}},"400":{"description":"Bad Request \u2014 constraint violation or malformed input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized \u2014 missing or invalid Bearer JWT / X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden \u2014 insufficient role permissions or policy violation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found \u2014 target memory trace, thread, or tenant not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests \u2014 token bucket rate limit budget exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/events/stream":{"get":{"tags":["Events"],"summary":"Event Stream","description":"Stream live memory and ingestion lifecycle events over SSE with Last-Event-ID replay.","operationId":"streamEvents","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"last_event_id","in":"query","required":false,"schema":{"type":"string","title":"Last Event Id","nullable":true}},{"name":"event_types","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Event Types","nullable":true}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","title":"Namespace","nullable":true}},{"name":"namespaces","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Namespaces","nullable":true}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"type":"string","title":"Last-Event-Id","nullable":true}},{"name":"token","in":"query","required":false,"schema":{"type":"string"},"description":"Bearer token for EventSource clients, which cannot set the Authorization header. Other operations use the HTTPBearer security scheme."}],"responses":{"200":{"description":"Successful Response","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/StreamEventsResponse200"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"BatchRememberRequestModel":{"properties":{"items":{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array","minItems":1,"title":"Items"},"tier":{"allOf":[{"$ref":"#/components/schemas/MemoryTier"}],"default":"semantic"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","nullable":true},"importance":{"type":"number","maximum":10.0,"minimum":0.0,"title":"Importance","default":5.0},"valence":{"type":"integer","maximum":127.0,"minimum":-128.0,"title":"Valence","default":0},"arousal":{"type":"integer","maximum":255.0,"minimum":0.0,"title":"Arousal","default":0},"timestamp_ms":{"type":"integer","minimum":0.0,"title":"Timestamp Ms","nullable":true},"session_id":{"anyOf":[{"type":"integer","nullable":true},{"type":"string","nullable":true}],"title":"Session Id"},"namespace":{"type":"string","title":"Namespace","nullable":true}},"type":"object","required":["items"],"title":"BatchRememberRequestModel","description":"Request model for batch memory ingestion."},"BatchRememberResponse":{"properties":{"ids":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Ids","description":"Stored engram IDs"},"count":{"type":"integer","title":"Count","description":"Total ingested engrams","default":0},"status":{"type":"string","title":"Status","default":"stored","example":"stored"}},"type":"object","title":"BatchRememberResponse","description":"Batch memory ingestion confirmation response."},"Body_rememberUpload":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files","description":"One or more files or folder contents to remember"},"tier":{"type":"string","title":"Tier","description":"Target memory tier ('working', 'episodic', 'semantic', 'procedural')","default":"episodic"},"tags":{"type":"string","title":"Tags","description":"Comma-separated or JSON array of tags","nullable":true},"importance":{"type":"number","maximum":10.0,"minimum":0.05,"title":"Importance","description":"Base importance score","default":5.0},"valence":{"type":"integer","maximum":127.0,"minimum":-128.0,"title":"Valence","description":"Affective valence","default":0},"arousal":{"type":"integer","maximum":255.0,"minimum":0.0,"title":"Arousal","description":"Affective arousal","default":0},"namespace":{"type":"string","title":"Namespace","description":"Target namespace partition","nullable":true},"relative_paths":{"type":"string","title":"Relative Paths","description":"Optional JSON array of relative paths for folder uploads","nullable":true},"wait":{"type":"boolean","title":"Wait","description":"Await background task completion synchronously","default":false}},"type":"object","required":["files"],"title":"Body_rememberUpload"},"CognitiveProfile":{"type":"string","enum":["Balanced","FactualPrecision","CreativeExploration","DebugDiagnostic"],"title":"CognitiveProfile","description":"Thalamic cognitive retrieval profile presets."},"CompactionResult":{"properties":{"tier":{"type":"string","title":"Tier"},"before_count":{"type":"integer","title":"Before Count"},"after_count":{"type":"integer","title":"After Count"},"tombstones_removed":{"type":"integer","title":"Tombstones Removed"},"bytes_reclaimed":{"type":"integer","title":"Bytes Reclaimed"},"duration_ms":{"type":"number","title":"Duration Ms"}},"type":"object","required":["tier","before_count","after_count","tombstones_removed","bytes_reclaimed","duration_ms"],"title":"CompactionResult","description":"Compaction result from tier vacuuming."},"DeleteOperationResponse":{"properties":{"id":{"anyOf":[{"type":"string","nullable":true},{"type":"integer","nullable":true}],"title":"Id","description":"Target resource identifier"},"status":{"type":"string","title":"Status","default":"tombstoned","example":"tombstoned"}},"type":"object","title":"DeleteOperationResponse","description":"Generic deletion or tombstone response."},"DreamRequestModel":{"properties":{"mode":{"type":"string","pattern":"^(deep|light|rem|reflect|dream)$","title":"Mode","default":"deep"},"namespace":{"type":"string","title":"Namespace","nullable":true}},"type":"object","title":"DreamRequestModel","description":"Request model for sleep consolidation rest cycle."},"DreamResponse":{"properties":{"status":{"type":"string","title":"Status","default":"completed"},"mode":{"type":"string","title":"Mode","default":"deep"}},"additionalProperties":true,"type":"object","title":"DreamResponse","description":"Generative rest and consolidation outcome."},"EdgeType":{"type":"string","enum":["HEBBIAN","SYNAPTIC","ONTOLOGICAL","TEMPORAL","COACTIVATION"],"title":"EdgeType","description":"Canonical edge relationship type in cognitive memory topology."},"ErrorDetail":{"properties":{"code":{"type":"string","title":"Code","description":"Ebb error taxonomy code","example":"EBB-100-AUTH-001"},"message":{"type":"string","title":"Message","description":"Human-readable explanation","example":"Missing or invalid authentication credentials"},"details":{"anyOf":[{"additionalProperties":true,"type":"object","nullable":true},{"items":{},"type":"array","nullable":true}],"title":"Details","description":"Machine-readable structured diagnostics"}},"type":"object","required":["code","message"],"title":"ErrorDetail","description":"Detailed error taxonomy payload matching EbbServerError.to_dict()."},"ErrorResponse":{"properties":{"code":{"type":"string","title":"Code","description":"Ebb error taxonomy code","default":"EBB-500-INTERNAL","example":"EBB-100-AUTH-001"},"message":{"type":"string","title":"Message","description":"Human-readable error explanation","default":"","example":"Missing or invalid authentication credentials"},"details":{"anyOf":[{"additionalProperties":true,"type":"object","nullable":true},{"items":{},"type":"array","nullable":true}],"title":"Details","description":"Machine-readable structured diagnostics"},"detail":{"type":"string","title":"Detail","description":"Error detail string matching FastAPI error convention","nullable":true},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetail"},{"additionalProperties":true,"type":"object","nullable":true}],"title":"Error","description":"Structured error diagnostic information"}},"type":"object","title":"ErrorResponse","description":"Standardized error envelope returned across all HTTP transports."},"FederatedRecallCandidate":{"properties":{"id":{"anyOf":[{"type":"string","nullable":true},{"type":"integer","nullable":true}],"title":"Id"},"namespace":{"type":"string","title":"Namespace","nullable":true},"score":{"type":"number","title":"Score","nullable":true},"content":{"type":"string","title":"Content","nullable":true}},"additionalProperties":true,"type":"object","title":"FederatedRecallCandidate","description":"Federated engram candidate across namespace partitions."},"FederatedRecallRequest":{"properties":{"query":{"type":"string","minLength":1,"title":"Query","description":"Natural language query string for memory recall."},"namespaces":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"}],"title":"Namespaces","description":"Explicit list of target namespaces or 'granted' for dynamic auto-discovery. Default when omitted: granted."},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","description":"Maximum combined candidate engrams to return after fusion.","default":10},"profile":{"type":"string","title":"Profile","description":"Cognitive retrieval profile (e.g., BALANCED, FACTUAL_PRECISION, CREATIVE_EXPLORATION).","default":"BALANCED"},"min_score":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Min Score","description":"Minimum salience threshold score for candidate filtering.","default":0.0},"domain":{"type":"string","title":"Domain","description":"Optional domain or tag filter for domain-specific recall.","nullable":true},"salience_weights":{"additionalProperties":{"type":"number"},"type":"object","title":"Salience Weights","description":"Optional per-namespace salience bias weights override.","nullable":true}},"type":"object","required":["query"],"title":"FederatedRecallRequest","description":"Federated recall request model defining multi-namespace retrieval query parameters."},"GraphEdge":{"properties":{"from_id":{"type":"string","title":"From Id"},"to_id":{"type":"string","title":"To Id"},"weight":{"type":"number","title":"Weight","default":1.0},"co_activations":{"type":"integer","title":"Co Activations","default":1},"edge_type":{"allOf":[{"$ref":"#/components/schemas/EdgeType"}],"default":"HEBBIAN"}},"type":"object","required":["from_id","to_id"],"title":"GraphEdge","description":"Hebbian or associative edge connecting two memory engrams."},"GraphNode":{"properties":{"id":{"type":"string","title":"Id"},"tier":{"type":"string","title":"Tier","default":"semantic"},"text_preview":{"type":"string","title":"Text Preview","default":""},"importance":{"type":"number","title":"Importance","default":5.0},"valence":{"type":"integer","title":"Valence","default":0},"arousal":{"type":"integer","title":"Arousal","default":0},"timestamp_ms":{"type":"integer","title":"Timestamp Ms","default":0},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["id"],"title":"GraphNode","description":"Graph node representing a memory engram."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IntrospectResponse":{"properties":{"status":{"type":"string","title":"Status","default":"ok"}},"additionalProperties":true,"type":"object","title":"IntrospectResponse","description":"Cognitive state introspection summary."},"MelExecuteRequest":{"properties":{"script":{"type":"string","minLength":1,"title":"Script","description":"MEL-001 statement or multi-statement script"},"namespace":{"type":"string","title":"Namespace","description":"Target namespace partition","nullable":true}},"type":"object","required":["script"],"title":"MelExecuteRequest","description":"Payload for executing a MEL-001 (Memory Engine Language) script."},"MelExecuteResponse":{"properties":{"status":{"type":"string","title":"Status","description":"Overall script execution status ('OK' or 'ERROR')","default":"OK"},"total_elapsed_ms":{"type":"number","title":"Total Elapsed Ms","description":"Total execution latency in milliseconds","default":0.0},"statements":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Statements","description":"Per-statement execution results"},"combined_output":{"type":"string","title":"Combined Output","description":"Formatted REPL transcript output","default":""},"namespace":{"type":"string","title":"Namespace","description":"Executed namespace partition","default":"default","nullable":true}},"additionalProperties":true,"type":"object","title":"MelExecuteResponse","description":"Execution result for a MEL-001 script."},"MemoryGraphResponse":{"properties":{"memory_id":{"type":"string","title":"Memory Id","nullable":true},"nodes":{"items":{"$ref":"#/components/schemas/GraphNode"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/GraphEdge"},"type":"array","title":"Edges"},"total_nodes":{"type":"integer","title":"Total Nodes","default":0},"offset":{"type":"integer","title":"Offset","default":0},"limit":{"type":"integer","title":"Limit","default":200},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","title":"MemoryGraphResponse","description":"Topological graph response."},"MemoryOperationResponse":{"properties":{"id":{"anyOf":[{"type":"string","nullable":true},{"type":"integer","nullable":true}],"title":"Id","description":"Engram identifier"},"memory_id":{"anyOf":[{"type":"string","nullable":true},{"type":"integer","nullable":true}],"title":"Memory Id","description":"Engram identifier alias"},"status":{"type":"string","title":"Status","description":"Operation status","default":"stored","example":"stored"}},"type":"object","title":"MemoryOperationResponse","description":"Engram mutation confirmation response."},"MemoryRow":{"properties":{"id":{"type":"string","title":"Id"},"memory_uuid":{"type":"string","title":"Memory Uuid","description":"Canonical 128-bit engram id (UUID-formatted) from the engine","nullable":true},"text":{"type":"string","title":"Text"},"text_preview":{"type":"string","title":"Text Preview","default":""},"tier":{"type":"string","title":"Tier","default":"semantic"},"source":{"type":"string","title":"Source","default":"direct"},"importance":{"type":"number","title":"Importance","default":5.0},"valence":{"type":"integer","title":"Valence","default":0},"arousal":{"type":"integer","title":"Arousal","default":0},"cognitive_mass":{"type":"number","title":"Cognitive Mass","default":1.0},"storage_strength":{"type":"number","title":"Storage Strength","default":1.0},"timestamp_ms":{"type":"integer","title":"Timestamp Ms","default":0},"recall_count":{"type":"integer","title":"Recall Count","default":0},"tombstoned":{"type":"boolean","title":"Tombstoned","default":false},"suppressed":{"type":"boolean","title":"Suppressed","default":false},"pinned":{"type":"boolean","title":"Pinned","default":false},"resolved":{"type":"boolean","title":"Resolved","default":false},"consolidated":{"type":"boolean","title":"Consolidated","default":false},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"created_at":{"type":"string","title":"Created At","default":""},"namespace":{"type":"string","title":"Namespace","default":"default"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["id","text"],"title":"MemoryRow","description":"Row model for memory table view."},"MemoryStatusResponse":{"properties":{"status":{"type":"string","title":"Status","nullable":true},"engine":{"type":"string","title":"Engine","default":"ebb-server"},"version":{"type":"string","title":"Version","default":"0.2.0"}},"additionalProperties":true,"type":"object","title":"MemoryStatusResponse","description":"Engine health and memory tier capacity status."},"MemoryTableResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MemoryRow"},"type":"array","title":"Items","description":"Paginated memory row items"},"rows":{"items":{"$ref":"#/components/schemas/MemoryRow"},"type":"array","title":"Rows","description":"Alias for items (backward compatibility)"},"total":{"type":"integer","title":"Total","description":"Total count of matching records","default":0},"total_count":{"type":"integer","title":"Total Count","description":"Alias for total (backward compatibility)","default":0},"has_more":{"type":"boolean","title":"Has More","description":"Whether more pages are available","default":false},"next_cursor":{"type":"string","title":"Next Cursor","description":"Opaque base64 cursor for next page","nullable":true},"page":{"type":"integer","title":"Page","description":"Page index (legacy pagination)","default":0},"page_size":{"type":"integer","title":"Page Size","description":"Items per page (legacy pagination)","default":25},"tier_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Tier Counts","description":"Counts by tier"},"tombstone_ratios":{"additionalProperties":{"type":"number"},"type":"object","title":"Tombstone Ratios","description":"Tombstone ratios by tier"}},"type":"object","title":"MemoryTableResponse","description":"Paginated table response for memory browser with cursor support."},"MemoryTier":{"type":"string","enum":["working","episodic","semantic","procedural"],"title":"MemoryTier","description":"Memory tier taxonomy in cognitive hierarchy."},"MemoryVectorResponse":{"properties":{"memory_id":{"anyOf":[{"type":"string"},{"type":"integer"}],"title":"Memory Id","description":"Engram identifier"},"dimension":{"type":"integer","title":"Dimension","description":"Vector dimension","default":0,"example":384},"vector":{"items":{"type":"number"},"type":"array","title":"Vector","description":"Dense vector embedding"},"values":{"items":{"type":"number"},"type":"array","title":"Values","description":"Raw embedding values"},"quantized":{"type":"boolean","title":"Quantized","default":false}},"additionalProperties":true,"type":"object","required":["memory_id"],"title":"MemoryVectorResponse","description":"Engram vector representation and quantization metadata."},"PurgeResultResponse":{"properties":{"memory_id":{"type":"string","title":"Memory Id","description":"UUID of the purged memory engram"},"namespace_id":{"type":"string","title":"Namespace Id","description":"Namespace partition containing engram"},"found":{"type":"boolean","title":"Found","description":"Whether the target engram existed in storage"},"purged_at_ms":{"type":"integer","title":"Purged At Ms","description":"Epoch millisecond timestamp of physical destruction"},"payload_bytes_zeroed":{"type":"integer","title":"Payload Bytes Zeroed","description":"Slab vector float bytes overwritten with 0","default":0},"text_bytes_zeroed":{"type":"integer","title":"Text Bytes Zeroed","description":"Off-heap text bundle bytes overwritten with 0","default":0},"inline_text_dropped":{"type":"boolean","title":"Inline Text Dropped","description":"Whether inline slab text buffer was cleared","default":false},"hebbian_edges_removed":{"type":"integer","title":"Hebbian Edges Removed","description":"Co-activation graph edges detached","default":0},"temporal_unlinked":{"type":"boolean","title":"Temporal Unlinked","description":"Whether temporal predecessor/successor links were spliced","default":false},"entity_links_removed":{"type":"integer","title":"Entity Links Removed","description":"Entity hypergraph references unlinked","default":0},"hyperedges_removed":{"type":"integer","title":"Hyperedges Removed","description":"Higher-order relation hyperedges dropped","default":0},"wal_recorded":{"type":"boolean","title":"Wal Recorded","description":"Whether WAL_EVENT_PURGE was flushed to append log","default":false},"retained_header_fields":{"items":{"type":"string"},"type":"array","title":"Retained Header Fields","description":"Engram metadata fields retained in tombstone header"},"unreachable_copies":{"type":"integer","title":"Unreachable Copies","description":"Ephemeral cache or scratch copies verified unreachable","default":0},"disclosure":{"type":"string","title":"Disclosure","description":"Forensic audit compliance notice","default":""}},"type":"object","required":["memory_id","namespace_id","found","purged_at_ms"],"title":"PurgeResultResponse","description":"Irreversible physical purge audit report."},"RecallRequestModel":{"properties":{"query":{"type":"string","minLength":1,"title":"Query"},"vector":{"items":{"type":"number"},"type":"array","title":"Vector","nullable":true},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","default":5},"profile":{"allOf":[{"$ref":"#/components/schemas/CognitiveProfile"}],"default":"Balanced"},"min_score":{"type":"number","title":"Min Score","nullable":true},"domain":{"type":"string","title":"Domain","nullable":true},"namespace":{"type":"string","title":"Namespace","nullable":true},"reinforce":{"type":"boolean","title":"Reinforce","default":true},"ablation":{"additionalProperties":true,"type":"object","title":"Ablation","nullable":true},"scoring_mode":{"type":"string","title":"Scoring Mode","nullable":true}},"type":"object","required":["query"],"title":"RecallRequestModel","description":"Request model for memory retrieval."},"RecallResponseModel":{"properties":{"query":{"type":"string","title":"Query","description":"Search query","default":""},"count":{"type":"integer","title":"Count","description":"Retrieved candidate count","default":0},"results":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Results","description":"Retrieved candidate engrams"},"profile":{"type":"string","title":"Profile","description":"Retrieval profile used","default":"Balanced"},"namespace":{"type":"string","title":"Namespace","description":"Queried namespace partition","nullable":true}},"additionalProperties":true,"type":"object","title":"RecallResponseModel","description":"Retrieved candidate engrams and query diagnostics."},"ReflectRequestModel":{"properties":{"namespace":{"type":"string","title":"Namespace","nullable":true}},"type":"object","title":"ReflectRequestModel","description":"Request model for self-model reflection and crystallization."},"ReflectResponse":{"properties":{"status":{"type":"string","title":"Status","default":"reflected"}},"additionalProperties":true,"type":"object","title":"ReflectResponse","description":"Self-model reflection output."},"ReinforceRequestModel":{"properties":{"memory_id":{"anyOf":[{"type":"string"},{"type":"integer"}],"title":"Memory Id"},"delta":{"type":"number","maximum":1.0,"minimum":-1.0,"title":"Delta","default":0.1},"namespace":{"type":"string","title":"Namespace","nullable":true}},"type":"object","required":["memory_id"],"title":"ReinforceRequestModel","description":"Request model for Hebbian synaptic reinforcement."},"ReinforceResponse":{"properties":{"status":{"type":"string","title":"Status","default":"reinforced","example":"reinforced"},"memory_id":{"anyOf":[{"type":"string","nullable":true},{"type":"integer","nullable":true}],"title":"Memory Id","description":"Reinforced engram ID"},"delta":{"type":"number","title":"Delta","description":"Applied delta","default":0.1}},"type":"object","title":"ReinforceResponse","description":"Synaptic weight reinforcement confirmation."},"RememberRequestModel":{"properties":{"content":{"type":"string","maxLength":65536,"minLength":1,"title":"Content"},"vector":{"items":{"type":"number"},"type":"array","title":"Vector","nullable":true},"tier":{"allOf":[{"$ref":"#/components/schemas/MemoryTier"}],"default":"semantic"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","nullable":true},"importance":{"type":"number","maximum":10.0,"minimum":0.0,"title":"Importance","default":5.0},"valence":{"type":"integer","maximum":127.0,"minimum":-128.0,"title":"Valence","default":0},"arousal":{"type":"integer","maximum":255.0,"minimum":0.0,"title":"Arousal","default":0},"timestamp_ms":{"type":"integer","minimum":0.0,"title":"Timestamp Ms","nullable":true},"session_id":{"anyOf":[{"type":"integer","nullable":true},{"type":"string","nullable":true}],"title":"Session Id"},"namespace":{"type":"string","title":"Namespace","nullable":true},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","nullable":true}},"type":"object","required":["content"],"title":"RememberRequestModel","description":"Request model for storing a cognitive memory."},"UpdateMemoryRequest":{"properties":{"text":{"type":"string","title":"Text","nullable":true},"tier":{"type":"string","title":"Tier","nullable":true},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","nullable":true},"importance":{"type":"number","maximum":10.0,"minimum":1.0,"title":"Importance","nullable":true},"valence":{"type":"integer","maximum":127.0,"minimum":-128.0,"title":"Valence","nullable":true},"arousal":{"type":"integer","maximum":255.0,"minimum":0.0,"title":"Arousal","nullable":true},"pinned":{"type":"boolean","title":"Pinned","nullable":true},"resolved":{"type":"boolean","title":"Resolved","nullable":true}},"type":"object","title":"UpdateMemoryRequest","description":"Request model for updating an existing memory trace."},"VacuumRequest":{"properties":{"tier":{"type":"string","title":"Tier","description":"Memory tier ('episodic', 'semantic', 'procedural')","nullable":true,"example":"episodic"},"namespace":{"type":"string","title":"Namespace","description":"Target namespace partition","nullable":true,"example":"default"}},"type":"object","title":"VacuumRequest","description":"Payload for triggering slab compaction and tombstone vacuuming."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WanderRequestModel":{"properties":{"idle_duration_secs":{"type":"integer","maximum":3600.0,"minimum":1.0,"title":"Idle Duration Secs","default":60},"namespace":{"type":"string","title":"Namespace","nullable":true}},"type":"object","title":"WanderRequestModel","description":"Request model for Default Mode Network wandering."},"WanderResponse":{"properties":{"status":{"type":"string","title":"Status","default":"wandered"}},"additionalProperties":true,"type":"object","title":"WanderResponse","description":"Default Mode Network wandering traversal outcome."},"WhyNotRequestModel":{"properties":{"memory_id":{"anyOf":[{"type":"string"},{"type":"integer"}],"title":"Memory Id"},"query":{"type":"string","minLength":1,"title":"Query"},"namespace":{"type":"string","title":"Namespace","nullable":true}},"type":"object","required":["memory_id","query"],"title":"WhyNotRequestModel","description":"Request model for counterfactual retrieval explanation."},"WhyNotResponse":{"properties":{"memory_id":{"anyOf":[{"type":"string","nullable":true},{"type":"integer","nullable":true}],"title":"Memory Id"},"query":{"type":"string","title":"Query","nullable":true},"dropped":{"type":"boolean","title":"Dropped","default":true},"reason":{"type":"string","title":"Reason","nullable":true}},"additionalProperties":true,"type":"object","title":"WhyNotResponse","description":"Counterfactual drop explanation for a candidate engram."},"ResponseForgetmemory":{"anyOf":[{"$ref":"#/components/schemas/DeleteOperationResponse"},{"$ref":"#/components/schemas/PurgeResultResponse"}],"title":"Response Forgetmemory"},"StreamEventsResponse200":{"type":"object","properties":{"data":{"type":"string"},"event":{"type":"string"},"id":{"type":"string"},"retry":{"type":"integer","minimum":0}},"title":"StreamEventsResponse200"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT bearer token, or a development test token when test auth is enabled. Send Authorization: Bearer <token>."},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Inbound client API key sent in the X-API-Key header. Protected routes accept this instead of a bearer token."}},"responses":{"ClientError":{"description":"The request was rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"tags":[{"name":"Health","description":"Liveness at GET /healthz and readiness at GET /readyz."},{"name":"Memory","description":"Cognitive memory storage, fused 6-phase scoring retrieval, and synaptic reinforcement."},{"name":"Tasks","description":"Background document and folder ingestion task lifecycle, progress inspection, and cancellation ."},{"name":"Events","description":"Server-Sent Events (SSE) memory lifecycle streaming with Last-Event-ID cursor replay."}]}
