delivery-operator (opus; no Edit, Write, NotebookEdit or Agent) is the verify-stage lead. After a human approves and merges, it reads the delivery doc at the merge commit's first parent, proves its kubeconfig cannot write (four auth can-i probes), loads the routed tool skills and runs delivery-verify. It posts the operator report as its own comment, then the final Handoff (Next command none on pass). delivery-verify: - stops first if the change was already reverted; - waits for Flux through flux-diagnose's Applied check (15-minute cap) and reads post-merge CI per workflow through delivery-ci-checks (45-minute cap), accepting a later cumulative run as cover; - checks the PR's post-merge assertions with Read-tier commands only; - ties a failure to the change only when that is established, and otherwise stops. A tied failure opens a revert PR (Ready for Human, built in a temporary worktree); it never reverts on its own. For Flux the guarantee is bounded: the merge commit applied and the inventory HelmReleases are Ready. The assertions prove a values or chart change took effect. The delivery doc format gains a seventh parsed section, Post-merge checks (glob -> push-event status names, or none when Flux pulls the change), so delivery-repo-doc goes to 0.2.0. delivery-ci-checks takes a caller check list and wait cap; delivery-handoff carries the verify stops. delivery 0.6.0. Refs: #194 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
3.1 KiB
3.1 KiB
The operator report
A plain comment on the merged PR, posted before the stage's Handoff comment. It has no ##
headings, so the inbound check never mistakes it for a Handoff comment. Run mode may later parse
it, so the shape is fixed.
Rules
- First line exactly
Delivery verify: pass,Delivery verify: failorDelivery verify: stopped, matching the verdict. Nothing before it. - Then the six bullets below, verbatim labels, in this order, each present. An empty one holds
none. - Applied commit is the newest of the applied commits: the merge commit when a check passed
on it, each covering commit, and each Kustomization's applied revision. Newest means the one
the others are ancestors of (
rtk git merge-base --is-ancestor).nonewhen nothing applied before a stop, or when no path needed applying. - On
pass, Result names every openrevert/pr-<n>PRreferences/already-reverted.mdfound, so the human closes it: "pass; close leftover revert PR ". - Verification has one nested line per post-merge check, per Kustomization waited on and per
assertion, each ending
pass,failorunverifiable: <why>, orpendingfor a check still pending when the run ended. Afailaddstiedoruntiedand its one-line reason. A check passing only on a later commit adds "covered by<short SHA>". A Kustomizationpassclaims only the bounded Flux guarantee inSKILL.mdStep 3; whether a chart or values change took effect is its assertion lines'. - A check, Kustomization or assertion the run never reached (a stop came first) is left out of
Verification;
Resultnames the stop. - Links only, never pasted logs. Every link is absolute.
Template
Delivery verify: <pass|fail|stopped>
- Applied commit: [`<short SHA>`](<commit URL>) — <merge commit|covering commit|Flux applied revision> | none
- Trigger: <how it applied: "post-merge CI", "Flux pull", both, or "nothing to apply">
- Result: <one line: what happened, or the stop reason>
- Change summary: <one line from the PR title and its changed paths>
- Verification:
- check `<exact status name>`: <pass|pass — covered by `<short SHA>`|fail tied|fail untied — <reason>|pending> — [job](<URL>)
- Kustomization `<namespace>/<name>`: <pass|fail tied|fail untied — <reason>|unverifiable: <why>> at `<short SHA>`
- "<criterion>" — <statement>: <pass|fail tied|fail untied — <reason>|unverifiable: <why>>
- Output links: [PR #<n>](<URL>), [<run or job>](<URL>), [revert PR #<m>](<URL>)
Example
Delivery verify: fail
- Applied commit: [`9f3c2ab`](https://git.example.org/acme/infra/commit/9f3c2ab4d1e0) — merge commit
- Trigger: Flux pull
- Result: HelmRelease gotify not Ready after apply; revert PR opened
- Change summary: Bump gotify chart to 1.2.3 (`clusters/home/apps/gotify/`)
- Verification:
- Kustomization `flux-system/apps`: fail tied — HelmRelease gotify upgrade failed at `9f3c2ab`
- "Gotify runs the new chart" — HelmRelease gotify at chart 1.2.3: fail tied — Ready False
- Output links: [PR #42](https://git.example.org/acme/infra/pulls/42), [revert PR #43](https://git.example.org/acme/infra/pulls/43)