Skip to content

fix(ci): frozen 2026.8.33 validation fails on inherited test clock - #159594

Merged
RomneyDa merged 2 commits into
mainfrom
fix/2026.8.33-frozen-test-clock
Sep 27, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
fix/2026.8.33-frozen-test-clock

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

+## What Problem This Solves

Fixes: the unchanged 2026.8.33 release candidate's fresh full-CI qualification fails when a session-state test inherits a pending heartbeat deadline from an earlier fake-clock origin.

User Impact

User impact: no product or candidate bytes change; release CI can revalidate the already-passing v2026.8.33 candidate without dropping the affected test file.

Why This Change Was Made

The frozen candidate predates the test-only clock repair from bdf5d9939abf8262a247e73a1fa8b6c202bd77e8, while current trusted workflow tooling still executes the candidate-owned test bytes. This adds an exact-SHA compatibility action for f773aa06a1a93b36b050f1a3f4b57d3d91311541 that replays only that upstream test repair before Node shards run.

The action verifies the checked-out SHA, requires every attested source fragment exactly once (plus three repeated drains), and fails closed on drift. Other candidates and current main are unaffected.

ClawSweeper's stored-data-model prompt does not apply: this changes only transient CI test bytes in an Actions workspace. It adds no schema, migration, serialized state, persistence, or upgrade contract.

Root cause: a fixed 21-second pre-drain does not exhaust deadlines created under a previous fake-clock origin. Architectural owner: frozen-target CI compatibility tooling. Canonical repair: carry forward the already-landed test-only regression fix while keeping the release candidate/runtime immutable. Removed paths: none. Product LOC delta: 0; release-tooling/config delta: +165; regression-test delta: +95.

Evidence

@clawsweeper

clawsweeper Bot commented Sep 27, 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.

@RomneyDa
RomneyDa marked this pull request as ready for review September 27, 2026 10:24
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 27, 2026, 6:57 AM ET / 10:57 UTC (Revision 2).

ClawSweeper review

What this changes

Adds a trusted CI action that adjusts one frozen candidate's session-state timer test before Node validation, plus a guard test and tooling registration.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this PR open. Current main has the timer-test repair, but the immutable 2026.8.33 candidate still has the older test, and current main lacks a compatibility step for its validation. The exact-target CI job reached the new action and its previously failing Node shard passed.

Priority: P2
Reviewed head: ffb9f985357481d4a6e8754bc0e9a1b18edd83f9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The exact-target workflow gives strong boundary proof, and the guarded one-candidate repair is coherent.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The changed CI action runs before candidate Node shards. The PR body records the failing candidate test before repair, and the linked exact-head workflow's job API confirms the action and formerly failing shard both succeeded afterward; the full workflow had not finished when checked. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The changed CI action runs before candidate Node shards. The PR body records the failing candidate test before repair, and the linked exact-head workflow's job API confirms the action and formerly failing shard both succeeded afterward; the full workflow had not finished when checked. No stored-data contract changes.
Evidence reviewed 8 items Pinned workflow change: The introduced workflow step runs from the trusted harness only when the selected checkout revision equals the frozen candidate SHA, before the Node test shard.
Source and checkout guards: The action verifies the checkout SHA and expected source fragments before rewriting the candidate test file.
Frozen candidate source: The pinned candidate's session-state test still uses the fixed 21-second pre-drain. The local partial clone could not supply this historical blob, so its contents were inspected through the target repository's GitHub contents API.
Findings None None.
Security None None.

How this fits together

Full Release Validation checks a pinned release candidate using the current CI workflow and a separate trusted harness. Node shards run the candidate's tests and report qualification results.

flowchart LR
A[Full Release Validation] --> B[Candidate revision]
B --> C{Exact frozen candidate?}
C -->|Yes| D[Trusted test correction]
C -->|No| E[Node test shard]
D --> E
E --> F[Qualification result]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +95, Config +163, Other +2. Total +260 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 95 0 +95
Docs 0 0 0 0
Config 3 163 0 +163
Generated 0 0 0 0
Other 1 2 0 +2
Total 5 260 0 +260

Review metrics

