robosystems
CLAUDE.md31 starsChanged 14 days agoApache-2.0View on GitHub
All Python commands MUST use uv run: Always use Docker profile robosystems - never individual service profiles: Never use os.getenv() directly - use centralized config: Never create migrations manually - always autogenerate: Core platform APIs are mounted under /v1 (graphs, billing, auth, etc.). Extensions (roboledger, roboinvestor) live under /extensions and are graph-scoped at the URL level, with three sub-surfaces: All three surfaces take graph_id as a URL path parameter — auth + per-graph access are validated by FastAPI dependencies before…
- Reads credentials
- Sends data out
In this repository16 other files it gives its agents.
- cost-reviewSkill
- create-issueSkill
- create-prSkill
- deploySkill
- devSkill
- hotfixSkill
- incidentSkill
- log-reviewSkill
- migrateSkill
- pr-reviewSkill
- release-notesSkill
- reliability-reviewSkill
- security-auditSkill
- soc2-reviewSkill
- testSkill
- vuln-triageSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
15 rules. About 0 are common, 5 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 13
Always use Docker profile
robosystems: - never individual service profiles: - Very specific: line 21
Never use
os.getenv()directly: - use centralized config: - Distinctive: line 28
Never create migrations manually: - always autogenerate:
- Very specific: line 44
All three surfaces take graph_id as a URL path parameter — auth + per-graph access are validated by FastAPI dependencies before the handler …
- Very specific: line 53
Graph lifecycle writes: follow the same CQRS pattern at POST /v1/graphs/{graph_id}/operations/{op_name}:
- Very specific: line 65
All graph operation responses are OperationEnvelope and support Idempotency-Key.
- Distinctive: line 177
Self-documenting code: Prefer clear names over comments.
- Very specific: line 178
Emojis: Only in interactive scripts (/examples/), never in production code or logs
- Very specific: line 218
Every migration command takes an optional db argument that defaults to platform:
- Very specific: line 236
Update the SQLAlchemy model in /robosystems/models/core/ or /robosystems/models/extensions/
- Distinctive: line 303
Credit-based AI billing: Only AI operations (Anthropic/OpenAI) consume credits.
- Very specific: line 320
Always use timeout: 600000 (10 minutes) on Bash tool calls for just test-all, just test, and other test commands.
- Very specific: line 389
All configuration is centralized in /robosystems/config/.
- Distinctive: line 534
Never commit secrets to code
- Distinctive: line 547
Before working in a directory, read its README:
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md - RoboSystems Development Guide
Critical Rules
All Python commands MUST use uv run:
uv run python script.py # NOT: python script.py
uv run pytest # NOT: pytest
uv run ruff check # NOT: ruff checkAlways use Docker profile robosystems - never individual service profiles:
just start # Uses robosystems profile by default
just start robosystems # Explicit form (same result)
# NOT: just start apiNever use os.getenv() directly - use centralized config:
from robosystems.config import env
database_url = env.DATABASE_URL # NOT: os.getenv("DATABASE_URL")Never create migrations manually - always autogenerate:
just migrate-create "description" # NOT: manual alembic revisionAPI Endpoints (local testing)
Core platform APIs are mounted under /v1 (graphs, billing, auth, etc.).
Extensions (roboledger, roboinvestor) live under /extensions and are
graph-scoped at the URL level, with three sub-surfaces:
- Typed reads →
POST /extensions/{graph_id}/graphql(Strawberry + GraphiQL in dev) - Command writes →
POST /extensions/{roboledger|roboinvestor}/{graph_id}/operations/{operation_name} - Analytical view operations →
POST /extensions/{domain}/{graph_id}/operations/{view_name}— read-only, same envelope contract as command writes; mounted fromviews.pyonFACT_GRID_ENABLED, independently of the OLTP domain flags, so deployments without the corresponding tenants can still mount them. Seven views:build-fact-grid(pivot tables over the XBRL hypercube) andfinancial-statement-analysisquery LadybugDB; the pairdisclosures(the map of a report's sections) /information-block(one section read whole) run xbrlkit's own tools over the report held whole — the published holon onsec, the report bundle on a tenant; and the filing-text triodescribe-filing/search-text/read-text(shared repositories only) runs xbrlkit's text tools over one filing read from its public folder. Neither path queries the graph's facts
All three surfaces take graph_id as a URL path parameter — auth + per-graph
access are validated by FastAPI dependencies before the handler runs.
GraphQL queries do NOT take a graphId argument; the URL is the scope.
Per-domain feature flags: ROBOLEDGER_ENABLED and ROBOINVESTOR_ENABLED
gate the corresponding GraphQL resolvers and operation routers. The
schema is built dynamically per flag combo, so a ledger-only deployment
exposes only ledger fields (no INVESTOR_NOT_INITIALIZED runtime errors).
Graph lifecycle writes follow the same CQRS pattern at
POST /v1/graphs/{graph_id}/operations/{op_name}:
| Operation | Path |
| Create subgraph | POST /v1/graphs/{g}/operations/create-subgraph |
| Delete subgraph | POST /v1/graphs/{g}/operations/delete-subgraph |
| Create backup | POST /v1/graphs/{g}/operations/create-backup |
| Change tier | POST /v1/graphs/{g}/operations/change-tier |
| Materialize | POST /v1/graphs/{g}/operations/materialize |
| Update metadata | POST /v1/graphs/{g}/operations/update-graph-metadata |
All graph operation responses are OperationEnvelope and support Idempotency-Key. Reads (list subgraphs, list backups, health, etc.) remain REST GETs at their existing paths.
Common mistakes:
| ❌ Wrong | ✅ Correct | Purpose |
GET /health, GET /v1/health | GET /v1/status | API health check |
GET /v1/ledger/{g}/entity | GraphQL POST /extensions/{g}/graphql body { entity { … } } | Ledger read |
PUT /v1/ledger/{g}/entity | POST /extensions/roboledger/{g}/operations/update-entity | Ledger write |
POST /v1/graphs/{g}/views | POST /extensions/roboledger/{g}/operations/build-fact-grid | Fact grid query |
{ entity(graphId: "kg_x") } | { entity { … } } (graph_id comes from URL) | GraphQL query |
GET /graphs/... | GET /v1/graphs/{graph_id}/... | Graph endpoints |
POST /v1/graphs/{g}/subgraphs | POST /v1/graphs/{g}/operations/create-subgraph | Create subgraph |
DELETE /v1/graphs/{g}/subgraphs/{n} | POST /v1/graphs/{g}/operations/delete-subgraph | Delete subgraph |
POST /v1/graphs/{g}/backups | POST /v1/graphs/{g}/operations/create-backup | Create backup |
POST /v1/graphs/{g}/materialize | POST /v1/graphs/{g}/operations/materialize | Materialize graph |
- Root
/serves the Swagger UI (HTML) in every environment — it is the interactive tool, kept for its try-it panel and markednoindex; don't use it for health checks./docsis retired: it answers301torobosystems.ai/docs/api, where the reference is rendered per operation. (ReDoc lives on only in the Graph API microservice.) /openapi.jsonis the live OpenAPI spec — useful when SDK generation drifts from the server.- All authenticated endpoints take
X-API-Keyfor local testing (notAuthorization: Bearer). Read the key from.local/config.jsonafter runningjust demo-user. - Frontend-facing auth (JWT/Bearer) is a frontend concern; backend testing with
curlshould use the API key.
Example:
# Health check
curl http://localhost:8000/v1/status
# GraphQL read (fiscal calendar) — graph_id is in the URL, not the query
curl -X POST "http://localhost:8000/extensions/$GRAPH_ID/graphql" \
-H "X-API-Key: $(jq -r .api_key .local/config.json)" \
-H "Content-Type: application/json" \
-d '{"query": "{ fiscalCalendar { closedThrough closeTarget } }"}'
# Extensions operation write (close a period)
curl -X POST "http://localhost:8000/extensions/roboledger/$GRAPH_ID/operations/close-period" \
-H "X-API-Key: $(jq -r .api_key .local/config.json)" \
-H "Content-Type: application/json" \
-d '{"period": "2026-03", "allow_stale_sync": false}'
# Graph operation write (materialize)
curl -X POST "http://localhost:8000/v1/graphs/$GRAPH_ID/operations/materialize" \
-H "X-API-Key: $(jq -r .api_key .local/config.json)" \
-H "Idempotency-Key: $(date +%s)" \
-H "Content-Type: application/json"Quick Reference
Daily Development
just start # Start full Docker stack
just upgrade # Fetch latest images (or rebuild) and recreate what changed
just restart # Quick restart (Python code and new migrations)
just rebuild # Full rebuild (dependency/Dockerfile changes)
just test # Run tests (excludes slow/integration)
just logs api # View API logs
just logs dagster-daemon # View Dagster daemon logsCode Quality
just lint fix # Fix linting issues
just format # Format code
just typecheck # Type checking
just test-all # Full suite with all checksDatabase Operations
just migrate-create "msg" # Create migration (autogenerate)
just migrate-up # Apply migrations
just migrate-down # Rollback one migration
just migrate-current # Show current revisionGraph Database
just graph-health # Health check
just graph-query GRAPH_ID "CYPHER_QUERY" # Execute query
just graph-info GRAPH_ID # Database info
just lbug-query GRAPH_ID "CYPHER_QUERY" # Direct LadybugDB query (bypass API)SEC Data (Local Development)
just sec-load NVDA 2025 # Load company filings
just sec-health # SEC database health
just sec-reset # Reset SEC database
just sec-dump # Pull the public SEC .lbdb dump from Hugging Face (tens of GiB down, >100 GiB on disk)Demo Scripts
just demo-user # Create/reuse demo user credentials
just demo-custom-graph # Run custom graph demo
just demo-sec --ticker NVDA --year 2025 # Run SEC demo
just demo-roboledger # Full RoboLedger demo (synthetic data)
just demo-roboledger --skeleton # Skeleton: user + empty roboledger graph for manual QB sandbox connectCode Standards
- Python 3.14 with uv package management
- Ruff formatting (88-char lines, 2-space indent, double quotes)
- basedpyright for type checking
- Self-documenting code: Prefer clear names over comments; add comments only for non-obvious logic
- Emojis: Only in interactive scripts (
/examples/), never in production code or logs
Common Patterns
API Endpoint Pattern
from robosystems.middleware.auth import get_current_user
from robosystems.models.api import ResponseModel
@router.get("/endpoint")
async def endpoint(
request: Request,
user: User = Depends(get_current_user)
) -> ResponseModel:
passService Layer Pattern
from robosystems.operations.graph import CreditService
# Business logic in operations, not routers
credit_service = CreditService(session)
balance = credit_service.check_credit_balance(graph_id, required_credits)
if balance["has_sufficient_credits"]:
response = call_model(...)
credit_service.consume_ai_tokens(
graph_id, input_tokens, output_tokens, model, "operation description"
)Database Migrations
RoboSystems has two separate databases with independent migration histories:
- Platform DB (
robosystems) — users, orgs, graphs, billing, connections, documents. Models in/robosystems/models/core/. - Extensions DB (
extensions) — per-graph OLTP for RoboLedger and RoboInvestor with schema-per-graph-id tenancy. Models in/robosystems/models/extensions/.
Every migration command takes an optional db argument that defaults to platform:
# Platform (default)
just migrate-create "description" # autogenerate
just migrate-up # apply
just migrate-down # rollback one
just migrate-current # show revision
# Extensions — pass "extensions" as the second argument
just migrate-create "description" extensions
just migrate-up extensions
just migrate-down extensions
just migrate-current extensionsWorkflow for any change:
- Update the SQLAlchemy model in
/robosystems/models/core/or/robosystems/models/extensions/ - Generate the migration against the correct database —
just migrate-create "msg"for platform,just migrate-create "msg" extensionsfor extensions - Review the generated file (autogenerate misses enum changes, CHECK constraints, some index changes — fix those by hand)
- Apply with
just migrate-uporjust migrate-up extensions. On a local build the Dagster daemon mountsmigrations/andframeworks/from the checkout and also applies new migrations when it boots
Architecture Overview
robosystems/
├── routers/ # API endpoints (thin layer, calls operations)
│ ├── extensions/ # Extensions command + analytical view surface
│ │ ├── roboledger/ # operations/ + reads.py + views.py (build-fact-grid, financial-statement-analysis, disclosures, information-block, describe-filing, search-text, read-text)
│ │ │ # /extensions/roboledger/{g}/operations/*
│ │ └── roboinvestor/ # /extensions/roboinvestor/{g}/operations/*
│ └── … # Core platform routers (graphs, billing, auth, …)
├── graphql/ # Strawberry GraphQL served at /extensions/{graph_id}/graphql
│ ├── types/ # Strawberry types (wrap Pydantic response models)
│ ├── resolvers/ # Per-domain resolver classes (ledger, investor)
│ ├── context.py # get_context / require_user
│ ├── auth.py # check_graph_access
│ └── schema.py # Query root (composes resolvers per ROBOLEDGER/ROBOINVESTOR flags)
├── operations/ # Business logic kernel — single source of truth
│ ├── roboledger/
│ │ ├── reads/ # OLTP reads (PostgreSQL extensions DB)
│ │ ├── commands/ # OLTP writes (PostgreSQL extensions DB)
│ │ ├── views/ # Analytical views (LadybugDB XBRL hypercube; information_blocks.py + filing_text.py = xbrlkit over the report held whole)
│ │ ├── fiscal_calendar/ # FiscalCalendarService, PeriodCloseService
│ │ ├── reports/ # fact_grid, guard_rails
│ │ └── schedules/ # ScheduleService
│ ├── roboinvestor/
│ │ ├── reads/ # portfolios, securities, positions, holdings
│ │ └── commands/ # portfolios, securities, positions
│ ├── graph/ # Graph services (credit, creation, subscription, deprovision)
│ ├── extensions/ # OLTP→OLAP materialization (materialize.py, loader.py, staleness.py)
│ ├── operators/ # AI Operator operations (Claude/MCP executors — distinct from REA Agent counterparty model)
│ ├── providers/ # Provider registry and implementations
│ └── … # event_block, information_block, taxonomy_block, serialization, search, billing, memory, …
├── middleware/ # Cross-cutting concerns
│ ├── auth/ # Authentication (JWT, API keys, cross-app SSO, passkeys/MFA, enterprise OIDC + SCIM)
│ ├── billing/ # Credit consumption tracking
│ ├── graph/ # Graph routing and multi-tenancy
│ ├── rate_limits/ # Burst protection
│ ├── sse/ # Server-Sent Events
│ ├── operations.py # OperationEnvelope, IdempotencyCache, execute_operation, audit
│ ├── extensions.py # Operation registrar: OperationSpec, OperationRegistrar, require_graph_extension, guard_command_runner
│ └── … # mcp, otel, robustness
├── dagster/ # Dagster orchestration (jobs, sensors, assets, resources)
├── adapters/ # External service integrations (SEC, QuickBooks)
├── admin/ # Admin CLI and utilities
├── security/ # Security controls (audit, auth protection, encryption)
├── models/
│ ├── api/ # Pydantic request/response models
│ │ └── extensions/ # RoboLedger + RoboInvestor API models
│ ├── core/ # Platform SQLAlchemy models (users, orgs, graphs, billing, connections, documents)
│ └── extensions/ # Extensions OLTP SQLAlchemy models (roboledger, roboinvestor); schema-per-graph tenancy
├── config/ # Centralized configuration (see config/README.md)
├── schemas/ # Graph schema definitions
├── taxonomy/ # Framework package loading and the library writer
└── graph_api/ # Graph API microserviceKey Architectural Patterns
- Operations orchestrate, adapters integrate: Operations coordinate business logic; adapters handle external service integration and data transformation
- Operations kernel as single source of truth:
operations/roboledger/{reads,commands,views}/andoperations/roboinvestor/{reads,commands}/hold domain logic as pure functions (session-in, Pydantic-out, domain exceptions). GraphQL resolvers, REST command operation routers, analytical view handlers, MCP tools, and AI Operators all delegate to the same functions. Adding business logic in a router, resolver, or MCP tool handler is a mistake — route it through the ops layer. - Multi-tenant by design: Core platform operations scoped to
graph_id; extensions OLTP uses schema-per-graph-id PostgreSQL tenancy withSET search_pathisolation - Two-database split: Platform (
robosystems) for IAM/billing/metadata; extensions (extensions) for per-graph OLTP. DifferentDeclarativeBaseclasses, independent migration histories, same shared RDS instance - Credit-based AI billing: Only AI operations (Anthropic/OpenAI) consume credits; database operations are free
- Graph backend: LadybugDB (
GRAPH_BACKEND_TYPE=ladybug) - Two
Agentconcepts, disambiguated:Agent(REA party — customer/vendor/employee counterparty) lives inmodels/extensions/roboledger/agent.pyand is the canonical ontology term. The AI executor layer (Claude/MCP-driven) is named Operator throughout the codebase:routers/graphs/operator/,operations/operators/, classes likeAnalystOperator/MappingOperator, endpoint/v1/graphs/{g}/operator. Marketing-facing copy can still say "AI agent" / "AI assistant" — that's decoupled from internal naming.
Testing
Test Commands
just test # Unit tests (fast, no external deps)
just test routers # Run tests at /tests/routers
just test-cov # Coverage report
just test-all # Full suite with all checksBash Timeouts
Always use timeout: 600000 (10 minutes) on Bash tool calls for just test-all, just test, and other test commands. The default 2-minute Bash timeout is too short for the full suite. CI gives the pytest job 25 minutes.
Test Markers
@pytest.mark.unit # Fast, isolated
@pytest.mark.integration # May use databases
@pytest.mark.slow # Long-running
@pytest.mark.security # Security-focusedLong-Running Tests
For tests exceeding the default pytest timeout, use the @pytest.mark.timeout decorator:
@pytest.mark.timeout(300) # 5 minutes
@pytest.mark.slow
def test_long_running_operation():
passOr configure in pytest.ini for specific test paths.
Environment Configuration
Dual .env Pattern
.env: Container hostnames for Docker services (e.g.,postgres:5432)- Used by: Docker Compose, containers communicating with each other
.env.local: Localhost URLs for host commands (e.g.,localhost:5432)- Used by: Justfile recipes, local scripts, migrations run on host
Both are auto-created from .example templates by just start or just init.
When to edit which:
- Adding secrets/credentials → Update both files
- Changing service ports → Update both files
- Local overrides only → Update
.env.localonly
Key Environment Variables
# Core
ENVIRONMENT=dev|staging|prod
DATABASE_URL=postgresql://...
VALKEY_URL=redis://...
# Graph API
GRAPH_API_URL=http://localhost:8001
GRAPH_BACKEND_TYPE=ladybug
LBUG_DATABASE_PATH=/data/lbug-dbs
# Feature Flags
RATE_LIMIT_ENABLED=true
BILLING_ENABLED=false # code default; local dev runs billing-off
# Extensions — RoboLedger & RoboInvestor product surfaces
ROBOLEDGER_ENABLED=true # gates roboledger ops + GraphQL ledger fields
ROBOINVESTOR_ENABLED=true # gates roboinvestor ops + GraphQL investor fields
EXTENSIONS_GRAPHQL_ENABLED=true # kill switch for the GraphQL endpoint
EXTENSIONS_DATABASE_URL=postgresql://... # extensions OLTP database
# EXTENSIONS_ENABLED is a derived property (ROBOLEDGER_ENABLED OR ROBOINVESTOR_ENABLED)
# — not a separate env var. Only ROBOLEDGER_ENABLED / ROBOINVESTOR_ENABLED
# are read.Configuration System
All configuration is centralized in /robosystems/config/. See config/README.md for full details.
| Module | Purpose |
env.py | Environment variables with validation |
shared_repositories.py | Shared repository registry and manifests |
billing/ | Subscription plans and pricing |
graph_tier.py | Graph tier config from .github/configs/graph.yml |
rate_limits.py | Burst-focused rate limiting (1-minute windows) |
credits.py | AI operation credit costs |
operators.py | Claude model configuration (Bedrock) — AI Operator config |
validation.py | Startup configuration checks |
valkey_registry.py | Valkey database allocation (never hardcode DB numbers) |
tuning.py, defaults.py | SSM-tunable values and their defaults |
parameter_store.py | SSM Parameter Store client |
storage/ | S3 path helpers (shared data, graph storage) |
Graph API
Backend
- LadybugDB: Embedded columnar graph database
Key Endpoints
POST /databases # Create database
POST /databases/{graph_id}/query # Execute Cypher
POST /databases/{graph_id}/tables # Create staging table
POST /databases/{graph_id}/tables/query # Query staging (SQL)
POST /databases/{graph_id}/tables/{name}/materialize # Materialize to graph
GET /health # Health checkLadybugDB Limitations
- Sequential ingestion (one file at a time per database)
- Connection pool is capped at 3 connections per database, everywhere. The per-tier
connection_pool_sizein.github/configs/graph.ymlandLBUG_CONNECTION_POOL_SIZEare surfaced byenv.get_lbug_tier_config()but read by nothing — tuning either is currently a no-op. - Single writer per database at a time
Subgraphs
- Tiers: ladybug-standard (3 max), ladybug-large (10 max), ladybug-xlarge (25 max)
- Naming: Alphanumeric only, 1-20 chars (no hyphens/underscores)
- ID Format:
{parent_graph_id}_{subgraph_name}(e.g.,kg123_dev) - Features: Shared credit pool, shared permissions, isolated data
Troubleshooting
Docker Issues
just restart # Code changes not picked up (local builds; a published image runs its own source)
just rebuild # Dependency changes not working
just logs api # Check API logs
just logs-grep worker ERROR # Search worker logsDatabase Issues
docker ps | grep postgres # Check PostgreSQL running
just migrate-current # Verify migration status
just migrate-up # Apply pending migrationsGraph Database Issues
just graph-health # Check Graph API
just graph-info GRAPH_ID # Database infoCache Issues
just admin dev cache info # View all cache databases
just admin dev cache info auth # View specific database
just admin dev cache keys auth --pattern "apikey:*" # List matching keys
just admin dev cache flush auth # Flush single databaseAdmin CLI
just admin dev --help # List all command groups
just admin dev stats # Subscription & revenue stats
just admin dev subscriptions list # List all subscriptions
just admin dev invoices list # List invoices
just admin dev cache info # View cache databasesCommand groups: subscriptions, invoices, credits, graphs, users, orgs, cache, instances, migrations, scim, oauth, search, worker. Use --help on any group for options.
CI/CD
- GitHub-hosted runners (default): Used for tests, builds, and deployments
- Self-hosted runners (optional): Set
RUNNER_LABELSrepo variable to use self-hosted runners - Deployments: Manual workflow dispatch via
staging.ymlandprod.yml, run from the version tag (frommainonly for one-offs) - Release notes:
tag-release.ymlauto-generates the changelog from changes since the last tag (via the Claude API). For milestone releases, commit curated notes to.github/release-notes/v<version>.mdbefore dispatchingcreate-release.yml— when that file exists at the tagged ref it replaces the generated changelog (and the stats section is skipped) - Infrastructure Config:
.github/configs/graph.yml
AWS Infrastructure
| Component | Service | Notes |
| API/Workers | ECS Fargate ARM64 | Auto-scaling, Spot-preferred |
| PostgreSQL | RDS | Burstable T4g instance |
| LadybugDB | EC2 ARM64 | M7g/R7g (tier-dependent) |
| Cache | ElastiCache | Valkey-compatible |
| Search | OpenSearch | Full-text + semantic (KNN) |
Instance sizes and capacity are managed via GitHub Actions variables (just gha-list) and vary between staging and production.
GitHub Actions Variables
just gha-list # List all variables
just gha-list SHARED_REPLICAS # Filter by pattern (case-insensitive)
just gha-get SHARED_REPLICAS_INSTANCE_WARMUP_PROD # Get single variable
just gha-set SHARED_REPLICAS_INSTANCE_WARMUP_PROD 900 # Set variable
just gha-delete SOME_OLD_VARIABLE # Delete variableVariables follow the naming convention COMPONENT_SETTING_ENVIRONMENT (e.g., SHARED_REPLICAS_INSTANCE_WARMUP_PROD). Run just setup-gha to initialize all variables with defaults.
SSM Parameters
just ssm-list prod features # List feature flags
just ssm-list prod tuning # List tuning parameters
just ssm-get prod features/MCP_SUBGRAPH_OPS_ENABLED # Get single parameter
just ssm-set prod features/MCP_SUBGRAPH_OPS_ENABLED true # Set parameter
just ssm-delete prod features/OLD_FLAG # Delete parameterParameters are stored at /robosystems/{env}/{category}/{NAME} in SSM Parameter Store. The {NAME} segment is UPPER_SNAKE_CASE, identical to the env var name (e.g., RATE_LIMIT_ENABLED, not rate-limit-enabled). Unlike GitHub variables, SSM parameters need no redeployment, but when a change lands depends on the reader: env.* feature flags are computed at import, so their services need a restart, while tuning/ values are read at call time through a cache of about five minutes.
Secret Management
- AWS Secrets Manager Base:
robosystems/{staging|prod} - Components:
robosystems/{staging|prod}/{postgres|valkey|admin|graph-api} - Monthly rotation via GitHub Actions (
secrets-rotation.yml) using Lambda functions - Never commit secrets to code
Public Documentation
Two lanes, both published to the content CDN by .github/workflows/publish-docs.yml and rendered on the sites:
- Product docs live in
docs/product/{site}/—roboledger/servesroboledger.ai/docs,robosystems/servesrobosystems.ai/docs/guides. Every page is a public claim: describe what the product does today, name an MCP tool only where the reader has to recognise one (tests/scripts/test_product_docs.pychecks each backticked name against the server's tools), and keep the front matter'stitleandorder. Seedocs/product/README.md. - Technical docs live in
docs/technical/, published atrobosystems.ai/docs/technical. Change them in the PR that makes them true. Their examples are written for the hosted API; local development lives on one page there. Link a sibling page asPage-Name.md; a broken link or anchor failstests/scripts/test_technical_docs.py. Seedocs/technical/README.md. Preview either lane withjust docs-build.
A third surface does not go through that workflow: the REST API reference at robosystems.ai/docs/api, which robosystems-app renders from the live /openapi.json, one page per operation. Nothing here publishes it — an operation's summary, description and response models are its page, so the prose in a router is public copy. It is read-only by design; to run a call, use the Swagger page at the API root (localhost:8000/ in development, api.robosystems.ai/ in production).
Key READMEs
Before working in a directory, read its README:
/robosystems/config/README.md- Configuration patterns/robosystems/config/storage/README.md- S3 storage paths/robosystems/graph_api/README.md- Graph API details/robosystems/graphql/README.md- Strawberry GraphQL extensions surface, Pydantic auto-derivation, resolver patterns/robosystems/middleware/auth/README.md- Authentication system/robosystems/middleware/graph/README.md- Graph routing/robosystems/operations/README.md- Business logic patterns/robosystems/dagster/README.md- Dagster orchestration patterns/robosystems/models/api/README.md- Pydantic request/response models/robosystems/models/core/README.md- Platform SQLAlchemy models (users, orgs, graphs, billing, connections, documents)/robosystems/models/extensions/README.md- Extensions OLTP SQLAlchemy models (roboledger, roboinvestor) with schema-per-graph tenancy/robosystems/schemas/README.md- Graph schema definitions, extension naming conventions, URL/flag topology/tests/README.md- Testing guide/examples/README.md- Demo scripts
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

