You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(web): (C) reconcile sessions take model — drop flat revenueSharePct double-take
finalizeSession's deferred/atomic branch took a flat 15% session fee (live DB
default 85) then payout took progressively on top — a structural DOUBLE-TAKE vs
the single progressive take model. Credit the FULL amount at settlement
(platformFeeCents 0); the one progressive take stays at payout (meter-parity).
Remove all dead revenueSharePct refs (meter free-tier overage block + dev-ops
counter, meter-with-metadata/proxy/me/settings/email dead selects+joins, the
recordInvocationAsync legacy param) and DROP developers.revenue_share_pct,
resolving the schema(100)/DB(85) drift. Migration 0014 is generated NOT applied
(founder-gated; apply post-deploy, expand/contract).
Latent today (immediate-only sessions + unwired processSettlementBatch + dormant
prod = no active loss); fixed before sessions carry real money.
Gates: apps/web tsc 0 / vitest 4283 (4282-1+2) / build 0 / eslint 0; mcp 1898/1
unchanged; zero pricing/payout/meter-credit/rate-limit/crypto/mcp/sdk-python
hunks. Pre-build audit R2 PLAN_READY 0-blocking; post-build FUNDS-SEAL CERTIFIED
0-blocking.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
WHERE NOT EXISTS (SELECT1FROM"drizzle"."__drizzle_migrations"WHERE hash ='dabd3540ed03fff9bc3f90ef12747b5b7e25597ef831d7f96b17654996b7732a');
110
110
111
+
-- 0014_drop_revenue_share_pct (hand-written, not in journal; ships with (C) 2026-06-07 — apply the .sql via SQL Editor alongside seeding this row, AFTER the (C) bundle deploys)
0 commit comments