Report verified release failures without premature rejection #82

Merged
john merged 1 commit from fix/report-release-failure-stage into main 2026-11-27 08:50:37 +00:00
Owner

Problem

In AI CI run 360 yawn reported release rejected immediately after submission. Completed xyOps records show intake/admission passed, plan passed, and apply failed roughly two minutes later. The transient record seen by the broker was not preserved, so incomplete admission/action evidence is a plausible explanation, not a confirmed production race.

Draft

  • Treat missing intake code/admission/action link (or missing terminal code on the admitted child) as waiting within the existing poll deadline. Cancelled intake still reports cancelled; a terminal intake failure still reports rejected. Malformed or mismatched evidence does not authorize following a child. Require exact admission and admitted action ancestry before success; never resubmit.
  • On an admitted release failure, inspect only authoritative workflow child references, verify parent, event and node on each lookup, and walk only a unique failed branch. Bounded by 3 seconds, 24 lookups and 6 levels; ambiguous or unavailable evidence falls back to the release link. Emit only optional failed_job_id and an allowlisted failed_phase, no job logs, descriptions or app output. Clients use fixed text and validate job IDs.
  • Example: release apply step failed (changes may already be live): https://ops.yawn.dev/#Job?id=jmwynk1t5nigk48i. A verification error inside a combined apply worker is still an apply-step failure; distinguishing sub-stages will need a separate typed, non-secret worker result contract. The existing Arch ntfy notice is unchanged.

Verification

go test -race ./deploy, go test ./..., go vet ./deploy, and git diff --check passed locally. Tests cover late evidence, real intake rejection, a nested apply failure, ambiguous failure branches, and foreign child ancestry.

No version bump, merge, broker rollout, or consumer pin changes. Rollout after review: cut a CDK version, update and deploy the Arch broker, then update yawn pins in consumer repos to get the more specific CLI message. The broker can return the extra fields before consumers update; old clients ignore them.

## Problem In [AI CI run 360](https://code.yawn.dev/john/ai/actions/runs/360) `yawn` reported `release rejected` immediately after submission. Completed xyOps records show intake/admission passed, plan passed, and apply failed roughly two minutes later. The transient record seen by the broker was not preserved, so incomplete admission/action evidence is a plausible explanation, not a confirmed production race. ## Draft - Treat missing intake code/admission/action link (or missing terminal code on the admitted child) as `waiting` within the existing poll deadline. Cancelled intake still reports cancelled; a terminal intake failure still reports rejected. Malformed or mismatched evidence does not authorize following a child. Require exact admission and admitted action ancestry before success; never resubmit. - On an admitted release failure, inspect only authoritative workflow child references, verify parent, event and node on each lookup, and walk only a unique failed branch. Bounded by 3 seconds, 24 lookups and 6 levels; ambiguous or unavailable evidence falls back to the release link. Emit only optional `failed_job_id` and an allowlisted `failed_phase`, no job logs, descriptions or app output. Clients use fixed text and validate job IDs. - Example: `release apply step failed (changes may already be live): https://ops.yawn.dev/#Job?id=jmwynk1t5nigk48i`. A verification error inside a combined apply worker is still an apply-step failure; distinguishing sub-stages will need a separate typed, non-secret worker result contract. The existing Arch ntfy notice is unchanged. ## Verification `go test -race ./deploy`, `go test ./...`, `go vet ./deploy`, and `git diff --check` passed locally. Tests cover late evidence, real intake rejection, a nested apply failure, ambiguous failure branches, and foreign child ancestry. No version bump, merge, broker rollout, or consumer pin changes. Rollout after review: cut a CDK version, update and deploy the Arch broker, then update yawn pins in consumer repos to get the more specific CLI message. The broker can return the extra fields before consumers update; old clients ignore them.
fix(deploy): distinguish missing status from release failure
All checks were successful
CI / release-check-1 (pull_request) Successful in 12s
CI / release-check (pull_request) Successful in 0s
CI / checks (pull_request) Successful in 50s
3e6e3c0aec
john changed title from WIP: Report verified release failures without premature rejection to Report verified release failures without premature rejection 2026-11-27 08:50:33 +00:00
john merged commit 1761558104 into main 2026-11-27 08:50:37 +00:00
john deleted branch fix/report-release-failure-stage 2026-11-27 08:50:37 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
john/cdk!82
No description provided.