Skip to content

fix(release): resolve frozen candidate entrypoints - #133523

Merged
RomneyDa merged 3 commits into
mainfrom
codex/frozen-candidate-entrypoints
Aug 31, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
codex/frozen-candidate-entrypoints

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 30, 2026 •

Copy link
Copy Markdown
Member

Split from #133510.

The trusted release harness runs frozen candidates that may retain Node-native .mjs entrypoints and omit newer narrow build profiles. Resolve the entrypoint from the staged candidate, and select a narrow profile only when that candidate advertises it; otherwise preserve the full build.

Includes the native live-shard and Docker live-wrapper callers plus the source-performance harness. No target SHA or release-specific waiver.

Frozen-candidate proof (SHA 782a8f79688d1f102dc4c0e13d7b15fa8b06c869):

  • openclaw_live_run_staged_script .../scripts/test-live --help selected and ran scripts/test-live.mjs.
  • Its real scripts/build-all.mjs --help advertises full, ciArtifacts, gatewayWatch, qaRuntime, and cliStartup—not sourcePerformance.
  • The trusted test-live-shard.mts native-live-src-gateway-profiles route logged sourcePerformance is unavailable; preparing full build instead, completed the candidate full build, then invoked node scripts/test-live.mjs. The deliberately non-matching test filter caused the expected zero-passing-test exit only after that behavior was proven.

Focused owner tests pass: node scripts/run-vitest.mjs test/scripts/test-live-shard.test.ts (27/27). git diff --check passes.

Production/tooling LOC: +75/-26 (net +49); tests: +94/-11 (net +83). The shared staged-entrypoint boundary is new behavior required for older candidates; no product/runtime code changes.

@clawsweeper

clawsweeper Bot commented Aug 30, 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 scripts Repository scripts docker Docker and sandbox tooling size: M maintainer Maintainer-authored PR labels Aug 30, 2026
@clawsweeper clawsweeper Bot added 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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 7:52 PM ET / 23:52 UTC.

ClawSweeper review

What this changes

The PR makes release harnesses select the staged candidate’s available .mts or .mjs runner and use a narrow build profile only when that candidate advertises it.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this maintainer-authored, maintainer-labeled PR open for release-harness owner review. No introduced correctness defect was found: the branch centralizes staged runner selection and preserves a full-build fallback, but the cited historical frozen candidate could not be hydrated locally to independently replay its trace.

Priority: P2
Reviewed head: 7da8f28acd1922ba0c6dedc04f5657a5eb70285b
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused, owner-boundary aligned, and covered for both staged entrypoint variants; only independent replay of the historical frozen candidate remains unavailable here.
Proof confidence 🌊 off-meta tidepool Not applicable: The author is a repository member, so the external-contributor proof gate does not apply; the supplied frozen-candidate terminal trace remains useful supporting evidence but could not be independently replayed in this environment.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a repository member, so the external-contributor proof gate does not apply; the supplied frozen-candidate terminal trace remains useful supporting evidence but could not be independently replayed in this environment.
Evidence reviewed 7 items Shared staged-runner owner: The introduced helper resolves only the staged candidate’s scripts/test-live.mts or legacy .mjs file, fails explicitly when neither exists, and all six affected Docker wrappers invoke it after changing to the staged directory.
Native release-harness path: The reusable release workflow checks out the selected candidate at the workspace root, checks out the trusted harness separately, then runs the trusted shard router from the candidate working directory. The introduced router resolves the candidate build entrypoint, probes its help, and falls back to full when the profile is absent.
Current builder contract: The current TypeScript builder emits one exact two-space-indented line per advertised profile and recognizes --help, matching the PR’s profile probe.
Findings None None.
Security None None.

How this fits together

Release validation checks out a candidate at the workspace root and a trusted harness under .release-harness. Native and Docker live suites use the trusted harness to stage the candidate, build its required artifacts, and run its candidate-owned test entrypoints.

flowchart LR
  A[Release candidate] --> B[Trusted release harness]
  B --> C[Staged candidate tree]
  C --> D[Runner resolver]
  C --> E[Build profile probe]
  D --> F[Candidate live tests]
  E --> G[Narrow or full build]
  G --> F
Loading

Decision needed

Question Recommendation
Can a release-harness owner independently confirm that the cited frozen .mjs candidate accepts the help probe, selects full when sourcePerformance is absent, and reaches its staged test runner? Verify candidate fallback and merge: Replay the cited candidate route and merge if its build help omits sourcePerformance, the fallback completes a full build, and the staged .mjs runner is invoked.

Why: The patch is coherent and covered at the owner boundary, but this reviewer could not hydrate the historical candidate or inspect the filtered PR discussion because GitHub DNS was unavailable.

Before merge

  • Resolve merge risk (P2) - The historical frozen candidate named in the PR body could not be materialized in this review environment, so a release-harness owner should independently confirm its .mjs help output and full-build fallback before merge.
