Repository navigation
chore(comply): #1612 review follow-ups (parse-site parity, raceWithSignal security note, second-call coverage) - #1619
Merged
Merged
Conversation
Three small follow-ups from the parallel expert review of #1613: - bin/adcp.js: parse-site 3 now validates the trailing-flag case for --protocol/--transport, matching the other two parse sites. Pre-existing parity bug where a trailing --transport produced protocolFlag=undefined that snuck past the truthiness gate downstream. - src/lib/testing/client.ts: raceWithSignal gains a security warning in its JSDoc and an inline comment on the orphan-promise resolver. Do not log v there — the orphaned promise still carries an authenticated agent response after the buyer has moved on past the abort. Behavior unchanged. - test/lib/discover-agent-profile-signal.test.js: new test exercises an abort firing during the second getAdcpCapabilities call (existing coverage was first getAgentInfo only). Asserts capabilities_probe_error records the abort reason and that the wrapper exits fast. Two larger follow-ups tracked separately: #1617 — wire A2A tasks/cancel on comply abort #1618 — SSRF denylist on detectProtocol/discoverAgentProfile Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Two low-severity nits from the parallel review of #1619: - src/lib/testing/client.ts (code-reviewer): extend the "do not log" warning to the error branch. Error.message from a transport rejection can carry an echoed response body, same trust-boundary concern. - bin/adcp.js (security-reviewer): parse-site 3 now hard-fails with exit 2 + clear error when --protocol/--transport has no value, matching sites 1 and 2. Was a UX asymmetry where the same typo silently fell through to auto-detect on this site only. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Contributor
Author
|
Pre-merge expert reviews — both converged on approve.
Both nits folded in as commit Larger follow-ups from the same review round tracked separately: #1617 ( |
Contributor
Author
|
Acknowledged. Merged clean with both reviewer sign-offs folded in; #1617 and #1618 are queued for the next sweep. Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three small follow-ups from the parallel expert review of #1613 (which shipped in
@adcp/[email protected]). Larger follow-ups from the same review round are tracked separately as #1617 (tasks/cancelintegration) and #1618 (SSRF denylist).Changes
bin/adcp.js— parse-site 3 trailing-flag validation. The third--protocol/--transportparse site now matches the validation pattern at the other two: a trailing--transportno longer slips through asprotocolFlag === undefined. Pre-existing parity bug surfaced by the code-review of fix(a2a/comply): three-layer A2A timeout fix — pollTaskCompletion + comply signal + discovery (#1612) #1613.src/lib/testing/client.ts—raceWithSignalsecurity warning. The orphan-promise resolver'svargument carries an authenticated agent response after the buyer has moved past the abort. New JSDoc warning + inline// INTENTIONAL: no-op … Do NOT log vcomment so a future maintainer doesn't add a logging hook there. Behavior unchanged.test/lib/discover-agent-profile-signal.test.js— second-call coverage. Existing tests covered abort during the firstgetAgentInfocall only. New test exercises an abort firing while the secondraceWithSignal-wrappedgetAdcpCapabilitiescall is in flight, assertscapabilities_probe_errorrecords the abort reason, and bounds the wait.Out of scope (filed as separate issues)
tasks/cancelso comply abort doesn't orphan billed seller work. Real ad-tech concern (seller continues holding inventory after buyer gives up); spec-dependent.detectProtocol/discoverAgentProfilefor the future server-side comply runner.Test plan
npm run typecheck— cleannpm run format:check— cleanprotocol-detection-1612+discover-agent-profile-signal+storyboard-runner-signal-abort)🤖 Generated with Claude Code