Repository navigation
fix(signals): scope error checks and reject invalid specs - #8579
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
Clean PR with no Critical/High/Medium findings. Makes error_compliance_signals runnable for discovery-only owned agents by dropping activate_signal from required_tools (v1.0.0→1.0.1) while preserving activation coverage via a new signal_marketplace/error_compliance scenario wired into the specialism's requires_scenarios. The training-agent handler change (task-handlers.ts:20793-20803) rejects non-string signal_spec with INVALID_REQUEST/correctable, consistent with the existing errors[] convention, and tests cover both the reject and valid-string/legacy-brief paths.
Checked against repo mandates: schema↔docs coherence holds (conformance.mdx and the inventory snippet both track the new summary); a patch changeset is present and in scope; no dist/** released artifact was mutated; passed_count math (1+1+2+1=5) is consistent. No breaking wire change, no oneOf regression, no governance-precedent conflict.
No escalation triggers: high_risk is false, gated_paths is false, no no-auto-approve team match, no prior decision. review_decision is REVIEW_REQUIRED but gated_paths is false, so row 2 does not fire. Falls through to row 9.
Fixes #8503. A discovery-only signals agent currently skips four activation steps in the shared error storyboard, leaving its error bundle incomplete. The shared storyboard now uses only
get_signals; its malformed discovery probes check rejection codes and context echo for both owned agents and marketplaces. The two activation negatives move into an isolated scenario required bysignal-marketplace. The training handler also rejects non-stringsignal_specvalues instead of silently dropping them and returning a catalog.The marketplace scenario requires only
activate_signal, preserving the SDK's any-of tool-selection semantics. Missing required tools or controller support still leave evidence incomplete; accepted invalid requests, wrong codes and missing context still fail. Existing published bundles are unchanged. A patch changeset records the source correction.Validation:
All four new resolver/runner/bundle controls pass in Docker with networking disabled, using the repository's pinned SDK 17.0.0-beta.3 and every authored validation. The shared error bundle passes for owned agents and marketplaces; activation negatives execute for marketplaces.
Both changed storyboards pass through real local MCP with no failed or skipped steps (runner counts 7 and 4 passed, including fixture seeding). The handler suite passes 35 selected tests, including seven invalid-type and two valid string/legacy-brief controls.
Unexecuted sibling marketplace scenarios remain incomplete. The tests do not manufacture a passing overall marketplace role.
The complete capability-gate file passes 46 tests with zero skips. The same four controls also pass unchanged on stable SDK 16.6.0. Compliance build and authoring checks, Changesets scope/status, and independent code/security review pass.
Normal pre-commit hooks pass: 1,276 root unit tests, 13,401 server tests (31 expected skips), and typecheck.
Coverage boundaries: owned agents exposing optional activation without claiming marketplace receive discovery-only coverage. Error-code/context checks do not independently verify raw MCP flags or full error message/recovery structure. The broader Strict Spec applicability bugs #8527/#8534 remain separate; this PR does not claim overall Strict completion.
The full storyboard matrix runs in CI. The final push uses the documented local advisory-matrix skip; other commit/push checks run normally in Docker.
Open workspace in Conductor