Skip to content

fix(ci): restore updater runtime contract coverage - #189226

Merged
vincentkoc merged 1 commit into
mainfrom
fix/update-runtime-contract-fixtures-20261031
Oct 31, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/update-runtime-contract-fixtures-20261031

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Updater regression jobs on main fail because their fixtures still expect behavior superseded by the managed-runtime admission owner. Failing scheduled main run.

User Impact

No production behavior changes. This maintainer repair restores coverage of the current updater contract without weakening package-mutation or service-stop safeguards.

Why This Change Was Made

Expect the retained compatible service Node, explicitly seal the refusal fixture, permit exactly one discovery-only recovery call for a writable service, and include the runtime owner's additional diagnostics. Sealed services still prohibit recovery and all preflight refusals still prohibit installation and service stops. The existing cases add 21 net test lines, covered by a dedicated allocation; no cases or timers are added.

Evidence

  • Reproduced all five stale-contract failures on the untouched baseline: diagnostic assertions in target-schema and candidate-admission, service Node selection and protected-service refusal in node-runtime, and writable-service recovery in fresh-doctor. The adjacent Node engine preflight suite passes all 13 cases on the baseline.
  • The two baseline groups completed in 267.68 s and 171.24 s. These existing integration cases exercise the real updater entry point, isolated package state, and service ownership; replacing them with helper-only tests would miss those boundaries.
  • Fresh independent review and full committed-range ClawSweeper review found no remaining actionable findings. Whitespace checks pass.
  • Fixed native-checkout proof: all 72 cases pass. Per-file wall times: target-schema 24 cases / 201.49 s; candidate-admission 16 / 89.20 s; node-runtime 7 / 39.89 s; fresh-doctor 12 / 58.06 s; adjacent Node-engine preflight 13 / 25.20 s.
  • Matching CLI-update typecheck passes (18.14 s), maintained targeted type-aware lint passes (153.16 s), and format/whitespace checks pass. Exact-head CI passes the targeted changed jobs. Per-file CI costs are recorded below; the aggregate run remains independently gated.
Changed suite / consumer CI Vitest duration CI single-file runner elapsed
target-schema 74.78 s 107.11 s
candidate-admission 51.28 s 53.28 s
node-runtime 26.32 s 28.33 s
fresh-doctor 35.62 s 37.70 s

The changed-1, changed-2, and boundary jobs total697 job-seconds including setup and cleanup. The adjacent engine-preflight suite has no attributable per-file CI timing in these logs; its local13-case result is recorded above. These existing entry-point integration contracts account for the runtime; no cases or timers were added.

@vincentkoc vincentkoc self-assigned this Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 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.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XS labels Oct 31, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR updates existing updater tests to expect retained service runtimes, discovery-only recovery, sealed-service refusal, and expanded diagnostics.

Example: A writable service uses Node 24.20.0 while the requested package requires Node >=26.12.1 and no compatible replacement is found.

  • Before: The test rejects the runtime owner's discovery attempt as an unexpected side effect.
  • After: The test permits one discovery call without provisioning authority and still requires refusal without package installation, service stop, or launcher changes.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Source review supports the focused repair, but the published evidence has no completed post-fix updater validation.
Proof confidence 🦪 silver shellfish (2/6) This maintainer-authored test-only PR changes no shipped behavior and falls outside the ordinary contributor demonstration gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Stale updater expectations make regression jobs fail despite the intended runtime behavior.
Reason: The maintainer-authored repair restores useful existing coverage and preserves the safeguards established by earlier updater decisions.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored PR open: the fixture corrections match the current runtime contract, with no actionable defect found; it remains draft pending validation.

Priority: P2
Reviewed head: d064199e306e8638a293654516ce0bb38cfe7c20

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Baseline failures are reported, but passing post-fix execution of the affected updater suites is still pending; this test-only repair needs no separate live Gateway demonstration.
Agent review details

How this fits together

Updater tests pass package metadata and native-service observations through updateCommand, then inspect runtime selection, refusal diagnostics, package contents, and lifecycle effects.

flowchart TD
  A[Updater fixtures] --> B[Update command]
  B --> C[Runtime preflight owner]
  C --> D[Guarded runtime discovery]
  C --> E[Selection or refusal]
  E --> F[Package and service assertions]
Loading

Technical review

Best possible solution:

Retain the focused fixture corrections and complete their existing validation before taking the PR out of draft.

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

Current source explains the stale assertions, and the body reports matching baseline failures; this read-only review ran no tests and does not independently confirm those executions.

Is this the best way to solve the issue?

The smallest complete repair is to align the existing fixtures with the production owner while retaining refusal and mutation safeguards, which this diff does.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 187b16c78550.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit 87d0cae adds src/cli/update-cli/update-command-runtime-preflight.ts:235 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 87d0cae96b59; files: src/cli/update-cli/update-command-runtime-preflight.ts)

PR surface

Tests +21, Other +2. Total +23 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 24 3 +21
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 5 26 3 +23

Review metrics

Metric Value Why it matters
Production versus test LOC Production +0/-0; tests and test support +24/-3 The net 21 test lines preserve distinct selection, protected-service, discovery, and diagnostic contracts without adding cases or timers.

Labels

Label changes:

  • add P2: This repairs updater regression coverage without changing shipped behavior or demonstrating an urgent user-facing regression.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: This repairs updater regression coverage without changing shipped behavior or demonstrating an urgent user-facing regression.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Complete the affected updater suites and targeted type, lint, and formatting checks on the reviewed head.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 31, 2026, 4:59 AM ET / 08:59 UTC.

@vincentkoc
vincentkoc marked this pull request as ready for review October 31, 2026 11:13
@vincentkoc
vincentkoc enabled auto-merge (squash) October 31, 2026 11:22
@vincentkoc
vincentkoc merged commit 20ab8ec into main Oct 31, 2026
225 checks passed
@vincentkoc
vincentkoc deleted the fix/update-runtime-contract-fixtures-20261031 branch October 31, 2026 11:37
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

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

Labels

cli CLI command changes P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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