Repository navigation
Releases
v0.5.0 — Ticket integration, rate limiting, snapshots, and a pilot comparison
Fourth evidence-side release. The SLA engine is unchanged (still 0.3.0) — every
existing statement keeps its hash.
Added
- Ticket systems.
capledger watch webhookreceives webhooks from a ticket
or incident system (Jira, ServiceNow, PagerDuty, Opsgenie, or an in-house
tool) and records repairs and maintenance as signed events. A mapping file
says where the node, status, time, and ticket id live in the JSON, and which
statuses mean down, up, degraded, or maintenance. Deliveries must carry an
HMAC-SHA256 signature or bearer token; only state changes are recorded, so
redelivered or replayed webhooks change nothing. See
docs/tickets.md. - Rate limiting.
ledger servelimits each token to 10 requests/sec with
bursts of 50 (--rate-limit,--burst), answering429with
Retry-After. Client commands wait and retry automatically. - Ledger snapshots.
ledger snapshot/ledger restoreback up or move a
contract's entire ledger as one signed bundle. Restore verifies every log,
checkpoint, statement, signature, and consent before writing anything —
for backups, audits, host moves, and air-gapped sites. - Pilot comparison.
capledger sla compareputs a sealed statement next
to the provider's own downtime figures (a plain CSV), node by node, flags
the gaps, and shows what credit each side's numbers imply. See
docs/proof-of-value.md. - systemd units for the agent and the webhook receiver.
Upgrading from 0.4
Nothing changes for existing logs, statements, contracts, or ledgers. Rate
limiting is on by default — raise --burst/--rate-limit, or set
--rate-limit 0, if an automation sends bursts larger than 50 requests.
Full changelog: https://github.com/Sievehouse/gpu-sentinel/blob/main/CHANGELOG.md#050-2026-11-01
v0.4.0: Kubernetes watcher, redaction, and one ledger for many contracts
GPU Sentinel now watches Kubernetes directly, keeps process details out of the evidence log by default, and can host several contracts on one ledger. The SLA engine is unchanged — every existing statement keeps its hash.
Highlights
Kubernetes and NVSentinel. capledger watch kubernetes turns node health into signed down/up/degraded events: a Ready condition that isn't True, health conditions from NVIDIA NVSentinel or node-problem-detector (--down-condition '*'), taints, cordons, and fewer allocatable GPUs than expected. Events are dated by the condition's own transition time, and the watcher resumes cleanly after a restart. deploy/kubernetes/node-watcher.yaml runs it with read-only access; see docs/kubernetes.md.
Redaction. capledger agent --redact strips process names and ids — which can identify a customer's jobs — out of recorded kernel lines, without changing which events or money results come out.
One ledger, several contracts. ledger serve --config-dir DIR hosts multiple contracts at once, each with its own keyring, tokens, data directory and URL (/c/CONTRACT). Nothing leaks between them.
Windows. scripts/demo.ps1 runs the full end-to-end demo in PowerShell, and CI now runs the Go tests and that demo on a Windows runner.
Compatibility
- Existing logs, statements, contracts and ledgers need no changes.
- A single
--configledger behaves exactly as before. - To admit the Kubernetes watcher's events under a contract with
sources, list the roleprovider-integration(or sourcekubernetes-node-watcher) for the provider.
Full list: CHANGELOG.md · Quick start: README · Kubernetes guide: docs/kubernetes.md
v0.3.0: Whose clock wins? Co-signed statements and the hosted ledger
GPU Sentinel is the new name for Capacity Ledger. The command is still capledger, and file formats keep their capacity-ledger identifiers, so every existing log, statement, bundle and signature stays valid.
Highlights
Whose clock wins? When the provider's logs and the customer's probe disagree about an outage, the contract now says what counts. List event sources by party (sources) and set measurement.reconcile: which episodes count (either, both, provider, tenant) and whose clock starts and ends them. Every incident in the statement says who saw it.
Co-signed statements. capledger sla sign records a party's accept or dispute. sla verify --require provider,customer checks that every required party accepted.
Checkpoints. A signed size, last hash and Merkle root for each log. A truncated or rewritten log fails verification, even if its writer re-signed every entry.
The hosted ledger. capledger ledger serve runs one ledger per contract (standard library only, file-backed):
- verified pushes and one owner per log
- daily witness checkpoints
- statements carrying every party's signature
- a financier feed that opens only while both provider and customer consent
Deployment files for systemd and Kubernetes are in deploy/.
Proof-of-value kit. Fault injection (F1 to F6), pov-plan and pov-score against the pass thresholds, an agent overhead measurement, and localize-sim --fanout (64 nodes in 3 rounds).
Independent SLA reference. A Python implementation written from the spec is compared with the Go engine in CI on every example and on 1,000 random months per run.
Compatibility
- Statements under contracts without
sourcesare byte-identical to engines 0.1 and 0.2 and keep their hashes.sla verifyreplays all three semantics. - Container images are now
ghcr.io/sievehouse/gpu-sentinel-agent(lowercase). - Enrol each party's signing key with its party role (
keyring add --role provider) before signing statements. Don't reuse node keys.
Full list: CHANGELOG.md · Quick start: README · Hosted ledger: docs/ledger-service.md
v0.2.0: heartbeats, AMD support, tenant probe, signed bundles
Pre-alpha release of Capacity Ledger v0.2, adding continuous monitoring and multi-party evidence.
What's new
- Heartbeats and gap detection — agents and probes write signed heartbeats every minute;
evidence gapslists silences;events export --derive-gapsturns them into unmonitored time in SLA statements - Tenant probe —
capledger proberuns inside the customer's allocation, checks every GPU is visible and optionally benchmarks it, and writes the customer's own signed log - Corroboration —
sla corroboratecompares provider and tenant downtime records node by node and seals the report - AMD Instinct support —
--vendor amdparses amdgpu kernel messages, reads RAS error counters from sysfs, counts GPUs; harness supports amd-smi audit and ROCm Validation Suite - Signed evidence bundles —
bundle create / verifypacks an acceptance report or statement under one Ed25519 signature - YAML contracts — contract specs can now be written in YAML instead of JSON
- Per-node keys and keyrings — each agent creates its own key;
keyring add / import / listrecord owners, roles, node bindings and validity windows
Upgrading from v0.1
Existing logs, statements and contracts continue to work. See CHANGELOG.md for the full upgrade notes.
v0.1.0: first public pre-alpha
First public pre-alpha of Capacity Ledger: contract-grade acceptance tests and SLA evidence for rented GPU clusters.
Pre-alpha. Tested on synthetic data only; not yet validated on production GPU clusters. Example contracts are illustrative, not legal advice.
What's included
| Component | What it does | Status |
|---|---|---|
capledger sla |
Contract spec + events → sealed SLA statement; independent replay | Unit, property and CLI tests |
capledger evidence |
Ed25519-signed, hash-chained evidence log with a Merkle root | Tamper tests |
capledger agent |
Kernel log → NVIDIA XID/SXID observations → signed down events | Tested on sample logs, not yet on GPU hosts |
| Slurm state watcher | Slurm drain/resume → signed down/up events | Tested with a fake sinfo |
capledger-harness |
Acceptance plan, runner, per-node verdicts, peer comparison, fault localisation | Tested with simulated tool output |
burnin.py |
Simultaneous GEMM + all-to-all burn-in (PyTorch) | Reference code, not yet run on hardware |
Try it
make build
./scripts/demo.sh
Known limits
- An acceptance pass means "no defect found by these tests", not "no defect exists".
- No heartbeat or gap detection yet; a stopped agent leaves a silent gap.
- No tenant-side probe or AMD collector yet (see docs/roadmap.md).