How it works
Rollouts and triage
Evidence-driven, autonomous delivery on your workflow with sensible defaults. Ship straight to prod, verify dark under a flag, or widen via canary while triage handles incidents automatically.
On this page
Flexible release workflows and autonomy
Clankie is evidence-driven and autonomous on your workflow, with sensible defaults your lead tunes as your project runs. Staged canaries are one release path, not the only one:
- Direct to 100% of prod: when a fix is confident and low-risk under your project policy, Clankie doesn't stall it on a slow rollout schedule. It verifies the change, patches prod, and leaves proof and one-tap revert on your devices.
- Dark behind a feature flag: land the change in production with the flag off for users so the agent can verify it on its own cohort before widening out.
- Staging or staged canary: test in staging before going to 100%, or widen stage by stage (1%, 5%, 25%, 50%, 100%) while live health holds.
You set the boundary per project. For gated releases, your device-signed approval names the decision ID, the decision revision, and the source revision, and applies to nothing else. There is no per-stage approval.
For delegated fixes and triage rules within your policy, Clankie does not block waiting for a manual tap: he acts right away (shipping on your configured workflow, rolling forward with a fix, pausing, or rolling back) and leaves the full diff, proof, and one-tap rollback artifact on your devices to review after the fact.
- On gated rollouts, a new revision before exposure drops the prior approval and returns the rollout to awaiting approval.
- Every live rollout exposes pause, resume, and one-tap rollback controls from any paired device.
How a rollout widens
- Awaiting approval (revision-bound, signed): once approved, the controller verifies the flag is off (0% exposed).
- If flag-off verification fails, the rollout stops paused with nothing exposed and requires re-approval.
- Once verified off, Stage 1 opens (for example 5% with an observation window), then widens to Stage 2 and subsequent stages until 100% complete while health holds.
- If a health breach occurs during any stage, the rollout is held (exposure frozen, no widening) and triage opens to choose roll forward (new revision, same stage), pause, or roll back (flag off).
- Verify the flag is off. Nothing is exposed until the controller confirms it. If the check fails, nothing is exposed and the rollout stops, paused.
- Enable the first stage for the policy's cohorts.
- Widen to the next stage only when all three hold: the stage's observation window has elapsed, a health reading from this stage has at least the minimum number of samples, and that reading is within limits.
- Hold on a breach. Exposure stays where it is and triage opens. A held rollout never widens.
You can pause and resume at any time, and roll back from the rollout screen. The screen shows stage progress and health; it never asks you to approve the next stage.
A policy
const policy: RolloutPolicy = {
flag: 'ff.online-booking',
cohorts: ['internal'],
stages: [
{ percent: 5, observeMs: 3_600_000, minSamples: 200 },
{ percent: 25, observeMs: 3_600_000, minSamples: 500 },
{ percent: 100, observeMs: 3_600_000, minSamples: 1000 },
],
health: { maxErrorRate: 0.01, maxP95Ms: 800 },
};A policy is valid when it has at least one stage, stage percents strictly increase, the last stage reaches 100%, and every stage has a positive window and at least one sample.
Triage
Triage handles production remediation for you so you aren't waking up to click rollback or roll-forward buttons manually. An agent watches production signals, verifies any breach against the live revision, acts automatically within your project's policy (roll forward with a fix, pause, or roll back), saves the diff, replay proof, and one-tap revert to your app, and files an evidence-backed bug to the project lead in the project's tracker.
Choosing a remedy
Roll forward is a first-class remedy and often the preferred one.
| Situation | Remedy | Why |
|---|---|---|
| Breach not yet verified | Pause | Hold exposure while verifying |
| Active harm, and flag-off restores the old behavior | Roll back | Stop the harm now |
| Active harm, flag-off not known to restore it | Pause | Hold and escalate |
| Verified, contained, a fix is available | Roll forward | Ship the fix automatically (at the current stage, or straight to prod if policy allows) |
| Verified, no fix yet | Pause | Hold at the current stage |
Active harm means users are being hurt now: data loss, security, money or an outage.
Roll forward
A roll-forward fix is a new source revision with a newer decision revision. Within delegated triage policy, Clankie verifies the fix (for example replaying the failing batch) and applies it automatically, leaving the diff, proof, and one-tap revert saved to your app; on gated paths, it waits for your device-signed approval before resuming at the held stage.
The bug
Every triage outcome files a bug to the project lead with the breach, the stage, the remedy and why, and only the live evidence for the incident's revision.
Security guard
Alongside production health triage, Clankie acts as an always-on security guard on both your application/prod surface (trust boundaries, exposure, suspicious changes) and the host machine running your agents (extending clankie doctor with read-only checks for SSH/lateral-movement exposure, LaunchAgent/persistence drift, MCP and supply-chain IOCs, and OS/browser security lag). Host security checks always stay read-only and wait for explicit owner approval before applying remediation. See Security guard.