Repository navigation
fix(ci): rebuild session catalog sdk declarations - #124165
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 8:51 AM ET / 12:51 UTC. ClawSweeper reviewWhat this changesThe 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 provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep 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 Review scores
Verification
How this fits togetherThe 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
Before merge
Agent review detailsSecurityNone. PR surfaceOther +2. Total +2 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
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 byopenclaw/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
SessionCatalog*ProviderParamsdeclarations.pnpm test:extensions:package-boundary:compileacross 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).