martbost
32f001aade
Promo tools > Network sites (Marty 2026-11-14: DLB + VBB creatives "in all the places they need to go"): a new pill shows the Downline Banners and Viral Banner Blitz promo kits, read live from each site's public feed (GET <site>/api/promo-kit?u=<username>, one source: a creative or line changed on the site shows here at once). The member's username fills every link, creative HTML snippet, line, headline, email and post; usernames are network-wide, so the links work even if they never visited those sites. netkits.js (new), my.html card #promo-network, my.js setPromoSub 'network' + fillPromo hands over the username. CSP connect-src admits downlinebanners.com + viralbannerblitz.com. Chatbot: VBB + Network sites canned answers, DLB answer points at the kit, PROMO TOOLS line, KNOWLEDGE_DATE 2026-11-14. netkits.js?v=20261114nk, my.js?v=20261114nk. iap-qa member: ALL PASSED
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-14 10:01:41 -06:00
martbost
edc484db27
One network tank (Marty 2026-11-14: IAP and LinkSpin tanks should show the same people): waiting() counts waiting accounts that never signed in here (BTC4Hits / LinkSpin arrivals) as LinkSpin does; quiet hub-made accounts stay out. The weekly email only counts the tank. hubsync test + iap-qa member ALL PASSED
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-14 09:28:36 -06:00
martbost
836c7b17c2
Hub switch-on (Marty 2026-11-14). Rule 2: a hub arrival (and a sponsor climbed for it) gets person.locks.iap's sponsor when the InstantAdPay contract holds them, never the plain network sponsor; sponsor.changed stays ignored. Quiet: lssync never pushes a hub waiting account to LinkSpin (its registry route would switch payouts on and email them). Rule 3: the holding tank (waiting, release, expiry, rescue, readyTick, autoAssign) leaves out anyone the hub reports locked on any contract or sponsored; /v1/locked detail cached 10 min, last answer kept 1 h, after that held (unknown). Alignment to the hub sponsor only with HUB_TANK_ALIGN=on. Needs network-hub b44dba6. qa/hubsync.test.cjs 19/19 (mail audit with recording mailer, messages, fetch and https), iap-qa member: ALL PASSED
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-14 08:51:58 -06:00
martbost
a01d6f2e8c
Hub rule 2 (Marty 2026-11-14): every paid Purchase on the InstantAdPay contract goes to the hub's /v1/contract-spend (keyed by the position wallet so its bind is sent first, tx hash so a resend counts once, POL-in only), so when two contracts lock different sponsors the one with money spent decides the network sponsor. Still one way, only with HUB_ENABLED; needs network-hub 296aa5d. qa/hubsync.test.cjs 15/15
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-14 08:22:54 -06:00
martbost
ff568d973c
Network sign-in for Viral Banner Blitz (2026-11-14): vbb listed under networksso wallets (VBB_URL, default https://viralbannerblitz.com ) and /go/vbb routed, so "Sign in with InstantAdPay" works on VBB the way it does on Downline Banners; NAMES gains vbb (same networksso.js as LinkSpin, DLB, VBB). iap-qa member: ALL PASSED
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-14 08:15:58 -06:00
martbost
5398faadee
Holding-tank arrivals post shows the running total too (Marty 2026-11-14: post those totals so people know who is waiting to be adopted): '(N waiting in total)' after the new names
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-14 08:06:41 -06:00
martbost
a7c36a908a
Earners Corner sign-in no longer fills in a website (Marty 2026-11-14): the stackpol.com link made Discourse hold every new member for approval as 'entered profile information without reading'. iap-qa member: ALL PASSED
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-14 07:34:54 -06:00
martbost
92288a30f5
Admin adoption for a member (Marty 2026-11-14): POST /api/admin/tank/adopt {adopter, who, note} runs the same tank.adopt as the member's button (their eligibility and cap, the adoptee's email and chat), no payments-topic post per pickup. For topping up sponsors who lost people when the contract sponsor won. iap-qa member: ALL PASSED
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-14 07:19:15 -06:00
martbost
d626469980
Admin personal notices (2026-11-13, first use: Downline Banners wallet nudge, Marty's go): POST /api/admin/notice-batch {batch, subject, html, text, items:[{email, vars}]} fills {{key}} per member, sends to the InstantAdPay inbox + email through the site mailer (opt-outs skipped, unsubscribe link added), once per member per batch (marks.claim), 400 ms apart, in the background; GET ?batch= for the result
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-13 11:04:27 -06:00
martbost
e98a6ebcd8
docstore.js: claim() for once-across-copies actions (same file as Downline Banners)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-13 10:35:15 -06:00
martbost
f29f6d1407
InstantAdPay data documents in MySQL (Marty 2026-11-13: 'everything database-driven'): docstore.js (same file as LinkSpin) keeps every .json/.jsonl data document in table docs of the InstantAdPay database (DOCSTORE_URL), one writer at a time, first boot imports and sets the files aside. Accounts and the other DB-mode tables are unchanged. Rehearsed on a copy with a copy of the database: 64/64 documents byte-identical, pages and APIs answer after a restart.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-13 09:33:16 -06:00
martbost
9efdfc8ee9
Data safety (2026-11-13 incident: a deploy read a half-written rotator.json, the store fell back to empty and its next save wiped 294 spin links): safefs.js makes every .json write inside DATA_DIR atomic (temp file + rename); LinkSpin's rotator refuses to start empty when rotator.json exists but will not parse
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-13 09:11:30 -06:00
martbost
4e2178d779
Refuel spots (Marty 2026-11-13, paid from the company fee share): a counted Monthly Refuel of $50+ on either site sends one signed request to Downline Banners to buy a spot for the member's main wallet (sponsor = their network sponsor's wallet), once per tx, with a member notice. Chatbot knows Downline Banners, the Banner Spin button and the refuel spot
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-13 08:55:47 -06:00
martbost
f20062133f
Downline Banners now lives at https://downlinebanners.com (Marty 2026-11-13): network sign-in hop default moved off new.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-13 08:35:57 -06:00
martbost
24b4ae9134
Hub gaps (Marty 2026-11-13): any later username/sponsor change (old members too) -> /v1/join, deliberate sponsor changes -> /v1/sponsor-change, MemberActivated -> /v1/contract-bind (contract iap); still one way, only with HUB_ENABLED
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-13 08:22:02 -06:00
martbost
2d4fc7a9f3
Merge branch 'hub-listener'
2026-11-13 07:51:48 -06:00
martbost
00cfd09c8f
Network sign-in reaches Downline Banners (Marty 2026-11-13): networksso.js vouches for a wallet site (/go/bannerline, /sso/check?r=bannerline carry the member's wallet + username); public /api/network/member lookup (username <-> linked wallet) so Downline Banners share links use the network username
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-13 07:35:15 -06:00
martbost
4cf3512106
Network links (Marty 2026-11-13 'yes please proceed'): every click on a link to the other site goes through /go/<peer> (InstantAdPay -> /go/linkspin, LinkSpin -> /go/iap), so a signed-in member arrives signed in; signed out it is a plain redirect. Click-time rewrite in the shared scripts (IAP common.js; LinkSpin common.js + cr-shell.js), so copied share links stay clean; data-nogo opts a link out. Browser check: path+query+hash kept, other hosts and data-nogo untouched. iap-qa member ALL PASSED. common.js/cr-shell.js ?v=20261113nl
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-13 05:28:11 -06:00
martbost
1f584f894f
Network sign-in landing (Marty 2026-11-13, Android Chrome: signed in on LinkSpin via InstantAdPay but landed on the public home page, which always says Sign in): a hop with no page named lands on the member dashboard (LinkSpin /ads, InstantAdPay /my); LinkSpin's home page turns Sign in into 'Open my dashboard' for a signed-in visitor (home.js?v=20261113me). networksso.test + e2e ALL PASSED.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-13 05:16:35 -06:00
martbost
ff2f668583
Network sign-in: a wallet-only session counts as signed in when its wallet belongs to an account (session carries the address, not the email), so a member who signed in with their wallet is signed in on the other site too (Marty 2026-11-13: signed in on IAP, LinkSpin's check came back 'not signed in here'). networksso.test + e2e ALL PASSED.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-13 05:09:53 -06:00
martbost
fab7732620
Merge network sign-in (InstantAdPay <-> LinkSpin) into main for the Friday launch (Marty 2026-11-13: 'we need to get that done now'). Conflicts only in script version tags (kept today's newer assets, re-tagged ?v=20261113sso). networksso.test 'ALL PASSED' both repos, networksso.e2e ALL PASSED, iap-qa member ALL PASSED. NETWORK_SSO_SECRET set on both Coolify apps. Chatbot KNOWLEDGE_DATE 2026-11-13.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-13 04:53:08 -06:00
martbost
5c896cb782
Network hub listener (hubsync.js), off unless HUB_ENABLED
...
POST /api/hub/events: signed hub hooks (HUB_SECRET, 5-minute window), each seq applied once, 503 so the hub retries.
member.joined from another door: /v1/resolve the person (climbing to sponsors not here yet) and make waiting accounts
through lsinbound.receive (joinedVia 'hub', joinedRef 'hub:<door>'); existing accounts keep their sponsor and the
difference is listed in /api/admin/hub. wallet.connected fills waiting accounts only; sponsor.changed is a TODO.
Our own new accounts and wallet links go to /v1/join and /v1/wallet from a persisted outbox (hubsync.json), never
in the way of a sign-up. With the flag off nothing is initialised, wired, routed or written; the LinkSpin sync is
unchanged. Test: qa/hubsync.test.cjs against a local network-hub (needs /v1/resolve by id, branch hub-resolve-id).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-12 17:02:45 -06:00
martbost
74354346a3
Chasing Unicorns: the page's own ?src= (where the link was posted) rides into the join button as unicorns-<src>, so sign-ups show the channel (Marty 2026-11-12, Massifly + LeasedAdSpace posts). chasing-unicorns.js?v=20261112d
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-12 14:48:42 -06:00
martbost
dbdeb5a7e6
Chasing Unicorns copy (Marty 2026-11-12): the 'free' ones (free to join until the countdown ends, then everybody gets the fee) and the small miner/gas/admin fee angle in the costs list and the pay-to-unlock card. chasing-unicorns.js?v=20261112c
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-12 13:42:16 -06:00
martbost
85d43f7483
Chasing Unicorns promo tool (Marty 2026-11-12): /chasing-unicorns, a labeled training simulation of a fake earnings dashboard where every button is one of 8 scam red flags (reveal card + scam-radar score), then PAS: what chasing unicorns costs, then how InstantAdPay works instead with a free join that keeps the sharer's ?ref=. Promo tools card with the member's link, OG image, chatbot fact, qa/chasing-unicorns.mjs (18 checks). my.js?v=20261112cu
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-12 13:34:11 -06:00
martbost
cedb291aaa
My line: your directs' email (with copy), where they came from (referrer + ?src= tag) and how they joined, up front in 'Your line', the Activity drop-down and the three-level card; levels 2-3 never get emails (Marty 2026-11-12: 'it was kind of buried in there'). Search also matches email + source. qa/line-origin.mjs (11 checks). Chatbot fact. my.js/site.css ?v=20261112ln
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-12 12:59:09 -06:00
martbost
574a0cafb1
Join page records the ?src= tag in the first-touch source (Marty 2026-11-12: 'we need the source tag so we can know where these things come from'): joinedRef = <referrer host>/<src> or just <src> when the referrer was stripped; a tagged visit replaces an untagged 'direct' first touch; a real earlier source is kept.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com > (PolHunter/Drip Runner arrivals stay untagged for the bounty proof.)
2026-11-12 12:10:44 -06:00
martbost
55d3597f12
My line: search box on every member list (Your line, three-level downline, Holding tank) to find a member by name, username (with or without @), email or member number (Marty 2026-11-12). Narrows as you type, keeps focus across re-renders, restarts paging at page 1, works with sort + filter chips. Chatbot fact added. my.js/site.css ?v=20261112q
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-12 11:24:53 -06:00
martbost
fe70c857be
Text ads get their own network rate (Marty 2026-11-12): Network Ad Space text-ad views cost 1/synRateDivisorText (default 10, 1 credit = 100 network views) of the on-site rate; banners and partner visits keep synRateDivisor 4. Going forward only (cumulative served counter, existing NAS bookings topped up by reconcile). Admin Rates field, Campaigns table shows 1/N per type, chatbot canned + prompt updated (KNOWLEDGE_DATE 2026-11-12). my.js?v=20261112txt, admin.js?v=20261112txt
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-12 09:31:10 -06:00
martbost
5585abb663
Network sign-in with LinkSpin (Marty approved 2026-11-12): signed in on one site = signed in on the other, no email code
...
networksso.js (same file in both repos): /go/linkspin hop for signed-in members' cross-site links; /sso/start (state cookie +
30-minute loop guard) -> LinkSpin /sso/check -> /sso/in?t=<v1 HMAC-SHA256 token, NETWORK_SSO_SECRET, 60 s, single-use nonce
(MySQL table network_sso_nonces when on the DB, else DATA_DIR file), bound to the browser's state cookie, email, audience and a
same-site relative path>. Member sessions only (admin portal never shared), ordinary 4-hour session, /my lands with ?welcome=1
so the login ad runs as after a code sign-in. An email with no account here or a waiting LinkSpin/BTC4Hits account gets the
normal email-code sign-in, email prefilled; nothing is created. Silent check on /my via public/assets/netsso.js
(/api/sso/status); never for bots/fetches; sign-out pauses it 12 hours. Engine Room + Fuel links go through /go/linkspin.
Chatbot knows it (KNOWLEDGE_DATE 2026-11-12). Off until NETWORK_SSO_SECRET (32+ chars) is set.
qa: networksso.test.cjs all passed, networksso.e2e.mjs (both servers, real browser) 31/31, run.sh member green (0 bugs)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-12 07:00:23 -06:00
martbost
db1ab8359c
Admin member card: Message (inbox + email) button (Marty 2026-11-12). POST /api/admin/member/message puts a broadcast in the member's inbox and emails it through the site mailer (opt-outs and unsubscribe link kept); reports when email is skipped. admin.js?v=20261112msg; qa member passed; local route test passed
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-12 06:47:52 -06:00
Marty Bostick
3eae242dc3
BTC4Hits import, round 2: tank cap 10 at one time (setting tankAdoptCap), BTC4Hits wording in the adoption note/email/auto-assign message, lssync rows carry origin btc4hits (not hashed), chatbot knows the import + the cap (KNOWLEDGE_DATE 2026-11-11). qa: tank-cap 13/13, tank-hold all passed, sponsorfollow 30/30, sponsorfollow-e2e 24/24
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-11 08:08:58 -06:00
Marty Bostick
5e8dee7517
Holding tank: an adopter may hold up to 6 people at one time (open adoptions not yet switched on payouts; setting tankAdoptCap, default 6; was 2 open adoptions), clear message at the cap
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-11 07:49:03 -06:00
Marty Bostick
ffcc0c6339
BTC4Hits import: joinedVia 'btc4hits' accounts are waiting accounts like LinkSpin's (left out of every sweep that mails, counts or adopts until their owner signs in); listAll's limit now counts members, not waiting accounts
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-11 07:23:35 -06:00
martbost
0013416af7
Forum reward lookup (Marty 2026-11-10: 1 POL for an introduction, ongoing, linked wallet + payouts on): GET /api/forum/member?email= signed with the forum secret (HMAC of email.ts, 5-minute window) returns found/username/activated (member id > 0)/address/suspended for the earnerscorner.com reward service. qa/forumsso 17/17.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-10 09:22:27 -06:00
martbost
52eaa20171
Member menu: Earners Corner link (opens earnerscorner.com/session/sso, one-tap sign-in with this account) after Games (Marty 2026-11-10). Member walk 0 bugs.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-10 08:50:51 -06:00
martbost
e00c820d2f
Earners Corner invites credit the inviter (Marty 2026-11-10): /forum/join/<username>[?to=/path] sets the member as sponsor exactly like /join/ (30-day cookie, last touch wins, first-touch source earnerscorner.com, link view recorded) and forwards to the forum (?to= must be an on-forum path); /forum/invite shows a signed-in member their link. The forum's Log In carries a shared thread's ?u= through this route. qa/forumsso 14/14 (incl. a new sign-up landing under the inviter); member walk 0 bugs.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-10 08:29:00 -06:00
martbost
ef28c16502
qa/chatbot-parse: price route matched 'Five packages, priced' but the ladder is seven packages now; match the answer, not the count. 38/38 pass.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-10 08:20:18 -06:00
martbost
3991a5eb79
Chatbot: Earners Corner forum (canned answer + prompt fact), ahead of the forum announcement (Marty 2026-11-10)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-10 08:14:32 -06:00
martbost
d06394a3d3
tools/export-knowledge.js: export the chatbot's canned answers as Markdown for the Earners Corner forum assistant (Marty 2026-11-10); rerun and re-upload whenever KNOWLEDGE_DATE is bumped.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-10 08:13:41 -06:00
martbost
2e4d18d77d
Stack POL Pro owned state (Marty 2026-11-10): a Pro owner sees ' ⭐ You own Stack POL Pro', the unlock date and an 'Open my Pro page' button instead of a one-line note; the Stack POL pane re-checks when the member returns to the tab, so a purchase made while it was open shows without a manual refresh. my.js ?v=20261110proown. Member walk 0 bugs.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-10 07:37:28 -06:00
martbost
f20e845cf1
Earners Corner forum sign-in (Marty 2026-11-10): InstantAdPay is the DiscourseConnect identity provider for earnerscorner.com. /forum/sso verifies Discourse's HMAC-signed request (return URL must be on the forum), a signed-out visitor signs in on /my (request kept in a 30-minute cookie, my.js hands back via /api/my/forum), then a signed payload goes back: email, external id, username, Stack POL page as website, groups network_members (on-chain position) and wallet_linked. Suspended accounts are refused. Env FORUM_SSO_SECRET + FORUM_URL. qa/forumsso.mjs 9/9; member walk 0 bugs; my.js ?v=20261110forum.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-10 06:51:34 -06:00
martbost
5f38c1486d
Chatbot KNOWLEDGE_DATE 2026-11-10: the Stack POL launch release note (scheduled 5 AM CT Nov 10) is already covered by the canned answer + prompt (free page on by default, Pro via any $10+ package)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-09 18:20:11 -06:00
martbost
87ea24b8f0
Stack POL Pro: ANY $10+ package unlocks it automatically (Marty 2026-11-09: "Any $10 package or higher unlocks it"). No Get Pro order step; the member's own on-chain package of $10+ switches Pro on for good, rides along with a Game Pass or hero order the same package fulfils (never takes it from them), only packages from the Pro launch (21:30 UTC) count, credits never. Promo tools shows Buy a $10+ package; chatbot updated; my.js ?v=20261109pro4; qa/stackpro rewritten (11 pass).
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-09 16:40:48 -06:00
martbost
1da37f05ab
Admin: grant Stack POL Pro for a $10+ package bought without a Pro order first (Marty 2026-11-09, Orlando). POST /api/admin/stackpro/grant {memberId, tx}: the tx must be an on-chain Purchase of $10+ by that member; recorded as a package sale with its tx, marks the Stack POL page Pro and posts the badge once.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-09 16:30:34 -06:00
martbost
054ce10985
Stack POL pages ON by default (Marty 2026-11-09: "Everyone's should be enabled by default"): every paid member has stackpol.com/<username>; only an explicit switch-off hides it. Promo tools copy, note and chatbot updated; my.js ?v=20261109pro3; qa/stackpro expects on by default. Pro features stay Pro-only.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-09 15:41:21 -06:00
martbost
bafeff9bf4
Stack POL Pro (Marty 2026-11-09): a one-time unlock for the member's stackpol.com page, new money only. Promo tools > Stack POL > Get Pro opens an order; the member's next ad package of $10 or more (mined after the order, by their own position) fulfils it, one package fulfils one order, credits never count (gamepass.js order book, persisted map 'stackpro', durable). The fulfilment marks pro[username] in stack-optin.json for the stackpol.com indexer. New Stack POL Pro achievement badge (badge-stackpro.jpg, ribbon 0.855), celebrated and posted like Game Pass. /my#promo?s=stackpol deep-links the tab (the Pro page's Unlock Pro button). Chatbot canned answer + prompt carry Pro. qa/stackpro.mjs 16/16; member walk 0 bugs; qa/gamepass.mjs has the same 7 date-based failures on the untouched HEAD.
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-09 15:29:48 -06:00
martbost
627341e8ad
Chatbot: the Stack POL answer needs its match pattern (re); without it seeds() threw 'reading source' at boot and the 2aa98bd deploy rolled back
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-09 14:50:34 -06:00
martbost
2aa98bdbd2
Promo tools > Stack POL: 'Show my Stack POL page' switch (GET/POST /api/my/stackpol, DATA_DIR/stack-optin.json read by the stackpol.com indexer); chatbot knows Stack POL (KNOWLEDGE_DATE 2026-11-09); my.js v=20261109sp
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-09 14:39:25 -06:00
martbost
03284aa281
Conversion linkage, InstantAdPay side (Marty 2026-11-07, "Yes ship these"): a LinkSpin click stays with the account, and its sign-up, wallet link and each package purchase are reported to LinkSpin. Reporting only: no sponsor, payout, credit or chain path changes; accounts.js only gains a notification after a wallet is linked.
...
lsreport.js. A click id (lsclk or lsid) arriving on any page is kept in a first-party cookie iap.lsclk, 30 days, last click wins, like the sponsor cookie. The join page also sends its own copy with the code request and verify (the cookie is refused in traffic-exchange frames and never crosses browsers, the 2026-09-29 lesson) and it is remembered per email. It is stored in its own table ls_account_clicks when the account is created or a waiting LinkSpin shell is claimed, on /api/signup, email sign-in and in-game sign-in (a game may pass lsclk; none does yet).
Reports queue in ls_events, whose primary key is the idempotency key (join:<hash>, wallet:<hash>, purchase:<tx>:<log index>), so two app copies in a deploy cannot double a row, and LinkSpin dedupes on the same key. A background loop sends them signed, retrying up to every 5 minutes; a sign-up or a purchase never waits on LinkSpin. The purchase hook runs after the existing ev: claim and its value is the USD price on the chain event. A first purchase finds its buyer through the contract's wallet for that member id, since member_id may not be stored yet. Linked positions count as the account's purchases. Past 30 days from the sign-up nothing is queued (LinkSpin's window is from the click).
Campaigns > Conversion tracking lists everything the member's clicks led to, and joins, wallets and purchases on each campaign row. Guide, privacy page and chatbot (CANNED + FACTS) updated; common.js, join.js and my.js tags bumped.
QA: bash qa/run.sh netconv (54 checks: local InstantAdPay + local LinkSpin + a mock Polygon RPC, a real Purchase log through the real event fan-out, LinkSpin down, two copies racing).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-07 07:48:36 -06:00