Skip to content

fix(training-agent): drop the runner probe-key exemption - #7953

Merged
bokelley merged 3 commits into
mainfrom
w-552/remove-runner-probe-exemption
Oct 7, 2026
Merged

bokelley merged 3 commits into
mainfrom
w-552/remove-runner-probe-exemption

Conversation

@bokelley

@bokelley bokelley commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This removes the temporary exemption added in #7848. That exemption made the training agent treat the self-operated acmeoutdoor.example natural key as provisioned. It was needed because the storyboard runner synthesized that unprovisioned account on account-less discovery probes, which broke security_baseline on /signals. adcontextprotocol/adcp-client#3095 fixed the runner in @adcp/sdk 14.1.0, and main runs 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 typecheck passes.
  • training-agent-unprovisioned-account-reference.test.ts: 5/5 pass. These need --hookTimeout locally; the setup hook loads the whole training agent, and on unmodified main the same two tests time out in this sandbox under the default 10s.
  • Current /signals storyboards, run locally on SDK 14.2.0 without the exemption: 54/54 clean and 123 steps passed. security_baseline passes (4P / 3S).
  • Current /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

@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]>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@bokelley
bokelley merged commit 4ca1ffd into main Oct 7, 2026
54 checks passed
@bokelley
bokelley deleted the w-552/remove-runner-probe-exemption branch October 7, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant