CellGuard evaluates job failures and error budgets, then allows or blocks a release.
Maturity: Local Rails prototype with a PostgreSQL-backed xyOps simulator. The gate returns a policy decision, and ReleaseDeployer enforces it against a disposable local container.
With the Ruby bundle installed and local PostgreSQL and Redis services running, use a dedicated test database:
export DATABASE_URL=postgres://postgres:postgres@localhost:5432/cellguard_test
export REDIS_URL=redis://localhost:6379/1
make proofFor first-time installation and the interactive dashboard, follow CONTRIBUTING.md. No xyOps installation, cloud account or paid API is required for the proof.
make proof exercises the Rails request stack in a test transaction. It checks an open gate, injects synthetic job failures, verifies the HTTP 423 response and its failed-job evidence, runs a simulated remediation, supplies fresh healthy job observations and verifies HTTP 200. It also checks the persisted audit actor, action and remediation run ID. Remediation alone does not erase prior job failures.
Download the terminal recording · Dashboard captured with simulated data · Claims and evidence
Inspect artifacts/latest/proof.json for the outcome of each executed step. The Gate Proof workflow publishes this file on pull requests.
make deploy-proof deploys two revisions into a disposable local container, locks the gate, proves the next revision is refused, rolls the container back, then deploys again after fresh healthy observations reopen the gate. The Deploy workflow runs this on pull requests. It needs Docker and /bin/busybox (busybox-static). No registry pull or paid infrastructure is required.
flowchart LR
CI[Deployment caller] --> Gate[Rails gate endpoint]
Gate --> Budget[PostgreSQL error budget]
Eval[Evaluation endpoint] --> Budget
Eval --> Classifier[Local classifier stub or Go service]
Worker[Sidekiq scheduler] --> Jobs[Enabled agent jobs]
Jobs --> Adapter[xyOps adapter]
Adapter --> Sim[Local simulator]
Adapter --> Remote[Configured xyOps server]
The gate request reads the current budget, refreshing stale evaluations. Evaluation and remediation write database records. The default classifier and simulator paths used by the proof run locally. The remote xyOps path needs a separately configured server and credentials. Architecture · xyOps adapter
- The proof uses synthetic observations. It measures gate behavior, not recovery time on physical equipment.
- Audit rows are authenticated with an HMAC and hash-chained in PostgreSQL. Verification detects edits to signed fields (including recorded time) and gaps inside the retained chain. Detecting loss of the newest rows needs a separately trusted checkpoint, which is not provided.
- For privileged API writes wrapped in the same database transaction, an audit insert failure rolls the write back and returns HTTP 503. Docker and remote workflow actions are not part of that transaction.
- Scheduled agent dispatch requires a Sidekiq worker and Redis. The worker test runs all four agents through
AgentRunJobwithout waiting for the 60-second clock. Chaos is disabled by default. The proof does not partition a host or run a destructive drill. - The disposable deploy proof uses a local container. Hosting that container in a paid cloud account is a separate integration.
Start with the contributor guide, the claim ledger and good first issues. Security reports belong in the private reporting process.

