Skip to content

[test] The revenue page and the tool directory stay up - #2136

Merged
MikeyPetrillo merged 4 commits into
mainfrom
claude/sweet-brown-i99jl3
Dec 5, 2026
Merged

MikeyPetrillo merged 4 commits into
mainfrom
claude/sweet-brown-i99jl3

Conversation

@MikeyPetrillo

Copy link
Copy Markdown
Owner

Two pages stay up.

  • /revenue renders a sale of any payment type, one with no label included.
  • /marketplace/tools and /api/index/tools answer while a crawl writes listings.
  • A new test reads every module for names that are not defined.

@strix-security

strix-security Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Strix Security Review

✅ No open security findings.

PR summary: Adds regression tests for the revenue page and the tool directory, hardens the Postgres directory read against a concurrent write clearing its cached counts, adds a Lightning rail label and a safe network-alias lookup to the revenue page, and normalizes the geo-lookup tool's response to always carry a credit field.

Review summary

This PR adds regression tests and two small production fixes: the Postgres-backed directory now captures its shared counts snapshot before awaiting so a concurrent listing write can no longer make a page read throw, the revenue page gains a Lightning rail label plus a plain-object network alias lookup (removing the stale table reference that 500'd the first sale of an unlabeled payment type), and the geo-lookup wrapper now always attaches a credit field.

All three production modules and the new test wiring were traced from their callers to the sinks. The directory's filter, offset and exclude-origin inputs are parameterized or integer-parsed before reaching SQL, and the snapshot change only makes reads use a self-consistent copy of the counts; the revenue rail table, per-rail labels and generated explorer/tx links render through the page's existing escaping, and an unknown rail name prints as inert text; the added credit field is cosmetic and no verifier or receipt binds it. No security issues found.

Review history (2)
  • Review 2 · 8630980 · Dec 5 02:09 UTC · Nothing new
  • Review 1 · 1033fdc · Dec 5 01:59 UTC · Nothing new

Review 2 on this PR · 8630980 · requested Dec 5 02:05 UTC by @MikeyPetrillo


Reviewed by Strix
Re-run review · Configure security review settings · Try a deeper review with @strix-security /deep

@MikeyPetrillo

Copy link
Copy Markdown
Owner Author

@strix-security review

@MikeyPetrillo
MikeyPetrillo merged commit fe58074 into main Dec 5, 2026
86 checks passed
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