Skip to content

fix(ci): repair qualification planning and recovery regressions - #160187

Merged
vincentkoc merged 6 commits into
mainfrom
test/canonical-extension-inventory
Sep 28, 2026
Merged

vincentkoc merged 6 commits into
mainfrom
test/canonical-extension-inventory

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Repairs duplicate plugin prerelease test assignment, an oversized dependency-closure probe, and mirror recovery that mistakes a reused inode for an old generation.

Result

Canonical batches own assigned plugin tests; only missing historical manifest owners are supplemented. The dependency probe exercises real imports without running unrelated owner planning. Mirror recovery validates the current generation under its allocation lock, preserves successor files and locks, and retires only the exact old disposal record. Planner fixtures use admitted inputs and require defined matrix outputs.

Incorporates #160191 and #160192; close those after this PR lands. Main's independent tier-inventory, mobile-fixture and selected-tooling resource repairs are preserved without duplicate patches.

Validation

Current head: 5b46c1254d55094b976f1469419676dfb1c28798, base 5362ba0ca317aa632e063c40373d91e398517681.

  • Fresh Testbox proof: all 7 planner integration cases, 3 targeted CI cases, and the complete native root-tooling typecheck passed. Integration tests took 135.95 s; targeted tests 4.73 s; the full payload took 272.76 s including hydration.
  • Test and typecheck commands used 7 GiB kernel scopes with swap disabled. Source fingerprints match before and after.
  • The unchanged workflow/recovery implementation retains the previous 54 planner, 14 mirror-recovery and 2 dependency-probe cases, plus workflow checks, production typed lint and script typechecking. Recovery fixtures exercise real successor bytes, reused inodes and SQLite locks.
  • Previous head 38472e2 passed full hosted CI and exact-head ClawSweeper review. The current rebase drops an equivalent test repair independently landed on main. Fresh hosted CI and exact-head review are pending.
  • Formatting and whitespace pass. Local review reports no actionable P0–P2 finding; its sandbox could not reread unchanged modules, so it does not replace the source-backed ClawSweeper review.

Production/workflow: +10/-10, net zero. Tests: +192/-12, net +180. No user runtime, public API or stored-data format change.

@vincentkoc vincentkoc self-assigned this Sep 28, 2026
@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 in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review September 28, 2026 06:00
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 4:27 AM ET / 08:27 UTC (Revision 7).

ClawSweeper review

What this changes

The branch changes plugin prerelease test assignment, narrows a dependency-free CI planning probe, and updates source-mirror recovery, with regression tests for historical plans and reused filesystem inodes.

Merge readiness

✅ Ready for maintainer review

Keep open. Current main still has the reported CI assignment and mirror recovery behavior, while this branch supplies a focused repair. The earlier duplicate-assignment finding is addressed, and this review found no new blocking defect.

Priority: P2
Reviewed head: 5b46c1254d55094b976f1469419676dfb1c28798

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused owner-level changes, historical-target coverage, and real-filesystem recovery evidence make this a strong patch despite the separately cancelled current-head Testbox run.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The workflow manifest is exercised with historical planner inputs, and the patch-matching mirror repair has reported before/after real-filesystem proof using interrupted disposal, inode reuse, successor bytes, and a SQLite lock. The linked current-head Testbox run ended cancelled and its logs were inaccessible to this reviewer, so that run is not counted as a pass. The existing disposal format is unchanged, and the old-record fixture supports upgrade compatibility.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The workflow manifest is exercised with historical planner inputs, and the patch-matching mirror repair has reported before/after real-filesystem proof using interrupted disposal, inode reuse, successor bytes, and a SQLite lock. The linked current-head Testbox run ended cancelled and its logs were inaccessible to this reviewer, so that run is not counted as a pass. The existing disposal format is unchanged, and the old-record fixture supports upgrade compatibility.
Evidence reviewed 7 items Current main still needs the repair: The pinned current-main revision has neither production change; comparing it with the PR head shows the workflow and recovery changes remain unique to this branch.
Canonical test ownership: The introduced workflow filter supplements manifest-only plugins only when their IDs are absent from canonical batches; the historical-planner fixture also checks that missing owners and root tests remain assigned.
Recovery generation guard: While holding the allocation lock, recovery validates the present slot and its receipt before retiring only the recorded old disposal entry. Unknown replacements still reach refusal paths.
Findings None None.
Security None None.

How this fits together

Plugin prerelease CI turns plugin inventory and test files into release-validation jobs. Crabbox stages repository copies for remote testing and uses receipts and disposal records to recover interrupted source mirrors.

flowchart LR
A[Plugin inventory and tests] --> B[Prerelease planner]
B --> C[CI test jobs]
D[Mirror receipt] --> F[Recovery under allocation lock]
E[Old disposal record] --> F
F --> G[Validate current generation]
G --> H[Retire old record and preserve successor]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +180, Config +2, Other -2. Total +180 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 7 192 12 +180
Docs 0 0 0 0
Config 1 3 1 +2
Generated 0 0 0 0
Other 1 7 9 -2
Total 9 202 22 +180

