Skip to content

ci: distribute lint and reuse native SDK declarations - #135302

Merged
steipete merged 5 commits into
mainfrom
codex/ci-lint-sdk-prep-20260901
Sep 1, 2026
Merged

steipete merged 5 commits into
mainfrom
codex/ci-lint-sdk-prep-20260901

Conversation

@steipete

@steipete steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

CI rebuilt unnecessary plugin declarations before lint, then ran every memory-bounded plugin lint Program in one hosted job. Restored declaration archives also missed their own validation because machine-local pnpm metadata, a repository-local package store, and outputs from a different build owner changed the signature.

Why This Change Was Made

Lint now prepares only the SDK declarations that its package-boundary imports consume. Current non-release GitHub-profile runs distribute the existing independent plugin Programs across the five core-lint jobs and the existing lint job. Each job keeps its existing serial execution, memory limits, thread limits, and arguments; the union is exact and disjoint. Hybrid, Blacksmith, release and historical-target ownership retain their existing routing. No jobs or runner capacity are added.

The existing protected warmer becomes the native SDK cache publisher. It restores and validates a candidate, prepares the SDK, saves the v4 archive, and removes exactly the native SDK output before the full build. This keeps native and packaged declaration owners from contaminating each other's resolution topology. All ordinary CI consumers remain restore-only, and the native preparer still validates compiler/config inputs, source membership, installed topology, required outputs, and output bytes before reuse.

The shared compiler snapshot excludes only the separate root package store. Installed hardlinks, aliases, explicit inputs, consumed bytes, and new resolution candidates still invalidate it. The native SDK generator stops treating pnpm's machine-local modules manifest as compiler input; its actual package-management readers are unchanged.

User Impact

Lint reuses validated SDK declarations and spreads its existing plugin checks across existing hosted jobs. Test coverage, resource limits, and runner capacity are unchanged. The CI guide explains the separate cache seeds required by GitHub and Blacksmith.

Evidence

The integrated root run passed 261 cache and workflow cases, plus 101 lint selection, resource, process-lifecycle and ownership cases. Both script and root-test typechecks pass. Focused type-aware lint, formatting, actionlint, zizmor and the repository workflow guards pass. The standard workflow wrapper could not install its pinned pre-commit version in the local package index; its available pinned tools and repository guards were run directly with the configured arguments. Executable shell fixtures exercise GitHub, hybrid, Blacksmith, release and frozen-target routing, cache publication order, and exact cleanup while preserving sibling outputs and source.

Regression evidence fails on the prior implementation for stripe routing, package-store portability, and pnpm metadata-only reuse. Installed dependency changes and higher-priority resolution candidates still invalidate a sealed record. Independent realistic snapshot fixtures also demonstrate both directions of native/package output contamination and that removing only the foreign output restores the original signature. The actual inventory remains 21 independent Programs, divided 4/4/4/3/3/3 without changing any Program arguments.

Independent source review and managed Codex review found no actionable findings. The hosted dispatch below exercises the six-way path; an ordinary hybrid retry does not exercise it. Each completed reader printed the native preparer's fresh/skipping result after restoring its archive, so reuse is proven beyond an archive hit. Exact-head PR CI 33537152082 passed all 154 executed jobs on ee6a443e4ea9a9ed43f1a763d8640778ce16dfd5.

Timing and scope

The prior hosted run spent 483.461 seconds in the serial plugin lint bodies. In hosted reader run 33535369118, all six lint jobs passed in 207–261 seconds from job start, including checkout, dependency setup, validated SDK reuse, and lint. The 21 plugin Programs ran exactly once with the expected 4/4/4/3/3/3 partition. The 104-second preflight moved their workflow-relative finishes to 319–373 seconds, so this is not a whole-CI five-minute result.

Product runtime LOC is unchanged. CI scripts add 31 net lines for selection and correct cache inputs; workflow wiring adds 86 net lines for existing-job readers and the protected publisher. Tests add 373 net lines; documentation adds two. The test reference now distinguishes SDK-only lint from the full package-boundary compiler. The parser reuses the existing stripe validator, and obsolete full-plugin lint preparation is removed. Internal CI work does not require a product changelog entry.

Review follow-through

The declaration-consumer reference finding in ClawSweeper comment 5497213363 is corrected in docs/reference/test.md; the narrow preparer and the full TypeScript boundary owner remain separate. The updated reference passed its own managed review. Exact-head native CI is now green. The complete run took 12m05s; its Docker tail finished 11m56s after workflow creation. The five-minute whole-workflow goal remains open.

