Repository navigation
fix(ci): core lint fails on main after the MCP catalog JSON snapshot change - #199944
Conversation
#199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
The production suppression allowlist must name each intentional lint suppression; add the one this change introduces.
|
Codex review: needs maintainer review before merge. What this changesAdds a narrow lint suppression for the intentional MCP metadata JSON snapshot and registers it in the existing suppression inventory. Example: A contributor's change runs check-lint-core-2 against the MCP catalog preparation file.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR is ready to merge: it repairs the core lint failure without changing runtime behavior, and the exact-head CI gate passes; no actionable findings remain. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherAgent catalog preparation turns tool definitions into reusable immutable metadata; core lint checks that source, while the suppression inventory tracks intentional exceptions. flowchart TD
A[Tool definitions] --> B[Prepared catalog owner]
B --> C[Immutable JSON metadata]
B --> D[Core lint]
E[Suppression inventory] --> F[CI gate]
D --> F
Technical reviewBest possible solution: Merge the narrow suppression and inventory update while retaining the existing JSON snapshot owner. Do we have a high-confidence way to reproduce the issue? The unsuppressed JSON round trip and enabled lint rule establish the failure path; the body records the failing command, and the linked main CI job failed its core lint step. Is this the best way to solve the issue? This is the smallest complete repair: preserve the intentional serialization semantics, suppress the incompatible recommendation locally, and update the existing exception inventory. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5dc807193185. Provenance checked
SecurityNone. EvidenceWhat I checked:
PR surfaceSource +1, Tests +2. Total +3 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 15, 2026, 11:40 PM ET / November 16, 2026, 04:40 UTC. |
|
Merged via squash.
|
…change (#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot #199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]>
…change (#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot #199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]>
…change (#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot #199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]>
…change (openclaw#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot openclaw#199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces.
* fix(release): generate notes from large commit histories Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> * fix(release): generate notes from large commit histories Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 8c601281-d723-4553-9a10-e3f9692af6c2 * fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot #199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]>
…199923) * fix(release): freeze published stable version in maintenance notices Resolve published Latest for initial extended-stable notes instead of the tooling package version. Reuse canonical prepared or public notice context for readback and fresh-run recovery while keeping main-based retirement authority separate. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> * fix(release): freeze published stable version in maintenance notices Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: c6037000-9e46-442a-af64-4acf2707bc03 * fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot #199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> --------- Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]>
* fix(release): retry timed-out plugin source fetches Route both exact-source manifest reads through the existing Git fetch owner, preserving immutable targets and cleanup before bounded retries. Prove timeout recovery at both workflow policy entry points. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> * fix(release): retry timed-out plugin source fetches Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 44e02330-78d5-4a34-b429-49716c9c10dc * fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot #199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/ledger-runtime Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 76d33b04-cb7e-4bdf-a924-c0ed6ce3dcaf --------- Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]>
* fix(release): retry timed-out plugin source fetches Route both exact-source manifest reads through the existing Git fetch owner, preserving immutable targets and cleanup before bounded retries. Prove timeout recovery at both workflow policy entry points. Release adaptation: none. Companion review: Priority approved #199924: source b4190c2. Full plugin npm workflow and lifecycle tests read; shared Git fetch/run_git/git_output contract and test harness traced. Both exact-source package-read workflow entry points fail on first timed-out fetch, exit124 and no manifest;2 red failures/45 skipped in199924-red.log. Existing fetch owner retries bounded3, same exact SHA, blobless, drains children/reclaims owned locks before retry and preserves cancellation fencing. No new dependency; helper already present. Companion scan to c8d5cf5 finds no later path/source followups; neighbor plugin package policy suite is unchanged consumer and will be exercised. All-release ledger query has no sibling assessment. No publication/authority/artifact integrity policy changed. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> * fix(release): retry timed-out plugin source fetches Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 44e02330-78d5-4a34-b429-49716c9c10dc * fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot #199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/ledger-runtime Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 76d33b04-cb7e-4bdf-a924-c0ed6ce3dcaf --------- Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]> (cherry picked from commit b4190c2)
…9921) * fix(release): generate notes from large commit histories Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> * fix(release): generate notes from large commit histories Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 8c601281-d723-4553-9a10-e3f9692af6c2 * fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (openclaw#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot openclaw#199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]>
…penclaw#199923) * fix(release): freeze published stable version in maintenance notices Resolve published Latest for initial extended-stable notes instead of the tooling package version. Reuse canonical prepared or public notice context for readback and fresh-run recovery while keeping main-based retirement authority separate. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> * fix(release): freeze published stable version in maintenance notices Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: c6037000-9e46-442a-af64-4acf2707bc03 * fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (openclaw#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot openclaw#199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> --------- Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]>
* fix(release): retry timed-out plugin source fetches Route both exact-source manifest reads through the existing Git fetch owner, preserving immutable targets and cleanup before bounded retries. Prove timeout recovery at both workflow policy entry points. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> * fix(release): retry timed-out plugin source fetches Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 44e02330-78d5-4a34-b429-49716c9c10dc * fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (openclaw#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot openclaw#199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/ledger-runtime Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 76d33b04-cb7e-4bdf-a924-c0ed6ce3dcaf --------- Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]>
* fix(release): generate notes from large commit histories Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> * fix(release): generate notes from large commit histories Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 8c601281-d723-4553-9a10-e3f9692af6c2 * fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot #199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]> (cherry picked from commit cd7273f) (cherry picked from commit 5f6b13f32862f5b403ae65aaa7c88f7cd3aba01e)
…199923) * fix(release): freeze published stable version in maintenance notices Resolve published Latest for initial extended-stable notes instead of the tooling package version. Reuse canonical prepared or public notice context for readback and fresh-run recovery while keeping main-based retirement authority separate. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> * fix(release): freeze published stable version in maintenance notices Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: c6037000-9e46-442a-af64-4acf2707bc03 * fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot #199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> --------- Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]> (cherry picked from commit 263af8c) (cherry picked from commit 7c7ba41b56fc7647f080343a11f18c8e8b7919f1)
* fix(release): retry timed-out plugin source fetches Route both exact-source manifest reads through the existing Git fetch owner, preserving immutable targets and cleanup before bounded retries. Prove timeout recovery at both workflow policy entry points. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> * fix(release): retry timed-out plugin source fetches Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 44e02330-78d5-4a34-b429-49716c9c10dc * fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (#199944) * fix(agents): core lint fails on the MCP catalog JSON snapshot #199909 snapshots MCP catalog metadata through JSON on purpose, because the round trip drops undefined members that structuredClone would keep. The unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2 fails on main and on every pull request whose lint lanes include src/agents. Record the reason with the repository's usual suppression. * test(scripts): allow the MCP catalog JSON snapshot suppression The production suppression allowlist must name each intentional lint suppression; add the one this change introduces. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/ledger-runtime Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 76d33b04-cb7e-4bdf-a924-c0ed6ce3dcaf --------- Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]> (cherry picked from commit b4190c2) (cherry picked from commit 38c263d2bcd7bf4f6814a501dc99bbbaec9d17f3)
Related: #199909
What Problem This Solves
Fixes:
check-lint-core-2fails onmain, and on every pull request whose lint lanes includesrc/agents, since #199909 merged.User Impact
User impact: none. No runtime behavior changes. Contributors stop getting a red
openclaw/ci-gatefrom a lint error in a file their change does not touch.Why This Change Was Made
#199909 snapshots MCP catalog metadata with
JSON.parse(JSON.stringify(...))on purpose: the comment above the line says the JSON round trip dropsundefinedmembers that are not valid JSON.structuredClonewould keep those members, so applying the lint rule's suggested fix would undo the change. This adds the suppression the repository already uses for the same situation (for example inextensions/deep-research/src/job-state.ts), with the reason stated on the line.Evidence
Before, on unmodified
mainat59b74af7e1ae:The same error in the scheduled
mainCI run: https://github.com/openclaw/openclaw/actions/runs/43798879940/job/133074450801After, on this branch:
The production suppression allowlist in
test/scripts/lint-suppressions.test.tsnames every intentional suppression, so this adds the new entry there. The first push of this pull request missed that and failedchecks-node-compact-small-1; with the entry added:The format check on both changed files passes. The broader gates were not run locally; this pull request's CI covers them.