Skip to content

fix(release): label carried FRV failures - #180232

Merged
RomneyDa merged 1 commit into
mainfrom
tideclaw/rri-119-carried-forward-attempt-labels
Oct 22, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
tideclaw/rri-119-carried-forward-attempt-labels

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • label prior-attempt failure rows against the effective FRV attempt
  • deduplicate failure notifications by run, source attempt, and job name
  • preserve fresh notifications for failures from a genuinely newer attempt

Why

After a single-job rerun, GitHub can expose carried-forward attempt-1 failures with new job IDs. frv watch treated those IDs as fresh failures and replayed them without saying they came from an older attempt. The watcher now identifies the durable job failure and explicitly labels carried rows.

Closes RRI-119.

Testing

  • pnpm exec vitest run test/scripts/frv.test.ts --silent (113 passed)
  • tooling test typecheck
  • oxlint and oxfmt checks
  • git diff --check

The focused watcher test covers both restart-time labeling and suppression of a replay after the effective attempt advances.

@clawsweeper

clawsweeper Bot commented Oct 22, 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: S labels Oct 22, 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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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 Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR labels carried-forward FRV failures and deduplicates notifications by run, source attempt, and job name.

Example: Run 101 advances to attempt 2 while GitHub returns an attempt-1 failure under a new job ID.

  • Before: The watcher announces the failure again without explaining that it belongs to the earlier attempt.
  • After: Previously reported failures are suppressed; a late-starting watcher labels the row as effective attempt 2, carried forward from attempt 1.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused implementation and meaningful regression support the repair, but saved-state upgrade compatibility is unproven and the required typecheck failure remains unattributed.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied validation exercises watchRelease with mocked GitHub responses.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators see old failures announced again after a rerun and cannot readily distinguish them from failures in the current attempt.
Reason: The change restores the watcher's established report-once contract, and the maintainer-authored PR supplies direction for this narrow repair.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open: this maintainer-authored PR addresses a watcher defect still present on main, with no definite introduced code bug found.

Priority: P2
Reviewed head: 11e2d3c481bad1bff86877dc15eec0c8191d6ae6

Before merge

  • Complete next step - Inspect the failed check-test-types-core-3 diagnostics, establish whether this PR caused the failure, and resolve the applicable required CI gate.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Supplied validation uses mocked GitHub reads; neither shipped-CLI behavior nor a base-red/head-green regression run is demonstrated.
Agent review details

How this fits together

The FRV CLI watcher reads parent dispatch logs and GitHub job snapshots, records notification identities locally, and emits release progress to operators.

flowchart LR
  A[FRV watch CLI] --> B[GitHub read client]
  B --> C[Parent dispatch logs]
  B --> D[Child attempt jobs]
  C --> E[Watcher polling]
  D --> E
  E --> F[Saved notification identities]
  E --> G[Operator progress output]
Loading

Technical review

Best possible solution:

Keep failure identity and historical labeling in the existing watcher, preserving correct behavior when resuming saved notification state.

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

Main's job-ID notification key explains replay when GitHub supplies a carried failure under a different ID; the supplied regression models that response, but no live GitHub reproduction was supplied or executed.

Is this the best way to solve the issue?

The patch is a focused repair using the existing formatter, polling loop, and deduplication set, with no unnecessary production architecture or redundant test group found.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Failure notifications and historical attempt scanning keeps the original intent (53ccbd1: The original watcher reported each failed job once across restarts and scanned previous attempts when started late.)
  • Non-advisory failure output keeps the original intent (63b125d: fix(release): require Windows Node validation to pass #163373 removed advisory Windows failure treatment and restored blocking validation policy.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Verified introduced change: The pinned introduction changes only failure identity, attempt labeling, its parent and child callers, and one watcher regression. (scripts/frv.mjs:3050, 11e2d3c481ba)
  • Current main retains the defect: Current main still identifies failure notifications using job ID alone and supplies the scanned attempt rather than the effective child attempt. (scripts/frv.mjs:3057, 461123273058)
  • Original watcher contract: feat(release): watch FRV children and rerun one child with a bounded budget #161516 introduced reporting failures once across restarts and scanning historical attempts for late-starting watchers. (scripts/frv.mjs:3030, 53ccbd1b7b1f)
  • Focused regression coverage: The added test exercises changed job IDs, suppression across watcher restarts, and historical labeling from a fresh state file using mocked GitHub reads. (test/scripts/frv.test.ts:2484, 11e2d3c481ba)
  • Saved notification compatibility: The persisted reported set is loaded unchanged, while notification keys change from job IDs to composite identities; the added test does not resume state written by the older implementation. (scripts/frv.mjs:3064, 11e2d3c481ba)
  • Unattributed required-check failure: The hosted core test-types step failed and the CI gate is red; annotations show only exit code 2, and the log download redirects to a host blocked by the review environment, so causality remains unestablished. (11e2d3c481ba)

Likely related people:

  • Peter Steinberger: Raw commit 53ccbd1 adds scripts/frv.mjs:2342 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 53ccbd1b7b1f; files: scripts/frv.mjs)
  • Dallin Romney: Raw commit f8239ea adds scripts/frv.mjs:2528 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f8239ea9470d; files: scripts/frv.mjs)

PR surface

Tests +45, Other +7. Total +52 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 45 0 +45
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 12 5 +7
Total 2 57 5 +52

Labels

Label changes:

  • add P2: Repeated and ambiguously labeled failure notifications confuse release operators, with limited impact outside FRV monitoring.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Repeated and ambiguously labeled failure notifications confuse release operators, with limited impact outside FRV monitoring.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Demonstrate resuming watch state written by the latest stable implementation, including previously reported parent and active-child failures.

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 21, 2026, 11:21 PM ET / October 22, 2026, 03:21 UTC.

@RomneyDa
RomneyDa merged commit 27c1d46 into main Oct 22, 2026
113 of 116 checks passed
@RomneyDa
RomneyDa deleted the tideclaw/rri-119-carried-forward-attempt-labels branch October 22, 2026 04:27
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S 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