Skip to content

Three probe paths found in the wild, and two deliberately left out - #25

Merged
naturalmoods merged 1 commit into
mainfrom
issue-8-probe-paths
Aug 18, 2026
Merged

naturalmoods merged 1 commit into
mainfrom
issue-8-probe-paths

Conversation

@naturalmoods

Copy link
Copy Markdown
Owner

Closes #8.

The provider rounds (#5, #6, #19, #20) turned up five real balance paths. Three go in:

path found at
/v1/users/me/balance moonshot
/v1/user/info siliconflow
/v1/account/billing fal

Two 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.

audit and probe already print len(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

  • the list is rooted and duplicate-free: a duplicate sends the key to the same place twice, and a path without a leading slash points somewhere else entirely;
  • audit names 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/credits twice, v1/oops unrooted): both caught.

go test -race ./..., go vet ./..., gofmt -l . clean.

🤖 Generated with Claude Code

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>
@naturalmoods
naturalmoods merged commit f332919 into main Aug 18, 2026
5 checks passed
@naturalmoods
naturalmoods deleted the issue-8-probe-paths branch August 18, 2026 09:28
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.

Extend probePaths with conventions found in the wild

1 participant