Skip to content

fix(ci): heal skills reconciliation fallout - #121751

Merged
steipete merged 2 commits into
mainfrom
steipete/main-heal-skills-fallout
Aug 10, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/main-heal-skills-fallout

Conversation

@steipete

@steipete steipete commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Supersedes #121725. @vyctorbrzezowski's generator-owned diagnosis and repair are credited here; the identical Swift output independently reached main in 5fb5eefa611e while this branch was under review.

What Problem This Solves

Resolves the remaining fallout from concurrent skills and approval landings that left main CI red across generated Swift protocol models, Skill Workshop dead-export/cycle checks, the Plugin SDK baseline, the /learn prompt contract, and approval-handler runtime tests. Those failures blocked unrelated pull requests from landing.

Why This Change Was Made

Parallel healers landed the mechanical Swift, cycle, SDK-baseline, /learn, and approval-fixture repairs on main. This PR completes the consolidated repair by:

  • removing the test-only runSkillCollectionReview export and exercising collection review through its public scheduled-review entrypoint;
  • deleting the temporary Knip export exception, leaving zero unused exports without a suppression.

No production behavior changes or weakened assertions.

User Impact

No direct user-facing behavior change. Main and dependent pull requests regain clean generated-artifact, dead-export, import-cycle, prompt-contract, and approval-runtime gates.

Evidence

  • node --import tsx scripts/protocol-gen-swift.ts --check
  • node --max-old-space-size=8192 --import tsx scripts/generate-plugin-sdk-api-baseline.ts --check
  • node --import tsx scripts/check-import-cycles.ts — 0 runtime value cycles
  • node --import tsx scripts/check-madge-import-cycles.ts — 0 cycles
  • node scripts/check-deadcode-exports.mts — 0 production/full-tree/script unused exports
  • node scripts/run-vitest.mjs src/skills/workshop/collection-review.test.ts src/auto-reply/reply/commands-learn.test.ts src/infra/approval-handler-runtime.test.ts --reporter=verbose — 33 tests passed
  • Branch-level autoreview: clean, no accepted/actionable findings

Provenance:

@steipete steipete self-assigned this Aug 10, 2026
@clawsweeper

clawsweeper Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 10, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. 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 Aug 10, 2026
@clawsweeper

clawsweeper Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 10, 2026, 6:58 PM ET / 22:58 UTC.

ClawSweeper review

What this changes

The PR refreshes generated Swift approval models, removes a test-only Skill Workshop export, routes its tests through scheduled maintenance, and removes the related Knip suppression.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open: the remaining Skill Workshop/Knip cleanup is useful, but two converted scheduler tests can now swallow their own assertion failures and falsely pass.

Priority: P2
Reviewed head: b015af4b12375e43ccff4bebd270947e10125fd0

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The intended cleanup is narrow and well-targeted, but two P2 test false-pass paths must be repaired before it is quality-ready.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored internal CI repair has no changed user-visible flow; focused scheduler and generated-artifact proof are the relevant validation.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored internal CI repair has no changed user-visible flow; focused scheduler and generated-artifact proof are the relevant validation.
Evidence reviewed 6 items Scheduler catches review errors: The public scheduler catches each workspace failure and reports it through onError, so tests using it must observe that callback to ensure mock assertions fail the test.
Hostile-metadata assertion can be swallowed: This converted success-path test invokes the error-catching scheduler without onError and has no post-run assertion, so a failed prompt assertion inside the mocked runner is caught rather than failing the test.
Filtered-skill assertion can be swallowed: The filtered-skill test likewise invokes the scheduler without onError; failures in its mocked prompt/tool assertions are caught and the unchanged directory listing can still satisfy the final assertion.
Findings 2 actionable findings [P2] Assert scheduler errors in the hostile-metadata test
[P2] Assert scheduler errors in the filtered-skill test
Security None None.

How this fits together

Gateway protocol schemas generate Swift client models for approval payloads, while Gateway maintenance invokes scheduled Skill Workshop collection reviews. The changed tests exercise that scheduler path and CI checks the exported-surface inventory.

flowchart LR
  Schemas[Approval schemas] --> Generator[Protocol generator]
  Generator --> Swift[Swift client models]
  Gateway[Gateway maintenance] --> Scheduler[Scheduled skill review]
  Scheduler --> Workshop[Skill Workshop run]
  Tests[Focused boundary tests] --> Scheduler
  CI[CI export check] --> Knip[Dead-export scan]
Loading

Before merge

  • Assert scheduler errors in the hostile-metadata test (P2) - The scheduler catches workspace failures and uses its default logger when onError is omitted. A failed prompt assertion inside this mock is therefore swallowed and this test has no later assertion that would fail; pass an error spy and assert it was never called.
  • Assert scheduler errors in the filtered-skill test (P2) - This converted test also omits onError, so failed mocked prompt/tool assertions are caught by the scheduler. The final directory listing remains unchanged and can still pass, leaving the filtering contract untested; assert that an error spy was not called.
  • Resolve merge risk (P1) - Merging now would weaken CI coverage: failures in the hostile-metadata and filtered-skill mock assertions can be recorded as scheduler errors while their tests still pass.
  • Complete next step (P2) - This maintainer-labeled PR needs the two focused test assertions corrected and exact-head checks rerun; it is not an automated repair-lane candidate.

