Repository navigation
fix(training-agent): drop the runner probe-key exemption - #7953
Conversation
@adcp/sdk 14.1.0 (adcontextprotocol/adcp-client#3095) stopped synthesizing an unprovisioned account on discovery probes, and main runs 14.2.0. The self-operated acme-outdoor key now gets no special treatment: unprovisioned natural keys on discovery tasks return ACCOUNT_NOT_FOUND. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean fail-closed tightening with no blocking findings.
Checked:
- Removes the temporary runner probe-key exemption (isRunnerSynthesizedProbeKey / RUNNER_SYNTHESIZED_PROBE_DOMAIN) from assertDiscoveryAccountProvisioned, now that adcp-client#3095 is fixed in @adcp/sdk 14.1.0 and main runs 14.2.0 (#7931).
- Grep confirms no dangling references to the removed helpers.
- The pinning test is correctly updated to assert ACCOUNT_NOT_FOUND.
- Training-agent-only change; no static/schemas/source/, docs/reference/, or dist/** touched, so no changeset is correctly omitted.
No schema/docs coherence, oneOf discriminator, artifact-immutability, or changeset-scope concerns apply. high_risk is false, gated_paths is false, no author team gate, no prior decision. No critical/high/medium findings. Falls through to row 9.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean removal of temporary runner-probe exemption.
This PR removes the temporary runner-probe exemption (#7848) now that @adcp/sdk 14.2.0 on main carries the adcp-client#3095 fix (pin verified in package.json). Dead code (RUNNER_SYNTHESIZED_PROBE_DOMAIN + isRunnerSynthesizedProbeKey) is fully removed with no dangling references; the acmeoutdoor.example key now takes the normal ACCOUNT_NOT_FOUND path and the test flips to assert rejection accordingly.
Scope: training-agent only, no protocol surface touched (no static/schemas/source/, no docs/reference/, no dist artifacts), so no changeset required. Primary path (security_baseline on /signals) validated locally without the exemption.
No critical/high/medium findings. high_risk is false, gated_paths is false, review_decision is APPROVED, no author team gate. Prior decision was approve with no findings; this run is consistent. Falls through to row 9.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean dead-code removal, no findings.
This PR removes the temporary acmeoutdoor.example runner-synthesized probe exemption from assertDiscoveryAccountProvisioned (server/src/training-agent/v6-account-helpers.ts) and rewrites the corresponding test to assert rejection. The reviewer verified: the SDK is pinned at 14.2.0 (≥ 14.1.0, where the runner stopped synthesizing the key), so the exemption is dead code; the constant, predicate, and sole call site are removed together with no dangling references; remaining acmeoutdoor.example sites are provisioned fixtures the exemption never matched. Behavior change is fail-closed (unprovisioned → ACCOUNT_NOT_FOUND). No protocol surface touched (no static/schemas/source/**, docs/reference/**, or dist/**), so no changeset required and no schema↔docs coherence concern applies.
No findings. high_risk false; gated_paths false; review_decision APPROVED; no author team gate. Prior decision was approve with no findings — consistent net state. None of decision-table rows 1–8 fire, so row 9 applies.
Summary
This removes the temporary exemption added in #7848. That exemption made the training agent treat the self-operated
acmeoutdoor.examplenatural key as provisioned. It was needed because the storyboard runner synthesized that unprovisioned account on account-less discovery probes, which brokesecurity_baselineon/signals. adcontextprotocol/adcp-client#3095 fixed the runner in@adcp/sdk14.1.0, andmainruns 14.2.0 (#7931).The key now follows the rule like any other natural key: on a discovery task, an unprovisioned key returns
ACCOUNT_NOT_FOUND. The unit test that pinned the exemption now asserts that the key is rejected.Validation
npm run typecheckpasses.training-agent-unprovisioned-account-reference.test.ts: 5/5 pass. These need--hookTimeoutlocally; the setup hook loads the whole training agent, and on unmodifiedmainthe same two tests time out in this sandbox under the default 10s./signalsstoryboards, run locally on SDK 14.2.0 without the exemption: 54/54 clean and 123 steps passed.security_baselinepasses (4P / 3S)./sales: 30 storyboards ran locally, all clean, before my local timeout. CI's sharded sales jobs cover the full set.No changeset (training agent only).
🤖 Generated with Claude Code
Open workspace in Conductor