Commit Graph

430 Commits

Author SHA1 Message Date
martbost b5baaf27e8 Partner kit pages at /partners/<slug>; first one for Jamie (@cryptojaime)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 09:36:25 -05:00
martbost b197d74234 docs: reviewer partner kit for Jamie (@cryptojaime), code CRYPTOJAIME
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 09:30:36 -05:00
martbost a60905a9fb Tank, roster and downline: sortable/filterable lists with last seen, surf earnings and wallet/payout state; admin Members table loads 5000 accounts
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 09:25:55 -05:00
martbost 58dc3864cd Friday Bonus Hunts card: say plainly when an unopened inbox ad is what blocks today
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 08:50:12 -05:00
martbost 37a78de339 Wired Wednesday: page, kit, chatbot and banners say $20 and up
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 08:10:48 -05:00
martbost 43463366ec Wired Wednesday floor is $20 (Activation pack and up): there is no $10 package
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 08:07:21 -05:00
martbost d43836a892 Shiny-objects article: widescreen art as the cover and in the kit
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 07:32:02 -05:00
martbost 9c90a95f4c Shiny-objects article art in the promo kit (cover, square, portrait) with a share-the-article link
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 07:27:09 -05:00
martbost a765b97421 Bridge pages: banner keeps its aspect ratio on phones (height:auto)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 05:46:58 -05:00
martbost 8a6029cd90 Wired Wednesday: bonus is wired into the balance (purchased-grade, any format), no forced visits campaign; all copy corrected
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 05:42:08 -05:00
martbost 5b54debf72 Wired Wednesday: configurable Tuesday notice hour + optional Tuesday Telegram heads-up
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 05:27:50 -05:00
martbost 79023e5f46 Wired Wednesday wrap-up names the biggest lines of the day, like Friday's
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 05:06:22 -05:00
martbost 04fd4db9ca Wired Wednesday: +25% on $10+ packs wired into a verified-visits campaign; /wednesday bridge page, banners, kit, cards, chatbot (notice + kickoff off until approved)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 04:49:34 -05:00
martbost 7ce7aeffa4 home: platform-overview embed points at the 48 kHz re-encode
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 16:17:43 -05:00
martbost 61be49c303 plan-lab: knob for levels bought up front by your position, net of what you paid
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 10:41:58 -05:00
martbost e6b5a9fb22 plan-lab: long runs paint every month with progress and can be interrupted; O(recruiters) placement and picks
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 10:01:47 -05:00
martbost b55388c83b plan-lab: activity pool (15% company + 5% pool), money-flow bar, three example members, the mix table
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 09:32:36 -05:00
martbost 39951cfac5 plan-lab: each leg funds licences at its own share, so join-and-pay members keep their path
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 08:58:35 -05:00
martbost 257b06d6d2 plan-lab: sponsor leg, entry split, Fast Start switches; builders vs join-and-pay mix; 0 ladder
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 08:55:41 -05:00
martbost 34e9d32a8a plan-lab: how-to-read section for reviewers; Start over zeroes every counter
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 08:26:56 -05:00
martbost fd7b5d7ed7 plan-lab: fresh script version tag on every build
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 08:16:03 -05:00
martbost 06a83a0b97 plan-lab: forward-only wording, no comparisons to other programs
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 08:12:19 -05:00
martbost c20a5ed56b plan-lab: spread placement is the decided default
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 07:17:05 -05:00
martbost ab2431be11 Email an update: release notes are optional when there is an intro
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 05:22:24 -05:00
martbost a9cffb87d4 Email an update: a refresh never re-ticks release notes; a saved draft decides which notes go
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 04:50:59 -05:00
martbost 927b13a7cf Admin > Email an update loads at once; audience counts fill in from the background
The panel waited on a Sendy pass over every member (minutes, and the cache
empties on each deploy), so it showed blank. Counts are now a snapshot with
a background refresh, and the form no longer depends on them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 04:43:42 -05:00
martbost 53f0970209 plan-lab: spillover placement and zero-recruit cash switches; tenure and team-funded metrics
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 20:00:17 -05:00
martbost d562d61cbc My line: how pay it forward actually works here, and a confirmation before every PIF
Wallet-to-wallet gift in good faith, unlike platforms that buy the position
out of an account balance. The site holds nothing, cannot reverse or recover
it, and nothing obliges the recipient to buy. Same wording in the chatbot.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 15:14:51 -05:00
martbost 30f84c6aa2 plan-lab: month-by-month run from the real InstantAdPay org; the full-matrix climb becomes the ceiling view
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 13:50:23 -05:00
martbost 273715dc17 plan-lab: admin fee is a running total from zero; entry fees stated once at the start
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 13:37:54 -05:00
martbost e1309d43b7 plan-lab: exactly one route, admin-fee label says whole-org
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 13:19:57 -05:00
martbost 6e3f631cc6 plan-lab: one route (the builder had appended it three times), clearer admin-fee label
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 13:09:04 -05:00
martbost 8e419f95e8 plan-lab: the climb story first, tree and rules folded away
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 13:04:57 -05:00
martbost a2d5706d8e Unlisted /plan-lab: Reach Ladder simulator for the planning group
The working simulator for the new matrix plan, served by link only
(noindex, no menu entry, no sitemap). Engine in /assets/plan-lab.js because
the CSP blocks inline scripts.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-27 12:38:43 -05:00
martbost 7ef8094a4d Top-ups: check the ad's own position, say where the free credits are, offer to pay from another
Bug: topUpCampaign read the position from the owner's campaign list, which
does not carry memberId, so every top-up was checked against the member's
MAIN position (Jim Watts: every ad said 19 free). It now reads the ad's row.

