fix(discovery): expose search quote to bare registry probes - #108
Merged
Conversation
Agentic.market/validate (and Bazaar-style registry validators) probe the bare operation URL before learning its query schema. GET /search without capability returned FastAPI's 422 before any x402 discovery, so the paid search product was invisible to the exact crawler that feeds Coinbase's agent storefront. A pure unauthenticated bare probe now receives the discovery-only, non-executable dual-protocol 402 quote (same _probe_challenge_or_none path as every other paid GET). Any payment credential or API key with a missing capability still fails 422 BEFORE demand recording and before settlement; valid searches are byte-identical. Tests: bare probe -> 402 with discovery_only/executable flags, both PAYMENT-REQUIRED and WWW-Authenticate headers, settle-spy zero; PAYMENT-SIGNATURE / MPP Authorization / X-API-Key retries without capability -> 422, settle-spy zero, no payment-response. Full suite 1,705 passed / 0 failed / 9 skipped (independent sandbox replication on 175db6b + this diff; worktree run 1,698 passed / 16 skipped).
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.
Machine-operated ship branch
ship/agentic-market-search-probe-0814.The ship workflow dispatches the full
cimatrix, waits for it, merges only the certified combined state with main, then runs the deployment-aware release gate against the merged SHA — with automatic certified revert on a red gate. See .github/workflows/ship.yml.