13 public engineering repositories + hub

Every repo, engine,
and byte layout.

Strata spans 13 public Apache-2.0 repositories written in Go, TypeScript, Python, Protobuf, and C across 5 connected planes and 734 test suites.

13 Public Apache-2.0 repos
734 Test suites (unit · race · chaos)
5 Connected infrastructure planes
5 Languages (Go · TS · Py · Proto · C)

Codebase inventory

13 Public Repositories.
Filter by layer.

Filter by plane or storage/federation role across all 13 public repositories.

Language Distribution

Go 84.6% · TS 10.4% · Python 4.1% · Proto/C 0.9%
Go · Core & storage planes TypeScript / TSX · UIs & AWS CDK Python · Agent & Nightwatch Protobuf & C · Wire & FUSE
Showing 13 of 13 repositories
monofsCore · Store

HRW-sharded virtual monorepo (FUSE & headless NutsDB overlay), Pebble metastore, Zoekt search, OCI v2 registry, Bazel AC/CAS, CI pipeline workers, and Parquet+Bluge telemetry logengine.

GoCProtobufTS
247 test suites monofs ↗
guardianCore · Deploy

Zero-DB declarative control plane compiling partition/intent/asset DAGs into CAS queues, reconciled by pull-based GCP (OpenTofu), AWS (CDK), K8s, Docker, and local pushers.

GoTypeScriptCAS DAG
223 test suites guardian ↗
doctorCore · Observe

Pre-WAL privacy OTLP backend, PromQL/LogQL/TraceQL/SQL query surface, Sentinel alert engine, leader-leased recording rules, and 50k-pusher / 150k-target federation controller.

GoTypeScriptOTLP
192 test suites doctor ↗
agentCore · Assist

FastAPI + React platform assistant with Otto (SRE diagnostics + confirm=true mutations), Steve (MonoFS overlay diffs), 50+ tools, and Nightwatch shadow-mode SQLite ledger.

PythonTypeScriptFastAPI
19 test suites agent ↗
lbCore · Traffic

Stateless L4 registry (:15051), TCP proxy (2s snapshot sync, passive 3-dial breaker, zero-conn drain), Kubernetes Endpoints agent with multi-port matching, and PROXY protocol v1.

GoProtobufL4 TCP
8 test suites lb ↗
kvsStorage · Raft KV

Raft-replicated versioned KV store with optimistic concurrency, batch revisions, prefix-indexed ListDir, watch streams, hot/archive offload, and fail-closed audit logging.

GoProtobufRaft
9 test suites kvs ↗
packagerStorage · Archives

WORM Indexed-Tail archives (zstd + per-file nonce ChaCha20-Poly1305) with O(1) 2-request S3/GCS random access, PathIndex prefix dedup (5× RAM savings), and PKGRv2 envelopes.

GoS3 · GCS · Local
8 test suites packager ↗
cfgStorage · Config

Two-tier versioned config store keeping the newest 5 SHAs in Raft KVS and compacting cold revisions into encrypted packager archives while retaining lightweight manifests.

GoKVS + Packager
1 test suite cfg ↗
sqlagregatorFederation · SQL

Two-phase federated SQL planner, endpoint selector with coverage-gap validation, pure-Go hash merge, and native drivers for DuckDB, ClickHouse, BigQuery, Omni, and Logs Insights.

Go6 sub-modules
14 test suites sqlagregator ↗
awsFederation · Cloud

TypeScript CDK project deploying MonoFS (Router, Server, Fetcher), Guardian, ALB/NLB networking, Cognito SSO, and ECS Fargate observed pushers cleanly to AWS.

TypeScriptCDK · ECS · ALB
10 test suites aws ↗
k8s-topFederation · K8s

Zero-persistence cluster-wide Kubernetes metrics.k8s.io poller exporting OTLP pod/container CPU and memory gauges tagged with Guardian partition, intent, and asset labels.

GoOTLP/gRPC
Stateless k8s-top ↗
tlsxSecurity · PKI

Hot-reloading TLS/mTLS toolkit shared by MonoFS, Guardian, Doctor, LB-Edge, and KVS: mtime leaf rotation without restarts, VerifyPeerSPIFFE URI SAN checks, and tlsx CLI.

GoSPIFFE mTLS
3 test suites tlsx ↗
strataBootstrap · Umbrella

Umbrella repository, single-command kind + Authentik SSO bootstrap (./scripts/bootstrap.sh up), production hardening guide, architecture docs, and example onboarding apps.

TypeScriptGoShell
Front door strata ↗

01 · MonoFS (247 test suites)

Virtual monorepo &
storage fabric.

Separates metadata (monofs-server Pebble DB), content (monofs-fetcher + Packager S3/GCS), and coordination (monofs-router) while embedding KVS, Zoekt, OCI v2, Bazel cache, and Doctor's logengine.

Client Data Path

Direct HRW reads & NutsDB overlays

monofs-client builds a local Rendezvous ring from router topology and routes Lookup, ReadDir, and Read directly to storage nodes without hitting the router.

  • Local edits stay isolated in NutsDB; --headless serves the identical overlay over session.sock with no /dev/fuse or SYS_ADMIN.
  • monofs-session push groups commits per repo and opens PRs/MRs; partial multi-repo failures cleanly revert commits rather than force-pushing.
Shared Fabric Planes

Reserved namespaces & logengine