Review metrics

Metric Value Why it matters
Production and test growth production/workflow net 0 lines; tests net +180 lines The added test code covers historical planner ownership and interrupted real-filesystem recovery without growing production code.

Root-cause cluster

Relationship: canonical
Canonical: #160187
Summary: This active PR incorporates two narrower open repairs; a separate release-validation PR overlaps only the plugin-planning portion.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep one canonical CI repair with historical planner coverage and real-filesystem recovery coverage, then resolve the narrower overlapping PRs after it lands.

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

Yes. Current-main source exposes duplicate manifest-only assignment and inode-first recovery, and the incorporated recovery fixture describes a pre-fix real-filesystem failure; this read-only review did not execute it.

Is this the best way to solve the issue?

Yes. The workflow changes assignment at its owner, while recovery validates the recorded generation before changing disposal state; the fixtures cover historical plans and successor preservation.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster 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:

  • P2: These are bounded CI qualification and recovery defects with limited product runtime impact.
  • merge-risk: 🚨 automation: The workflow change controls which plugin tests run during prerelease qualification, where an assignment error could silently omit or duplicate coverage.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The workflow manifest is exercised with historical planner inputs, and the patch-matching mirror repair has reported before/after real-filesystem proof using interrupted disposal, inode reuse, successor bytes, and a SQLite lock. The linked current-head Testbox run ended cancelled and its logs were inaccessible to this reviewer, so that run is not counted as a pass. The existing disposal format is unchanged, and the old-record fixture supports upgrade compatibility.
  • proof: sufficient: Contributor real behavior proof is sufficient. The workflow manifest is exercised with historical planner inputs, and the patch-matching mirror repair has reported before/after real-filesystem proof using interrupted disposal, inode reuse, successor bytes, and a SQLite lock. The linked current-head Testbox run ended cancelled and its logs were inaccessible to this reviewer, so that run is not counted as a pass. The existing disposal format is unchanged, and the old-record fixture supports upgrade compatibility.

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)
  • Dallin Romney: 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 (6 earlier review cycles)
  • reviewed 2026-09-28T06:07:34.928Z sha 9a0702e96e3859d31caf32b612798d06fc99d4d3 :: blocked before merge. :: [P2] Deduplicate prerelease jobs before dropping the source-owner check
  • reviewed 2026-09-28T06:44:05.484Z sha ebd2fa2 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T06:54:42.778Z sha ebd2fa2 :: blocked before merge. :: none
  • reviewed 2026-09-28T07:35:22.504Z sha 41bd971455c2cf146730e7e2ac7b366d50d33e73 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T07:48:01.082Z sha f9cc6bf9542498c6587afbdfd50ef401039405df :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T08:11:14.533Z sha 38472e208b231cadff62fed57897fac1742af2a1 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the test/canonical-extension-inventory branch from ebae04a to 0130279 Compare September 28, 2026 06:22
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: M and removed size: S labels Sep 28, 2026
@vincentkoc vincentkoc changed the title test(ci): use canonical plugin inventory in retained plans fix(ci): repair qualification planning and recovery regressions Sep 28, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head ebd2fa2ee88b02d7d0d95d69b4f9ac06a1bd349a. The prior finding and rank-up move are addressed at the workflow owner: supplemental source rows exclude canonically batched IDs, the retained check still models source rows, and emitted hourly/release matrix fixtures preserve root-level and historical planner coverage. Final integration tests pass 7/7; the other integrated regression/static proof is recorded in the updated PR body. This also incorporates the small current-main preflight, recovery and duplicate-export repairs needed for qualification.

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

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: 🦐 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 28, 2026
@vincentkoc
vincentkoc force-pushed the test/canonical-extension-inventory branch from ebd2fa2 to 41bd971 Compare September 28, 2026 07:29
@openclaw-barnacle openclaw-barnacle Bot removed the app: web-ui App: web-ui label Sep 28, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head 41bd971455c2cf146730e7e2ac7b366d50d33e73. Rebased onto repaired main c136ec63146424aafdbeccd48d2f4f9c59fbaa22; the duplicate UI export fix is already upstream and dropped from this diff. All seven remaining commits are patch-identical. Fresh 70-case focused remote proof, script types, production lint, workflow checks, formatting and before/after source fingerprints passed. The PR body has current proof and scope. Normal hosted CI is the landing route.

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 28, 2026
@vincentkoc
vincentkoc force-pushed the test/canonical-extension-inventory branch from 38472e2 to 5b46c12 Compare September 28, 2026 08:13
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head 5b46c1254d55094b976f1469419676dfb1c28798. Previous head 38472e2 passed all hosted CI and your clean review. Main independently landed the selected-tooling owner assertion repair; this conflict refresh preserves main's implementation and removes our equivalent commit. No production change since the prior review.

