Bookmarks

May 7, 2026 · View on GitHub

Progressive disclosure for task-specific documentation and references.

Table of Contents


Specs

Desired state of the system, organized by capability domain.

SpecDomainPurpose
Ambient Data ModelapiPlatform-wide data model: projects, agents, sessions, credentials, RBAC
Control Planecontrol-planeCP architecture, runner structure, K8s provisioning
RunneragentsRunner subprocess lifecycle, bridges, gRPC/HTTP endpoints
MCP ServerintegrationsMCP tool definitions, sidecar and public endpoint modes
SecuritysecurityIdentity boundaries, credential authorization, per-session isolation, design decisions

Feature specs remain in numbered directories under specs/ (e.g., specs/001-*/spec.md).

Workflows

Agent-consumable procedures — step-by-step implementation workflows.

WorkflowDomainPurpose
Ambient ModelsessionsSpec-driven implementation pipeline for data model changes
Control Planecontrol-planeCP + Runner implementation workflow
MCP ServerintegrationsMCP server implementation workflow

Standards

Component-specific conventions loaded by review agents on demand.

StandardDomainScope
Backend ConventionsbackendGo patterns, K8s integration, handler conventions, user-scoped clients
Backend Error HandlingbackendConsistent error patterns across backend and operator
Backend K8s ClientbackendUser token vs. service account — critical for RBAC compliance
Frontend ConventionsfrontendNextJS patterns, Shadcn, React Query, component guidelines
Frontend React QueryfrontendData fetching hooks, mutations, cache invalidation
Operator Conventionscontrol-planeOwnerReferences, reconciliation patterns, SecurityContext, resource limits
Security StandardssecurityAuth flows, RBAC, token handling, container security
Cross-Cutting ConventionsplatformImage consistency, reconciliation, error propagation, namespace-scoped keys

Governance

DocumentPurpose
ACP Constitution10 core principles: K8s-native, security, type safety, TDD, modularity, observability, lifecycle, context engineering, data access, commit discipline
Runner ConstitutionVersion pinning, automated freshness, image discipline, schema sync, bridge modularity
SDD PreflightCI workflow enforcing constitution compliance on PRs

Architecture Decisions

ADRDecision
ADR-0001CRDs, operators, and Job-based execution over traditional API
ADR-0002User tokens for API ops instead of service accounts
ADR-0003Multi-repository support in a single session
ADR-0004Go for backend/operator, Python for runner
ADR-0005NextJS + Shadcn + React Query frontend stack
ADR-0006Runner SDK design and architecture
ADR-0007Unleash with workspace-scoped overrides
ADR-0008Automated inner-loop code review
ADR-0009REST API + PostgreSQL via rh-trex-ai

Component Guides

GuidePurpose
Backend READMEGo API development, testing, handler structure
Backend Test GuideTesting strategies, test utilities, integration test setup
Frontend READMENextJS development, local setup, environment config
Frontend Design GuidelinesComponent patterns, Shadcn usage, type conventions
Frontend Component PatternsArchitecture patterns for React components
Operator READMEOperator development, watch patterns, reconciliation loop
Runner READMEPython runner, Claude Code SDK integration
Public API READMEStateless gateway, token forwarding, input validation
API Server Guiderh-trex-ai REST API, plugin system, code generation
SDK GuideGo + Python client libraries for the public API
CLI READMEacpctl CLI for managing agentic sessions
CodeRabbit IntegrationSetup, review gate, session credentials, .coderabbit.yaml config

Development Environment

GuidePurpose
KindRecommended local dev setup (Kubernetes in Docker)
OpenShiftOpenShift Local (CRC) setup for OCP-specific features
HybridRun components locally with breakpoint debugging
ManifestsKustomize overlay structure, deploy.sh usage

Testing

GuidePurpose
E2E Testing GuideWriting and running Cypress E2E tests
E2E READMERunning E2E tests, environment setup, CI integration

Observability

GuidePurpose
OverviewMonitoring, metrics, and tracing architecture
LangfuseLLM tracing with privacy-preserving defaults
Operator MetricsGrafana dashboards for operator metrics

Design Documents

DocumentPurpose
Declarative Session ReconciliationSession lifecycle via declarative status transitions
Runner-Operator ContractInterface contract between operator and runner pods
Session Status RedesignStatus field evolution and phase transitions
Session Initialization FlowHow sessions are initialized and configured
Spec-Runtime SynchronizationKeeping spec and runtime state in sync
Agent Runtime RegistryAgent runtime registry architecture
CLI RunnersCLI runner design and implementation
Status Update ComparisonComparison of status update approaches

Dependency Automation

ResourcePurpose
SDK Version Bump WorkflowDaily check for claude-agent-sdk + anthropic updates, auto-PR
SDK Version Bump ScriptPyPI version check, pyproject.toml update, changelog fetch
SDK Feature Report GeneratorParse release notes into structured feature data

Amber Automation

ResourcePurpose
Amber ConfigAutomation policies and label mappings