Metric Value Why it matters
Frozen compatibility scope 1 candidate SHA; 1 test file; 4 timer drains The pinned scope bounds the release-CI exception.
Guard-test cost 2 tests; 2.42 s single-worker wall The reported cost stays within the repository's per-file target.

Stored data model

Persistent data-model change detected: migration/backfill/repair: .github/actions/frozen-node-test-compat/action.yml, serialized state: .github/actions/frozen-node-test-compat/apply.mjs, unknown-data-model-change: .github/actions/frozen-node-test-compat/apply.mjs. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Qualify the unchanged candidate runtime with a narrowly attested correction to its obsolete test-only clock setup.

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

Yes. The frozen source retains the old timer drain, and the earlier exact-target CI job failed in the affected shard; I did not rerun the candidate locally.

Is this the best way to solve the issue?

Yes. The correction runs in trusted CI, checks the exact candidate and source shape, and leaves the release commit and runtime unchanged.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed CI action runs before candidate Node shards. The PR body records the failing candidate test before repair, and the linked exact-head workflow's job API confirms the action and formerly failing shard both succeeded afterward; the full workflow had not finished when checked. No stored-data contract changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This repairs a limited release-validation failure without changing product behavior.
  • merge-risk: 🚨 automation: The PR changes trusted release CI to rewrite a pinned candidate test before qualification; SHA and source guards plus an exact-target run bound that risk.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The changed CI action runs before candidate Node shards. The PR body records the failing candidate test before repair, and the linked exact-head workflow's job API confirms the action and formerly failing shard both succeeded afterward; the full workflow had not finished when checked. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed CI action runs before candidate Node shards. The PR body records the failing candidate test before repair, and the linked exact-head workflow's job API confirms the action and formerly failing shard both succeeded afterward; the full workflow had not finished when checked. No stored-data contract changes.

Evidence

What I checked:

  • Pinned workflow change: The introduced workflow step runs from the trusted harness only when the selected checkout revision equals the frozen candidate SHA, before the Node test shard. (.github/workflows/ci.yml:4404, ffb9f9853574)
  • Source and checkout guards: The action verifies the checkout SHA and expected source fragments before rewriting the candidate test file. (.github/actions/frozen-node-test-compat/apply.mjs:103, ffb9f9853574)
  • Frozen candidate source: The pinned candidate's session-state test still uses the fixed 21-second pre-drain. The local partial clone could not supply this historical blob, so its contents were inspected through the target repository's GitHub contents API. (src/sessions/session-state-events.test.ts:198, f773aa06a1a9)
  • Mainline timer repair: Merged commit bdf5d99 added the prior-clock case and full pending-timer drain that the compatibility action carries into the frozen test. (src/sessions/session-state-events.test.ts, bdf5d9939abf)
  • Current-main gap: Fetched current main contains no frozen-node-test-compat workflow step; its repaired ordinary test does not alter the pinned candidate checkout. (.github/workflows/ci.yml, 320c54c57c9d)
  • Exact-target CI result: On this PR head, job 108603637007 completed successfully; both the new compatibility step and the formerly failing Node test shard step succeeded. The overall workflow was still in progress when checked. (ffb9f9853574)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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 (1 earlier review cycle)
  • reviewed 2026-09-27T10:32:21.642Z sha 2cc5352 :: blocked before merge. :: none

@RomneyDa

Copy link
Copy Markdown
Member Author

+Land-ready evidence for ffb9f985357481d4a6e8754bc0e9a1b18edd83f9:

  • Root cause: the frozen candidate test used a fixed 21-second pre-drain that does not exhaust heartbeat deadlines created under a previous fake-clock origin.
  • Owner/canonical fix: trusted frozen-target CI replays the already-landed test-only clock repair for exact candidate f773aa06a1a9; candidate/runtime bytes remain unchanged. No paths removed. Product LOC +0; CI tooling/config +165; regression tests +95.
  • Exact candidate proof: src/sessions/session-state-events.test.ts passed 29/29 after the action, including both prior-clock cases.
  • Guard proof: OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs test/scripts/frozen-node-test-compat.test.ts passed 2/2 at 2.42 s wall.
  • Local gates: pnpm deadcode:dependencies and the full node scripts/check-changed.mjs -- ... plan passed; fresh AutoReview is P1 scoped-clean.
  • Exact-head CI: 36313341517 passed.
  • Frozen-target workflow: 36313396917 executed the compatibility action successfully; formerly failing checks-node-bundle-infra-small-runtime-9 passed in 230 s.