Fresh exact-head Testbox proof passed all 7 integration cases, the 3 targeted CI cases and native root-tooling typechecking, with matching source fingerprints and 7 GiB kernel scopes: https://github.com/openclaw/openclaw/actions/runs/36396232547. The PR body contains the current proof and production/test delta.

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added 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
@vincentkoc
vincentkoc merged commit 4001998 into main Sep 28, 2026
179 of 181 checks passed
@vincentkoc
vincentkoc deleted the test/canonical-extension-inventory branch September 28, 2026 08:29
roboclaw-bot added a commit to VACInc/openclaw that referenced this pull request Sep 28, 2026
Same bounded inherited build repair tracked in openclaw#160187; keep the original decoder unchanged.

Co-authored-by: VACInc <[email protected]>
MarMarLabs added a commit to MarMarLabs/openclaw that referenced this pull request Sep 28, 2026
158 upstream commits, including the Kie AI, Z.AI and Novita video
providers (openclaw#160080) and several CI planner repairs (openclaw#160187, openclaw#160260,
openclaw#160324, openclaw#160376). No file outside the generated set and the test routing
list changed on both sides.

Two conflicts, both generated: docs/.generated/config-baseline.counts.json
and docs/.generated/config-baseline.sha256. openclaw#160080 adds plugin settings,
so plugin goes from 4353 to 4374. This branch keeps channel at 3788 and
core stays at 2464. Both files came from upstream and were regenerated.
test/vitest/vitest.extension-database-workers-paths.mjs changed on both
sides in separate places and merged cleanly, with upstream's ten new
entries and this branch's Feishu entry all kept.

build:docker ran in a separate detached checkout of this commit outside the
nested node_modules install. Regenerating there changed those two files and
nothing else, giving the predicted counts, the upstream core and plugin
hashes, this branch's channel hash and a new combined hash. The three
generated-file checks pass there.

Upstream deleted 38 test files in this range. None of them were added or
changed by this branch.

Feishu: 106 files and 1853 tests in the extension project, 17 files and
312 tests in the database-workers project. The forwarder test and the
routing guards pass, 1980 tests. tsgo:core, tsgo:extensions,
tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines and
assertion-safety ratchets against upstream/main, oxlint and oxfmt on the
43 changed code files all pass.
VACInc added a commit that referenced this pull request Sep 28, 2026
* fix: distinguish Code Mode guest errors after tool calls

* fix(code-mode): preserve bridge identity and verify failure phases

Co-authored-by: VACInc <[email protected]>

* fix(ci): remove duplicate chat attachment decoder

Same bounded inherited build repair tracked in #160187; keep the original decoder unchanged.

Co-authored-by: VACInc <[email protected]>

* test(ci): match canonical concurrency to the runner profile

Apply the existing main repair 6d18cb7. Both inherited GitHub/hybrid failures reproduce before and all three backend cases pass afterward. No production changes.

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: VACInc <[email protected]>

* fix(code-mode): protect error provenance serialization

Use one captured Node serializer for observed and unhandled errors. Encode provenance in a null-prototype primitive record so guest JSON hooks cannot forge or erase bridge origin. Four Node regressions fail before the repair; all 30 cross-executor phase cases and 50 selected sibling cases pass after it.

Co-authored-by: VACInc <[email protected]>

* fix: preserve Code Mode bridge origin through error getters

---------

Co-authored-by: VACInc <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…claw#160187)

Keep plugin prerelease test assignment canonical and preserve validated source-mirror successor generations during interrupted disposal recovery.

Validation: focused integration and lifecycle tests, native tooling typecheck, exact-head hosted CI, and completed source-backed review.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…0217)

* fix: distinguish Code Mode guest errors after tool calls

* fix(code-mode): preserve bridge identity and verify failure phases

Co-authored-by: VACInc <[email protected]>

* fix(ci): remove duplicate chat attachment decoder

Same bounded inherited build repair tracked in openclaw#160187; keep the original decoder unchanged.

Co-authored-by: VACInc <[email protected]>

* test(ci): match canonical concurrency to the runner profile

Apply the existing main repair 4217e8a. Both inherited GitHub/hybrid failures reproduce before and all three backend cases pass afterward. No production changes.

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: VACInc <[email protected]>

* fix(code-mode): protect error provenance serialization

Use one captured Node serializer for observed and unhandled errors. Encode provenance in a null-prototype primitive record so guest JSON hooks cannot forge or erase bridge origin. Four Node regressions fail before the repair; all 30 cross-executor phase cases and 50 selected sibling cases pass after it.

Co-authored-by: VACInc <[email protected]>

* fix: preserve Code Mode bridge origin through error getters

---------

Co-authored-by: VACInc <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor 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