Skip to content

test(release): restore native candidate discovery clock - #137634

Closed
vincentkoc wants to merge 1 commit into
mainfrom
fix/frv-candidate-reuse-clock-20260904
Closed

vincentkoc wants to merge 1 commit into
mainfrom
fix/frv-candidate-reuse-clock-20260904

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

#137633 pinned child time to keep fixed-expiry candidate fixtures from aging out. #137456 subsequently made the CLI fixture creation and expiry timestamps coherent with current Date.now(), but retained the old static SCRIPT_ARGS clock preload. That left child discovery on frozen time and prevented bounded deadline accounting from advancing.

Canonical Fix

Remove the obsolete clock preload. SCRIPT_ARGS now invokes scripts/full-release-candidate-reuse.mjs directly, so dynamically created fixture timestamps and child discovery share native time. Candidate age remains coherent and discovery deadlines advance normally.

Production candidate policy and release behavior are unchanged.

Evidence

  • Focused owner test on exact head: node scripts/run-vitest.mjs test/scripts/full-release-candidate-reuse.test.ts --reporter=dot - 30/30 passed.
  • oxfmt, targeted oxlint, and git diff --check passed.
  • Test audit: existing owner assertions are unchanged; no duplicate test, timeout increase, or production seam.
  • Fresh P0-P2 diff-scoped autoreview of the revised effective diff: scoped-clean, no actionable findings.
  • Production LOC: +0/-0. Test fixture: +1/-6.

ClawSweeper Disposition

The prior option-1 disposition from #137634 (comment) was superseded by #137456's dynamic fixture timestamps. This head changes behavior beyond a mechanical rebase, so a fresh exact-head ClawSweeper review is required before landing.

Run https://github.com/openclaw/openclaw/actions/runs/33825317231 exercised the obsolete 393e1a6 design and is not landing evidence. One fresh exact-head CI graph remains required.

No config, schema, protocol, dependency, or release behavior changes.

@vincentkoc vincentkoc self-assigned this Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 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 size: S maintainer Maintainer-authored PR labels Sep 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 3, 2026 23:02
@vincentkoc
vincentkoc force-pushed the fix/frv-candidate-reuse-clock-20260904 branch from ca8403b to d10461a Compare September 3, 2026 23:14
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 3, 2026, 9:47 PM ET / September 4, 2026, 01:47 UTC.

ClawSweeper review

What this changes

The branch removes a fixed Date.now() preload from the release-candidate reuse test so its spawned script uses the native clock.

Regression provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 1 item remains

The patch correctly reunifies the CLI test with the native clock that owns discovery deadlines. Keep this MEMBER-authored, maintainer-labeled PR open for explicit maintainer handling.

Priority: P3
Reviewed head: 74aa691ee982188e2049f932e43518cd20eb639f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, net-negative test repair with source-backed timing alignment and no correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored PR changes only a deterministic test invocation; contributor real-setup proof is not required.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored PR changes only a deterministic test invocation; contributor real-setup proof is not required.
Evidence reviewed 6 items Introduced test entry: The exact PR hunk removes only the static Node preload, making the spawned reuse script run directly.
Deadline owner uses native time: The CLI establishes its bounded discovery deadline from Date.now(), so a fixed child clock prevented its deadline accounting from advancing.
Candidate eligibility uses the same clock: Candidate filtering defaults now to native time and requires more than 14 hours of remaining artifact lifetime.
Findings None None.
Security None None.

How this fits together

The release-candidate reuse script searches GitHub Actions artifacts and rejects candidates that cannot survive the remaining release-validation window. Its tests synthesize trusted artifact metadata and invoke the real CLI through a fake GitHub client.

flowchart LR
  A[Candidate request] --> B[Discovery CLI]
  B --> C[Time budget and artifact lookup]
  C --> D[Trusted candidate checks]
  D --> E[Release validation reuse]
  F[Test artifact fixtures] --> B
Loading

Before merge

  • Resolve review confidence - ClawSweeper must reach high confidence before merge readiness is known.
Agent review details

Security

None.

PR surface

