Autonomous dependency upgrades, AI-powered regression patches, and formal verification using Lean 4.20.0.
- Apps (
apps/)controller— upgrade orchestration APIai-service— AI patch generation APIgithub-app— GitHub webhook and manual trigger API
- Shared packages (
packages/)@speccursor/shared-types— contracts and schemas@speccursor/shared-config— typed configuration@speccursor/shared-utils— logger, infra clients, HTTP kernel
- Workers (
workers/)rust-worker— execution workerlean-engine— Lean/Mathlib proof workspace
- Ops
docker-compose.yml— local Postgres, Redis, observability stackdocker-compose.staging.yml/prod— control-plane overlays (pnpm deploy:*)infrastructure/kind+infrastructure/k8s— local kind host for Chaos Mesh (pnpm k8s:*).github/workflows— CIdocs/— architecture, CI guide, KPIs, RFCs
- Layered service boundaries:
routes -> application -> infrastructurewith bootstrap inindex.tsand assembly inapp.ts - Shared cross-cutting concerns centralized in
@speccursor/shared-utils(createHttpKernel) - Fail-closed AI/GitHub secrets: empty local defaults do not invent production credentials
- O(1) Redis job queues (lists), accurate SQL pagination with
COUNT(*)
# Prerequisites: Node 18+, pnpm 8.15+
pnpm install
# Optional local infra
docker-compose up -d
# Staging-style control plane on Docker Desktop
# (requires filled .env.staging — see docs/deployment.md)
# pnpm deploy:staging
# Local kind cluster + Chaos Mesh (requires kind, kubectl, helm)
# pnpm k8s:up && pnpm k8s:chaos
# Verify architecture layout
pnpm verify
# Typecheck and tests
pnpm type-check
pnpm test:unit| Service | Port |
|---|---|
| controller | 3001 |
| ai-service | 3002 |
| github-app | from PORT / config (default 3000) |
- Architecture
- Environment variables
- Deployment
- CI validation guide
- Chaos experiments
- Engineering KPIs
- RFC template
- ADR: shared HTTP kernel
pnpm security:auditDependabot is configured in .github/dependabot.yml for npm, Cargo, Actions,
and Docker. CodeQL uses security/codeql-config.yml with GitHub
security-extended and security-and-quality suites.
MIT — see LICENSE.