ClawSweeper rank-up moves are addressed. Stored-data compatibility proof is intentionally skipped: this changes only transient test bytes in an Actions workspace and adds no schema, migration, serialization, persistence, or upgrade contract. The broader frozen-target CI matrix is still draining with no failures; the changed/failing path is already terminal green.

@RomneyDa
RomneyDa merged commit 275529d into main Sep 27, 2026
347 checks passed
@RomneyDa
RomneyDa deleted the fix/2026.8.33-frozen-test-clock branch September 27, 2026 11:00
@RomneyDa

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 27, 2026
* commit '69809d7a94277d01be964bd1cbbb7aa0ebc58c9b': (219 commits)
  perf(agents): serialize large model requests once (#159574)
  refactor(cli): share capability agent-selection test cases (#159616)
  fix(workers): restore installation type checks (#159629)
  test(channels,qa,providers): remove low-value tests (batch d065) (#159627)
  test(doctor): run isolated migration cases concurrently (#159609)
  feat(apple): show agent identities in native chat (#159528)
  chore(i18n): refresh native locales (#159635)
  fix(gateway): keep node provisioning's installation contract after overlapped preparation
  fix(models): keep shared catalog requests alive for remaining callers (#157191)
  feat: let agents query online people and device activity (#159117)
  perf(gateway): first cloud dispatch prepares worker artifacts one after another (#159520)
  refactor(android): deslop Android app third pass (#159589)
  test(qa-lab,openshell,slack,reef,team-reports): remove low-value tests (batch d064) (#159607)
  fix: align process liveness checks (#151107) thanks @ekinnee
  fix: sessions model default does not clear the override (#159587)
  fix(ios): preserve typing during reentrant SwiftUI updates
  fix(ci): frozen 2026.8.33 validation fails on inherited test clock (#159594)
  perf(gateway): avoid duplicate recipient row lookup (#159595)
  refactor(gateway): deslop gateway fourth pass (#158786)
  test(agents): split subagent task-settlement test support under the line cap (#159584)
  ...
vincentkoc added a commit that referenced this pull request Sep 27, 2026
* commit '69809d7a94277d01be964bd1cbbb7aa0ebc58c9b': (219 commits)
  perf(agents): serialize large model requests once (#159574)
  refactor(cli): share capability agent-selection test cases (#159616)
  fix(workers): restore installation type checks (#159629)
  test(channels,qa,providers): remove low-value tests (batch d065) (#159627)
  test(doctor): run isolated migration cases concurrently (#159609)
  feat(apple): show agent identities in native chat (#159528)
  chore(i18n): refresh native locales (#159635)
  fix(gateway): keep node provisioning's installation contract after overlapped preparation
  fix(models): keep shared catalog requests alive for remaining callers (#157191)
  feat: let agents query online people and device activity (#159117)
  perf(gateway): first cloud dispatch prepares worker artifacts one after another (#159520)
  refactor(android): deslop Android app third pass (#159589)
  test(qa-lab,openshell,slack,reef,team-reports): remove low-value tests (batch d064) (#159607)
  fix: align process liveness checks (#151107) thanks @ekinnee
  fix: sessions model default does not clear the override (#159587)
  fix(ios): preserve typing during reentrant SwiftUI updates
  fix(ci): frozen 2026.8.33 validation fails on inherited test clock (#159594)
  perf(gateway): avoid duplicate recipient row lookup (#159595)
  refactor(gateway): deslop gateway fourth pass (#158786)
  test(agents): split subagent task-settlement test support under the line cap (#159584)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 28, 2026
…penclaw#159594)

* fix(ci): repair frozen 2026.8.33 test clock

* test(ci): exercise frozen compat CLI boundary
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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