Skip to content

fix(release): keep diagnostic FRV blocks pending - #190041

Open
RomneyDa wants to merge 1 commit into
mainfrom
tideclaw/rri-348-frv-pending-outcome
Open

RomneyDa wants to merge 1 commit into
mainfrom
tideclaw/rri-348-frv-pending-outcome

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 1, 2026

Copy link
Copy Markdown
Member

Summary

  • Treat a validated blocked_diagnostics_running release decision as an active pending handoff instead of a failed release.
  • Print the exact parent run and pnpm frv watch --run <id> continuation command.
  • Preserve fatal behavior for terminal blockers, orchestration errors, and failed workflow conclusions.

Why

FRV can intentionally stop foreground polling once a release is blocked while diagnostic jobs continue draining. The release is still active in that state, but the CLI currently throws, prints FAILED, and exits 1. That misclassifies a recoverable pending release as a failed one.

Validation

  • pnpm exec vitest run test/scripts/full-release-validation-at-sha.test.ts --config vitest.config.ts -t "observes a validated blocker promptly"
  • pnpm exec vitest run test/scripts/full-release-validation-at-sha.test.ts --config vitest.config.ts -t "does not use wrong name metadata"
  • pnpm exec oxfmt --check scripts/full-release-validation-at-sha.mts test/scripts/full-release-validation-at-sha.test.ts
  • pnpm exec oxlint --type-aware scripts/full-release-validation-at-sha.mts test/scripts/full-release-validation-at-sha.test.ts
  • git diff --check

RRI-348

@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Nov 1, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR treats a validated diagnostic-drain blocker as a pending handoff and prints the command for watching its parent run.

Example: Parent run 123 is in progress with a validated blocked_diagnostics_running decision.

  • Before: The helper prints FAILED and exits 1.
  • After: The helper exits 0, retains the workflow ref, and prints pnpm frv watch --run 123.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) A useful, focused status correction with fixture coverage, blocked by a concrete terminal-failure regression.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied validation exercises the CLI with synthetic GitHub responses rather than a live release run.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators see FAILED when the helper intentionally hands off an active diagnostic drain.
Reason: The maintainer-authored direction makes the operator handoff accurate without adding configuration or changing publication policy.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-authored PR addresses misleading release status, but its pending return can hide an already completed workflow failure.

Priority: P2
Reviewed head: f861722e86088e98c52279f00489d70f79f4526d

Before merge

  • Preserve completed failures before returning pending (P2) - If the observer first reads a parent after it has completed with failure, its immutable decision artifact can still contain blocked_diagnostics_running: Release Decision uploads that early artifact once, while Diagnostic Drain publishes a separate manifest. This branch returns pending before the completed-conclusion check below, so the helper exits 0 and says the failed run remains active. The same masking applies to a cancelled parent retaining that artifact. Restrict this handoff to an active parent or evaluate terminal failure first, and add a completed/failure regression using the retained early decision.

Findings

  • [P2] Preserve completed failures before returning pending — scripts/full-release-validation-at-sha.mts:1828-1834

Tests

  • Missing end-to-end proof: No supplied shipped-CLI capture demonstrates the pending handoff or completed-failure precedence, and red-on-base execution is not shown.
Agent review details

How this fits together

The exact-SHA release helper dispatches and observes GitHub workflows, validates attempt-bound decisions, and verifies successful release evidence before deleting temporary refs.

flowchart TD
  A[Release operator] --> B[Exact SHA helper]
  B --> C[GitHub parent run]
  C --> D[Validated decision artifact]
  D --> E[Pending handoff]
  C --> F[Terminal conclusion]
  F --> G[Evidence verification and cleanup]
Loading

Technical review

Best possible solution:

Keep the existing observer and success gates, but return pending only for an active parent and preserve terminal failures with a focused regression.

Do we have a high-confidence way to reproduce the issue?

Source establishes both the existing active-run misclassification and the introduced completed-run failure masking; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The existing observer is the right owner and the change is otherwise focused, but the pending branch must respect the authoritative terminal parent status.

Full review comments:

  • [P2] Preserve completed failures before returning pending — scripts/full-release-validation-at-sha.mts:1828-1834
    If the observer first reads a parent after it has completed with failure, its immutable decision artifact can still contain blocked_diagnostics_running: Release Decision uploads that early artifact once, while Diagnostic Drain publishes a separate manifest. This branch returns pending before the completed-conclusion check below, so the helper exits 0 and says the failed run remains active. The same masking applies to a cancelled parent retaining that artifact. Restrict this handoff to an active parent or evaluate terminal failure first, and add a completed/failure regression using the retained early decision.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 31866655fd60.

Provenance checked

  • Early release decisions and foreground exit changes intended behavior with a stated reason (a2f0b84: Report decisive publication blockers promptly while unrelated diagnostics continue; later polling work retained immutable attempt-bound decisions.)
  • Success verification and temporary-ref cleanup keeps the original intent (51a0704: Retain workflow refs after unsuccessful or uncertain execution and delete them only after verified success.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test test/scripts/full-release-validation-at-sha.test.ts --maxWorkers=1
  • pnpm tsgo:scripts
  • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.root.tooling.json --incremental
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c189838 adds scripts/full-release-validation-at-sha.mts:758 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c189838914ce; files: scripts/full-release-validation-at-sha.mts)

PR surface

Tests +3, Other +13. Total +16 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 4 1 +3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 24 11 +13
Total 2 28 12 +16

Labels

Label changes:

  • add P2: The change affects advanced release-operator status handling, with independent publication checks limiting the blast radius.
  • add merge-risk: 🚨 automation: The introduced branch can make release automation exit successfully for an already failed workflow.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The change affects advanced release-operator status handling, with independent publication checks limiting the blast radius.
  • merge-risk: 🚨 automation: The introduced branch can make release automation exit successfully for an already failed workflow.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 31, 2026, 11:43 PM ET / November 1, 2026, 03:43 UTC.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XS status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants