diff --git a/README.md b/README.md index 32e1047..a43f964 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,11 @@ yourprogrambuilder.com rebuild (Marty 2026-11-17: "I like the approach on YourPr - **Sprout**: members save their referral ID in any packet (a whole pasted link works). A visitor through a member (their page `/`, or `?r=`) sees that member's link first; a signed-in member sees the nearest saved ID up their hub sponsor line; then the planter's ID (`seedbed.sponsorLink`, DownlineHydra's wild-head rule). -- **Transplant**: at `REVIEW_SAVES` (DEFAULT 25) saves from distinct confirmed network members (the planter counts as one) the packet +- **Transplant**: at `REVIEW_SAVES` (10, Marty 2026-11-17) saves from distinct confirmed network members (the planter counts as one) the packet enters Marty's review queue (`/admin`). Approved packets are exported by `GET /api/admin/export` in the CTB builder's form (`{affiliateid}`) with every saved ID (username, hub id, ID). This site never writes to another site: the add on CTB / DownlineHydra is done there. -- **Spotlight** (DEFAULTS, the decision pack is unanswered): one-time $10 = 1,000 guaranteed verified views for one packet in the +- **Spotlight** (approved by Marty 2026-11-17, as built): one-time $10 = 1,000 guaranteed verified views for one packet in the Spotlight places (top row of the bed, the strip on packet and member pages), on YPBShop (`../contracts`, NOT deployed): 20% sponsor, 5% each levels 2 to 5, 60% company, immutable split, keeper-signed orders, no owner withdraw, 48-hour SKU timelock. Members earn free: anyone in the hub line with a linked wallet is paid (compression in `/api/my/order`). diff --git a/chatbot.js b/chatbot.js index b991cf2..b6e6e10 100644 --- a/chatbot.js +++ b/chatbot.js @@ -1,7 +1,7 @@ // YourProgramBuilder's site assistant (the network pattern, 2026-11-15): what it knows. The engine is chatcore.js (the same on every // rebuilt site); retrieval also covers the other network sites through the hub (netkb.js), this site's entries first. -// Every fact below was checked against this repo on KNOWLEDGE_DATE: config.js (threshold, Spotlight, split: DEFAULTS until Marty -// answers the decision pack), seedbed.js (planting rules, sprout meter, review, sponsor-first link, export), linkcheck.js (green / +// Every fact below was checked against this repo on KNOWLEDGE_DATE: config.js (threshold 10, Spotlight $10 / 1,000 views, split 20/5/5/5/5/60: Marty's +// decision pack answers 2026-11-17), seedbed.js (planting rules, sprout meter, review, sponsor-first link, export), linkcheck.js (green / // yellow / red), wire.js (verified views, Spotlight delivery), shop.js + ../contracts (YPBShop, not deployed), server.js, public pages. // HOUSE RULE: when a feature changes, update CANNED and FACTS in the same commit and bump KNOWLEDGE_DATE. // Plain words, no em dashes, never a promise of income, "SafePal or any other crypto wallet", never RM Circle, no caps shown. diff --git a/config.js b/config.js index 514c5e2..d3502b9 100644 --- a/config.js +++ b/config.js @@ -7,7 +7,7 @@ // wild-head rule, wild.js), then up that member's sponsor line, then the planter's own ID. // TRANSPLANT at REVIEW_SAVES saves from distinct confirmed network members a packet enters Marty's review queue; approved packets // are exported for the Crypto Team Build Network builder and DownlineHydra's wild heads, carrying every saved ID. -// Paid part (DEFAULTS, Marty has not answered the decision pack yet): one-time $10 Spotlight = 1,000 guaranteed verified views +// Paid part (APPROVED by Marty 2026-11-17, as built): one-time $10 Spotlight = 1,000 guaranteed verified views // for one packet, paid in POL to YPBShop (../contracts), split on chain in the same transaction: 20% sponsor, 5% each levels 2 // to 5, 60% company; immutable split; members earn for free (a network sign-in + a linked wallet, no purchase needed). // No recurring charges, ever. @@ -32,17 +32,17 @@ function get() { chainName: e.CHAIN_NAME || 'Polygon', publicRpc: e.PUBLIC_RPC || 'https://polygon-bor-rpc.publicnode.com', walletConnectProjectId: (e.WALLETCONNECT_PROJECT_ID || '').trim(), - // ---- the Seed Bed (DEFAULT 25 saves, decision pack 2026-11-17) ---- - reviewSaves: int(e.REVIEW_SAVES, 25, 2, 1000), + // ---- the Seed Bed (10 saves: Marty's decision pack answer 2026-11-17; staging was built with 25) ---- + reviewSaves: int(e.REVIEW_SAVES, 10, 2, 1000), plantQuota: int(e.PLANT_QUOTA, 1, 1, 20), // packets one member may have planted at once (the pack: "plants one program free") packet: { name: 40, desc: 200, cost: 40 }, recheckHours: int(e.RECHECK_HOURS, 24, 1, 720), // every live packet's link is checked again this often reportHold: int(e.REPORT_HOLD, 3, 1, 100), // distinct member reports that move a packet back to Marty's queue viaDays: int(e.VIA_DAYS, 30, 1, 365), // how long a ?ref= / member page tag stays on a visitor (last touch) - // ---- Spotlight (DEFAULTS: $10 = 1,000 views, one-time). The contract's SKU holds the real price; this is display copy and must match it. + // ---- Spotlight (APPROVED 2026-11-17: $10 = 1,000 views, one-time). The contract's SKU holds the real price; this is display copy and must match it. spotlight: { sku: int(e.SPOTLIGHT_SKU, 1, 1, 1000), usd: num(e.SPOTLIGHT_USD, 10, 0.01, 1000), views: int(e.SPOTLIGHT_VIEWS, 1000, 1, 1000000), maxQty: 10, deliverDays: int(e.DELIVER_DAYS, 30, 1, 365), row: int(e.SPOTLIGHT_ROW, 3, 1, 12) }, - // YPBShop split (DEFAULT 20 / 5 / 5 / 5 / 5, company 60; IMMUTABLE on the contract, read live from it when the contract is set) + // YPBShop split (APPROVED 2026-11-17: 20 / 5 / 5 / 5 / 5, company 60; IMMUTABLE on the contract, read live from it when the contract is set) split: { levelBps: String(e.SPLIT_LEVEL_BPS || '2000,500,500,500,500').split(',').map(x => int(x, 0, 0, 9000)).slice(0, 5), maxDepth: 20 }, hubJoin: e.HUB_JOIN === '1', // writes to the hub (join-all). OFF on staging: a dry check instead payouts: e.PAYOUTS === '1', // staging: OFF (no keeper key, no contract). Orders need KEEPER_KEY + CONTRACT_ADDRESS anyway diff --git a/docker-compose.yml b/docker-compose.yml index 25b5b69..9e79706 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,7 +31,7 @@ services: TG_CHAT: ${TG_CHAT:-} TG_PAY_TOPIC: ${TG_PAY_TOPIC:-} JOIN_URL: ${JOIN_URL:-} - REVIEW_SAVES: ${REVIEW_SAVES:-25} + REVIEW_SAVES: ${REVIEW_SAVES:-10} LS_ZONES: ${LS_ZONES:-} DH_URL: ${DH_URL:-} OPENROUTER_API_KEY: ${OPENROUTER_API_KEY:-} diff --git a/public/admin.html b/public/admin.html index d0fa509..530e2b8 100644 --- a/public/admin.html +++ b/public/admin.html @@ -14,7 +14,7 @@ - +
@@ -29,9 +29,9 @@
- - + + - + diff --git a/public/assets/common.js b/public/assets/common.js index 4e293fd..2d2700e 100644 --- a/public/assets/common.js +++ b/public/assets/common.js @@ -34,7 +34,7 @@ window.YPB = (function () { // a seed packet. o = { place, r (member), spot, extra (html) } function packetCard(x, o) { o = o || {}; const spot = o.spot || !!x.spotlight; - const pctv = Math.min(100, Math.round(100 * (x.saves || 0) / (x.need || 25))); + const pctv = Math.min(100, Math.round(100 * (x.saves || 0) / (x.need || 10))); const tags = []; if (x.spotlight) tags.push('Spotlight ' + n(x.spotlight.delivered) + ' / ' + n(x.spotlight.views) + ' views'); tags.push(stageTag(x)); diff --git a/public/contract.html b/public/contract.html index a33f25a..86942c4 100644 --- a/public/contract.html +++ b/public/contract.html @@ -14,7 +14,7 @@ - +
@@ -38,9 +38,9 @@

Every order is signed by the site's keeper key, which names the buyer's sponsor line from the network hub. The keeper cannot move money: it can only sign orders that the buyer pays.

- - + + - + diff --git a/public/disclaimer.html b/public/disclaimer.html index a25ef76..4c9baac 100644 --- a/public/disclaimer.html +++ b/public/disclaimer.html @@ -14,7 +14,7 @@ - +
@@ -27,8 +27,8 @@

Any figures on this site are examples or live records of what already happened on chain (the ledger), never a forecast.

- - + + diff --git a/public/guide-faq.html b/public/guide-faq.html index 95fc409..c921a17 100644 --- a/public/guide-faq.html +++ b/public/guide-faq.html @@ -14,17 +14,17 @@ - - + +
-

FAQ

Is YourProgramBuilder free?

Yes. Signing in, planting one program and saving IDs are free. A Spotlight is an optional one-time purchase.

How many programs can I plant?

One packet per member at a time. Remove yours to plant a different one. Saving IDs in other packets has no limit.

Why is my packet not showing?

Its link check is yellow (waiting for a person) or red (the link did not load). Check it on My packets. Edits are checked again.

What happens at 25 saves?

The packet goes to Marty's review for the Crypto Team Build Network builder. Approved, it is added there and to DownlineHydra's wild heads with every saved ID. Reaching the number does not guarantee approval.

Whose link does a visitor see?

A visitor through a member sees that member's link first. A signed-in member sees the nearest saved ID up their sponsor line, then the planter's.

Can I plant a program that is already in the builder?

No. Save your ID for it on DownlineHydra's wild heads instead.

Do I need a Spotlight to earn?

No. Spotlight shares go to the buyer's sponsor line, and anyone in it with a network sign-in and a linked wallet is paid. Nothing is promised.

Which wallet do I use?

SafePal or any other crypto wallet on Polygon.

I was a member of the old YourProgramBuilder. What happened to my account?

Old members were matched to the network by email and keep their sponsor. Old links open your new member page. Programs you added come back as dormant packets you confirm on My packets. Old balances were not carried over.

How do I get help?

Network support at instantadpay.com/support handles every network site.

+

FAQ

Is YourProgramBuilder free?

Yes. Signing in, planting one program and saving IDs are free. A Spotlight is an optional one-time purchase.

How many programs can I plant?

One packet per member at a time. Remove yours to plant a different one. Saving IDs in other packets has no limit.

Why is my packet not showing?

Its link check is yellow (waiting for a person) or red (the link did not load). Check it on My packets. Edits are checked again.

What happens at 10 saves?

The packet goes to Marty's review for the Crypto Team Build Network builder. Approved, it is added there and to DownlineHydra's wild heads with every saved ID. Reaching the number does not guarantee approval.

Whose link does a visitor see?

A visitor through a member sees that member's link first. A signed-in member sees the nearest saved ID up their sponsor line, then the planter's.

Can I plant a program that is already in the builder?

No. Save your ID for it on DownlineHydra's wild heads instead.

Do I need a Spotlight to earn?

No. Spotlight shares go to the buyer's sponsor line, and anyone in it with a network sign-in and a linked wallet is paid. Nothing is promised.

Which wallet do I use?

SafePal or any other crypto wallet on Polygon.

I was a member of the old YourProgramBuilder. What happened to my account?

Old members were matched to the network by email and keep their sponsor. Old links open your new member page. Programs you added come back as dormant packets you confirm on My packets. Old balances were not carried over.

How do I get help?

Network support at instantadpay.com/support handles every network site.

- - + + diff --git a/public/guide-free.html b/public/guide-free.html index 7f07b2b..7af13fb 100644 --- a/public/guide-free.html +++ b/public/guide-free.html @@ -14,7 +14,7 @@ - +
@@ -31,8 +31,8 @@

Nothing here needs a purchase. Nothing is promised.

- - + + diff --git a/public/guide-how.html b/public/guide-how.html index caf0ec7..6ccfeaa 100644 --- a/public/guide-how.html +++ b/public/guide-how.html @@ -14,7 +14,7 @@ - +
@@ -27,13 +27,13 @@

2. Sprout

Any member can save their referral ID in any packet. A visitor who comes through a member (their page at yourprogrambuilder.com/their-username) sees that member's link first. A signed-in member sees the link of the nearest person above them in their network sponsor line who saved an ID, and the planter's link when nobody did.

3. Transplant

-

Each packet has a sprout meter: saved IDs from distinct confirmed network members, out of 25. At 25 it goes to Marty's review queue and keeps sprouting while it waits. Approved, it is added to the Crypto Team Build Network builder, and so to DownlineHydra's wild heads, with every saved ID carried over. Reaching the number does not guarantee approval.

+

Each packet has a sprout meter: saved IDs from distinct confirmed network members, out of 10. At 10 it goes to Marty's review queue and keeps sprouting while it waits. Approved, it is added to the Crypto Team Build Network builder, and so to DownlineHydra's wild heads, with every saved ID carried over. Reaching the number does not guarantee approval.

Spotlights

A one-time Spotlight ($10 for 1,000 guaranteed views) puts a packet at the top of the Seed Bed until its views are delivered. It is optional: planting and saving IDs are free. More about Spotlights.

- - + + diff --git a/public/guide-legit.html b/public/guide-legit.html index 6b1c622..462bfde 100644 --- a/public/guide-legit.html +++ b/public/guide-legit.html @@ -14,7 +14,7 @@ - +
@@ -35,8 +35,8 @@

Nothing is promised. See the earnings disclaimer.

- - + + diff --git a/public/guide-planting.html b/public/guide-planting.html index 828adad..116382a 100644 --- a/public/guide-planting.html +++ b/public/guide-planting.html @@ -14,7 +14,7 @@ - +
@@ -31,8 +31,8 @@

Tell the people you work with to save their IDs in it. Every visitor who comes through them sees their link first, so saving an ID is worth it for them too. A Spotlight is optional.

- - + + diff --git a/public/guides.html b/public/guides.html index 59de64a..92bad50 100644 --- a/public/guides.html +++ b/public/guides.html @@ -14,7 +14,7 @@ - +
@@ -24,8 +24,8 @@

Short guides to the Seed Bed, checked against how the site really works.

- - + + diff --git a/public/index.html b/public/index.html index 9111f45..02c04d4 100644 --- a/public/index.html +++ b/public/index.html @@ -14,7 +14,7 @@ - +
@@ -24,7 +24,7 @@
Open to every program

Bring your program. The network grows it.

-

Plant your program in the Seed Bed and members across the network can save their referral ID in it. When 25 members have saved an ID, it goes to review for the Crypto Team Build Network builder, and every saved ID moves with it.

+

Plant your program in the Seed Bed and members across the network can save their referral ID in it. When 10 members have saved an ID, it goes to review for the Crypto Team Build Network builder, and every saved ID moves with it.

@@ -32,7 +32,7 @@
STEP 1PlantAdd the program and its referral link. Every link is checked before it shows, and again every day.
STEP 2SproutMembers save their ID. Visitors from a member see that member's link first.
-
STEP 3TransplantAt 25 saves Marty reviews it for the builder. Listed in the builder, it shows in DownlineHydra too.
+
STEP 3TransplantAt 10 saves Marty reviews it for the builder. Listed in the builder, it shows in DownlineHydra too.
- - + + - + diff --git a/public/ledger.html b/public/ledger.html index 62e8d25..58fef46 100644 --- a/public/ledger.html +++ b/public/ledger.html @@ -14,7 +14,7 @@ - +
@@ -27,9 +27,9 @@
WhenBuyerPacketPaidSplitDelivery
Loading...
- - + + - + diff --git a/public/member.html b/public/member.html index bc03215..38a5ab3 100644 --- a/public/member.html +++ b/public/member.html @@ -14,7 +14,7 @@ - +
@@ -28,9 +28,9 @@
- - + + - + diff --git a/public/my.html b/public/my.html index 5de1b11..1927507 100644 --- a/public/my.html +++ b/public/my.html @@ -14,7 +14,7 @@ - +
@@ -73,10 +73,10 @@
- - + + - - + + diff --git a/public/packet.html b/public/packet.html index 3718f8e..e35b927 100644 --- a/public/packet.html +++ b/public/packet.html @@ -14,7 +14,7 @@ - +
@@ -55,9 +55,9 @@
- - + + - + diff --git a/public/privacy.html b/public/privacy.html index 40b2a61..31c4b56 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -14,7 +14,7 @@ - +
@@ -37,8 +37,8 @@

Remove a saved ID or your packet any time on My packets. To erase your network account, open network support.

- - + + diff --git a/public/promote.html b/public/promote.html index 2d77221..ae73efa 100644 --- a/public/promote.html +++ b/public/promote.html @@ -14,7 +14,7 @@ - +
@@ -30,9 +30,9 @@

- - + + - + diff --git a/public/spotlight.html b/public/spotlight.html index 8ab032f..38aff74 100644 --- a/public/spotlight.html +++ b/public/spotlight.html @@ -14,7 +14,7 @@ - +
@@ -45,11 +45,11 @@
- - + + - - - + + + diff --git a/public/terms.html b/public/terms.html index fec9094..4d3b565 100644 --- a/public/terms.html +++ b/public/terms.html @@ -14,7 +14,7 @@ - +
@@ -43,8 +43,8 @@

Network support: instantadpay.com/support.

- - + + diff --git a/public/transplanted.html b/public/transplanted.html index 98c7101..18f5e38 100644 --- a/public/transplanted.html +++ b/public/transplanted.html @@ -14,7 +14,7 @@ - +
@@ -22,13 +22,13 @@
Grown in the Seed Bed

Transplanted

-

These programs reached 25 saved IDs, went to review, and were approved for the Crypto Team Build Network builder. In the builder they also show on DownlineHydra's wild heads, with every saved ID carried over.

+

These programs reached 10 saved IDs, went to review, and were approved for the Crypto Team Build Network builder. In the builder they also show on DownlineHydra's wild heads, with every saved ID carried over.

Loading...

- - + + - + diff --git a/qa/unit.test.cjs b/qa/unit.test.cjs index 70021b1..59b2b47 100644 --- a/qa/unit.test.cjs +++ b/qa/unit.test.cjs @@ -50,5 +50,13 @@ ok(sb.fill(p, 'a b') === 'https://good.example.net/?ref=a%20b', 'fill encodes th ok(sb.homeUrl(p) === 'https://good.example.net/', 'the plain home page'); ok(sb.textHash({ name: 'a', url: 'b' }) !== sb.textHash({ name: 'a', url: 'c' }), 'text hash changes with the text'); +console.log('-- review threshold (Marty 2026-11-17: 10 saved IDs before a packet goes to review)'); +{ const saved = process.env.REVIEW_SAVES; delete process.env.REVIEW_SAVES; delete require.cache[require.resolve('../config')]; + ok(require('../config').get().reviewSaves === 10, 'the default review threshold is 10'); + if (saved !== undefined) process.env.REVIEW_SAVES = saved; delete require.cache[require.resolve('../config')]; } +{ const fs2 = require('fs'); const pub = path.join(__dirname, '..', 'public'); + const stale = fs2.readdirSync(pub).filter(f => f.endsWith('.html') && /data-cfg="need">(?!10<)|What happens at (?!10 )\d+ saves/.test(fs2.readFileSync(path.join(pub, f), 'utf8'))); + ok(stale.length === 0, 'every page shows 10 as the fallback threshold', stale); } + console.log('\n' + pass + ' passed, ' + fail + ' failed'); process.exit(fail ? 1 : 0); diff --git a/tools/pages.py b/tools/pages.py index b758f44..d5cd3a6 100644 --- a/tools/pages.py +++ b/tools/pages.py @@ -5,7 +5,7 @@ import os, re APP = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) PUB = os.path.join(APP, 'public') SITE = 'https://yourprogrambuilder.com' -V = '20261117a' +V = '20261117b' FONTS = 'https://fonts.googleapis.com/css2?family=Young+Serif&family=Atkinson+Hyperlegible:wght@400;700&family=Martian+Mono:wght@400;600&display=swap' def head(title, desc, path, noindex=False, extra=''): @@ -47,7 +47,7 @@ page('index.html', '', 'Plant your program in the Seed Bed and members across th
Open to every program

Bring your program. The network grows it.

-

Plant your program in the Seed Bed and members across the network can save their referral ID in it. When 25 members have saved an ID, it goes to review for the Crypto Team Build Network builder, and every saved ID moves with it.

+

Plant your program in the Seed Bed and members across the network can save their referral ID in it. When 10 members have saved an ID, it goes to review for the Crypto Team Build Network builder, and every saved ID moves with it.

@@ -55,7 +55,7 @@ page('index.html', '', 'Plant your program in the Seed Bed and members across th
STEP 1PlantAdd the program and its referral link. Every link is checked before it shows, and again every day.
STEP 2SproutMembers save their ID. Visitors from a member see that member's link first.
-
STEP 3TransplantAt 25 saves Marty reviews it for the builder. Listed in the builder, it shows in DownlineHydra too.
+
STEP 3TransplantAt 10 saves Marty reviews it for the builder. Listed in the builder, it shows in DownlineHydra too.