engineering

Pilot a release gate in report-only mode

Use observed would-block decisions to choose a release policy that teams can apply consistently before enforcing it on production changes.

TrustIvan · · 10 min read

A team switches on a security check for all production releases. The first blocked change is a two-line logging fix in a service with several unrelated findings carried over from the previous version. Within a day, release engineers are fielding exception requests they cannot evaluate from the gate output. The security rule found a real backlog. The team had not agreed which subset should decide whether an ordinary release can proceed.

Run the rule in report-only mode before enforcing it. Let releases follow their established controls while you record the verdict the candidate rule would have produced. Give the pilot a decision to support, such as whether a new high-priority finding introduced by an artifact change can block that artifact without holding unrelated releases. The report becomes a way to check the evidence, ownership, and operator experience under realistic conditions.

Choose a pilot with a question you can answer

Write down the candidate rule and include the destination environment, artifact types, risk category, acceptable evidence, and treatment of unknown or unavailable results. Use a policy revision recorded in every evaluation. When you change the rule during the pilot, separate the results by revision. Otherwise a decline in would-block events might reflect weaker scope rather than improved decisions.

Select services with different delivery patterns. A frequently deployed frontend tests ordinary developer feedback. A scheduled worker shows what happens when approvals and deployments are separated by hours or days. A service with several maintained release lines tests baseline selection and exceptions. Give each service an owner who can review decisions against a realistic schedule.

Choose an observation window with enough normal work to exercise the rules. A quiet week can validate data capture without telling you how the rule behaves during a large rollout or hotfix. Add rehearsals for important paths the pilot did not observe, including an unavailable provider, a changed artifact after approval, and a rollback that returns a previously assessed version.

A report-only pilot still handles real release metadata. Capture identifiers, decisions, and references to authorized evidence. Avoid copying credentials, full logs, or unrelated internal details into a broadly readable report. Check retention and access before you send diagnostic payloads outside the release system. In the event of disagreement, authorized reviewers need a durable source record and a stable link to it.

Build a baseline that can survive branch and artifact changes

If the rule only applies to introduced risk, choose the comparison point explicitly. For a production deployment, the currently deployed release often provides a useful reference. A maintenance release may need a baseline from the supported line it updates. Record artifact identity and environment for both sides of the comparison so a gate verdict can be traced to what changed.

Compare equivalent scan scopes. A new analyzer configuration can detect a finding in an old package first seen during the pilot. That increases visibility and may deserve triage. Treating it as introduced by the pull request would misattribute the change. Cover detector version, scan profile, and analyzed platform where they affect the result. Use package identity and artifact evidence to separate changed dependencies from newly visible observations.

Document how the candidate policy handles an absent baseline. New services, rebuilt artifacts with missing history, and platform moves may have no valid prior observation. The pilot should reveal how often this happens and whether owners can repair the evidence. Where a release team has to make a risk decision, capture the state explicitly and link the applicable approval process. An unknown result needs its own status.

Record enough detail to review each would-block event

Use a compact record per evaluation. Keep the selected artifact, intended environment, policy revision, evaluated condition, reason, evidence link, next owner, and decision timestamp. When the verdict cites introduced risk, retain the baseline identity and how the evaluator matched the component or finding. When the verdict awaits evidence, record what is missing and which system or team can provide it.

Ask maintainers to review a sample soon after the evaluation. Show exactly what a developer or release operator would read if enforcement were active. Ask whether they can find the cause, name who controls the fix, and understand which release work is affected. A technically accurate rule can still fail this test if it points to a finding that appears only under an opaque scanner identifier.

Give each review a disposition that identifies what needs attention.

  • Correct and actionable means the verdict matches the policy and the responsible owner had enough information to act.
  • Correct, evidence unclear means the rule is sound but the output or source link needs repair before it can guide a release decision.
  • Outside intended scope means the gate applied to the wrong environment, artifact, change type, or baseline.
  • Indeterminate means the reviewer lacks the evidence to confirm the result.
  • Exception candidate means the evaluation is correct and a temporary authorized decision may be warranted.

A service owner can disagree with the severity or timing and still agree that the gate applied the written rule. Record those comments separately from rule correctness. This helps you decide whether to improve the evidence, revise the policy, or define a reviewed handling path for unusual deadlines. It also gives maintainers a concrete way to raise operational concerns before enforcement.

Interpret a fictional pilot

The table shows selected rows from an illustrative pilot. The candidate policy covers newly introduced high-priority findings in production artifacts, with a separate state for missing required evidence. These are examples of review outcomes rather than product or customer results.