The native SDK producer successfully prepared and saved its v4 generation in run 33534280845. Blacksmith and GitHub use separate cache backends, so a second protected warmer on an isolated hosted proof branch, run 33534964035, seeded GitHub for the same source commit. The temporary runner-backend setting was restored to hybrid after that hosted job was assigned. GitHub cache entry 7212022572 contains 4,815,906 bytes.

All six completed readers in run 33535369118 restored the exact key Linux-extension-package-boundary-v4-8bd06d8ae064dbf6945b7bfae747e2e1191093b4, extracted that archive in 0.730–1.831 seconds, and printed [plugin-sdk boundary dts] fresh; skipping. Native receipt validation and startup took about 4.5–4.9 seconds after core lint in those jobs. The CI guide now states that each runner backend needs its own protected seed; matching keys do not copy archives between providers. One separate type-check job in the proof run failed during a Matrix SDK binary download with ECONNRESET before tests started; same-run peers downloaded the identical asset successfully. That failure is not counted as a successful type check or a successful whole workflow.

The final ClawSweeper review on this exact head has no actionable source findings. Its requested CI confirmation is complete; the separate hosted reader proof covers the six-way path. The v4 compiler cache is disposable and validated before reuse; it is not an OpenClaw runtime database or user-data schema change. Prior invalid or absent entries rebuild through the existing owner. The preceding native run failed on TS7056, repaired independently on main by #135360 before the passing run.

@clawsweeper

clawsweeper Bot commented Sep 1, 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 size: XS maintainer Maintainer-authored PR labels Sep 1, 2026
@steipete
steipete marked this pull request as ready for review September 1, 2026 15:39
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 1:44 PM ET / 17:44 UTC.

ClawSweeper review

What this changes

The PR distributes memory-bounded extension lint programs over six existing hosted jobs and lets them reuse a validated native Plugin SDK declaration cache.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this maintainer-owned CI PR open for normal maintainer handling. The introduced routing uses the existing lint-shard and declaration-owner boundaries, and the prior rank-up CI confirmation is recorded; no introduced correctness defect was found, but the supplied test merge is stale relative to current main.

Priority: P3
Reviewed head: ee6a443e4ea9a9ed43f1a763d8640778ce16dfd5
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has a coherent owner boundary and focused regression coverage, with remaining confidence limited to current-target merge validation.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-owned CI-only PR is exempt from the external-contributor real-behavior-proof gate; the supplied exact-head workflow and hosted-reader references are supplemental infrastructure evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-owned CI-only PR is exempt from the external-contributor real-behavior-proof gate; the supplied exact-head workflow and hosted-reader references are supplemental infrastructure evidence.
Evidence reviewed 7 items Introduced lint partition: The shard runner parses and applies an extension stripe only after selecting an extension-only shard set; the implementation rejects mixed selections.
Workflow ownership: The regular lint job owns stripe 6/6 and each existing hosted core job owns one of stripes 1/6 through 5/6, while release and hybrid paths retain their prior routing.
Cache validation owner: Package-boundary mode emits only native SDK declarations; it validates the input record and complete output inventory before reusing or publishing the cache, then the warmer removes only the native SDK output before the full build.
Findings None None.
Security None None.

How this fits together

GitHub Actions prepares Plugin SDK declaration artifacts before extension lint consumes them. A protected cache-warmer publishes those artifacts, while the hosted lint jobs restore them and run disjoint portions of the lint inventory.

flowchart LR
  Source[Repository source] --> Warmer[Protected cache warmer]
  Warmer --> Cache[Validated SDK declaration cache]
  Cache --> Core[Five hosted core lint jobs]
  Cache --> Lint[Hosted lint job]
  Core --> Results[CI gate]
  Lint --> Results
Loading

Decision needed

Question Recommendation
Should this maintainer-owned CI routing and cache change proceed through the normal current-main merge validation despite the stale supplied test merge? Validate against current main and land: Use the normal exact-head and current-target merge checks, then land if GitHub’s required gates remain satisfied.

Why: The code review found no introduced defect, but only a maintainer can accept the remaining merge-context uncertainty for an infrastructure change on a protected maintainer item.

