Skip to content

fix(test): initialize the survivor registry fixture baseline - #157996

Merged
vincentkoc merged 1 commit into
mainfrom
fix-survivor-registry-baseline-20260925
Sep 25, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-survivor-registry-baseline-20260925

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The upgrade-survivor registry-order fixture exits under set -u when legacy-operator routing reads an uninitialized baseline version.

User Impact

No production behavior changes. The fixture can exercise registry ordering in both automatic-authentication and manual modes.

Why This Change Was Made

The fixture runs the orchestration section after the real runner's baseline installation, so it must supply the verified baseline fact that installation normally produces. Set baseline_version=2026.8.1, matching the existing baseline fixtures in this file. Preserve set -eu and every registry, schema, manager, and service assertion.

Related: #157744

Evidence

  • Original required-CI failure: both legacy-operator registry cases failed with baseline_version: unbound variable.
  • Focused native proof: pnpm test test/scripts/upgrade-survivor-baseline-order.test.ts --maxWorkers=1 passed all 10 cases; file cost 27.804 s, one-worker command 30.35 s.
  • pnpm tsgo:test:root, focused formatting, and the canonical line-cap ratchet passed. Native proof verified the fixture and runner bytes before and after execution and stopped its worker successfully.
  • Independent source review and autoreview found no actionable issue. One test line added; zero production lines changed.
  • Required hosted CI passed at exact head d2e32180986176af50d6ec266e4861fb5e11edce. Exact-head ClawSweeper review has no findings, security issues, before-merge actions, or rank-up moves; independent maintainer source/proof review is complete.

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

clawsweeper Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vincentkoc
vincentkoc marked this pull request as ready for review September 25, 2026 07:24
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review d2e3218 — one-line survivor registry fixture initialization; focused 10-case file, root test types, and formatting passed.

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 25, 2026, 3:30 AM ET / 07:30 UTC.

ClawSweeper review

What this changes

The PR supplies a baseline version to the upgrade-survivor registry-order test fixture so its strict Bash checks can exercise automatic and manual restart cases.

Merge readiness

✅ Ready for maintainer review

Current main still has the fixture failure, and the proposed initialization matches the runner’s baseline-install flow. No introduced defect is evident.

Priority: P3
Reviewed head: d2e32180986176af50d6ec266e4861fb5e11edce

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The small fixture repair matches the runner’s state flow and has focused reported validation, with no actionable review finding.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The changed test fixture supplies the version that the production upgrade runner gets from baseline installation; the MEMBER-authored PR reports a focused native run with all 10 cases passing after the fix. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The changed test fixture supplies the version that the production upgrade runner gets from baseline installation; the MEMBER-authored PR reports a focused native run with all 10 cases passing after the fix. No stored-data contract changes.
Evidence reviewed 6 items Introduced patch: The pinned PR delta adds only a baseline-version assignment inside the extracted Bash fixture.
Current-main gap: The fetched main version extracts the orchestration under set -eu without initializing baseline_version in this fixture.
Runner contract: The real runner records and validates the installed baseline version before reaching the legacy-operator branch that reads it.
Findings None None.
Security None None.

How this fits together

The upgrade-survivor tests replay part of OpenClaw’s upgrade runner in a Bash fixture. They check that plugin registry selection reaches the service manager before service startup.

flowchart LR
A[Baseline installation] --> B[Installed version]
B --> C[Registry-order fixture]
D[Upgrade runner steps] --> C
C --> E{Restart mode}
E --> F[Registry and service assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +1. Total +1 across 1 file.

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

Review metrics

None.

Technical review

Best possible solution:

Keep the registry-order fixture aligned with the runner’s installed baseline fact while retaining strict shell checks and both restart-mode assertions.

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

Yes, from source: current main replays a branch that reads baseline_version under set -u without setting it in the extracted fixture. The PR also links the matching CI failure; this read-only review did not execute the test.

Is this the best way to solve the issue?

Yes. Supplying the version where the fixture replaces baseline installation is a narrow repair that preserves the registry-order assertions.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a narrow test-fixture repair with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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: The changed test fixture supplies the version that the production upgrade runner gets from baseline installation; the MEMBER-authored PR reports a focused native run with all 10 cases passing after the fix. No stored-data contract changes.

Label justifications:

  • P3: This is a narrow test-fixture repair with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 changed test fixture supplies the version that the production upgrade runner gets from baseline installation; the MEMBER-authored PR reports a focused native run with all 10 cases passing after the fix. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: 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)

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.

@vincentkoc
vincentkoc merged commit 6f51289 into main Sep 25, 2026
144 checks passed
@vincentkoc
vincentkoc deleted the fix-survivor-registry-baseline-20260925 branch September 25, 2026 07:34
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

1 participant