ReleaseWhat the gate would reportReviewer evidencePilot action
Catalog deployWould block on introduced dependency findingArtifact and baseline prove the package entered in this releaseKeep rule and include package path in the message
Ledger maintenance deployWould block on newly detected base-image findingSame package appears in current and proposed deployments, scanner gained coverageAdjust matching and route inherited backlog for triage
Reports workerPending required attestationAttestation arrived for a different digest from the staged imageKeep pending and expose the supplied and expected artifact references
Preview deploymentWould block on production-only ruleTarget is staging and routing tags mapped it incorrectlyCorrect destination classification before approving enforcement
Checkout rolloutWould block on separately shipped API artifactStorefront can deploy under the release contract and retained its own passing evidenceHold only the API group in the candidate policy

Suppose thirty eligible evaluations include seven would-block verdicts. Five match the pilot rule and two are outside its intended scope. Record five of seven reviewed would-block verdicts as matching the rule and keep the denominator visible. That number describes the reviewed sample. It does not measure the probability that the gate catches every introduced finding. To learn about missed findings, review a separate sample of passing decisions and exercise known benign fixtures with expected policy results.

Also measure the time it takes to recognize and act on a result. Record the time from evidence availability to the verdict, and from the verdict to the owner identifying a next step. A rule that returns in under a minute can still hold a release for hours if nobody can determine the responsible team. For the ledger example, you could correct baseline attribution and replay the recorded inputs under a new policy revision before running another live observation period.

Review release-level counts alongside per-check counts. If a single outage causes a pending result for every service in the same release, those rows matter to each affected owner. The aggregate review should report both the number of evaluations affected and the number of distinct releases held in the rehearsal. Keep cancellations and retries linked to the original release revision so repeated evaluation attempts do not look like repeated production changes. This distinction helps the pilot owner decide whether to fix a single integration or revisit how the gate distributes evidence across service groups.

Practice what happens when the gate is enforced

A report-only gate cannot show whether an enforcing controller behaves as expected when it must deny, defer, or permit a release. Rehearse in a non-production target with controlled fixtures. Try one correct blocking outcome, one ordinary pass, one missing result, one mismatched artifact, and an approved exception whose scope is deliberately narrower than the whole release. If the release combines services, exercise the dependency rollup as well. Set policy-gate scope for a multi-service release.

Make the on-call path practical. The operator needs to find the decision, contact the right owner, retry a transient integration failure, and request a time-limited exception through an authorized process. Run the rehearsal with someone who did not implement the gate. Ask them to follow the actual release instructions and record any step that needs interpretation from the gate developer.

A good exception rehearsal shows both the permitted and held states. Approve a fictional advisory exception for one service, one artifact, and one environment. Confirm the controller keeps the neighboring artifact in its original state. Advance the test clock past expiration, or run an equivalent expired fixture, and check that the exception no longer affects the decision. Save the expected and actual record so the approver can review the scope.

Agree on how to safely return to observation if the new release control behaves differently from the rehearsal. Preserve the policy revision, the symptom that justifies the change, and the authorized person who can make the decision. Check that the former release controls still operate during that transition and that operators can see which mode is active. Capture the reason and fix the underlying evidence or workflow before attempting another enforcement start.

Decide which part is fit for enforcement

Treat “go live” as a scoped decision. A rule can be ready for one artifact type and still need work for another. Consider enforcement for a small set of services where responses are actionable, the evidence population is understood, and the service owners have rehearsed the operator path. Leave the other scope under observation with a named owner and specific evidence gaps to close.

Use acceptance criteria drawn from your actual risk and delivery targets. For example, require every reviewed would-block in a chosen pilot slice to link to the correct artifact, include a next action, and lead to the intended decision under enforcement rehearsal. Require the missing-evidence path and exception workflow to pass too. Set the threshold before the final review where practical. An explicit criterion lets a pilot owner explain why an impressive volume of evaluations still leaves one release path unready.

For a tool comparison, give shortlisted products the same release inputs and review their operator output when the exact artifact receives a new finding, a required check is unavailable, and an older finding stays unchanged. Compare evidence references, environment scope, policy revision history, and exception records. The Aikido comparison includes additional scanning and workflow questions for that evaluation.

Plan the first enforced change with a named approver, on-call owner, expected observation window, and rollback decision record. Review the first blocked release end to end. Confirm the artifact matches the evidence and that a maintainer can resolve or escalate the issue through the agreed route. Use the same criteria on early passes to check that the gate's behavior matches the intention in both directions.