Repository navigation
fix(plugins): compare authoring metadata by canonical JSON semantics - #117486
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 12:40 PM ET / 16:40 UTC. ClawSweeper reviewWhat this changesThe PR makes tool-plugin manifest and package metadata checks compare persisted JSON values structurally rather than rejecting equivalent object-key orders. Merge readinessKeep this PR open for explicit maintainer handling because it carries the protected Priority: P2 Review scores
Verification
How this fits togetherPlugin authoring commands load a tool plugin, derive flowchart LR
A[Tool plugin module] --> B[Plugin authoring CLI]
B --> C[Generate manifest and package metadata]
C --> D[Project manifest to persisted JSON]
E[Manifest and package JSON on disk] --> F[Structural JSON comparison]
D --> F
F --> G[Validate or build-check result]
Decision needed
Why: The code review finds no discrete defect, but repository policy keeps protected-label items open for explicit maintainer handling rather than automated cleanup. Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +4, Tests +226. Total +230 across 2 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Retain the canonical persisted-JSON projection and shared structural comparator, then merge after the protected-label maintainer review and normal exact-head checks complete. Do we have a high-confidence way to reproduce the issue? Yes. Current main’s whole-object Is this the best way to solve the issue? Yes. Projecting generated metadata into its persisted JSON representation and using the existing structural JSON comparator fixes the owner boundary without adding configuration, a parallel API, or a compatibility path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5db7e1c4ecae. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
98d4d40 to
a858924
Compare
|
Merged via squash.
|
* origin/main: (44 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
* origin/main: (41 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
…penclaw#117486) Co-authored-by: Peter Steinberger <[email protected]>
* origin/main: (44 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
* origin/main: (27 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
* origin/main: (41 commits) fix(plugins): compare authoring metadata by canonical JSON semantics (openclaw#117486) fix(doctor): reject contradictory lint check selectors (openclaw#117495) fix(anthropic): honor configured model pricing (openclaw#117275) refactor(plugins): reuse scoped loader for capability discovery (openclaw#117373) refactor(test): derive changed tooling routes (openclaw#117407) fix(kova): clarify extension memory attribution (openclaw#117500) fix(imessage): sanitize private context on every outbound path (openclaw#117501) fix(ci): align release validation fixtures (openclaw#117494) fix(talk): preserve owner authorization in realtime consults (openclaw#114163) fix(ui): surface aborted-run diagnostics (openclaw#117497) perf(models): skip Ollama row runtime loading (openclaw#117465) fix(cli): report user profile command outcomes (openclaw#117466) fix(active-memory): detect Chinese recall intent in escalate mode (openclaw#117338) (openclaw#117419) fix(workboard): ignore caller-supplied archivedAt when creating a card (openclaw#116412) fix(models): avoid waiting on promotions before listing models (openclaw#117322) refactor(plugins): inherit shared package boundary settings (openclaw#117474) fix(systemd): parse all inline environment assignments (openclaw#117484) feat(web-fetch): add tools.web.fetch.headers for operator request headers (openclaw#115545) fix(qa): Slack progress lane misses successful delivery (openclaw#117391) refactor: deduplicate Codex prompt snapshot fixtures (openclaw#117476) ...
What Problem This Solves
openclaw plugins validateandopenclaw plugins build --checkincorrectly reject valid plugin metadata when equivalent nested JSON objects have different key insertion orders. Their existing whole-object string comparisons mistake ordering for a meaningful metadata change.A comparator-only change would also break TypeBox-authored plugins: real generated schemas can contain enumerable
description: undefinedoptions at root or nested properties, while persisted manifest JSON correctly omits those values.Why This Change Was Made
The plugin-authoring owner now projects generated manifests once into their exact persisted JSON representation. Both command paths then reuse the existing
@openclaw/normalization-core/json-schemastructural comparator at all three manifest/package comparison boundaries.The regression fixture also uses the existing typed
expectDefinedinvariant for its first tool. This explicitly fixes the genuine hosted test-type failure from the revoked earlier candidate; the replacement passed the complete hosted-equivalent test-type shard before review.Object keys become order-insensitive; arrays remain ordered; meaningful differences and missing manifests still fail. No fallback, configuration key, SDK surface, protocol field, storage format, dependency, or compatibility shim was added.
User Impact
Plugin authors can reorder equivalent manifest or package JSON fields without false stale-metadata failures in local validation or CI. TypeBox schemas with legitimate explicit undefined options continue to match their real persisted representation. Neither validation nor
--checkrewrites plugin files.Evidence
a85892447372fd3d89a5518d8e07172fe222bce4: dedicated trusted Blacksmith Testbox ranpnpm check:test-types && pnpm tsgo:scripts && pnpm tsgo:test:root && pnpm test src/cli/plugins-authoring-command.test.ts; all core, plugin-extension, root, and script type checks passed; all 23 tests passed; exit 0. The dedicated lease was stopped.plugins validate: baseline exits 1 with stale generated metadata; corrected production code exits 0 and reports a valid plugin.plugins build --check: baseline exits 1 with out-of-date generated metadata; corrected production code exits 0 and reports metadata up to date.__proto__keys.gpt-5.6-solhigh-reasoning P0–P3 autoreview: zero findings, patch correct, confidence 0.96. Genuine native TruffleHog 3.96.0: clean.