Three reserved namespaces — guardian/, guardian-system/, and doctor/ — run versioned CAS storage, Parquet+Bluge telemetry chunks, and SQL federation inside the same cluster.

  • OCI v2 registry (:5000) and Bazel AC/CAS (:9092) reuse MonoFS replication and cluster tokens.
  • monofs-pipeline-worker executes affected DAG builds filtered through a strict safe env allowlist.

02 · Guardian (223 test suites)

Zero-DB intent
control plane.

Compiles YAML Partition and Intent manifests into dependency DAGs, detects drift, and dispatches tasks through CAS lease files with no inbound worker sockets.

Intent State Machine

Compile → Check → Diff → Apply → Archive

Every mutation carries a MutationContext (PrincipalID, Reason, CorrelationID) and writes immutable manifests/logs under /.archive/<partition>/<intent>/.

Invalid→ Blocked→ Ready→ Checking→ Diffing→ Applying (5m lease)→ Healthy/ DriftedLocked/ Observed (read-only)
  • 5 Native Pushers: GCP (OpenTofu + Cloud Asset Inventory), AWS (TypeScript CDK + CloudFormation), Kubernetes, Docker, and Local server.
  • Virtual Sets & Sticky Exclusions: guardianctl sets unassign writes sticky exclusions so manifest reconciles never silently re-attach removed partitions.

03 · Doctor (192 test suites)

Privacy funnel &
unified query API.

Ingests OTLP traces, logs, and metrics through a pre-WAL sanitization funnel into MonoFS logengine, paired with Sentinel alerting and 150k-target multi-cloud federation.

Ingest & Alerting

43.8k rec/s OTLP & Sentinel rules

doctor-ingest scrubs keys and HMAC-tokenizes PII/PCI before writing to per-signal fsync WAL buffers. doctor-rules elects a leader via 30s MonoFS CAS lease, while Sentinel fingerprints PromQL/Guardian/AWS alerts for Nightwatch.

Query & Federation

Grafana native + DuckDB SQL

Exposes Prometheus, Loki, Tempo, and POST /v1/sql/query with oauthPassThru ACL checks. Singleflight deduplication serves 1,005 ops/s at p95 22 ms (1,888 ops/s at 2,000 offered RPS).

04 · Agent & Nightwatch (19 test suites)

Dual-persona tool loop & shadow triage

Routes turns between Otto (50+ live tools across Guardian/Doctor/MonoFS/LB-Edge behind confirm=true) and Steve (workspace-only diffs in MonoFS overlay, blocked from mutating infrastructure). Nightwatch runs read-only on :8091, polling Sentinel every 30s into an append-only hash-chained SQLite ledger.

05 · LB-Edge (8 test suites)

Zero-DB L4 TCP routing & passive breakers

Watches Kubernetes Endpoints annotations (guardian.intent/expose, external-port) via k8s-agent, selecting matching Service ports on multi-port Pods. The TCP proxy syncs :18081/services every 2s, trips a passive breaker after 3 dial failures, and drains removed backends cleanly to zero connections.

06 · sqlagregator (14 test suites)

Two-phase
federated SQL.

A zero-driver core library (pulling only yaml.v3) with separate Go modules for each cloud dialect and pure-Go hash aggregation in the coordinator.

Execution Pipeline

AST → Two-Phase Planner → Dialect Pushdown → Pure-Go Merge

SELECT AST→ Catalog + Time-Shard Prune→ Coverage Check→ 5 Dialect Emitters→ Pure-Go Hash Merge
  • Driver nuances handled cleanly: CloudWatch Omni retries session-name collisions with a process-unique suffix; Logs Insights emits FROM_UNIXTIME(...) windows because @timestamp is a string; ClickHouse binds attributes['guardian.partition'].
  • Fail-closed governance: MonoFS router enforces --sql-require-policy (default true) and fails with coverage_gap if a healthy shard is excluded without -allow-partial.

07 · Reusable Go storage crates

KVS, Packager & cfg.

kvs (9 test suites)

Raft versioned KV

Optimistic CAS, batch revisions, prefix-indexed ListDir (p95 0.27–0.72 ms), watches, hot/archive retention, and JSONL audit trails.

packager (8 test suites)

Indexed-Tail O(1) archives

Retrieves any file from S3/GCS in 2–3 byte-range calls without scanning; PathIndex shrinks 100K file indexes from ~6.2 MB to ~1.2 MB; auto-skips zstd on 20+ pre-compressed formats.

Data Blocks 0..Nper-file random 12B nonce + zstd/AEAD
Encrypted Master Indexzstd + ChaCha20-Poly1305
8B FooterLE uint64 index len
cfg (1 test suite)

Two-tier versioned config

Keeps newest 5 revisions hot in Raft KVS (/cfg/<app>/current) and compacts excess versions into encrypted packager cold archives while keeping directory manifests online.

08 · PKI, RBAC & Cloud Tooling

tlsx, k8s-top, aws & bootstrap.

tlsx (3 test suites) + compiled RBAC

Zero-restart SPIFFE mTLS & compiled ACLs

tlsx reads STRATA_TLS_* across Go gRPC servers and Agent's Python backend, re-reading leaf certs on mtime changes and verifying SPIFFE URI SAN allowlists. Guardian compiles RBAC partition/log/trace/SQL/MonoFS grants from base.yaml into one runtime bundle.

k8s-top · aws · strata

Multi-cloud deployment & bootstrap

k8s-top exports Guardian-tagged pod/container OTLP metrics; aws deploys MonoFS + Guardian onto ECS Fargate via TypeScript CDK; strata provides single-command kind bootstrap and application onboarding workflows.