Skip to content

Do not charge for empty HTTP agent searches - #203

Merged
github-actions[bot] merged 4 commits into
mainfrom
ship/no-charge-empty-search-0915
Sep 15, 2026
Merged

github-actions[bot] merged 4 commits into
mainfrom
ship/no-charge-empty-search-0915

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

HTTP /search currently charges even when no agent matches the capability or every match falls below min_trust. Build the filtered shortlist before metering and return the existing empty response with X-Guild-Cost: 0. Nonempty results keep the existing price, demand recording stays free, and completed paid responses are recovered before checking current supply. Empty searches use a separate event rather than a paid-operation completion.

Validation: 262 focused tests passed, including 16 regressions across JSON and SQLite for empty searches, payment credentials, sandbox balances, trust filters and completed-response recovery. Payment-protocol fixtures now provide matching suppliers so they continue to exercise charging. Full storage suites and official x402-client compatibility are covered by CI.

Release uses the existing protected ship workflow and deployment gate.

AgentTanuki and others added 3 commits September 15, 2026 15:30
Build the filtered shortlist before metering and return empty results at zero cost. Preserve completed payment recovery and normal nonempty search charges. Cover money, sandbox credits, trust cutoffs, and cached recovery; give payment protocol fixtures actual matching supply.
The bot-updated branch has successful dispatched CI, but GitHub still shows all twelve required checks as Expected. Trigger the ordinary authenticated push checks with the exact same tree; preserve protection and the normal ship/deployment gate.
@github-actions
github-actions Bot merged commit 18ba12f into main Sep 15, 2026
28 checks passed
@github-actions
github-actions Bot deleted the ship/no-charge-empty-search-0915 branch September 15, 2026 16:23
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