Findings

  • [P2] Assert scheduler errors in the hostile-metadata test — src/skills/workshop/collection-review.test.ts:137-143
  • [P2] Assert scheduler errors in the filtered-skill test — src/skills/workshop/collection-review.test.ts:196-207
Agent review details

Security

None.

PR surface

Source 0, Tests +10, Other +11. Total +21 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 1 45 35 +10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 15 4 +11
Total 4 61 40 +21

Review metrics

Metric Value Why it matters
Production versus test delta production/generated +16/-5, tests +45/-35 The only material growth is boundary-test setup; the Swift generated delta is already present on current main and the runtime export change is net-neutral.

Stored data model

Persistent data-model change detected: vector/embedding metadata: config/knip.config.ts, vector/embedding metadata: src/skills/workshop/collection-review.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: canonical
Canonical: #121751
Summary: This PR is the canonical remaining CI-cleanup path; its generated-model slice superseded the earlier closed source PR, while the Skill Workshop repair remains distinct useful work.

Members:

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

Merge-risk options

Maintainer options:

  1. Preserve failing test signals (recommended)
    Pass an onError spy to both converted successful scheduler tests and assert that it was not called, then rerun the focused suite.

Technical review

Best possible solution:

Keep the private runner and public scheduler boundary, but make each converted successful scheduler test assert that its onError spy was never called before merging.

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

Yes: the scheduler's catch-and-report control flow, together with the two converted tests' lack of an onError assertion, directly reproduces the false-pass path from source.

Is this the best way to solve the issue?

No: making the runner private and testing through the scheduler is the right boundary, but the tests must assert that scheduler error reporting was not used.

Full review comments:

  • [P2] Assert scheduler errors in the hostile-metadata test — src/skills/workshop/collection-review.test.ts:137-143
    The scheduler catches workspace failures and uses its default logger when onError is omitted. A failed prompt assertion inside this mock is therefore swallowed and this test has no later assertion that would fail; pass an error spy and assert it was never called.
    Confidence: 0.99
  • [P2] Assert scheduler errors in the filtered-skill test — src/skills/workshop/collection-review.test.ts:196-207
    This converted test also omits onError, so failed mocked prompt/tool assertions are caught by the scheduler. The final directory listing remains unchanged and can still pass, leaving the filtering contract untested; assert that an error spy was not called.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: The PR repairs CI but currently leaves two focused safety tests able to pass after their core assertions fail.
  • add merge-risk: 🚨 automation: The changed test wiring can make the CI suite report success without validating hostile metadata or skill filtering.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored internal CI repair has no changed user-visible flow; focused scheduler and generated-artifact proof are the relevant validation.

Label justifications:

  • P2: The PR repairs CI but currently leaves two focused safety tests able to pass after their core assertions fail.
  • merge-risk: 🚨 automation: The changed test wiring can make the CI suite report success without validating hostile metadata or skill filtering.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored internal CI repair has no changed user-visible flow; focused scheduler and generated-artifact proof are the relevant validation.

Evidence

What I checked:

Likely related people:

  • steipete: Current main attributes the generated Swift reviewer shape to this contributor, who also authored this PR's two commits. (role: recent area contributor; confidence: high; commits: 5fb5eefa611e, b015af4b1237; files: apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift, src/skills/workshop/collection-review.test.ts)
  • obviyus: The merged Skill Workshop collection-reconciliation work established the scheduler and collection-review surface this PR exercises. (role: feature contributor; confidence: high; commits: bdf202ccc8c1; files: src/skills/workshop/collection-review.ts, src/skills/workshop/collection-review.test.ts)
  • vyctorbrzezowski: The PR explicitly preserves credit from the earlier generated-model repair that this PR superseded. (role: source contributor; confidence: medium; commits: af94ae230f60; files: apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift)

Rank-up moves

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

  • Pass an onError spy to the hostile-metadata and filtered-skill scheduler calls and assert it remains unused.
  • Rerun the focused collection-review suite and the dead-export check on the updated head.

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.

@steipete
steipete force-pushed the steipete/main-heal-skills-fallout branch from b015af4 to 78c34b4 Compare August 10, 2026 23:09
@steipete
steipete force-pushed the steipete/main-heal-skills-fallout branch from 78c34b4 to 2f0e00f Compare August 10, 2026 23:17
@steipete
steipete merged commit 9175530 into main Aug 10, 2026
122 checks passed
@steipete
steipete deleted the steipete/main-heal-skills-fallout branch August 10, 2026 23:34
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 11, 2026
* test(skills): cover collection review through scheduler

* test(skills): preserve scheduler failure signals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant