Repository navigation
Conversation
cashmaxx.neu.so/pnl/ reads a running guard's /public/pnl.json straight from the browser: income (split into verified-from-chain/Stripe vs agent-reported), costs, net, per window and per category. The page is static; the guard URL comes from ?guard=, localStorage, or a baked window.CASHMAXX_GUARD_URL. - ledger.pnl now carries verified_income per window (sum of verified income rows), so the page can show how much of the income is backed by chain or Stripe evidence. - /public/pnl and /public/pnl.json answer with Access-Control-Allow- Origin: * (totals only, so cross-origin reads expose nothing new), and the guard's own HTML page gained the Verified column. - Home page links the Live P&L (nav + final CTA); sitemap updated. Board card #827
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.
What
A live P&L page at cashmaxx.neu.so/pnl/ — the site stops asserting the experiment and starts showing it. The page fetches a running guard's
/public/pnl.jsonstraight from the browser and renders income, costs, and net by window and by category, with income split into verified (written by the chain and Stripe watchers) vs agent-reported.cashmaxx/guard/ledger.py—pnl()now carriesverified_incomeper window; newverified_income()helper.cashmaxx/guard/public.py— the guard's own P&L HTML gained a Verified column; both public endpoints answerAccess-Control-Allow-Origin: *(they already expose totals only, so cross-origin reads leak nothing new).cashmaxx/guard/app.py— CORS headers on/public/pnland/public/pnl.json.site/public/pnl/— the new static page +app.js. No build step. Guard URL resolves from?guard=, localStorage, or a bakedwindow.CASHMAXX_GUARD_URL; graceful empty / offline / 404 (public_pnl off) states; 60s auto-refresh.Why
Wallet V publishes its agent performance openly and Freysa has $103k+ of documented payouts; Cashmaxx's whole claim is "can it earn more than it costs?" but the site only showed a simulated wallet with demo data. The guard already keeps the honest ledger — this feeds it into a public page so the experiment is verifiable instead of asserted.
Testing
tests/cashmaxx/guard/test_guard_app.py::test_public_pnlextended: verified vs unverified income split in the JSON, CORS header on both endpoints, Verified column in the HTML.ruff checkclean,basedpyright0 errors,pytest tests/cashmaxx342 passed. Fullpytest tests: 6714 passed; the 2 failures intests/tools/test_tool_validation.py::test_exec_guard_allows_public_urlsare pre-existing on main (network-dependent; verified by stashing this change).public_pnl: true, FakeWallet, seeded verified/unverified rows) against the page served fromsite/public/under jsdom — data state renders $13.50 income / $12.50 verified / −$10.75 net with the negative-net class; empty state with no guard URL; and the "guard has no public P&L" error state whenpublic_pnlis off.Deploy note (owner, after merge):
cd site && npx wrangler pages deploy public --project-name cashmaxx --branch main, and on the live guard setpublic_pnl: true+public_base_urland expose the guard (e.g. cloudflared); optionally bakeCASHMAXX_GUARD_URLinto the page so it loads the owner's ledger with no URL entry.Board card #827