Skip to content

fix(ci): report full release decisions sooner - #135076

Merged
steipete merged 1 commit into
mainfrom
codex/release-observer-cadence
Sep 1, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/release-observer-cadence

Conversation

@steipete

@steipete steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Full release verification can leave operators waiting up to 15 minutes after a result becomes available. The SHA-pinned helper uses the same delay for parent status, decision downloads, detailed progress, and run discovery.

Why This Change Was Made

Check parent status and exact-attempt decision metadata every two minutes, while keeping full progress-job reads at least 15 minutes apart. Download decisions only after the named artifact appears, retain validated passing decisions for that attempt, and reset readiness when the attempt changes. Discovery uses bounded 30/60/120-second backoff.

Metadata is only a readiness hint. Downloaded decisions still require the existing identity validation; parent completion and the strict evidence verifier still own success and temporary-ref cleanup. The 12-hour deadline, failure handling, diagnostic drain, and frozen Code/Tooling identities are unchanged. No new configuration or workflow dispatch is added.

User Impact

Release operators get results sooner without downloading an absent artifact on every observation. This reduces observation delay, not test execution time. Each regular iteration makes at most two metadata requests; cache and network latency remain additional. Application behavior is unchanged.

Evidence

  • Existing CLI fixture reproduced seven intended regressions before the fix (33 passing); all 46 final tests pass.
  • Coverage includes prompt discovery, sparse detailed progress, bounded request counts, transient HTTP 503 recovery, permanent denial, malformed/expired metadata, queued status regression, attempt changes, wrong-attempt payload rejection, and retained refs after a blocking decision.
  • The actual changed-file gate passed, including script/test typechecks, targeted lint, and guards. Managed Codex review completed scoped-clean at P0 with no findings.
  • One read against a completed historical run confirmed GitHub's exact-name artifact filter. No new full release run was dispatched for this change, and the current frozen verification run was left untouched.

The owner is the existing SHA-pinned dispatch helper. The previous coupled polling delay is replaced rather than adding a second watcher. Tooling delta: +61/-16 (net +45), required for readiness tracking and separating metadata from downloads; tests +258/-12, docs +12/-8; application runtime delta zero. Existing generic GitHub watchers do not observe validated Release Decision artifacts while diagnostics continue, so they cannot replace this helper's release contract.

@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 1, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 6:04 AM ET / 10:04 UTC.

ClawSweeper review

What this changes

The PR polls a SHA-pinned Full Release Validation run and its decision-artifact metadata every two minutes, while retaining 15-minute detailed progress reads and bounded discovery backoff.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep this maintainer-owned release-automation PR open for normal maintainer review. The introduced state machine changes the correct observer and has focused boundary coverage; no concrete patch defect was found.

Priority: P3
Reviewed head: 61455799ab3d35a90548a073a843cd43400b98db
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused and has strong owner-boundary fixture coverage, with one externally unverified GitHub API filter contract.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable: this is a maintainer-owned internal release-observer change, so the external-contributor proof gate does not apply; the supplied CLI fixture coverage is supplemental evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable: this is a maintainer-owned internal release-observer change, so the external-contributor proof gate does not apply; the supplied CLI fixture coverage is supplemental evidence.
Evidence reviewed 6 items Current behavior and introduced owner change: The pre-PR helper used one 15-minute interval for status observation, decision downloads, and progress reads; the introduced state machine separates decision readiness from sparse progress reads.
Artifact producer and validation boundary: The workflow publishes an immutable artifact named by parent run and attempt, while the helper validates parent run ID, attempt, and tooling SHA after download.
Caller and sibling reader: The documented release path invokes this helper; the release summary reader independently consumes the same artifact contract, so retaining validation in this helper avoids adding a parallel watcher.
Findings None None.
Security None None.

How this fits together

The release-validation helper dispatches a SHA-pinned GitHub Actions run, observes its parent status and decision artifact, then reports the outcome and verifies evidence before removing temporary refs. This change affects how quickly release operators learn a validated blocking decision.

flowchart LR
  A[Release operator] --> B[SHA-pinned validation helper]
  B --> C[GitHub Actions parent run]
  C --> D[Decision artifact metadata]
  D --> E[Validated release decision]
  C --> F[Sparse progress reporting]
  E --> G[Operator outcome and ref cleanup]
Loading

Decision needed

Question Recommendation
Should this maintainer-owned release-observer cadence change land after the GitHub artifact-filter contract is confirmed and exact-head CI completes? Land after contract confirmation: Confirm the exact-name artifact filter on a completed parent run and accept the two-minute observer cadence once exact-head CI is green.

Why: The change intentionally trades additional lightweight GitHub metadata reads for earlier release decisions, and the protected maintainer workflow requires an explicit human landing judgment.

Before merge

  • Resolve merge risk (P1) - The new artifact-name REST filter could not be independently checked against GitHub in this review environment because GitHub DNS resolution failed; it is an automation-contract gap, not missing contributor proof.
  • Resolve merge risk (P1) - The automation implementation grows by 45 net production/tooling lines; the split readiness state is bounded and explained, but maintainers should confirm it remains the least-growth owner-boundary shape.
  • Complete next step (P2) - No mechanical repair is indicated; the remaining action is maintainer acceptance of the release-observer polling tradeoff and normal exact-head CI gating.
Agent review details

Security

None.

PR surface

