Rollback judge
Read a public post-deploy monitor run and produce a bounded rollback, roll-forward, or escalation decision without performing the release action.
You’re reading version sha-8611090058bb. Go to the current version
Overview
Rollback Judge is a read-only review skill for post-deploy incidents. Its default runner fetches a public GitHub Actions deployment-monitor run at execution time, reads the deployment marker pinned to that run's commit, and compares the observed error rate with its threshold. A rollback can be approved only when the current monitor run failed and a separately supplied prior run proves a healthy version.
The skill never deploys, rolls back, publishes, calls a write API, or mints
authority. Its default graph emits a typed answer for the existing
release.publish.approval gate, then passes that answer to a mock release rail
inside the same run. The mock rail consumes approved:true and seals a release
advance result so the receipt proves the decision was consumed; a real release
skill or project-declared release interface would own any live downstream
effect.
In the manual
Runners
agent_reviewjudge
Declared by its execution profile. Read the profile
SKILL.md
Rollback Judge
Rollback Judge is a read-only review skill for post-deploy incidents. Its default runner fetches a public GitHub Actions deployment-monitor run at execution time, reads the deployment marker pinned to that run's commit, and compares the observed error rate with its threshold. A rollback can be approved only when the current monitor run failed and a separately supplied prior run proves a healthy version.
The skill never deploys, rolls back, publishes, calls a write API, or mints
authority. Its default graph emits a typed answer for the existing
release.publish.approval gate, then passes that answer to a mock release rail
inside the same run. The mock rail consumes approved:true and seals a release
advance result so the receipt proves the decision was consumed; a real release
skill or project-declared release interface would own any live downstream
effect.
Source Contract
deploy_signal.evidence.source_url must be a public GitHub Actions run API URL:
https://api.github.com/repos/<owner>/<repo>/actions/runs/<run-id>The judge fetches that URL during the run. It then uses the returned repository
and full head_sha to read current_version.marker_path from the immutable
commit on raw.githubusercontent.com. The marker must contain:
schema: rollback-judge.deployment-target.v1
service: checkout
version: 2026.07.15.4
health: degraded
signal_kind: error_rate_spike
metric:
name: http_5xx_rate
observed_percent: 18.4
threshold_percent: 2
window: 15m
incident: post-deploy http_5xx_rate exceeded the release thresholdFor rollback, prior_version.source_url must identify another completed monitor
run. The judge fetches its commit-pinned marker and accepts it as a target only
when the run concluded success, the marker is healthy, and its observed
metric does not exceed the threshold.
Decision Rules
- Roll back only when the live current run is completed with
failure, the current marker is unhealthy, and the measured error rate exceeds its threshold. - Locate the rollback target only through
prior_version.source_url; never use a hand-typed version or digest as proof of the prior release. - Roll forward only when a failing live monitor is present and
forward_fix_evidenceincludes test runs plus review signoff. - Hold and escalate when the run is incomplete, the workflow does not match, the API result contradicts the marker, the source cannot be read, the current signal is nonfailing, or the prior release is not proven healthy.
- Never accept
severity: criticalby itself as evidence of failure.
Typed Inputs
deploy_signal:{ severity, kind, evidence }; evidence carries the public monitorsource_urland optional expectedworkflow_name.current_version: deployment subject withserviceandmarker_path.monitor_run_ref: public HTML URL of the current monitor run. The judge verifies that it equals thehtml_urlreturned by the API before sealing; stock runx binds this trusted URL as the review act target.prior_version: rollback candidate with its own publicsource_urlandmarker_path.forward_fix_evidence:{ test_runs, review_signoff }.
Typed Output
decision:
action: rollback | roll_forward | hold
reason: string
version_target: object | null
escalation:
required: boolean
reason: string | null
missing_evidence: [string]
release_publish_approval:
gate_id: release.publish.approval
approved: boolean
reason: string
answer:
approved: boolean
reason: string
release_execution_result:
rail: mock-release
gate_id: release.publish.approval
consumed: boolean
advanced: boolean
target_ref: string
command_digest: string
review_record:
form: review
signal: { severity, kind }
evidence_used: [string]
refused: { reason: string | null }
source_read:
current: object
prior: object | nullsource_read records the API URL, fetched time, response SHA-256, ETag, monitor
run id, workflow, conclusion, commit SHA, public run URL, and the commit-pinned
deployment marker. release_execution_result records the same-run consumption
of release.publish.approval by the mock release rail and whether it advanced.
The sealed review act binds the derived decision, reason, release target, and
the consumed release effect; callers do not provide act_decision or
act_target_ref.
Run
Install the published package, then pass the four typed objects:
runx skill <owner>/rollback-judge@<version> --registry https://api.runx.ai --json \
--input-json deploy_signal='<json>' \
--input-json current_version='<json>' \
--input monitor_run_ref='https://github.com/<owner>/<repo>/actions/runs/<run-id>' \
--input-json prior_version='<json>' \
--input-json forward_fix_evidence='<json>'The package includes fixtures/critical-signal.json with public, immutable run
references. Hosted harness replays expected answers tied to those references so
it remains deterministic; the default judge runner used for dogfood performs
the network reads and the same-run mock release consumption. The contradictory
case receives no answer, stops with needs_agent, and emits no decision or
approval.
Published execution profile
The execution profile published with sha-8611090058bb, shown as its exact bytes.
| Runners |
|
|---|---|
| Profile digest | sha256:2a9aab0edd7c9ec137ea2ce8c59fcb904710d5dbdd38ca3f6fe8a3bcc9ecb593 |
skill: rollback-judge
version: 0.2.0
catalog:
kind: skill
audience: operator
visibility: public
role: canonical
category: ops
runners:
judge:
inputs:
deploy_signal:
type: object
required: true
description: Deploy signal with severity, kind, and evidence.source_url pointing to a public GitHub Actions monitor run.
current_version:
type: object
required: true
description: Current deployment subject with service and repository-relative marker_path.
monitor_run_ref:
type: string
required: true
description: Public HTML URL for the monitored run; the judge verifies it against the API response before sealing.
prior_version:
type: object
required: false
description: Rollback candidate whose source_url points to a completed, successful monitor run.
forward_fix_evidence:
type: object
required: false
description: Roll-forward evidence with test_runs and review_signoff.
policy:
guards:
- step: release
value: $steps.decide.release_publish_approval.approved
equals: true
steps:
- id: decide
label: read monitor and judge deploy signal
tool:
command: node
args:
- run.mjs
inputs:
deploy_signal: $input.deploy_signal
current_version: $input.current_version
monitor_run_ref: $input.monitor_run_ref
prior_version: $input.prior_version
forward_fix_evidence: $input.forward_fix_evidence
artifacts:
wrap_as: rollback_decision_packet
- id: release
label: consume release.publish.approval in mock release rail
tool:
command: node
args:
- release.mjs
inputs:
monitor_run_ref: $input.monitor_run_ref
release_publish_approval: $steps.decide.release_publish_approval
decision: $steps.decide.decision
act_target_ref: $steps.decide.act_target_ref
rollback_decision_packet: $steps.decide.rollback_decision_packet
artifacts:
wrap_as: release_execution_packet
agent_review:
inputs:
deploy_signal:
type: object
required: true
description: Deploy signal with severity, kind, and public source evidence.
current_version:
type: object
required: true
description: Current deployment subject and monitor reference.
monitor_run_ref:
type: string
required: true
description: Public HTML URL for the monitored run.
prior_version:
type: object
required: false
description: Candidate prior deployment and monitor reference.
forward_fix_evidence:
type: object
required: false
description: Roll-forward evidence with test_runs and review_signoff.
steps:
- id: agent_review
agent:
role: reviewer
task: rollback-judge
inputs:
deploy_signal: $input.deploy_signal
current_version: $input.current_version
monitor_run_ref: $input.monitor_run_ref
prior_version: $input.prior_version
forward_fix_evidence: $input.forward_fix_evidence
artifacts:
wrap_as: rollback_decision_packet
outputs:
act_decision:
required: false
act_reason:
required: false
act_target_ref:
required: false
decision:
required: false
escalation:
required: false
release_publish_approval:
required: false
review_record:
required: false
source_read:
required: false
default: true
harness:
cases:
- name: critical-signal-rollback
runner: agent_review
inputs:
deploy_signal:
severity: critical
kind: error_rate_spike
evidence:
source_type: github_actions_run
source_url: https://api.github.com/repos/RYDE-PLAY/frantic-102-rollback-judge/actions/runs/29393017505
workflow_name: Rollback Judge Deployment Monitor
current_version:
service: rollback-judge-demo
marker_path: public/deploy-target.json
source_url: https://api.github.com/repos/RYDE-PLAY/frantic-102-rollback-judge/actions/runs/29393017505
monitor_run_ref: https://github.com/RYDE-PLAY/frantic-102-rollback-judge/actions/runs/29393017505
prior_version:
service: rollback-judge-demo
marker_path: public/deploy-target.json
source_url: https://api.github.com/repos/RYDE-PLAY/frantic-102-rollback-judge/actions/runs/29392993457
forward_fix_evidence:
test_runs: []
review_signoff: null
caller:
answers:
agent_review:
act_decision: approve
act_reason: action=rollback reason=error_rate_critical target=2026.07.15.3 source=github-actions:29393017505
act_target_ref: runx:release:rollback-judge-demo@2026.07.15.3
decision:
action: rollback
reason: error_rate_critical
version_target:
version: 2026.07.15.3
digest: git:ab4d82d0f136bd4e5d3d9c7b2e1811e9a17005c9
source: prior_version.source_url
source_url: https://api.github.com/repos/RYDE-PLAY/frantic-102-rollback-judge/actions/runs/29392993457
escalation:
required: false
reason: null
missing_evidence: []
release_publish_approval:
gate_id: release.publish.approval
approved: true
reason: error_rate_critical
answer:
approved: true
reason: error_rate_critical
dispatch:
skill: release
answer_key: release.publish.approval
review_record:
form: review
signal:
severity: critical
kind: error_rate_spike
evidence_used:
- source_read.current
- source_read.prior
refused:
reason: null
source_read:
current:
run_id: 29393017505
run_url: https://github.com/RYDE-PLAY/frantic-102-rollback-judge/actions/runs/29393017505
conclusion: failure
head_sha: d118cae3bfbe30e1d65d021f8b3ae163166e6041
deployment_marker:
version: 2026.07.15.4
health: degraded
metric:
name: http_5xx_rate
observed_percent: 18.4
threshold_percent: 2
prior:
run_id: 29392993457
run_url: https://github.com/RYDE-PLAY/frantic-102-rollback-judge/actions/runs/29392993457
conclusion: success
head_sha: ab4d82d0f136bd4e5d3d9c7b2e1811e9a17005c9
deployment_marker:
version: 2026.07.15.3
health: healthy
metric:
name: http_5xx_rate
observed_percent: 0.4
threshold_percent: 2
expect:
status: sealed
receipt:
schema: runx.receipt.v1
operator_journeys:
- mode: standalone
confusors:
- release
- launch-guard
request: Decide whether to roll back after this deploy.
expected_outcome: Return a bounded rollback, roll-forward or escalation decision without acting on the release.
- mode: composed
request: Continue this rollback-judge work from evidence already gathered upstream.
expected_outcome: Return a bounded rollback, roll-forward or escalation decision without acting on the release.
prior_evidence:
- The post-deploy monitor run already read.
must_not_repeat:
- Do not perform the rollback.
- name: signal-contradictory-block
runner: agent_review
inputs:
deploy_signal:
severity: critical
kind: error_rate_spike
evidence:
source_type: github_actions_run
source_url: https://api.github.com/repos/RYDE-PLAY/frantic-102-rollback-judge/actions/runs/29392993457
workflow_name: Rollback Judge Deployment Monitor
observed_conclusion: success
contradiction: critical label conflicts with a successful monitor run
current_version:
service: rollback-judge-demo
marker_path: public/deploy-target.json
source_url: https://api.github.com/repos/RYDE-PLAY/frantic-102-rollback-judge/actions/runs/29392993457
monitor_run_ref: https://github.com/RYDE-PLAY/frantic-102-rollback-judge/actions/runs/29392993457
prior_version:
service: rollback-judge-demo
marker_path: public/deploy-target.json
source_url: https://api.github.com/repos/RYDE-PLAY/frantic-102-rollback-judge/actions/runs/29392993457
forward_fix_evidence:
test_runs: []
review_signoff: null
expect:
status: needs_agent
Published package and test evidence.
This exact version passed its recorded harness run: 2 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | sha-8611090058bb |
| Recorded result | 2 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 2 |
| Test record | Open the recorded run |
Inspect receipt references
sha256:3ceee1fd141098af9b3db5ca759fd7e374601e50022f02e309e09af37823db71sha256:b3a1b50679492eacfb696d09f84ba4bdb73fa50ae52b1805bd21f8f4a17c5e4aPackage identity
| Published revision | sha-8611090058bb |
|---|---|
| Content digest | sha256:8611090058bb0aa27a0f45a79f701a43edd57e5ce60c6eeedca5921763143b98 |
| SKILL.md digest | sha256:40120a4f3255709321f986a601a8445409c52e17fdcf1aed97ab8298dabea9f6 |
| Execution profile digest | sha256:2a9aab0edd7c9ec137ea2ce8c59fcb904710d5dbdd38ca3f6fe8a3bcc9ecb593 |
| Publisher identity | Unverified publisher · RYDE |
| Trust tier | CommunityPublished through the registry without publisher verification. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
sha-37e9916ec48eContent digest sha256:37e9916ec48e84164f7143608ab898ffb9095fb67f41276dd91d3c2c6968e2a4sha-8611090058bbViewingContent digest sha256:8611090058bb0aa27a0f45a79f701a43edd57e5ce60c6eeedca5921763143b98sha-6736942c49b6Content digest sha256:6736942c49b6100ab2a6feb8336ac4567b50501159e8830a8a4a22d388d8ef7fsha-b426ad0c2f58Content digest sha256:b426ad0c2f588f227404c6f4a6c83f42793df9d5bfb27cf3bdfb75a450f29866