Agent review details

Security

None.

PR surface

Tests +83, Config +4, Other +44. Total +131 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 5 96 13 +83
Docs 0 0 0 0
Config 1 8 4 +4
Generated 0 0 0 0
Other 8 66 22 +44
Total 14 170 39 +131

Review metrics

Metric Value Why it matters
Production versus test delta production/tooling +74/-26; tests +96/-13 The +48 net tooling growth is justified by one shared staged-runner resolver and explicit build-profile discovery replacing divergent wrapper assumptions.

Merge-risk options

Maintainer options:

  1. Verify the frozen-candidate route (recommended)
    Before merge, replay the cited native .mjs candidate route to confirm the help probe, full-build fallback, and staged test-runner invocation.
  2. Pause until the trace is recoverable
    Keep the PR open if the exact candidate cannot be retrieved or its builder’s help contract cannot be confirmed.

Technical review

Best possible solution:

Retain the single staged-entrypoint resolver and capability-based profile probe, after a release-harness owner confirms the cited frozen candidate reaches its full build and candidate test runner.

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

Unclear: source establishes the previous forced TypeScript-entrypoint path and the new candidate-owned resolution path, but the cited frozen candidate could not be hydrated locally to replay the failing legacy route.

Is this the best way to solve the issue?

Yes, conditionally: resolving files and advertised profiles from the staged candidate is the owning boundary and replaces several divergent calls; the remaining check is that the cited legacy builder implements the observed help contract.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This is bounded release-validation tooling work with no demonstrated user-runtime outage.
  • merge-risk: 🚨 automation: The PR changes command selection used by native, Docker, and source-performance release-validation automation.
  • 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: The author is a repository member, so the external-contributor proof gate does not apply; the supplied frozen-candidate terminal trace remains useful supporting evidence but could not be independently replayed in this environment.

Evidence

What I checked:

  • Shared staged-runner owner: The introduced helper resolves only the staged candidate’s scripts/test-live.mts or legacy .mjs file, fails explicitly when neither exists, and all six affected Docker wrappers invoke it after changing to the staged directory. (scripts/lib/live-docker-stage.sh:103, 7da8f28acd19)
  • Native release-harness path: The reusable release workflow checks out the selected candidate at the workspace root, checks out the trusted harness separately, then runs the trusted shard router from the candidate working directory. The introduced router resolves the candidate build entrypoint, probes its help, and falls back to full when the profile is absent. (scripts/test-live-shard.mts:715, 7da8f28acd19)
  • Current builder contract: The current TypeScript builder emits one exact two-space-indented line per advertised profile and recognizes --help, matching the PR’s profile probe. (scripts/build-all.mts:410, 7da8f28acd19)
  • Focused boundary coverage: Tests exercise both staged runner extensions and explicit absence, then cover both build-entrypoint variants and the full-build fallback selection. The shell test intercepts the actual Node invocation at the staging boundary rather than only asserting helper output. (test/scripts/live-docker-stage.test.ts:111, 7da8f28acd19)
  • Release-harness history: Commit 49bcc61 previously established native release verification on the shard router, and commit 0b2d850 owns the related source-performance workflow surface. (scripts/test-live-shard.mts:715, 49bcc61d467e)
  • Current-main and historical-candidate limitation: The checkout can compare the current-main shard delta, which is disjoint from this resolver hunk, but attempts to hydrate the cited frozen SHA and current-main file blobs failed because the promisor remote could not resolve github.com. This is a reviewer-environment limitation, not missing contributor proof.

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: 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.

  • Have a release-harness owner verify the cited frozen .mjs candidate trace 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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-08-30T20:53:03.066Z sha 252e6a3 :: found issues before merge. :: [P1] Update the CLI-backend Docker test expectation
  • reviewed 2026-08-30T21:15:23.205Z sha b0c0ff0 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-30T22:21:37.163Z sha e41b86c :: needs maintainer review before merge. :: none
  • reviewed 2026-08-30T23:10:47.130Z sha 7da8f28 :: needs maintainer review before merge. :: none

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 30, 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:

@clawsweeper clawsweeper Bot added 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. and removed 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. labels Aug 30, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 30, 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:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 30, 2026
@RomneyDa
RomneyDa force-pushed the codex/frozen-candidate-entrypoints branch from e41b86c to 7da8f28 Compare August 30, 2026 23:02
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 30, 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:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 30, 2026
@RomneyDa
RomneyDa merged commit 0c3e7a9 into main Aug 31, 2026
165 checks passed
@RomneyDa
RomneyDa deleted the codex/frozen-candidate-entrypoints branch August 31, 2026 00:04
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 31, 2026
* fix(release): resolve frozen candidate entrypoints

* test(release): cover staged live entrypoint resolver

* fix(release): type frozen shard resolver tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. 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