Skip to content

fix(ci): restore update service planning lint budget - #160591

Merged
fuller-stack-dev merged 1 commit into
mainfrom
fix/service-plan-lint-budget-157920
Sep 28, 2026
Merged

fuller-stack-dev merged 1 commit into
mainfrom
fix/service-plan-lint-budget-157920

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Related: #157920

What Problem This Solves

The native local preparation lint check fails on unchanged main code because update service planning exceeds the 700-line limit. GitHub Actions downgrades line-limit findings to warnings; this is not a claim of a hosted CI failure.

User Impact

Restores the local lint gate without changing update behavior, supported runtimes, or configuration.

Why This Change Was Made

Moves the unchanged pure Node-engine recommendation helper into an adjacent module. The installer stays lazy, and the child-command runner remains dependency-free. No lint threshold or baseline is changed.

Evidence

  • Native core lint reproduced the 702-line failure; the affected file matches current main.
  • All 45 existing service-plan tests pass (27.432s wall).
  • Targeted type-aware lint passes (87.375s), including the original line-limit check.
  • Formatting and diff checks pass; independent P0–P2 review found no actionable issues.
  • The moved function body and signature are byte-identical apart from its export. No new tests or behavior changes.

The direct main repair was attempted under repository guidance but rejected by the ruleset requiring a pull request.

Post-merge qualification

GitHub merged exact head 44be1964b16b7119cb9663468e460defc41236ee as a0a0c6aa24ce5d699ccd1b0746e9d01fb55fdc40 after the full Actions CI gate passed. The published-driver × candidate check requested by the later review was not completed before merge. An attempted native cancellation was refused before dispatch; no cancellation is claimed.

The additional package attempts exposed a proof-fixture error, not a canonical build defect: archived source inherited its parent repository’s Git context, giving the builder an empty tracked-plugin inventory. Both candidate and parent attempts used that invalid fixture. Isolating Git discovery restored all 90 plugin entries, matching the native checkout exactly; the unchanged bundler guard passed. Earlier fixture-deleted declarations were restored, and all 50,445 tracked source contents and modes were verified. No product code or guard changed to obtain the passing package.

Exact-head post-merge qualification now passes. Canonical package build passed in 532.333s and tarball integrity in 77.967s. The unmodified published 2026.9.5 updater installed exact 44be196 candidate 2026.9.6 successfully in 99.677s; all 12 update steps passed. Installed-candidate preflight passed in 3.394s, and the launcher, manifest, and all 11,214 dist entries matched the verified tarball. Existing operator config values and a survivor were retained alongside normal additive Doctor normalization, with no transaction residue. Staged startup healthcheck ran; managed-service reconciliation was explicitly skipped for the isolated fixture. No live deployment, service restart, credentials, inference, or Codex-app matrix is claimed.

This proof completed after merge and does not retroactively supply the missing pre-merge proof. The original PR’s exact 87de8e5 package cell independently passed the same checks.

Extract the unchanged pure Node-engine recommendation helper without changing runtime selection, lazy installer loading, or the 700-line lint threshold. Verified 45 service-plan tests, targeted typed lint, formatting, and independent P0-P2 review.
@clawsweeper

clawsweeper Bot commented Sep 28, 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 Sep 28, 2026
@fuller-stack-dev
fuller-stack-dev marked this pull request as ready for review September 28, 2026 17:36
@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 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 28, 2026, 1:54 PM ET / 17:54 UTC (Revision 2).

ClawSweeper review

What this changes

The branch moves the update CLI’s Node-version recommendation into an adjacent module so service planning meets its lint limit without changing the recommendation logic.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open. Current main still has the local lint-budget violation, and the patch has no identified correctness defect. Repository update policy requires packaged upgrade proof before merge.

Priority: P3
Reviewed head: 44be1964b16b7119cb9663468e460defc41236ee

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) PR readiness rating was derived from proof quality, review findings, security review, and reviewer confidence.
Proof confidence 🌊 off-meta tidepool Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Evidence reviewed 8 items Current lint contract: The source-file rule limits TypeScript files to 700 counted lines; current main retains the original service-planning file, and the contributor reports a 702-line native lint failure.
Still needed on main: The service-planning source is unchanged between fetched main and the PR base, and fetched main does not contain the extracted module.
Introduced patch: The introduced delta extracts the existing helper with its calculation unchanged apart from export and import; no update decision, configuration, or stored-data contract changes.
Findings None None.
Security None None.

How this fits together

The update CLI checks the target package and selected runtime before an update. When Node is incompatible, service planning produces recovery guidance for the operator.

flowchart LR
A[Update request] --> C[Runtime preflight]
B[Target package requirements] --> C
D[Selected Node runtime] --> C
C --> E[Node recommendation]
E --> F[Recovery guidance]
F --> G[Update result]
Loading

Before merge

  • Resolve merge risk (P1) - The new static import has not been exercised by a published updater against this exact candidate package. A packaged first-hop update could fail to load the split module; the repository’s update proof requirement remains unmet.
  • Complete next step (P2) - Add a published-updater-to-candidate result for this exact head, showing runtime preflight and the final update outcome.
Agent review details

Security

None.

PR surface

Source +3. Total +3 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 2 22 19 +3
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 22 19 +3

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Prove the packaged update (recommended)
    Record a published-updater-to-current-candidate run in an isolated existing installation, including the runtime preflight and final update outcome.

Technical review

Best possible solution:

Keep one Node recommendation owner and verify that a published updater can load this candidate and complete an update before landing.

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

Yes at source level: current main retains the oversized service-planning file under the 700-line lint rule, and the contributor reports reproducing the native local failure. This read-only review did not rerun lint.

Is this the best way to solve the issue?

Yes: extracting the unchanged calculation is a narrow way to meet the lint budget while retaining the existing preflight call and lazy runtime-recovery path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 01747d9b2b11.

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: The new module import is on the packaged update path, whose published-driver compatibility has not been shown for this head.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P3: This repairs a local contributor lint gate without a reported user-facing update regression.
  • merge-risk: 🚨 compatibility: The new module import is on the packaged update path, whose published-driver compatibility has not been shown for this head.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-28T17:45:21.203Z sha 44be196 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 28, 2026
@fuller-stack-dev
fuller-stack-dev enabled auto-merge (squash) September 28, 2026 17:56
@fuller-stack-dev
fuller-stack-dev merged commit a0a0c6a into main Sep 28, 2026
308 checks passed
@fuller-stack-dev
fuller-stack-dev deleted the fix/service-plan-lint-budget-157920 branch September 28, 2026 18:02
@fuller-stack-dev

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 merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦞 diamond lobster Very strong PR readiness with only minor 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