3 Commits

Author SHA1 Message Date
a126131ed9 feat(consumers): portfolio Rago seeds, the consumer contract fixtures, switch table, key plan and nightly reconciliation (PY1.5)
Railyard side of PY1.5 (dispatch 5.3). Acceptance:
1. tests/contract/consumers/contract.json is the contract PM1.5, PR1.5 and
   the Scribase carve-out test against: env names (RELAY_URL, RELAY_KEY,
   RAGO_URL, RAGO_API_KEY, MINT_URL, MINT_API_KEY, RAILYARD_LIVE), the
   RAILYARD_LIVE switch (default 0), every product's meters and one sample
   event per meter with the <product>:<meter>:<source id> idempotency key.
2. apps/rago/seeds/portfolio/{scribase,menivor,rally}-portfolio.json define
   exactly those meters (valid Rago aggregations, field names where summed)
   under $0 mirror plans; consumers.test.ts checks seeds against the contract.
4. tools/reconcile-portfolio/reconcile.mjs compares each product's own counts
   with Rago's totals per customer, meter and month; on the fixtures the
   difference is 0, and dropped, extra or malformed rows are named (exit 1/2).
5. Nothing switches live in code: docs/CONSUMERS.md gains the Wave P switch
   table. scripts/relay/provision-product-keys.mjs prints names and the box
   steps only (no value is generated, read or printed).
3 (Mint stack, 128 MiB, /metrics scraped): infra-box stacks/mint; Mint's
/metrics handler exists since RY-MT1.
Not in this commit: Mint outbound event webhooks and the paid-event mirror
(see the lane report).

Tests: consumers 3/3, reconcile 2/2, provision 1/1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:57:43 +03:00
1d6aedc361 feat(dodo): Portfolio add-on product and Scribase meters script, test mode by default (PY1.1)
scripts/dodo/portfolio-addon-products.mjs creates the Scribase Portfolio
add-on subscription product (price read from Scribase config/plans.json
addons.portfolio.priceUsd, $10 a month today) and the five Scribase meters of
the Railyard consumer contract (5.3). Dry run by default; --apply talks to the
Dodo test host; the live run needs --live and SCRIBASE_DODO_LIVE=1 (owner item
Y1). Idempotent (product matched by metadata or name, meters by event_name);
prints SCRIBASE_DODO_ADDON_PORTFOLIO_PRODUCT_ID=<id>; never prints the key.

Tests: scripts/dodo/test 5/5 (fake Dodo: created once, reused on re-run, live
refused without both switches, CLI refuses without --plans).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 20:22:02 +03:00
92b3982e17 curation: 22-image style-LoRA training set + curation gallery 2026-08-26 06:32:49 +03:00