Orchestrata Ultimate › Plans › spec-audit › J-standards-arch

Cluster J — Standards & Architecture (SPEC-097 … SPEC-101)

Source: plans/spec-audit/J-standards-arch.md at 8a2cb42ad · last changed 2026-07-27 · first committed 2026-07-04 · 305 lines.

Prose pending.

Plan text

Cluster J — Standards & Architecture (SPEC-097 … SPEC-101)

Investigation agent J. READ-ONLY audit of src/orchestrata_ultimate/ against the five cross-cutting standards/architecture specs. Evidence by code only (checklist - [ ] markers ignored per _METHOD.md). These are conventions enforced across the whole codebase, so conformance is judged by systemic patterns + the standards/check-deps gates, not one module.

Headline: the AST constitutional gates are green — standards → 0 Key-Rule violations, check-deps --include-tests → all imports declared. The real remaining work is not in those gates; it is that three of these specs (098, 099, and large parts of 100/097) describe an aspirational SaaS-shaped system (REST API, MFA/OAuth/encryption, structlog+OpenTelemetry, mock-based test templates) that the project deliberately is not. The project is a local multi-agent dev tool: WebSocket JSON-RPC + gRPC transports, JWT+PAM++ auth, stdlib-JSON logging, real-infra no-mock tests. So the dominant finding is divergence + unbuilt aspirational capability, not half-finished ports.


SPEC-097 Testing Standards — PARTIAL (core enforcement DONE; spec text largely DIVERGENT)


SPEC-098 API Standards — DIVERGENCE / GAP (system has no REST API; interfaces are WS JSON-RPC + gRPC + minimal FastAPI health)


SPEC-099 Security & Auth Framework — GAP (only JWT token-auth + PAM++ authz + basic audit exist; the framework is unbuilt)


SPEC-100 Logging & Exception Handling — PARTIAL (structured logging + BaseError + circuit-breaker DONE; OTel tracing, retry/bulkhead, unified taxonomy, /metrics endpoint MISSING; structlog+UltimateBaseError are DIVERGENCES)


SPEC-101 Ultimate Architecture — DONE (structural/constitutional invariants hold; component feature-depth delegated to per-cluster specs)


Cluster summary table

Spec Class Effort Hard deps
SPEC-097 Testing Standards PARTIAL (enforce DONE; spec text DIVERGENT) S Constrains ALL clusters (T1–T15); none inbound
SPEC-098 API Standards DIVERGENCE / GAP (no REST API; WS-JSONRPC+gRPC+FastAPI-health) S (rewrite) / L (build REST) SPEC-014, 099, 100, VizInt gRPC
SPEC-099 Security & Auth GAP (only JWT+PAM++ authz+basic audit; MFA/OAuth/crypto/lockout unbuilt) M (API-key+audit-chain slice) / L (full) SPEC-014 (owns JWT), 098, governance, 100
SPEC-100 Logging & Exceptions PARTIAL (logging+BaseError+CB DONE; OTel/retry/bulkhead//metrics missing; structlog+UltimateBaseError diverge) M Constrains ALL clusters (logging+error conventions); SPEC-098/099
SPEC-101 Ultimate Architecture DONE (constitutional invariants hold; component depth in other clusters) — Umbrella over ALL clusters

Note on gates: standards (0 violations) and check-deps (clean) are green — but they gate structure/undeclared-imports, not the aspirational capabilities above. Two declared- but-unused dependency families (structlog, opentelemetry-*) pass check-deps yet represent unbuilt SPEC-100 features — a blind spot the gates do not catch.