Repository navigation
Three probe paths found in the wild, and two deliberately left out - #25
Merged
Merged
Conversation
The provider rounds turned up five real balance paths. Three go in:
/v1/users/me/balance moonshot
/v1/user/info siliconflow
/v1/account/billing fal
Two do not, and that is the more considered half. /openapi/v1/billing/balance/detail
(novita) and /payment/config (deepinfra) are just as real and just as documented,
but both are already in a manifest and neither generalises: nothing else is going
to answer on either path. Adding them would buy nothing and cost one authenticated
request per probe run, plus one line per provider in `aipocket audit` — whose
entire value is that a person can read it before trusting the tool with a key.
At nineteen providers that is nineteen lines each, for zero expected hits.
`aipocket audit` and `probe` already print len(probePaths), so their output stayed
true on its own; the counts spelled out in CLAUDE.md and SECURITY.md did not, and
are now phrased so they cannot go stale again.
The test asserts the list is rooted and free of duplicates — a duplicate sends the
key twice, a path without a leading slash points somewhere else entirely — and that
audit names every one of them for a probeable provider. Verified by adding both
faults and dropping nothing else: both were caught.
Fixes #8
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Closes #8.
The provider rounds (#5, #6, #19, #20) turned up five real balance paths. Three go in:
/v1/users/me/balance/v1/user/info/v1/account/billingTwo do not, and that is the more considered half of the change.
/openapi/v1/billing/balance/detail(novita) and/payment/config(deepinfra) are just as real and just as documented — but both already live in a manifest, and neither generalises: nothing else will answer on either path.Adding them would buy nothing and cost one authenticated request per probe run plus one line per provider in
aipocket audit, whose entire value is that a person can read it before trusting the tool with a key. At nineteen providers that is nineteen lines each for zero expected hits. The reasoning is in the comment above the list, so the next person adding a path has the cost in front of them.auditandprobealready printlen(probePaths), so their output stayed true by itself. The counts spelled out in prose — "the nine probe paths" in CLAUDE.md and SECURITY.md — did not, and are now phrased so they cannot go stale again.Test
auditnames every probe path for a probeable provider — the assertion that keeps the footprint promise honest when someone adds a path and forgets audit exists.Verified by planting both faults (
/v1/creditstwice,v1/oopsunrooted): both caught.go test -race ./...,go vet ./...,gofmt -l .clean.🤖 Generated with Claude Code