Before merge

  • Resolve merge risk (P1) - The supplied test merge is stale and current main has advanced beyond the PR base, so the review cannot independently establish the final merged workflow behavior from that merge artifact; use the normal current-main merge and exact-head check gates before landing.
  • Complete next step (P2) - The maintainer label and stale supplied merge artifact require normal maintainer merge handling rather than automated cleanup or repair dispatch.
Agent review details

Security

None.

PR surface

Tests +373, Docs +2, Config +86, Other +31. Total +492 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 6 409 36 +373
Docs 2 9 7 +2
Config 2 97 11 +86
Generated 0 0 0 0
Other 4 44 13 +31
Total 14 559 67 +492

Review metrics

Metric Value Why it matters
Automation versus test LOC automation +117 net (scripts +31, workflows +86); tests +373 net; docs +2 net The production growth implements CI routing and cache ownership, while most of the change is focused contract coverage.

Stored data model

Persistent data-model change detected: persistent cache schema: scripts/lib/compiler-input-snapshot.mts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Refresh current-target validation (recommended)
    Before landing, let the normal merge path validate this exact head against the current target because the supplied test merge has stale parents.
  2. Pause for an explicit hosted proof refresh
    Hold the PR until a maintainer requests a fresh hosted run that demonstrates the final merged workflow configuration.

Technical review

Best possible solution:

Retain the single validated declaration producer and the six-way disjoint lint partition, then land only through the repository’s current-main merge validation path.

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

Not applicable: this is CI infrastructure work, and the relevant reproduction is workflow execution rather than an end-user failure path. The supplied discussion records exact-head CI and a hosted-reader run, but this review did not execute repository code.

Is this the best way to solve the issue?

Yes. The PR reuses the existing shard selector and declaration-preparation owner instead of creating a parallel lint or cache path; current main does not yet contain the central extension-stripe capability.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is CI cache and lint-distribution maintenance, not a user-facing runtime regression.
  • merge-risk: 🚨 automation: The change alters workflow routing and protected cache publication, so an error could reduce CI coverage or reliability after merge.
  • 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: This maintainer-owned CI-only PR is exempt from the external-contributor real-behavior-proof gate; the supplied exact-head workflow and hosted-reader references are supplemental infrastructure evidence.

Evidence

What I checked:

Likely related people:

  • steipete: 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.

  • Validate the exact head through the normal current-main merge and required-check path before landing.

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-09-01T16:35:27.757Z sha bb6b03b :: found issues before merge. :: [P2] Update the declaration-consumer reference
  • reviewed 2026-09-01T16:56:51.859Z sha 8bd06d8 :: found issues before merge. :: [P2] Align declaration-consumer documentation
  • reviewed 2026-09-01T17:09:28.573Z sha e0fcca7 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T17:27:14.865Z sha ee6a443 :: needs maintainer review before merge. :: none

@steipete steipete changed the title ci: prepare only SDK declarations for lint ci: distribute lint and reuse native SDK declarations Sep 1, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: L and removed size: XS labels Sep 1, 2026
@steipete

steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor Author

The current head ee6a443e4ea9a9ed43f1a763d8640778ce16dfd5 passed all 154 executed jobs in native CI run 33537152082. The 17:27 UTC review has no actionable source findings; its exact-head CI rank-up is complete.

The six-way hosted reader path is independently proven in run 33535369118: all six jobs restored the protected producer archive, reported fresh native SDK declarations, and ran all 21 Programs exactly once in 207–261 seconds per job. That run’s separate dependency-download failure and the native run’s preceding TS7056 failure remain documented in the PR; neither is counted as passing proof.

The cache-schema note concerns disposable compiler cache receipts under a versioned v4 key, with mandatory freshness validation and rebuild on a miss. It does not change a runtime database, SQLite schema, or persisted user data. Backend-local seed ownership is explicit in the CI guide. The full native workflow took 12m05s, so the whole-CI five-minute goal is still open.

@clawsweeper

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

@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 1, 2026
@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 Sep 1, 2026
@steipete
steipete merged commit 4a49ceb into main Sep 1, 2026
216 checks passed
@steipete
steipete deleted the codex/ci-lint-sdk-prep-20260901 branch September 1, 2026 18:05
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 2, 2026
* ci: prepare only SDK declarations for lint

* test: align lint preparation resource fixture

* ci: distribute lint and publish reusable SDK cache

* docs: distinguish lint and package-boundary declarations

* docs(ci): clarify backend-local cache seeds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L 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