When the ad's position is short, the error names it and lists the member's
other positions with their free credits; the dashboard offers to pay from
the best one. Moving an ad settles any charges its old position already ran
up (a burn on the old member id) before switching, so the new position only
pays for views after the move.

Weekly email: unspent credits are broken down by position with the advice to
start a campaign from the largest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 06:05:19 -05:00
martbost 5059d46bcb Video views never charge past the budget; audit reads scheduled and uncharged campaigns correctly
chargeVideoView charged a full view even when the budget had less left (#39:
602 of 600). It now charges only what is left, and nothing once the budget is
gone; the viewer is still credited and the view still counted, so views keep
matching the watch log.

Audit: featured bookings are judged from their start time, not creation (#275
was flagged hours before its scheduled start); clicks-over-views only flags
campaigns that charged the buyer (#146, a placeholder video paused by the
source sweep, never spent a credit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 05:28:03 -05:00
martbost 917e87cd32 Reserve company and staff usernames; Terms: usernames must not mislead
setUsername refuses names containing our brands (instantadpay, polhunter,
rmcircle, cryptoteambuild, linkspin, dripoffers, adrevlnks...) and staff or
authority words on their own (admin, support, official, staff, moderator,
owner, ceo, payouts...). Terms section 3 gains the matching rule.
Prompted by #170 'instantadpay' and #172 'admin' (same person), 2026-09-27.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 05:02:35 -05:00
martbost 7873d752d3 My line: section pills and 10-row pages on every list
A sticky pill row at the top of My line jumps to each section (built from
the cards marked data-jump; hidden cards get no pill; the one in view is
lit). Every list on the page pages at 10: your line, downline levels,
holding tank, coach directs, prospects, both link-stats tables; upline
messages at 5. qa/line-pager.mjs checks it in a real browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:56:20 -05:00
martbost cf5a9674a2 Friday Bonus Hunts: InstantAdPay counts the banked days
Each day Saturday through Thursday (Central) that a member opens an inbox ad
and watches a video banks one extra PolHunter hunt for the following Friday.
If their inbox had no unread solo ad that day, the video alone counts, so
nobody is blocked by an empty inbox. These are the two slowest-delivering ad
types (about 6-7 views per campaign per day against 40-50 for banners), so
the game sends attention exactly where advertisers are short of it.

fridaybank.js counts from video_seen and solo_inbox.read_ts with DST-safe
Central midnights. /api/my/friday-bank feeds a card on the Earn tab (week
chips, today's two steps with links to the right sub-tab);
/api/hunt/friday-bank answers PolHunter, HMAC-signed with the existing
HUNT_SSO_SECRET, 5-minute window. QA member walk: 0 bugs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 15:20:51 -05:00
martbost 9116368ffe Telegram sender says what happened
Success logs tg-ok with the chat, thread and message id; a refusal logs
tg-fail with Telegram's own description; network errors and timeouts are
logged instead of swallowed. Without this a feed that fails is
indistinguishable from a quiet day, which is how the first grouped
purchase posts could not be confirmed from the log on 25 September.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-25 07:26:01 -05:00
martbost d2a3f162d0 Proof feed: one message per purchase, and it says InstantAdPay
Marty, reading the feed on 25 September: "I see the level 1 payout, I see
a level 2 payout, but I don't see who purchased something and what they
bought." And in the main Crypto Team Build group the same lines carried no
product name at all, so nobody knew what they were from.

feedgroup.js composes one message from every event of a purchase
transaction: the buyer and the package on top, the level payouts under it
with their dollar equivalents, then who was passed over and why. It is
triggered on AdminPaid, the last event the contract emits for a purchase,
which is how the missed-payout notice already knows the whole transaction
is indexed. Tier payouts and purchases are no longer posted one line at a
time. In payouts mode a purchase that paid no member (root or unsponsored
buyer) stays silent, as before. Every post now opens with the InstantAdPay
header in the main group as well as the payments topic.

Composed against three real transactions from the live index before
shipping: three tiers, a double pass-up, and a root purchase. QA member
walk: 0 bugs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-25 07:02:59 -05:00
martbost 742c271469 Chain-event side effects happen once across running instances
A Coolify deploy starts the new container and stops the old one only once
the new one is healthy, so for about half a minute two copies of this app
watch the chain. On 25 September, 06:26 CT, both saw Marty's $5 purchase:
two confirmation emails, and the Five Dollar Friday bonus granted twice
(+100 and +100, nineteen seconds apart). Every dedupe until now lived in
process memory or a JSON file on the volume; a second process shares
neither in time.

marks.js is the shared version: a row in MySQL that only one INSERT IGNORE
can win. The chain-event fan-out claims 'ev:<tx>:<logIndex>' before the
email, Telegram post, Friday bonus and sponsor sync; the in-memory feed
stays per instance. The Friday scheduler claims its Thursday email, kickoff
and wrap-up the same way, with the file marker kept as the second line of
defence and the thing an operator can edit by hand. Without a database it
degrades to a per-process Set, which is exactly the old single-instance
behaviour.

Proven on the production MySQL before deploy: first insert 1 row, second 0.
Marty's duplicate 100 credits reversed with a labelled adjust row; no other
member was double-granted.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-25 06:40:11 -05:00
martbost 18aabb3cb2 /friday: status script as a file (CSP blocks inline), and the page in the real sitemap
The first deploy shipped the status strip stuck on Checking: the site CSP has no
unsafe-inline, so the inline script never ran. Moved to /assets/friday.js. The
sitemap list lives in blog.js, not the pages list I edited in server.js; /friday
is in it now.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-25 06:29:09 -05:00
martbost 5b694c8ab4 Five Dollar Friday bridge page, with the member's link on it
Marty's ask: use the Friday promo as a tool where the sponsor gets the
credit, and as a bridge-page entry point. The sponsor part already worked
(any public page + ?ref sets the sponsor cookie, 2026-09-21); what was
missing was a page that is ABOUT the offer, so a click on a "20% bonus
credits today" image did not land on the general pitch and leak.

/friday: the banner as the hero, the live state from /api/friday (live now
with today's pack count and bonus credits issued, or the next date with a
countdown to midnight Central found by scanning minutes so DST cannot put it
an hour out), three steps, the email-first join with a new `friday` angle so
it shows as its own row in Admin > Traffic, and the credit definition. No
attribution logic added: last touch, walk-up, as everywhere.

Promo tools: a {{FRIDAY}} token that turns the member's invite link into
/friday?ref=<username>; posts for X, Facebook and Telegram and a text that
carry it; the three new banners (loft 1200x630, dark 1200x630, square
1080x1080) as a group in the kit with a copy-my-Friday-link button on it.
Chatbot answer points at the page and drops the stale "first one is
September 25" line. /friday in the traffic list, the sitemap and the QA
public walk. Cache tags bumped on my.js, promo.js and site.css.

QA member walk: 0 bugs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-25 06:26:11 -05:00
martbost 1b72a9a18c Screen every advertiser destination against Google Safe Browsing
Google marked instantadpay.com "deceptive pages" on 24 September. The probable
cause was campaign #225: a verified-visits ad that opened llclickpro.com from
our pages, and llclickpro.com carries exactly that flag. We put other people's
destinations in front of members, so their reputation becomes ours, and
nothing was checking it.

sbcheck.js screens the destination when a campaign is saved (member and house
paths both) and re-screens every live campaign daily, pausing the ones on a
flagged host and alerting the admin channel with the campaigns and owners.
POST /api/admin/sbcheck {dry} runs a pass by hand.

Verdicts are three-valued on purpose: flagged, clean, unknown. A guard that
reads "could not check" as "clean" is the failure mode this whole day has been
about; one that reads it as "flagged" would refuse every advertiser whenever
Google rate-limits us. So flagged refuses and pauses, clean passes, unknown
passes at save time but is logged and retried by the sweep until it resolves.

Uses the official Lookup API v4 when SAFE_BROWSING_KEY is set (full-URL,
batched). Until a key exists it reads the Transparency Report site-status
record, decoded against Google's own test site rather than guessed:
status 1 is clean, status 3 with any true flag is listed, anything else is
no data. That endpoint rate-limits by answering HTML, hence the 4-second pace.

videosweep's inline alert is hoisted into videosweepAlert so both sweeps use
the same admin-only channel: these messages name members and their emails.

QA: member walk 0 bugs, public walk 0 bugs. Verified by hand that
llclickpro.com is refused, rmcircle.team passes, and our own host is skipped.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-24 19:38:35 -05:00
martbost f2a999edd0 Search Console verification for instantadpay.com
Google Safe Browsing has the site marked "some pages on this site are unsafe"
(social engineering) as of 24 September. The only place that names the pages,
and the only place a review can be requested, is Search Console, and the site
was never verified there. Meta tag on the home page plus the HTML-file
fallback; both are Marty's own account.

The likeliest trigger is already paused: campaign #225 was a verified-visits
ad opening llclickpro.com from our pages, and llclickpro.com carries the same
flag. A guard for that class of problem is the next commit.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-24 19:26:22 -05:00
martbost 3f9dc3cc94 A session pop-up that says what InstantAdPay actually is
The dashboard card was too easy to scroll past, so this is a real overlay: once
per browser session, on every page that loads common.js, dismissed with the X,
Escape or the backdrop.

It leads with the mechanic rather than the promotion, because the ask was to
remind people what the site is about: the ad spend in your line pays you, in the
same transaction. Five Dollar Friday rides underneath as the reason to act, and
the copy is driven by the live /api/friday, so it reads "tomorrow", "today" or
nothing at all without anyone editing text on a Friday morning.

Not shown on /join or /admin: an overlay in the middle of signing up costs
sign-ups, and staff do not need reminding what the product is.

QA: the overlay appears after an async fetch, so hiding it at load time missed
it and every click in the harness timed out. The harness now pre-sets the same
sessionStorage flag a real dismissal uses, before page scripts run. Green again,
0 bugs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-24 15:54:33 -05:00
martbost fd08af36ba Admin alerts arrive from Marty's own Hermes bot
Operational alerts should come from @CoolifyHermes_Bot, where his other pings
land, not from the member-facing InstantAdPay bot. The token is supplied as
HERMES_BOT_TOKEN in the app environment and never appears in the repo.

Still admin-only, and it falls back to the IAP bot then email rather than to any
member-visible channel: these alerts name a member's campaign and their email.

Also: the sweep swallowed a failed pause in an empty catch, which is precisely
the failure mode the module exists to prevent. It reports now.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-24 14:05:55 -05:00
martbost 170d9963f7 Video sweep alert: admin channels only
The alert names a member's campaign and their email address. It fell back to the
shared payments topic when no admin chat was configured, which would have put a
member's broken ad in front of the whole team. Admin chat or email, or it logs
and stays quiet.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-24 13:58:17 -05:00
martbost 2854e2a7ba Video sources: check the house path too, and re-check the live ones
Two holes left by videoCheck, which only ever ran when a campaign was saved.

The house-ad route never called it at all. It guarded /api/my/campaigns and not
/api/admin/campaigns, so a bad source pasted into a house video would hand every
viewer a black player exactly as #146 did.

And nothing re-checked anything after it went live. #146 pointed at
https://yourdomain.com/ from 16 September; the check shipped on the 22nd and the
campaign sat live for another two days, burning a daily video slot for everyone
who drew it, until Marty hit it himself and asked why nothing played. A save-time
check can never catch a campaign that predates it, or a link that rots later.

videosweep re-checks every live video source daily. A source that fails is
PAUSED, never deleted: the advertiser keeps every unspent credit, because the
reservation is computed rather than deducted, and can restart it once the link is
fixed. It reports what it paused to the admin channel rather than doing it
quietly, since a guard nobody hears from is how the first one went unnoticed.
POST /api/admin/videosweep runs it on demand, with { dry: true } to look first.

QA green, 0 bugs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-24 13:56:28 -05:00