Quick links:
- Internal contract (ACS β CEO): ./internal.md
- Provider contract (ACS β Providers): ./provider.md
- KV Policy contract: ../kv-policy.md
- HCS Streaming API (draft): ../hcs/api.md
Orchestration API Components β
Quick links
- Contracts Overview: ../../contracts/
- Schemas Index (v0): ../../contracts/schemas.md
- Conformance Matrix: ../../contracts/conformance.md
Overview: This directory contains the complete API documentation suite for Mnemoverse's orchestration layer. Each API serves a distinct purpose in the cognitive architecture, from external client integration to internal component communication and provider standardization.
Architecture Overview β
The orchestration layer exposes multiple API interfaces to serve different stakeholders and use cases:
API Components β
1. HTTP REST API β
Purpose: External client integration
Audience: Frontend developers, API consumers, external systems
Protocol: HTTP/REST with JSON payloads
- Endpoint:
POST /orchestration/context
- Function: Entry point for external systems to request orchestrated context
- Features: Batch processing, structured errors, idempotency
- Status: Draft (v0 - streaming disabled)
2. Internal API β
Purpose: Component-to-component communication
Audience: Orchestration component developers
Protocol: Internal JSON message passing
- Interfaces: CEO β ACS β HCS
- Function: Coordinates intent, budgets, context assembly, and delivery
- Features: Rich metadata, error recovery options, performance metrics
- Status: Draft (v0 specification)
3. Provider API β
Purpose: Quick integration reference for knowledge providers
Audience: Provider developers (L1/L2/L4 implementers)
Protocol: Standardized JSON request/response
- Function: How ACS fetches candidates from knowledge layers
- Features: Timeout handling, partial responses, privacy controls
- Examples: Concrete request/response scenarios with error cases
- Status: Draft with working examples
4. Provider Specification β
Purpose: Comprehensive technical specification
Audience: System architects, integration engineers
Protocol: Detailed architectural patterns and implementations
- Scope: 1700+ lines of detailed specification
- Content: Architecture philosophy, quality frameworks, error handling
- Features: Performance optimization, monitoring, future extensions
- Status: Published (PhD-level technical depth)
Integration Patterns β
For External Clients β
// 1. Use HTTP REST API
const response = await fetch('/orchestration/context', {
method: 'POST',
body: JSON.stringify({
version: 'v0',
intent: 'explain_authentication_patterns',
budgets: { tokens_max: 3000, time_ms: 1200 }
})
});
For Internal Components β
// 2. Use Internal API schemas
interface CEORequest {
version: 'v0';
intent: string;
budgets: { tokens_max: number; time_ms: number };
request_id: string;
}
For Knowledge Providers β
// 3. Implement Provider API interface
interface ProviderResponse {
request_id: string;
candidates: Fragment[];
warnings: Warning[];
latency_ms: number;
}
Quick Start Guide β
1. External Integration β
- Start with
http.md
for REST endpoint details - Review request/response schemas in
Contracts β Schemas
- Test with curl examples provided in documentation
2. Component Development β
- Review
internal.md
for CEOβACSβHCS contracts - Understand error handling patterns and recovery strategies
- Implement version handling (
v0
currently) - Reference catalogs:
../warnings.md
,../errors.md
,../retry-actions.md
3. Provider Implementation β
- Begin with
provider.md
for quick reference - Deep dive into
provider-specification.md
for architecture - Follow timeout and privacy handling requirements
API Versioning Strategy β
Current Version: v0 β
- Status: Experimental, subject to breaking changes
- Scope: Batch processing only (no streaming)
- Stability: Core patterns established, details may evolve
Version Evolution Path β
- v0 β v0.1: Add L4 hints, refine KV policies
- v0.1 β v0.2: Introduce streaming capabilities (SSE/WebSocket)
- v0.2 β v1.0: Stabilize contracts, comprehensive test coverage
Cross-References β
Related Documentation β
- Architecture:
../README.md
- Orchestration overview - Walkthrough:
../../walkthrough.md
- End-to-end examples - Components:
../ceo/README.md
,../acs/README.md
,../hcs/README.md
Implementation Guides β
- Schemas:
/architecture/contracts/schemas
- JSON schema definitions - Examples: Each API document contains concrete examples
- Error Codes:
../errors.md
- Standard error responses - Warnings:
../warnings.md
- Retry/Recovery Actions:
../retry-actions.md
TODO: Future Development β
High Priority β
- [ ] Complete v0 HTTP API implementation
- Finalize error response formats
- Add comprehensive request validation
- Document authentication/authorization patterns
Medium Priority β
- [ ] Streaming API design (v0.2)
- SSE/WebSocket endpoint specifications
- Progressive context delivery patterns
- Client capability negotiation
Low Priority β
- [ ] Advanced features
- GraphQL query interface exploration
- Multi-tenant API considerations
- Rate limiting and quota management
Getting Started β
- Choose your integration path based on your role
- Review the relevant API documentation
- Study the examples provided in each document
- Test with provided schemas in
../schemas/
- Refer to walkthrough for end-to-end understanding
For questions or clarifications, refer to the comprehensive provider-specification.md
or the architectural walkthrough.md
.