feat(seed): flobyte.rake — scoped aistack catalog seeder - #5
Merged
Conversation
…rms/Functions + white-label) Idempotent per-org seeder mirroring thinkfleet_memory.rake. Seeds the focused Flobyte catalog: 8 features, active_flow metric, and 8 plans (Starter→Enterprise, yearly variants, Enterprise-Comp, and aistack-whitelabel = $2k base + 200 active flows then $5/flow for white-label/SDK resellers like Whisp).
…est plan
Onboards white-label/SDK customers with no login: provision a Stripe-linked
customer under the `flobyte` billing entity and email a signed MSA acceptance
link. On accept + card save, the Stripe `setup_intent.succeeded` webhook creates
the subscription, so the first pay-in-advance invoice bills against a card on
file and every renewal auto-charges off-session.
- config/white_label/{msa,terms}_v1.md — versioned legal docs (DRAFT, pending counsel)
- white_label_agreements table + model (signature audit trail: name/title/ip/ua/version)
- WhiteLabelController — token-authenticated hosted accept page (no login)
- WhiteLabel::ActivateService — hooked into setup_intent_succeeded_service
- flobyte.rake — provision_whitelabel task; aistack-whitelabel + aistack-whitelabel-test ($1) plans
NOTE: run `bin/rails db:migrate` in a DB-enabled env to regenerate db/structure.sql
before merge (migrations-test CI gate). Does not affect runtime — deploy migrate
creates the table regardless.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Idempotent per-org seeder (mirrors thinkfleet_memory.rake, module-scoped to avoid constant collisions). Seeds the focused Flobyte catalog: Flows/KB/Forms/Functions features, active_flow metric, 8 plans incl.
aistack-whitelabel($2k base + 200 active flows then $5/flow). Run:bin/rails 'flobyte:seed[<org_id>]'. 🤖 Generated with Claude Code