`taskmaster/`: the factory's Whop coaching app rebuilt so the money is real. The old version switched to coaching when the member typed "Paid $X via ..." and its webhook handler only logged invoices. The character haggles; the deal desk decides. The character never sets a price: it calls one tool, quote(tier, price, reason), and dealdesk.js answers accept, counter or refuse. Four rules — the opening is the list price and the desk never quotes above it or walks a price back up; a quote under the floor is countered at the floor whatever reason came with it; a step down needs one of four reasons the member gave (scope, urgency, commitment, pay_now), each worth a slice of the anchor and each spendable once; three rounds, the opening included. Two refusals are about honesty and spend no round: a reason that reaches for the member's profile, following, employer, means or country, and invented scarcity or a fake deadline. The app decides the mode, never the model. One sheet, two prompts, and the server picks from whether Whop says the member has paid — a valid membership on prod_EZ7UkE4pkW04U or a place on a valid pack's seat list. Typing "Paid" changes nothing and a test proves it. Also: the sealed quote card the model can't edit, the share card, the deal log (openings, counters, final price, rounds, reasons, outcome, fee and net; never a word the member wrote, validated so prose can't get in), seat packs in membership metadata with rate-limited swaps and a buyer view of seats and usage but no chats, the signed payment webhook, the three experiments bucketed by user, and the Venice voice with one tool, a per-member limit and no uncensored default. Nothing created on Whop, as the card requires: the Whop client refuses every write unless constructed with live: true, and the 75 tests run against an injected fetch with simulated signed webhooks. What is missing, and why: - teahub.xyz is blocked by this container's network policy, so teahubxyz/dealdesk and its SKILL.md could not be read. The rules are implemented in taskmaster/src/dealdesk.js behind the same seam (openDeal / quote / agree / walkaway), so swapping the import in is a one-file change. Someone with network access to Teahub should reconcile the two. - docs.whop.com is blocked too, so four things stay unconfirmed and each is one line to correct: daily billing for the daily and checkins tiers (checkout() refuses to create a renewal tier until it is passed dailyBilling: "confirmed", so nothing is built on the assumption), the field that keeps an inline plan off the product's public page (HIDDEN in whop.js), the webhook's header names and whether the signed string is the body alone or a timestamp joined to it (both shapes verify; the names are constants), and how Whop's iOS rules treat a one-off checkout, which would change what these tiers may be priced at on a phone. - Where the code lives was the operator's call. It is a top-level taskmaster/ here, beside havre/, since GitHub access for this session is scoped to teahubxyz/time alone. Moving it to teahubxyz/taskmaster or a shared Whop-apps repo is a directory move; nothing outside taskmaster/ depends on it but the one test hook. - No workflow change is needed: CI's `python3 .github/time/test_time.py` step now runs the suite, as it already does for havre/. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014KUi5SZq4GBkdHQ2TdhZ3r Closes #66
4 lines
50 B
Plaintext
4 lines
50 B
Plaintext
__pycache__/
|
|
node_modules/
|
|
taskmaster/deals.jsonl
|