Tests +246, Docs +4, Other +45. Total +295 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 258 12 +246
Docs 1 12 8 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 1 61 16 +45
Total 3 331 36 +295

Review metrics

Metric Value Why it matters
Production versus test delta production/tooling +45 net (+61/-16); tests +246 net (+258/-12); docs +4 net (+12/-8) The added state tracking separates readiness from progress polling and is accompanied by substantially broader CLI-boundary coverage.

Stored data model

Persistent data-model change detected: serialized state: scripts/full-release-validation-at-sha.mts, unknown-data-model-change: scripts/full-release-validation-at-sha.mts, vector/embedding metadata: scripts/full-release-validation-at-sha.mts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Confirm the artifact filter before merge (recommended)
    Verify the GitHub Actions artifact endpoint returns the exact named artifact for a completed release-validation run before accepting the faster polling path.
  2. Retain the current polling policy
    Pause this PR if maintainers do not want the additional two-minute metadata reads in the release observer.

Technical review

Best possible solution:

Keep the single SHA-pinned observer, confirm the exact artifact-name filter against a completed GitHub Actions run, and land only after exact-head CI completes.

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

No live current-main run was performed in this read-only review; source inspection and the focused fixture establish a clear, source-reproducible 15-minute coupled-polling path.

Is this the best way to solve the issue?

Yes. The change keeps the behavior in the existing SHA-pinned observer, preserves authoritative payload validation, and avoids adding a second release watcher.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against e2eb6a694d0b.

Labels

Label changes:

  • add P3: This is a bounded release-operator responsiveness improvement with no application-runtime behavior change.
  • add merge-risk: 🚨 automation: The PR changes GitHub Actions observation cadence and depends on artifact metadata before downloading a release decision.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable: this is a maintainer-owned internal release-observer change, so the external-contributor proof gate does not apply; the supplied CLI fixture coverage is supplemental evidence.

Label justifications:

  • P3: This is a bounded release-operator responsiveness improvement with no application-runtime behavior change.
  • merge-risk: 🚨 automation: The PR changes GitHub Actions observation cadence and depends on artifact metadata before downloading a release decision.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable: this is a maintainer-owned internal release-observer change, so the external-contributor proof gate does not apply; the supplied CLI fixture coverage is supplemental evidence.

Evidence

What I checked:

  • Current behavior and introduced owner change: The pre-PR helper used one 15-minute interval for status observation, decision downloads, and progress reads; the introduced state machine separates decision readiness from sparse progress reads. (scripts/full-release-validation-at-sha.mts:35, ae47b343bd32)
  • Artifact producer and validation boundary: The workflow publishes an immutable artifact named by parent run and attempt, while the helper validates parent run ID, attempt, and tooling SHA after download. (.github/workflows/full-release-validation.yml:1635, 61455799ab3d)
  • Caller and sibling reader: The documented release path invokes this helper; the release summary reader independently consumes the same artifact contract, so retaining validation in this helper avoids adding a parallel watcher. (package.json:1587, 61455799ab3d)
  • Focused boundary coverage: The fixture covers status regression, attempt changes, blocker reporting during diagnostic drain, unavailable/malformed metadata, and sparse progress reads at the CLI boundary. (test/scripts/full-release-validation-at-sha.test.ts:988, 61455799ab3d)
  • Area history: Recent merged work on this exact script, documentation, and test includes polling-before-artifact and bounded-cadence changes, supporting the routing candidates below. (scripts/full-release-validation-at-sha.mts:35, 72b06b00771a)
  • GitHub API contract limitation: The introduced artifact-name filter is a direct GitHub REST dependency. A live contract probe could not run because DNS resolution for GitHub failed; the PR body records a historical exact-name check, but it was not independently inspectable here. (scripts/full-release-validation-at-sha.mts:685, 61455799ab3d)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Attach or link a redacted completed-run response demonstrating the exact artifact-name filter before merge.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Resolved the remaining review items before landing on the unchanged head 61455799ab3d35a90548a073a843cd43400b98db.

The completed-run probe used the exact endpoint repos/openclaw/openclaw/actions/runs/33442207246/artifacts?per_page=100&name=full-release-decision-33442207246-1. Its projected response was:

{"total_count":1,"artifacts":[{"id":9777101851,"name":"full-release-decision-33442207246-1","expired":false,"run_id":33442207246,"head_sha":"d410677110e41918c341056793d4c38740d9cf00"}]}

This confirms the name filter against a completed historical parent; it does not claim that historical run passed. The response contains only public run/artifact metadata. The artifact endpoint's documented name filter and the normal cache route were also checked.

The +45 tooling-line tradeoff is accepted under the requested release-verification speedup: readiness belongs to this one observer, metadata stays bounded, downloads are deferred until needed, and passing state is retained only for its exact attempt. Merely reducing the old timer would repeat expensive downloads; a generic watcher would lose validated early decisions. There is no persisted data, schema, vector, embedding, or model change—the added state is local to the running observer.

Exact-head CI 33494985655 and required gate 99817245798 passed. All 46 focused tests, the changed-file gate, and managed Codex review passed. The local watch command hit a final metadata-pagination limit; a separate exact-run/gate read confirmed success, and no CI retry was performed.

@steipete
steipete merged commit c189838 into main Sep 1, 2026
186 checks passed
@steipete
steipete deleted the codex/release-observer-cadence branch September 1, 2026 10:10
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant