Skip to content

fix(ci): rebuild session catalog sdk declarations - #124165

Merged
fuller-stack-dev merged 1 commit into
mainfrom
codex/fix-session-catalog-sdk-cache
Aug 15, 2026
Merged

fuller-stack-dev merged 1 commit into
mainfrom
codex/fix-session-catalog-sdk-cache

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a CI failure where session-catalog provider type changes could leave cache-restored Plugin SDK declarations stale, causing bundled plugins to compile against the previous public contract.

Why This Change Was Made

The boundary declaration cache now fingerprints src/plugins/session-catalog.ts, the owner of the provider parameter types re-exported by openclaw/plugin-sdk/session-catalog. This keeps the existing content-hash cache fast path while invalidating it whenever that public type source changes.

User Impact

No user-visible behavior changes. Plugin package-boundary CI now rebuilds the correct declarations after session-catalog contract changes.

Evidence

  • Before: main CI run 31882948045 failed the extension package-boundary compile because ACPX saw stale SessionCatalog*ProviderParams declarations.
  • After: Blacksmith Testbox run 31883435761 passed pnpm test:extensions:package-boundary:compile across all 123 plugins.
  • node scripts/run-vitest.mjs test/scripts/prepare-extension-package-boundary-artifacts.test.ts — 19 tests passed.
  • node scripts/check-changed.mjs — passed all changed-file checks (local fallback after remote workload routing had no ready provider).
  • AutoReview: clean, no actionable findings.
  • Tooling LOC: +2/-0; tests: +0/-0.

@clawsweeper

clawsweeper Bot commented Aug 15, 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 Aug 15, 2026
@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 Aug 15, 2026
@clawsweeper

clawsweeper Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 8:51 AM ET / 12:51 UTC.

ClawSweeper review

What this changes

The PR adds the session-catalog source file to the Plugin SDK declaration-cache inputs so package-boundary artifacts rebuild after its exported provider types change.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open. The patch correctly adds the omitted owner module to the declaration-cache input set; it is a focused fix for stale package-boundary SDK declarations. Likely related people: steipete (high confidence).

Priority: P3
Reviewed head: 5744b57923b80ee9de0c82f21bc3d4757ac4cd96

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported cache repair with reported package-boundary validation and no correctness findings.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored internal CI PR is outside the external-contributor proof gate; its reported after-fix package-boundary compile is still relevant supplemental 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-authored internal CI PR is outside the external-contributor proof gate; its reported after-fix package-boundary compile is still relevant supplemental evidence.
Evidence reviewed 7 items Current-main cache omission: Current main's explicit declaration input list omits the session-catalog owner module, so a restored stamp does not change when its exported provider types change.
Public SDK dependency: The public session-catalog SDK entrypoint re-exports provider parameter types from the omitted owner module.
Freshness owner: Artifact freshness compares a digest of the configured input file set against the restored stamp; adding the owner source therefore invalidates both root and package declaration artifacts.
Findings None None.
Security None None.

How this fits together

The extension package-boundary preparation script emits Plugin SDK declarations used by bundled plugin compilation. It hashes selected type-source inputs to decide whether restored artifacts can be reused or must be rebuilt.

flowchart LR
  A[SDK type sources] --> B[Boundary artifact preparation]
  B --> C[Content hash stamp]
  C --> D{Inputs changed?}
  D -->|Yes| E[Rebuild declarations]
  D -->|No| F[Reuse restored artifacts]
  E --> G[Plugin package compilation]
  F --> G
Loading

Before merge

  • Resolve merge risk (P1) - The branch is behind current main; rebase or refresh the package-boundary check on the resulting exact head before merge.
  • Complete next step (P2) - This maintainer-authored PR has a focused proposed repair and needs routine exact-head validation, not a separate automated repair lane.
Agent review details

Security

None.

PR surface

Other +2. Total +2 across 1 file.

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

Review metrics

Metric Value Why it matters
Production vs test LOC production tooling +2/-0; tests +0/-0 The two added lines are the necessary cache dependency declaration; the existing boundary suite covers the freshness mechanism.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep session-catalog as an explicit root and package declaration input so restored artifacts rebuild whenever its public provider types change.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep session-catalog as an explicit root and package declaration input so restored artifacts rebuild whenever its public provider types change.

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

Yes—from source: restore a declaration stamp, change a re-exported type in src/plugins/session-catalog.ts, then run the package-boundary compile; current main can reuse stale declarations because that owner is absent from the digest.

Is this the best way to solve the issue?

Yes. The cache is intentionally driven by an explicit input set, and adding the owner of the re-exported types makes both declaration stamps invalidate without broadening the cache unnecessarily.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a small internal CI cache-correctness repair with no direct user-facing behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored internal CI PR is outside the external-contributor proof gate; its reported after-fix package-boundary compile is still relevant supplemental evidence.

Label justifications:

  • P3: This is a small internal CI cache-correctness repair with no direct user-facing behavior change.
  • 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-authored internal CI PR is outside the external-contributor proof gate; its reported after-fix package-boundary compile is still relevant supplemental evidence.

Evidence

What I checked:

Likely related people:

  • steipete: The same current-main commit introduced the explicit cache inputs and the public session-catalog re-exports; the current PR repairs that list. (role: introduced the cache input list and session-catalog SDK export; confidence: high; commits: 3ec408935026, 5744b57923b8; files: scripts/prepare-extension-package-boundary-artifacts.mts, src/plugin-sdk/session-catalog.ts, src/plugins/session-catalog.ts)

Rank-up moves

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

  • Rebase or refresh the package-boundary compile against current main before merging.

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.

@fuller-stack-dev
fuller-stack-dev merged commit cc9883a into main Aug 15, 2026
177 checks passed
@fuller-stack-dev
fuller-stack-dev deleted the codex/fix-session-catalog-sdk-cache branch August 15, 2026 12:52
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR 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: 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.

2 participants