Repository navigation
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs real behavior proof before merge. Reviewed July 1, 2026, 4:08 AM ET / 08:08 UTC. Summary PR surface: Source +94, Tests +280. Total +374 across 2 files. Reproducibility: yes. source-level. Current main returns unsupported-signal diagnostics for empty groups, but buildToolPlan only records hidden descriptors and plugin descriptor capture drops plugin-authored availability. Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land one canonical fix that fully validates plugin-authored availability before registration-time evaluation, keeps the evaluator/planner pure, surfaces one authoring diagnostic at the plugin registration or planner-integration boundary, and includes redacted runtime proof. Do we have a high-confidence way to reproduce the issue? Yes, source-level. Current main returns unsupported-signal diagnostics for empty groups, but buildToolPlan only records hidden descriptors and plugin descriptor capture drops plugin-authored availability. Is this the best way to solve the issue? No. Descriptor capture is a plausible boundary, but this branch is not the best fix until it validates kind-specific availability fields before evaluation, supplies real plugin or gateway proof, and maintainers choose one canonical linked implementation. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 76f9b6d83758. Label changesLabel justifications:
Evidence reviewedPR surface: Source +94, Tests +280. Total +374 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
|
@clawsweeper re-review |
d890736 to
979d849
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Fixed the P1 guard/evaluator mismatch:
|
|
🦞🧹 I asked ClawSweeper to review this item again. |
…r registration In capturePluginToolDescriptor, preserve tool-authored availability expressions and log unsupported-signal diagnostics once per captured descriptor. This surfaces authoring errors (empty allOf/anyOf groups, malformed expressions) at the descriptor-registration boundary instead of silently hiding tools in the planner. - Keeps evaluateToolAvailability and buildToolPlan pure - Reads availability through a narrowed record (no AnyAgentTool type change) - Only warns for unsupported-signal diagnostics (authoring errors), not runtime conditions like auth/config/env Fixes openclaw#92361 Co-Authored-By: Claude <[email protected]>
…ator - Validate allOf/anyOf are arrays before passing to evaluateToolAvailability - Non-array group values now produce a console.warn diagnostic instead of crashing tool registration on .flatMap / .map - Malformed availability is stripped from the descriptor to keep the evaluator pure - Add regression tests for non-array allOf, non-array anyOf, and valid nested array entries Fixes openclaw#92361 Co-Authored-By: Claude <[email protected]>
Make hasValidAvailabilityGroupShape recursive so nested non-array
allOf/anyOf groups (e.g. { allOf: [{ anyOf: "not-array" }] }) are
caught at the descriptor-capture boundary instead of reaching the
evaluator and throwing on .flatMap / .map.
Add regression test for nested malformed availability groups.
Co-Authored-By: Claude <[email protected]>
…lidation Plugin-authored data is arbitrary JS — null, primitives, and arrays inside allOf/anyOf groups would reach the "in" operator and throw TypeError. Skip non-object entries in the recursive shape check; the evaluator will diagnose them as malformed expressions later. Add regression test for mixed non-object entries in group arrays. Co-Authored-By: Claude <[email protected]>
…shape guard Plugin-authored availability data is untyped at the descriptor boundary. Null entries and non-object primitives (string, number, boolean) inside allOf/anyOf arrays passed the shape guard but crashed the evaluator on "kind" in expr (TypeError). Reject them so the whole expression is stripped with a warning instead of crashing tool registration. This fixes the P1 bug where a malformed descriptor with null entries could crash plugin registration instead of just producing a warning. Co-Authored-By: Claude <[email protected]>
f665cb4 to
3c9e9d7
Compare
What Problem This Solves
Empty
allOf/anyOfavailability groups silently hid tools from the plan with no observable signal. Plugin authors had no way to know their descriptor was malformed.Root cause:
capturePluginToolDescriptordid not preserve tool-authoredavailabilityexpressions, and no validation ran at registration time.Fixes #92361
Change
src/plugins/tool-descriptor-cache.tsavailabilityon captured descriptors, validate group shapes recursively at the descriptor-capture boundary, reject null and non-object entries that would crash the evaluator, surfaceunsupported-signaldiagnostics viaconsole.warnonce at registration timesrc/plugins/tool-descriptor-cache.test.tsKey changes:
availabilityon captured tool descriptors (previously dropped)hasValidAvailabilityGroupShape: validates everyallOf/anyOfgroup at any nesting level is an array of valid expression objectsunsupported-signaldiagnostics surfaced viaconsole.warnonce at registration timeEvidence
tool-descriptor-cache.test.tsRisk
🤖 Generated with Claude Code