Tests -5. Total -5 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 6 -5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 6 -5

Review metrics

Metric Value Why it matters
Production vs test delta production +0/-0; tests +1/-6 The PR deletes a test-only clock override and does not alter release runtime behavior.

Technical review

Best possible solution:

Keep the test child on native time while its real-time CLI fixtures retain a bounded future artifact lifetime.

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

Yes—source shows the child CLI computes its deadline from Date.now(), while the revised subprocess fixtures create artifact timestamps from native time.

Is this the best way to solve the issue?

Yes—the obsolete preload is at the test entrypoint that caused the clock split, so deleting it restores one clock without changing production code.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a test-harness reliability repair with no user-facing runtime change.
  • 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: This MEMBER-authored PR changes only a deterministic test invocation; contributor real-setup proof is not required.

Evidence

What I checked:

Likely related people:

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

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.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-03T23:22:33.251Z sha d10461a3cbaebb38b009b3b56d57f2a536311105 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-04T00:10:56.204Z sha 839767a :: blocked before merge. :: none
  • reviewed 2026-09-04T01:29:51.881Z sha 393e1a6ae06fec00f4257a791845871ceca9a0e0 :: needs maintainer review before merge. :: none

@RomneyDa

RomneyDa commented Sep 3, 2026

Copy link
Copy Markdown
Member

@clawsweeper re-review\n\nRebased onto current main and resolved the clock conflict through the existing SCRIPT_ARGS seam. The fixture clock now advances from fixture NOW by real elapsed time, preserving discovery-deadline semantics; focused 30/30 test, oxlint, oxfmt, diff check, and scoped autoreview are green.

@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper assist is taking a look at your question.

I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes.

Request: re-review\n\nRebased onto current main and resolved the clock conflict through the existing SCRIPT_ARGS seam. The fixture clock now advances from fixture NOW by real elapsed time, preserving discovery-deadline semantics; focused 30/30 test, oxlint, oxfmt, diff check, and scoped autoreview are green.

@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper assist: The prior review is stale after the rebase; this request needs a full correctness re-review.

Evidence:

  • Prior review covered d10461a3…; current head is 839767a7….
  • The change updates the fixture clock in test/scripts/full-release-candidate-reuse.test.ts.
  • Maintainer reports the focused 30/30 test and scoped checks passed.

Suggested next action: request a full review with @clawsweeper review.


Source: #137634 (comment)
Assist reasoning: high.

@RomneyDa

RomneyDa commented Sep 3, 2026

Copy link
Copy Markdown
Member

@clawsweeper review

Exact-head b839 changes fixture clock behavior after the prior d104 review. Please run the full correctness review; focused candidate-reuse test, format/lint, and scoped autoreview are green. The current CI failures are independent: pnpm registry 504, known security advisory timeout, and a current-main daemon test red in an untouched source shard.

@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc
vincentkoc force-pushed the fix/frv-candidate-reuse-clock-20260904 branch from 393e1a6 to 74aa691 Compare September 4, 2026 01:36
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head 74aa691ee982188e2049f932e43518cd20eb639f. #137456 superseded the prior clock design: this head removes the obsolete static child clock so dynamic fixture timestamps and discovery deadlines share native time. The PR body contains the revised rationale and focused 30/30 proof.

1 similar comment
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head 74aa691ee982188e2049f932e43518cd20eb639f. #137456 superseded the prior clock design: this head removes the obsolete static child clock so dynamic fixture timestamps and discovery deadlines share native time. The PR body contains the revised rationale and focused 30/30 proof.

@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc vincentkoc changed the title test(release): freeze candidate reuse fixture clock test(release): restore native candidate discovery clock Sep 4, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Superseded by #137938, landed as 6e8a0b4.

That merged change contains this PR's exact native-clock removal and the broader coherent candidate-reuse fixture cleanup, with exact-head proof. Closing this duplicate; no branch rebase or rerun is needed.

@vincentkoc vincentkoc closed this Sep 4, 2026
@RomneyDa
RomneyDa deleted the fix/frv-candidate-reuse-clock-20260904 branch October 22, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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.

2 participants