docs: require approval before paid API calls - #93
Merged
Conversation
eddiearc
force-pushed
the
codex/aisa-pricing-contract-docs
branch
from
September 1, 2026 05:11
6a208c3 to
0e660d1
Compare
7 tasks
eddiearc
force-pushed
the
codex/aisa-pricing-contract-docs
branch
from
September 1, 2026 07:17
0e660d1 to
5bb33e3
Compare
eddiearc
force-pushed
the
codex/aisa-pricing-contract-docs
branch
from
September 1, 2026 08:07
5bb33e3 to
f1950fb
Compare
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.
Paid / high-cost API approval-first 文档合同
本 PR 只改 docs/OpenAPI contract;不新增报价 API,不修改、合并或部署 MCP / 后端。
唯一来源、无派生产物
openapi/similarweb.json的x-aisa-pricing(已在 feat(openapi): add machine-readable x-aisa-pricing to agent-facing spec #92 存在);llms.txt的 XML<IMPORTANT>对每个付费、动态或可能高成本 API 生效。安全合同
付费数据调用前,Agent 必须展示 exact endpoint/scope、公式或费率与已记录的最大 USD。
“直接查齐/调研/出报告”不是批准:Agent 必须等待用户在下一条消息中单独批准该 scope
与 cap。无法确认上限的 provider-controlled 维度仍 fail-closed;禁止 price probe/test。
对应评测集
user-journey-evals #5 现已覆盖无上限 snapshot、硬预算 SimilarSites、scope-drift 重确认和通用高价 API;其中前两项是可运行的零数据调用 case。完整报告保留实际样本和残余风险。