create-freeholder 0.2.0-beta.3 → 0.2.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/template/.changeset/abuse-imagery-matching.md +4 -0
- package/dist/template/.changeset/abuse-scan-unchecked-images.md +11 -0
- package/dist/template/.changeset/admin-first-run-ux.md +32 -0
- package/dist/template/.changeset/booking-opening-date.md +4 -0
- package/dist/template/.changeset/busy-demo-business.md +6 -0
- package/dist/template/.changeset/c11-10-access-control-20261021.md +5 -0
- package/dist/template/.changeset/c9-37-newsletter-journey.md +10 -0
- package/dist/template/.changeset/c9-38-card-trial.md +8 -0
- package/dist/template/.changeset/cli-launch-hardening.md +4 -0
- package/dist/template/.changeset/cli-launch-npx.md +4 -0
- package/dist/template/.changeset/cli-launch.md +4 -0
- package/dist/template/.changeset/community-preset.md +5 -0
- package/dist/template/.changeset/demo-booking-and-admin-polish.md +4 -0
- package/dist/template/.changeset/demo-prelaunch-polish.md +4 -0
- package/dist/template/.changeset/demo-scenario-versions.md +4 -0
- package/dist/template/.changeset/docker-selfhost-https.md +4 -0
- package/dist/template/.changeset/event-admission-tax.md +11 -0
- package/dist/template/.changeset/event-hold-sweep.md +8 -0
- package/dist/template/.changeset/event-registration-and-pages.md +17 -0
- package/dist/template/.changeset/form-file-fields.md +4 -0
- package/dist/template/.changeset/form-screening-lead-sink.md +4 -0
- package/dist/template/.changeset/gateway-project-header.md +4 -0
- package/dist/template/.changeset/generic-short-zone-names.md +5 -0
- package/dist/template/.changeset/invoice-text-encoding.md +5 -0
- package/dist/template/.changeset/launch-spec-v2.md +4 -0
- package/dist/template/.changeset/launch-template-private-preview.md +4 -0
- package/dist/template/.changeset/link-in-bio.md +5 -0
- package/dist/template/.changeset/managed-platform-client-address.md +4 -0
- package/dist/template/.changeset/measurement-provider.md +4 -0
- package/dist/template/.changeset/media-migration-checksums.md +19 -0
- package/dist/template/.changeset/media-migration-transport.md +6 -0
- package/dist/template/.changeset/media-refuse-stored-svg.md +16 -0
- package/dist/template/.changeset/member-adult-content.md +4 -0
- package/dist/template/.changeset/member-attachments.md +4 -0
- package/dist/template/.changeset/member-bookings.md +4 -0
- package/dist/template/.changeset/member-call-removal.md +4 -0
- package/dist/template/.changeset/member-calls-cross-browser.md +4 -0
- package/dist/template/.changeset/member-calls.md +4 -0
- package/dist/template/.changeset/member-data-rights.md +4 -0
- package/dist/template/.changeset/member-demo-community.md +4 -0
- package/dist/template/.changeset/member-device-verification.md +4 -0
- package/dist/template/.changeset/member-e2ee.md +4 -0
- package/dist/template/.changeset/member-federation.md +4 -0
- package/dist/template/.changeset/member-fediverse-moves.md +4 -0
- package/dist/template/.changeset/member-follow-fediverse.md +4 -0
- package/dist/template/.changeset/member-graph.md +4 -0
- package/dist/template/.changeset/member-group-calls.md +4 -0
- package/dist/template/.changeset/member-history-transfer.md +4 -0
- package/dist/template/.changeset/member-listings.md +4 -0
- package/dist/template/.changeset/member-market-policy.md +4 -0
- package/dist/template/.changeset/member-messages.md +4 -0
- package/dist/template/.changeset/member-notifications.md +4 -0
- package/dist/template/.changeset/member-passkeys.md +4 -0
- package/dist/template/.changeset/member-payout-providers.md +4 -0
- package/dist/template/.changeset/member-payouts.md +4 -0
- package/dist/template/.changeset/member-posts.md +4 -0
- package/dist/template/.changeset/member-profile-sections.md +4 -0
- package/dist/template/.changeset/member-protection.md +4 -0
- package/dist/template/.changeset/member-reports.md +4 -0
- package/dist/template/.changeset/member-reviews.md +4 -0
- package/dist/template/.changeset/member-sealed-attachments.md +4 -0
- package/dist/template/.changeset/member-subscriptions.md +4 -0
- package/dist/template/.changeset/member-web-push.md +4 -0
- package/dist/template/.changeset/members-join.md +4 -0
- package/dist/template/.changeset/neutral-provider-names.md +5 -0
- package/dist/template/.changeset/node-22-23-4-october-2026-advisories.md +5 -0
- package/dist/template/.changeset/owner-feed-seed-noise.md +4 -0
- package/dist/template/.changeset/paid-event-admission.md +5 -0
- package/dist/template/.changeset/paradise-mail-adapter.md +4 -0
- package/dist/template/.changeset/payment-provider-boundary.md +23 -0
- package/dist/template/.changeset/payout-refund-retry-safety.md +16 -0
- package/dist/template/.changeset/personal-agent-keys.md +4 -0
- package/dist/template/.changeset/playground-capacity.md +7 -0
- package/dist/template/.changeset/playground-checkout-fictional-email.md +4 -0
- package/dist/template/.changeset/playground-public-site-and-honest-refusals.md +8 -0
- package/dist/template/.changeset/plugin-compat-ranges.md +9 -0
- package/dist/template/.changeset/portal-booking-end-time.md +4 -0
- package/dist/template/.changeset/preview-mail.md +4 -0
- package/dist/template/.changeset/preview-stripe-webhooks.md +4 -0
- package/dist/template/.changeset/provider-calls-outside-transactions.md +32 -0
- package/dist/template/.changeset/public-beta-4.md +5 -0
- package/dist/template/.changeset/redirect-site-origin.md +4 -0
- package/dist/template/.changeset/refuse-next-image-optimizer.md +5 -0
- package/dist/template/.changeset/service-intake-delivery.md +4 -0
- package/dist/template/.changeset/single-source-local-time.md +10 -0
- package/dist/template/.changeset/storefront-checkout-completes.md +12 -0
- package/dist/template/.changeset/web-auth-hardening.md +5 -0
- package/dist/template/.changeset/wevibesites-colophon.md +1 -1
- package/dist/template/.changeset/wordpress-import-media-redirects.md +32 -0
- package/dist/template/.changeset/zod-4-6-7-array-memory.md +9 -0
- package/dist/template/.env.example +86 -5
- package/dist/template/.github/ISSUE_TEMPLATE/bug_report.yml +56 -0
- package/dist/template/.github/ISSUE_TEMPLATE/config.yml +10 -0
- package/dist/template/.github/trufflehog-exclude.txt +6 -0
- package/dist/template/.github/workflows/ci.yml +84 -28
- package/dist/template/.github/workflows/screenshots.yml +115 -0
- package/dist/template/.github/workflows/security-scheduled.yml +4 -1
- package/dist/template/.node-version +1 -1
- package/dist/template/.railway/railway.ts +3 -0
- package/dist/template/AGENTS.md +57 -26
- package/dist/template/CLAUDE.md +4 -2
- package/dist/template/CONTRIBUTING.md +33 -0
- package/dist/template/Dockerfile +3 -3
- package/dist/template/LICENSING.md +2 -1
- package/dist/template/MASTER.md +2689 -83
- package/dist/template/README.md +17 -7
- package/dist/template/app/(admin)/action-helpers.ts +61 -0
- package/dist/template/app/(admin)/actions.ts +2 -2
- package/dist/template/app/(admin)/admin/ActionErrorFallback.tsx +52 -0
- package/dist/template/app/(admin)/admin/AdminNav.tsx +182 -24
- package/dist/template/app/(admin)/admin/BlockEditor.tsx +73 -2
- package/dist/template/app/(admin)/admin/PlaygroundReadOnlyNotice.tsx +20 -0
- package/dist/template/app/(admin)/admin/PreviewCanvas.tsx +4 -2
- package/dist/template/app/(admin)/admin/RichField.tsx +5 -2
- package/dist/template/app/(admin)/admin/actorLabel.ts +20 -0
- package/dist/template/app/(admin)/admin/adminTitle.ts +31 -0
- package/dist/template/app/(admin)/admin/collections/page.tsx +6 -2
- package/dist/template/app/(admin)/admin/contacts/ContactForm.tsx +16 -4
- package/dist/template/app/(admin)/admin/contacts/[id]/page.tsx +7 -2
- package/dist/template/app/(admin)/admin/contacts/contactLabels.ts +2 -0
- package/dist/template/app/(admin)/admin/contacts/new/page.tsx +6 -1
- package/dist/template/app/(admin)/admin/describeAction.ts +403 -0
- package/dist/template/app/(admin)/admin/editorLabels.ts +1 -0
- package/dist/template/app/(admin)/admin/events/[id]/page.tsx +5 -3
- package/dist/template/app/(admin)/admin/forms/FieldBuilder.tsx +78 -0
- package/dist/template/app/(admin)/admin/forms/[id]/edit/page.tsx +3 -0
- package/dist/template/app/(admin)/admin/forms/[id]/page.tsx +63 -3
- package/dist/template/app/(admin)/admin/forms/builderLabels.ts +13 -1
- package/dist/template/app/(admin)/admin/forms/files/[id]/route.ts +53 -0
- package/dist/template/app/(admin)/admin/forms/new/page.tsx +1 -0
- package/dist/template/app/(admin)/admin/guard.ts +14 -0
- package/dist/template/app/(admin)/admin/health/page.tsx +41 -1
- package/dist/template/app/(admin)/admin/imports/ImportForms.tsx +106 -1
- package/dist/template/app/(admin)/admin/imports/[id]/page.tsx +47 -0
- package/dist/template/app/(admin)/admin/inbox/[id]/page.tsx +5 -0
- package/dist/template/app/(admin)/admin/inbox/page.tsx +10 -1
- package/dist/template/app/(admin)/admin/inventory/page.tsx +2 -1
- package/dist/template/app/(admin)/admin/invitations/page.tsx +1 -1
- package/dist/template/app/(admin)/admin/invoices/[id]/page.tsx +22 -9
- package/dist/template/app/(admin)/admin/invoices/format.ts +25 -0
- package/dist/template/app/(admin)/admin/invoices/new/page.tsx +4 -3
- package/dist/template/app/(admin)/admin/layout.tsx +157 -97
- package/dist/template/app/(admin)/admin/link-in-bio/page.tsx +374 -0
- package/dist/template/app/(admin)/admin/mail/HeldMailReader.tsx +53 -0
- package/dist/template/app/(admin)/admin/mail/page.tsx +95 -0
- package/dist/template/app/(admin)/admin/media/page.tsx +21 -10
- package/dist/template/app/(admin)/admin/media/upload-client.ts +22 -5
- package/dist/template/app/(admin)/admin/members/actions.ts +163 -0
- package/dist/template/app/(admin)/admin/members/page.tsx +386 -0
- package/dist/template/app/(admin)/admin/newsletters/broadcasts/[id]/page.tsx +34 -2
- package/dist/template/app/(admin)/admin/newsletters/broadcasts/page.tsx +34 -1
- package/dist/template/app/(admin)/admin/newsletters/templates/page.tsx +23 -2
- package/dist/template/app/(admin)/admin/notifications/page.tsx +19 -12
- package/dist/template/app/(admin)/admin/orders/page.tsx +7 -8
- package/dist/template/app/(admin)/admin/page.tsx +46 -15
- package/dist/template/app/(admin)/admin/pages/[id]/PageComments.tsx +21 -2
- package/dist/template/app/(admin)/admin/pages/[id]/PagePresence.tsx +6 -2
- package/dist/template/app/(admin)/admin/pages/[id]/page.tsx +6 -0
- package/dist/template/app/(admin)/admin/pos/page.tsx +23 -3
- package/dist/template/app/(admin)/admin/price-lists/page.tsx +3 -2
- package/dist/template/app/(admin)/admin/products/[id]/page.tsx +7 -4
- package/dist/template/app/(admin)/admin/projects/[id]/page.tsx +61 -2
- package/dist/template/app/(admin)/admin/promotions/page.tsx +1 -1
- package/dist/template/app/(admin)/admin/reports/page.tsx +16 -5
- package/dist/template/app/(admin)/admin/settings/MailSettingsCard.tsx +71 -6
- package/dist/template/app/(admin)/admin/settings/page.tsx +41 -1
- package/dist/template/app/(admin)/admin/traffic/page.tsx +12 -2
- package/dist/template/app/(admin)/admin/unavailable/page.tsx +60 -0
- package/dist/template/app/(admin)/admin/voice-video/page.tsx +22 -7
- package/dist/template/app/(admin)/admin-flash-actions.ts +18 -0
- package/dist/template/app/(admin)/broadcast-actions.ts +6 -2
- package/dist/template/app/(admin)/catalog-actions.ts +23 -5
- package/dist/template/app/(admin)/cms-actions.ts +4 -2
- package/dist/template/app/(admin)/event-actions.ts +8 -3
- package/dist/template/app/(admin)/first-party-plugin-actions.ts +4 -1
- package/dist/template/app/(admin)/forms-actions.ts +2 -0
- package/dist/template/app/(admin)/import-actions.ts +2 -1
- package/dist/template/app/(admin)/linkinbio-actions.ts +196 -0
- package/dist/template/app/(admin)/mail-preview-actions.ts +37 -0
- package/dist/template/app/(admin)/percent.ts +34 -0
- package/dist/template/app/(admin)/project-actions.ts +36 -0
- package/dist/template/app/(admin)/security/verify/page.tsx +2 -2
- package/dist/template/app/(admin)/security-actions.ts +2 -1
- package/dist/template/app/(admin)/template-actions.ts +22 -3
- package/dist/template/app/(preview)/canvas-bridge.ts +37 -9
- package/dist/template/app/(public)/AnalyticsConsentControl.tsx +31 -2
- package/dist/template/app/(public)/[[...slug]]/page.tsx +27 -1
- package/dist/template/app/(public)/book/actions.ts +10 -2
- package/dist/template/app/(public)/book/chosen.ts +20 -0
- package/dist/template/app/(public)/book/opening-date.ts +146 -0
- package/dist/template/app/(public)/book/page.tsx +68 -20
- package/dist/template/app/(public)/buy/AddToCart.tsx +78 -53
- package/dist/template/app/(public)/buy/AddedNotice.tsx +58 -0
- package/dist/template/app/(public)/buy/buy-actions.ts +3 -1
- package/dist/template/app/(public)/c/[slug]/CollectionGrid.tsx +26 -0
- package/dist/template/app/(public)/c/[slug]/page.tsx +11 -10
- package/dist/template/app/(public)/call/CallRoom.tsx +166 -0
- package/dist/template/app/(public)/call/IncomingCall.tsx +41 -0
- package/dist/template/app/(public)/call/[id]/page.tsx +49 -0
- package/dist/template/app/(public)/call/actions.ts +74 -0
- package/dist/template/app/(public)/call/group/GroupCallRoom.tsx +191 -0
- package/dist/template/app/(public)/call/group/[id]/page.tsx +64 -0
- package/dist/template/app/(public)/call/group/actions.ts +30 -0
- package/dist/template/app/(public)/cart/page.tsx +3 -3
- package/dist/template/app/(public)/checkout/DeliveryMethods.tsx +44 -15
- package/dist/template/app/(public)/checkout/checkout-actions.ts +60 -10
- package/dist/template/app/(public)/checkout/page.tsx +69 -4
- package/dist/template/app/(public)/event-actions.ts +91 -0
- package/dist/template/app/(public)/feed/page.tsx +112 -0
- package/dist/template/app/(public)/form-actions.ts +88 -12
- package/dist/template/app/(public)/inbound-actions.ts +52 -9
- package/dist/template/app/(public)/join/actions.ts +80 -0
- package/dist/template/app/(public)/join/page.tsx +64 -0
- package/dist/template/app/(public)/layout.tsx +43 -0
- package/dist/template/app/(public)/m/MediaAttach.tsx +78 -0
- package/dist/template/app/(public)/m/PostCard.tsx +146 -0
- package/dist/template/app/(public)/m/[handle]/page.tsx +269 -0
- package/dist/template/app/(public)/m/actions.ts +54 -0
- package/dist/template/app/(public)/m/attachment-form.ts +13 -0
- package/dist/template/app/(public)/m/post-actions.ts +86 -0
- package/dist/template/app/(public)/market/page.tsx +54 -0
- package/dist/template/app/(public)/market/policy/page.tsx +37 -0
- package/dist/template/app/(public)/memberships/actions.ts +75 -7
- package/dist/template/app/(public)/memberships/page.tsx +8 -4
- package/dist/template/app/(public)/memberships/trial-return/page.tsx +60 -0
- package/dist/template/app/(public)/messages/SecureConversation.tsx +395 -0
- package/dist/template/app/(public)/messages/[id]/page.tsx +142 -0
- package/dist/template/app/(public)/messages/actions.ts +72 -0
- package/dist/template/app/(public)/messages/e2ee-actions.ts +71 -0
- package/dist/template/app/(public)/messages/page.tsx +92 -0
- package/dist/template/app/(public)/newsletter-actions.ts +35 -3
- package/dist/template/app/(public)/orders/confirm/page.tsx +13 -6
- package/dist/template/app/(public)/p/[id]/page.tsx +105 -0
- package/dist/template/app/(public)/report/actions.ts +49 -0
- package/dist/template/app/(public)/report/page.tsx +59 -0
- package/dist/template/app/(public)/search/page.tsx +47 -9
- package/dist/template/app/(public)/tags/[tag]/page.tsx +35 -0
- package/dist/template/app/(public)/utility-metadata.ts +44 -0
- package/dist/template/app/.well-known/webfinger/route.ts +21 -0
- package/dist/template/app/ap/notes/[id]/route.ts +16 -0
- package/dist/template/app/ap/shared.ts +15 -0
- package/dist/template/app/ap/users/[handle]/followers/route.ts +13 -0
- package/dist/template/app/ap/users/[handle]/inbox/route.ts +65 -0
- package/dist/template/app/ap/users/[handle]/outbox/route.ts +13 -0
- package/dist/template/app/ap/users/[handle]/route.ts +15 -0
- package/dist/template/app/api/ads/creative/[id]/route.ts +50 -0
- package/dist/template/app/api/ads/third-party-consent/route.ts +2 -1
- package/dist/template/app/api/analytics/consent/route.ts +2 -1
- package/dist/template/app/api/analytics/vitals/route.ts +5 -0
- package/dist/template/app/api/health/db/route.ts +17 -0
- package/dist/template/app/api/imports/source/chunk/route.ts +20 -0
- package/dist/template/app/api/member-blobs/route.ts +14 -0
- package/dist/template/app/api/payouts/[provider]/webhook/route.ts +35 -0
- package/dist/template/app/go/link/[id]/route.ts +104 -0
- package/dist/template/app/layout.tsx +41 -6
- package/dist/template/app/member-blobs/[id]/route.ts +30 -0
- package/dist/template/app/member-files/[id]/route.ts +35 -0
- package/dist/template/app/portal/(account)/[section]/page.tsx +7 -3
- package/dist/template/app/portal/(account)/connections/page.tsx +84 -0
- package/dist/template/app/portal/(account)/layout.tsx +5 -9
- package/dist/template/app/portal/(account)/listings/actions.ts +50 -0
- package/dist/template/app/portal/(account)/listings/booking-actions.ts +47 -0
- package/dist/template/app/portal/(account)/listings/page.tsx +214 -0
- package/dist/template/app/portal/(account)/listings/plan-actions.ts +30 -0
- package/dist/template/app/portal/(account)/member/ImageUpload.tsx +55 -0
- package/dist/template/app/portal/(account)/member/MemberKeys.tsx +75 -0
- package/dist/template/app/portal/(account)/member/MemberPasskeys.tsx +117 -0
- package/dist/template/app/portal/(account)/member/page.tsx +283 -0
- package/dist/template/app/portal/(account)/member/profile-actions.ts +90 -0
- package/dist/template/app/portal/(account)/notifications/PushToggle.tsx +74 -0
- package/dist/template/app/portal/(account)/notifications/actions.ts +90 -0
- package/dist/template/app/portal/(account)/notifications/page.tsx +136 -0
- package/dist/template/app/portal/(account)/notifications/topics.ts +3 -0
- package/dist/template/app/portal/(account)/payouts/actions.ts +55 -0
- package/dist/template/app/portal/(account)/payouts/page.tsx +108 -0
- package/dist/template/app/portal/(account)/purchases/[orderId]/[sellerId]/page.tsx +16 -0
- package/dist/template/app/portal/(account)/purchases/page.tsx +39 -0
- package/dist/template/app/portal/(account)/records/[section]/[id]/page.tsx +2 -2
- package/dist/template/app/portal/(account)/sales/SaleView.tsx +164 -0
- package/dist/template/app/portal/(account)/sales/[orderId]/[sellerId]/page.tsx +16 -0
- package/dist/template/app/portal/(account)/sales/actions.ts +44 -0
- package/dist/template/app/portal/(account)/sales/page.tsx +39 -0
- package/dist/template/app/portal/(account)/subscriptions/[id]/page.tsx +21 -3
- package/dist/template/app/portal/agreements/actions.ts +2 -21
- package/dist/template/app/portal/appointments/[token]/page.tsx +15 -7
- package/dist/template/app/portal/appointments/actions.ts +9 -2
- package/dist/template/app/portal/invoices/InvoiceView.tsx +1 -1
- package/dist/template/app/portal/key-actions.ts +42 -0
- package/dist/template/app/portal/login/PortalPasskeySignIn.tsx +38 -0
- package/dist/template/app/portal/login/page.tsx +32 -7
- package/dist/template/app/portal/magic/route.ts +4 -1
- package/dist/template/app/portal/passkey-actions.ts +105 -0
- package/dist/template/app/portal/subscription-actions.ts +1 -1
- package/dist/template/app/robots.txt/route.ts +11 -0
- package/dist/template/app/share/route.ts +2 -1
- package/dist/template/app/sitemap.xml/route.ts +6 -1
- package/dist/template/app/theme.ts +2 -3
- package/dist/template/db/migrations/0025_members.sql +50 -0
- package/dist/template/db/migrations/0026_member_graph.sql +73 -0
- package/dist/template/db/migrations/0027_member_posts.sql +87 -0
- package/dist/template/db/migrations/0028_member_messages.sql +54 -0
- package/dist/template/db/migrations/0029_member_calls.sql +40 -0
- package/dist/template/db/migrations/0030_member_listings.sql +30 -0
- package/dist/template/db/migrations/0031_member_payouts.sql +58 -0
- package/dist/template/db/migrations/0032_member_buyer_protection.sql +59 -0
- package/dist/template/db/migrations/0033_member_reviews.sql +32 -0
- package/dist/template/db/migrations/0034_member_reports.sql +36 -0
- package/dist/template/db/migrations/0035_member_adult_content.sql +12 -0
- package/dist/template/db/migrations/0036_member_market_policy.sql +10 -0
- package/dist/template/db/migrations/0037_member_profile_avatar_sections.sql +27 -0
- package/dist/template/db/migrations/0038_web_push_quiet_hours.sql +32 -0
- package/dist/template/db/migrations/0039_member_attachments.sql +26 -0
- package/dist/template/db/migrations/0040_member_subscription_payouts.sql +13 -0
- package/dist/template/db/migrations/0041_personal_api_keys.sql +10 -0
- package/dist/template/db/migrations/0042_member_federation.sql +47 -0
- package/dist/template/db/migrations/0043_member_e2ee.sql +82 -0
- package/dist/template/db/migrations/0044_member_group_calls.sql +39 -0
- package/dist/template/db/migrations/0045_member_call_key_generations.sql +7 -0
- package/dist/template/db/migrations/0046_member_sealed_blobs.sql +26 -0
- package/dist/template/db/migrations/0047_member_history_transfers.sql +38 -0
- package/dist/template/db/migrations/0048_member_remote_follows.sql +36 -0
- package/dist/template/db/migrations/0049_member_fediverse_moves.sql +6 -0
- package/dist/template/db/migrations/0050_member_payout_transfers.sql +29 -0
- package/dist/template/db/migrations/0051_abuse_reports.sql +26 -0
- package/dist/template/db/migrations/0052_event_paid_admission.sql +8 -0
- package/dist/template/db/migrations/0053_member_payout_attempts.sql +11 -0
- package/dist/template/db/migrations/0054_member_payout_attempts_backfill.sql +16 -0
- package/dist/template/db/migrations/0055_event_registration_submission_token.sql +7 -0
- package/dist/template/db/migrations/0056_nonshipping_variant_backfill.sql +14 -0
- package/dist/template/db/migrations/0057_paradise_mail_provider.sql +58 -0
- package/dist/template/db/migrations/0058_service_intake_delivery.sql +12 -0
- package/dist/template/db/migrations/0059_form_submission_files.sql +21 -0
- package/dist/template/db/migrations/0060_mail_preview_outbox.sql +20 -0
- package/dist/template/db/migrations/meta/_journal.json +252 -0
- package/dist/template/deploy/README.md +3 -0
- package/dist/template/deploy/agent-launch.md +36 -1
- package/dist/template/deploy/analytics-governance.md +15 -0
- package/dist/template/deploy/background-jobs.md +7 -0
- package/dist/template/deploy/c11-08-restore-drill-2026-09-28.log +8 -8
- package/dist/template/deploy/c11-08-restore-summary.md +5 -5
- package/dist/template/deploy/c313-live-acceptance-2026-09-28.log +2 -2
- package/dist/template/deploy/c313-live-acceptance-2026-09-28.md +1 -1
- package/dist/template/deploy/client-readiness.md +67 -2
- package/dist/template/deploy/content-security-policy.md +11 -0
- package/dist/template/deploy/customer-surfaces-2026-10-07.md +10 -7
- package/dist/template/deploy/digitalocean-app/infra/app.yaml +6 -0
- package/dist/template/deploy/digitalocean-droplet/README.md +17 -0
- package/dist/template/deploy/digitalocean-droplet/deploy.md +1 -1
- package/dist/template/deploy/digitalocean-droplet/infra/Caddyfile +13 -1
- package/dist/template/deploy/digitalocean-droplet/infra/compose.yml +3 -0
- package/dist/template/deploy/doc-claim-mapping.md +40 -5
- package/dist/template/deploy/docker-selfhost/.env.example +3 -0
- package/dist/template/deploy/docker-selfhost/README.md +54 -10
- package/dist/template/deploy/docker-selfhost/docker-updater/Caddyfile +13 -1
- package/dist/template/deploy/docker-selfhost/docker-updater/compose.yml +2 -0
- package/dist/template/deploy/docker-selfhost/infra/Caddyfile.https +19 -0
- package/dist/template/deploy/docker-selfhost/infra/compose.https.yml +70 -0
- package/dist/template/deploy/docker-selfhost/playground/README.md +91 -9
- package/dist/template/deploy/docker-selfhost/playground/compose.yml +69 -10
- package/dist/template/deploy/docker-selfhost/playground/demo.freeholder.ai.caddy +32 -1
- package/dist/template/deploy/docker-selfhost/playground/freeholder-playground-heal.service +10 -0
- package/dist/template/deploy/docker-selfhost/playground/freeholder-playground-heal.timer +9 -0
- package/dist/template/deploy/docker-selfhost/playground/reset.sh +105 -6
- package/dist/template/deploy/docker-selfhost/recipe.yaml +3 -0
- package/dist/template/deploy/f-criteria-matrix.md +850 -33
- package/dist/template/deploy/first-party-plugins.md +7 -5
- package/dist/template/deploy/launch-template.md +172 -0
- package/dist/template/deploy/link-in-bio.md +121 -0
- package/dist/template/deploy/mail-delivery.md +13 -0
- package/dist/template/deploy/media-lifecycle.md +28 -0
- package/dist/template/deploy/members-platform.md +430 -0
- package/dist/template/deploy/members-vibe-coding.md +93 -0
- package/dist/template/deploy/migration-runbook.md +8 -1
- package/dist/template/deploy/paradise-modern.md +254 -0
- package/dist/template/deploy/perf-reference-run-2026-09-27.log +3 -3
- package/dist/template/deploy/provider-recording-erasure.md +6 -8
- package/dist/template/deploy/release-channels.md +3 -1
- package/dist/template/deploy/release-notes-2026-10-16.md +142 -0
- package/dist/template/deploy/release-notes-2026-10-17.md +110 -0
- package/dist/template/deploy/release-notes-2026-10-23.md +421 -0
- package/dist/template/deploy/release-readiness.md +17 -0
- package/dist/template/deploy/screenshots-gallery.md +45 -0
- package/dist/template/deploy/spec-reconciliation.md +6 -3
- package/dist/template/deploy/update-preflight.md +4 -1
- package/dist/template/eslint.config.mjs +66 -18
- package/dist/template/gitignore.template +3 -0
- package/dist/template/instrumentation.node.ts +6 -0
- package/dist/template/locales/ar.json +1364 -35
- package/dist/template/locales/en.json +1364 -35
- package/dist/template/locales/es.json +1364 -35
- package/dist/template/locales/fr.json +1364 -35
- package/dist/template/next.config.ts +26 -1
- package/dist/template/package.json +28 -23
- package/dist/template/packages/cli/README.md +96 -2
- package/dist/template/packages/cli/package.json +4 -3
- package/dist/template/packages/cli/recipes/digitalocean-droplet/Caddyfile +24 -0
- package/dist/template/packages/cli/recipes/digitalocean-droplet/backup.sh +52 -0
- package/dist/template/packages/cli/recipes/digitalocean-droplet/cloud-init.yml +46 -0
- package/dist/template/packages/cli/recipes/digitalocean-droplet/compose.yml +68 -0
- package/dist/template/packages/cli/scripts/copy-recipe.mjs +14 -0
- package/dist/template/packages/cli/src/index.ts +5 -2
- package/dist/template/packages/cli/src/launch/args.ts +41 -0
- package/dist/template/packages/cli/src/launch/command.ts +47 -0
- package/dist/template/packages/cli/src/launch/digitalocean.ts +207 -0
- package/dist/template/packages/cli/src/launch/image.ts +23 -0
- package/dist/template/packages/cli/src/launch/launch.ts +339 -0
- package/dist/template/packages/cli/src/launch/remote.ts +38 -0
- package/dist/template/packages/cli/src/launch/s3.ts +78 -0
- package/dist/template/packages/cli/src/launch/secrets.ts +36 -0
- package/dist/template/packages/cli/src/launch/state.ts +66 -0
- package/dist/template/packages/cli/src/launch/types.ts +90 -0
- package/dist/template/packages/create-freeholder/package.json +1 -1
- package/dist/template/packages/create-freeholder/src/index.ts +1 -1
- package/dist/template/packages/freeholder-app/package.json +1 -1
- package/dist/template/packages/freeholder-app/src/branding.ts +8 -3
- package/dist/template/packages/mobile-app/package.json +1 -1
- package/dist/template/packages/plugin-kit/package.json +1 -1
- package/dist/template/packages/sdk/package.json +1 -1
- package/dist/template/packages/sdk/src/generated.ts +1131 -93
- package/dist/template/packages/sdk/src/version.ts +1 -1
- package/dist/template/packages/templates/package.json +1 -1
- package/dist/template/packages/templates/src/presets.ts +66 -1
- package/dist/template/playwright.a11y.config.ts +7 -0
- package/dist/template/plugins/community/manifest.ts +1 -1
- package/dist/template/plugins/community/plugin.json +1 -1
- package/dist/template/plugins/gift-registry/manifest.ts +1 -1
- package/dist/template/plugins/gift-registry/plugin.json +1 -1
- package/dist/template/plugins/marketplace/manifest.ts +1 -1
- package/dist/template/plugins/marketplace/plugin.json +1 -1
- package/dist/template/plugins/print-on-demand/manifest.ts +1 -1
- package/dist/template/plugins/print-on-demand/plugin.json +1 -1
- package/dist/template/plugins/social-fixture/manifest.ts +1 -1
- package/dist/template/plugins/social-fixture/plugin.json +1 -1
- package/dist/template/plugins/voice-video/adapter.ts +8 -4
- package/dist/template/plugins/voice-video/manifest.ts +1 -1
- package/dist/template/plugins/voice-video/plugin.json +1 -1
- package/dist/template/plugins/voice-video/settings.ts +23 -4
- package/dist/template/pnpm-lock.yaml +685 -803
- package/dist/template/pnpm-workspace.yaml +10 -0
- package/dist/template/proxy.ts +138 -3
- package/dist/template/public/push-sw.js +28 -0
- package/dist/template/scripts/fast-gates.mjs +4 -1
- package/dist/template/scripts/launch-prepare.d.mts +3 -0
- package/dist/template/scripts/launch-prepare.mjs +30 -7
- package/dist/template/scripts/license-headers.mjs +11 -1
- package/dist/template/scripts/media-transfer.d.mts +9 -2
- package/dist/template/scripts/media-transfer.mjs +77 -11
- package/dist/template/scripts/package-artifact-gate.mjs +54 -4
- package/dist/template/scripts/plan-gate.mjs +7 -4
- package/dist/template/scripts/preview-link.d.mts +9 -0
- package/dist/template/scripts/preview-link.mjs +47 -0
- package/dist/template/scripts/public-gates.sh +1 -1
- package/dist/template/scripts/release-packages.d.mts +8 -0
- package/dist/template/scripts/release-packages.mjs +47 -0
- package/dist/template/scripts/runtime-balanced-sequencer.ts +1 -1
- package/dist/template/scripts/screenshots-gallery.d.mts +30 -0
- package/dist/template/scripts/screenshots-gallery.mjs +277 -0
- package/dist/template/scripts/screenshots-index.mjs +52 -0
- package/dist/template/scripts/seo-gate.d.mts +7 -0
- package/dist/template/scripts/seo-gate.mjs +28 -6
- package/dist/template/scripts/standalone-artifact-gate.mjs +5 -2
- package/dist/template/security/adversarial-audit-2026-10-08.md +1 -1
- package/dist/template/security/independent-review-packet.md +16 -3
- package/dist/template/security/pre-launch-audit-2026-10-21.md +58 -0
- package/dist/template/seed/demo/busy/activity.ts +864 -0
- package/dist/template/seed/demo/busy/calendar.ts +845 -0
- package/dist/template/seed/demo/busy/content.ts +879 -0
- package/dist/template/seed/demo/busy/crm.ts +231 -0
- package/dist/template/seed/demo/busy/index.ts +49 -0
- package/dist/template/seed/demo/busy/ledger.ts +42 -0
- package/dist/template/seed/demo/busy/sales.ts +1164 -0
- package/dist/template/seed/demo/busy/world.ts +258 -0
- package/dist/template/seed/demo/content.ts +374 -49
- package/dist/template/seed/demo/illustrations.ts +191 -0
- package/dist/template/seed/launch/example-v2.json +123 -0
- package/dist/template/seed/launch/example.json +43 -0
- package/dist/template/src/adapters/abuse-scan/index.ts +53 -0
- package/dist/template/src/adapters/abuse-scan/photodna.ts +43 -0
- package/dist/template/src/adapters/abuse-scan/safer.ts +15 -0
- package/dist/template/src/adapters/abuse-scan/types.ts +24 -0
- package/dist/template/src/adapters/agent/aliases.ts +14 -0
- package/dist/template/src/adapters/agent/gateway.ts +233 -0
- package/dist/template/src/adapters/agent/index.ts +4 -3
- package/dist/template/src/adapters/agent/types.ts +1 -1
- package/dist/template/src/adapters/agent/workforce-openai.ts +63 -27
- package/dist/template/src/adapters/agent/workforce-types.ts +20 -1
- package/dist/template/src/adapters/agent/workforce.ts +67 -4
- package/dist/template/src/adapters/form-screening/index.ts +39 -0
- package/dist/template/src/adapters/form-screening/paradise.ts +32 -0
- package/dist/template/src/adapters/form-screening/types.ts +33 -0
- package/dist/template/src/adapters/lead-sink/index.ts +26 -0
- package/dist/template/src/adapters/lead-sink/paradise.ts +23 -0
- package/dist/template/src/adapters/lead-sink/types.ts +33 -0
- package/dist/template/src/adapters/mail/index.ts +38 -4
- package/dist/template/src/adapters/mail/paradise.ts +231 -0
- package/dist/template/src/adapters/mail/types.ts +53 -1
- package/dist/template/src/adapters/malware/index.ts +62 -6
- package/dist/template/src/adapters/malware/types.ts +2 -1
- package/dist/template/src/adapters/measurement/config.ts +113 -0
- package/dist/template/src/adapters/measurement/index.ts +36 -0
- package/dist/template/src/adapters/measurement/paradise.ts +96 -0
- package/dist/template/src/adapters/measurement/types.ts +28 -0
- package/dist/template/src/adapters/paradise/config.ts +48 -0
- package/dist/template/src/adapters/paradise/http.ts +186 -0
- package/dist/template/src/adapters/payments/http.ts +3 -0
- package/dist/template/src/adapters/payments/stripe.ts +52 -0
- package/dist/template/src/adapters/payments/types.ts +31 -0
- package/dist/template/src/adapters/payouts/http.ts +19 -0
- package/dist/template/src/adapters/payouts/index.ts +29 -0
- package/dist/template/src/adapters/payouts/paypal-payouts.ts +149 -0
- package/dist/template/src/adapters/payouts/razorpay-route.ts +154 -0
- package/dist/template/src/adapters/payouts/stripe-connect.ts +149 -0
- package/dist/template/src/adapters/payouts/types.ts +77 -0
- package/dist/template/src/core/agents/service.ts +31 -7
- package/dist/template/src/core/agents/writes.ts +210 -40
- package/dist/template/src/core/apikeys/personal.ts +134 -0
- package/dist/template/src/core/apikeys/schema.ts +6 -0
- package/dist/template/src/core/apikeys/service.ts +8 -7
- package/dist/template/src/core/apikeys/tokens.ts +4 -1
- package/dist/template/src/core/attestations/service.ts +34 -1
- package/dist/template/src/core/audit-origin.ts +47 -0
- package/dist/template/src/core/auth/magic-links/service.ts +14 -0
- package/dist/template/src/core/auth/reset.ts +1 -0
- package/dist/template/src/core/auth/service.ts +12 -1
- package/dist/template/src/core/auth/session-management/service.ts +1 -0
- package/dist/template/src/core/boot.ts +3 -0
- package/dist/template/src/core/briefing/service.ts +11 -0
- package/dist/template/src/core/config.test.ts +12 -3
- package/dist/template/src/core/config.ts +11 -8
- package/dist/template/src/core/connections/calendar-sync.ts +320 -175
- package/dist/template/src/core/connections/mail-import.ts +143 -76
- package/dist/template/src/core/contacts/service.ts +53 -25
- package/dist/template/src/core/db/buckets.ts +37 -0
- package/dist/template/src/core/db/index.ts +13 -0
- package/dist/template/src/core/demo/playground-cache.ts +70 -0
- package/dist/template/src/core/demo/playground-policy.ts +277 -3
- package/dist/template/src/core/demo/playground.ts +75 -2
- package/dist/template/src/core/doctor/index.ts +84 -2
- package/dist/template/src/core/doctor/service.ts +4 -0
- package/dist/template/src/core/doctor/timezone.ts +128 -0
- package/dist/template/src/core/env.ts +187 -8
- package/dist/template/src/core/events/service.ts +58 -3
- package/dist/template/src/core/guidance/first-win.ts +55 -0
- package/dist/template/src/core/guidance/service.ts +20 -2
- package/dist/template/src/core/http/actor.ts +18 -0
- package/dist/template/src/core/http/csp.ts +16 -3
- package/dist/template/src/core/http/local-path.ts +36 -0
- package/dist/template/src/core/http/public-form-return.ts +120 -0
- package/dist/template/src/core/http/request-metadata.ts +32 -2
- package/dist/template/src/core/i18n/index.ts +149 -0
- package/dist/template/src/core/i18n/zoned.ts +228 -17
- package/dist/template/src/core/import/contacts-service.ts +58 -9
- package/dist/template/src/core/import/parsers.ts +13 -21
- package/dist/template/src/core/import/service.ts +924 -89
- package/dist/template/src/core/import/source-upload.ts +450 -0
- package/dist/template/src/core/import/wordpress.ts +1521 -0
- package/dist/template/src/core/invitations/service.ts +1 -0
- package/dist/template/src/core/jobs/core-jobs.ts +90 -0
- package/dist/template/src/core/jobs/index.ts +21 -3
- package/dist/template/src/core/mail/permission.ts +315 -0
- package/dist/template/src/core/mail/preview.ts +234 -0
- package/dist/template/src/core/mail/privacy.ts +115 -0
- package/dist/template/src/core/mail/schema.ts +64 -6
- package/dist/template/src/core/mail/service.ts +184 -28
- package/dist/template/src/core/manifest.ts +12 -1
- package/dist/template/src/core/media/abuse-evidence.ts +36 -0
- package/dist/template/src/core/media/abuse-schema.ts +37 -0
- package/dist/template/src/core/media/capture.ts +474 -148
- package/dist/template/src/core/media/service.ts +180 -42
- package/dist/template/src/core/media/validation.ts +86 -1
- package/dist/template/src/core/media/variants.ts +7 -0
- package/dist/template/src/core/media/watermark.ts +11 -0
- package/dist/template/src/core/messaging/chat.ts +44 -2
- package/dist/template/src/core/messaging/inbox.ts +26 -3
- package/dist/template/src/core/messaging/service.ts +8 -1
- package/dist/template/src/core/messaging/sms.ts +425 -106
- package/dist/template/src/core/migrate.ts +1 -1
- package/dist/template/src/core/notes/service.ts +1 -0
- package/dist/template/src/core/notifications/schema.ts +45 -0
- package/dist/template/src/core/notifications/service.ts +174 -7
- package/dist/template/src/core/notifications/web-push.ts +133 -0
- package/dist/template/src/core/plugins/service.ts +1 -1
- package/dist/template/src/core/portability/ownership-export.mjs +15 -0
- package/dist/template/src/core/portal/nav.ts +34 -0
- package/dist/template/src/core/portal/record-service.ts +2 -2
- package/dist/template/src/core/portal/return-path.ts +9 -3
- package/dist/template/src/core/portal/sections.ts +8 -1
- package/dist/template/src/core/portal/service.ts +1 -0
- package/dist/template/src/core/preview/private-preview.ts +129 -0
- package/dist/template/src/core/preview/route-gate.ts +49 -0
- package/dist/template/src/core/privacy/service.ts +7 -1
- package/dist/template/src/core/runs/schema.ts +6 -1
- package/dist/template/src/core/runtime/schema-probe.ts +42 -0
- package/dist/template/src/core/scheduling/bookings.ts +5 -1
- package/dist/template/src/core/scheduling/business-day.ts +77 -0
- package/dist/template/src/core/scheduling/policy.ts +17 -0
- package/dist/template/src/core/scheduling/portal.ts +1 -1
- package/dist/template/src/core/scheduling/resolver-service.ts +15 -0
- package/dist/template/src/core/scheduling/resolver.ts +28 -8
- package/dist/template/src/core/search/service.ts +2 -2
- package/dist/template/src/core/security/rate-limit.ts +72 -1
- package/dist/template/src/core/seo/indexnow.ts +10 -2
- package/dist/template/src/core/seo/meta.ts +18 -1
- package/dist/template/src/core/seo/service.ts +5 -5
- package/dist/template/src/core/seo/sitemap.ts +4 -0
- package/dist/template/src/core/service.ts +126 -15
- package/dist/template/src/core/services.ts +16 -0
- package/dist/template/src/core/settings/service.ts +26 -1
- package/dist/template/src/core/tables.ts +4 -0
- package/dist/template/src/core/tasks/service.ts +1 -0
- package/dist/template/src/core/update/preflight.ts +5 -3
- package/dist/template/src/core/update/release-declaration.json +1 -1
- package/dist/template/src/core/views/registry.ts +4 -6
- package/dist/template/src/core/views/service.ts +14 -3
- package/dist/template/src/core/webhooks/service.ts +7 -7
- package/dist/template/src/core/webhooks/transport.ts +20 -4
- package/dist/template/src/mcp/server.ts +48 -0
- package/dist/template/src/mcp/tools.ts +3 -3
- package/dist/template/src/modules/ads/blocks.tsx +33 -9
- package/dist/template/src/modules/ads/service.ts +55 -4
- package/dist/template/src/modules/ads/tags.ts +57 -4
- package/dist/template/src/modules/analytics/measurement.ts +57 -0
- package/dist/template/src/modules/analytics/service.ts +129 -49
- package/dist/template/src/modules/assessments/service.ts +2 -2
- package/dist/template/src/modules/assistant/service.ts +290 -53
- package/dist/template/src/modules/builder/code-delivery.ts +33 -15
- package/dist/template/src/modules/builder/code-service.ts +330 -74
- package/dist/template/src/modules/builder/service.ts +163 -39
- package/dist/template/src/modules/catalog/browse.ts +2 -1
- package/dist/template/src/modules/catalog/cart-access.ts +14 -0
- package/dist/template/src/modules/catalog/cart.ts +18 -2
- package/dist/template/src/modules/catalog/checkout-fields.ts +101 -0
- package/dist/template/src/modules/catalog/inventory.ts +1 -0
- package/dist/template/src/modules/catalog/listing-gate.ts +22 -0
- package/dist/template/src/modules/catalog/market.ts +189 -0
- package/dist/template/src/modules/catalog/merchandising.ts +105 -0
- package/dist/template/src/modules/catalog/orders.ts +56 -14
- package/dist/template/src/modules/catalog/promotions.ts +106 -25
- package/dist/template/src/modules/catalog/public-booking.ts +72 -20
- package/dist/template/src/modules/catalog/schema.ts +8 -0
- package/dist/template/src/modules/catalog/service.ts +21 -2
- package/dist/template/src/modules/catalog/shipping-quote.ts +31 -4
- package/dist/template/src/modules/catalog/storefront.ts +31 -0
- package/dist/template/src/modules/catalog/variants.ts +40 -0
- package/dist/template/src/modules/cms/a11y-hints.ts +12 -3
- package/dist/template/src/modules/cms/blocks/fields.ts +14 -2
- package/dist/template/src/modules/cms/blocks/library.tsx +135 -27
- package/dist/template/src/modules/cms/blocks/store-sections.tsx +18 -3
- package/dist/template/src/modules/cms/blocks/surfaces.tsx +46 -18
- package/dist/template/src/modules/cms/blocks/types.ts +8 -0
- package/dist/template/src/modules/cms/chrome-nav.ts +75 -0
- package/dist/template/src/modules/cms/defaults.ts +1 -1
- package/dist/template/src/modules/cms/history.ts +1 -1
- package/dist/template/src/modules/cms/inbound.ts +1 -1
- package/dist/template/src/modules/cms/layout-service.ts +6 -1
- package/dist/template/src/modules/cms/lifecycle.ts +2 -0
- package/dist/template/src/modules/cms/render.tsx +44 -0
- package/dist/template/src/modules/cms/schema.ts +1 -0
- package/dist/template/src/modules/cms/service.ts +172 -22
- package/dist/template/src/modules/cms/templates.ts +40 -3
- package/dist/template/src/modules/cms/translation-workflow.ts +109 -35
- package/dist/template/src/modules/contracts/service.ts +9 -7
- package/dist/template/src/modules/documents/service.ts +36 -9
- package/dist/template/src/modules/events/SubmissionTokenField.tsx +28 -0
- package/dist/template/src/modules/events/blocks.tsx +236 -21
- package/dist/template/src/modules/events/jobs.ts +22 -0
- package/dist/template/src/modules/events/manifest.ts +11 -1
- package/dist/template/src/modules/events/schema.ts +9 -0
- package/dist/template/src/modules/events/service.ts +759 -61
- package/dist/template/src/modules/forms/FileField.tsx +181 -0
- package/dist/template/src/modules/forms/block.tsx +239 -8
- package/dist/template/src/modules/forms/conversion.ts +34 -0
- package/dist/template/src/modules/forms/fields.ts +106 -3
- package/dist/template/src/modules/forms/lead-sink.ts +90 -0
- package/dist/template/src/modules/forms/schema.ts +47 -0
- package/dist/template/src/modules/forms/screening.ts +183 -0
- package/dist/template/src/modules/forms/service.ts +413 -29
- package/dist/template/src/modules/forms/tables.ts +1 -1
- package/dist/template/src/modules/galleries/service.ts +162 -43
- package/dist/template/src/modules/index.ts +4 -0
- package/dist/template/src/modules/invoicing/contract.ts +1 -0
- package/dist/template/src/modules/invoicing/customer-service.ts +14 -5
- package/dist/template/src/modules/invoicing/invoice-service.ts +19 -2
- package/dist/template/src/modules/invoicing/payment-provider-service.ts +326 -63
- package/dist/template/src/modules/invoicing/pos-service.ts +191 -89
- package/dist/template/src/modules/invoicing/recurring-service.ts +1 -0
- package/dist/template/src/modules/invoicing/schema.ts +1 -1
- package/dist/template/src/modules/linkinbio/availability.ts +71 -0
- package/dist/template/src/modules/linkinbio/blocks.tsx +307 -0
- package/dist/template/src/modules/linkinbio/links.ts +519 -0
- package/dist/template/src/modules/linkinbio/manifest.ts +26 -0
- package/dist/template/src/modules/linkinbio/service.ts +1010 -0
- package/dist/template/src/modules/members/abuse.ts +143 -0
- package/dist/template/src/modules/members/adult.ts +45 -0
- package/dist/template/src/modules/members/attachment-store.ts +80 -0
- package/dist/template/src/modules/members/attachments.ts +103 -0
- package/dist/template/src/modules/members/call-seats.ts +49 -0
- package/dist/template/src/modules/members/calls.ts +347 -0
- package/dist/template/src/modules/members/data-rights.ts +249 -0
- package/dist/template/src/modules/members/demo.ts +188 -0
- package/dist/template/src/modules/members/e2ee/engine.ts +656 -0
- package/dist/template/src/modules/members/e2ee/history.ts +176 -0
- package/dist/template/src/modules/members/e2ee/idb-store.ts +89 -0
- package/dist/template/src/modules/members/e2ee/service.ts +504 -0
- package/dist/template/src/modules/members/e2ee/wire.ts +210 -0
- package/dist/template/src/modules/members/federation/core.ts +386 -0
- package/dist/template/src/modules/members/federation/following.ts +394 -0
- package/dist/template/src/modules/members/federation/signatures.ts +97 -0
- package/dist/template/src/modules/members/graph.ts +498 -0
- package/dist/template/src/modules/members/group-calls.ts +201 -0
- package/dist/template/src/modules/members/jobs.ts +64 -0
- package/dist/template/src/modules/members/listings.ts +269 -0
- package/dist/template/src/modules/members/manifest.ts +49 -0
- package/dist/template/src/modules/members/member-services.ts +211 -0
- package/dist/template/src/modules/members/member-subscriptions.ts +256 -0
- package/dist/template/src/modules/members/message-crypto.ts +56 -0
- package/dist/template/src/modules/members/messages.ts +483 -0
- package/dist/template/src/modules/members/notify.ts +60 -0
- package/dist/template/src/modules/members/onboarding.ts +46 -0
- package/dist/template/src/modules/members/payouts.ts +477 -0
- package/dist/template/src/modules/members/policy.ts +71 -0
- package/dist/template/src/modules/members/posts.ts +644 -0
- package/dist/template/src/modules/members/profile-kinds.ts +4 -0
- package/dist/template/src/modules/members/profile.ts +230 -0
- package/dist/template/src/modules/members/protection.ts +402 -0
- package/dist/template/src/modules/members/provider-payouts.ts +546 -0
- package/dist/template/src/modules/members/report-kinds.ts +6 -0
- package/dist/template/src/modules/members/reports.ts +277 -0
- package/dist/template/src/modules/members/reputation.ts +247 -0
- package/dist/template/src/modules/members/schema.ts +966 -0
- package/dist/template/src/modules/members/sealed-blobs.ts +188 -0
- package/dist/template/src/modules/members/service.ts +493 -0
- package/dist/template/src/modules/members/sfu.ts +89 -0
- package/dist/template/src/modules/members/status.ts +36 -0
- package/dist/template/src/modules/members/subscriber-check.ts +30 -0
- package/dist/template/src/modules/members/tables.ts +46 -0
- package/dist/template/src/modules/members/visibility.ts +5 -0
- package/dist/template/src/modules/newsletters/blocks.tsx +27 -2
- package/dist/template/src/modules/newsletters/broadcast-service.ts +169 -7
- package/dist/template/src/modules/newsletters/service.ts +53 -6
- package/dist/template/src/modules/popups/service.ts +9 -2
- package/dist/template/src/modules/projects/manifest.ts +1 -0
- package/dist/template/src/modules/projects/portal.ts +70 -5
- package/dist/template/src/modules/projects/publishing-service.ts +1 -0
- package/dist/template/src/modules/projects/schema.ts +6 -0
- package/dist/template/src/modules/projects/service.ts +320 -2
- package/dist/template/src/modules/proof/manifest.ts +1 -1
- package/dist/template/src/modules/quotes/service.ts +5 -1
- package/dist/template/src/modules/referrals/commission-service.ts +82 -2
- package/dist/template/src/modules/referrals/service.ts +1 -0
- package/dist/template/src/modules/rentals/service.ts +85 -2
- package/dist/template/src/modules/reporting/export-service.ts +27 -40
- package/dist/template/src/modules/reporting/service.ts +64 -22
- package/dist/template/src/modules/seed/boot.ts +87 -5
- package/dist/template/src/modules/seed/business.ts +350 -0
- package/dist/template/src/modules/seed/busy.ts +109 -0
- package/dist/template/src/modules/seed/launch.ts +574 -0
- package/dist/template/src/modules/seed/manifest.ts +1 -1
- package/dist/template/src/modules/seed/onboarding.ts +8 -6
- package/dist/template/src/modules/seed/service.ts +82 -5
- package/dist/template/src/modules/share/service.ts +6 -2
- package/dist/template/src/modules/social/capabilities.ts +1 -0
- package/dist/template/src/modules/social/compose.ts +24 -1
- package/dist/template/src/modules/social/render.ts +87 -19
- package/dist/template/src/modules/subscriptions/billing.ts +165 -47
- package/dist/template/src/modules/subscriptions/public-signup.ts +213 -19
- package/dist/template/src/modules/subscriptions/schema.ts +4 -0
- package/dist/template/src/modules/subscriptions/service.ts +141 -30
- package/dist/template/src/ui/pickers.tsx +98 -0
- package/dist/template/src/ui/primitives.tsx +2 -2
- package/dist/template/tests/adapters/abuse-scan.test.ts +87 -0
- package/dist/template/tests/adapters/payout-providers.test.ts +155 -0
- package/dist/template/tests/browser/accessibility.spec.ts +11 -0
- package/dist/template/tests/browser/c11-01-visitor-to-paid.spec.ts +9 -1
- package/dist/template/tests/browser/customer-surfaces.spec.ts +23 -1
- package/dist/template/tests/browser/editor-media-tools.spec.ts +7 -2
- package/dist/template/tests/browser/editor-store-sections.spec.ts +1 -4
- package/dist/template/tests/browser/events.spec.ts +106 -3
- package/dist/template/tests/browser/first-party-plugins.spec.ts +5 -3
- package/dist/template/tests/browser/journeys.spec.ts +48 -3
- package/dist/template/tests/browser/member-calls.spec.ts +75 -0
- package/dist/template/tests/browser/member-group-calls.spec.ts +119 -0
- package/dist/template/tests/browser/member-journey.spec.ts +275 -0
- package/dist/template/tests/browser/members.spec.ts +1132 -0
- package/dist/template/tests/browser/newsletters.spec.ts +234 -0
- package/dist/template/tests/browser/playground.spec.ts +78 -0
- package/dist/template/tests/browser/screenshots.spec.ts +244 -0
- package/dist/template/tests/browser/storefront-checkout.spec.ts +8 -5
- package/dist/template/tests/browser/storefront-merch-blocks.spec.ts +3 -5
- package/dist/template/tests/core/admin-first-run.test.ts +245 -0
- package/dist/template/tests/core/admin-nav-layout.test.ts +123 -0
- package/dist/template/tests/core/agent-launch.test.ts +59 -1
- package/dist/template/tests/core/agents-approvals.test.ts +75 -0
- package/dist/template/tests/core/agents-schedule.test.ts +78 -1
- package/dist/template/tests/core/agents-workforce-adapter.test.ts +419 -3
- package/dist/template/tests/core/analytics-consent.test.ts +24 -2
- package/dist/template/tests/core/analytics.test.ts +46 -1
- package/dist/template/tests/core/attestations.test.ts +23 -0
- package/dist/template/tests/core/audit-labels.test.ts +203 -1
- package/dist/template/tests/core/bootstrap-security.test.ts +53 -0
- package/dist/template/tests/core/briefing.test.ts +16 -1
- package/dist/template/tests/core/builder-code-lane.test.ts +71 -1
- package/dist/template/tests/core/builder-content-lane.test.ts +67 -2
- package/dist/template/tests/core/c11-03-booking-journey.test.ts +25 -12
- package/dist/template/tests/core/c11-06-agent-journey.test.ts +4 -3
- package/dist/template/tests/core/calendar-sync.test.ts +18 -0
- package/dist/template/tests/core/cart-access.test.ts +66 -2
- package/dist/template/tests/core/cart-storefront.test.ts +246 -7
- package/dist/template/tests/core/catalog-orders.test.ts +51 -2
- package/dist/template/tests/core/change-password.test.ts +30 -1
- package/dist/template/tests/core/checkout-fields.test.ts +49 -0
- package/dist/template/tests/core/client-readiness-security.test.ts +17 -9
- package/dist/template/tests/core/cms-blocks.test.ts +2 -2
- package/dist/template/tests/core/cms-chrome.test.ts +138 -1
- package/dist/template/tests/core/cms-translation-workflow.test.ts +65 -1
- package/dist/template/tests/core/colour-literals.test.ts +60 -0
- package/dist/template/tests/core/contact-import.test.ts +21 -0
- package/dist/template/tests/core/contract-templates.test.ts +5 -2
- package/dist/template/tests/core/csp.test.ts +9 -0
- package/dist/template/tests/core/customer-invoices.test.ts +59 -0
- package/dist/template/tests/core/customer-magic-links.test.ts +21 -4
- package/dist/template/tests/core/customer-return-path.test.ts +33 -0
- package/dist/template/tests/core/dashboard.test.ts +88 -0
- package/dist/template/tests/core/demo-scenarios.test.ts +6 -1
- package/dist/template/tests/core/deploy-recipe.test.ts +161 -0
- package/dist/template/tests/core/doctor.test.ts +127 -0
- package/dist/template/tests/core/editor-canvas-drag.test.ts +90 -0
- package/dist/template/tests/core/editor-inline-edit.test.ts +1 -0
- package/dist/template/tests/core/editor-media-tools.test.ts +1 -0
- package/dist/template/tests/core/editor-preview-draft.test.ts +1 -0
- package/dist/template/tests/core/editor-reorder.test.ts +1 -0
- package/dist/template/tests/core/editor-store-sections.test.ts +1 -0
- package/dist/template/tests/core/events-public-render.test.ts +147 -0
- package/dist/template/tests/core/events-submission-token.test.ts +40 -0
- package/dist/template/tests/core/events.test.ts +691 -9
- package/dist/template/tests/core/f-matrix.test.ts +2 -2
- package/dist/template/tests/core/first-party-plugins.test.ts +13 -0
- package/dist/template/tests/core/form-intake-screening.test.ts +80 -0
- package/dist/template/tests/core/form-screening-lead-sink.test.ts +446 -0
- package/dist/template/tests/core/guidance-definitions.test.ts +18 -0
- package/dist/template/tests/core/i18n.test.ts +118 -0
- package/dist/template/tests/core/ics-and-writeback.test.ts +10 -2
- package/dist/template/tests/core/inbox.test.ts +13 -0
- package/dist/template/tests/core/intake-waivers-reminders.test.ts +5 -3
- package/dist/template/tests/core/internal-services.test.ts +141 -0
- package/dist/template/tests/core/invoicing-pos.test.ts +137 -2
- package/dist/template/tests/core/launch-cli.test.ts +342 -0
- package/dist/template/tests/core/launch-template.test.ts +197 -0
- package/dist/template/tests/core/lint-gates.test.ts +54 -0
- package/dist/template/tests/core/list-assets-limits.test.ts +30 -0
- package/dist/template/tests/core/local-time-sql.test.ts +149 -0
- package/dist/template/tests/core/long-running-service-boundary.test.ts +258 -109
- package/dist/template/tests/core/mail-import.test.ts +18 -0
- package/dist/template/tests/core/mail-service.test.ts +280 -0
- package/dist/template/tests/core/mail-ui.test.ts +17 -0
- package/dist/template/tests/core/mcp.test.ts +48 -0
- package/dist/template/tests/core/measurement-form-action.test.ts +94 -0
- package/dist/template/tests/core/measurement-provider.test.ts +258 -0
- package/dist/template/tests/core/media-capture.test.ts +163 -1
- package/dist/template/tests/core/media-markdown.test.ts +26 -0
- package/dist/template/tests/core/media-raster-guard.test.ts +309 -0
- package/dist/template/tests/core/media-transfer-transport.test.ts +83 -0
- package/dist/template/tests/core/media-transfer.test.ts +108 -0
- package/dist/template/tests/core/media.test.ts +69 -0
- package/dist/template/tests/core/merch-blocks.test.ts +40 -0
- package/dist/template/tests/core/merge-completeness.test.ts +142 -26
- package/dist/template/tests/core/newsletters.test.ts +93 -0
- package/dist/template/tests/core/onboarding-definitions-frozen.test.ts +63 -0
- package/dist/template/tests/core/onboarding-definitions.frozen.json +20 -0
- package/dist/template/tests/core/paradise-http.test.ts +185 -0
- package/dist/template/tests/core/paradise-mail.test.ts +296 -0
- package/dist/template/tests/core/payment-adapters.test.ts +103 -0
- package/dist/template/tests/core/payment-provider-service.test.ts +262 -3
- package/dist/template/tests/core/personal-keys.test.ts +73 -0
- package/dist/template/tests/core/playground-cache.test.ts +109 -0
- package/dist/template/tests/core/playground-feedback.test.ts +160 -0
- package/dist/template/tests/core/playground-reset.test.ts +195 -0
- package/dist/template/tests/core/playground.test.ts +353 -5
- package/dist/template/tests/core/plugin-provider-boundary.test.ts +21 -11
- package/dist/template/tests/core/preview-mail.test.ts +294 -0
- package/dist/template/tests/core/private-preview-webhooks.test.ts +152 -0
- package/dist/template/tests/core/private-preview.test.ts +167 -0
- package/dist/template/tests/core/proxy-locale.test.ts +1 -0
- package/dist/template/tests/core/quotes.test.ts +15 -1
- package/dist/template/tests/core/rate-limit.test.ts +146 -2
- package/dist/template/tests/core/redirect-origin.test.ts +40 -0
- package/dist/template/tests/core/release-packages.test.ts +38 -0
- package/dist/template/tests/core/rentals.test.ts +88 -0
- package/dist/template/tests/core/resolver.test.ts +39 -0
- package/dist/template/tests/core/saved-views.test.ts +28 -1
- package/dist/template/tests/core/screenshots-gallery.test.ts +95 -0
- package/dist/template/tests/core/security-headers.test.ts +13 -1
- package/dist/template/tests/core/seed-demo-busy.test.ts +564 -0
- package/dist/template/tests/core/seed-demo.test.ts +166 -7
- package/dist/template/tests/core/seo-gate.test.ts +20 -1
- package/dist/template/tests/core/seo-surface.test.ts +9 -0
- package/dist/template/tests/core/seo.test.ts +1 -0
- package/dist/template/tests/core/service-composition.test.ts +45 -2
- package/dist/template/tests/core/service-intake-delivery.test.ts +313 -0
- package/dist/template/tests/core/settings.test.ts +13 -0
- package/dist/template/tests/core/shipping-quote.test.ts +50 -0
- package/dist/template/tests/core/site-chat.test.ts +97 -5
- package/dist/template/tests/core/sms.test.ts +268 -0
- package/dist/template/tests/core/spec-reconciliation.test.ts +7 -3
- package/dist/template/tests/core/storefront-commerce.test.ts +64 -1
- package/dist/template/tests/core/templates.test.ts +10 -0
- package/dist/template/tests/core/text-encoding.test.ts +35 -0
- package/dist/template/tests/core/transactional-jobs.test.ts +57 -0
- package/dist/template/tests/core/update-preflight.test.ts +46 -0
- package/dist/template/tests/core/voice-video-provider-choice.test.ts +47 -0
- package/dist/template/tests/core/waitlists-and-policy.test.ts +11 -0
- package/dist/template/tests/core/web-push.test.ts +165 -0
- package/dist/template/tests/core/wordpress-import-flow.test.ts +216 -0
- package/dist/template/tests/core/wordpress-import-upload.test.ts +217 -0
- package/dist/template/tests/core/wordpress-import.test.ts +260 -0
- package/dist/template/tests/core/zoned.test.ts +156 -1
- package/dist/template/tests/fixtures/wordpress/sample-export.xml +228 -0
- package/dist/template/tests/helpers/e2ee.ts +69 -0
- package/dist/template/tests/helpers/open-transactions.ts +14 -0
- package/dist/template/tests/load/members-load.test.ts +99 -0
- package/dist/template/tests/modules/ads-third-party.test.ts +58 -2
- package/dist/template/tests/modules/assistant.test.ts +36 -0
- package/dist/template/tests/modules/booking-opening-date.test.ts +290 -0
- package/dist/template/tests/modules/broadcasts.test.ts +92 -0
- package/dist/template/tests/modules/customer-surfaces.test.ts +110 -2
- package/dist/template/tests/modules/documents.test.ts +22 -0
- package/dist/template/tests/modules/form-file-fields.test.ts +317 -0
- package/dist/template/tests/modules/linkinbio-links.test.ts +277 -0
- package/dist/template/tests/modules/linkinbio.test.ts +410 -0
- package/dist/template/tests/modules/member-abuse.test.ts +114 -0
- package/dist/template/tests/modules/member-adult.test.ts +109 -0
- package/dist/template/tests/modules/member-attachments.test.ts +92 -0
- package/dist/template/tests/modules/member-calls.test.ts +138 -0
- package/dist/template/tests/modules/member-data-rights.test.ts +119 -0
- package/dist/template/tests/modules/member-demo.test.ts +40 -0
- package/dist/template/tests/modules/member-e2ee.test.ts +240 -0
- package/dist/template/tests/modules/member-federation.test.ts +249 -0
- package/dist/template/tests/modules/member-graph.test.ts +113 -0
- package/dist/template/tests/modules/member-group-calls.test.ts +178 -0
- package/dist/template/tests/modules/member-listings.test.ts +88 -0
- package/dist/template/tests/modules/member-messages.test.ts +107 -0
- package/dist/template/tests/modules/member-notifications.test.ts +70 -0
- package/dist/template/tests/modules/member-payouts.test.ts +125 -0
- package/dist/template/tests/modules/member-posts.test.ts +118 -0
- package/dist/template/tests/modules/member-profile-sections.test.ts +75 -0
- package/dist/template/tests/modules/member-protection.test.ts +118 -0
- package/dist/template/tests/modules/member-provider-payouts.test.ts +463 -0
- package/dist/template/tests/modules/member-reports.test.ts +94 -0
- package/dist/template/tests/modules/member-reputation.test.ts +114 -0
- package/dist/template/tests/modules/member-services.test.ts +97 -0
- package/dist/template/tests/modules/member-subscriptions.test.ts +97 -0
- package/dist/template/tests/modules/members.test.ts +99 -0
- package/dist/template/tests/modules/popups.test.ts +30 -0
- package/dist/template/tests/modules/referrals-commission.test.ts +54 -0
- package/dist/template/tests/modules/reporting-exports.test.ts +56 -0
- package/dist/template/tests/modules/reporting.test.ts +56 -1
- package/dist/template/tests/modules/share.test.ts +21 -3
- package/dist/template/tests/modules/social-composer.test.ts +48 -0
- package/dist/template/tests/modules/social-render-ffmpeg.test.ts +133 -0
- package/dist/template/tests/modules/subscription-billing.test.ts +297 -2
- package/dist/template-manifest.json +3319 -1069
- package/package.json +1 -1
- package/dist/template/src/adapters/agent/pm-brain.ts +0 -125
package/dist/template/MASTER.md
CHANGED
|
@@ -47,6 +47,7 @@ Freeholder is a single open-source application that replaces the rented stack. E
|
|
|
47
47
|
### What's inside
|
|
48
48
|
|
|
49
49
|
- **Website + CMS** — server-rendered, SEO-serious by construction (clean browse architecture, full schema.org, hreflang, auto sitemaps, llms.txt)
|
|
50
|
+
- **Link in bio** — the one link for every social profile, as a page on your own site: picture, name, bio, ordered buttons and social icons; links that can be hidden or scheduled, smart links that follow your own products, bookings, events, galleries, pages and newsletter, and per-link clicks counted by your own analytics (C9.39)
|
|
50
51
|
- **Commerce** — products (physical, digital, services), cart, checkout, coupons, gift cards; Stripe first, PayPal adapter
|
|
51
52
|
- **Bookings** — availability, deposits, reminders, reschedule links, 2-way Google/Outlook calendar sync
|
|
52
53
|
- **Quotes → contracts → invoices** — send quotes, negotiate line items with logged-in prospects, click-to-sign, deposits, payment plans
|
|
@@ -113,7 +114,7 @@ Owners can also file a bug, feature request or code submission from their runnin
|
|
|
113
114
|
|
|
114
115
|
## 2. Architectural Principles
|
|
115
116
|
|
|
116
|
-
1. **
|
|
117
|
+
1. **One site, many people.** One Freeholder instance serves one site, with no tenant_id anywhere; that site can have any number of members who publish, connect, message, call, buy and sell with each other (§44, owner decision 2026-10-14). This kills multi-tenant complexity and matches the "click deploy" story (Replit first, then DO/Railway/Render/anything with Postgres + object storage).
|
|
117
118
|
2. **Monolith with modules.** One app, one Postgres database, one ORM schema. Modules are feature folders that can be toggled on/off in admin, not services. A module may own tables, but it may never duplicate a spine entity.
|
|
118
119
|
3. **The Contact Spine.** `Contact` is the center of gravity. Bookings, orders, quotes, invoices, gallery access, form submissions, email events, reviews, messages — everything references `contact_id`. The CRM timeline is a *view* over the spine, not a separate store.
|
|
119
120
|
4. **Money converges on Invoice → Payment.** Whether value arrives via cart checkout, an accepted quote, a booking deposit, or a subscription cycle, it is realized as an `Invoice` paid by one or more `Payment` records through a payment-provider adapter. One reconciliation path, one refund path, one reporting path.
|
|
@@ -182,6 +183,7 @@ freeholder/
|
|
|
182
183
|
│ ├── email-marketing # Broadcasts, simple automations, list segments (spine-native)
|
|
183
184
|
│ ├── reviews # Post-job review requests, moderation, display widgets
|
|
184
185
|
│ ├── social # Media prep (crop/trim presets, captions) + scheduled publishing
|
|
186
|
+
│ ├── link-in-bio # The social-profile link as a CMS page + typed block: scheduled/hidden smart links, first-party click counts
|
|
185
187
|
│ ├── affiliates # Referral & commission engine: dual-sided codes, attribution touches, holdbacks, payout batches
|
|
186
188
|
│ ├── loyalty # Points ledger, earn rules over spine events, tiers, rewards, redemption & liability
|
|
187
189
|
│ ├── ads # Ad slots at IAB sizes per breakpoint, house & sold campaigns, third-party tags, first-party counts
|
|
@@ -445,8 +447,10 @@ Customer access is a session tied to the invoice contact or an invoice-specific
|
|
|
445
447
|
HMAC link (`SESSION_SECRET`, bound to the contact and issue date). Paid, void
|
|
446
448
|
and refunded invoices retire the email link; the customer's session retains
|
|
447
449
|
read-only history. `invoicing.send` queues that link in the encrypted mail
|
|
448
|
-
outbox. Hosted checkout
|
|
449
|
-
|
|
450
|
+
outbox. Hosted checkout (customer, owner and API alike), capture, provider refunds
|
|
451
|
+
and in-person Terminal takes commit their payment or refund attempt before
|
|
452
|
+
provider I/O and apply the provider response in a fresh authorized
|
|
453
|
+
transaction. Repeated
|
|
450
454
|
requests reuse the outstanding attempt; a timeout cannot create a new charge.
|
|
451
455
|
The provider return has a separate seven-day capability exposing only payment
|
|
452
456
|
status, currency and amount. A redirect never settles money: provider checks
|
|
@@ -770,6 +774,7 @@ changes an instance silently.
|
|
|
770
774
|
- **Money is never auto-converted at charge time.** A variant is either priced in a currency (PriceListEntry) or unavailable in it. There is no FX-rate table and no `adapters/fx` family: display conversion stays off (§8). Invoices, payments, and refunds stay in their original currency forever.
|
|
771
775
|
- **Customer-facing everything follows `Contact.preferred_locale`:** portal, quotes, invoices, contracts, booking reminders, marketing emails. A quote sent to a French client renders in French with EUR prices if priced; the admin sees it in the owner's locale.
|
|
772
776
|
- **Timezone discipline:** store UTC; bookings render in *both* business and contact timezone on every customer surface (the #1 no-show cause is timezone confusion).
|
|
777
|
+
- **Local-time math lives in Node; SQL sees UTC instants** (2026-10-22). Postgres and Node each ship their own tz database and they are updated on different schedules, so a query that buckets with `AT TIME ZONE` and a page that renders with `Intl` can disagree by an hour. Every "which local day, week or month" question — availability, opening hours, report and analytics buckets, export periods, reminders, "today" — is answered by `src/core/i18n/zoned.ts` (`zonedInstant`, `localBuckets`, `localPeriodOf`; skipped local times resolve after the gap, repeated ones to the earlier instant unless a caller asks for the later) and handed to SQL as UTC boundaries (`src/core/db/buckets.ts`). Every database session is pinned to `TimeZone=UTC`, so any `date_trunc`/`::date` left in SQL is a UTC question by construction. `tests/core/local-time-sql.test.ts` fails the build on `AT TIME ZONE`, `current_date` or `localtimestamp` in shipped code; doctor's `time.zoneData` check warns when Postgres's tz data disagrees with Node's for the business's zone.
|
|
773
778
|
- **Tax follows location, not locale:** tax zones key off business location + customer country (see §4.10).
|
|
774
779
|
- **AI-assisted translation** (BYO key) can machine-draft `EntityTranslation` rows flagged `status=machine` for owner review — never silently published.
|
|
775
780
|
|
|
@@ -1066,12 +1071,14 @@ monolith that has to boot on a $6 droplet. What core owns is the seam: a
|
|
|
1066
1071
|
plugin registering a voice or video adapter attaches its artifacts — a
|
|
1067
1072
|
recording asset, a transcript, a duration, a missed-call event — to the
|
|
1068
1073
|
same `Conversation` and the same timeline, so a call is part of a person's
|
|
1069
|
-
history without core learning what a SIP trunk is.
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1074
|
+
history without core learning what a SIP trunk is. Behind that seam sit
|
|
1075
|
+
interchangeable provider adapters, and no provider is chosen on a site
|
|
1076
|
+
owner's behalf: today Daily (hosted rooms) and Paradise Comms (Paradise
|
|
1077
|
+
Modern's hosted, LiveKit-based relay: rooms, credentials and recordings per
|
|
1078
|
+
`/api/integration/capabilities`). Each carries its own compliance posture
|
|
1079
|
+
and pricing, which the site owner accepts by choosing it. Member-to-member
|
|
1080
|
+
group calls can instead run on the owner's own LiveKit server (C12.24).
|
|
1081
|
+
(Owner decisions 2026-09-27 and 2026-10-22, §36.)
|
|
1075
1082
|
|
|
1076
1083
|
### 4.15 Subscriptions, entitlements and paywalls
|
|
1077
1084
|
|
|
@@ -1115,6 +1122,11 @@ up gated by a boolean somebody forgot to check.
|
|
|
1115
1122
|
help doc.
|
|
1116
1123
|
- **Trials, upgrades and downgrades are proration decisions, and they are
|
|
1117
1124
|
stated per plan** rather than discovered at the first mid-cycle change.
|
|
1125
|
+
A customer's own change in the portal follows the same rule, with one
|
|
1126
|
+
guard: when it raises a proration invoice, the new plan is granted only once
|
|
1127
|
+
that invoice is paid in full (a `provider` schedule prorates at the provider).
|
|
1128
|
+
A change deferred to period end bills the new plan's own variant from the
|
|
1129
|
+
first renewal after it.
|
|
1118
1130
|
- **Dunning is a policy with a schedule**, not a single failed charge: retries
|
|
1119
1131
|
at stated offsets, a grace period during which access continues, notices on
|
|
1120
1132
|
the channels the contact consented to (§4.14), and a final action the owner
|
|
@@ -1511,7 +1523,7 @@ freeholder/ # Apache-2.0
|
|
|
1511
1523
|
│ │ ├── calendar/ (none/ — Google/Microsoft live in core/connections)
|
|
1512
1524
|
│ │ ├── sms/ (twilio/, none/)
|
|
1513
1525
|
│ │ ├── ai/ (anthropic/, openai/, none/) # BYO key — grounding, drafting
|
|
1514
|
-
│ │ └── agent/ (
|
|
1526
|
+
│ │ └── agent/ (gateway/, paradise/, anthropic/, openai/, local/, none/) # the builder (§37)
|
|
1515
1527
|
│ │
|
|
1516
1528
|
│ └── mcp/ # bundled MCP server — tools generated from service registry
|
|
1517
1529
|
│
|
|
@@ -1688,6 +1700,40 @@ export interface MailAdapter {
|
|
|
1688
1700
|
|
|
1689
1701
|
Same pattern for storage, calendar (2-way sync w/ webhook or polling fallback), sms, ai, **tax** (§4.12 — `quote(order) → TaxLine[]`, whose default implementation is the built-in engine; no Stripe Tax / Avalara / TaxJar adapter), **carrier** (`none` until a live-rate plugin exists), **accounting** (export shapes for QuickBooks, Xero and plain CSV — not an adapter family), and **agent** (§37). There is no FX adapter family. The `none/` implementations let every optional family be absent without null-checks scattered through modules.
|
|
1690
1702
|
|
|
1703
|
+
**Every outside service is a neutral category with swappable adapters**
|
|
1704
|
+
(owner decision, Tony Aly, 2026-10-22). Payments name Stripe, PayPal and the
|
|
1705
|
+
rest as adapters of one contract; mail names Gmail, Outlook, SMTP and the bulk
|
|
1706
|
+
carriers; storage takes any S3-compatible host. The same holds for the
|
|
1707
|
+
categories below, and for any category added later: settings, admin copy and
|
|
1708
|
+
visitor-facing text name the *category*, and the chosen provider is one
|
|
1709
|
+
interchangeable adapter in it, configured like Stripe — never presented as
|
|
1710
|
+
first-party, never preselected, and never contacted until an owner chooses it.
|
|
1711
|
+
|
|
1712
|
+
| Category | Setting | Adapters | Item |
|
|
1713
|
+
|---|---|---|---|
|
|
1714
|
+
| Transactional / bulk mail | `MAIL_ADAPTER`, `MAIL_BULK_ADAPTER` | smtp, gmail, outlook, console · resend, postmark, ses · **paradise** | C3.31 |
|
|
1715
|
+
| Measurement (consented, third-party) | `MEASUREMENT_PROVIDER` | none (default) · **paradise** | C3.32 |
|
|
1716
|
+
| Form screening | `FORM_SCREENING_PROVIDER` | none (default; Freeholder's own honeypot and time trap always run) · **paradise** | C3.33 |
|
|
1717
|
+
| Lead sink | `LEAD_SINK_PROVIDER` | none (default) · **paradise** | C3.34 |
|
|
1718
|
+
| Agent / model gateway | `FREEHOLDER_AGENT`, workforce connections | gateway, anthropic, openai, local · **paradise** | C4.05 |
|
|
1719
|
+
|
|
1720
|
+
Rules every category keeps. Provider I/O runs outside service transactions
|
|
1721
|
+
(screening before the submission's transaction, forwarding through the
|
|
1722
|
+
outbox). A category that changes what is collected from visitors — measurement
|
|
1723
|
+
— runs only on that visitor's explicit choice. A category that sends visitor
|
|
1724
|
+
data elsewhere — screening, lead sink, measurement — is disclosed in the site's
|
|
1725
|
+
privacy notice automatically while it is enabled: the provider's name, exactly
|
|
1726
|
+
what is sent and why. Screening can only *add* a reason to quarantine; it
|
|
1727
|
+
never drops a submission, and an unavailable provider falls back to
|
|
1728
|
+
Freeholder's own traps. Copying leads to an outside CRM is its own switch, off
|
|
1729
|
+
by default. A public playground (`FREEHOLDER_PLAYGROUND=1`) contacts no
|
|
1730
|
+
outside provider in any category. The Paradise Modern adapters share one
|
|
1731
|
+
bounded HTTP helper (`src/adapters/paradise/http.ts`): HTTPS only (loopback
|
|
1732
|
+
for tests), redirects refused, the site key sent to the configured origin and
|
|
1733
|
+
nowhere else; `deploy/paradise-modern.md` documents its public API contract
|
|
1734
|
+
and settings. Each adapter sends the minimum the provider's API requires,
|
|
1735
|
+
documented beside the category.
|
|
1736
|
+
|
|
1691
1737
|
---
|
|
1692
1738
|
|
|
1693
1739
|
## 13. Setup Wizard (first boot)
|
|
@@ -1843,7 +1889,7 @@ export default defineConfig({
|
|
|
1843
1889
|
calendar: "google",
|
|
1844
1890
|
sms: "none",
|
|
1845
1891
|
ai: "anthropic",
|
|
1846
|
-
agent: "
|
|
1892
|
+
agent: "gateway", // who builds this site (§37); "none" disables it
|
|
1847
1893
|
fx: "manual",
|
|
1848
1894
|
},
|
|
1849
1895
|
preset: "service-business",
|
|
@@ -2048,11 +2094,25 @@ studio**: connect or enter a source, discover content, preview the mapping and
|
|
|
2048
2094
|
diff, then stage and commit a reversible import. Nothing is published and DNS
|
|
2049
2095
|
never changes merely because the crawler finished.
|
|
2050
2096
|
|
|
2051
|
-
- **WordPress is the first
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2097
|
+
- **WordPress is the first importer, and the most complete:** the WXR export
|
|
2098
|
+
path brings pages (keeping their paths), posts (under `blog/`, so the blog
|
|
2099
|
+
listing shows them, keeping slugs and publication dates), attachments into
|
|
2100
|
+
the media library through the ordinary upload pipeline (pinned SSRF-safe
|
|
2101
|
+
download, content-sniffed type, size limit, AVIF/WebP renditions, alt text
|
|
2102
|
+
and source-URL provenance kept, body captions kept as text), body images
|
|
2103
|
+
rewritten to image and gallery blocks, Yoast/Rank Math SEO titles and
|
|
2104
|
+
descriptions, and the top level of one menu (joined to the nav section at
|
|
2105
|
+
publish). Original URLs either survive or receive explicit `Redirect` rows.
|
|
2106
|
+
The REST path covers pages and posts with dates, Yoast fields and embedded
|
|
2107
|
+
terms; it carries no attachment list, so only same-site body images are
|
|
2108
|
+
fetched. Not yet recreated, and said so in the run report: categories/tags
|
|
2109
|
+
and authors are recorded on the import run because the blog has no taxonomy
|
|
2110
|
+
and pages carry no author; reader comments are not imported because CMS
|
|
2111
|
+
pages have no public thread; nested menu items are not applied (C3.22
|
|
2112
|
+
open). An export file of up to 100 MB is reserved, sent in 4 MB chunks to
|
|
2113
|
+
an import-only route that stores them in private object storage, and read
|
|
2114
|
+
back as a stream; the 1 MB JSON body limit and the request proxy's buffer
|
|
2115
|
+
stay as they are for every other route.
|
|
2056
2116
|
- **The generic-site importer is built in:** it discovers `sitemap.xml`, RSS/
|
|
2057
2117
|
Atom, canonical links, JSON-LD, Open Graph and semantic HTML, then crawls only
|
|
2058
2118
|
owner-approved origins with visible depth/page/byte/rate limits. It resumes
|
|
@@ -2120,32 +2180,36 @@ export default definePlugin({
|
|
|
2120
2180
|
|
|
2121
2181
|
## 25. Ridiculously Easy (the DX bar)
|
|
2122
2182
|
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2183
|
+
Scaffolding today is a function in `@freeholder/plugin-kit`, not a command:
|
|
2184
|
+
|
|
2185
|
+
```ts
|
|
2186
|
+
import { inspectPluginFolder, scaffoldPlugin } from "@freeholder/plugin-kit";
|
|
2187
|
+
|
|
2188
|
+
await scaffoldPlugin("plugins/gift-registry", "gift-registry"); // plugin.json, CHANGELOG.md, README.md, example block/service/adapter/automation/route
|
|
2189
|
+
await inspectPluginFolder("plugins/gift-registry"); // validates the contract, lists the examples, checks for a changelog
|
|
2129
2190
|
```
|
|
2130
2191
|
|
|
2131
|
-
|
|
2192
|
+
**Planned, not published:** a `create-freeholder-plugin` command that wraps `scaffoldPlugin`, an `npm run dev` that boots a seeded demo Freeholder with the plugin hot-reloading inside it, and an `npm run share` that validates and publishes to npm as `freeholder-plugin-<name>`.
|
|
2193
|
+
|
|
2194
|
+
The bar: **zero-config from idea to installable in under an hour.** The dev harness (part of Apache-2.0 `plugin-kit`, like every package in this repository — §22's license policy) is the make-or-break piece — nobody should need to set up a whole Freeholder to write a widget. Today the harness checks a plugin folder (`inspectPluginFolder`); the planned `npm run dev` gives them Aurora Coast Photography with their plugin live inside it.
|
|
2132
2195
|
|
|
2133
2196
|
**Installing (owner side):**
|
|
2134
|
-
- Admin → Plugins
|
|
2135
|
-
-
|
|
2136
|
-
- Or: drop a folder into `/plugins` (the hackable path — a vibe-coded personal plugin never needs publishing)
|
|
2197
|
+
- Admin → Plugins installs a plugin from a directory on the server, checks its integrity hash and optional signature (§26), and enables it; it also browses the cached catalogue of added registries. One-click npm fetch and a permission consent screen are planned (C3.40).
|
|
2198
|
+
- Planned: `npm i freeholder-plugin-gift-registry` in the deploy, auto-discovered by the `freeholder-plugin-*` naming convention. Today the installed modules are the hand-written list in `src/modules/index.ts`, plus private plugins an installer writes into `src/modules/local-plugins.ts`.
|
|
2199
|
+
- Or: drop a folder into `/plugins` and add it to that list (the hackable path — a vibe-coded personal plugin never needs publishing). Plugin code is compiled into the build, so new plugin code needs a rebuild and redeploy.
|
|
2137
2200
|
- Config-as-code stays true: installed plugins + versions are recorded in `freeholder.config.ts`, so a redeploy reproduces the instance exactly
|
|
2138
2201
|
|
|
2139
2202
|
---
|
|
2140
2203
|
|
|
2141
2204
|
## 26. Trust Model (honest v1)
|
|
2142
2205
|
|
|
2143
|
-
Plugins run **in-process** — same trust level as core once installed. Sandboxing in-process JS is a research project,
|
|
2206
|
+
Plugins run **in-process** — same trust level as core once installed. Sandboxing in-process JS is a research project, deferred to v2 (C3.43, §43.18), so we do trust engineering instead and say so plainly. Each point below separates what the code does today from what is still open (C3.40–C3.42) or deferred (C3.43):
|
|
2144
2207
|
|
|
2145
|
-
1. **Declared permissions,
|
|
2208
|
+
1. **Declared permissions: disclosed, not yet enforced.** A plugin's manifest lists scopes (`contacts:read`, `invoicing:create`, `settings:write`, `network:external`, …). `@freeholder/plugin-kit` validates them and can describe each in plain language (`describePermission`: "can manage invoicing", "can make outbound network requests"), and an importer that fetches a source must declare `network:external`. Nothing yet holds a plugin to its list. Plugin code runs in-process with the caller's actor, so the service registry does not reject a call outside the declared scopes; the install screen does not yet show the scopes or ask for consent (C3.40); and no fetch wrapper limits outbound requests to plugins that declare `network:external` (C3.41). Until then, an installed plugin can do whatever core code can.
|
|
2146
2209
|
2. **Registry review tiers** (mirrors deploy recipes): **Verified** (maintainer-reviewed source, in the CI matrix, badge) / **Community** (automated checks: no eval, scope-lint, license check, integrity pinned, **CHANGELOG.md present with an entry for the published version — versions without release notes are rejected by the registry**) / **Unlisted** (install by name at your own risk — always possible; it's your instance). Plugin changelog entries are what feed the instance's own release notes when a plugin is installed or updated, so a missing changelog breaks the chain for every downstream site — hence it's a hard registry requirement, not a courtesy.
|
|
2147
|
-
3. **Signed releases (§39.3).** Platform images and the update feed carry signatures and build provenance, and the updater verifies both before applying anything. An auto-updater is the most privileged component in a self-hosted system; unverified auto-update would hand every instance to whoever compromises the distribution path.
|
|
2148
|
-
4. **Kill switches:** per-plugin disable without uninstall; plugin
|
|
2210
|
+
3. **Signed releases (§39.3); plugin signatures are weaker.** Platform images and the update feed carry signatures and build provenance, and the updater verifies both before applying anything; the feed is checked against an Ed25519 public key the instance ships. An auto-updater is the most privileged component in a self-hosted system; unverified auto-update would hand every instance to whoever compromises the distribution path. Plugins and registry indexes do not have that yet: an install checks a SHA-256 hash of the plugin directory, and its optional signature (like a registry index signature) is an HMAC made with a shared secret that the caller supplies with the request. That proves only that the signer knew the secret, not who published the plugin. Publisher public keys (Ed25519) are C3.42.
|
|
2211
|
+
4. **Kill switches:** per-plugin disable without uninstall (`plugins.disable`); a plugin that fails its version or dependency check, or throws while loading, is named and disabled at boot instead of taking the site down (C3.10). A runtime boundary that degrades a failing plugin to a disabled widget, and audit rows under `actor: plugin:<name>`, are open (C3.40); today a plugin's service calls are audited under the actor who triggered them.
|
|
2212
|
+
5. **No sandbox.** Running plugin code out of process, or in a sandbox that limits what it can reach, is deferred to v2 (C3.43, §43.18, owner decision 2026-11-05). It is a research problem for in-process JavaScript, so until it lands, install only plugins whose source you trust.
|
|
2149
2213
|
|
|
2150
2214
|
**Licensing policy (stated up front to avoid ambiguity):**
|
|
2151
2215
|
- **In-process plugins** may use any license compatible with their use of Apache-2.0 Freeholder APIs, including commercial terms. The registry requires a valid declared SPDX expression and preserves applicable Freeholder notices when code is copied or redistributed.
|
|
@@ -2372,7 +2436,7 @@ One block editor for **everything with a public face** — pages, posts, email t
|
|
|
2372
2436
|
|
|
2373
2437
|
**Structure is data; code is vocabulary.** The governing rule of the whole editing surface: rearranging the site — any page, the chrome around it, the look of it — is a database write, live on next request, never a build. Only extending the *vocabulary* (a new block type, a new behavior) is code, which arrives via plugin and its rebuild-on-install. There is no build step between an owner and their site.
|
|
2374
2438
|
|
|
2375
|
-
- **Block library v1:** text, heading, image (auto alt-text suggestion), gallery embed, video, button/CTA, columns, divider, FAQ (emits FAQPage schema), testimonial (pulls from reviews), product/service card (live from catalog), booking widget, form embed, quote-request, map (from locations), social embed, share block (§34), tip/support (pay-what-you-want with preset amounts), paywall gate (wraps any blocks behind a one-time unlock or subscription — server-rendered teaser, gated content never present in the HTML), ad slot (names an `AdSlot`; reserves its declared size at every breakpoint so nothing shifts when a creative arrives), custom HTML (admin-only permission).
|
|
2439
|
+
- **Block library v1:** text, heading, image (auto alt-text suggestion), gallery embed, video, button/CTA, columns, divider, FAQ (emits FAQPage schema), testimonial (pulls from reviews), product/service card (live from catalog), booking widget, form embed, quote-request, map (from locations), social embed, share block (§34), link-in-bio profile (ordered, hideable, scheduled smart links; C9.39), tip/support (pay-what-you-want with preset amounts), paywall gate (wraps any blocks behind a one-time unlock or subscription — server-rendered teaser, gated content never present in the HTML), ad slot (names an `AdSlot`; reserves its declared size at every breakpoint so nothing shifts when a creative arrives), custom HTML (admin-only permission).
|
|
2376
2440
|
- **Editing model:** drag to reorder, slash-command insertion, inline editing, autosave with visible version history and one-click restore (`ContentRevision` rows — normalized, in the database, per the mandate). Live responsive preview (desktop/mobile) and — for emails — inbox preview with the test-send button adjacent.
|
|
2377
2441
|
- **Templates & sections:** any block arrangement can be saved as a reusable Section (synced or detached copies), and full-page templates ship per business preset. Plugins register new block types through the manifest (§24) and they appear in the palette with zero editor changes.
|
|
2378
2442
|
- **Site chrome is Sections:** the header, footer, nav, and announcement bar are synced Sections — block trees in the database, edited in the same editor, server-rendered on every page. Menus are rows, not JSX. `app/(public)/layout.tsx` is a thin shell that renders the chrome Sections; it contains no hardcoded site structure.
|
|
@@ -2536,11 +2600,11 @@ the native store — not an ongoing dependency.
|
|
|
2536
2600
|
(§43.18, owner decision 2026-09-27); its adapter code remains in-tree as
|
|
2537
2601
|
working optional code.
|
|
2538
2602
|
- **Voice and video** (calls, video rooms, recordings, transcripts) through
|
|
2539
|
-
provider adapters
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2603
|
+
interchangeable provider adapters, none preselected (owner decision
|
|
2604
|
+
2026-10-22): Daily (hosted rooms, recordings, transcripts) and Paradise
|
|
2605
|
+
Comms, Paradise Modern's hosted relay (rooms, credentials and recordings
|
|
2606
|
+
per `/api/integration/capabilities`; transcripts unavailable until that
|
|
2607
|
+
provider ships them; provider erasure via its recording-delete API). Core owns the
|
|
2544
2608
|
conversation and the timeline; a provider's SDK, its compliance posture
|
|
2545
2609
|
and its pricing stay behind a plugin boundary (§4.14).
|
|
2546
2610
|
|
|
@@ -2614,7 +2678,7 @@ Every accepted change is already audited with `actor = agent:<name>` (§4.8), an
|
|
|
2614
2678
|
|
|
2615
2679
|
`adapters/agent/` — a family distinct from `adapters/ai` (§12), because these are different jobs with different risk: `ai` grounds answers and drafts translations; `agent` writes changes.
|
|
2616
2680
|
|
|
2617
|
-
**Default: `
|
|
2681
|
+
**Default: `none`.** The builder is off until a site owner chooses who runs it. Whoever deploys this repository sets `adapters.agent` in `freeholder.config.ts` (or `FREEHOLDER_AGENT`) to whatever they run: `gateway` — any OpenAI-compatible endpoint, hosted or self-hosted, named by `AGENT_GATEWAY_URL`, `AGENT_GATEWAY_API_KEY` and `AGENT_GATEWAY_MODEL`; `paradise` — Paradise Modern's hosted gateway, one optional provider (`PARADISEMODERN_API_KEY`; the older name `pm_brain` remains an accepted alias); or `none`, which removes the builder entirely. A platform that hardcodes its owner's choice of intelligence has not understood §1. (Owner decision 2026-10-22: provider choices carry neutral names.)
|
|
2618
2682
|
|
|
2619
2683
|
### The envelope
|
|
2620
2684
|
|
|
@@ -2785,10 +2849,8 @@ oversight and invites somebody to build it badly.
|
|
|
2785
2849
|
- **Serial-number and lot tracking, warehouse bin logic, wave picking.** The
|
|
2786
2850
|
inventory ledger is built so these *can* land later; a one-person business
|
|
2787
2851
|
does not need them and their weight would be felt by everyone.
|
|
2788
|
-
- **
|
|
2789
|
-
-
|
|
2790
|
-
its obligations are; calls mean a vendor SDK and a vendor's compliance
|
|
2791
|
-
posture, so they arrive as plugins attaching to the same conversation.
|
|
2852
|
+
- **Hosting many unrelated sites in one deployment** (§2). One deploy is one site. That site may have any number of members (§44).
|
|
2853
|
+
- ~~**Voice and video calling.**~~ Superseded 2026-10-14: private member-to-member calls are WebRTC in core (§44.7).
|
|
2792
2854
|
- **Multi-level referral structures.** One hop, enforced by the absence of a
|
|
2793
2855
|
parent link on `AffiliateCode` (§4.13) rather than by policy.
|
|
2794
2856
|
- **Anything that makes the owner's data someone else's product** (§36's
|
|
@@ -2886,7 +2948,10 @@ it cannot know:
|
|
|
2886
2948
|
1. **Verify** the signature, provenance and digest of the target image.
|
|
2887
2949
|
2. **Compatibility.** Every installed plugin declares `freeholder: "^1.4"`. A
|
|
2888
2950
|
target outside any installed plugin's range stops here and *names the
|
|
2889
|
-
plugin*, rather than upgrading and breaking the site.
|
|
2951
|
+
plugin*, rather than upgrading and breaking the site. The range names
|
|
2952
|
+
platform versions, the same value boot and install check. First-party
|
|
2953
|
+
plugins declare the current major and minor (`^0.2.0` for 0.2.x), and
|
|
2954
|
+
release tooling refuses a version bump that leaves one behind.
|
|
2890
2955
|
3. **Migration dry run against a shadow database.** Clone the schema into a
|
|
2891
2956
|
temporary database, run the target's migrations there, and report. This is
|
|
2892
2957
|
the highest-value check in the system: it turns "the migration might fail at
|
|
@@ -3467,17 +3532,17 @@ what is true now and what remains.
|
|
|
3467
3532
|
|
|
3468
3533
|
| Field | Value |
|
|
3469
3534
|
|---|---|
|
|
3470
|
-
| Last reconciled | 2026-10-
|
|
3535
|
+
| Last reconciled | 2026-10-14 |
|
|
3471
3536
|
| Evidence snapshot | Owner/agent launch acceptance, 2026-10-06: actual Chromium WebAuthn, recovery download, passwordless login, scoped MCP publishing/refusal and named-agent audit in `tests/browser/agent-launch.spec.ts`; isolated-database auth/key checks, live SDK verification and seven packed-package consumer checks passed. Actual Replit/Lovable account launches remain C3.28. Historical snapshot: on `main` at `3e0af2f` after #397 (§§1–42 claim→evidence map, 118 claims: 108 evidenced / 10 struck, C11.15), #396 (F01–F12 matrix, 286 rows, C0.11/C11.09), #395 (C11.14 trash-every-row), #394 (C3.13 software remainder), #393 (C11.12 Arabic RTL), #385 (mobile→v2 deferral, §43.18, owner decision 2026-09-15), #382 (real queue dispatch) and #381 (note/task trash); dependabot #373–#380 and #83 merged, #109 closed (TS major = deliberate manual upgrade). Digests: `deploy/release-notes-2026-09-16.md`, `deploy/f-criteria-matrix.md`, `deploy/doc-claim-mapping.md`; session snapshot `SESSION_HANDOFF.md`. Full-suite verification: 3,655–3,657 tests passing, 17 deploy-recipe skips, one pre-existing `tests/modules/funnel.test.ts` isolation flake — recorded in the matrix and mapping headers. The 2026-09-04 completion-integrity pass at `8516f45` still stands for the production-boundary, package, webhook, Doctor heartbeat and signed-release evidence below; checked claims that remain shallower than their wording stay reopened. C11.16 recon is `deploy/spec-reconciliation.md`. `HANDOFF.md`, `RESTART_HANDOFF.md` and earlier `SESSION_HANDOFF.md` snapshots are historical, not planning authorities. |
|
|
3472
3537
|
| Product owner | Tony Aly — [tonyaly.com](https://tonyaly.com) — `tony@paradisemodern.com` |
|
|
3473
3538
|
| Creator and original author | Tony Aly |
|
|
3474
3539
|
| Repository host | The `CampDenman` GitHub organization; it is not a separate rights holder |
|
|
3475
|
-
| Current focus |
|
|
3540
|
+
| Current focus | Members, social graph, messaging, WebRTC calls and marketplace (C12, §44, owner decision 2026-10-14); the newsletter sending journey closed 2026-10-17 (live inbox placement remains owner acceptance; see Remaining open); card-required membership trials closed 2026-10-17 (live settlement remains C11.05); actual Replit and Lovable account launches with the owner (C3.28); C11.16 spec reconciliation; C11.17 remains unsigned (the world-class visual editor closed 2026-09-30 — see "Remaining open") |
|
|
3476
3541
|
| Completion rule | Every unchecked item in C0–C11, except the items deferred to v2 in §43.18, is checked and the final C11.17 gate passes |
|
|
3477
3542
|
| Completion record | **Unsigned.** Prepared 2026-09-13. This is not DONE and does not claim it. |
|
|
3478
3543
|
| Record date | 2026-09-13 |
|
|
3479
3544
|
| Record HEAD | This change (parent `2b14cbea6e36f974d97a7cd87e64cbaf3c9c59af`). Record the merge commit SHA when signing. |
|
|
3480
|
-
| Remaining open | Customer-facing acceptance gaps identified 2026-10-07:
|
|
3545
|
+
| Remaining open | Plugin trust gaps recorded 2026-11-05, when §26 was corrected to match the code: runtime enforcement of declared plugin permissions with install consent and plugin audit (C3.40), the `network:external` egress wrapper (C3.41) and publisher Ed25519 signatures for plugins and registry indexes (C3.42). Plugin isolation or sandboxing (C3.43) is deferred to v2 (§43.18, owner decision 2026-11-05), not remaining. Customer-facing acceptance gaps identified 2026-10-07: C9.37 closed 2026-10-17 — the newsletter sending journey (readiness, verified-sender guidance, consent-aware audience selection, test-send, scheduling, per-recipient outcomes, archive and subscribe). SMTP and HTTP doubles prove the behavior; provider credentials and live inbox placement remain the owner's acceptance. C9.38 closed 2026-10-17 — a card-required trial stays paused with no access until a saved card exists. The adapter double proves that path; live settlement remains C11.05. C2.26, C6.19 and C8.17 closed 2026-10-14. Actual new Replit and Lovable launch acceptance with the owner (C3.28). Owner passkey/MCP browser acceptance (C1.39) and private launch tooling/package acceptance (C3.27) closed 2026-10-06; see the evidence under each item. §43.2's F01–F12 row applies per item. C2.25 closed 2026-09-30 — inline editing, drag-and-drop and store-section composition (slices A–C, #450/#452/#455) plus the canvas picker's upload and crop/focal point (annotation under the item). C6.11 closed 2026-10-17 — paid event admission on the invoice spine: held seats, settlement, expiry sweep, refund/void cascade, paid check-in and the public registration form (annotation under the item). Live settlement (C11.05). Tier-1 restore with real object bytes and candidate rollback (C11.08). Independent security review (C11.10). C9.39 link in bio: hosted acceptance of `/links`, a phone following a link, and that click in the admin report. C11.16 spec reconciliation. C11.17 itself. Mobile app acceptance is deferred to v2 (§43.18, owner decision 2026-09-15), not remaining; print-on-demand is likewise deferred to v2 (§43.18, owner decision 2026-09-27). C3.24, C3.25 and C3.26 closed 2026-09-29 — the capability mapping published and both fix-now gaps closed by the storefront slices and editor blocks (#448–#453), the two parity gaps closed on the existing commerce spine, and world-class merchandising evidenced end to end (annotations under the items; `deploy/c324-storefront-parity-2026-09-29.md`). C3.13 closed 2026-09-28 by the live Paradise Comms acceptance run (`deploy/c313-live-acceptance-2026-09-28.log`; annotation under the item). C11.08 was recorded closed 2026-09-28, then reopened 2026-10-05 because the drill had no source object bytes (`deploy/stable-acceptance-2026-10-05.md`; annotation under the item). C11.11 closed 2026-09-28 on the 2026-09-27 reference-target acceptance run that passed all thirteen §15.1 budgets (`deploy/perf-reference-run-2026-09-27.log`; summary in `deploy/performance-measurements.md`), alongside this reconciliation-table re-run and the gate's re-aiming. C11.15 closed 2026-09-16 by `deploy/doc-claim-mapping.md` (the §§1–42 claim→evidence map, carrying the F-audit annotation rewrite to completion). |
|
|
3481
3546
|
| Clean-room suite | `pnpm plan:check`; `pnpm gates`; `pnpm test`; `pnpm test:journeys`; `pnpm test:a11y`; `pnpm ownership:drill`; `bash scripts/upgrade-gate.sh`. Commands and what this worktree can run: `deploy/spec-reconciliation.md`. |
|
|
3482
3547
|
| Owner signature | _unsigned — Tony Aly signs here after a clean-room run with zero unexplained failures_ |
|
|
3483
3548
|
|
|
@@ -3493,9 +3558,10 @@ DONE requires the plugin and its integration seam, not that capability in
|
|
|
3493
3558
|
core. By owner decision dated 2026-09-15, exactly seven mobile-app checklist
|
|
3494
3559
|
items — C10.17, C10.18, C10.25, C10.26, C10.27, C10.28 and C10.30 — are
|
|
3495
3560
|
deferred to v2 under §43.18; by owner decision dated 2026-09-27,
|
|
3496
|
-
print-on-demand is deferred to v2 under §43.18 alongside them
|
|
3497
|
-
|
|
3498
|
-
|
|
3561
|
+
print-on-demand is deferred to v2 under §43.18 alongside them; by owner
|
|
3562
|
+
decision dated 2026-11-05, plugin isolation or sandboxing (C3.43) is deferred
|
|
3563
|
+
to v2 under §43.18 as well. v1's DONE excludes those mobile items, the
|
|
3564
|
+
print-on-demand clause and C3.43, and nothing else.
|
|
3499
3565
|
|
|
3500
3566
|
**What is not a completion criterion.** A public launch, marketing site,
|
|
3501
3567
|
stars, downloads, design partners, revenue, and a release announcement are not
|
|
@@ -3599,7 +3665,8 @@ Work proceeds in this order unless this section is changed first:
|
|
|
3599
3665
|
`C0 truth → C1 core safety → C2 editor → C3 living contract/ecosystem → C4
|
|
3600
3666
|
agents/connections → C5 money → C6 scheduling/services → C7 CRM/comms → C8
|
|
3601
3667
|
content/portal → C9 growth/revenue depth → C10 ownership/update/mobile → C11
|
|
3602
|
-
perfection proof`
|
|
3668
|
+
perfection proof`, with `C12 members/social/marketplace` (§44) proceeding alongside
|
|
3669
|
+
once C1 identity holds.
|
|
3603
3670
|
|
|
3604
3671
|
Finishing a later workstream is allowed when it does not create a second path
|
|
3605
3672
|
or cement a missing upstream contract. The active workstream remains the first
|
|
@@ -3898,6 +3965,13 @@ reading chat logs.
|
|
|
3898
3965
|
`tests/core/analytics-governance-migration.test.ts`; 1,040-test full suite;
|
|
3899
3966
|
changeset `analytics-governance.md`; operator guide
|
|
3900
3967
|
`deploy/analytics-governance.md` **F04** `/admin/traffic` consent and retention. **F05** `analytics.track`/`identify`/`overview`/`exportAnonymized`/`webVitals` at `/api/v1/analytics.*`, MCP `analytics_*`; public beacons are `/api/analytics/consent` and `/api/analytics/vitals`. **F07** `tests/core/analytics.test.ts` covers permission, refusal and recovery. **F09** operator runbook `deploy/analytics-governance.md`. **F12** `tests/core/analytics.test.ts` is the composition proof.)
|
|
3968
|
+
Audit follow-up 2026-10-22: the traffic chart (`analytics.daily`) and the
|
|
3969
|
+
anonymized export bucketed days with `at time zone` in SQL. They now group
|
|
3970
|
+
by day boundaries computed in Node (§4.9: local-time math lives in Node; SQL
|
|
3971
|
+
sees UTC instants), and refuse a zone `Intl` does not know. Regression:
|
|
3972
|
+
"days are the business's days" in `tests/core/analytics.test.ts` (a 22:00Z
|
|
3973
|
+
view in a `+05:00` zone counts on the next local day in both); changeset
|
|
3974
|
+
`single-source-local-time.md`.
|
|
3901
3975
|
- [x] **C1.19** Add a Content Security Policy compatible with editor preview,
|
|
3902
3976
|
uploads and explicitly consented third-party creatives; report violations.
|
|
3903
3977
|
(per-request nonce and strict-dynamic document policy; same-origin preview
|
|
@@ -4003,6 +4077,11 @@ reading chat logs.
|
|
|
4003
4077
|
default, opt-out, explicit production request, pristine guard and restart
|
|
4004
4078
|
idempotence; 88-file/1,085-test Vitest suite; production build; changeset
|
|
4005
4079
|
`seeded-development-home.md` **F04** setup wizard demo install, not a new admin screen. **F05** `demo.install` and `seed.installPreset` at `/api/v1/demo.install` and `/api/v1/seed.installPreset`, MCP `demo_install`/`seed_installPreset`. **F07** service permission checks and destructive confirmation on the caller. **F09** N/A as C11.14 — this item uses the shared audit/outbox; product-wide export/restore/retention/erasure proof is still open. **F12** changeset `seeded-development-home.md` landed with the rest of the spine.)
|
|
4080
|
+
Audit follow-up 2026-10-22: the fresh demo now also installs a sellable
|
|
4081
|
+
shop, bookable services and upcoming events through the owner's services,
|
|
4082
|
+
and `FREEHOLDER_SEED_DEMO=busy` adds the six-month sample business (see
|
|
4083
|
+
C1.38); `tests/core/seed-demo.test.ts` covers the larger published set;
|
|
4084
|
+
changeset `busy-demo-business.md`.
|
|
4006
4085
|
- [x] **C1.25** Build resumable, role/capability-derived onboarding for owner,
|
|
4007
4086
|
administrator, editor, bookkeeper, service provider and customer, with
|
|
4008
4087
|
first-win tasks, contextual relaunch, skip/reset, progress and forbidden-
|
|
@@ -4165,6 +4244,315 @@ project without silent telemetry, and ready to carry money.
|
|
|
4165
4244
|
|
|
4166
4245
|
- [x] **C1.38** Provide a public, disposable shared playground on a separate database and network: restricted visitor sessions, prominent reset/privacy notice, blocked privileged operations and external delivery, hourly reset, bounded resources, and a live demo entry link. Prove content edits, denied sensitive actions, reset recovery, and separation from the production instance.
|
|
4167
4246
|
(Checked 2026-09-27. The isolated playground base (own compose project, database container and internal-only networks; synthetic visitor entry; mutation allow-list policy) is hardened to the full contract. **Restricted visitor sessions:** `src/core/demo/playground.ts` issues sessions only for the synthetic, passwordless `visitor@playground.invalid` principal in the grant-less `playground` role with a one-hour expiry; `tests/core/playground.test.ts` proves the resolved session's grants stay inside `PLAYGROUND_MANAGE`/`PLAYGROUND_VIEW` with manage only on content modules, that no credential flow (`auth.login`) can start from it, and that role creation, staff invitations, host updates, mail test sends, uploads, SMS, payment and settings mutations are refused *server-side* with `permission` — the refusal lives in `authorizeInput` (`src/core/service.ts`), so the admin UI, REST API and MCP hit the same wall, and the test calls the services directly as the playground principal. **Reset/privacy notice:** the root-layout banner (`app/layout.tsx`, key `playground.banner`) rides every playground surface and the `/playground` entry page (`app/playground/page.tsx`, key `playground.limits`) states the hourly reset and the no-personal-information rule, in all four locale catalogs; the demo also serves `Disallow: /` robots. **Blocked external delivery:** `playgroundBlocksExternalDelivery` (`src/core/demo/playground-policy.ts`) fails closed at the three live choke points — `deliverQueuedMail` (`src/core/mail/service.ts`), `messaging.sendSms` (`src/core/messaging/sms.ts`) and the webhook sweep (`src/core/webhooks/deliver.ts`) — so background jobs running as `system` (reminders, compliance replies, queued webhooks) cannot send mail/SMS/webhooks even though the mutation allow-list never covered them; the same test proves each refusal carries the playground reason while a playground-off control takes the ordinary path, and the container gate proves blocked egress on the built image. **Hourly reset:** `deploy/docker-selfhost/playground/reset.sh` recreates the disposable project and is driven hourly by `freeholder-playground-reset.timer`; `tests/core/playground.test.ts` ("playground separation and reset recovery") simulates that cycle (fresh database + migrate + the same boot phases `instrumentation.node.ts` runs) and proves reset recovery: the old visitor session no longer validates, visitor pages are gone, the sample site is reinstalled to the same page count, and a new visitor can edit again. **Bounded resources:** uploads are refused outright (allow-list), all visitor mutations share a 300-per-minute ceiling (`enforceRateLimit`, `src/core/service.ts`), and per-surface row caps (`PLAYGROUND_ROW_CAPS` + `enforcePlaygroundRowCap`) bound pages, sections, forms, contacts, products, notes and tasks; the exact bound (299 further mutations after entry, then refusal; contacts capped at the declared limit while pages still accept edits) is asserted in `tests/core/playground.test.ts`. **Separation:** the playground is its own compose project with its own database container, tmpfs volumes and internal-only networks (`deploy/docker-selfhost/playground/compose.yml`), and the same file proves it on a live cluster: a production-shaped database and a playground database on distinct `DATABASE_URL`s, the playground flag failing closed ("disposable database") against real accounts, the synthetic pair the only users the playground database ever holds, and visitor sessions/content never appearing in the production database. **Live demo entry link:** `FREEHOLDER_PLAYGROUND_URL` renders the "Try the live demo" banner link on a main site (`app/layout.tsx`). **Browser proof:** `tests/browser/playground.spec.ts` (config `playwright.playground.config.ts`, `pnpm test:playground`) drives Chromium through entry, the notice, a real editor edit + publish, three privileged API denials as the visitor (staff invitation, mail test send, upload staging — each 403 with the playground message), the reset (session dead → `/playground` redirect, visitor page 404, reseeded sample back, re-entry and editing restored); CI's `scripts/playground-gate.sh` proves boot, sign-in, editor render and blocked egress on the built container. **F04** entry page + root banner: `app/playground/page.tsx`, `app/layout.tsx`. **F05** one refusal across every projection via the service choke point `src/core/service.ts`; container entry exercised over HTTP by `scripts/playground-gate.sh`. **F07** threat model and bounds: `src/core/demo/playground-policy.ts`, `tests/core/playground.test.ts`. **F09** hourly reset job `deploy/docker-selfhost/playground/reset.sh` + `freeholder-playground-reset.timer`, recovery proof in the same file. **F12** the browser journey composes entry → edit → publish → denial → reset → re-entry: `tests/browser/playground.spec.ts`.)
|
|
4247
|
+
Audit follow-up 2026-10-22 (hands-on audit of demo.freeholder.ai): the
|
|
4248
|
+
playground was empty where evaluators look and its menu read "Locations".
|
|
4249
|
+
**Menu:** `cms.ensureDefaults` moved a header menu into a nav section that
|
|
4250
|
+
already held the platform's `/locations` link and discarded the header's
|
|
4251
|
+
links — on any site, not only the demo; it now merges them
|
|
4252
|
+
(`mergeNavLinks`, `src/modules/cms/chrome-nav.ts`), and the demo seeds its
|
|
4253
|
+
menu into the Navigation section. **Shop/booking/events:** the plain demo
|
|
4254
|
+
now walks the owner path end to end through services
|
|
4255
|
+
(`src/modules/seed/business.ts`): BC tax starter with collection active,
|
|
4256
|
+
standard category, print-size variants, CAD retail price list, stock,
|
|
4257
|
+
hero images, two collections, three service products with offerings, a
|
|
4258
|
+
studio calendar with weekly hours and a public booking audience, and
|
|
4259
|
+
three upcoming events (one free, two paid); product pages now render the
|
|
4260
|
+
product's picture and description (`productDetail`, public
|
|
4261
|
+
`catalog.productHeroImage`). **Busy business:** `demo.installBusy`
|
|
4262
|
+
(`src/modules/seed/busy.ts`, `seed/demo/busy/*`) adds six months of
|
|
4263
|
+
deterministic, clock-relative sample business in one bulk transaction —
|
|
4264
|
+
220 @example.com contacts (fr-CA included) with notes, tasks, look-alike
|
|
4265
|
+
duplicates and timelines; ~85 invoices across statuses with balanced
|
|
4266
|
+
payments, refunds and plans; quotes, signed agreements, gift cards,
|
|
4267
|
+
coupons, subscriptions; ~130 bookings and past/upcoming event
|
|
4268
|
+
registrations; journal posts, galleries, reviews, sent newsletter issues
|
|
4269
|
+
with consented recipients, enquiries; inbox threads; ~20k first-party
|
|
4270
|
+
analytics events with seasonality; members, automations with runs and
|
|
4271
|
+
pending approvals; attributed audit history. On in the playground and
|
|
4272
|
+
with `FREEHOLDER_SEED_DEMO=busy`; plain development stays site-only.
|
|
4273
|
+
Measured locally: plain demo 13–41 s (image renditions dominate, now
|
|
4274
|
+
1200 px), busy layer ~2 s, database 55 MB. **Polish:** generated coastal
|
|
4275
|
+
illustrations replace the gradient placeholders (`seed/demo/illustrations.ts`,
|
|
4276
|
+
original, described alt text); titles no longer double the brand
|
|
4277
|
+
(`composeDocumentTitle`); `/book` and `/memberships` carry description,
|
|
4278
|
+
canonical and branded title (`app/(public)/utility-metadata.ts`); `/search`
|
|
4279
|
+
searches page titles/summaries via public `cms.searchPublishedPages`
|
|
4280
|
+
(never bodies); the share bar is off on the demo's non-content pages
|
|
4281
|
+
through owner share settings. Evidence: `tests/core/seed-demo-busy.test.ts`
|
|
4282
|
+
(determinism, unique lowercase emails, ledger balances, no double-booked
|
|
4283
|
+
calendars, seats within capacity, no future-dated history, consent before
|
|
4284
|
+
send, timing and size budget), `tests/core/seed-demo.test.ts`,
|
|
4285
|
+
`tests/core/cms-chrome.test.ts`, `tests/core/seo-surface.test.ts`,
|
|
4286
|
+
`tests/core/playground.test.ts`; changeset `busy-demo-business.md`. Open:
|
|
4287
|
+
the playground mutation allow-list and admin visibility (separate work)
|
|
4288
|
+
still refuse anonymous cart/checkout/booking and hide sales, inbox and
|
|
4289
|
+
calendar screens from the visitor; checkout's email proof cannot complete
|
|
4290
|
+
while playground mail is blocked.
|
|
4291
|
+
Review follow-up 2026-10-22: the nav merge keeps an owner-arranged order
|
|
4292
|
+
and appends new links (header links lead only over platform-added index
|
|
4293
|
+
links), de-duplicating on normalised hrefs; busy dates use the studio's
|
|
4294
|
+
zone (`studioTime`, DST-correct) and history never lands after the seed
|
|
4295
|
+
clock; a boot that stopped between the plain and busy installs finishes
|
|
4296
|
+
the busy layer on restart (demo business only); invoices are numbered once
|
|
4297
|
+
by issue date (`seed/demo/busy/ledger.ts`); the pending approvals quote
|
|
4298
|
+
real seeded overdue invoices; title de-duplication matches the brand as a
|
|
4299
|
+
whole word at the start or end; seeded future reminders stay unsent
|
|
4300
|
+
outside the playground. Tests now run `contacts.merge` and
|
|
4301
|
+
`invoicing.recordOfflinePayment` on seeded rows, seed under pinned Pacific
|
|
4302
|
+
evening and winter clocks, and hold the busy layer to 30 s and the
|
|
4303
|
+
database to 150 MB (`tests/core/seed-demo-busy.test.ts`, 20 tests;
|
|
4304
|
+
`seed-demo.test.ts` 17; `cms-chrome.test.ts` 7; `seo-surface.test.ts` 12).
|
|
4305
|
+
Capacity follow-up 2026-10-21 (demo.freeholder.ai shares production's
|
|
4306
|
+
4 GB / 2 vCPU droplet): the recipe had no restart policy, so an
|
|
4307
|
+
out-of-memory kill left the demo down until the next reset. It also had
|
|
4308
|
+
equal CPU priority with production, and Node sized the heap from the 768 MB
|
|
4309
|
+
cgroup, so a measured 48-connection burst peaked at 736 MB. Both
|
|
4310
|
+
playground containers now restart, carry `cpu_shares: 256`,
|
|
4311
|
+
`oom_score_adj: 1000` and no swap. The app has 896 MB with a fixed 384 MB
|
|
4312
|
+
old space; the live heap measured ~315 MB. The tmpfs-tuned database keeps
|
|
4313
|
+
512 MB. The same burst peaked at 649 MB. A database restart comes back empty
|
|
4314
|
+
from tmpfs. The app's health check is therefore a narrow schema probe,
|
|
4315
|
+
`/api/health/db` (`src/core/runtime/schema-probe.ts`: one `to_regclass`
|
|
4316
|
+
query, 3 s timeout). Readiness is not used because it also fails when a busy
|
|
4317
|
+
demo's job heartbeats are late. `freeholder-playground-heal.timer` runs
|
|
4318
|
+
`reset.sh --heal` every two minutes. It rebuilds when nothing serves, or
|
|
4319
|
+
after two consecutive failed probes. Without overlap room it never stops a
|
|
4320
|
+
playground that still answers HTTP unless its schema is missing. `FREEHOLDER_JOBS_POLL_SECONDS`
|
|
4321
|
+
(default unchanged) is 15 in the playground, cutting measured idle database
|
|
4322
|
+
transactions from ~70 to ~17 a second. `reset.sh` alternates two fixed
|
|
4323
|
+
projects, picking the old one by which app holds the proxy network: the
|
|
4324
|
+
fresh one boots privately and joins the proxy alias only once ready, then
|
|
4325
|
+
the old one stops. Until that hand-over any failure removes the fresh stack
|
|
4326
|
+
(an `EXIT` trap) and leaves the serving one alone. With less than
|
|
4327
|
+
`PLAYGROUND_OVERLAP_MIN_MB` available (default 2200: the second stack's
|
|
4328
|
+
1,408 MB of caps plus ~800 MB for production) it stops the old one first.
|
|
4329
|
+
The demo Caddy site compresses (45 KB home page to 8.5 KB), queues at 16
|
|
4330
|
+
upstream connections, allows 120 s for a response, retries for 20 s, and
|
|
4331
|
+
otherwise answers a plain 503 with `Retry-After`. In playground mode the proxy mints no
|
|
4332
|
+
analytics cookies, and only cookie-less, query-less GETs of CMS-rendered
|
|
4333
|
+
pages carry `public, s-maxage=10, stale-while-revalidate=30` for a CDN
|
|
4334
|
+
(`src/core/demo/playground-cache.ts`; every `app/` route root is listed and
|
|
4335
|
+
never shared). Behind a CDN, viewers of one cached copy share its CSP
|
|
4336
|
+
nonce for up to 40 s; query strings are never cached, so reflected markup
|
|
4337
|
+
cannot reach it. Per-request render cost is unchanged: ~27 anonymous and ~30
|
|
4338
|
+
admin renders a second per CPU, measured locally. Regressions:
|
|
4339
|
+
`tests/core/playground-cache.test.ts`, `tests/core/playground-reset.test.ts`
|
|
4340
|
+
(hand-over, failure clean-up and heal decisions against a stand-in
|
|
4341
|
+
`docker`), `tests/core/deploy-recipe.test.ts`,
|
|
4342
|
+
`tests/core/transactional-jobs.test.ts`. Changeset `playground-capacity.md`.
|
|
4343
|
+
Not verified on a Docker host: overlap, alias hand-over and heal ran
|
|
4344
|
+
against the stand-in `docker` only, and Caddy behaviour with Caddy 2.10.2 against a
|
|
4345
|
+
local app. Isolation from production's kernel, disk, Caddy and TLS still
|
|
4346
|
+
needs a CDN or a separate host.
|
|
4347
|
+
Audit follow-up 2026-10-22 (public demo): a hands-on audit of
|
|
4348
|
+
demo.freeholder.ai found the playground refusing its own public site. The
|
|
4349
|
+
allow-list covered only the visitor's editing verbs, so every anonymous
|
|
4350
|
+
public mutation (`forms.submit` on `/contact`, newsletter, event, cart,
|
|
4351
|
+
chat, share, popups, reviews) failed with the playground refusal, and
|
|
4352
|
+
`POST /api/analytics/vitals` answered 401 on every page. `PLAYGROUND_PUBLIC`
|
|
4353
|
+
now admits the public site's verbs under new `PLAYGROUND_ROW_CAPS`
|
|
4354
|
+
entries counted as growth past the post-seed baseline
|
|
4355
|
+
(`markPlaygroundBaseline`, once per reset database, so the seed never
|
|
4356
|
+
uses visitor headroom and a mid-hour restart never refunds it), a
|
|
4357
|
+
shared `contacts` cap (public verbs resolve contacts as the
|
|
4358
|
+
system), a per-client minute/hour budget spent before the shared ceiling
|
|
4359
|
+
(`anonymousClientKey`, only when a client address is known) and an 8 KB
|
|
4360
|
+
per-submission ceiling (256 KB on every install); `PLAYGROUND_PUBLIC_REFUSED` keeps credential flows (magic links,
|
|
4361
|
+
portal sign-in), payment-provider checkout, uploads, the model-backed
|
|
4362
|
+
assistant and visitor analytics refused with a stated reason, and a test
|
|
4363
|
+
fails on any public mutation in neither list. Transactional mail queues to
|
|
4364
|
+
a sink in the playground (`assertMailReady`/`sendMail`) and still fails
|
|
4365
|
+
closed in `deliverQueuedMail`; the vitals route answers 204 there, keeping
|
|
4366
|
+
"no visitor analytics". Public form actions no longer answer every
|
|
4367
|
+
refusal with "check the fields below" and an empty form: a coarse reason
|
|
4368
|
+
code (`src/core/http/public-form-return.ts`) separates answers to fix
|
|
4369
|
+
(marked per field from the form's own schema), wait, unavailable here and
|
|
4370
|
+
server fault, and the visitor's answers return in a two-minute httpOnly
|
|
4371
|
+
cookie read by the routing layer (forms, quote and chat blocks; reason
|
|
4372
|
+
codes also on newsletter, event and checkout). `PLAYGROUND_VIEW` now
|
|
4373
|
+
grants read access to the business modules (inbox, invoices/payments,
|
|
4374
|
+
scheduling, calendar, newsletters, galleries, quotes, assistant and the
|
|
4375
|
+
rest) while writes stay governed by the allow-list; in playground mode
|
|
4376
|
+
`requireStaffActor` opens a manage-only screen to a viewer and sends
|
|
4377
|
+
operator machinery to `/admin/unavailable`, which explains the area,
|
|
4378
|
+
instead of silently redirecting to the overview. The admin shell shows a
|
|
4379
|
+
read-only notice on every non-content screen and a fallback for refusals
|
|
4380
|
+
a screen did not render (adding an event), whose text comes from an
|
|
4381
|
+
httpOnly flash cookie the refusing action set, never from the URL; catalog refusals
|
|
4382
|
+
return to the posting screen (Promotions, not New product); collections
|
|
4383
|
+
treats a refused segment read as none (was a 500); settings explains
|
|
4384
|
+
modules a role cannot open; `/portal/login` has a title and explains the
|
|
4385
|
+
playground. Regressions: `tests/core/playground.test.ts` (public verbs
|
|
4386
|
+
pass signed out and as the visitor, mail fails closed, credential and
|
|
4387
|
+
checkout verbs refused, every public mutation classified, contact-form,
|
|
4388
|
+
contacts and submission-size caps, per-client budget, transactional sink
|
|
4389
|
+
versus an ordinary install's refusal, no secret-shaped field in any query
|
|
4390
|
+
the visitor may read, read-only screens),
|
|
4391
|
+
`tests/core/playground-feedback.test.ts` (reason codes, answer-cookie keys
|
|
4392
|
+
and size limit, read-once admin flash, posting-screen redirect,
|
|
4393
|
+
manage-to-view guard), `tests/browser/playground.spec.ts` (signed-out
|
|
4394
|
+
contact form, refusal keeps answers, vitals 204, portal title, admin tour
|
|
4395
|
+
without bounces or 500s). Changeset
|
|
4396
|
+
`playground-public-site-and-honest-refusals.md`. A local production
|
|
4397
|
+
build with `FREEHOLDER_PLAYGROUND=1` was checked by hand: every static
|
|
4398
|
+
admin route as the visitor answers without a 500 (translations 404s on a
|
|
4399
|
+
one-language site by design), and the contact form, newsletter, vitals,
|
|
4400
|
+
portal, Promotions and Events behaviours above were observed. The browser
|
|
4401
|
+
suite ran against `fh_playground_test` but the shared database was too
|
|
4402
|
+
slow for it to finish (entry step passed; the editor autosave and the
|
|
4403
|
+
reset hook timed out with every request answering 200), and the
|
|
4404
|
+
"separation and reset recovery" cases were blocked by a shared cluster
|
|
4405
|
+
stuck on `DROP DATABASE`; both need a clean run.
|
|
4406
|
+
Follow-up 2026-10-22 (playground checkout): an evaluator could fill a
|
|
4407
|
+
cart but "Place order" ended at `/checkout?error=playground`, because a
|
|
4408
|
+
signed-out checkout proves the email with a customer magic link and the
|
|
4409
|
+
playground refuses (and could never deliver) one. In playground mode only,
|
|
4410
|
+
`catalog.shopperCheckout` now accepts an address on a reserved,
|
|
4411
|
+
undeliverable domain (`isFictionalEmail`: example.com/.net/.org and
|
|
4412
|
+
`.example`, `.test`, `.invalid`, `.localhost`, RFC 2606/6761) as its own
|
|
4413
|
+
proof, resolves the contact through `contacts.resolve` and places the
|
|
4414
|
+
order; a real-looking address is refused with a "use a made-up
|
|
4415
|
+
@example.com address" message and creates no contact or order. Row caps
|
|
4416
|
+
and the per-client budget still apply (the checkout action now passes the
|
|
4417
|
+
client address). Ordinary installs keep the proof unchanged. Regressions:
|
|
4418
|
+
`tests/core/storefront-commerce.test.ts` (playground order placed for a
|
|
4419
|
+
reserved address with no magic link; real-looking address refused with
|
|
4420
|
+
nothing written; outside the playground even a reserved address gets
|
|
4421
|
+
`verification_sent` and no order; the reserved-domain predicate). Walked
|
|
4422
|
+
on a local production playground: product → cart (CA$28.00) → checkout
|
|
4423
|
+
refusal for a real-looking address → order confirmation → invoice with
|
|
4424
|
+
the offline payment option. Changeset `playground-checkout-fictional-email.md`.
|
|
4425
|
+
Follow-up 2026-10-23 (demo booking and admin polish, live audit of
|
|
4426
|
+
demo.freeholder.ai): /book listed times as plain text and its only action
|
|
4427
|
+
was "Verify your email to reserve a time", which led to a portal sign-in the
|
|
4428
|
+
playground cannot send. Times are now links (signed out) or per-time reserve
|
|
4429
|
+
forms (verified); a signed-out visitor chooses a time first and the chosen
|
|
4430
|
+
time rides through `/portal/login?returnTo=` (C6.19's verified identity is
|
|
4431
|
+
unchanged, verification simply follows the choice). In playground mode only,
|
|
4432
|
+
`catalog.bookService` (now `public`, classified in `PLAYGROUND_PUBLIC` with a
|
|
4433
|
+
`bookings` row cap) accepts a reserved address (`isFictionalEmail`) as its
|
|
4434
|
+
own proof, resolves the contact through `contacts.resolve`, and returns the
|
|
4435
|
+
booking's `manageToken`, so the visitor lands on `/portal/appointments/<token>`;
|
|
4436
|
+
a real-looking address is refused with nothing written; outside the
|
|
4437
|
+
playground an anonymous caller is still refused and a typed address is
|
|
4438
|
+
ignored. Slots show the calendar name only when several calendars have
|
|
4439
|
+
openings, and zones read as `zoneLabel` ("Pacific Time (Vancouver)", the
|
|
4440
|
+
generic name since 2026-10-23) on /book and the appointment page. The demo inbox was empty
|
|
4441
|
+
for visitors because the playground role lacked the `conversations` view
|
|
4442
|
+
grant while §4.14 already threads form enquiries into conversations; the
|
|
4443
|
+
grant is added. Consequence, accepted: every demo visitor shares one
|
|
4444
|
+
playground role, so visitors can read each other's demo enquiries in that
|
|
4445
|
+
inbox. The playground holds fictional data only, the public form and
|
|
4446
|
+
booking pages say to use made-up details, and the hourly reset wipes it.
|
|
4447
|
+
"What changed" now maps visitor/system actions, including provider-recorded
|
|
4448
|
+
payments, refunds, payouts and disputes, to owner locale strings
|
|
4449
|
+
(`OWNER_ACTIVITY_LABELS`); only a named list of visitor plumbing
|
|
4450
|
+
(`OWNER_HIDDEN_ACTIONS`) moves to "Include background work", and any other
|
|
4451
|
+
unmapped action still shows with its service summary. Guest bookings are
|
|
4452
|
+
rate-limited per client network (`anonymousClientKey`), not per typed
|
|
4453
|
+
address; a tampered `calendar`/`at` on /book is ignored (`chosenSlot`); `members.linkAbuseReports` gained `auditWhen`.
|
|
4454
|
+
A first-win card whose steps a role cannot all see shows
|
|
4455
|
+
`guidance.flow.partial.description` instead of describing hidden steps.
|
|
4456
|
+
Regressions: `tests/modules/customer-surfaces.test.ts` (playground guest
|
|
4457
|
+
booking, refusal, retry, token confirmation, row cap, per-client limit,
|
|
4458
|
+
tampered chosen time; production still refuses),
|
|
4459
|
+
`tests/core/playground.test.ts` (enquiry visible in the visitor's inbox),
|
|
4460
|
+
`tests/core/audit-labels.test.ts`, `tests/core/i18n.test.ts` (`zoneLabel`),
|
|
4461
|
+
`tests/core/guidance-definitions.test.ts`, `tests/modules/member-abuse.test.ts`;
|
|
4462
|
+
`tests/browser/customer-surfaces.spec.ts` updated for choose-then-verify.
|
|
4463
|
+
Editor presence and edit-lease heartbeats joined `HOUSEKEEPING_ACTIONS`.
|
|
4464
|
+
Hydration error #418, reproduced in a local playground dev boot: on
|
|
4465
|
+
/admin/voice-video the verify-connection form was nested inside the
|
|
4466
|
+
settings form (moved after it); in the page editor the preview frame's
|
|
4467
|
+
`fhReorderLevel` re-appended already-ordered blocks behind React's
|
|
4468
|
+
boundary markers when the editor's first draft arrived before hydration
|
|
4469
|
+
(now a no-op when the order matches, and an in-place re-sort otherwise;
|
|
4470
|
+
`tests/core/editor-canvas-drag.test.ts`). Walked on a local playground
|
|
4471
|
+
boot: /book time buttons → chosen time → real-looking address refused →
|
|
4472
|
+
`ada@example.com` → appointment page "Pacific Daylight Time (Vancouver)";
|
|
4473
|
+
contact enquiry visible in the visitor's inbox; "What changed" reads "A
|
|
4474
|
+
visitor sent a form"; no hydration errors on either page after the fixes.
|
|
4475
|
+
Changeset `demo-booking-and-admin-polish.md`.
|
|
4476
|
+
Pre-launch check 2026-10-23 (demo.freeholder.ai, final pass): the default
|
|
4477
|
+
"What changed" still printed service summaries ("Allocate a gapless number
|
|
4478
|
+
and issue an immutable draft invoice.") for unmapped actions. The rule is
|
|
4479
|
+
now that an owner never sees a summary there: invoices drafted, issued,
|
|
4480
|
+
sent, viewed and voided, messages received and replied, staff-side
|
|
4481
|
+
bookings made, moved and updated, order cancel/ship/deliver/return,
|
|
4482
|
+
offline and in-person payments, refunds, provider payouts, form review and
|
|
4483
|
+
event check-in/cancel map to owner lines in all four locales; anything
|
|
4484
|
+
still unmapped reads "Updated {area}" (a teammate), "An API key or agent
|
|
4485
|
+
updated {area}", "A visitor updated {area}" or, for the platform's own
|
|
4486
|
+
work only, "Freeholder updated {area}", from `OWNER_ACTIVITY_AREAS`,
|
|
4487
|
+
falling back to "your site". Money, sign-in, API key, role, grant and
|
|
4488
|
+
secret actions never take that generic line: `needsOwnLine` names the
|
|
4489
|
+
classes and every registered mutation in them has its own label (credit
|
|
4490
|
+
notes, price lists and rules, refunds cancelled, payment attempts,
|
|
4491
|
+
balances, payout details, disputes, sign-in and factor changes, keys,
|
|
4492
|
+
roles, agent and contact grants, and — after re-review — subscriptions,
|
|
4493
|
+
invitations, webhooks, OAuth account connections, credential rotation,
|
|
4494
|
+
tax settings, registrations and exemptions, revoked links and access,
|
|
4495
|
+
quote send/convert and contract void). Payment, refund, dispute and payout rows
|
|
4496
|
+
stay visible by default; the summary stays in the full log. Demo copy: pickup
|
|
4497
|
+
is "at the Courtenay studio" (the studio's address); the order
|
|
4498
|
+
confirmation replaces "Sign in to track this order in your portal" with a
|
|
4499
|
+
note that customer sign-in is off in the playground. Regressions:
|
|
4500
|
+
`tests/core/audit-labels.test.ts` (every registered service, in every
|
|
4501
|
+
locale and for system, visitor and teammate actors, is hidden or gets a
|
|
4502
|
+
translated line that is neither its summary nor its code name; every
|
|
4503
|
+
`needsOwnLine` mutation has its own label; generic lines name the actor
|
|
4504
|
+
kind),
|
|
4505
|
+
`tests/core/seed-demo-busy.test.ts` (pickup names the location's city),
|
|
4506
|
+
`tests/core/cart-storefront.test.ts` (playground confirmation). Changeset
|
|
4507
|
+
`demo-prelaunch-polish.md`.
|
|
4508
|
+
Follow-up 2026-10-23 (seed noise in "What changed"): right after an hourly
|
|
4509
|
+
reset the default feed was about fifteen identical "Freeholder updated
|
|
4510
|
+
pages · The platform" rows. Traced locally by seeding the way the
|
|
4511
|
+
playground boots (`seedDemoIfRequested`, busy layer): the install wrote
|
|
4512
|
+
300 `system` audit rows, 87 of them `cms.*` (create/attach layout/publish
|
|
4513
|
+
for every page, the events' public pages, defaults and templates), all
|
|
4514
|
+
stamped the boot minute, and `include: "people"` filtered only
|
|
4515
|
+
`HOUSEKEEPING_ACTIONS` by name. Nothing extra runs at the swap:
|
|
4516
|
+
`reset.sh` boots, seeds and goes live within minutes, and the seeded
|
|
4517
|
+
history sits at least an hour before the seed by design (`clampPast`,
|
|
4518
|
+
notifications, analytics), which is the hour between receipts and the
|
|
4519
|
+
page rows the live demo showed — not a time-zone fault. Seeding now runs
|
|
4520
|
+
under `runAsSeed` (an `AsyncLocalStorage` scope in `src/core/service.ts`):
|
|
4521
|
+
audit rows that system actors write inside it, including composed calls,
|
|
4522
|
+
`callAsSystem` and the listeners dispatched after commit, are recorded as
|
|
4523
|
+
`system:seed` (`SEED_AUDIT_ACTOR`). Still recorded, so the full log stays
|
|
4524
|
+
honest; `people` excludes them; authorization is unchanged because the
|
|
4525
|
+
actor is still `{ kind: "system" }`. `actorLabel` reads it as "Site
|
|
4526
|
+
setup", and the owner line, page history and invitation/contact labels
|
|
4527
|
+
treat any `system:*` as the platform. The owner feed now folds a run of
|
|
4528
|
+
the same line by the same actor into one row with a count ("Freeholder
|
|
4529
|
+
updated pages ×15", `collapseOwnerFeed`) before taking twelve rows. The
|
|
4530
|
+
busy demo's 360 seeded audit rows now use real service names said by who
|
|
4531
|
+
would have done them (visitors' forms, orders, bookings and event
|
|
4532
|
+
registrations; the platform's incoming messages and payments; the team's
|
|
4533
|
+
replies, invoices, reschedules and shipments), so a reset feed reads as
|
|
4534
|
+
the business. Regressions: `tests/core/seed-demo.test.ts` ("keeps the
|
|
4535
|
+
install out of the owner's feed…": seed rows recorded as `system:seed`,
|
|
4536
|
+
none in `people`, twelve business rows with no "Freeholder updated"),
|
|
4537
|
+
`tests/core/audit-labels.test.ts` (collapse, seed actor wording).
|
|
4538
|
+
Changeset `owner-feed-seed-noise.md`. Review follow-ups (same day):
|
|
4539
|
+
`demo.installBusy` is now `permission: "system"` and refuses unless the
|
|
4540
|
+
deploy asked for the busy demo (`demoSeedBusy`: `FREEHOLDER_SEED_DEMO=busy`
|
|
4541
|
+
or the playground), so no person or agent can plant its backdated history
|
|
4542
|
+
in a real site's trail; it is the only installer that writes synthetic
|
|
4543
|
+
audit rows (`demo.install`, `seed.installPreset` and the demo scenarios
|
|
4544
|
+
write real content through services under the true actor). Each
|
|
4545
|
+
synthetic row carries `diff.seeded = true`; `events.recentActivity`
|
|
4546
|
+
returns it as `sample` and both feed views say "(sample)". The job
|
|
4547
|
+
producer and workers start under `outsideSeeding` (`src/core/audit-origin.ts`),
|
|
4548
|
+
so long-lived work the seed happens to start never inherits the marker.
|
|
4549
|
+
Folding works on the raw feed: a hidden row breaks a run, and a run
|
|
4550
|
+
reaching the end of a read that hit its 100-row limit reads "×N+".
|
|
4551
|
+
Regressions: `tests/core/seed-demo-busy.test.ts` (owner, staff and agent
|
|
4552
|
+
refused; non-demo deploys refused even for the system; 360 tagged rows),
|
|
4553
|
+
`tests/core/transactional-jobs.test.ts` (a job enqueued and run from
|
|
4554
|
+
inside the seed scope runs outside it; fails without the change),
|
|
4555
|
+
`tests/core/audit-labels.test.ts` (hidden-row break, "+" at the limit).
|
|
4168
4556
|
|
|
4169
4557
|
- [x] **C1.39** Simplify owner protection and assistant authorization: private
|
|
4170
4558
|
fragment claim links, passkey-first enrollment within setup, downloadable
|
|
@@ -4478,11 +4866,28 @@ project without silent telemetry, and ready to carry money.
|
|
|
4478
4866
|
picture refuses at the schema). **F09** N/A as C11.14 — crop/focal are
|
|
4479
4867
|
block props on the CMS revision spine and asset columns already exported.
|
|
4480
4868
|
**F12** tests/browser/editor-media-tools.spec.ts.)
|
|
4869
|
+
Audit follow-up 2026-10-22 (editor on the public demo): React #418 fired on
|
|
4870
|
+
every direct editor load. The cause was the preview frame, not the editor:
|
|
4871
|
+
`fhAddGrips` appended a drag grip to every `[data-block-id]` while the
|
|
4872
|
+
document parsed, before hydration. The canvas wrapper in
|
|
4873
|
+
`src/modules/cms/render.tsx` now server-renders the identical grip as each
|
|
4874
|
+
block's first child, and the script adds grips only after DOMContentLoaded
|
|
4875
|
+
(so it cannot race a streaming block whose grip has not arrived); after
|
|
4876
|
+
that it still adds grips to blocks the draft broadcast builds. The fixed 32rem editing frame is
|
|
4877
|
+
viewport-tall, the text block's hint and refusal explain that HTML belongs
|
|
4878
|
+
in a Custom HTML block, and comment mentions are teammate checkboxes with
|
|
4879
|
+
names shown instead of `user:<uuid>`. Canvas drag-and-drop was re-checked
|
|
4880
|
+
on demo.freeholder.ai: a real pointer drag reorders blocks; the audit's
|
|
4881
|
+
failed drag dropped onto a target below the 900px viewport, a harness
|
|
4882
|
+
defect rather than a product one. Evidence:
|
|
4883
|
+
`tests/core/editor-canvas-drag.test.ts` ("grips and hydration");
|
|
4884
|
+
changeset `admin-first-run-ux.md`.
|
|
4481
4885
|
|
|
4482
4886
|
**C2 exit:** every public or message-facing surface is safely editable by a
|
|
4483
4887
|
human, collaboratively, without code, lock-in markup or accidental publication.
|
|
4484
4888
|
|
|
4485
|
-
- [
|
|
4889
|
+
- [x] **C2.26** Deliver a public blog index with published post discovery, pagination, locale-aware links and metadata, an editable index block and an owner publish workflow. Drafts and gated bodies remain private.
|
|
4890
|
+
*(Closed 2026-10-14 against `C2.26` on `main` (`f9b155be`, released as 0.2.0-beta.3 and live on freeholder.ai). Evidence: `tests/modules/customer-surfaces.test.ts` (published-only listing, drafts and working copies hidden, page 2 pagination, reviewed fr translation) and `tests/browser/customer-surfaces.spec.ts` (owner writes and publishes at /admin/blog; post appears on /blog only after publish; Axe light/dark); /blog serves 200 with a canonical link; scope and limits in `deploy/customer-surfaces-2026-10-07.md`; F01–F12 rows in `deploy/f-criteria-matrix.md`. **F04** `app/(admin)/admin/blog/page.tsx` and `/blog`. **F05** `cms.listBlogPosts` in `src/modules/cms/blog.tsx`, projected to HTTP/MCP and `packages/sdk/src/generated.ts`. **F07** customer ownership and privacy in `tests/modules/customer-surfaces.test.ts`. **F09** provider and deployment limits recorded in `deploy/customer-surfaces-2026-10-07.md`. **F12** `tests/browser/customer-surfaces.spec.ts` composed journey. Live payment-provider settlement stays with C11.05.)*
|
|
4486
4891
|
|
|
4487
4892
|
### 43.8 C3 — Living contract, plugins, packages, and portable operation
|
|
4488
4893
|
|
|
@@ -4558,11 +4963,12 @@ human, collaboratively, without code, lock-in markup or accidental publication.
|
|
|
4558
4963
|
(`scaffoldPlugin` + `inspectPluginFolder`; `tests/fixtures/sample-plugin`.
|
|
4559
4964
|
Coverage in `tests/core/plugin-scaffold.test.ts`. **F04** `/admin/imports` start/preview/commit. **F05** N/A — `packages/plugin-kit` scaffold/dev harness and `tests/fixtures/sample-plugin`, not an HTTP/MCP route. **F07** `tests/core/plugin-scaffold.test.ts` covers validation and failure-mode refusal; scoped permission enforcement on the service boundary is proven for every service by `tests/core/api.test.ts` (C0.11 audit narrowing). **F09** N/A as C11.14 — this item uses the shared audit/outbox; product-wide export/restore/retention/erasure proof is still open. **F12** `tests/core/plugin-scaffold.test.ts` is the composition proof.)
|
|
4560
4965
|
- [x] **C3.13** Ship first-party plugins for gift options/registries,
|
|
4561
|
-
advanced communities, and voice and video artifacts — voice/video
|
|
4562
|
-
|
|
4563
|
-
credentials, provider-confirmed end,
|
|
4564
|
-
|
|
4565
|
-
API) — and marketplace channel
|
|
4966
|
+
advanced communities, and voice and video artifacts — voice/video through
|
|
4967
|
+
interchangeable provider adapters with none preselected, Daily and
|
|
4968
|
+
Paradise Comms today (rooms, credentials, provider-confirmed end,
|
|
4969
|
+
recordings; transcripts where the provider ships them; provider erasure
|
|
4970
|
+
through the provider's recording-delete API) — and marketplace channel
|
|
4971
|
+
sync seams, as assigned by §§4.14 and 36.
|
|
4566
4972
|
The marketplace plugin's Shopify import is a MIGRATION BRIDGE (import
|
|
4567
4973
|
your Shopify history into the native store), not an ongoing dependency;
|
|
4568
4974
|
the native store is the product (owner decision 2026-09-27, C3.24).
|
|
@@ -4651,6 +5057,22 @@ human, collaboratively, without code, lock-in markup or accidental publication.
|
|
|
4651
5057
|
droplet `CREDENTIAL_KEY`/owner-storage config) — each logged with
|
|
4652
5058
|
before/after evidence; the adapter failed visibly and honestly at each
|
|
4653
5059
|
one exactly as the #430 contract tests specify.)
|
|
5060
|
+
**Provider naming, 2026-10-22 (owner decision, Tony Aly):** Paradise
|
|
5061
|
+
Comms is presented as one optional provider, not the first-party one. The
|
|
5062
|
+
normative text above, §4.14 and §36 now say "interchangeable provider
|
|
5063
|
+
adapters, none preselected"; the dated pivot and live-acceptance records
|
|
5064
|
+
are unchanged history. `/admin/voice-video` preselects no provider until
|
|
5065
|
+
one is saved (an instance configured only through the Daily environment
|
|
5066
|
+
variables still shows and runs Daily), the provider labels drop
|
|
5067
|
+
"first-party"/"optional", and `voiceVideoProvider` refuses with a neutral
|
|
5068
|
+
message instead of falling back to Paradise when nothing is configured.
|
|
5069
|
+
The `paradise` provider id, its stored settings, webhook path and secrets
|
|
5070
|
+
are unchanged, so existing sites keep working with no migration. Member
|
|
5071
|
+
group calls on the owner's own LiveKit server (C12.24) are the self-hosted
|
|
5072
|
+
alternative; no self-hosted LiveKit adapter exists for this plugin.
|
|
5073
|
+
Evidence: `tests/browser/first-party-plugins.spec.ts` (no preselection,
|
|
5074
|
+
neutral refusal), `tests/core/paradise-*.test.ts` unchanged and passing,
|
|
5075
|
+
changeset `neutral-provider-names.md`.
|
|
4654
5076
|
|
|
4655
5077
|
#### Packages, installation, export, and target parity
|
|
4656
5078
|
|
|
@@ -4699,6 +5121,13 @@ human, collaboratively, without code, lock-in markup or accidental publication.
|
|
|
4699
5121
|
`scripts/recipe-matrix.sh` boots the built image for all six target contracts
|
|
4700
5122
|
against PostgreSQL/MinIO and runs the authenticated canonical Doctor in CI.
|
|
4701
5123
|
Parsed/current-IaC coverage in `tests/core/recipes.test.ts`. **F04** `packages/cli` doctor/migrate, not a new admin screen. **F05** N/A — IaC recipes (`replit.nix`, `render.yaml`, compose, DO/Railway); operator CLI is C10.21. **F07** `tests/core/recipes.test.ts` covers validation and failure-mode refusal; scoped permission enforcement on the service boundary is proven for every service by `tests/core/api.test.ts` (C0.11 audit narrowing). **F09** N/A as C11.14 — this item uses the shared audit/outbox; product-wide export/restore/retention/erasure proof is still open. **F12** `tests/core/recipes.test.ts` is the composition proof.)
|
|
5124
|
+
*(HTTPS follow-up 2026-11-05: `deploy/docker-selfhost/infra/compose.yml`
|
|
5125
|
+
serves plain HTTP on port 3000, so owner passkeys could not work on a
|
|
5126
|
+
public Compose host. `infra/compose.https.yml` with `infra/Caddyfile.https`
|
|
5127
|
+
adds Caddy with automatic TLS in the same Compose project and database
|
|
5128
|
+
volume, an unpublished app port and the C11.10 trusted client-address
|
|
5129
|
+
header; recipe operation `install-https`. Evidence
|
|
5130
|
+
`tests/core/deploy-recipe.test.ts`; changeset `docker-selfhost-https.md`.)*
|
|
4702
5131
|
- [x] **C3.17** Give every Tier-1 recipe install, verify, backup, restore,
|
|
4703
5132
|
migrate-in, migrate-out, update and rollback steps; continuously test matrix.
|
|
4704
5133
|
(Every parsed `recipe.yaml` carries executable `install`, `verify`, `backup`,
|
|
@@ -4720,9 +5149,31 @@ human, collaboratively, without code, lock-in markup or accidental publication.
|
|
|
4720
5149
|
and Replit storage and verifies target byte length plus SHA-256. Both are
|
|
4721
5150
|
exercised in CI; contracts in `tests/core/portability.test.ts` and transfer
|
|
4722
5151
|
behavior in `tests/core/media-transfer.test.ts`. **F04** N/A — adapter conformance tests, not a screen. **F05** N/A — not an agent capability. **F07** `tests/core/portability.test.ts` covers validation and failure-mode refusal; scoped permission enforcement on the service boundary is proven for every service by `tests/core/api.test.ts` (C0.11 audit narrowing). **F09** N/A as C11.14 — this item uses the shared audit/outbox; product-wide export/restore/retention/erasure proof is still open. **F12** `tests/core/portability.test.ts` is the composition proof.)
|
|
5152
|
+
Recovery integrity follow-up (2026-10-21): retain original asset SHA-256 in
|
|
5153
|
+
object inventories and check known digests before copying, including legacy
|
|
5154
|
+
asset-only manifests and dry runs. Reject duplicate object keys and malformed
|
|
5155
|
+
or conflicting digests in preflight. Variants without recorded hashes retain
|
|
5156
|
+
source-to-target verification. Synthetic regressions are component evidence;
|
|
5157
|
+
production transfers, backup freshness and production recovery acceptance
|
|
5158
|
+
remain open.
|
|
5159
|
+
Transport follow-up rejects dot-path/NUL/empty keys across the entire manifest
|
|
5160
|
+
before store access, requires HTTPS (explicit loopback HTTP fixtures only), and
|
|
5161
|
+
refuses GET/PUT redirects. Actual signed request tests preserve literal percent
|
|
5162
|
+
keys in path/virtual addressing. Cloud ACLs, live transfers, production backup
|
|
5163
|
+
freshness and production recovery acceptance remain open.
|
|
5164
|
+
Overwrite/transport follow-up (2026-10-22): the transfer never overwrites a
|
|
5165
|
+
target object. Identical bytes (full-body SHA-256, not ETags) are skipped and
|
|
5166
|
+
counted; a different object at the key stops the run naming it, with dry runs
|
|
5167
|
+
reporting would-skip/would-refuse. HTTPS stays the default; plain HTTP to a
|
|
5168
|
+
non-loopback endpoint needs `--allow-insecure-http` or
|
|
5169
|
+
`MEDIA_TRANSFER_ALLOW_INSECURE_HTTP=true` and warns. Regressions in
|
|
5170
|
+
`tests/core/media-transfer.test.ts` and
|
|
5171
|
+
`tests/core/media-transfer-transport.test.ts`; changeset
|
|
5172
|
+
`media-migration-checksums`. Live provider transfers and production recovery
|
|
5173
|
+
acceptance remain open.
|
|
4723
5174
|
- [x] **C3.20** Add semantic platform/plugin/API versions, compatibility
|
|
4724
5175
|
reporting and a truthful instance version in health, admin, CLI and contract.
|
|
4725
|
-
(Platform and packages are `0.2.0-beta.
|
|
5176
|
+
(Platform and packages are `0.2.0-beta.4`; SDK `PLATFORM_VERSION` is stamped from
|
|
4726
5177
|
`package.json`. Health, OpenAPI, Doctor, provenance, catalogue compatibility
|
|
4727
5178
|
and admin chrome report that same string. `.github/workflows/publish-packages.yml`
|
|
4728
5179
|
publishes packed tarballs on a matching `vX.Y.Z` tag; `scripts/release-packages.mjs`
|
|
@@ -4746,13 +5197,46 @@ human, collaboratively, without code, lock-in markup or accidental publication.
|
|
|
4746
5197
|
partial-source conformance; core retains jobs, preview, commit and rollback.
|
|
4747
5198
|
(`defineImporter`; `assertPublicHttpUrl`; robots/limits. Coverage in
|
|
4748
5199
|
`tests/core/importers.test.ts`. **F04** `/admin/imports` map/review-conflicts. **F05** N/A as a new HTTP family — `defineImporter` in plugin-kit; owner runs go through `imports.*` (C3.23). **F07** `tests/core/importers.test.ts` covers validation and failure-mode refusal; scoped permission enforcement on the service boundary is proven for every service by `tests/core/api.test.ts` (C0.11 audit narrowing). **F09** N/A as C11.14 — this item uses the shared audit/outbox; product-wide export/restore/retention/erasure proof is still open. **F12** `tests/core/importers.test.ts` is the composition proof.)
|
|
4749
|
-
- [
|
|
5200
|
+
- [ ] **C3.22** Ship complete first-party WordPress REST/WXR and generic-site
|
|
4750
5201
|
sitemap/RSS/Atom/semantic-HTML importers plus static archive/common hosted-
|
|
4751
5202
|
site paths; preserve content/media/SEO/URL intent and generate redirects
|
|
4752
5203
|
while enforcing SSRF, origin, robots, rate, page, byte and depth limits.
|
|
4753
5204
|
(`parseWordpressRest` / `parseWordpressWxr` / `parseSitemap` /
|
|
4754
5205
|
`parseRssOrAtom` / `parseSemanticHtml` / `discoverFromPublicOrigin`.
|
|
4755
5206
|
Coverage in `tests/core/importers.test.ts`. **F04** N/A — first-party plugin seam, not a new screen. **F05** parsers sit behind `imports.start`/`previewFromSource` at `/api/v1/imports.*`, MCP `imports_*`; no extra importer family. **F07** `tests/core/importers.test.ts` covers validation and failure-mode refusal; scoped permission enforcement on the service boundary is proven for every service by `tests/core/api.test.ts` (C0.11 audit narrowing). **F09** N/A as C11.14 — this item uses the shared audit/outbox; product-wide export/restore/retention/erasure proof is still open. **F12** `tests/core/importers.test.ts` is the composition proof.)
|
|
5207
|
+
*(Reopened 2026-11-05: the item was checked while the WordPress paths kept
|
|
5208
|
+
only title, slug, HTML body and page/post, landed every item as a page with
|
|
5209
|
+
one raw `html` block, and recorded `media: 0, redirects: 0`. Closed in this
|
|
5210
|
+
change, for WordPress: `src/core/import/wordpress.ts` reads WXR attachments,
|
|
5211
|
+
menus, terms, authors, dates, statuses, comment counts and Yoast/Rank Math
|
|
5212
|
+
meta; posts land under `blog/` with original dates (`cms.publishPage` takes
|
|
5213
|
+
an optional past `publishedAt`), WordPress drafts stay drafts at publish, a
|
|
5214
|
+
blog listing page is created when none exists, bodies become typed heading/
|
|
5215
|
+
text/image/gallery blocks with `html` only for tables, quotes and code,
|
|
5216
|
+
internal links are rewritten, attachments are fetched by the orchestrated
|
|
5217
|
+
`imports.commit` through `getPinnedBytes` and `media.upload`, moved
|
|
5218
|
+
permalinks become `Redirect` rows (existing redirects and pages are never
|
|
5219
|
+
overwritten), and rollback removes pages, redirects, nav links and unused
|
|
5220
|
+
imported files. Coverage in `tests/core/wordpress-import.test.ts` and
|
|
5221
|
+
`tests/core/wordpress-import-flow.test.ts` against the fictional fixture
|
|
5222
|
+
`tests/fixtures/wordpress/sample-export.xml`; changeset
|
|
5223
|
+
`.changeset/wordpress-import-media-redirects.md`. Real-size exports
|
|
5224
|
+
(2026-11-06): `imports.beginSourceUpload` reserves a file of up to 100 MB,
|
|
5225
|
+
`/api/imports/source/chunk` (`imports.uploadSourceChunk`, own 4 MB bound,
|
|
5226
|
+
first-chunk content sniff, rate limit, same uploader only) writes each chunk
|
|
5227
|
+
to private object storage outside any transaction, and
|
|
5228
|
+
`imports.previewFromUpload` streams them through `WxrStreamReader`, so
|
|
5229
|
+
memory holds one chunk and one item, then deletes the chunks; coverage in
|
|
5230
|
+
`tests/core/wordpress-import-upload.test.ts` with a generated multi-megabyte
|
|
5231
|
+
fictional export. Still open before this can
|
|
5232
|
+
be checked: WordPress categories/tags and authors have no CMS home (recorded
|
|
5233
|
+
on the run only); reader comments are not imported; nested menu items are
|
|
5234
|
+
not applied; an import still keeps at most 500 items and 20 MB of bodies
|
|
5235
|
+
(the importer limits), whatever the file size;
|
|
5236
|
+
there is no live WordPress REST crawl, so REST input is a pasted response;
|
|
5237
|
+
the generic sitemap/RSS/Atom/HTML importers still produce a heading plus one
|
|
5238
|
+
`html` block with no media or redirects; the `archive` kind has no archive
|
|
5239
|
+
reader of its own.)*
|
|
4756
5240
|
- [x] **C3.23** Build the owner import studio and resumable run ledger:
|
|
4757
5241
|
discover → map → staged preview/diff → conflict review → commit → reconcile
|
|
4758
5242
|
counts/links/SEO/accessibility → reversible batch → approved publish/cutover,
|
|
@@ -4873,6 +5357,19 @@ human, collaboratively, without code, lock-in markup or accidental publication.
|
|
|
4873
5357
|
confirmation); the mapping's proof contract lands through #453's
|
|
4874
5358
|
`tests/core/merch-blocks.test.ts` and
|
|
4875
5359
|
`tests/browser/storefront-merch-blocks.spec.ts`.)
|
|
5360
|
+
Pre-launch check 2026-10-23: /products, the "Shop" nav target, listed
|
|
5361
|
+
names only while /c/<slug> priced every card. The `productsIndex` block
|
|
5362
|
+
now renders the shared `CollectionGrid` with the same `purchaseOptions`
|
|
5363
|
+
projection ("From CA$X" from the cheapest sellable variant, add-to-cart),
|
|
5364
|
+
and every shelf (collection page, collection showcase, product row,
|
|
5365
|
+
/products) shows the product's lead picture through the new batched
|
|
5366
|
+
public query `catalog.productCardImages` (hero, else first gallery image;
|
|
5367
|
+
active public products, ready non-private images only). It is one query:
|
|
5368
|
+
the asset columns ride on the product/media join and URLs are built by
|
|
5369
|
+
`renderableImage` (shared with `media.resolveImage`) with no per-product
|
|
5370
|
+
lookup. Regression:
|
|
5371
|
+
`tests/core/merch-blocks.test.ts` ("gives /products the collection
|
|
5372
|
+
card…"). Changeset `demo-prelaunch-polish.md`.
|
|
4876
5373
|
- [x] **C3.26** World-class merchandising: first-class product taxonomy —
|
|
4877
5374
|
collections and categories with manual and rule-based (segment-driven)
|
|
4878
5375
|
membership; faceted storefront browsing (filter/sort on price, options,
|
|
@@ -4948,12 +5445,344 @@ deployments are portable, testable and incapable of silently forking the truth.
|
|
|
4948
5445
|
installed and exercised, including generated agent instructions, launch
|
|
4949
5446
|
scripts, frozen install and typecheck. Production build passed the
|
|
4950
5447
|
standalone exclusion gate. Actual provider acceptance remains C3.28.)
|
|
5448
|
+
*(Docker follow-up 2026-11-05: `--target docker-selfhost` wrote the
|
|
5449
|
+
repository-root `.env`, never generated `POSTGRES_PASSWORD`, and required
|
|
5450
|
+
a `DATABASE_URL` that Compose builds itself, so the documented Compose
|
|
5451
|
+
command could not start from it. It now writes `deploy/docker-selfhost/.env`
|
|
5452
|
+
(where Compose reads it) when that recipe directory exists, generates an
|
|
5453
|
+
independent URL-safe `POSTGRES_PASSWORD` and refuses one Compose cannot
|
|
5454
|
+
embed, requires only the S3 values, sets `FREEHOLDER_DOMAIN` from an HTTPS
|
|
5455
|
+
URL, and reports the matching start command. Evidence
|
|
5456
|
+
`tests/core/agent-launch.test.ts`; changeset `docker-selfhost-https.md`.)*
|
|
4951
5457
|
- [ ] **C3.28** Prove fresh account launches with the owner on Replit and Lovable:
|
|
4952
5458
|
real provider provisioning, final HTTPS owner claim/passkey/recovery, storage
|
|
4953
5459
|
and readiness, actual platform-agent MCP discovery and permitted publishing,
|
|
4954
5460
|
forbidden-operation refusal, and Lovable runtime credential isolation where
|
|
4955
5461
|
used. This remains open until those two actual platform launches are run;
|
|
4956
5462
|
local browser/CLI evidence is not a substitute.
|
|
5463
|
+
- [ ] **C3.29** Keep living screenshots of every screen: each change to `main`
|
|
5464
|
+
and each release captures every public, admin and portal route over the demo
|
|
5465
|
+
business plus a signed-in customer, in light and dark at desktop and mobile
|
|
5466
|
+
sizes, publishes them to the repository's `screenshots` branch, and updates
|
|
5467
|
+
the gallery on freeholder.ai. Owner standing rule, 2026-10-14.
|
|
5468
|
+
(Progress 2026-10-16, not yet checked: capture and `screenshots`-branch
|
|
5469
|
+
publication run in CI on every push to main. The gallery publisher,
|
|
5470
|
+
`scripts/screenshots-gallery.mjs` with the workflow's `gallery` job, is
|
|
5471
|
+
proven end to end against a local instance: upload, dedup, publish,
|
|
5472
|
+
media-pipeline render and retire. Still open: the owner adds the scoped
|
|
5473
|
+
credential per `deploy/screenshots-gallery.md`, then one live gallery
|
|
5474
|
+
update on freeholder.ai.)
|
|
5475
|
+
- [x] **C3.30** Launch a new hosted site with one command: `freeholder launch`
|
|
5476
|
+
provisions the provider's resources (DigitalOcean first: scoped Spaces
|
|
5477
|
+
buckets and key, a droplet from the recipe's cloud-init), generates and
|
|
5478
|
+
keeps the site's secrets privately, installs and starts the stack, waits for
|
|
5479
|
+
real readiness over a valid certificate, schedules and confirms backups,
|
|
5480
|
+
and ends at a one-click owner claim link; resumable, idempotent, with
|
|
5481
|
+
`--dry-run`, `--cutover` to the real domain and `--destroy`.
|
|
5482
|
+
(Progress 2026-10-16: `packages/cli/src/launch/`, tested
|
|
5483
|
+
against fakes of DigitalOcean, Spaces' S3, the registry, DNS and SSH in
|
|
5484
|
+
`tests/core/launch-cli.test.ts`; PR #539, changeset `cli-launch.md`.
|
|
5485
|
+
Checked 2026-10-22 on owner attestation: the owner (Tony Aly) reports
|
|
5486
|
+
running Freeholder on DigitalOcean for multiple projects and directed
|
|
5487
|
+
"Cross this one off as done." #539's tests use fakes; no agent-observed
|
|
5488
|
+
live `freeholder launch` on a real account was run, so the real-account
|
|
5489
|
+
end-to-end run through the owner's claim rests on that attestation, not
|
|
5490
|
+
on recorded evidence here. **F04** N/A — a terminal command, not an admin
|
|
5491
|
+
screen; it ends at the existing `/setup` claim. **F05** the CLI itself is
|
|
5492
|
+
the agent surface: `--non-interactive`, `--json` summary and documented
|
|
5493
|
+
exit codes in `packages/cli/README.md`. **F07** secrets only in the mode-600
|
|
5494
|
+
env file and redacted from output; scoped Spaces key; temporary keys always
|
|
5495
|
+
deleted; `--destroy` needs typed confirmation, keeps non-empty buckets and
|
|
5496
|
+
reports any deletion it could not make; linear-time argument parsing
|
|
5497
|
+
(all in `tests/core/launch-cli.test.ts`). **F09** resumable state in
|
|
5498
|
+
`state.json`, nightly backups scheduled and a first one confirmed,
|
|
5499
|
+
`--destroy` teardown; costs (droplet; Spaces' $5/month minimum continuing
|
|
5500
|
+
after `--destroy` until cancelled) and safe storage of `CREDENTIAL_KEY` in
|
|
5501
|
+
`packages/cli/README.md`. **F12** the package ships exactly the
|
|
5502
|
+
repository's `deploy/digitalocean-droplet/infra` recipe via
|
|
5503
|
+
`packages/cli/scripts/copy-recipe.mjs`, asserted byte-for-byte by
|
|
5504
|
+
`tests/core/launch-cli.test.ts`.)
|
|
5505
|
+
*(Audit follow-up 2026-10-22: rewrote two polynomial-backtracking patterns
|
|
5506
|
+
(`defaultName`, `--domain` trailing-slash trim) as linear loops, and
|
|
5507
|
+
`--destroy` no longer reports the site's Spaces key deleted when that
|
|
5508
|
+
deletion failed. Regression tests in `tests/core/launch-cli.test.ts`;
|
|
5509
|
+
changeset `cli-launch-hardening.md`.)*
|
|
5510
|
+
*(Distribution follow-up 2026-11-05: the npm `@freeholder/cli@next`
|
|
5511
|
+
tarball (0.2.0-beta.3, published 2026-10-14) predates #539 and answers
|
|
5512
|
+
`unknown command "launch"`, so the documented one-command path did not
|
|
5513
|
+
work from npm. `scripts/package-artifact-gate.mjs` now runs the packed
|
|
5514
|
+
`freeholder launch --dry-run` against a preloaded DigitalOcean stub that
|
|
5515
|
+
fails on any write, and checks the shipped recipe files, so no release can
|
|
5516
|
+
ship without the command again. The dry run states the monthly cost from
|
|
5517
|
+
DigitalOcean's own `/v2/sizes` list price plus the Spaces minimum, and
|
|
5518
|
+
printed next steps name `npx @freeholder/cli@next` when run through npx.
|
|
5519
|
+
`AGENTS.md` is host-neutral: the agent runs only the dry run, the owner
|
|
5520
|
+
runs the real launch and opens the claim link, and only the owner issues
|
|
5521
|
+
the agent's `/admin/connect` key. Prompt in `deploy/agent-launch.md`;
|
|
5522
|
+
changeset `cli-launch-npx.md`. Shipping it to npm is the next prerelease
|
|
5523
|
+
under C3.20, which the owner approves.)*
|
|
5524
|
+
|
|
5525
|
+
- [ ] **C3.31** Offer Paradise Modern as one more transactional and bulk
|
|
5526
|
+
mail adapter (`MAIL_ADAPTER=paradise`, `MAIL_BULK_ADAPTER=paradise`) beside
|
|
5527
|
+
SMTP, Gmail, Outlook, Resend, Postmark and SES (§12; owner decision
|
|
5528
|
+
2026-10-22): every message declares a permission basis — a transactional
|
|
5529
|
+
reason with the event behind it, set by the delivery worker, or the
|
|
5530
|
+
recipient's retained marketing opt-in — and a campaign with no opt-in the
|
|
5531
|
+
provider can accept, or without the site's own one-click unsubscribe, is
|
|
5532
|
+
refused before any request; consent the provider has not seen is recorded
|
|
5533
|
+
from `consent_records` evidence (never imports, verbal or system records)
|
|
5534
|
+
and the send retried as a distinct request; withdrawals mirrored through
|
|
5535
|
+
the outbox; sender verification against the provider's sending domain; a
|
|
5536
|
+
migration that only widens provider constraints. Open until a live send of
|
|
5537
|
+
each kind against the provider.
|
|
5538
|
+
*(Progress 2026-10-23: adapter `src/adapters/mail/paradise.ts`
|
|
5539
|
+
(`requiresPermission`, `recordWithdrawal`, `verifySender`); the worker
|
|
5540
|
+
declares the basis in `deliverQueuedMail` and stages a transactional
|
|
5541
|
+
reason only for a permission-checking route, so a rollback still reads
|
|
5542
|
+
every other queued message; consent translation and the withdrawal
|
|
5543
|
+
listener in `src/core/mail/permission.ts` (`contact.consentChanged` →
|
|
5544
|
+
`onMailConsentChanged`, a no-op unless the configured carrier records
|
|
5545
|
+
withdrawals); widening-only `0057_paradise_mail_provider.sql`. Evidence:
|
|
5546
|
+
`tests/core/paradise-mail.test.ts` (mocked HTTP: wire shape, refusals
|
|
5547
|
+
before any request, consent recording then a distinct request id,
|
|
5548
|
+
withdrawal mirror, sender verification, configuration) and
|
|
5549
|
+
`tests/core/mail-service.test.ts` (database: the delivery worker's
|
|
5550
|
+
declared reason and event, the widened constraint, the withdrawal mirror
|
|
5551
|
+
only for a ledger-keeping carrier); changeset `paradise-mail-adapter.md`.
|
|
5552
|
+
Review fixes: grants recorded at the carrier live in `mail_provider_grants`
|
|
5553
|
+
(saved in the transaction that records the send), are mirrored only for
|
|
5554
|
+
a withdrawal that follows them, to the address they were recorded under;
|
|
5555
|
+
exported and erased with the contact (`src/core/mail/privacy.ts`, scope
|
|
5556
|
+
`mail.provider_grants`: erasure detaches open grants and a pending job
|
|
5557
|
+
withdraws them at the carrier before deleting them); a deleted contact's
|
|
5558
|
+
grants are detached by the cascade and withdrawn by
|
|
5559
|
+
`core.sweepDetachedProviderGrants` — through the Paradise credentials
|
|
5560
|
+
whichever adapter carries campaigns, and never deleted unwithdrawn:
|
|
5561
|
+
without credentials they wait (doctor `mail.providerGrants` warns, the
|
|
5562
|
+
erasure stays pending); finished grants age out under the
|
|
5563
|
+
`mail_provider_grants` retention kind. Known gap, not addressed here: the
|
|
5564
|
+
older mail tables (`mail_deliveries`, `mail_suppressions`,
|
|
5565
|
+
`mail_provider_events`) hold addresses but are in no retention kind.
|
|
5566
|
+
Unchecked: no live send against the provider.)*
|
|
5567
|
+
- [ ] **C3.32** Add a measurement-provider category (`MEASUREMENT_PROVIDER`,
|
|
5568
|
+
default `none`) with Paradise Modern as its first adapter (§12, C1.18):
|
|
5569
|
+
the provider's scripts load, and the CSP opens its edge origin, only for a
|
|
5570
|
+
visitor whose explicit choice is "allow" (`fh_ac=granted`) under a policy
|
|
5571
|
+
that collects — the opt-out default's implied state never qualifies; the
|
|
5572
|
+
consent control names the category and the provider; an accepted form
|
|
5573
|
+
submission from such a visitor sends one server-side `lead` conversion,
|
|
5574
|
+
deduplicated by the submission's id, with nothing about the visitor stored
|
|
5575
|
+
to send it. Open until verified in a real browser against a live edge host.
|
|
5576
|
+
*(Progress 2026-10-23: the category is `src/adapters/measurement/`
|
|
5577
|
+
(`config.ts` holds every gate as pure functions the Edge proxy shares;
|
|
5578
|
+
`paradise.ts` is the first adapter); `proxy.ts` adds the edge origin only
|
|
5579
|
+
for `fh_ac=granted`, `contentSecurityPolicy` keeps it off admin pages; the
|
|
5580
|
+
public layout renders the nonced scripts under the owner's policy; the
|
|
5581
|
+
consent control names "measurement provider (<name>)" in four locales and
|
|
5582
|
+
offers an explicit allow in opt-out mode; the public form action plans the
|
|
5583
|
+
conversion (`src/modules/analytics/measurement.ts`) and runs it with
|
|
5584
|
+
`after()`, reading the accepted submission's email/phone only after commit
|
|
5585
|
+
(`src/modules/forms/conversion.ts`). Evidence:
|
|
5586
|
+
`tests/core/measurement-provider.test.ts` (gating, playground, CSP, script
|
|
5587
|
+
sources, click-ID parsing, the deduplicable event, consent with a
|
|
5588
|
+
database), `tests/core/analytics-consent.test.ts` (consent markup and its
|
|
5589
|
+
accessibility gate); changeset `measurement-provider.md`. Review fixes:
|
|
5590
|
+
email and phone leave only as SHA-256 hashes (`custom.identifierHashes`);
|
|
5591
|
+
the consent text lists exactly what is sent; member, account, community,
|
|
5592
|
+
portal and checkout/cart/buy/book/gifts/memberships pages never render the
|
|
5593
|
+
script or list the edge
|
|
5594
|
+
(`measurementPathAllowed`); a failure to plan a conversion never errors a
|
|
5595
|
+
saved enquiry (`tests/core/measurement-form-action.test.ts`). Unchecked: no
|
|
5596
|
+
real-browser run against a live edge host.)*
|
|
5597
|
+
- [ ] **C3.33** Add a form-screening category (`FORM_SCREENING_PROVIDER`,
|
|
5598
|
+
default `none`) with Paradise Modern as its first adapter (§12, §36):
|
|
5599
|
+
screening runs whenever a provider is configured (a security purpose), on
|
|
5600
|
+
anonymous public submissions only, outside the submission transaction with
|
|
5601
|
+
a 4-second limit; its verdict reaches `forms.submit` sealed (HMAC bound to
|
|
5602
|
+
the form and the exact answers; no seal is ever issued when
|
|
5603
|
+
`SESSION_SECRET` is unset) and can only add a quarantine reason beside the
|
|
5604
|
+
honeypot and time trap, never drop one; an unavailable provider falls back
|
|
5605
|
+
to those traps; the request carries only what the provider's API requires
|
|
5606
|
+
plus the text it screens; the site's privacy notice names the provider,
|
|
5607
|
+
what is sent and why while it is enabled, in every locale. Open until a
|
|
5608
|
+
live assessment against the provider.
|
|
5609
|
+
- [ ] **C3.34** Add a lead-sink category (`LEAD_SINK_PROVIDER`, default
|
|
5610
|
+
`none`) with Paradise Modern as its first adapter (§12): a separate switch
|
|
5611
|
+
from screening, off by default; accepted (never quarantined) submissions
|
|
5612
|
+
are copied after commit by an outbox listener that retries transient
|
|
5613
|
+
failures and logs permanent refusals; the submission is always kept in
|
|
5614
|
+
Freeholder; the privacy notice names the provider, what is copied and why
|
|
5615
|
+
while it is enabled, in every locale. Open until a live lead copy against
|
|
5616
|
+
the provider.
|
|
5617
|
+
*(Progress 2026-10-23, C3.33 and C3.34: the categories are
|
|
5618
|
+
`src/adapters/form-screening/` and `src/adapters/lead-sink/` (contracts in
|
|
5619
|
+
`types.ts`, Paradise Modern in `paradise.ts`), chosen by
|
|
5620
|
+
`FORM_SCREENING_PROVIDER` and `LEAD_SINK_PROVIDER`. Screening:
|
|
5621
|
+
`src/modules/forms/screening.ts` seals the verdict (HMAC under
|
|
5622
|
+
`SESSION_SECRET` over the form and the exact answers, 15-minute life; no
|
|
5623
|
+
seal without the secret, and an anonymous submission without a valid seal
|
|
5624
|
+
is held as unchecked while a provider is on); the public form action and
|
|
5625
|
+
the booking intake action seal before `forms.submit`
|
|
5626
|
+
(`sealSiteSubmission`), which only adds a reason. Traps and a per-client
|
|
5627
|
+
budget run first, so the provider is never asked about what they flag.
|
|
5628
|
+
An anonymous submission without a valid seal (API, MCP, forged) is held
|
|
5629
|
+
as unchecked while screening is on; authenticated callers are exempt; it
|
|
5630
|
+
is never copied. A submission rescued from spam is not copied either. The Paradise adapter sends `form_id`, `client_ip` and the longest
|
|
5631
|
+
multi-line answer, nothing else, with a 4-second limit. Lead sink: core's
|
|
5632
|
+
`forms.submitted` listener `onFormSubmittedLeadSink` →
|
|
5633
|
+
`src/modules/forms/lead-sink.ts` copies only `received` submissions whose
|
|
5634
|
+
event says `fromSiteForm`, and throws on every failure so the outbox
|
|
5635
|
+
retries and then dead-letters it for replay.
|
|
5636
|
+
The notice under every form (`ProviderNotice` in
|
|
5637
|
+
`src/modules/forms/block.tsx`, `forms.public.notice.*` in four locales)
|
|
5638
|
+
names the provider, what is sent and why while either is on. Evidence:
|
|
5639
|
+
`tests/core/form-screening-lead-sink.test.ts`,
|
|
5640
|
+
`tests/core/form-intake-screening.test.ts`; operator contract
|
|
5641
|
+
`deploy/paradise-modern.md`; changeset `form-screening-lead-sink.md`.
|
|
5642
|
+
Unchecked: no live assessment or lead copy against the provider.)*
|
|
5643
|
+
*(Progress 2026-10-23, C3.31–C3.34 together: these four items replace the
|
|
5644
|
+
Paradise Modern parts of PR #529 under the owner's 2026-10-22 decision
|
|
5645
|
+
that every outside service is a neutral category and Paradise Modern one
|
|
5646
|
+
optional adapter in it; #529's model-gateway half was superseded by #571.
|
|
5647
|
+
Foundation landed first: `src/adapters/paradise/config.ts` and
|
|
5648
|
+
`src/adapters/paradise/http.ts` — HTTPS only (loopback for tests),
|
|
5649
|
+
`redirect: "error"`, the site key only to the configured origin, every
|
|
5650
|
+
call refused in the public playground — with `paradiseRequest` registered
|
|
5651
|
+
as provider I/O in `tests/core/long-running-service-boundary.test.ts`;
|
|
5652
|
+
coverage `tests/core/paradise-http.test.ts`; operator guide
|
|
5653
|
+
`deploy/paradise-modern.md`. No box is checked: no live acceptance against
|
|
5654
|
+
the provider has been run.)*
|
|
5655
|
+
- [ ] **C3.35** Ship a launch template and a private preview mode, so a
|
|
5656
|
+
planning tool or agent can turn an approved business plan into a working
|
|
5657
|
+
one-offer site in minutes without publishing it. A launch spec
|
|
5658
|
+
(`format: "freeholder-launch-spec"`, version 1: business, brand tokens,
|
|
5659
|
+
required status copy, one priced offer, contact and an optional intro-call
|
|
5660
|
+
request) installs once into an empty site through ordinary services
|
|
5661
|
+
(`launch.install`, or `FREEHOLDER_LAUNCH_SPEC` at boot like the demo): SSR
|
|
5662
|
+
pages within §5, an offer page with its price and a request form, contact
|
|
5663
|
+
and call-request forms on the contact spine, and the status copy in the
|
|
5664
|
+
announcement bar of every page and on `/status`. `FREEHOLDER_PREVIEW_KEY`
|
|
5665
|
+
keeps every public surface (pages, media, OG, llms.txt, sitemap, the
|
|
5666
|
+
anonymous API) behind a signed, expiring `/preview-access` link exchanged
|
|
5667
|
+
for an HttpOnly cookie; every response carries `X-Robots-Tag: noindex`,
|
|
5668
|
+
robots.txt disallows everything, and IndexNow never pings. Admin, sign-in,
|
|
5669
|
+
setup and `/api/health` stay open so the owner can claim the site. Open
|
|
5670
|
+
until a preview built from a real plan is served from a hosted instance and
|
|
5671
|
+
checked through the signed link, with an unauthenticated request refused.
|
|
5672
|
+
*(Progress 2026-11-05: `src/modules/seed/launch.ts`,
|
|
5673
|
+
`src/core/preview/private-preview.ts`, `src/core/preview/route-gate.ts`,
|
|
5674
|
+
`proxy.ts`, `app/robots.txt/route.ts`, `app/sitemap.xml/route.ts`,
|
|
5675
|
+
`src/core/seo/indexnow.ts`; example spec `seed/launch/example.json`;
|
|
5676
|
+
operator guide `deploy/launch-template.md`; evidence
|
|
5677
|
+
`tests/core/launch-template.test.ts`, `tests/core/private-preview.test.ts`;
|
|
5678
|
+
changeset `launch-template-private-preview.md`. A free intro call is a
|
|
5679
|
+
request form, not a calendar booking: the booking flow prices every
|
|
5680
|
+
bookable service, and a zero price is refused.)* *(Progress 2026-11-06:
|
|
5681
|
+
Stripe's signed webhooks reach a preview. A `POST` with `Stripe-Signature`
|
|
5682
|
+
to exactly `/api/payouts/stripe_connect/webhook` or
|
|
5683
|
+
`/api/payments/webhooks/stripe` passes the gate; the route verifies the
|
|
5684
|
+
signature itself. Unsigned requests, other methods and other paths stay
|
|
5685
|
+
gated. Evidence `tests/core/private-preview-webhooks.test.ts`; changeset
|
|
5686
|
+
`preview-stripe-webhooks.md`.)*
|
|
5687
|
+
- [ ] **C3.36** Preview mail: on a private preview (`FREEHOLDER_PREVIEW_KEY`)
|
|
5688
|
+
transactional mail (sign-in links, notifications) works without a public
|
|
5689
|
+
domain, but reaches only people the preview already involves: the owner's
|
|
5690
|
+
addresses in `FREEHOLDER_PREVIEW_MAIL_ALLOW`, and contacts who signed up or
|
|
5691
|
+
wrote in through the preview itself. It goes through the configured
|
|
5692
|
+
delivering adapter (Paradise Modern by default) under a preview-wide daily
|
|
5693
|
+
cap. Anything else, or anything while no adapter delivers, is held in a
|
|
5694
|
+
preview outbox the owner reads in the admin. Campaign and bulk mail are
|
|
5695
|
+
refused on a preview. Open until a sign-in link is delivered on a hosted
|
|
5696
|
+
preview.
|
|
5697
|
+
*(Progress 2026-11-05: `src/core/mail/preview.ts` holds the policy and the
|
|
5698
|
+
owner's `mail.listHeld` / audited `mail.openHeld` (mail manage, never an
|
|
5699
|
+
API key); `sendMail`, `assertMailReady`, `deliverQueuedMail` and
|
|
5700
|
+
`pruneExpiredMailOutbox` in `src/core/mail/service.ts` apply it; a held
|
|
5701
|
+
message is a `held` delivery with a `hold_reason` and its encrypted body
|
|
5702
|
+
kept in `mail_outbox` (`db/migrations/0060_mail_preview_outbox.sql`).
|
|
5703
|
+
Recipients: `FREEHOLDER_PREVIEW_MAIL_ALLOW` or an existing contact; cap
|
|
5704
|
+
`FREEHOLDER_PREVIEW_MAIL_DAILY_CAP` (default 100 per rolling 24 hours).
|
|
5705
|
+
Outbox screen `app/(admin)/admin/mail/page.tsx`; operator guide
|
|
5706
|
+
`deploy/launch-template.md` ("Preview mail"); evidence
|
|
5707
|
+
`tests/core/preview-mail.test.ts`; changeset `preview-mail.md`. No sign-in
|
|
5708
|
+
link has been delivered on a hosted preview yet.)*
|
|
5709
|
+
- [ ] **C3.37** Service intake and delivery: a form marked as an intake opens
|
|
5710
|
+
a project for the person who sent it. In the portal it reads New,
|
|
5711
|
+
In progress or Delivered (`enquiry`/`active`/`complete`). The owner's
|
|
5712
|
+
**Deliver** action on a project attaches a deliverable file as a document
|
|
5713
|
+
shared with that contact, completes the project and notifies the customer,
|
|
5714
|
+
who downloads it from My Account. The services, receipts and permissions
|
|
5715
|
+
are the admin's own. Open until a hosted preview shows a delivered file in
|
|
5716
|
+
a customer's portal.
|
|
5717
|
+
*(Progress 2026-11-05: `forms.intake` (`{ projectTitle }`, migration
|
|
5718
|
+
`0058_service_intake_delivery`) marks an intake; `forms.submit` and a spam
|
|
5719
|
+
rescue open the project in the submission's transaction through
|
|
5720
|
+
`projects.openFromIntake` (system-only, idempotent per submission via its
|
|
5721
|
+
`form_submission` link and an advisory lock). `projects.deliver` (scoped:
|
|
5722
|
+
admin, API and MCP alike) refuses a project with no contact, a changed
|
|
5723
|
+
contact, a cancelled project and non-staff callers; it composes
|
|
5724
|
+
`documents.save`/`addVersion`/`share` (login share for the contact),
|
|
5725
|
+
completes the project, stores `projects.delivery_note`, and notifies the
|
|
5726
|
+
contact (`projects.delivered`), replaying a repeat without a second
|
|
5727
|
+
document or notice. The portal's projects room maps statuses through
|
|
5728
|
+
`PortalRecord.statusKey` (`portal.project.status.*`, four locales) and
|
|
5729
|
+
lists delivered files as `/portal/files/[id]` links. Admin: Deliver and
|
|
5730
|
+
Start work on `/admin/projects/[id]`; "Open a project titled" in the form
|
|
5731
|
+
builder. `launch.install` makes `offer-request` an intake (`intakeForms`);
|
|
5732
|
+
version 1 specs are unchanged. Evidence
|
|
5733
|
+
`tests/core/service-intake-delivery.test.ts`; guide
|
|
5734
|
+
`deploy/launch-template.md`; changeset `service-intake-delivery.md`.
|
|
5735
|
+
Unchecked: no hosted preview has shown a delivered file yet.)*
|
|
5736
|
+
- [ ] **C3.38** File fields in forms: a `file` field kind with an accepted
|
|
5737
|
+
media kind (audio, document, image) and a size limit at or below the media
|
|
5738
|
+
limit for that kind. It uploads through the existing resumable media upload
|
|
5739
|
+
API with content sniffing, is attached to the submission, the contact and
|
|
5740
|
+
(for an intake) the project, and the owner can open it. Anonymous visitors
|
|
5741
|
+
are asked to sign in before uploading. Open until a hosted preview accepts
|
|
5742
|
+
an upload and refuses a wrong type and an oversize file.
|
|
5743
|
+
*(Progress 2026-11-05: `src/modules/forms/fields.ts` (`file` kind, `accept`
|
|
5744
|
+
and `maxMb` within `MEDIA_LIMITS`), `src/modules/forms/service.ts`
|
|
5745
|
+
(`forms.submit` file checks, `forms.openSubmissionFile`,
|
|
5746
|
+
`forms.listSubmissionFiles`, privacy export and erasure),
|
|
5747
|
+
`src/modules/forms/FileField.tsx` and `src/modules/forms/block.tsx`,
|
|
5748
|
+
`src/core/media/service.ts` (`provenance.purpose: "form"` makes the asset
|
|
5749
|
+
private at creation), `app/(admin)/admin/forms/files/[id]/route.ts`;
|
|
5750
|
+
migration `0059_form_submission_files.sql`; operator notes
|
|
5751
|
+
`deploy/media-lifecycle.md`; evidence `tests/modules/form-file-fields.test.ts`;
|
|
5752
|
+
changeset `form-file-fields.md`. Uploads are bound to a signed-in customer
|
|
5753
|
+
session only: the capture-token upload links are owner-issued capabilities
|
|
5754
|
+
for a media capture session, so no per-render anonymous grant was added.
|
|
5755
|
+
Not yet done: attaching the file to an intake's project (with C3.37) and
|
|
5756
|
+
the hosted-preview acceptance.)*
|
|
5757
|
+
- [ ] **C3.39** Launch spec version 2 for a working preview. It adds customer
|
|
5758
|
+
accounts in the navigation (sign in, My Account), an onboarding intake
|
|
5759
|
+
form with optional file fields on `/start`, intake on offer requests, and
|
|
5760
|
+
payment-step copy that names test mode without a site-wide "not open" banner.
|
|
5761
|
+
It builds on C3.35–C3.38, and version 1 specs keep installing unchanged.
|
|
5762
|
+
Open until a hosted preview built from a version 2 spec completes sign-up,
|
|
5763
|
+
intake, owner delivery and the customer's download.
|
|
5764
|
+
*(Progress 2026-11-05: `launchSpecSchema` takes version 1 or 2;
|
|
5765
|
+
version 2 adds `accounts`, `intake` and `payments` and installs `/start`
|
|
5766
|
+
(account step, `onboarding` intake form, payment step), "My account" and
|
|
5767
|
+
"Get started" in the navigation. Example `seed/launch/example-v2.json`;
|
|
5768
|
+
evidence `tests/core/launch-template.test.ts`; guide
|
|
5769
|
+
`deploy/launch-template.md`.)*
|
|
5770
|
+
- [ ] **C3.40** Enforce a plugin's declared permissions at runtime (§26
|
|
5771
|
+
item 1). A plugin's service calls run as a `plugin:<name>` actor whose grants
|
|
5772
|
+
are its declared scopes, so the service registry refuses a call outside
|
|
5773
|
+
them and the audit log names the plugin. A failing plugin degrades to a
|
|
5774
|
+
disabled widget at runtime as well as at boot. The install screen shows
|
|
5775
|
+
each scope in plain language and records the owner's consent before
|
|
5776
|
+
enable. Open; recorded 2026-11-05 when §26 was corrected to match the code.
|
|
5777
|
+
- [ ] **C3.41** Route outbound requests from plugin code through a fetch
|
|
5778
|
+
wrapper that refuses a plugin without `network:external` and applies the
|
|
5779
|
+
same outbound boundary as core (private-address refusal, timeouts). Open;
|
|
5780
|
+
today only importers must declare the scope.
|
|
5781
|
+
- [ ] **C3.42** Verify plugin and registry-index signatures with publisher
|
|
5782
|
+
Ed25519 public keys instead of an HMAC over a caller-supplied shared
|
|
5783
|
+
secret. That covers key distribution for registries and publishers, key
|
|
5784
|
+
rotation, and refusal of a plugin whose signature does not verify against a
|
|
5785
|
+
trusted key. Release feeds already use Ed25519 (§39.3, C10.03). Open.
|
|
4957
5786
|
|
|
4958
5787
|
### 43.9 C4 — Safe agent workforce, connections, scheduling, and briefing
|
|
4959
5788
|
|
|
@@ -5009,6 +5838,33 @@ deployments are portable, testable and incapable of silently forking the truth.
|
|
|
5009
5838
|
no longer overwrites a task the gate parked as `waiting_approval`.
|
|
5010
5839
|
Provider pricing into `cost_cents` is C4.06's ledger. Coverage in
|
|
5011
5840
|
`tests/core/agents-managed-loop.test.ts` with a scripted provider. **F04** `/admin/work` pause/kill. **F05** `agents.connect`/`claimTask`/`reportStep`/`completeTask` at `/api/v1/agents.*`; the managed loop's tool surface is `mcp/tools.toolsFor` (same catalogue). **F07** `tests/core/agents-workforce-adapter.test.ts` covers permission, refusal and recovery. **F09** N/A as C11.14 — this item uses the shared audit/outbox; product-wide export/restore/retention/erasure proof is still open. **F12** `tests/core/agents-workforce-adapter.test.ts` is the composition proof.)
|
|
5841
|
+
**Provider naming, 2026-10-22 (owner decision, Tony Aly):** the
|
|
5842
|
+
OpenAI-compatible family is neutral. `gateway` reaches any
|
|
5843
|
+
OpenAI-compatible endpoint (bearer key, base URL and model named on the
|
|
5844
|
+
connection or by `AGENT_GATEWAY_URL`/`AGENT_GATEWAY_API_KEY`/
|
|
5845
|
+
`AGENT_GATEWAY_MODEL`; no host or model is guessed); `paradise` is
|
|
5846
|
+
Paradise Modern's hosted gateway, one optional provider, with its
|
|
5847
|
+
unchanged `x-api-key`, default host and model and `PARADISEMODERN_API_KEY`.
|
|
5848
|
+
The §37 builder takes the same two choices. `pm_brain` stays an accepted
|
|
5849
|
+
alias everywhere it was accepted (`FREEHOLDER_AGENT`, `adapters.agent`,
|
|
5850
|
+
`agents.connect`, stored rows), through one map in
|
|
5851
|
+
`src/adapters/agent/aliases.ts`. Stored rows are aliased on read and never
|
|
5852
|
+
rewritten, so rolling back finds them; new writes store `paradise`, which
|
|
5853
|
+
older builds do not know (the changeset says so). The instance-wide
|
|
5854
|
+
`AGENT_GATEWAY_API_KEY` is sent only to `AGENT_GATEWAY_URL`: a gateway
|
|
5855
|
+
connection on another host must name its own `credential_ref`, and
|
|
5856
|
+
doctor names every missing gateway setting. Evidence:
|
|
5857
|
+
`tests/core/agents-workforce-adapter.test.ts` (gateway wire shape, no
|
|
5858
|
+
guessed host, key scoping, legacy env and stored-row aliases, doctor),
|
|
5859
|
+
`src/core/config.test.ts`, changeset `neutral-provider-names.md`.
|
|
5860
|
+
*(Audit follow-up 2026-10-23: the builder and workforce now send
|
|
5861
|
+
`x-pm-project` (`PARADISEMODERN_PROJECT`) when Paradise is the gateway —
|
|
5862
|
+
Paradise refuses a call naming no project it knows — and never to any
|
|
5863
|
+
other gateway; a base URL ending in `/v1` no longer produces
|
|
5864
|
+
`/v1/v1/chat/completions` for any gateway; gateway calls refuse redirects
|
|
5865
|
+
so a key never follows one. Carried over from PR #529. Regression tests in
|
|
5866
|
+
`tests/core/agents-workforce-adapter.test.ts`; changeset
|
|
5867
|
+
`gateway-project-header.md`.)*
|
|
5012
5868
|
- [x] **C4.06** Enforce per-run/task/agent/period budgets before every step;
|
|
5013
5869
|
build spend ledger, estimates, alerts and owner-readable reporting.
|
|
5014
5870
|
(`src/core/agents/pricing.ts` prices a turn in integer cents with bigint
|
|
@@ -5198,6 +6054,20 @@ deployments are portable, testable and incapable of silently forking the truth.
|
|
|
5198
6054
|
`timezone`, `next_run_at`, `last_run_at`, `catch_up` and `last_outcome` with
|
|
5199
6055
|
a partial index on the due predicate. Coverage in
|
|
5200
6056
|
`tests/core/agents-schedule.test.ts`. **F04** `/admin/briefing` daily briefing. **F05** `agents.setPlaybookSchedule` at `/api/v1/agents.setPlaybookSchedule`, MCP `agents_setPlaybookSchedule`; `agents.runDuePlaybooks` is the system tick (hidden). **F07** `tests/core/agents-schedule.test.ts` covers permission, refusal and recovery. **F09** N/A as C11.14 — this item uses the shared audit/outbox; product-wide export/restore/retention/erasure proof is still open. **F12** `tests/core/agents-schedule.test.ts` is the composition proof.)
|
|
6057
|
+
Audit follow-up 2026-10-21: a merge-queue failure (`expected 1792641000000 to
|
|
6058
|
+
be greater than 1792641000004`) was investigated as a possible double run and
|
|
6059
|
+
is a test-harness defect, not a product one. A tick at hh:m4:59.996 correctly
|
|
6060
|
+
schedules the boundary four milliseconds away; the assertion read the real
|
|
6061
|
+
clock after the call and saw that genuine next occurrence as already due.
|
|
6062
|
+
`next_run_at` is computed strictly after the tick's `now`, and a tick is only
|
|
6063
|
+
claimed when `next_run_at <= now`, so it is already strictly after
|
|
6064
|
+
max(now, scheduled); claims are row-locked `skip locked`, so a second
|
|
6065
|
+
scheduler skips or re-reads the advanced row. The suite now pins the
|
|
6066
|
+
JavaScript clock (Date only), and adds a boundary regression (tick 4 ms
|
|
6067
|
+
before the boundary schedules exactly the boundary, nothing runs before it,
|
|
6068
|
+
the boundary occurrence runs once and advances one window) and a concurrent
|
|
6069
|
+
two-scheduler tick that starts exactly one run, in
|
|
6070
|
+
`tests/core/agents-schedule.test.ts`. No product or release-note change.
|
|
5201
6071
|
- [x] **C4.15** Build briefing entities, contributor registry, preassembly,
|
|
5202
6072
|
needs-me-first ordering, read state and per-section preferences.
|
|
5203
6073
|
(`src/core/briefing/` holds the three tables §42 names and the mechanism
|
|
@@ -5711,6 +6581,37 @@ owner operations, never substitute for them.
|
|
|
5711
6581
|
and lifecycle proofs are in `tests/core/checkout-policy.test.ts` and
|
|
5712
6582
|
`tests/core/catalog-orders.test.ts`; the order detail shows each stage and
|
|
5713
6583
|
its seller release control.
|
|
6584
|
+
Audit follow-up 2026-10-23 (C5.18/C5.20/C5.21/C5.22, live audit of
|
|
6585
|
+
demo.freeholder.ai): checkout could not complete. `applyVariantMatrix`
|
|
6586
|
+
created every variant with `requires_shipping = true`, so digital,
|
|
6587
|
+
service and pass products demanded an address; new variants now ship by
|
|
6588
|
+
kind (`shipsByDefault`). The demo had no shipping zone; it now seeds a
|
|
6589
|
+
Canada flat rate and studio pickup. `quoteMethods` only quoted pickup when
|
|
6590
|
+
the caller named a location, which the storefront never does; pickup is now
|
|
6591
|
+
offered from any zone and a named location only narrows. Checkout refusals
|
|
6592
|
+
raise `CheckoutFieldError` (`src/modules/catalog/checkout-fields.ts`); the
|
|
6593
|
+
action returns the shopper's answers through the public form-return cookie
|
|
6594
|
+
and the page marks the named fields with `aria-invalid`. AddToCart shows the
|
|
6595
|
+
price ("From …"), lists options as pre-chosen radios with the button in
|
|
6596
|
+
view; the public shell announces `?added=` in a status region; cart lines
|
|
6597
|
+
show the variant name, not the SKU; `catalog.listOrders` joins the contact's
|
|
6598
|
+
name and email for the admin list. Evidence: `tests/core/cart-storefront.test.ts`,
|
|
6599
|
+
`checkout-fields.test.ts`, `shipping-quote.test.ts`, `catalog-orders.test.ts`,
|
|
6600
|
+
`merch-blocks.test.ts`, `seed-demo-busy.test.ts` (fictional-email demo
|
|
6601
|
+
checkout of the calendar and the voucher); browser specs updated, not yet
|
|
6602
|
+
re-run (disk exhaustion on the build host); changeset
|
|
6603
|
+
`storefront-checkout-completes.md`.
|
|
6604
|
+
Review follow-up (PR #584):
|
|
6605
|
+
- Pickup keeps to its zone. Local delivery needs its named location again.
|
|
6606
|
+
- Quotes are ordered by price, then name. When more than one method
|
|
6607
|
+
applies and none was chosen, `checkoutCart` refuses with `chooseMethod`;
|
|
6608
|
+
the page then renders the server-quoted methods, so the no-JS path works.
|
|
6609
|
+
- Migration `0056_nonshipping_variant_backfill.sql` clears
|
|
6610
|
+
`requires_shipping` on digital/service/pass variants.
|
|
6611
|
+
`catalog.updateProduct` re-derives it when a draft's kind changes.
|
|
6612
|
+
- The "From" price uses the cheapest sellable variant.
|
|
6613
|
+
- `listOrders` returns `contactEmail` only to callers who may read contacts.
|
|
6614
|
+
- The saved answers are dropped on `verification_sent`.
|
|
5714
6615
|
- [x] **C5.23** Build coupons, gift cards/credit ledger, bundles, order bumps,
|
|
5715
6616
|
post-add offers and abandoned-cart recovery without parallel money paths.
|
|
5716
6617
|
*(Evidence: `coupons`, `coupon_redemptions`, `cart_coupons`, `gift_cards`,
|
|
@@ -5777,6 +6678,23 @@ owner operations, never substitute for them.
|
|
|
5777
6678
|
covers the same localized invoice URL contract. Hosted-provider timeout,
|
|
5778
6679
|
replay and settlement tests use adapter doubles; this evidence does not
|
|
5779
6680
|
claim a live provider charge or completion of C10.26.)*
|
|
6681
|
+
Pre-launch check 2026-10-23: an event admission invoice showed the line at
|
|
6682
|
+
CA$106.40 above a CA$95.00 subtotal and CA$11.40 tax. The invoice itself
|
|
6683
|
+
was right (tax-exclusive zone: line subtotal 95.00, line tax 11.40, line
|
|
6684
|
+
total 106.40, invoice subtotal 95.00); the customer projection
|
|
6685
|
+
`invoicing.customerInvoice` gave the page only the line's tax-inclusive
|
|
6686
|
+
`totalMinor` to print beside a pre-tax subtotal. Each line now also
|
|
6687
|
+
carries `amountMinor` (the line's pre-discount, pre-tax subtotal — exactly
|
|
6688
|
+
what the invoice subtotal sums, with the discount on its own row), which
|
|
6689
|
+
the portal invoice prints; `totalMinor` stays for existing API readers.
|
|
6690
|
+
The admin detail prints "quantity × unit = gross" as entered and, when
|
|
6691
|
+
they differ, the pre-tax amount ("Before tax", tax-inclusive zones) and
|
|
6692
|
+
any line discount on their own labelled lines (`invoiceLineAmounts`).
|
|
6693
|
+
Regressions: `tests/core/events.test.ts` ("taxes admission where the event
|
|
6694
|
+
happens…"), `tests/core/customer-invoices.test.ts` (discounted,
|
|
6695
|
+
tax-exclusive and tax-inclusive lines add up to the printed subtotal and
|
|
6696
|
+
the admin arithmetic holds). Changeset
|
|
6697
|
+
`demo-prelaunch-polish.md`.
|
|
5780
6698
|
|
|
5781
6699
|
- [x] **C5.26** Build owner-configured calculators that compute only from inputs
|
|
5782
6700
|
the owner published as attestations (§4.18) — affordability, cost ranges,
|
|
@@ -6168,24 +7086,152 @@ payment, tax, inventory and reporting path, with no floating-point money.
|
|
|
6168
7086
|
the policy says, because there is nothing left to inspect. `/admin/hire`,
|
|
6169
7087
|
ordered overdue-first. `0094_rentals.sql`. Coverage in
|
|
6170
7088
|
`tests/core/rentals.test.ts`. **F04** `/admin/hire` rentals. **F05** `rentals.quote`/`reserve`/`handOver`/`takeBack`/`setTerms`/`list` at `/api/v1/rentals.*`, MCP `rentals_*`. **F07** `tests/core/rentals.test.ts` covers permission, refusal and recovery. **F09** N/A as C11.14 — this item uses the shared audit/outbox; product-wide export/restore/retention/erasure proof is still open. **F12** `tests/core/rentals.test.ts` is the composition proof.)
|
|
6171
|
-
- [
|
|
7089
|
+
- [x] **C6.11** Build events/classes with venue, sessions, seat inventory,
|
|
6172
7090
|
tickets/passes, waitlists, schema.org Event, ICS and check-in.
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
`
|
|
6179
|
-
`
|
|
6180
|
-
|
|
6181
|
-
`
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
7091
|
+
(**A paid ticket is an invoice, and a seat is a hold.** §4.3 settles the
|
|
7092
|
+
money shape — the invoice is the single money object — so `events.register`
|
|
7093
|
+
never confirms a paid seat: under the session row lock it writes a
|
|
7094
|
+
`reserved` registration with a 30-minute `hold_expires_at` and creates *and
|
|
7095
|
+
issues* the invoice (`source_type "event"`, one per registration under
|
|
7096
|
+
`invoices_source_idx`, idempotency-keyed on the registration) in the same
|
|
7097
|
+
transaction, returning `{ registration, paymentUrl }` — the portal invoice
|
|
7098
|
+
page under its HMAC capability. Settlement stays on the invoicing module:
|
|
7099
|
+
`invoicing.settlePayment` branches on `sourceType "event"` exactly as it
|
|
7100
|
+
does for orders, a fully paid invoice flips the hold to `confirmed`
|
|
7101
|
+
atomically (`events.confirmPaidRegistration`, a system service), and a
|
|
7102
|
+
partial payment leaves the seat reserved and outside the sweeper's reach.
|
|
7103
|
+
**A hold that never settles stops being a seat.** The pg-boss job
|
|
7104
|
+
`events.expireHeldRegistrations` (every five minutes, thin wrapper over the
|
|
7105
|
+
system service) cancels lapsed unpaid holds, voids the orphaned invoice so
|
|
7106
|
+
its link can never be paid, and runs the promotion cascade — a paid
|
|
7107
|
+
waitlisted row becomes a fresh hold with its own issued invoice, and the
|
|
7108
|
+
emailed invoice *is* the waitlist notification, pay link included. Refund
|
|
7109
|
+
or void of an event invoice cancels the seat and promotes the next in line
|
|
7110
|
+
through the manifest's `listens` (`invoice.refunded`, `invoice.voided` →
|
|
7111
|
+
`events.cancelRegistrationForInvoice`); cancelling a *settled* registration
|
|
7112
|
+
reports its invoice id on the outcome and leaves the refund a deliberate
|
|
7113
|
+
invoicing act — a seat is not a payment, the same line C6.08 drew.
|
|
7114
|
+
**Admission is evidence, not a row.** Check-in refuses a paid registration
|
|
7115
|
+
without a settled invoice — legacy confirmations from before settlement
|
|
7116
|
+
existed stay refused — and the settled invoice id rides the outcome row.
|
|
7117
|
+
A cancelled or lapsed hold's invoice refuses payment at checkout through
|
|
7118
|
+
the checkout-eligibility hook (`registerCheckoutEligibility("event", …)`:
|
|
7119
|
+
still reserved, hold live, session ahead on a published event), and one
|
|
7120
|
+
live registration per person per session makes a double submit a conflict
|
|
7121
|
+
rather than a second seat. A hold with an in-flight payment attempt cannot
|
|
7122
|
+
be released — cancellation refuses and the sweeper skips until the attempt
|
|
7123
|
+
resolves, the same race guard `catalog.cancelOrder` draws, so a settlement
|
|
7124
|
+
never lands on a seat somebody else now holds. Free registration, capacity serialization, the
|
|
7125
|
+
waitlist and check-in are unchanged for unpaid tickets. The public proof:
|
|
7126
|
+
the `eventDetail` block carries a server-rendered registration form
|
|
7127
|
+
(session/ticket pickers, name/email/quantity, posting to
|
|
7128
|
+
`app/(public)/event-actions.ts`); a free seat confirms inline, a paid seat
|
|
7129
|
+
redirects to the payment page, a full session takes the waitlist, and a
|
|
7130
|
+
draft, cancelled or finished event renders no form. Merge and privacy cover
|
|
7131
|
+
`event_registrations`; the demo class (`src/modules/events/onboarding.ts`)
|
|
7132
|
+
is paid, so it genuinely sells. `db/migrations/0052_event_paid_admission.sql`;
|
|
7133
|
+
`tests/core/events.test.ts` (hold + invoice + payment URL, concurrency
|
|
7134
|
+
serialized onto the waitlist, partial-payment containment, expiry sweep
|
|
7135
|
+
with paid and free promotion, checkout refusal, refund cascade, duplicate
|
|
7136
|
+
refusal), `tests/core/client-readiness-security.test.ts` (legacy guards:
|
|
7137
|
+
foreign/inactive tickets refused, unverifiable paid rows refused at
|
|
7138
|
+
check-in), `tests/browser/events.spec.ts` (a visitor buys the paid class
|
|
7139
|
+
through the form, lands on the invoice surface, the owner records the
|
|
7140
|
+
offline payment at /admin/payments, the registration confirms and checks
|
|
7141
|
+
in; axe on the form and its result states, light and dark). **F04**
|
|
7142
|
+
`/admin/events` plus the public registration form on the event page.
|
|
7143
|
+
**F05** `events.create`/`update`/`addSession`/`addTicket`/`register`/`list`/`publish`
|
|
7144
|
+
at `/api/v1/events.*`, MCP `events_*`; the settlement, sweep and
|
|
7145
|
+
refund-cancellation phases are system services, kept off every projection
|
|
7146
|
+
by `tests/core/internal-services.test.ts`. **F07**
|
|
7147
|
+
`tests/core/events.test.ts` covers refusal and failure modes (unpaid
|
|
7148
|
+
check-in, lapsed-hold checkout, duplicates, partials); scoped permission
|
|
7149
|
+
enforcement on the service boundary is proven for every service by
|
|
7150
|
+
`tests/core/api.test.ts` (C0.11 audit narrowing). **F09** N/A as C11.14 —
|
|
7151
|
+
this item uses the shared audit/outbox; product-wide
|
|
7152
|
+
export/restore/retention/erasure proof is still open. **F12**
|
|
7153
|
+
`tests/core/events.test.ts` is the composition proof.)
|
|
7154
|
+
Audit follow-up 2026-10-21: the hold sweep ran up to 100 cancellations in
|
|
7155
|
+
one transaction, so one failing promotion (the next person's email
|
|
7156
|
+
erased) rolled every release back on every run. It is now an orchestrated
|
|
7157
|
+
service: each hold is released by `events.expireHeldRegistration` in its
|
|
7158
|
+
own transaction, failures are counted (`failed`) and logged, and a
|
|
7159
|
+
payment in flight is counted `blocked`. The lapsed-hold query itself
|
|
7160
|
+
leaves out holds whose invoice has money on it (the owner reconciles
|
|
7161
|
+
those) and orders holds with a payment attempt in flight after every
|
|
7162
|
+
other, so neither can fill a batch and starve holds that lapsed later.
|
|
7163
|
+
(A hold whose release keeps failing is still retried oldest-first; that
|
|
7164
|
+
residual is logged on every run.)
|
|
7165
|
+
Admission invoices said tax was applied at issue but were created
|
|
7166
|
+
`not_applicable`; the reason text now says plainly that no tax is
|
|
7167
|
+
added. Regression: `tests/core/events.test.ts`; changeset
|
|
7168
|
+
`event-hold-sweep.md`.
|
|
7169
|
+
Admission tax 2026-10-21 (proposed; awaiting the site owner's
|
|
7170
|
+
confirmation, kept in its own commit so it can be reverted alone):
|
|
7171
|
+
admission is taxed through the same calculate path as every other sale,
|
|
7172
|
+
with the place of supply where the event happens — from the primary
|
|
7173
|
+
business location to the event's saved venue location, or to the
|
|
7174
|
+
business location when the event names no venue. A venue typed only as
|
|
7175
|
+
free text (`venueName`/`venueAddress` without a saved `venueLocationId`)
|
|
7176
|
+
cannot be placed in a tax jurisdiction, so it is taxed as if held at the
|
|
7177
|
+
business and the invoice memo says so (follow-up commit, droppable with
|
|
7178
|
+
the first); choosing a saved location as the venue taxes it there. A
|
|
7179
|
+
business with no location at all gets `not_applicable`, as catalog
|
|
7180
|
+
orders do. Ticket prices are shown as entered, as store prices are; in a
|
|
7181
|
+
tax-exclusive zone the tax is its own line on the invoice the attendee
|
|
7182
|
+
lands on before paying. Regression: `tests/core/events.test.ts` ("taxes
|
|
7183
|
+
admission where the event happens…"); changeset `event-admission-tax.md`.
|
|
7184
|
+
Audit follow-up 2026-10-23 (hands-on audit of demo.freeholder.ai):
|
|
7185
|
+
**Repeated paid submit.** "Register and pay" reported
|
|
7186
|
+
`failure=invalid` while the hold and its invoice existed: the
|
|
7187
|
+
registration itself commits, but a second submit of the same form (a
|
|
7188
|
+
double click, a retried request) met the one-live-registration rule and
|
|
7189
|
+
answered `conflict`, so the last answer the visitor saw was a failure.
|
|
7190
|
+
`events.register` now replays, bound to the submitter rather than the
|
|
7191
|
+
email: the form carries a random one-time `submissionToken` minted in
|
|
7192
|
+
the visitor's browser (`SubmissionTokenField`; never server-rendered,
|
|
7193
|
+
because the playground lets a CDN share cookie-less CMS pages for a few
|
|
7194
|
+
seconds, and a token in shared HTML would be one token for everyone
|
|
7195
|
+
who loaded it). Its SHA-256 is stored on the registration
|
|
7196
|
+
(`event_registrations.submission_token_hash`, never in any output). A
|
|
7197
|
+
repeat with the same token, session, ticket and seat count within the
|
|
7198
|
+
hold window gets the same registration back — a paid one with the same
|
|
7199
|
+
invoice's payment page while it is issued, unpaid and its hold live,
|
|
7200
|
+
never a second invoice. Any other duplicate is a plain `conflict`, and
|
|
7201
|
+
the form answers it exactly like a full or closed session ("We couldn't
|
|
7202
|
+
register that request… If you already registered, check your email."),
|
|
7203
|
+
so someone who knows an attendee's email learns nothing and gets no
|
|
7204
|
+
invoice. Without JavaScript the token is empty and a repeat is answered
|
|
7205
|
+
that way too. Every public attempt, accepted or refused, also counts
|
|
7206
|
+
toward a pre-transaction limit (40/hour per client, or per email when
|
|
7207
|
+
the client has no address), so refusals cannot be probed for free. Every
|
|
7208
|
+
refusal still rolls back the whole transaction (no contact,
|
|
7209
|
+
registration or invoice written). Session time zones are validated on
|
|
7210
|
+
write (`isTimezone`), and the date formatters fall back to UTC for a
|
|
7211
|
+
stored zone Intl does not know rather than failing the page. **Public pages.** Event
|
|
7212
|
+
pages were built from the landing template, so its placeholder intro
|
|
7213
|
+
("This page is a block tree…"), its "Get in touch" button and, per
|
|
7214
|
+
preset, a products index or booking form appeared on every event page;
|
|
7215
|
+
an event page is now `page.blank` (its title) plus the bound
|
|
7216
|
+
`eventDetail`, and the landing copy itself no longer speaks to the
|
|
7217
|
+
owner. Sessions read in their own zone and the visitor's locale
|
|
7218
|
+
(`formatDateTimeRange`, "Sun, Nov 8, 4:00 – 6:00 PM PT"; since 2026-10-23
|
|
7219
|
+
North American zones use their generic abbreviation, PT/MT/CT/ET/AT/AKT,
|
|
7220
|
+
so BC, Alberta and Manitoba never read "PDT"/"MDT"/"CDT" in winter, and
|
|
7221
|
+
every other zone keeps ICU's short name, e.g. CET/CEST or GMT+1 —
|
|
7222
|
+
`tests/core/i18n.test.ts`) with the
|
|
7223
|
+
start on `<time datetime>`; seats read "3 of 8 seats left" in all four
|
|
7224
|
+
locales. **Past events.** `/events` listed published events whose public
|
|
7225
|
+
page did not exist (the busy demo bulk-inserts its past events), so four
|
|
7226
|
+
links answered 404. The list now includes only events with a live page —
|
|
7227
|
+
the rule the sitemap already follows — files finished events under "Past
|
|
7228
|
+
events" with their pages kept viewable and marked finished, and the busy
|
|
7229
|
+
demo builds its past events' pages the way publish does. Existing event
|
|
7230
|
+
pages pick up the new layout the next time the event is saved.
|
|
7231
|
+
Regression: `tests/core/events.test.ts` (repeated paid and free
|
|
7232
|
+
submits, refusal writes nothing, event page blocks, list/page/sitemap
|
|
7233
|
+
consistency), `tests/core/events-public-render.test.ts`; changeset
|
|
7234
|
+
`event-registration-and-pages.md`.
|
|
6189
7235
|
|
|
6190
7236
|
#### Quotes, contracts, projects, and time
|
|
6191
7237
|
- [x] **C6.12** Build quote draft/send/view/negotiate/revise/expire/accept/
|
|
@@ -6450,7 +7496,54 @@ payment, tax, inventory and reporting path, with no floating-point money.
|
|
|
6450
7496
|
**C6 exit:** the same availability and money engines can sell time, spaces,
|
|
6451
7497
|
equipment, classes and expertise without double-booking or duplicated records.
|
|
6452
7498
|
|
|
6453
|
-
- [
|
|
7499
|
+
- [x] **C6.19** Deliver real public self-serve service booking: service selection, live availability, verified customer identity, explicit price/terms, race-safe reservation, invoice/payment handoff and customer confirmation/reschedule/cancel. The contact-link embed is not acceptance.
|
|
7500
|
+
*(Closed 2026-10-14 against `C6.19` on `main` (`f9b155be`, released as 0.2.0-beta.3 and live on freeholder.ai). Evidence: `tests/modules/customer-surfaces.test.ts` (stale terms rejected, slot contention, retry identity, deposit invoice, ownership) and `tests/browser/customer-surfaces.spec.ts` (verified customer books, reschedules and cancels); /book serves 200; scope and limits in `deploy/customer-surfaces-2026-10-07.md`; F01–F12 rows in `deploy/f-criteria-matrix.md`. **F04** `app/(public)/book/page.tsx`. **F05** `catalog.publicBookingQuote`/`bookService`/`moveMyBooking` in `src/modules/catalog/public-booking.ts`, projected to HTTP/MCP and `packages/sdk/src/generated.ts`. **F07** customer ownership and privacy in `tests/modules/customer-surfaces.test.ts`. **F09** provider and deployment limits recorded in `deploy/customer-surfaces-2026-10-07.md`. **F12** `tests/browser/customer-surfaces.spec.ts` composed journey. Live payment-provider settlement stays with C11.05.)*
|
|
7501
|
+
Pre-launch check 2026-10-23: a service with no cancellation policy was
|
|
7502
|
+
quoted with the `NO_POLICY` fallback, so /book showed a "Cancellation and
|
|
7503
|
+
rescheduling policy" disclosure ("free until 0 hours", "reschedule up to
|
|
7504
|
+
100 times") while the appointment page said "No cancellation policy".
|
|
7505
|
+
`catalog.publicBookingQuote` now quotes `policy: null` when none is
|
|
7506
|
+
attached (cancelling still runs on `NO_POLICY`), and both pages print the
|
|
7507
|
+
same "No cancellation policy applies…" line; a booking that stored the
|
|
7508
|
+
old fallback reads the same way (`policyName` null, recognised
|
|
7509
|
+
structurally by `isNoPolicy`: name, no fee, no no-show fee, free window
|
|
7510
|
+
and reschedule limit all match the fallback; `tests/core/waitlists-and-policy.test.ts`). `bookingTermsHash` hashes `NO_POLICY` for
|
|
7511
|
+
the no-policy case, so the terms hash is byte-identical to the one pages
|
|
7512
|
+
computed before the change and a page open across the deploy still
|
|
7513
|
+
books. Regression:
|
|
7514
|
+
`tests/modules/customer-surfaces.test.ts`. Changeset
|
|
7515
|
+
`demo-prelaunch-polish.md`.
|
|
7516
|
+
Pre-launch check 2026-10-23 (opening date): with no `?date=`, /book
|
|
7517
|
+
opened on `new Date().toISOString().slice(0,10)` — UTC's today, so every
|
|
7518
|
+
evening in Pacific time it opened on tomorrow — and on a day with nothing
|
|
7519
|
+
free it led with "No times available on this date". The page now computes
|
|
7520
|
+
today in the business zone (`zonedDate`/`addDays`/`periodKey` from
|
|
7521
|
+
`src/core/i18n/zoned.ts`) and opens on the first business day with a free
|
|
7522
|
+
time: one ranged `scheduling.slots` call with `limit: 1` over the next
|
|
7523
|
+
week, widened to a 60-day window only when the week is empty
|
|
7524
|
+
(`app/(public)/book/opening-date.ts`). An anonymous visitor's answer is
|
|
7525
|
+
reused for 60 s in-process, keyed by offering, seller and party size only
|
|
7526
|
+
(never a move or a signed-in customer), so a fully booked service is not
|
|
7527
|
+
scanned on every view. With nothing free it opens on today with the
|
|
7528
|
+
existing message; a real `?date=` always wins, and one that does not exist
|
|
7529
|
+
(2026-02-31) counts as absent. A "day" is the business's day:
|
|
7530
|
+
`scheduling.slots` reads dates in each calendar's zone, so the day view,
|
|
7531
|
+
`catalog.bookService` and `catalog.moveMyBooking` ask the calendar days
|
|
7532
|
+
either side, cut to the business day's exact instants (or, for reserve
|
|
7533
|
+
and move, the one chosen instant) by the new optional `notBefore`/
|
|
7534
|
+
`notAfter` inputs of `scheduling.slots`, applied before the slot limit
|
|
7535
|
+
counts and DST-correct via `zonedInstant`
|
|
7536
|
+
(`src/core/scheduling/business-day.ts`). Filtering afterwards let the day
|
|
7537
|
+
before use up the 500-slot limit: three pool calendars open any hour cut
|
|
7538
|
+
the chosen day at 212 of 288 times; before, a Vancouver business with
|
|
7539
|
+
a UTC calendar never showed, and could not reserve, its evening times. The
|
|
7540
|
+
embed and the reschedule (`?move=`, searched with the booking excluded)
|
|
7541
|
+
render the same page. The resolver's `maxSlots` now caps each calendar and
|
|
7542
|
+
trims the sorted answer, rather than returning as soon as the first
|
|
7543
|
+
calendar filled it, which could hide a later calendar's earlier time.
|
|
7544
|
+
Regression: `tests/modules/booking-opening-date.test.ts`,
|
|
7545
|
+
`tests/modules/customer-surfaces.test.ts`, `tests/core/resolver.test.ts`.
|
|
7546
|
+
Changeset `booking-opening-date.md`.
|
|
6454
7547
|
|
|
6455
7548
|
### 43.12 C7 — Working CRM, messaging, inbox, and human operations
|
|
6456
7549
|
|
|
@@ -6717,6 +7810,12 @@ equipment, classes and expertise without double-booking or duplicated records.
|
|
|
6717
7810
|
the URL like every other list (C7.06). `/admin/inbox`, no JavaScript, with the
|
|
6718
7811
|
checkboxes and the action bar in one form. `0109_inbox_search.sql`. Coverage
|
|
6719
7812
|
in `tests/core/inbox.test.ts`. **F04** `/admin/inbox` search/bulk. **F05** `conversations.assign`/`snooze`/`setStatus`/`reply`/`bulk`/`search`/`counts` at `/api/v1/conversations.*`, MCP `conversations_*`. **F07** `tests/core/inbox.test.ts` covers permission, refusal and recovery. **F09** N/A as C11.14 — this item uses the shared audit/outbox; product-wide export/restore/retention/erasure proof is still open. **F12** `tests/core/inbox.test.ts` is the composition proof.)
|
|
7813
|
+
Pre-launch check 2026-10-23: the inbox list printed an assignee as a raw
|
|
7814
|
+
address (sam.okafor@demo.freeholder.test). `conversations.search` now
|
|
7815
|
+
returns `assigneeName` — the teammate's linked contact name, else the
|
|
7816
|
+
address's local part read as words — and the list shows it with the
|
|
7817
|
+
address on hover. Regression: `tests/core/inbox.test.ts`. Changeset
|
|
7818
|
+
`demo-prelaunch-polish.md`.
|
|
6720
7819
|
- [x] **C7.10** Build SMS adapter contract and at least one production adapter,
|
|
6721
7820
|
number provisioning/health and country/capability metadata. (The adapter
|
|
6722
7821
|
transports; core decides — §4.14 puts consent, quiet hours and who may be
|
|
@@ -7534,7 +8633,8 @@ permitted conversation on the same contact timeline.
|
|
|
7534
8633
|
**C8 exit:** the business can prove, deliver and support its work while each
|
|
7535
8634
|
customer has one secure, comprehensible home for the relationship.
|
|
7536
8635
|
|
|
7537
|
-
- [
|
|
8636
|
+
- [x] **C8.17** Complete usable session-bound customer portal records and sign-in return journeys. Customers can open their own bookings, quotes, orders, projects, rentals and files without exposing bearer credentials or another contact’s records.
|
|
8637
|
+
*(Closed 2026-10-14 against `C8.17` on `main` (`f9b155be`, released as 0.2.0-beta.3 and live on freeholder.ai). Evidence: `tests/modules/customer-surfaces.test.ts` (ownership, quote acceptance, private document access, one-use email proof) plus the 2026-10-08 adversarial regressions in `security/adversarial-audit-2026-10-08.md`; portal responses carry no bearer credentials, provider references or staff notes; scope and limits in `deploy/customer-surfaces-2026-10-07.md`; F01–F12 rows in `deploy/f-criteria-matrix.md`. **F04** `app/portal/(account)/records/[section]/[id]/page.tsx`. **F05** `portal.myRecord`/`actOnMyRecord` in `src/core/portal/record-service.ts`, projected to HTTP/MCP and `packages/sdk/src/generated.ts`. **F07** customer ownership and privacy in `tests/modules/customer-surfaces.test.ts`. **F09** provider and deployment limits recorded in `deploy/customer-surfaces-2026-10-07.md`. **F12** `tests/browser/customer-surfaces.spec.ts` composed journey. Live payment-provider settlement stays with C11.05.)*
|
|
7538
8638
|
|
|
7539
8639
|
### 43.14 C9 — Automations, audience growth, recurring access, and media reach
|
|
7540
8640
|
|
|
@@ -7747,6 +8847,36 @@ customer has one secure, comprehensible home for the relationship.
|
|
|
7747
8847
|
cannot rot into a question the report will not answer.
|
|
7748
8848
|
Admin at `/admin/reports`, with the definitions printed under the figures.
|
|
7749
8849
|
Migration `0138_report_views.sql`; `tests/modules/reporting.test.ts`. **F04** `/admin/reports`. **F05** `reports.revenue`/`revenueBy`/`funnel`/`cohort`/`saveView`/`listViews` at `/api/v1/reports.*`, MCP `reports_*`. **F07** `tests/modules/reporting.test.ts` covers permission, refusal and recovery. **F09** N/A as C11.14 — this item uses the shared audit/outbox; product-wide export/restore/retention/erasure proof is still open. **F12** `tests/modules/reporting.test.ts` is the composition proof.)
|
|
8850
|
+
Audit follow-up 2026-10-22: CI showed a seeded booking at 15:30–16:15
|
|
8851
|
+
America/Vancouver per Node reading as 16:30–17:15 per Postgres 16 — the two
|
|
8852
|
+
tz databases disagreed about the zone's December offset. Revenue months and
|
|
8853
|
+
cohort months were bucketed with `date_trunc(... at time zone ...)`, so a
|
|
8854
|
+
payment near midnight could land in a different month from the one the page
|
|
8855
|
+
printed. Both now join paid instants to month boundaries computed in Node
|
|
8856
|
+
(`localBuckets`, `bucketKey`) and the query names no zone; the rule is
|
|
8857
|
+
normative in §4.9 ("local-time math lives in Node; SQL sees UTC instants").
|
|
8858
|
+
An unknown zone is now refused as a validation error. Regression:
|
|
8859
|
+
`tests/modules/reporting.test.ts` (a `+05:00` zone, which Node reads as
|
|
8860
|
+
five hours ahead and Postgres as five behind, files a 22:00Z payment in the
|
|
8861
|
+
next local month for revenue and cohorts), `tests/core/local-time-sql.test.ts`,
|
|
8862
|
+
`tests/core/zoned.test.ts` and `tests/core/doctor.test.ts`; changeset
|
|
8863
|
+
`single-source-local-time.md`. Writing the DST tests (Vancouver, London,
|
|
8864
|
+
Sydney, Tokyo) found that `zonedInstant` resolved a skipped local time to
|
|
8865
|
+
the instant *before* the gap in zones east of UTC; it now takes the later
|
|
8866
|
+
instant everywhere, and a repeated hour resolves to the earlier instant
|
|
8867
|
+
unless the caller asks for the later. Review follow-ups the same day:
|
|
8868
|
+
`/admin/reports` never passed the business's zone, so its months were UTC
|
|
8869
|
+
months — it now does; a stored zone `Intl` does not know (profiles were not
|
|
8870
|
+
validated, and Postgres accepted names Node refuses) makes the reports and
|
|
8871
|
+
traffic screens count in UTC with a visible warning instead of failing,
|
|
8872
|
+
doctor warns about it, and `settings.updateBusiness`/`patchBusiness` now
|
|
8873
|
+
refuse one (`tests/core/settings.test.ts`). Buckets reach SQL as a
|
|
8874
|
+
`width_bucket` over start instants rather than a join over ranges, so a
|
|
8875
|
+
two-year daily chart is a binary search per row, not a nested loop; and
|
|
8876
|
+
`zoneOffsetMs` keeps one `Intl.DateTimeFormat` per zone, bringing 730 day
|
|
8877
|
+
buckets from an estimated ~320 ms to ~10 ms (bounded in `tests/core/zoned.test.ts`, with
|
|
8878
|
+
Santiago and Havana midnight transitions). No `paid_at` index was added:
|
|
8879
|
+
the window filter was already a sequential scan before this change.
|
|
7750
8880
|
|
|
7751
8881
|
#### Referral, loyalty, subscriptions, and paywalls
|
|
7752
8882
|
- [x] **C9.09** Build first-party attribution touches, codes, invitations,
|
|
@@ -8344,6 +9474,12 @@ customer has one secure, comprehensible home for the relationship.
|
|
|
8344
9474
|
§34's remaining client-side sharing is C9.29 (gallery partners), C9.34
|
|
8345
9475
|
(quote view-only links), C9.35 (product/gift-registry sharing) and C9.36
|
|
8346
9476
|
(embeds with backlinks). **F04** `/admin/sharing`. **F05** `share.targetFor`/`shareVia`/`saveTarget`/`resolveLink`/`linkReport` at `/api/v1/share.*`, MCP `share_*`; public `/share` and `/s/[ref]`. **F07** `tests/modules/share.test.ts` covers permission, refusal and recovery. **F09** N/A as C11.14 — this item uses the shared audit/outbox; product-wide export/restore/retention/erasure proof is still open. **F12** `tests/modules/share.test.ts` is the composition proof.)
|
|
9477
|
+
Pre-launch check 2026-10-23: the demo showed all ten share channels under
|
|
9478
|
+
every product and event. The demo seed now gives its products, services
|
|
9479
|
+
and events a compact set (copy link, share sheet, email) through the same
|
|
9480
|
+
`share.saveTarget` control an owner uses (`SHARE_COMPACT`); §34's share
|
|
9481
|
+
option stays on every content page. Regression:
|
|
9482
|
+
`tests/core/seed-demo-busy.test.ts`. Changeset `demo-prelaunch-polish.md`.
|
|
8347
9483
|
- [x] **C9.29** Let a client share their proofing gallery with a partner:
|
|
8348
9484
|
scoped guest access, owner-permitted, issued from the gallery the client
|
|
8349
9485
|
already opened.
|
|
@@ -8524,8 +9660,85 @@ customer has one secure, comprehensible home for the relationship.
|
|
|
8524
9660
|
**C9 exit:** audience, access, attribution and recurring revenue compound on
|
|
8525
9661
|
the spine without surveillance, shadow ledgers or channel-specific silos.
|
|
8526
9662
|
|
|
8527
|
-
- [
|
|
8528
|
-
|
|
9663
|
+
- [x] **C9.37** Complete the owner newsletter sending journey with delivery readiness, verified sender guidance, consent-aware audience selection, test-send, scheduling, visible per-recipient outcomes and a customer archive/subscribe workflow. Actual external delivery remains explicit acceptance when provider credentials are unavailable.
|
|
9664
|
+
(**The skip count is in front of the owner before they choose an audience, and consent is asked again when each copy goes out.** `broadcasts.audiencePreview` counts a segment in one query: everyone it matches, how many have an address plus current granted unexpired marketing-email consent and no active suppression, and the rest. The compose screen shows that count. `broadcasts.start` freezes only people with an address and returns the same gate over that frozen list (`mailable`, `suppressed`). The `broadcast.started` payload stays `{ broadcastId, audience }`. The detail page reports the skip count and links readiness to `#mail-verification`. The list page still links to `/admin/settings#mail`.
|
|
9665
|
+
**Verification is the provider confirming this address or domain may send.** Settings name what Resend, Postmark and Amazon SES each need, and show only the known keys of the stored check (domain, identity, provider status, DKIM, return path). A failed check stays on the sender. Drafts stay editable until it passes.
|
|
9666
|
+
**A test send is one copy of the wording.** The template editor posts through the same `broadcasts.testSend` the broadcast screen uses.
|
|
9667
|
+
**The words on the form are the consent.** `newsletterSubscribe` takes an optional owner-written statement, rendered as text. Ticking the box records it on `newsletters.subscribe` with `popup: "newsletter-subscribe"`. A statement posted without the box is refused. No statement leaves the previous form. Someone who unsubscribed can join again: the row returns to pending, the confirm token rotates, and confirm grants contact again. Confirm of an unsubscribed row still refuses.
|
|
9668
|
+
**The demo letter is an ordinary site.** Install creates The Aurora Coast Letter, publishes First light on the coast onto the existing `/newsletters` archive, and saves a campaign template, after pages exist so the archive index is not created twice.
|
|
9669
|
+
**What stays the owner's acceptance.** SMTP and HTTP doubles prove the behavior (`tests/modules/broadcasts.test.ts`, `tests/core/newsletters.test.ts`). Provider credentials and live inbox placement remain the owner's acceptance (`deploy/customer-surfaces-2026-10-07.md`). The browser journey (`tests/browser/newsletters.spec.ts`) runs with jobs off, so it proves the screens and a staged test copy. The demo site is `tests/core/seed-demo.test.ts`. Block-editor issue editing, cadence, from-identity, archive-public, issue stats and the per-customer preference center are outside this change. Changeset `c9-37-newsletter-journey.md`.
|
|
9670
|
+
**F04** `/admin/newsletters/broadcasts`, the broadcast detail page, `/admin/newsletters/templates` test-send, mail settings `#mail-verification`, and the public archive. **F05** `broadcasts.audiencePreview`, plus additive `broadcasts.start` and `mail.status` fields, at `/api/v1/broadcasts.*` and `/api/v1/mail.*`, MCP `broadcasts_*` and `mail_*`; `packages/sdk/src/generated.ts`. **F07** `tests/modules/broadcasts.test.ts` and `tests/core/newsletters.test.ts` cover unverified senders, suppressed addresses, missing consent, archived wording and a refused subscribe; scoped permission enforcement on the service boundary is proven for every service by `tests/core/api.test.ts` (C0.11 audit narrowing). **F09** readiness is `assertMailReady` in `src/core/mail/service.ts`; live inbox placement stays owner acceptance in `deploy/customer-surfaces-2026-10-07.md`. Product-wide export/restore/retention remains C11.14; this item rides the shared audit/outbox (`tests/core/record-participation.test.ts`). **F12** `tests/modules/broadcasts.test.ts` is the composition proof, with the owner path in `tests/browser/newsletters.spec.ts` and the demo site in `tests/core/seed-demo.test.ts`.)
|
|
9671
|
+
- [x] **C9.38** Deliver public membership plan discovery and customer signup, canonical invoice/payment handoff, payment-bound entitlement activation, safe retries, and portal change/cancel. Automatic renewal requires the existing provider contract; live settlement remains C11.05.
|
|
9672
|
+
(**A card-required trial does not start, and does not grant access, until a saved card exists.** `subscriptions.join` leaves it paused with `trialEndsAt` null. A setup fee is the only charge, on its own invoice; paying it with a consented saved card opens the trial, not a paid period of the recurring price. A zero fee opens `subscriptions.beginTrialCardSetup`, which asks the provider to save a card and never to charge one. The customer starts that trial with `subscriptions.startCardTrial` after the provider confirms the card. An older card, a card for a different provider customer, or a card saved by staff cannot start it. A manual adapter, or a provider that cannot save a card without a charge, keeps the plan unavailable. The screens are `/memberships`, the member profile, `/memberships/trial-return`, and the portal subscription page.
|
|
9673
|
+
**What stays C11.05.** The adapter double in `tests/modules/subscription-billing.test.ts` and `tests/core/payment-adapters.test.ts` proves the handoff. The browser journey in `tests/browser/customer-surfaces.spec.ts` proves an incapable adapter does not offer the trial, and runs axe on that screen. Live recurring settlement is still the owner's acceptance (`deploy/customer-surfaces-2026-10-07.md`). No new migration. Changeset `c9-38-card-trial.md`.
|
|
9674
|
+
**F04** `/memberships`, `/memberships/trial-return`, the member profile subscribe form, and the portal subscription page. **F05** `subscriptions.beginTrialCardSetup` and `subscriptions.startCardTrial`, plus `cardSetup` on `subscriptions.join` and `subscriptions.mine`, at `/api/v1/subscriptions.*`, MCP `subscriptions_*`; `packages/sdk/src/generated.ts`. **F07** `tests/modules/subscription-billing.test.ts` covers a cancelled signup, an unrelated card, a staff-saved card, an older card, and an adapter that cannot save one; `tests/core/payment-adapters.test.ts` covers a setup session that must not become a payment. Scoped permission enforcement on the service boundary is proven for every service by `tests/core/api.test.ts` (C0.11 audit narrowing). **F09** live settlement stays owner acceptance in `deploy/customer-surfaces-2026-10-07.md`. Product-wide export/restore/retention remains C11.14; this item rides the shared audit/outbox (`tests/core/record-participation.test.ts`). **F12** `tests/modules/subscription-billing.test.ts` is the composition proof, with the incapable-adapter screen in `tests/browser/customer-surfaces.spec.ts`.)
|
|
9675
|
+
|
|
9676
|
+
- [ ] **C9.39** Link in bio: the one link a business puts in every social
|
|
9677
|
+
profile, as a page on its own site rather than a rented one (§1 names it in
|
|
9678
|
+
the rented stack). A mobile-first page at a configurable slug (default
|
|
9679
|
+
`/links`) shows the picture or logo, the name, a short bio, an ordered list
|
|
9680
|
+
of buttons and social icons. Each link can be hidden or scheduled (start and
|
|
9681
|
+
end, in the business's time zone). Smart links point at the site's own
|
|
9682
|
+
product, bookable service, event, gallery, page or newsletter sign-up, and
|
|
9683
|
+
drop off the page when their destination is no longer published. It follows
|
|
9684
|
+
the design tokens with an optional link-in-bio template, meets WCAG AA in
|
|
9685
|
+
light and dark, works by keyboard and screen reader, and carries the page's
|
|
9686
|
+
meta, Open Graph and canonical tags. Per-link clicks are first-party
|
|
9687
|
+
analytics events under the existing consent rules. It is editable in the
|
|
9688
|
+
visual editor and the admin, and the same services are the HTTP API and the
|
|
9689
|
+
MCP tools, with the CMS page permissions and audit. Open until a hosted site
|
|
9690
|
+
serves its `/links` page, a phone follows a link through the click
|
|
9691
|
+
redirect, and that click appears in the admin report.
|
|
9692
|
+
*(Progress 2026-11-06: a new `linkinbio` module with no table and no
|
|
9693
|
+
migration. **The page is a CMS page and the links are one typed block on it**
|
|
9694
|
+
(`src/modules/linkinbio/blocks.tsx`, schema in
|
|
9695
|
+
`src/modules/linkinbio/links.ts`), so revisions, translation, variants, SEO,
|
|
9696
|
+
the social card and publishing are the CMS's own. Stable link ids are
|
|
9697
|
+
assigned by a Zod `overwrite` that keeps the schema an array, so the editor
|
|
9698
|
+
still derives a list control. The editor gained generic list-item hints
|
|
9699
|
+
(hidden ids), a `datetime` control, move up/down for list items and typed
|
|
9700
|
+
defaults for new items (`src/modules/cms/blocks/fields.ts`,
|
|
9701
|
+
`app/(admin)/admin/BlockEditor.tsx`). A block may declare its own heading
|
|
9702
|
+
with a numeric `headingLevel` prop, which the publish gate counts
|
|
9703
|
+
(`src/modules/cms/a11y-hints.ts`). **Every edit is a page edit**:
|
|
9704
|
+
`src/modules/linkinbio/service.ts` composes `cms.updatePage` and
|
|
9705
|
+
`cms.publishPage` as the caller, so a person needs the `linkinbio` and `cms`
|
|
9706
|
+
grants and an agent needs both scopes, and every edit leaves a page
|
|
9707
|
+
revision. An edit is published only when that publishes nothing else (the
|
|
9708
|
+
page is live, has no other unpublished edits and is not awaiting approval);
|
|
9709
|
+
otherwise `publication.pending` names why. **Smart links follow the site**
|
|
9710
|
+
through the new public `cms.livePaths` (published, untrashed, unvetoed) and,
|
|
9711
|
+
by service name, `catalog.bookableServices` and `galleries.publicBySlug`
|
|
9712
|
+
(`src/modules/linkinbio/availability.ts`). **Clicks have one door**:
|
|
9713
|
+
`app/go/link/[id]/route.ts` → `linkinbio.follow`, which resolves the link on
|
|
9714
|
+
the *published* page and redirects to the stored destination only;
|
|
9715
|
+
`robots.txt` now disallows `/go/` and the SEO gate treats it as a redirect,
|
|
9716
|
+
not a page (`src/core/seo/sitemap.ts`, `scripts/seo-gate.mjs`). It
|
|
9717
|
+
writes one `linkinbio.clicked` event through `analytics.track` when consent
|
|
9718
|
+
allows identifiers, deduplicated per minute and classified human or bot.
|
|
9719
|
+
`linkinbio.report` reads clicks back through the new
|
|
9720
|
+
`analytics.eventTotals`, and on-site visits and conversions through
|
|
9721
|
+
`analytics.campaignTotals` under `utm_campaign=bio:<id>`. Social icons link
|
|
9722
|
+
straight to the profile with `rel="me"` and are not counted. The template
|
|
9723
|
+
`page.link-in-bio` is in `src/modules/cms/templates.ts`. The demo installs
|
|
9724
|
+
`/links` with six smart links (`seed/demo/content.ts`). Owner guide:
|
|
9725
|
+
`deploy/link-in-bio.md`. Changeset `link-in-bio.md`.
|
|
9726
|
+
**F04** `/admin/link-in-bio` (`app/(admin)/admin/link-in-bio/page.tsx`) and
|
|
9727
|
+
the visual editor. **F05** `linkinbio.page`/`setup`/`addLink`/`updateLink`/`setLinkHidden`/`scheduleLink`/`reorderLinks`/`removeLink`/`updateProfile`/`targets`/`report`
|
|
9728
|
+
at `/api/v1/linkinbio.*`, MCP `linkinbio_*`, public `linkinbio.follow`;
|
|
9729
|
+
`packages/sdk/src/generated.ts`. **F06** catalogs in all four locales;
|
|
9730
|
+
render and axe checks in `tests/modules/linkinbio-links.test.ts`, and `/links`
|
|
9731
|
+
and `/admin/link-in-bio` in `tests/browser/accessibility.spec.ts`. **F07**
|
|
9732
|
+
`tests/modules/linkinbio.test.ts` covers refused destinations, hostile
|
|
9733
|
+
`from` values, hidden, scheduled and unavailable links, confirmation on
|
|
9734
|
+
removal, and customers, anonymous callers and narrow agents being refused.
|
|
9735
|
+
**F09** no new data: the links live in page rows and revisions, and clicks
|
|
9736
|
+
in the analytics ledger, both already in export, retention and erasure.
|
|
9737
|
+
**F12** `tests/modules/linkinbio.test.ts` composes setup → addLink →
|
|
9738
|
+
follow → `analytics.track` → report, and `tests/browser/journeys.spec.ts`
|
|
9739
|
+
runs the owner screen to a followed and then hidden link. Remaining: the
|
|
9740
|
+
hosted acceptance above. Out of scope: a chromeless page layout, per-link
|
|
9741
|
+
thumbnails and colours, and UTM tagging of outside addresses.)*
|
|
8529
9742
|
|
|
8530
9743
|
### 43.15 C10 — Ownership durability, self-update, and mobile applications
|
|
8531
9744
|
|
|
@@ -8590,6 +9803,17 @@ the spine without surveillance, shadow ledgers or channel-specific silos.
|
|
|
8590
9803
|
delivery's outcome on every row and an overdue export said out loud at the
|
|
8591
9804
|
top. Migration `0158_scheduled_exports.sql`;
|
|
8592
9805
|
`tests/modules/reporting-exports.test.ts`. **F04** `/admin/reports/exports`. **F05** `reports.saveExport`/`runExport`/`listExports`/`downloadExport`/`deliverScheduledExports` at `/api/v1/reports.*`, MCP `reports_*`. **F07** `tests/modules/reporting-exports.test.ts` covers permission, refusal and recovery. **F09** N/A as C11.14 — this item uses the shared audit/outbox; product-wide export/restore/retention/erasure proof is still open. **F12** `tests/modules/reporting-exports.test.ts` is the composition proof.)
|
|
9806
|
+
Audit follow-up 2026-10-22: the last completed week, month or quarter was
|
|
9807
|
+
computed by Postgres (`date_trunc` in the named zone), so a database whose
|
|
9808
|
+
tz data lagged Node's would send the accountant a file starting an hour off
|
|
9809
|
+
the dates printed in it. `periodsFor` now computes the boundaries in Node
|
|
9810
|
+
from the same zone data the pages render with (§4.9); weeks still start
|
|
9811
|
+
Monday and quarters on January, April, July and October, as `date_trunc`
|
|
9812
|
+
did. Regression: "the period an export covers" in
|
|
9813
|
+
`tests/modules/reporting-exports.test.ts` (pinned clocks across the spring
|
|
9814
|
+
change in Vancouver, a Sydney quarter, and the `+05:00` disagreement that
|
|
9815
|
+
the old query answered with October instead of November); changeset
|
|
9816
|
+
`single-source-local-time.md`.
|
|
8593
9817
|
- [x] **C9.33** Build the automatic subscription billing modes — `provider`
|
|
8594
9818
|
(Stripe/PayPal schedules and their webhook reconciliation) and `platform`
|
|
8595
9819
|
(off-session charges against a stored payment method) — and plan changes with
|
|
@@ -8708,7 +9932,14 @@ the spine without surveillance, shadow ledgers or channel-specific silos.
|
|
|
8708
9932
|
named. **F08** `tests/core/update-preflight.test.ts`, doctor ids. **F09**
|
|
8709
9933
|
SPDX. **F10** N/A. **F11** `deploy/update-preflight.md`, changeset
|
|
8710
9934
|
`update-preflight.md`. **F12** shadow SQL `SELECT 1/0` fails migrations
|
|
8711
|
-
without touching `public`. This is not apply — C10.06.
|
|
9935
|
+
without touching `public`. This is not apply — C10.06. **2026-11-05:**
|
|
9936
|
+
the plugin range is checked against the target's platform version, as boot
|
|
9937
|
+
and install do, rather than `pluginApi`; first-party plugins declare
|
|
9938
|
+
`^0.2.0` instead of `>=0.0.0`, and `readAlignedVersion` refuses a release
|
|
9939
|
+
whose first-party ranges miss its major and minor. Evidence
|
|
9940
|
+
`tests/core/update-preflight.test.ts` (an installed first-party plugin
|
|
9941
|
+
blocks the next minor), `tests/core/release-packages.test.ts`; changeset
|
|
9942
|
+
`plugin-compat-ranges.md`.)
|
|
8712
9943
|
- [x] **C10.06** Implement a verified host update executor with recoverable database
|
|
8713
9944
|
backups, signed immutable image selection, actual migrations, candidate health
|
|
8714
9945
|
checks and independently verified rollback. The 2026-09-21 readiness audit
|
|
@@ -9471,6 +10702,36 @@ schema they inherit reads as a designed thing rather than an excavation.
|
|
|
9471
10702
|
checks passed. These same-host fixtures do not complete the normative
|
|
9472
10703
|
cross-target final-candidate journey, so this item remains unchecked.)*
|
|
9473
10704
|
|
|
10705
|
+
Audit follow-up 2026-10-22 (first-run owner experience): a hands-on audit of
|
|
10706
|
+
the public demo found a non-technical owner lost within five minutes. The
|
|
10707
|
+
admin nav (28 playground links, 85 for an owner, wrapping four rows and
|
|
10708
|
+
pushing content ~750px down at 390px) is now seven named groups in a
|
|
10709
|
+
sticky desktop sidebar and one disclosure button (`aria-expanded`,
|
|
10710
|
+
Escape returns focus) below `lg`; which links show is unchanged. Each admin
|
|
10711
|
+
screen gets its own title instead of "Admin sections — <business>". The
|
|
10712
|
+
overview's first win was chosen as "role match, else first by key", which
|
|
10713
|
+
showed a role-less playground visitor the bookkeeper's reporting routine;
|
|
10714
|
+
`src/core/guidance/first-win.ts` now ranks unfinished flows, then role
|
|
10715
|
+
match, then visible results first (publish a page, add a customer).
|
|
10716
|
+
Business-type-specific flows (add a service, share a booking link) would
|
|
10717
|
+
need new versioned guidance definitions and are not in this change.
|
|
10718
|
+
"What changed" reads `events.recentActivity` with `include: "people"`
|
|
10719
|
+
(a named denylist of never-newsworthy sweeps and demo entry is hidden — by
|
|
10720
|
+
action, not by the `system` actor, because webhook-applied payments,
|
|
10721
|
+
refunds and disputes are recorded as `system` too; `?activity=all` shows
|
|
10722
|
+
everything). Sweeps that can act on the owner's behalf (scheduled
|
|
10723
|
+
publishing, cart recovery, released seats, finished signups) declare the
|
|
10724
|
+
new `auditWhen` service option, so a no-op tick writes no audit row and a
|
|
10725
|
+
run that acted stays visible.
|
|
10726
|
+
Owner copy loses "Chrome", "contact spine", "A cart is a token", "RMA",
|
|
10727
|
+
"deterministic", ppm, adapter talk, raw module keys and actor ids; coupons
|
|
10728
|
+
take a percent; currency, time-zone and language fields are pickers
|
|
10729
|
+
(`src/ui/pickers.tsx`); Field labels are no longer monospace and fields no
|
|
10730
|
+
longer stretch beside a hinted neighbour. Evidence:
|
|
10731
|
+
`tests/core/admin-nav-layout.test.ts`, `tests/core/admin-first-run.test.ts`,
|
|
10732
|
+
`tests/core/dashboard.test.ts`; changeset `admin-first-run-ux.md`. The
|
|
10733
|
+
item stays unchecked for its own cross-target reasons above.
|
|
10734
|
+
|
|
9474
10735
|
#### Whole-product quality
|
|
9475
10736
|
|
|
9476
10737
|
- [x] **C11.09** Run every F01–F12 criterion across every core/module/plugin/
|
|
@@ -9563,6 +10824,250 @@ schema they inherit reads as a designed thing rather than an excavation.
|
|
|
9563
10824
|
`tests/core/owner-password-script.test.ts`. Refreshed review packet records
|
|
9564
10825
|
the remaining API-token/ephemeral-Basic hashing findings for independent
|
|
9565
10826
|
disposition. These repairs do not close C11.10.)*
|
|
10827
|
+
Audit follow-up 2026-10-21 (service boundaries and gates): provider I/O
|
|
10828
|
+
left inside `defineService` transactions now runs outside them. Capture
|
|
10829
|
+
chunk/original writes and assembly reserve keys in the pending object
|
|
10830
|
+
ledger, store bytes with no transaction open, and delete chunk objects only
|
|
10831
|
+
through a post-commit job, so a failed write leaves the recording
|
|
10832
|
+
recoverable. `messaging.sendSms` stages the message and enqueues
|
|
10833
|
+
`core.deliverSms` (provider idempotency token = caller key; the job id is
|
|
10834
|
+
the message id); number import/health, calendar sync, mailbox import,
|
|
10835
|
+
gallery archive build, builder PR delivery, assistant answers, translation
|
|
10836
|
+
drafts and builder proposals are orchestrators around short claim/apply
|
|
10837
|
+
phases. `tests/core/long-running-service-boundary.test.ts` now scans every
|
|
10838
|
+
`defineService` file in src/plugins/app, derives provider methods from the
|
|
10839
|
+
adapter contracts, detects `storage()` I/O and follows named handlers
|
|
10840
|
+
(temporary allowlist: invoicing payment-provider/POS, fixed separately);
|
|
10841
|
+
`service-composition` covers plugins/app and named handlers;
|
|
10842
|
+
`merge-completeness` checks per column and polymorphic `subject_id`, and a
|
|
10843
|
+
conflicting second `registerContactReference` now throws — documents and
|
|
10844
|
+
signup commissions filed against a contact are repointed. ESLint bans
|
|
10845
|
+
contact creation from public app surfaces and SVG hex fills; packages are
|
|
10846
|
+
scanned for colour literals; licence headers cover .py/.cjs/.nix/systemd/
|
|
10847
|
+
Caddy; the plugin provider-boundary contract test is DB-free. Regression
|
|
10848
|
+
evidence: `sms.test.ts`, `media-capture.test.ts`, `calendar-sync.test.ts`,
|
|
10849
|
+
`mail-import.test.ts`, `assistant.test.ts`, `cms-translation-workflow.test.ts`,
|
|
10850
|
+
`builder-content-lane.test.ts`, `documents.test.ts`,
|
|
10851
|
+
`referrals-commission.test.ts`, `lint-gates.test.ts`,
|
|
10852
|
+
`colour-literals.test.ts`. Changeset
|
|
10853
|
+
`provider-calls-outside-transactions.md`. Not independent review evidence.
|
|
10854
|
+
Review follow-up 2026-10-21: the agent write gate and approval inbox now
|
|
10855
|
+
run orchestrated services after their own claim commits (an approval whose
|
|
10856
|
+
deferred write fails returns to pending); a merge where both contacts hold
|
|
10857
|
+
the same code's signup commission keeps the survivor's and reverses the
|
|
10858
|
+
duplicate's unpaid one (undo restores it); deferred SMS delivery re-checks
|
|
10859
|
+
number validity and marketing consent, records non-provider failures on the
|
|
10860
|
+
last attempt, and serializes same-key sends; capture chunk/assembly applies
|
|
10861
|
+
lock the session row and refuse a session closed meanwhile; builder PR
|
|
10862
|
+
delivery uses one branch per proposal and resumes an existing PR. The merge
|
|
10863
|
+
gate now covers subject_kind/target_type/entity_type/parent_type pointers
|
|
10864
|
+
(attestation subjects are repointed). Known gate limits: the boundary gate
|
|
10865
|
+
follows only same-file helpers, and the merge gate trusts each
|
|
10866
|
+
registration's declared `columns` — per-module merge tests prove the moves.
|
|
10867
|
+
A deferred approval is `executing` until its write reports back; the
|
|
10868
|
+
approval sweep returns one stranded over an hour to pending with a note and
|
|
10869
|
+
never re-runs it.
|
|
10870
|
+
Evidence: `agents-approvals.test.ts`, `referrals-commission.test.ts`,
|
|
10871
|
+
`sms.test.ts`, `media-capture.test.ts`, `builder-code-lane.test.ts`,
|
|
10872
|
+
`attestations.test.ts`, `merge-completeness.test.ts`.
|
|
10873
|
+
Audit follow-up 2026-10-21 (web and auth): `/api/mcp` requires
|
|
10874
|
+
`application/json`, refuses a foreign `Origin` unless the request carries
|
|
10875
|
+
its own `Authorization` credential, and applies the CSRF check to
|
|
10876
|
+
cookie-authenticated calls. Pasted `html_tag` ad creatives no longer render
|
|
10877
|
+
in site pages or receive the CSP nonce; they run in an opaque-origin frame
|
|
10878
|
+
(`/api/ads/creative/[id]`, iframe `sandbox` plus CSP `sandbox`, no
|
|
10879
|
+
`allow-same-origin`), and a house-line tag waits for explicit review.
|
|
10880
|
+
Step-up, security-action and theme redirects share `safeLocalPath`, which
|
|
10881
|
+
refuses backslash, control-character, encoded and protocol-relative forms.
|
|
10882
|
+
`auth.changePassword` limits per account and refuses personal API keys,
|
|
10883
|
+
which carry no step-up state. Customer magic links and newsletter
|
|
10884
|
+
confirmations are limited per recipient inside the transaction, so composed
|
|
10885
|
+
calls (storefront checkout) are bounded too; a pending subscription is not
|
|
10886
|
+
re-mailed within ten minutes, and visitor-submitted consent evidence is
|
|
10887
|
+
marked `provenance: visitor-submitted`. Share, popup and handle-availability
|
|
10888
|
+
limits key on the validated `trustedIp` when configured, else on the
|
|
10889
|
+
forwarded address, never one shared bucket; a high site-wide
|
|
10890
|
+
`untrustedBackstop` bounds forged addresses. The droplet, host-updater and
|
|
10891
|
+
playground Caddy recipes overwrite `X-Freeholder-Client-Ip` and set
|
|
10892
|
+
`TRUSTED_CLIENT_IP_HEADER` (app port unpublished); the plain compose recipe
|
|
10893
|
+
sets none, App Platform and Railway set their documented headers from
|
|
10894
|
+
2026-10-21, and Render and Replit set none (`deploy/client-readiness.md`).
|
|
10895
|
+
`safeLocalPath` also refuses dot segments (raw or `%2e`) and any resolved
|
|
10896
|
+
result beginning `//` or `/\`. `ads.creativeTag` is system-only.
|
|
10897
|
+
`rentals.reserve` books a non-staff hire as a `requested` booking, which
|
|
10898
|
+
hand-over confirms through `bookings.setStatus` (requirements still apply
|
|
10899
|
+
unless the owner passes `overrideRequirements`), and limits requests per
|
|
10900
|
+
email and per client address; `events.register` caps a public registration
|
|
10901
|
+
at ten seats and limits registrations per email and per client address.
|
|
10902
|
+
Regressions: `tests/core/mcp.test.ts`, `tests/core/rate-limit.test.ts`,
|
|
10903
|
+
`tests/core/deploy-recipe.test.ts`, `tests/core/internal-services.test.ts`,
|
|
10904
|
+
`tests/modules/ads-third-party.test.ts`, `tests/core/security-headers.test.ts`,
|
|
10905
|
+
`tests/core/customer-return-path.test.ts`, `tests/core/change-password.test.ts`,
|
|
10906
|
+
`tests/core/customer-magic-links.test.ts`, `tests/core/newsletters.test.ts`,
|
|
10907
|
+
`tests/modules/share.test.ts`, `tests/modules/popups.test.ts`,
|
|
10908
|
+
`tests/core/rentals.test.ts`, `tests/core/events.test.ts`. Changeset
|
|
10909
|
+
`web-auth-hardening.md`. Without `TRUSTED_CLIENT_IP_HEADER`, per-client
|
|
10910
|
+
limits can be evaded by forging the forwarded address, up to the site-wide
|
|
10911
|
+
backstop; this repair is not independent review evidence.
|
|
10912
|
+
Audit follow-up 2026-10-21 (payment provider boundary): owner/API hosted
|
|
10913
|
+
checkout, checkout capture, provider refunds, saved-method revocation and
|
|
10914
|
+
Stripe Terminal collection/refunds called their provider inside a service
|
|
10915
|
+
transaction, so a rollback after the provider acted could move money with
|
|
10916
|
+
no ledger row. Each is now a `defineOrchestratedService`: the attempt or
|
|
10917
|
+
refund reservation commits under its idempotency key first, the provider
|
|
10918
|
+
runs with no transaction open, and its answer is applied in a fresh one.
|
|
10919
|
+
A crash or uncertain provider error in between leaves a `created` attempt.
|
|
10920
|
+
For 23 hours (inside the provider's 24-hour idempotency window) a same-key
|
|
10921
|
+
retry replays the request and converges. After that the retry is refused
|
|
10922
|
+
and the attempt needs owner reconciliation. Hosted payments are also matched
|
|
10923
|
+
by the webhook and listed by `reconcilePaymentProviders`. Terminal takes
|
|
10924
|
+
are listed by `reconcileInPersonPayments`. Both views gain
|
|
10925
|
+
`refundsNeedingReview`, which lists open refunds and refunds the provider
|
|
10926
|
+
reports as already refunded (`provider_already_refunded`, not a plain
|
|
10927
|
+
refusal). In-person `balanced` is false while any are listed. A failed,
|
|
10928
|
+
cancelled or settled attempt is never sent to the provider again under its
|
|
10929
|
+
key. Only allow-listed provider codes count as a definite refusal, which is
|
|
10930
|
+
recorded as failed and releases any reservation. A 409 same-key conflict, a
|
|
10931
|
+
busy reader or an unknown 4xx keeps the attempt open, and `AdapterError` now
|
|
10932
|
+
carries the provider's code. Checkout is attached only while the invoice is
|
|
10933
|
+
still open for that amount. Orchestrator phases are `permission: "system"`
|
|
10934
|
+
services, called as the system after the public service has authorized the
|
|
10935
|
+
caller. Each records the initiator in its audit input (`initiatedBy`), so an
|
|
10936
|
+
API key scoped to the public service alone still works. Public service
|
|
10937
|
+
names and inputs are unchanged. Regressions in
|
|
10938
|
+
`tests/core/payment-provider-service.test.ts` and
|
|
10939
|
+
`tests/core/invoicing-pos.test.ts` failed before each repair.
|
|
10940
|
+
Changeset `payment-provider-boundary.md`. This repair is not independent
|
|
10941
|
+
review evidence.
|
|
10942
|
+
Audit follow-up 2026-10-21 (access control): a security review of main found
|
|
10943
|
+
and this change repaired eleven reproducible access-control defects, then an
|
|
10944
|
+
independent review of the repair found six more problems, also fixed here.
|
|
10945
|
+
Anonymous media uploads (`media.beginUpload`/`media.upload`) need a capture
|
|
10946
|
+
token naming an open, unexpired capture session, checked before storage I/O,
|
|
10947
|
+
inside the apply transaction and again when a resumable upload completes; a
|
|
10948
|
+
bare `captureSessionId` needs media authority. `subscriptions.changeMine` and
|
|
10949
|
+
`subscriptions.listOffered` accept and offer only public, active plans from
|
|
10950
|
+
the subscription's own seller. A customer's change follows the plan's stated
|
|
10951
|
+
proration (§4.15): a `none` plan defers to period end, and a prorating change
|
|
10952
|
+
raises its invoice but is granted by `subscriptions.completePaidPlanChange`
|
|
10953
|
+
only once that invoice is paid in full. While such a change waits, another
|
|
10954
|
+
is refused until that invoice is paid or voided, so a stale invoice cannot
|
|
10955
|
+
grant a superseded plan. A refund after the grant does not reverse the
|
|
10956
|
+
switch (owner decision: refunds stay a money action). A subscription billed
|
|
10957
|
+
by a provider schedule is not held, including a move onto a platform-billed
|
|
10958
|
+
plan; holding that move needs an orchestrated schedule cancellation at grant
|
|
10959
|
+
time and remains open. A deferred change now moves the subscription to the
|
|
10960
|
+
new plan's default variant when it is on sale, else its first active
|
|
10961
|
+
variant (a plan with none is refused, or left pending at renewal), so
|
|
10962
|
+
renewals bill the new price; a target plan with no price in the
|
|
10963
|
+
subscription currency is refused rather than billed at zero. `subscriptions.join` refuses a staff-entered or foreign
|
|
10964
|
+
card and never lets a saved card skip a card trial's setup-fee invoice.
|
|
10965
|
+
`quotes.message` speaks for the business only with a quotes grant.
|
|
10966
|
+
`messaging.startSiteChat` continues a Contact's canonical thread only for
|
|
10967
|
+
the signed-in owner of that address (the public chat block now passes the
|
|
10968
|
+
session actor). Every unverified start opens a separate conversation keyed
|
|
10969
|
+
`site-chat:…`, so it never changes the canonical thread's reply channel,
|
|
10970
|
+
never closes a live chat, and never receives replies meant for the
|
|
10971
|
+
customer. The inbox list and thread show it as "Unverified — says they are
|
|
10972
|
+
<email>", linked to the Contact's record for context without merging
|
|
10973
|
+
threads. Contact-import undo restores a field only while it still
|
|
10974
|
+
holds what the import wrote. `contracts.sign` takes IP and user agent from
|
|
10975
|
+
request metadata. `members.callConfig` needs an active member on a live call;
|
|
10976
|
+
`members.claimKeyPackages` returns an outstanding claim instead of draining
|
|
10977
|
+
another device. `briefing.*` and shared `views.list` rows use
|
|
10978
|
+
`hasModuleAccess`, two-factor state included, with the shared-view filter in
|
|
10979
|
+
SQL before the page limit. Unusable coupon codes (unknown, inactive, not
|
|
10980
|
+
started, ended, used up) share one answer; a working code is still
|
|
10981
|
+
distinguishable from them. Coupon attempts through
|
|
10982
|
+
`catalog.applyCouponToCart` and `catalog.quoteCartPromotions` are limited per
|
|
10983
|
+
shopper and per cart, and `catalog.getOrCreateCart` is limited per shopper.
|
|
10984
|
+
**Open residual risk, not fixed:** without `TRUSTED_CLIENT_IP_HEADER`, every
|
|
10985
|
+
per-shopper key can be forged, so coupon guessing remains effectively
|
|
10986
|
+
unbounded (forge an address, open a new cart, take its 10 guesses). With the
|
|
10987
|
+
header (the Caddy recipes after #563; `deploy/client-readiness.md`) it is
|
|
10988
|
+
bounded. Audit follow-up 2026-10-21 (managed-platform client address):
|
|
10989
|
+
`TRUSTED_CLIENT_IP_HEADER` also accepts `do-connecting-ip` and
|
|
10990
|
+
`x-forwarded-for`, the latter read `TRUSTED_PROXY_HOPS` entries from the
|
|
10991
|
+
right so visitor-written entries on the left are ignored and a short list or
|
|
10992
|
+
malformed entry at that position yields no trusted address. The App Platform
|
|
10993
|
+
spec sets `do-connecting-ip` and the Railway config sets `x-real-ip`, each as
|
|
10994
|
+
documented by the platform, so coupon guessing and the other per-client
|
|
10995
|
+
limits are bounded there too. Neither platform documents overwriting a
|
|
10996
|
+
client-supplied value, so the site-wide backstop now applies to validated
|
|
10997
|
+
anonymous callers as well (default ten times the unvalidated ceiling, its own
|
|
10998
|
+
bucket, still counted only after the caller's own limit passes), and rate
|
|
10999
|
+
limits key IPv6 clients on their /64 and IPv4-mapped IPv6 as IPv4 on both
|
|
11000
|
+
paths, which also closes per-address rotation inside a /64 for the Caddy
|
|
11001
|
+
recipes. Railway's CDN case (X-Real-IP becomes the CDN address) coarsens
|
|
11002
|
+
per-client limits for that traffic; the backstop prevents a global lockout. Render and Replit document no client-address
|
|
11003
|
+
header or proxy depth, so their recipes still set none and the residual
|
|
11004
|
+
above remains open for them (`deploy/client-readiness.md` cites the sources).
|
|
11005
|
+
Regressions: `tests/core/bootstrap-security.test.ts` (header parsing:
|
|
11006
|
+
spoofed leftmost entries, malformed values, IPv6, hop counts),
|
|
11007
|
+
`tests/core/rate-limit.test.ts` (trusted backstop, /64 and mapped keys),
|
|
11008
|
+
`tests/core/deploy-recipe.test.ts` (per-platform recipe values). Changeset
|
|
11009
|
+
`managed-platform-client-address.md`. **Latent risk:** `catalog.checkoutCart` accepts `couponCode` with no
|
|
11010
|
+
rate limit and resolves promotions as system; it is safe today only because
|
|
11011
|
+
`requireContactAuthority` refuses anonymous callers, and it must gain the
|
|
11012
|
+
same limits before a public storefront checkout ships. Each regression failed before
|
|
11013
|
+
its repair: `tests/core/media-capture.test.ts`, `tests/core/media.test.ts`,
|
|
11014
|
+
`tests/modules/subscription-billing.test.ts`, `tests/core/quotes.test.ts`,
|
|
11015
|
+
`tests/core/site-chat.test.ts`, `tests/core/contact-import.test.ts`,
|
|
11016
|
+
`tests/core/intake-waivers-reminders.test.ts`,
|
|
11017
|
+
`tests/modules/member-calls.test.ts`, `tests/modules/member-e2ee.test.ts`,
|
|
11018
|
+
`tests/core/briefing.test.ts`, `tests/core/saved-views.test.ts`,
|
|
11019
|
+
`tests/core/cart-access.test.ts` and
|
|
11020
|
+
`tests/browser/c11-01-visitor-to-paid.spec.ts`. Changeset
|
|
11021
|
+
`c11-10-access-control-20261021.md`. Independent review remains open.
|
|
11022
|
+
Audit record 2026-10-21: `security/pre-launch-audit-2026-10-21.md` maps each
|
|
11023
|
+
finding from that day's four reviews to its repair PR (#559–#565) and lists
|
|
11024
|
+
the open residuals. The review packet points to it. It is agent evidence,
|
|
11025
|
+
not independent review.
|
|
11026
|
+
Defence in depth 2026-10-23 (stored SVG and librsvg, GHSA-2464-fhr4-w9xw /
|
|
11027
|
+
CVE-2026-96889; sharp 0.35.5 is already locked): uploads have refused SVG
|
|
11028
|
+
since #70, but stored assets reached sharp on their stored kind alone.
|
|
11029
|
+
`sniffRasterImage` (`src/core/media/validation.ts`) reuses the upload
|
|
11030
|
+
signature table and admits only JPEG, PNG, GIF, WebP and AVIF bytes;
|
|
11031
|
+
stored mime type and extension are ignored. It now gates `readImageFacts`,
|
|
11032
|
+
`buildRenditions`, `buildWatermarked` and the watermark logo, the derivation
|
|
11033
|
+
step shared by uploads and `registerStoredOriginal`, `media.rescan`, the watermark
|
|
11034
|
+
backfill and social `cropStill`/`stillThumbnail`/`createVariants`.
|
|
11035
|
+
`media.rescan` skips a non-raster "image" with `renditionsSkipped` in its
|
|
11036
|
+
result, keeps its scan result and leaves the original unaltered. Storage I/O
|
|
11037
|
+
stays in the orchestrator, outside `applyRescan`. The internal seed and
|
|
11038
|
+
text-watermark SVGs are repository/escaped content and are unchanged.
|
|
11039
|
+
Regression: `tests/core/media-raster-guard.test.ts` wraps sharp and shows
|
|
11040
|
+
that it is never called on SVG bytes labelled `image/png`, while JPEG and
|
|
11041
|
+
PNG still render. The admin media page discards the rescan result, so
|
|
11042
|
+
the reason is visible through the API/MCP/SDK only. Review follow-up the
|
|
11043
|
+
same day: ffmpeg probed stored "video" bytes with no demuxer or protocol
|
|
11044
|
+
limit, so an HLS/concat playlist under a video label could read local files
|
|
11045
|
+
or fetch URLs. The only ffmpeg call site in src/ and app/, social
|
|
11046
|
+
`clipVideo`, now refuses bytes `sniffVideo` does not identify as MP4,
|
|
11047
|
+
QuickTime or WebM before any process starts. It then passes
|
|
11048
|
+
`-protocol_whitelist file`, `-f mov|matroska` and, for mov,
|
|
11049
|
+
`-enable_drefs 0` ahead of the single `-i` (`clipVideoArgs`).
|
|
11050
|
+
`social.createVariants` checks every original before rendering or storing
|
|
11051
|
+
any, so a refusal leaves no orphaned generated assets. Further regressions
|
|
11052
|
+
cover `registerStoredOriginal` (including bytes swapped after the
|
|
11053
|
+
signature read), the watermark backfill and PNG/SVG polyglots.
|
|
11054
|
+
`tests/modules/social-render-ffmpeg.test.ts` replaces ffmpeg and asserts
|
|
11055
|
+
the argv. `tests/modules/social-composer.test.ts` covers the end-to-end
|
|
11056
|
+
refusal, and that test failed before the fix with two orphans. No ffmpeg
|
|
11057
|
+
binary was available to run a real clip. Changeset
|
|
11058
|
+
`media-refuse-stored-svg.md`. Not independent review evidence.
|
|
11059
|
+
Runtime advisories 2026-10-23: every Dockerfile stage pins
|
|
11060
|
+
`node:22.23.4-bookworm-slim` by index digest, and `.node-version` follows.
|
|
11061
|
+
That is the 21 Oct Node.js security release, with its compiled-in block
|
|
11062
|
+
on the eight compromised eMudhra intermediates and NSS 3.131.1. The image
|
|
11063
|
+
sets no `NODE_USE_SYSTEM_CA`/`NODE_EXTRA_CA_CERTS` and ships no Debian
|
|
11064
|
+
`ca-certificates`. The droplet, host-updater and playground Caddy recipes
|
|
11065
|
+
now refuse `/_next/image` before proxying, behind `images.unoptimized`
|
|
11066
|
+
(#578). Next 16.4.2 (#549) already carries the 14 Oct Next.js fixes.
|
|
11067
|
+
Replit's `nodejs-22`/`stable-25_05` runtime cannot pin a patch release and
|
|
11068
|
+
stays an open residual. Evidence: `tests/core/runtime-version-integrity.test.ts`,
|
|
11069
|
+
`tests/core/deploy-recipe.test.ts`; notes `deploy/release-notes-2026-10-23.md`;
|
|
11070
|
+
changeset `node-22-23-4-october-2026-advisories.md`. Not independent review.
|
|
9566
11071
|
- [x] **C11.11** Meet defined performance budgets on seeded small/medium/large
|
|
9567
11072
|
datasets, including public Core Web Vitals, admin lists, editor, reporting,
|
|
9568
11073
|
queues, search and migrations.
|
|
@@ -9682,6 +11187,19 @@ schema they inherit reads as a designed thing rather than an excavation.
|
|
|
9682
11187
|
policy + SMS consent vocabulary compose end to end: the same browser run
|
|
9683
11188
|
drives an Arabic-preferring contact from storefront chooser through the
|
|
9684
11189
|
portal to the RTL admin.)*
|
|
11190
|
+
Audit follow-up 2026-10-22 (public demo): with `FREEHOLDER_PLAYGROUND=1`
|
|
11191
|
+
the root layout wrote the demo banner before the page, so "Enter the
|
|
11192
|
+
playground" came before the skip link; the banner is now written after the
|
|
11193
|
+
page and painted first with `order-first`, says "View the public site"
|
|
11194
|
+
inside the admin, and is not rendered in `/preview` frames. Notifications'
|
|
11195
|
+
channel list nested a wrapper `<div>` in a `<dl>` group (axe
|
|
11196
|
+
definition-list/dlitem); 404s from the public catch-all and
|
|
11197
|
+
`/portal/login` had an empty `<title>` (the root layout now supplies a
|
|
11198
|
+
fallback title too); the floating "Privacy choices" control sits in the
|
|
11199
|
+
page flow below `sm` instead of over form fields. Evidence:
|
|
11200
|
+
`tests/core/admin-nav-layout.test.ts`; changeset `admin-first-run-ux.md`.
|
|
11201
|
+
`tests/browser/accessibility.spec.ts` was not re-run for this change (see
|
|
11202
|
+
the PR).
|
|
9685
11203
|
- [x] **C11.13** Complete failure drills for database/storage/mail/payment/SMS/
|
|
9686
11204
|
OAuth/AI/provider outages, process death, duplicate webhook/job, clock skew,
|
|
9687
11205
|
low disk, lost credential key and interrupted update.
|
|
@@ -9872,12 +11390,14 @@ schema they inherit reads as a designed thing rather than an excavation.
|
|
|
9872
11390
|
machine-checked by `tests/core/doc-claim-mapping.test.ts`, which refuses
|
|
9873
11391
|
unmapped claims, unresolved evidence paths, and any Struck/Narrowed row whose
|
|
9874
11392
|
old wording still parses in this document; the gate runs in `pnpm gates`
|
|
9875
|
-
(`scripts/fast-gates.mjs`).
|
|
9876
|
-
are Struck/Narrowed (S1–
|
|
11393
|
+
(`scripts/fast-gates.mjs`). 106 rows carry test/gate evidence; 13 rows
|
|
11394
|
+
are Struck/Narrowed (S1–S13): §12 mail-adapter id literal, §21b `backup.sh`
|
|
9877
11395
|
path, §25 "MIT plugin-kit", §27 hosted canonical registry/catalog,
|
|
9878
11396
|
§28 hosted docs site with executable guides, §31 "pgvector" retrieval,
|
|
9879
11397
|
§4.8 instance-release-notes scope, §37 agent-note mandate, §38
|
|
9880
|
-
release-notes bullet, §34 changelog share target
|
|
11398
|
+
release-notes bullet, §34 changelog share target, and (2026-11-05) §26
|
|
11399
|
+
plugin permission enforcement and signatures, §25 plugin scaffolding and
|
|
11400
|
+
install paths, §23 WordPress importer completeness. Two judgment calls stand
|
|
9881
11401
|
as documented behaviour, not scaffolds: §35's branded placeholder
|
|
9882
11402
|
screenshots are the store-gate stand-in (`apps/mobile/store/metadata.json`,
|
|
9883
11403
|
`scripts/mobile-store-gate.mjs`), and adapter "not implemented" strings are
|
|
@@ -10254,8 +11774,1094 @@ by owner decision, never by silent deletion — the same discipline as the
|
|
|
10254
11774
|
mobile deferral above. The live C3.13 text no longer carries the clause;
|
|
10255
11775
|
the plan's references to print-on-demand as a v1 requirement resolve here.
|
|
10256
11776
|
|
|
11777
|
+
### Deferred to v2 — plugin isolation (owner decision 2026-11-05)
|
|
11778
|
+
|
|
11779
|
+
**Owner decision, 2026-11-05 (Tony Aly):** "v2 for the sandbox." Plugin
|
|
11780
|
+
isolation or sandboxing is deferred to v2. The item is quoted verbatim as it
|
|
11781
|
+
was recorded the same day, its ID preserved as plain bold text so references
|
|
11782
|
+
still resolve:
|
|
11783
|
+
|
|
11784
|
+
> **C3.43** Isolate plugin code from core: out of process or in a
|
|
11785
|
+
> sandbox that limits what it can reach. §26 explains why this is a
|
|
11786
|
+
> research problem for in-process JavaScript; C3.40–C3.42 are the trust
|
|
11787
|
+
> engineering in the meantime.
|
|
11788
|
+
|
|
11789
|
+
The obligation survives verbatim and moves to v2. C3.40 (runtime permission
|
|
11790
|
+
enforcement), C3.41 (the `network:external` egress wrapper) and C3.42
|
|
11791
|
+
(publisher Ed25519 signatures) stay in v1. This is a dated, bounded,
|
|
11792
|
+
owner-approved scope decision, not a generic escape hatch, with the same
|
|
11793
|
+
discipline as the deferrals above: `scripts/plan-gate.mjs` lists C3.43 in
|
|
11794
|
+
`DEFERRED` and fails any change that re-enters it as a live checkbox, and
|
|
11795
|
+
re-entry happens only by owner decision.
|
|
11796
|
+
|
|
10257
11797
|
### Client-readiness repair note — 2026-09-21
|
|
10258
11798
|
|
|
10259
11799
|
C1.03/C1.05/C6.08/C9.09/C9.12/C11.10: production first ownership requires an independent BOOTSTRAP_SECRET; public waitlist enrollment returns only an acknowledgement; referral contact attribution requires ownership or scope; redemption locks account and reward rows; magic-link limits use token hashes and forms use validated submitter identities or explicitly trusted proxy addresses.
|
|
10260
11800
|
|
|
10261
|
-
C6.11 is reopened: free event enrollment validates ticket ownership and availability and serializes capacity changes. Paid enrollment refuses until a canonical invoice/payment settlement flow exists. Existing paid confirmations from before this repair need operator reconciliation. At that date C10.06/C10.10 were reopened because automatic apply/rollback was unavailable. Their later Docker host-executor delivery and evidence under §43.16 supersede that historical status; both are checked. The other target recipes retain their documented manual procedures. Previous updater history alone does not prove deployment or recoverability.
|
|
11801
|
+
C6.11 is reopened: free event enrollment validates ticket ownership and availability and serializes capacity changes. Paid enrollment refuses until a canonical invoice/payment settlement flow exists. Existing paid confirmations from before this repair need operator reconciliation. At that date C10.06/C10.10 were reopened because automatic apply/rollback was unavailable. Their later Docker host-executor delivery and evidence under §43.16 supersede that historical status; both are checked. The other target recipes retain their documented manual procedures. Previous updater history alone does not prove deployment or recoverability. (C6.11's paid-admission remainder closed 2026-10-17 — held seats on the invoice spine, settlement, expiry, refund cascade and paid check-in; annotation under the item.)
|
|
11802
|
+
|
|
11803
|
+
### 43.19 C12 — Members, social graph, messaging, calls, and marketplace
|
|
11804
|
+
|
|
11805
|
+
Owner decision 2026-10-14: Freeholder is the open-source, MCP-friendly starter
|
|
11806
|
+
for anyone vibe-coding a next-generation site, not only a one-person business.
|
|
11807
|
+
A site has many members who can publish, connect, message, call, buy and sell
|
|
11808
|
+
with each other. §44 is the normative specification. The standing default is
|
|
11809
|
+
whatever is best for the people using the site.
|
|
11810
|
+
|
|
11811
|
+
- [x] **C12.01** Make members first-class accounts: self-serve joining with a
|
|
11812
|
+
unique handle under the site's rule (open, approval or invitation), roles
|
|
11813
|
+
unchanged (site admin, staff, member), member-to-contact linking, and an age
|
|
11814
|
+
attestation (meets the site's minimum age; adult or not) that later items
|
|
11815
|
+
gate on, with no birthdate collected. Passkey sign-in for members is C12.19.
|
|
11816
|
+
*(Evidence 2026-10-14: `src/modules/members/service.ts`, migration
|
|
11817
|
+
`db/migrations/0025_members.sql`, `tests/modules/members.test.ts` and
|
|
11818
|
+
`tests/browser/members.spec.ts`. **F04** `/join`, `/portal/member` and
|
|
11819
|
+
`/admin/members`. **F05** `members.*` services projected to HTTP, the SDK
|
|
11820
|
+
and MCP (`packages/sdk/src/generated.ts`). **F07** rate-limited joins and
|
|
11821
|
+
handle checks, reserved handles, invitation-bound joins, scoped admin
|
|
11822
|
+
services and suspension reasons, proven in `tests/modules/members.test.ts`.
|
|
11823
|
+
**F09** N/A — no jobs; membership state is ordinary rows in the one database.
|
|
11824
|
+
**F12** `tests/browser/members.spec.ts` joins, edits, approves and suspends in
|
|
11825
|
+
a real browser with axe in both themes. Changeset `members-join.md`.)*
|
|
11826
|
+
- [x] **C12.02** Ship public member profiles at `/@handle` with display name,
|
|
11827
|
+
bio and links. Each profile field carries a visibility of public, followers,
|
|
11828
|
+
friends, subscribers or only me, and each member sets a default visibility
|
|
11829
|
+
for what they publish; accounts start private; search indexing of a profile
|
|
11830
|
+
is opt-in. Avatars and profile sections are C12.20.
|
|
11831
|
+
*(Evidence 2026-10-14: `src/modules/members/graph.ts` (`members.profile`,
|
|
11832
|
+
`relationBetween`, `canSee`), migration `db/migrations/0026_member_graph.sql`,
|
|
11833
|
+
`tests/modules/member-graph.test.ts`, `tests/browser/members.spec.ts`.
|
|
11834
|
+
**F04** `/@handle` and the privacy settings on `/portal/member`. **F05**
|
|
11835
|
+
`members.profile` and `members.updateMe` on HTTP, SDK and MCP. **F07** every
|
|
11836
|
+
field passes `canSee`; blocked viewers get not-found; profiles are noindex
|
|
11837
|
+
unless the member opts in. **F09** N/A — no jobs. **F12** the browser
|
|
11838
|
+
journey views a private profile anonymously, then as an approved follower.
|
|
11839
|
+
Subscriber visibility resolves once C12.05 ships. Changeset `member-graph.md`.)*
|
|
11840
|
+
- [x] **C12.03** Build the social graph: one-way follow, mutual friend
|
|
11841
|
+
request/accept, private accounts that approve followers, block, mute and
|
|
11842
|
+
restrict. Blocking is enforced in every read path, not only in feeds.
|
|
11843
|
+
*(Evidence 2026-10-14: `src/modules/members/graph.ts`,
|
|
11844
|
+
`tests/modules/member-graph.test.ts`, `tests/browser/members.spec.ts`.
|
|
11845
|
+
**F04** follow, friend, mute, restrict and block on `/@handle`, and
|
|
11846
|
+
`/portal/connections` for requests, followers, friends and undo. **F05**
|
|
11847
|
+
`members.follow`, `members.unfollow`, `members.answerFollow`,
|
|
11848
|
+
`members.befriend`, `members.unfriend`, `members.setRelation`,
|
|
11849
|
+
`members.connections`. **F07** only active members reach others; blocks
|
|
11850
|
+
hide both sides, refuse follows and friend requests, and end existing ties;
|
|
11851
|
+
mutes and restrictions are private to the member who set them; rate limits
|
|
11852
|
+
on follow and friend requests. **F09** N/A — no jobs. **F12** the browser
|
|
11853
|
+
journey requests a follow and a friendship, approves both from
|
|
11854
|
+
connections, and blocks. Later reads (posts, messages, calls) reuse
|
|
11855
|
+
`relationBetween`. Changeset `member-graph.md`.)*
|
|
11856
|
+
- [x] **C12.04** Build posts and feeds: text posts, threaded comments,
|
|
11857
|
+
reactions, mentions, hashtags, consent-gated tagging of people, reposts and
|
|
11858
|
+
quotes. The default home feed is chronological from people a member follows
|
|
11859
|
+
or has befriended; the optional "latest public posts" view is also
|
|
11860
|
+
chronological and says so. Media attachments are C12.21.
|
|
11861
|
+
*(Evidence 2026-10-14: `src/modules/members/posts.ts`, migration
|
|
11862
|
+
`db/migrations/0027_member_posts.sql`, `tests/modules/member-posts.test.ts`,
|
|
11863
|
+
`tests/browser/members.spec.ts`. **F04** `/feed`, `/p/[id]`, `/tags/[tag]`
|
|
11864
|
+
and posts on `/@handle`. **F05** `members.post`, `members.editPost`,
|
|
11865
|
+
`members.deletePost`, `members.feed`, `members.latest`, `members.postsBy`,
|
|
11866
|
+
`members.viewPost`, `members.comment`, `members.deleteComment`,
|
|
11867
|
+
`members.react`, `members.pendingTags`, `members.answerTag`. **F07** every
|
|
11868
|
+
post read applies the author's visibility and blocks; mutes leave the home
|
|
11869
|
+
feed; restricted members' comments are seen only by them and the author;
|
|
11870
|
+
only public posts can be reposted; tags wait for the tagged member's
|
|
11871
|
+
approval; rate limits on posting and commenting. **F09** N/A — no jobs.
|
|
11872
|
+
**F12** the browser journey posts publicly with a hashtag and a mention,
|
|
11873
|
+
follows, reacts, comments and opens the hashtag page. Changeset
|
|
11874
|
+
`member-posts.md`.)*
|
|
11875
|
+
- [x] **C12.05** Let members offer paid subscriptions to their own content,
|
|
11876
|
+
with subscriber-only visibility, through the money spine and C12.09 payouts.
|
|
11877
|
+
*(Evidence 2026-10-15: `src/modules/members/member-subscriptions.ts`,
|
|
11878
|
+
`src/modules/members/subscriber-check.ts`, the seller-aware
|
|
11879
|
+
`subscriptions.publicPlans` in `src/modules/subscriptions/public-signup.ts`,
|
|
11880
|
+
migration `db/migrations/0040_member_subscription_payouts.sql`,
|
|
11881
|
+
`tests/modules/member-subscriptions.test.ts`, `tests/browser/members.spec.ts`.
|
|
11882
|
+
**F04** Subscriptions on `/portal/listings` (offer, stop, subscriber
|
|
11883
|
+
counts) and "Subscribe to …" on `/@handle`, which joins and takes the
|
|
11884
|
+
subscriber to pay the first invoice. **F05**
|
|
11885
|
+
`members.createSubscriptionPlan`, `members.mySubscriptionPlans`,
|
|
11886
|
+
`members.setSubscriptionPlanStatus`, `members.subscriptionPlans`, and
|
|
11887
|
+
`sellerUserId` on `subscriptions.publicPlans`. **F07** a member's plan is
|
|
11888
|
+
an ordinary §4.15 plan on a product they sell, so signup, renewals,
|
|
11889
|
+
dunning, cancelling and refunds are the site's existing machinery, billed
|
|
11890
|
+
manually unless the site chooses card billing; member plans never appear
|
|
11891
|
+
on the site's own memberships page; a plan is on sale only while the
|
|
11892
|
+
member can be paid; access (the "subscribers" audience on posts and
|
|
11893
|
+
profile sections, and the home feed) holds while a subscription is active,
|
|
11894
|
+
trialing or past due, never while its first invoice is unpaid; every paid
|
|
11895
|
+
subscription invoice becomes a payout through the §44.8 ledger (now keyed
|
|
11896
|
+
by an order line or an invoice, exactly one), with the site fee and the
|
|
11897
|
+
site's payout model, pre-tax, once; a refund cancels or flags it.
|
|
11898
|
+
**F09** the existing renewal and dunning jobs bill members' plans; each
|
|
11899
|
+
paid renewal invoice records its payout. **F12** the browser journey
|
|
11900
|
+
offers a plan, subscribes, settles the first invoice and shows the
|
|
11901
|
+
subscriber-only post. Changeset `member-subscriptions.md`.)*
|
|
11902
|
+
- [x] **C12.06** Build direct messages: one-to-one and group conversations,
|
|
11903
|
+
message requests from anyone the recipient does not follow or befriend,
|
|
11904
|
+
opt-in read receipts that a member sees only while sharing their own,
|
|
11905
|
+
blocks that close a conversation both ways, unsend for everyone, and bodies
|
|
11906
|
+
encrypted at rest bound to each message. End-to-end encryption (MLS,
|
|
11907
|
+
RFC 9420) with message franking is C12.23; attachments are C12.21. The
|
|
11908
|
+
messages screen states plainly that messages are not yet end-to-end
|
|
11909
|
+
encrypted.
|
|
11910
|
+
*(Evidence 2026-10-14: `src/modules/members/messages.ts`,
|
|
11911
|
+
`src/modules/members/message-crypto.ts`, migration
|
|
11912
|
+
`db/migrations/0028_member_messages.sql`, `tests/modules/member-messages.test.ts`,
|
|
11913
|
+
`tests/browser/members.spec.ts`. **F04** `/messages`, `/messages/[id]` and
|
|
11914
|
+
the Message link on `/@handle`. **F05** `members.startConversation`,
|
|
11915
|
+
`members.conversations`, `members.conversation`, `members.sendMessage`,
|
|
11916
|
+
`members.answerRequest`, `members.leaveConversation`,
|
|
11917
|
+
`members.muteConversation`, `members.unsendMessage`,
|
|
11918
|
+
`members.unreadConversations`. **F07** participants only; requests cannot
|
|
11919
|
+
be replied to until accepted and leak no read state; blocks close direct
|
|
11920
|
+
conversations; bodies sealed with AES-256-GCM bound to the message id and
|
|
11921
|
+
overwritten on unsend; rate limits. **F09** notifications for new messages
|
|
11922
|
+
ride core delivery and stay quiet for requests and muted conversations.
|
|
11923
|
+
**F12** the browser journey sends a request from a profile, accepts it,
|
|
11924
|
+
replies, and unsends. Changeset `member-messages.md`.)*
|
|
11925
|
+
- [x] **C12.07** Build private WebRTC voice and video calls between two
|
|
11926
|
+
members: peer to peer, with media encrypted between the devices by WebRTC;
|
|
11927
|
+
the server relays only signalling, which it deletes once read and when the
|
|
11928
|
+
call ends; short-lived credentials for the site's own TURN relay (coturn
|
|
11929
|
+
`use-auth-secret`), with no third-party server by default; calls only from
|
|
11930
|
+
people the callee follows or befriended, or whose message request they
|
|
11931
|
+
accepted; one call at a time; unanswered calls become missed-call
|
|
11932
|
+
notifications; nothing is recorded. Group calls are C12.24.
|
|
11933
|
+
*(Evidence 2026-10-14: `src/modules/members/calls.ts`, migration
|
|
11934
|
+
`db/migrations/0029_member_calls.sql`, `tests/modules/member-calls.test.ts`,
|
|
11935
|
+
`tests/browser/member-calls.spec.ts`. **F04** `/call/[id]`, voice and video
|
|
11936
|
+
buttons on `/@handle`, and the incoming-call bar on every public page.
|
|
11937
|
+
**F05** `members.startCall` on HTTP, the SDK and MCP; the live-call
|
|
11938
|
+
services are HTTP and SDK only (`mcpExclude`), because an agent cannot hold
|
|
11939
|
+
a microphone. **F07** connection-gated ringing, block refusal, participant-
|
|
11940
|
+
only signalling, signals deleted on read and on hang-up, rate limits.
|
|
11941
|
+
**F09** missed calls notify through core delivery; `TURN_URLS`,
|
|
11942
|
+
`TURN_SECRET` and `STUN_URLS` in `src/core/env.ts`. **F12** two real
|
|
11943
|
+
Chromium contexts with fake devices ring, answer, connect peer to peer,
|
|
11944
|
+
mute and hang up. Changeset `member-calls.md`.)*
|
|
11945
|
+
- [x] **C12.08** Build the member marketplace listings: when the site turns
|
|
11946
|
+
the market on, members list physical items, services, digital downloads
|
|
11947
|
+
and rentals as ordinary catalog products with a seller, priced in the
|
|
11948
|
+
site's price lists and taxed in its standard category; listings can wait
|
|
11949
|
+
for the site's review; approved listings appear in `/market` (search and
|
|
11950
|
+
type filter) and in a shop on the seller's profile, never in the site's
|
|
11951
|
+
own shop. Until seller payouts (C12.09) exist, the catalog refuses to put
|
|
11952
|
+
a member's listing in a cart or check it out. Booking a member's service
|
|
11953
|
+
on their own calendar is C12.25.
|
|
11954
|
+
*(Evidence 2026-10-14: `src/modules/members/listings.ts`,
|
|
11955
|
+
`src/modules/catalog/market.ts`, the seller column and checkout guards in
|
|
11956
|
+
`src/modules/catalog/`, migration `db/migrations/0030_member_listings.sql`,
|
|
11957
|
+
`tests/modules/member-listings.test.ts`, `tests/browser/members.spec.ts`.
|
|
11958
|
+
**F04** `/portal/listings`, `/market`, the profile shop and the market
|
|
11959
|
+
settings and review queue on `/admin/members`. **F05**
|
|
11960
|
+
`members.createListing`, `members.myListings`, `members.archiveListing`,
|
|
11961
|
+
`members.pendingListings`, `members.reviewListing`, `members.storefront`,
|
|
11962
|
+
`catalog.marketListings`. **F07** off by default; active members only;
|
|
11963
|
+
sellers act only on their own listings; review required by default;
|
|
11964
|
+
member listings refused by add-to-cart and checkout; rate limits. **F09**
|
|
11965
|
+
N/A — no jobs. **F12** the browser journey lists, reviews, browses the
|
|
11966
|
+
market and the profile shop, and finds no add-to-cart. Changeset
|
|
11967
|
+
`member-listings.md`.)*
|
|
11968
|
+
- [x] **C12.09** Build multi-seller checkout and payouts: a cart across
|
|
11969
|
+
sellers paid with one invoice, a payout ledger line per seller per order
|
|
11970
|
+
line less a site-admin fee that defaults to zero, a payout model the site
|
|
11971
|
+
owner chooses (hold until delivery by default; instant payout; seller as
|
|
11972
|
+
merchant where the provider supports it), a provider-neutral marketplace
|
|
11973
|
+
payout adapter seam with a manual adapter, held funds released after the
|
|
11974
|
+
window or by the site, refunds that cancel or flag what is owed, and a
|
|
11975
|
+
seller-facing record of every amount. Member listings are buyable only
|
|
11976
|
+
while their seller can be paid. Buyer-confirmed release is C12.10; Stripe
|
|
11977
|
+
Connect (including seller as merchant) is C12.26; other providers C12.27.
|
|
11978
|
+
*(Evidence 2026-10-14: `src/modules/members/payouts.ts`, the seller gate
|
|
11979
|
+
and order-seller lookups in `src/modules/catalog/market.ts`,
|
|
11980
|
+
`catalog.setVariantShipping`, migration `db/migrations/0031_member_payouts.sql`,
|
|
11981
|
+
`tests/modules/member-payouts.test.ts`, `tests/browser/members.spec.ts`.
|
|
11982
|
+
**F04** `/portal/payouts` and the payout settings, seller accounts and
|
|
11983
|
+
open payouts on `/admin/members`. **F05** `members.payoutAccount`,
|
|
11984
|
+
`members.savePayoutInstructions`, `members.myPayouts`, `members.payouts`,
|
|
11985
|
+
`members.setPayoutAccountStatus`, `members.settlePayouts` (system:
|
|
11986
|
+
`members.recordPayouts`, `members.reversePayouts`,
|
|
11987
|
+
`members.releaseDuePayouts`). **F07** the catalog sells a member listing
|
|
11988
|
+
only through the registered seller gate; payout details sealed at rest and
|
|
11989
|
+
re-confirmed after every change; the owner cannot pick a model the provider
|
|
11990
|
+
cannot run; paid-out refunds go to review rather than vanishing; money
|
|
11991
|
+
write class on every ledger change. **F09** `members.releaseDuePayouts`
|
|
11992
|
+
runs every 15 minutes; ledger rows come from the `catalog.orderPaid` and
|
|
11993
|
+
`refund.succeeded` events and are idempotent per order line. **F12** the
|
|
11994
|
+
database journey buys from two sellers, settles, holds, releases, pays and
|
|
11995
|
+
refunds; the browser journey sets payout details, confirms them and sees
|
|
11996
|
+
the listing become buyable. Changeset `member-payouts.md`.)*
|
|
11997
|
+
- [x] **C12.10** Build buyer protection: sellers record shipment and tracking;
|
|
11998
|
+
buyers confirm delivery, which releases held funds early; a private thread
|
|
11999
|
+
per sale for the buyer, the seller and the site; disputes while money is
|
|
12000
|
+
held or due, which freeze that sale's payouts until a site admin pays the
|
|
12001
|
+
seller or cancels the payout for a refund, recorded on the ledger.
|
|
12002
|
+
*(Evidence 2026-10-14: `src/modules/members/protection.ts`, the dispute
|
|
12003
|
+
freeze in `src/modules/members/payouts.ts`, migration
|
|
12004
|
+
`db/migrations/0032_member_buyer_protection.sql`,
|
|
12005
|
+
`tests/modules/member-protection.test.ts`, `tests/browser/members.spec.ts`.
|
|
12006
|
+
**F04** `/portal/sales`, `/portal/purchases`, the shared sale page, and
|
|
12007
|
+
disputes on `/admin/members`. **F05** `members.sale`, `members.mySales`,
|
|
12008
|
+
`members.myPurchases`, `members.markShipped`, `members.confirmDelivery`,
|
|
12009
|
+
`members.openDispute`, `members.withdrawDispute`, `members.disputes`,
|
|
12010
|
+
`members.resolveDispute`, `members.saleThread`, `members.postSaleMessage`.
|
|
12011
|
+
**F07** only the buyer, the seller and site staff can see a sale; only the
|
|
12012
|
+
seller ships and only the buyer confirms or disputes; one open dispute per
|
|
12013
|
+
sale; open disputes block release and payment; thread messages sealed at
|
|
12014
|
+
rest; money write class. A refund decision cancels the payout; the money
|
|
12015
|
+
returns to the buyer through the site's ordinary invoice refund. **F09**
|
|
12016
|
+
N/A — no new jobs; the release job skips disputed sales. **F12** the
|
|
12017
|
+
browser journey ships with tracking, messages, and has the buyer confirm
|
|
12018
|
+
delivery, releasing the payout. Changeset `member-protection.md`.)*
|
|
12019
|
+
- [x] **C12.11** Build reputation: buyer and seller reviews only after a
|
|
12020
|
+
completed transaction, double-blind reveal, and public replies. Reporting a
|
|
12021
|
+
review moves to C12.12, whose report-anything queue covers reviews too.
|
|
12022
|
+
*(Evidence 2026-10-14: `src/modules/members/reputation.ts`, migration
|
|
12023
|
+
`db/migrations/0033_member_reviews.sql`,
|
|
12024
|
+
`tests/modules/member-reputation.test.ts`, `tests/browser/members.spec.ts`.
|
|
12025
|
+
**F04** the review card on the shared sale page and the reviews section on
|
|
12026
|
+
`/@handle`. **F05** `members.leaveReview`, `members.reviews`,
|
|
12027
|
+
`members.replyToReview`, `members.myReviews`, `members.saleReviews`.
|
|
12028
|
+
**F07** only the buyer and seller of a delivered sale, or one whose dispute
|
|
12029
|
+
was resolved, may review it, once each; a review stays hidden from its
|
|
12030
|
+
subject and the public until both sides have written or 14 days pass; only
|
|
12031
|
+
the subject replies, once, and only after reveal; blocked viewers get no
|
|
12032
|
+
reviews; the notification says a review exists, never what it says.
|
|
12033
|
+
**F09** N/A — reveal is a timestamp compared at read time, so no job is
|
|
12034
|
+
needed. **F12** the browser journey has the buyer review, the seller see
|
|
12035
|
+
only that a review exists, review back, reveal both, reply, and a visitor
|
|
12036
|
+
read the rating and reply on the profile. Changeset `member-reviews.md`.)*
|
|
12037
|
+
- [x] **C12.12** Build trust and safety: report anything (posts, comments,
|
|
12038
|
+
messages, listings, reviews, members) into one moderation queue modelled on
|
|
12039
|
+
the community plugin's, where site staff remove content, suspend members or
|
|
12040
|
+
dismiss, with rate limits on reporting and every moderation action on the
|
|
12041
|
+
audit trail and recorded on the report. Split out: the prohibited-items
|
|
12042
|
+
policy is C12.28, adult content C12.29, abuse-image hash matching C12.30.
|
|
12043
|
+
*(Evidence 2026-10-14: `src/modules/members/reports.ts`, the shared status
|
|
12044
|
+
change in `src/modules/members/status.ts`, migration
|
|
12045
|
+
`db/migrations/0034_member_reports.sql`, `tests/modules/member-reports.test.ts`,
|
|
12046
|
+
`tests/browser/members.spec.ts`. **F04** `/report`, report links on posts,
|
|
12047
|
+
comments, messages, listings, reviews and profiles, and the reports queue on
|
|
12048
|
+
`/admin/members`. **F05** `members.report`, `members.reports`,
|
|
12049
|
+
`members.resolveReport`, `members.myReports`. **F07** a member can only
|
|
12050
|
+
report what they can see, and only a participant can report a message,
|
|
12051
|
+
which shares that one message with staff; the reported member never learns
|
|
12052
|
+
who reported them; reports on one thing are decided together; removing or
|
|
12053
|
+
suspending needs a reason the member is told; every decision is a service
|
|
12054
|
+
call on the audit trail and is recorded on the report; reporting is rate
|
|
12055
|
+
limited, alongside the existing limits on posting, commenting, messaging,
|
|
12056
|
+
calling, listing and following. **F09** N/A — no background work. **F12**
|
|
12057
|
+
the browser journey reports a spam post and staff remove it with a reason.
|
|
12058
|
+
Changeset `member-reports.md`.)*
|
|
12059
|
+
- [x] **C12.13** Build member notifications: in-app and email (immediate,
|
|
12060
|
+
daily or weekly digest, or off) for follows, friend requests, mentions,
|
|
12061
|
+
tags, comments, replies and reactions, with per-type controls chosen by the
|
|
12062
|
+
member, email defaulting to a digest, reactions folded into one entry per
|
|
12063
|
+
post, and silence from anyone blocked or muted. Web push and quiet hours are
|
|
12064
|
+
C12.22.
|
|
12065
|
+
*(Evidence 2026-10-14: `src/modules/members/notify.ts`, member topics in
|
|
12066
|
+
`src/core/notifications/service.ts`, `tests/modules/member-notifications.test.ts`,
|
|
12067
|
+
`tests/browser/members.spec.ts`. **F04** `/portal/notifications`. **F05**
|
|
12068
|
+
core `notifications.list`, `notifications.markAllRead`,
|
|
12069
|
+
`notifications.preferences` and `notifications.updatePreference` cover the
|
|
12070
|
+
member topics. **F07** no self-notifications; blocked or muted senders and
|
|
12071
|
+
inactive recipients are skipped; idempotency keys stop duplicates. **F09**
|
|
12072
|
+
delivery, digests and retries ride the core notification outbox. **F12** the
|
|
12073
|
+
browser journey sees follow and friend requests in notifications and
|
|
12074
|
+
changes a topic's email setting. Changeset `member-notifications.md`.)*
|
|
12075
|
+
- [x] **C12.14** Expose every member capability through the service layer to
|
|
12076
|
+
HTTP, SDK and MCP, and let members issue scoped, expiring keys so their own
|
|
12077
|
+
agents act as them, never beyond the member's own permissions.
|
|
12078
|
+
*(Evidence 2026-10-15: every member feature is a `defineService` in
|
|
12079
|
+
`src/modules/members`, so HTTP, the SDK and MCP carry it
|
|
12080
|
+
(`packages/sdk/src/generated.ts`); personal keys in
|
|
12081
|
+
`src/core/apikeys/personal.ts`, their resolution in
|
|
12082
|
+
`src/core/http/actor.ts`, the limits in `permits`/`hasModuleAccess`/
|
|
12083
|
+
`actsByKey` (`src/core/service.ts`), migration
|
|
12084
|
+
`db/migrations/0041_personal_api_keys.sql`, `tests/core/personal-keys.test.ts`,
|
|
12085
|
+
`tests/browser/members.spec.ts`. **F04** "Your agent" on `/portal/member`
|
|
12086
|
+
(read, post, message choices; 7, 30 or 90 days; shown once; stop).
|
|
12087
|
+
**F05** `apikeys.createMine`, `apikeys.mine`, `apikeys.revokeMine`.
|
|
12088
|
+
**F07** a personal key resolves to its person with their current role and
|
|
12089
|
+
grants, narrowed to the services it names — even public reads, which as
|
|
12090
|
+
the person can show followers-only content; it never passes a staff
|
|
12091
|
+
(`scoped`) or system check, never carries module access, never takes a
|
|
12092
|
+
human-review (`agentCallable: false`) action, cannot step up, cannot make
|
|
12093
|
+
or change keys, must expire within 90 days (a database check), is
|
|
12094
|
+
revoked with its person, and stays visible to owners in Admin → Access;
|
|
12095
|
+
MCP lists only its tools. **F09** N/A — no background work. **F12** the
|
|
12096
|
+
browser journey makes a key in the portal, lists its tools over the live
|
|
12097
|
+
MCP endpoint, then stops it. Changeset `personal-agent-keys.md`.)*
|
|
12098
|
+
- [x] **C12.15** Guarantee member data rights: full export (profile, posts,
|
|
12099
|
+
purchases, sales, contacts, and message history decryptable on the member's
|
|
12100
|
+
own device), account deletion with stated handling of shared content, no
|
|
12101
|
+
third-party trackers, and no sale of member data.
|
|
12102
|
+
*(Evidence 2026-10-14: `src/modules/members/data-rights.ts` registered as
|
|
12103
|
+
the `members` privacy source (ordered before login deletion by the new
|
|
12104
|
+
`eraseOrder`), `tests/modules/member-data-rights.test.ts`,
|
|
12105
|
+
`tests/browser/members.spec.ts`. **F04** "Your data" on `/portal/member`,
|
|
12106
|
+
linking to the existing privacy centre. **F05** the ordinary
|
|
12107
|
+
`privacy.createMyDataRequest` / `contacts.fulfillDataRequest` services.
|
|
12108
|
+
**F07** export carries profile, posts, comments, reactions, connections,
|
|
12109
|
+
blocks, every conversation with its messages opened for the member (the
|
|
12110
|
+
site holds message keys until C12.23 makes them device-held), calls,
|
|
12111
|
+
listings, payouts, sales, disputes, sale threads, reviews written, revealed
|
|
12112
|
+
reviews about them and reports they filed — never unrevealed reviews or who
|
|
12113
|
+
reported them; erasure waits while a payout is held or due or a dispute is
|
|
12114
|
+
open, deletes their content, leaves sent messages as "removed", keeps sales
|
|
12115
|
+
records under an anonymous erased member with their words destroyed, takes
|
|
12116
|
+
listings down, and keeps reports they filed without their name; the
|
|
12117
|
+
browser journey proves member pages load nothing from another origin; no
|
|
12118
|
+
service sells or shares member data. **F09** N/A — runs inside the existing
|
|
12119
|
+
privacy request. **F12** the journey checks origins and reaches the
|
|
12120
|
+
privacy centre from member settings. Changeset `member-data-rights.md`.)*
|
|
12121
|
+
- [x] **C12.16** Make it a starter: seeded demo members, posts, listings and
|
|
12122
|
+
conversations; the playground shows the member features; vibe-coding guides
|
|
12123
|
+
for Replit, Lovable and coding agents. A dedicated community new-site
|
|
12124
|
+
preset is C12.31.
|
|
12125
|
+
*(Evidence 2026-10-15: `src/modules/members/demo.ts` and
|
|
12126
|
+
`src/modules/members/onboarding.ts` (the `members.demo-community` fixture in
|
|
12127
|
+
the Creator and Everything scenarios), playground changes in
|
|
12128
|
+
`src/core/demo/playground.ts` and `playground-policy.ts`,
|
|
12129
|
+
`deploy/members-vibe-coding.md` (linked from `README.md` and `AGENTS.md`),
|
|
12130
|
+
`tests/modules/member-demo.test.ts`, `tests/core/demo-scenarios.test.ts`.
|
|
12131
|
+
**F04** Admin → Demo scenarios loads the community; it shows on `/feed`,
|
|
12132
|
+
`/@demo_ada` and `/market`. **F05** `members.loadDemoFixture`,
|
|
12133
|
+
`members.purgeDemoFixture`, `members.verifyDemoFixture`. **F07** three
|
|
12134
|
+
marked `[Demo]` members on the reserved `demo.freeholder.test` domain, in
|
|
12135
|
+
English, French or Spanish, with public and followers-only posts, follows,
|
|
12136
|
+
a sealed conversation and a priced listing; purge removes exactly the
|
|
12137
|
+
tracked records and their logins; the playground accepts these marked
|
|
12138
|
+
members and gives its visitor read access to Members. **F09** N/A — loads
|
|
12139
|
+
through the existing demo run. **F12** the module test loads the real
|
|
12140
|
+
Everything scenario through `demo.load`, reads the feed, market and
|
|
12141
|
+
conversation, and purges to nothing. Changeset
|
|
12142
|
+
`member-demo-community.md`.)*
|
|
12143
|
+
- [x] **C12.17** Prove the whole member journey end to end: two members join,
|
|
12144
|
+
follow and befriend, message, call each other in Chromium and Firefox, one
|
|
12145
|
+
buys a service from the other, the seller is paid out, both review, and a
|
|
12146
|
+
report reaches moderation; plus a load test of feeds and messaging.
|
|
12147
|
+
*(Evidence 2026-10-15: `tests/browser/member-journey.spec.ts` and
|
|
12148
|
+
`tests/load/members-load.test.ts` (`pnpm test:load`). **F04** every member
|
|
12149
|
+
screen the journey passes through. **F05** N/A — a proof item that drives
|
|
12150
|
+
existing services; it adds none. **F07** each step is taken by the only
|
|
12151
|
+
person allowed to (buyer, seller or staff), and moderation removes the
|
|
12152
|
+
reported post. **F09** the payout arrives through the events that follow
|
|
12153
|
+
the payment, as in production. **F12** one browser
|
|
12154
|
+
journey through the real screens: two people join at `/join`, follow and
|
|
12155
|
+
befriend, message, and video-call each other; one lists a service, the other
|
|
12156
|
+
buys it at checkout, staff record the payment in `/admin/payments`, the
|
|
12157
|
+
seller marks it sent, the buyer confirms, staff mark the payout paid, both
|
|
12158
|
+
review and the rating shows on the profile, and a report reaches
|
|
12159
|
+
`/admin/members`, where staff remove the post. Building it found and fixed
|
|
12160
|
+
two call bugs in `app/(public)/call/CallRoom.tsx`: the connection
|
|
12161
|
+
restarted when the call was answered (the effect depended on the initial
|
|
12162
|
+
state), and one candidate a browser rejected discarded the rest of its
|
|
12163
|
+
signalling batch. The load test seeds 300 members, 3,000 posts and 15,000
|
|
12164
|
+
follows and measured, at ten-way concurrency, p95 44 ms for home feeds,
|
|
12165
|
+
38 ms for the public feed and 206 ms for message sends, inside budgets of
|
|
12166
|
+
400, 300 and 250 ms. A second test calls between Chromium and Firefox and
|
|
12167
|
+
connects both ways on a workstation; it is skipped on hosted CI, where
|
|
12168
|
+
Firefox gathers no ICE candidates at all (the test prints each side's
|
|
12169
|
+
connection states and candidates if it ever fails).
|
|
12170
|
+
Changeset `member-calls-cross-browser.md`.)*
|
|
12171
|
+
- [x] **C12.18** Offer opt-in ActivityPub federation so members can be
|
|
12172
|
+
followed across the fediverse: site and member opt-in, WebFinger and actor
|
|
12173
|
+
documents, an HTTP-signed inbox for Follow and Undo, an outbox, and signed
|
|
12174
|
+
delivery of public posts to remote followers. Following remote accounts is
|
|
12175
|
+
C12.32; taking an audience elsewhere is C12.33.
|
|
12176
|
+
*(Evidence 2026-10-15: `src/modules/members/federation/core.ts`,
|
|
12177
|
+
`src/modules/members/federation/signatures.ts`, `app/.well-known/webfinger/route.ts`,
|
|
12178
|
+
`app/ap/`, migration `db/migrations/0042_member_federation.sql`,
|
|
12179
|
+
`tests/modules/member-federation.test.ts`, `tests/browser/members.spec.ts`.
|
|
12180
|
+
**F04** "Let members join the fediverse" under Admin → Members; The
|
|
12181
|
+
fediverse on `/portal/member` with the member's `@handle@host` address,
|
|
12182
|
+
their follower count elsewhere, and Join or Leave. **F05**
|
|
12183
|
+
`members.setFederation`, `members.remoteFollowers`, `federation` on
|
|
12184
|
+
`members.updateRules` and `members.rules`, and `federated` on the member's
|
|
12185
|
+
profile; the delivery, inbox and document services are internal. **F07**
|
|
12186
|
+
nothing is published until both the site and the member opt in; only
|
|
12187
|
+
public posts that are not adult reach the fediverse; the inbox accepts only
|
|
12188
|
+
draft-cavage HTTP signatures (rsa-sha256 over the request target, host,
|
|
12189
|
+
date and digest, twelve hours of clock skew) from a key whose owner is the
|
|
12190
|
+
activity's actor, fetched through the DNS-pinned transport so another
|
|
12191
|
+
server can never make this one reach a private address; bodies are capped
|
|
12192
|
+
at 256 KB; each member's signing key is generated on first use and sealed
|
|
12193
|
+
at rest; deleting or moderating a post sends Delete; leaving sends an actor
|
|
12194
|
+
Delete and forgets every remote follower. **F09**
|
|
12195
|
+
`members.deliverFederation` runs every minute and signs each delivery; a
|
|
12196
|
+
failure retries with backoff (2, 4, 8 … up to 360 minutes) and stops after
|
|
12197
|
+
eight attempts. **F12** the module test plays a remote server on a local
|
|
12198
|
+
port: it follows, receives a signed Accept and Create that verify against
|
|
12199
|
+
the member's published key, unfollows, and sees the member leave; the
|
|
12200
|
+
browser journey opts in as admin and member and resolves the address
|
|
12201
|
+
through WebFinger to the actor. Changeset `member-federation.md`.)*
|
|
12202
|
+
- [x] **C12.19** Offer members passkey-first sign-in: enrol a passkey after
|
|
12203
|
+
the email proof, sign in with it on return, manage passkeys from the portal,
|
|
12204
|
+
and keep email proof as the recovery path.
|
|
12205
|
+
*(Evidence 2026-10-14: `app/portal/passkey-actions.ts`,
|
|
12206
|
+
`app/portal/login/PortalPasskeySignIn.tsx`,
|
|
12207
|
+
`app/portal/(account)/member/MemberPasskeys.tsx`, `tests/browser/members.spec.ts`.
|
|
12208
|
+
**F04** "Sign in with a passkey" on `/portal/login` (shown even where email
|
|
12209
|
+
sign-in is not configured) and Passkeys on `/portal/member`, with an
|
|
12210
|
+
add-a-passkey prompt until one exists. **F05** the existing
|
|
12211
|
+
`auth.beginPasskeyLogin`, `auth.completePasskeyLogin`,
|
|
12212
|
+
`auth.beginWebAuthnRegistration`, `auth.finishWebAuthnRegistration`,
|
|
12213
|
+
`auth.beginWebAuthnStepUp`, `auth.finishWebAuthnStepUp`,
|
|
12214
|
+
`auth.verifyStepUpCode` and `auth.removeWebAuthnFactor`. **F07** a passkey
|
|
12215
|
+
never becomes a required second factor for members (only privileged roles
|
|
12216
|
+
require one), so the email link always still signs them in; adding another
|
|
12217
|
+
passkey or removing one needs a fresh proof with a passkey or a recovery
|
|
12218
|
+
code; recovery codes are shown once after the first passkey. **F09** N/A —
|
|
12219
|
+
no background work. **F12** the browser journey adds a passkey with a
|
|
12220
|
+
virtual authenticator, signs out, and signs back in with it. Changeset
|
|
12221
|
+
`member-passkeys.md`.)*
|
|
12222
|
+
- [x] **C12.20** Give member profiles an avatar and optional profile
|
|
12223
|
+
sections (for example portfolio, services, pinned posts), each with its own
|
|
12224
|
+
visibility.
|
|
12225
|
+
*(Evidence 2026-10-14: `src/modules/members/profile.ts`, migration
|
|
12226
|
+
`db/migrations/0037_member_profile_avatar_sections.sql`,
|
|
12227
|
+
`tests/modules/member-profile-sections.test.ts`, `tests/browser/members.spec.ts`.
|
|
12228
|
+
**F04** the picture and sections editors on `/portal/member`, Pin to
|
|
12229
|
+
profile on a member's own posts, and the avatar and sections on `/@handle`.
|
|
12230
|
+
**F05** `members.setAvatar`, `members.saveProfileSection`,
|
|
12231
|
+
`members.deleteProfileSection`, `members.profileSections`,
|
|
12232
|
+
`members.pinPost`, and `avatarUrl` on `members.profile`. **F07** avatars
|
|
12233
|
+
and portfolio images must be the member's own ready, cleared uploads
|
|
12234
|
+
through `media.upload`; each section shows only to its audience; a pinned
|
|
12235
|
+
post is checked against its own visibility (and adult flag) so pinning
|
|
12236
|
+
never widens it; ten sections, 24 items each; blocked viewers see none;
|
|
12237
|
+
sections are part of the member's export and erasure. **F09** N/A — no
|
|
12238
|
+
background work. **F12** the browser journey uploads a picture, adds a
|
|
12239
|
+
followers-only section, pins a post, and shows a visitor only what they
|
|
12240
|
+
may see. Changeset `member-profile-sections.md`.)*
|
|
12241
|
+
- [x] **C12.21** Let members attach images and video to posts, comments and messages,
|
|
12242
|
+
with alt text, safe processing, and the post's visibility applied to every
|
|
12243
|
+
file.
|
|
12244
|
+
*(Evidence 2026-10-14: `src/modules/members/attachments.ts`,
|
|
12245
|
+
`src/modules/members/attachment-store.ts`, `app/member-files/[id]/route.ts`,
|
|
12246
|
+
migration `db/migrations/0039_member_attachments.sql`,
|
|
12247
|
+
`tests/modules/member-attachments.test.ts`, `tests/browser/members.spec.ts`.
|
|
12248
|
+
**F04** "Add photos or video" with a description per file in the feed
|
|
12249
|
+
composer, comments and messages; files shown on posts, comments and
|
|
12250
|
+
messages. **F05** `attachments` on `members.post`, `members.comment` and
|
|
12251
|
+
`members.sendMessage`, attachments on their outputs, and
|
|
12252
|
+
`members.attachments`. **F07** files arrive through `media.upload`
|
|
12253
|
+
(validated, malware-scanned, responsive variants); only the member's own
|
|
12254
|
+
ready, cleared images and videos, each attached once; attaching makes the
|
|
12255
|
+
asset private so the public media route refuses it; `/member-files/[id]`
|
|
12256
|
+
asks on every request whether the viewer can see the post (visibility,
|
|
12257
|
+
adult flag, blocks), comment (including restricted commenters) or message
|
|
12258
|
+
(current participants), so deleting, unsending, leaving or blocking
|
|
12259
|
+
revokes a URL already shared; responses are `private, no-store`,
|
|
12260
|
+
sandboxed and same-origin; erasure detaches and purges the member's files.
|
|
12261
|
+
Photo-only posts are allowed, so the text-or-repost database check moved
|
|
12262
|
+
into the service. **F09** N/A — no background work. **F12** the browser
|
|
12263
|
+
journey posts a followers-only photo, then checks the file for the owner,
|
|
12264
|
+
a visitor, a non-follower, and the same person after following.
|
|
12265
|
+
Changeset `member-attachments.md`.)*
|
|
12266
|
+
- [x] **C12.22** Add web push for member notifications (standard Web Push
|
|
12267
|
+
with the site's own keys, no third-party service) and member-chosen quiet
|
|
12268
|
+
hours that hold push and email until they end.
|
|
12269
|
+
*(Evidence 2026-10-14: `src/core/notifications/web-push.ts` (RFC 8291
|
|
12270
|
+
aes128gcm encryption and RFC 8292 VAPID on `node:crypto`, no new
|
|
12271
|
+
dependency), quiet hours in `src/core/notifications/service.ts`, migration
|
|
12272
|
+
`db/migrations/0038_web_push_quiet_hours.sql`, `public/push-sw.js`,
|
|
12273
|
+
`tests/core/web-push.test.ts`, `tests/browser/members.spec.ts`. **F04**
|
|
12274
|
+
"Notifications in this browser", a Push column per topic, and Quiet hours
|
|
12275
|
+
on `/portal/notifications`. **F05** `notifications.webPushKey`,
|
|
12276
|
+
`notifications.subscribeWebPush`, `notifications.unsubscribeWebPush`,
|
|
12277
|
+
`notifications.webPushSubscriptions`, and quiet hours on
|
|
12278
|
+
`notifications.updateSettings`. **F07** the site's VAPID key pair is made
|
|
12279
|
+
once and sealed at rest; payloads are encrypted to each browser so its push
|
|
12280
|
+
service cannot read them; only the major browsers' push services are
|
|
12281
|
+
accepted as endpoints (no server-side request to arbitrary URLs); a
|
|
12282
|
+
subscription the browser abandoned (404/410) is deleted; turning push on
|
|
12283
|
+
defaults topics to push unless the member chose otherwise; quiet hours hold
|
|
12284
|
+
push, email and text (digests included) in the member's timezone, across
|
|
12285
|
+
midnight, never critical items, never the inbox. Delivery is proven by a
|
|
12286
|
+
decryption round trip and VAPID signature check with `fetch` stubbed; it
|
|
12287
|
+
has not been exercised against a live browser push service in CI.
|
|
12288
|
+
**F09** the existing per-minute `core.deliverNotifications` sweep releases
|
|
12289
|
+
held items when quiet hours end. **F12** the browser journey loads the
|
|
12290
|
+
service worker and sets quiet hours. Changeset `member-web-push.md`.)*
|
|
12291
|
+
- [x] **C12.23** Make member messages end-to-end encrypted by default with
|
|
12292
|
+
MLS (RFC 9420): keys only on members' devices, every current device of
|
|
12293
|
+
every participant in the conversation's group, history the server cannot
|
|
12294
|
+
read, and message franking so a recipient can report exactly the messages
|
|
12295
|
+
they choose to moderation. Split 2026-10-15: earlier history on a newly
|
|
12296
|
+
added device is C12.34, verifying devices is C12.35, and encrypted
|
|
12297
|
+
attachments are C12.36.
|
|
12298
|
+
*(Evidence 2026-10-15: `src/modules/members/e2ee/` (`wire.ts`, `engine.ts`,
|
|
12299
|
+
`service.ts`, `idb-store.ts`), `app/(public)/messages/SecureConversation.tsx`,
|
|
12300
|
+
migration `db/migrations/0043_member_e2ee.sql`,
|
|
12301
|
+
`tests/modules/member-e2ee.test.ts`, `tests/browser/members.spec.ts`.
|
|
12302
|
+
**F04** "End-to-end encrypted" on encrypted conversations, notices while a
|
|
12303
|
+
device joins or someone has no device, "Not end-to-end encrypted" on any
|
|
12304
|
+
plaintext message in an encrypted conversation, decryption in the page, and
|
|
12305
|
+
"Your devices for encrypted messages" with Remove device on
|
|
12306
|
+
`/portal/member`; the report form shows what the device read. **F05**
|
|
12307
|
+
`members.registerDevice`, `members.publishKeyPackages`, `members.devices`,
|
|
12308
|
+
`members.revokeDevice`, `members.e2eeSync`, `members.claimKeyPackages`,
|
|
12309
|
+
`members.e2eeCommit`, `members.sendEncrypted`, `encrypted` on messages and
|
|
12310
|
+
`e2ee` on `members.conversation`, `franking` on `members.report`, and
|
|
12311
|
+
`body` now optional on `members.startConversation`. **F07** MLS ciphersuite 1
|
|
12312
|
+
through `ts-mls`; every device is one leaf whose credential is
|
|
12313
|
+
`userId:deviceId` with the Ed25519 key the server recorded, and devices
|
|
12314
|
+
accept only credentials and payload signatures the directory vouches for;
|
|
12315
|
+
the server orders commits by epoch and refuses an encrypted message unless
|
|
12316
|
+
the group holds exactly the current devices of everyone still in the
|
|
12317
|
+
conversation, so a removed device or a person who left reads nothing new;
|
|
12318
|
+
only revoked devices and those of people who left can be removed; the
|
|
12319
|
+
sender's ratchet advances before a message leaves the device; franking
|
|
12320
|
+
tags are HMAC-SHA256 under a per-message key bound to conversation and
|
|
12321
|
+
sender, and a report must reveal a body and key that match; plaintext is
|
|
12322
|
+
refused once everyone has a device, except from the member's own agent;
|
|
12323
|
+
the device services are not agent-callable; unsending and erasure delete
|
|
12324
|
+
the ciphertext. **F09** N/A — no background work; devices top up key
|
|
12325
|
+
packages when they run low. **F12** the module test runs real devices on
|
|
12326
|
+
the shared engine (two for one member), checks the database for any
|
|
12327
|
+
plaintext, reports with a true and a doctored franking, revokes a device,
|
|
12328
|
+
adds a late one, and drops a member who left; the browser journey does the
|
|
12329
|
+
same across three browsers. Changeset `member-e2ee.md`.)*
|
|
12330
|
+
- [x] **C12.24** Add group voice and video calls through a self-hostable
|
|
12331
|
+
open-source SFU adapter (LiveKit first), with end-to-end media encryption
|
|
12332
|
+
(SFrame) so the SFU forwards media it cannot decrypt, and the same
|
|
12333
|
+
who-may-call rules as one-to-one calls.
|
|
12334
|
+
*(Evidence 2026-10-15: `src/modules/members/group-calls.ts`,
|
|
12335
|
+
`src/modules/members/sfu.ts`, `members.sendCallKey` in
|
|
12336
|
+
`src/modules/members/e2ee/service.ts`, `app/(public)/call/group/`,
|
|
12337
|
+
migration `db/migrations/0044_member_group_calls.sql`,
|
|
12338
|
+
`tests/modules/member-group-calls.test.ts`,
|
|
12339
|
+
`tests/browser/member-group-calls.spec.ts`, `tests/core/csp.test.ts`.
|
|
12340
|
+
**F04** "Start voice call" and "Start video call" on encrypted group
|
|
12341
|
+
conversations, "Join the call going on" while one runs, and
|
|
12342
|
+
`/call/group/[id]` with tiles marked end to end encrypted, mute, camera and
|
|
12343
|
+
leave. **F05** `members.groupCallConfig`, `members.startGroupCall`,
|
|
12344
|
+
`members.groupCall`, `members.activeGroupCall`, `members.joinGroupCall`,
|
|
12345
|
+
`members.leaveGroupCall`, `members.sendCallKey`, and `calls` on
|
|
12346
|
+
`members.e2eeSync`. **F07** a call needs the conversation's MLS group; the
|
|
12347
|
+
starting device makes a random 32-byte media key and sends it to the group
|
|
12348
|
+
as a signed MLS control message under the same exact-roster rule as
|
|
12349
|
+
messages, and a device holding it re-sends it when a device joins later, so
|
|
12350
|
+
the key reaches only devices in the conversation and never the server or
|
|
12351
|
+
the SFU; LiveKit's frame encryption uses it (its own frame format rather
|
|
12352
|
+
than RFC 9605 SFrame on the wire); only members who accepted the
|
|
12353
|
+
conversation can start, are rung or can join, and only a device in the
|
|
12354
|
+
group gets an SFU token (HS256, two hours, one room); the CSP admits the
|
|
12355
|
+
SFU only on group call pages; start and join are not agent-callable;
|
|
12356
|
+
nothing is recorded. Removing someone who leaves mid-call is C12.37.
|
|
12357
|
+
**F09** N/A — no background work; calls end when the last person leaves,
|
|
12358
|
+
or after twelve hours. **F12** the browser test runs a real LiveKit 1.13.7:
|
|
12359
|
+
two members see each other's decoded video marked encrypted, and a third
|
|
12360
|
+
whose device holds a wrong key receives the same frames and decodes none.
|
|
12361
|
+
CI runs the checksum-pinned LiveKit release. Changeset
|
|
12362
|
+
`member-group-calls.md`.)*
|
|
12363
|
+
- [x] **C12.25** Let members offer bookable services on their own calendar:
|
|
12364
|
+
availability set by the seller, the site's booking flow and policies, and
|
|
12365
|
+
the booking paid to the seller through C12.09.
|
|
12366
|
+
*(Evidence 2026-10-15: `src/modules/members/member-services.ts`, the
|
|
12367
|
+
booking source in `members.recordInvoicePayout`
|
|
12368
|
+
(`src/modules/members/member-subscriptions.ts`), the seller-aware
|
|
12369
|
+
`catalog.bookableServices` and seller check in `catalog.bookService`
|
|
12370
|
+
(`src/modules/catalog/public-booking.ts`), `/book?seller=…`,
|
|
12371
|
+
`tests/modules/member-services.test.ts`, `tests/browser/members.spec.ts`.
|
|
12372
|
+
**F04** "Let people book this" on a live service listing, Bookings (hours
|
|
12373
|
+
and upcoming bookings) on `/portal/listings`, and "Book …" on `/@handle`.
|
|
12374
|
+
**F05** `members.offerBookableService`, `members.myBookingHours`,
|
|
12375
|
+
`members.setBookingHours`, `members.myServiceBookings`,
|
|
12376
|
+
`members.bookableServices`, and `sellerUserId` on
|
|
12377
|
+
`catalog.bookableServices`. **F07** only the member's own live service
|
|
12378
|
+
listing becomes bookable, on a calendar that is theirs; availability is
|
|
12379
|
+
the member's weekly hours; booking, cancellation policy, rescheduling,
|
|
12380
|
+
reminders and invoicing are the site's own flow; the service is open to
|
|
12381
|
+
every audience that can book the site's services (a site with none gets a
|
|
12382
|
+
public "Members' services" audience); members' services never mix into
|
|
12383
|
+
the site's own `/book` list; bookings are refused while the member cannot
|
|
12384
|
+
be paid; a paid booking invoice becomes the member's payout through the
|
|
12385
|
+
§44.8 ledger, refunds adjusting it. **F09** the existing booking reminder
|
|
12386
|
+
and calendar jobs apply; payouts follow `invoice.paid`. **F12** the
|
|
12387
|
+
browser journey lists a service, opens it for booking, and finds times
|
|
12388
|
+
from the profile. Changeset `member-bookings.md`.)*
|
|
12389
|
+
- [ ] **C12.26** Implement the Stripe Connect marketplace adapter for all
|
|
12390
|
+
three payout models: Express onboarding and status, provider-run seller
|
|
12391
|
+
verification, held funds with transfers on release, direct and
|
|
12392
|
+
destination charges, application fees, refunds and transfer reversals, and
|
|
12393
|
+
signed webhooks.
|
|
12394
|
+
*(Progress 2026-10-15, not yet checked: `src/adapters/payouts/stripe-connect.ts`
|
|
12395
|
+
and `src/modules/members/provider-payouts.ts` carry the hold and instant
|
|
12396
|
+
models — Express accounts with Stripe-hosted onboarding, `account.updated`
|
|
12397
|
+
webhooks verified with `STRIPE_CONNECT_WEBHOOK_SECRET`, one idempotent
|
|
12398
|
+
Transfer per due payout from the site's balance, and a reversal on a full
|
|
12399
|
+
refund — proven against recorded HTTP in
|
|
12400
|
+
`tests/adapters/payout-providers.test.ts` and
|
|
12401
|
+
`tests/modules/member-provider-payouts.test.ts`. Still open: a run against
|
|
12402
|
+
a Stripe test account (waits for test keys, Tony 2026-10-15) and direct
|
|
12403
|
+
and destination charges with application fees, now C12.38.)*
|
|
12404
|
+
Audit follow-up 2026-10-21 (final design after two further reviews):
|
|
12405
|
+
each provider attempt has one idempotency key — the payout id for the
|
|
12406
|
+
first attempt (as before), then `<payout id>:<n>` — and every retry of an
|
|
12407
|
+
attempt reuses its key (Razorpay's 36-character alphabet gets the id
|
|
12408
|
+
without hyphens and `_<n>`). A new attempt is made only once the last is
|
|
12409
|
+
dead at the provider: refused before money moved, or returned, blocked or
|
|
12410
|
+
refunded (PayPal). An attempt whose outcome is unknown (timeout, outage,
|
|
12411
|
+
409, unrecorded result) or that PayPal holds unclaimed is never resent
|
|
12412
|
+
automatically; same-key retries also stop after 23 hours (Stripe keeps
|
|
12413
|
+
keys 24). Such a payout goes to review telling the owner to check the
|
|
12414
|
+
provider, and the owner records "Provider paid" (→ paid) or "Provider did
|
|
12415
|
+
not pay — send again" (`members.settlePayouts` `providerPaid` /
|
|
12416
|
+
`sendAgain`, buttons under Admin → Members); "still owed" alone does not
|
|
12417
|
+
resend it. Earlier attempts are kept on the transfer
|
|
12418
|
+
(`previous_attempts`, migration `0053_member_payout_attempts.sql`, which
|
|
12419
|
+
also adds the `unknown` and `unclaimed` states), and a webhook applies
|
|
12420
|
+
only to the attempt with its reference or key: a late success for a dead
|
|
12421
|
+
attempt updates that attempt and moves the payout to review with "paid
|
|
12422
|
+
after all — do not pay by hand"; it never touches the current attempt.
|
|
12423
|
+
Events matching no attempt here are acknowledged (200) and ignored.
|
|
12424
|
+
"Send again" answers only that check: one payout at a time (its own
|
|
12425
|
+
form under Admin → Members, not the bulk list), an attempt in `unknown`
|
|
12426
|
+
(never `sent` or `unclaimed`), under a review the check raised (a
|
|
12427
|
+
partial-refund review goes through "still owed"). Migration
|
|
12428
|
+
`0054_member_payout_attempts_backfill.sql` marks every transfer the earlier
|
|
12429
|
+
code left pending or failed (even with no attempt counted: it counted
|
|
12430
|
+
only after the call returned) as `unknown`, dated
|
|
12431
|
+
for the 23-hour guard, because it never recorded unknown outcomes and
|
|
12432
|
+
its Razorpay calls had no idempotency key; it also adds a GIN index for
|
|
12433
|
+
the `previous_attempts` lookup.
|
|
12434
|
+
Regression: `tests/modules/member-provider-payouts.test.ts`,
|
|
12435
|
+
`tests/adapters/payout-providers.test.ts`.
|
|
12436
|
+
Audit follow-up 2026-10-21: the payout job could pay a seller after the
|
|
12437
|
+
buyer's refund had cancelled the payout, because a queued transfer was
|
|
12438
|
+
claimed whatever the payout's state, and settlement only ever moved a
|
|
12439
|
+
"due" payout. Now only a still-due payout is sent; a queued transfer for a
|
|
12440
|
+
refunded, disputed or hand-paid payout is dropped, or goes to review when
|
|
12441
|
+
an earlier attempt's outcome is unknown; money that reaches a seller after
|
|
12442
|
+
the payout left "due" moves it to review and queues a reversal. A failure
|
|
12443
|
+
after the provider call (the result not recorded) is no longer counted as
|
|
12444
|
+
a provider refusal: the row stays claimed and marked "Outcome unknown", and
|
|
12445
|
+
the next run's idempotent call returns the same transfer. Settlement and
|
|
12446
|
+
failure webhooks no longer reopen a cancelled payout. Regression:
|
|
12447
|
+
`tests/modules/member-provider-payouts.test.ts`; changeset
|
|
12448
|
+
`payout-refund-retry-safety.md`.
|
|
12449
|
+
- [ ] **C12.27** Add marketplace payout adapters for providers other than
|
|
12450
|
+
Stripe (for example PayPal, Adyen for Platforms, Mollie), selectable by the
|
|
12451
|
+
site owner without code changes.
|
|
12452
|
+
*(Progress 2026-10-15, not yet checked: PayPal Payouts
|
|
12453
|
+
(`src/adapters/payouts/paypal-payouts.ts`: the seller's PayPal email,
|
|
12454
|
+
one-item batches keyed by the payout id, settled and failed by verified
|
|
12455
|
+
webhook; PayPal cannot reverse a claimed payout, so a refund after payment
|
|
12456
|
+
goes to review) and Razorpay Route (`src/adapters/payouts/razorpay-route.ts`:
|
|
12457
|
+
a linked account with Route and bank settlement, direct transfers and
|
|
12458
|
+
reversals, signed webhooks), selectable under Admin → Members, proven
|
|
12459
|
+
against recorded HTTP. Still open: sandbox runs with test credentials.)*
|
|
12460
|
+
Audit follow-up 2026-10-21: retries after an uncertain outcome were unsafe.
|
|
12461
|
+
Razorpay transfers now carry the attempt key in Razorpay's documented
|
|
12462
|
+
`X-Transfer-Idempotency` header. PayPal batches carry `PayPal-Request-Id`
|
|
12463
|
+
(kept 30 days), and a refused duplicate `sender_batch_id` is read through
|
|
12464
|
+
its link to the original batch instead of counting as a failure. Webhook
|
|
12465
|
+
transfer events carry the attempt key the transfer was sent with (PayPal
|
|
12466
|
+
`sender_item_id`, Razorpay `notes.freeholder_payout_id`), so a
|
|
12467
|
+
confirmation that beats the "sent" row is still applied to that attempt.
|
|
12468
|
+
PayPal UNCLAIMED is its own state (claimable for 30 days, never resent);
|
|
12469
|
+
RETURNED, BLOCKED, REFUNDED, FAILED, DENIED and CANCELED mean the attempt
|
|
12470
|
+
is dead. Events that match no attempt here are acknowledged (200) and
|
|
12471
|
+
ignored: a shared provider account carries other integrations' payouts.
|
|
12472
|
+
Razorpay offers idempotency only on direct transfers, not reversals; a
|
|
12473
|
+
retried full reversal is refused once the first went through.
|
|
12474
|
+
Regression: `tests/adapters/payout-providers.test.ts`,
|
|
12475
|
+
`tests/modules/member-provider-payouts.test.ts`; changeset
|
|
12476
|
+
`payout-refund-retry-safety.md`. Not yet proven against live sandboxes.
|
|
12477
|
+
- [x] **C12.28** Publish a prohibited-items policy: the site owner edits it
|
|
12478
|
+
under Admin → Members, it is public at `/market/policy`, sellers accept it
|
|
12479
|
+
before listing, and the report queue offers it as a reason.
|
|
12480
|
+
*(Evidence 2026-10-14: `src/modules/members/policy.ts`, migration
|
|
12481
|
+
`db/migrations/0036_member_market_policy.sql`,
|
|
12482
|
+
`tests/modules/member-listings.test.ts`, `tests/browser/members.spec.ts`.
|
|
12483
|
+
**F04** `/market/policy` (linked from `/market` and the listing report
|
|
12484
|
+
page), the acceptance checkbox on `/portal/listings`, and the editor on
|
|
12485
|
+
`/admin/members`. **F05** `members.marketPolicy`,
|
|
12486
|
+
`members.updateMarketPolicy`, and `acceptPolicy` on
|
|
12487
|
+
`members.createListing`. **F07** a starter policy applies until the owner
|
|
12488
|
+
writes one; every published change is a new version; a seller must accept
|
|
12489
|
+
the current version before listing, again after each change; only staff
|
|
12490
|
+
publish; "something that is not allowed to be sold" is a report reason.
|
|
12491
|
+
**F09** N/A — no background work. **F12** the browser journey reads the
|
|
12492
|
+
starter policy, publishes a custom one, and shows the seller the changed
|
|
12493
|
+
policy to accept. Changeset `member-market-policy.md`.)*
|
|
12494
|
+
- [x] **C12.29** Make adult content opt-in for adults and never shown to
|
|
12495
|
+
minors: members mark posts and listings as adult, adults opt in to see
|
|
12496
|
+
them, and minors and visitors never receive them from any service.
|
|
12497
|
+
*(Evidence 2026-10-14: `src/modules/members/adult.ts`, the listing view
|
|
12498
|
+
gate in `src/modules/catalog/listing-gate.ts`, migration
|
|
12499
|
+
`db/migrations/0035_member_adult_content.sql`,
|
|
12500
|
+
`tests/modules/member-adult.test.ts`, `tests/browser/members.spec.ts`.
|
|
12501
|
+
**F04** the site switch on `/admin/members`, the opt-in on `/portal/member`,
|
|
12502
|
+
the adult checkbox in the composer and on `/portal/listings`, and an 18+
|
|
12503
|
+
badge on posts. **F05** `adult` on `members.post` and
|
|
12504
|
+
`members.createListing`, `showAdult` on `members.updateMe`, `adultContent`
|
|
12505
|
+
on `members.updateSettings`. **F07** off unless the site owner allows it;
|
|
12506
|
+
only self-attested adults may mark or opt in, and saying you are not an
|
|
12507
|
+
adult turns the opt-in off (a database check enforces it); every post read
|
|
12508
|
+
(feeds, profiles, single posts, reposts, pending tags) and every catalog
|
|
12509
|
+
path (market, storefront options, product pages, the public product list
|
|
12510
|
+
behind `llms.txt` and page blocks, cart and checkout) leaves adult items out for minors, visitors and adults who have
|
|
12511
|
+
not opted in; minors are never mentioned or tagged into adult posts;
|
|
12512
|
+
authors see their own; turning the site switch off hides everything
|
|
12513
|
+
already marked. **F09** N/A — no background work. **F12** the browser
|
|
12514
|
+
journey has the owner allow it, an adult post adult content, a minor and a
|
|
12515
|
+
visitor never see it, and another adult see it only after opting in.
|
|
12516
|
+
Changeset `member-adult-content.md`.)*
|
|
12517
|
+
- [x] **C12.31** Add a community new-site preset: Bench tokens, pages
|
|
12518
|
+
(home around the feed, market, join), navigation and emails for a site
|
|
12519
|
+
whose product is its members, installable from setup like the business
|
|
12520
|
+
presets.
|
|
12521
|
+
*(Evidence 2026-10-15: the `community` preset in
|
|
12522
|
+
`packages/templates/src/presets.ts` (home with Join, the member feed and
|
|
12523
|
+
the market; community guidelines pointing to `/market/policy`; about;
|
|
12524
|
+
contact; a Supporter pass product; a welcome email), the template copy in
|
|
12525
|
+
`src/modules/cms/templates.ts`, and `community` in the config, CMS
|
|
12526
|
+
template presets, social defaults and `create-freeholder --preset`;
|
|
12527
|
+
`tests/core/templates.test.ts`. **F04** the installed pages. **F05**
|
|
12528
|
+
`seed.installPreset` with `preset: "community"`. **F07** installs through
|
|
12529
|
+
ordinary CMS, catalog and forms services; nothing about members is
|
|
12530
|
+
switched on by the preset itself (joining, selling and adult content stay
|
|
12531
|
+
the owner's choices in Admin → Members). **F09** N/A — no background work.
|
|
12532
|
+
**F12** the preset test installs it and checks the pages, product and
|
|
12533
|
+
home links. Changeset `community-preset.md`.)*
|
|
12534
|
+
- [x] **C12.32** Let members follow fediverse accounts from here: look up
|
|
12535
|
+
`@user@host`, send a signed Follow, accept their public posts into the
|
|
12536
|
+
member's home feed, and respect remote Delete, Update and Block.
|
|
12537
|
+
*(Evidence 2026-10-15: `src/modules/members/federation/following.ts`,
|
|
12538
|
+
`applyFollowedActivity` in `members.federationInbox`, `app/(public)/feed/page.tsx`,
|
|
12539
|
+
migration `db/migrations/0048_member_remote_follows.sql`,
|
|
12540
|
+
`tests/modules/member-federation.test.ts`, `tests/browser/members.spec.ts`.
|
|
12541
|
+
**F04** "Follow someone on another server" with the accounts followed
|
|
12542
|
+
elsewhere (following, or waiting for them to accept) and Unfollow under
|
|
12543
|
+
The fediverse on `/portal/member`; their posts interleaved by time in the
|
|
12544
|
+
home feed, marked "from the fediverse" with a link to the original.
|
|
12545
|
+
**F05** `members.followRemote`, `members.unfollowRemote`,
|
|
12546
|
+
`members.remoteFollows`, `members.remoteFeed`. **F07** only a member who
|
|
12547
|
+
has joined the fediverse can follow out; WebFinger and the actor are
|
|
12548
|
+
fetched through the DNS-pinned transport outside any transaction (plain
|
|
12549
|
+
HTTP only for loopback outside production); the Follow and Undo are
|
|
12550
|
+
signed by the member's actor through the existing delivery queue; posts
|
|
12551
|
+
are taken only after the remote server accepts, only from the accounts
|
|
12552
|
+
the member follows, only when addressed publicly, authored by the
|
|
12553
|
+
verified sender and on its own host; remote HTML is reduced to plain text
|
|
12554
|
+
(scripts and styles dropped) and always rendered as text; Update edits,
|
|
12555
|
+
Delete removes, an account's own Delete forgets it, and Block ends the
|
|
12556
|
+
follow both ways; unfollowing drops posts nobody here still follows.
|
|
12557
|
+
**F09** Follow and Undo go out through `members.deliverFederation`.
|
|
12558
|
+
**F12** the module test runs a fake remote server: WebFinger lookup,
|
|
12559
|
+
signed Follow delivered, a post refused before Accept, public posts kept
|
|
12560
|
+
as text and followers-only ones not, Update, Delete, Block and Undo; the
|
|
12561
|
+
browser test shows a followed account's post in the feed as text and
|
|
12562
|
+
unfollows it. Changeset `member-follow-fediverse.md`.)*
|
|
12563
|
+
- [x] **C12.33** Let members take their audience elsewhere and bring it here:
|
|
12564
|
+
`alsoKnownAs` and an outgoing `Move` that remote servers follow, and
|
|
12565
|
+
accepting an incoming `Move` for an account moving in.
|
|
12566
|
+
*(Evidence 2026-10-15: `setFediverseAliases`, `moveToRemote` and the `Move`
|
|
12567
|
+
case of `applyFollowedActivity` in `src/modules/members/federation/following.ts`,
|
|
12568
|
+
`alsoKnownAs`/`movedTo` on the actor in `src/modules/members/federation/core.ts`,
|
|
12569
|
+
the Move target fetch in `app/ap/users/[handle]/inbox/route.ts`, migration
|
|
12570
|
+
`db/migrations/0049_member_fediverse_moves.sql`,
|
|
12571
|
+
`tests/modules/member-federation.test.ts`, `tests/browser/members.spec.ts`.
|
|
12572
|
+
**F04** "Moving between accounts" under The fediverse on `/portal/member`:
|
|
12573
|
+
your accounts on other servers (shown as "Also known as"), and "Move to
|
|
12574
|
+
another account" behind an explicit confirmation, with "You moved to …"
|
|
12575
|
+
afterwards. **F05** `members.setFediverseAliases`, `members.moveToRemote`,
|
|
12576
|
+
`fediverseAliases` and `movedTo` on the member's profile. **F07** aliases
|
|
12577
|
+
are resolved through WebFinger over the pinned transport and published as
|
|
12578
|
+
`alsoKnownAs`, which is what a remote server checks before following an
|
|
12579
|
+
account moving here; moving out is refused unless the new account already
|
|
12580
|
+
names this one in its `alsoKnownAs`, then a signed `Move` goes to every
|
|
12581
|
+
follower inbox and the actor shows `movedTo`; an incoming `Move` from a
|
|
12582
|
+
followed account is honoured only when the target — fetched by the inbox
|
|
12583
|
+
route outside the transaction — names the old account back, and then the
|
|
12584
|
+
member follows the new account and unfollows the old one. **F09** Move,
|
|
12585
|
+
Follow and Undo go out through `members.deliverFederation`. **F12** the
|
|
12586
|
+
module test runs a fake server: aliases on the actor, a move refused then
|
|
12587
|
+
delivered, a forged incoming Move ignored and a real one switching the
|
|
12588
|
+
follow; the browser test checks the screens and that nothing moves
|
|
12589
|
+
without confirming. Changeset `member-fediverse-moves.md`.)*
|
|
12590
|
+
- [x] **C12.34** Bring earlier end-to-end encrypted history to a member's
|
|
12591
|
+
newly added device, sent device to device so the server still cannot read
|
|
12592
|
+
it.
|
|
12593
|
+
*(Evidence 2026-10-15: `src/modules/members/e2ee/history.ts`,
|
|
12594
|
+
`askForHistory`, `historyAsks`, `giveHistory` and `takeHistory` in
|
|
12595
|
+
`src/modules/members/e2ee/engine.ts`, `HistoryPanel` in
|
|
12596
|
+
`app/(public)/messages/SecureConversation.tsx`, migration
|
|
12597
|
+
`db/migrations/0047_member_history_transfers.sql`,
|
|
12598
|
+
`tests/modules/member-e2ee.test.ts`, `tests/browser/members.spec.ts`.
|
|
12599
|
+
**F04** on `/messages`, "Bring earlier messages to this browser" with
|
|
12600
|
+
"Ask my other devices", which shows this device's code; on the member's
|
|
12601
|
+
other devices, the request with the code to compare and "Send my
|
|
12602
|
+
messages" or "Ignore"; then "Brought N earlier messages to this
|
|
12603
|
+
browser". **F05** `members.requestHistory`, `members.historyRequests`,
|
|
12604
|
+
`members.sendHistory`, `members.closeHistoryRequest`,
|
|
12605
|
+
`members.receivedHistory`, `members.ackHistory`. **F07** the new device
|
|
12606
|
+
makes an HPKE key pair (the conversations' ciphersuite) and signs the
|
|
12607
|
+
public half with its device key, which the server and the approving
|
|
12608
|
+
device both check; requests are visible only to the same member's other
|
|
12609
|
+
devices; nothing moves until the member approves on one of them, after
|
|
12610
|
+
comparing the code — so a device the server registered on its own
|
|
12611
|
+
receives nothing; each conversation's messages (with their franking keys
|
|
12612
|
+
and file keys) are sealed to that key with the request and conversation
|
|
12613
|
+
as associated data; the server relays sealed bytes only and deletes them
|
|
12614
|
+
once read; requests lapse after seven days; services are not
|
|
12615
|
+
agent-callable; erasure removes them. **F09** N/A — no background work;
|
|
12616
|
+
the asking browser checks every few seconds while it waits. **F12** the
|
|
12617
|
+
module test shows the new device reading only later messages, the code
|
|
12618
|
+
matching, another member not seeing the request, a forged signature
|
|
12619
|
+
refused, nothing moving before approval, and the earlier messages arriving
|
|
12620
|
+
sealed; the browser journey approves from one browser and reads the
|
|
12621
|
+
earlier message in another. Changeset `member-history-transfer.md`.)*
|
|
12622
|
+
- [x] **C12.35** Let members verify the devices in an encrypted conversation
|
|
12623
|
+
(a device list and comparable safety numbers), so a device the server
|
|
12624
|
+
added without the person's knowledge is visible.
|
|
12625
|
+
*(Evidence 2026-10-15: `verification` and `confirmDevices` in
|
|
12626
|
+
`src/modules/members/e2ee/engine.ts`, `DeviceVerification` in
|
|
12627
|
+
`app/(public)/messages/SecureConversation.tsx`,
|
|
12628
|
+
`tests/modules/member-e2ee.test.ts`, `tests/browser/members.spec.ts`.
|
|
12629
|
+
**F04** "Verify devices" on encrypted conversations: the safety number
|
|
12630
|
+
(twelve groups of five digits), each person's devices with a per-device
|
|
12631
|
+
fingerprint and "this device", and a notice naming devices that came or
|
|
12632
|
+
went since the member last checked, with "I have checked them". **F05**
|
|
12633
|
+
N/A — computed on the device from its own MLS group; no service changes.
|
|
12634
|
+
**F07** the device list comes from this device's MLS ratchet tree — the
|
|
12635
|
+
leaves that will actually receive messages — not from the server's
|
|
12636
|
+
directory, and the number is SHA-256 over every leaf's identity and
|
|
12637
|
+
signature key, so a device added without someone's knowledge changes it
|
|
12638
|
+
for everyone and is named in the notice; an account not in the
|
|
12639
|
+
conversation is shown as one. **F09** N/A — no background work. **F12**
|
|
12640
|
+
the module test checks both members see the same number, that a further
|
|
12641
|
+
device changes it and is reported until confirmed; the browser journey
|
|
12642
|
+
compares the numbers across two browsers after a device joins.
|
|
12643
|
+
Changeset `member-device-verification.md`.)*
|
|
12644
|
+
- [x] **C12.36** Encrypt attachments end to end in encrypted conversations:
|
|
12645
|
+
files encrypted on the sender's device with keys carried inside the MLS
|
|
12646
|
+
message, stored as opaque blobs.
|
|
12647
|
+
*(Evidence 2026-10-15: `src/modules/members/sealed-blobs.ts`,
|
|
12648
|
+
`sealFile`/`openFile` and `files` in `src/modules/members/e2ee/wire.ts`,
|
|
12649
|
+
`app/api/member-blobs/route.ts`, `app/member-blobs/[id]/route.ts`,
|
|
12650
|
+
migration `db/migrations/0046_member_sealed_blobs.sql`,
|
|
12651
|
+
`tests/modules/member-e2ee.test.ts`, `tests/browser/members.spec.ts`.
|
|
12652
|
+
**F04** "Add photos or video (end-to-end encrypted)" with a description in
|
|
12653
|
+
encrypted conversations, and the files shown decrypted in the thread.
|
|
12654
|
+
**F05** `members.uploadSealedBlob` (also `POST /api/member-blobs`) and
|
|
12655
|
+
`sealedFiles` on `members.sendEncrypted`. **F07** each file gets a fresh
|
|
12656
|
+
AES-256-GCM key and nonce on the sender's device; only ciphertext is
|
|
12657
|
+
uploaded, and the key, nonce, name, type and description travel inside
|
|
12658
|
+
the signed MLS payload; a file is served (as `application/octet-stream`,
|
|
12659
|
+
`private, no-store`, sandboxed, same-origin) only to people still in its
|
|
12660
|
+
conversation and only while its message stands; only its uploader can
|
|
12661
|
+
attach it, once; only image and video types are shown; 25 MB per file and
|
|
12662
|
+
four per message. Because the server cannot read these files, it cannot
|
|
12663
|
+
scan, resize or hash-match them (C12.30 cannot apply to them), and
|
|
12664
|
+
franked reports cover the text of a message, not its files. **F09**
|
|
12665
|
+
`members.purgeSealedBlobs` every ten minutes deletes removed files and
|
|
12666
|
+
ones uploaded but never sent within a day, with storage I/O outside any
|
|
12667
|
+
transaction. **F12** the module test round-trips a file between devices,
|
|
12668
|
+
checks the stored bytes are not the file, that someone outside the
|
|
12669
|
+
conversation is refused and a file cannot be reused, and that unsending
|
|
12670
|
+
and the sweep delete it; the browser journey sends a photo from one
|
|
12671
|
+
browser and shows it decoded in another. Changeset
|
|
12672
|
+
`member-sealed-attachments.md`.)*
|
|
12673
|
+
- [x] **C12.37** When someone leaves a conversation during its group call,
|
|
12674
|
+
remove them from the SFU room through the adapter after the leave commits,
|
|
12675
|
+
and have the remaining devices switch to a fresh media key.
|
|
12676
|
+
*(Evidence 2026-10-15: `src/modules/members/call-seats.ts`, `participants`
|
|
12677
|
+
and `remove` on the adapter in `src/modules/members/sfu.ts`, generations in
|
|
12678
|
+
`members.sendCallKey` and `members.e2eeSync`, migration
|
|
12679
|
+
`db/migrations/0045_member_call_key_generations.sql`,
|
|
12680
|
+
`tests/modules/member-group-calls.test.ts`,
|
|
12681
|
+
`tests/browser/member-group-calls.spec.ts`. **F04** the person removed sees
|
|
12682
|
+
"You are no longer in this call."; the others' tiles drop them. **F05**
|
|
12683
|
+
`generation` and `fresh` on `members.sendCallKey`, `generation` on
|
|
12684
|
+
`members.e2eeSync` calls; the `member.callSeatLost` event. **F07** leaving
|
|
12685
|
+
the conversation or removing a device bumps the call's key generation in
|
|
12686
|
+
the same transaction and queues `member.callSeatLost`; after commit the
|
|
12687
|
+
listener asks the SFU (LiveKit's room service, a one-minute room-admin
|
|
12688
|
+
token) to disconnect that person's devices or that device; a remaining
|
|
12689
|
+
device that held the previous key makes the new one only after its sync
|
|
12690
|
+
has taken the leaver's devices out of the MLS group, and the server
|
|
12691
|
+
accepts one fresh key per generation, so the new key never reaches the
|
|
12692
|
+
person who left. **F09** `member.callSeatLost` is handled after commit;
|
|
12693
|
+
a failed SFU call does not undo the leave. **F12** the module test leaves
|
|
12694
|
+
and revokes mid-call against a recording SFU adapter; the browser test has
|
|
12695
|
+
a member leave mid-call through the real LiveKit and checks the others keep
|
|
12696
|
+
decoding on the new key. Changeset `member-call-removal.md`.)*
|
|
12697
|
+
- [ ] **C12.38** Let sellers be the merchant of record: direct or
|
|
12698
|
+
destination charges at checkout through the payout provider (Stripe
|
|
12699
|
+
Connect first), with the site fee taken as an application fee, refunds
|
|
12700
|
+
and disputes on the seller's account. Split from C12.26 on 2026-10-15.
|
|
12701
|
+
- [ ] **C12.39** Move end-to-end encryption from `ts-mls` (not independently
|
|
12702
|
+
audited) to OpenMLS (audited by SRLabs), compiled to WebAssembly in CI and
|
|
12703
|
+
committed so deploys stay Node-only. Deferred by Tony on 2026-10-15; until
|
|
12704
|
+
then members are not told their messages are safe against a compromised
|
|
12705
|
+
server.
|
|
12706
|
+
- [ ] **C12.30** Hash-match known abuse imagery on upload, once member
|
|
12707
|
+
attachments (C12.21) exist, through a provider adapter, blocking the upload,
|
|
12708
|
+
preserving evidence and reporting through the legal path for the site's
|
|
12709
|
+
jurisdiction.
|
|
12710
|
+
*(Progress 2026-10-15, not yet checked: `src/adapters/abuse-scan/` with a
|
|
12711
|
+
PhotoDNA Cloud Service adapter (request shape from Microsoft's public
|
|
12712
|
+
reference, tested against recorded HTTP) and a Thorn Safer placeholder
|
|
12713
|
+
that reports itself unconfigured until it is written against Safer's own
|
|
12714
|
+
API reference; `createCompositeScanner` in `src/adapters/malware/index.ts`
|
|
12715
|
+
checks images before the malware scan and fails closed, so a match or an
|
|
12716
|
+
unanswered check quarantines the file through the existing rules;
|
|
12717
|
+
`src/modules/members/abuse.ts` records the match id and SHA-256 (never the
|
|
12718
|
+
image), links the upload, suspends the uploader, puts the file under legal
|
|
12719
|
+
hold (`media.trash` and `media.rescan` refuse it), and gives the owner a
|
|
12720
|
+
queue under Admin → Members with where to report — Cybertip.ca in Canada,
|
|
12721
|
+
NCMEC's CyberTipline in the US — and the reference once filed. Tests:
|
|
12722
|
+
`tests/adapters/abuse-scan.test.ts`, `tests/modules/member-abuse.test.ts`.
|
|
12723
|
+
Still open: a provider agreement (Tony, not now), a live run, and
|
|
12724
|
+
submitting reports through a provider API rather than by hand. End-to-end
|
|
12725
|
+
encrypted files (C12.36) cannot be scanned.)*
|
|
12726
|
+
Audit follow-up 2026-10-21: an image the matcher could not check (an
|
|
12727
|
+
outage, or one over 64 MB) was tagged like a match, so an ordinary photo
|
|
12728
|
+
became permanently undeletable and unrescannable. Unchecked images now
|
|
12729
|
+
carry `abuse-hash-error:<provider>` and stay rescannable and deletable;
|
|
12730
|
+
legal hold (`underLegalHold` in `src/core/media/abuse-evidence.ts`)
|
|
12731
|
+
requires an actual match (`scanStatus "infected"`), which also releases
|
|
12732
|
+
rows held under the old tagging without a migration. Reports link to
|
|
12733
|
+
distinct matched assets, oldest first, so a second uploader of the same
|
|
12734
|
+
image is linked and suspended too. Matches are recorded by core media
|
|
12735
|
+
rather than the members module: `abuse_reports` is defined in
|
|
12736
|
+
`src/core/media/abuse-schema.ts` (same table, no SQL change), boot
|
|
12737
|
+
installs the one recorder (`installAbuseRecorder`, a single slot, so a
|
|
12738
|
+
reload never records twice), and an unrecorded match refuses the
|
|
12739
|
+
upload. Regression: `tests/adapters/abuse-scan.test.ts`,
|
|
12740
|
+
`tests/modules/member-abuse.test.ts`; changeset
|
|
12741
|
+
`abuse-scan-unchecked-images.md`.
|
|
12742
|
+
|
|
12743
|
+
---
|
|
12744
|
+
|
|
12745
|
+
## 44. Members, Social, Messaging, Calls, and Marketplace
|
|
12746
|
+
|
|
12747
|
+
*Owner decision 2026-10-14.* Freeholder started as the operating system for a
|
|
12748
|
+
one-person business. It is now the open-source, MCP-friendly starter for anyone
|
|
12749
|
+
vibe-coding a next-generation site: a creator community, a local marketplace, a
|
|
12750
|
+
club, a studio with clients who also know each other. This section supersedes
|
|
12751
|
+
every earlier statement that a deployment has exactly one user who matters.
|
|
12752
|
+
Checklist: §43.19 (C12).
|
|
12753
|
+
|
|
12754
|
+
### 44.1 One site, many people
|
|
12755
|
+
|
|
12756
|
+
One deployment is still one site, with one database and no `tenant_id`
|
|
12757
|
+
(§2.1). Hosting many unrelated sites inside one deployment remains out of
|
|
12758
|
+
scope. What changes is who the site serves: any number of **members**, each
|
|
12759
|
+
with a profile, a social graph, conversations, and optionally a storefront.
|
|
12760
|
+
Site admins and staff keep the owner tools in §§3–43.
|
|
12761
|
+
|
|
12762
|
+
A member is a user account linked to a `Contact` (§2.3), so a member who buys,
|
|
12763
|
+
books or messages is the same person everywhere in the spine.
|
|
12764
|
+
|
|
12765
|
+
### 44.2 The standing default
|
|
12766
|
+
|
|
12767
|
+
When a design choice is open, choose what is best for the people using the
|
|
12768
|
+
site, even where it is harder to build or earns the site less:
|
|
12769
|
+
|
|
12770
|
+
- Privacy is the default; exposure is the member's choice.
|
|
12771
|
+
- Chronological feeds by default; ranking is optional and explains itself.
|
|
12772
|
+
- End-to-end encryption for private messages and calls.
|
|
12773
|
+
- No third-party trackers, no sale of member data, full export, real deletion.
|
|
12774
|
+
- Money flows to the person who did the work; the site fee defaults to zero.
|
|
12775
|
+
- Minors are protected without asking adults to give up their privacy.
|
|
12776
|
+
|
|
12777
|
+
### 44.3 Profiles and visibility
|
|
12778
|
+
|
|
12779
|
+
Every member has a profile at `/@handle`. Every profile field and published
|
|
12780
|
+
item carries one visibility: **public**, **followers**, **friends**,
|
|
12781
|
+
**subscribers** (paid, §44.5), or **only me**. Members set their defaults and
|
|
12782
|
+
can change any item later. Search-engine indexing of a member profile is
|
|
12783
|
+
opt-in; public site pages keep the SEO architecture in §5.
|
|
12784
|
+
|
|
12785
|
+
### 44.4 Social graph and content
|
|
12786
|
+
|
|
12787
|
+
- **Follow** is one-way; **friend** is mutual (request and accept). Private
|
|
12788
|
+
accounts approve followers.
|
|
12789
|
+
- **Block** removes visibility both ways in every read path; **mute** hides
|
|
12790
|
+
without notifying; **restrict** limits replies.
|
|
12791
|
+
- Posts support text and media, threaded comments, reactions, mentions,
|
|
12792
|
+
hashtags, reposts and quotes. Tagging another member requires their
|
|
12793
|
+
approval before it appears on their profile.
|
|
12794
|
+
|
|
12795
|
+
### 44.5 Member subscriptions
|
|
12796
|
+
|
|
12797
|
+
A member can offer paid subscriptions to their own content. Subscriber-only
|
|
12798
|
+
items use the entitlement machinery in §4.15; money follows §4.3 and pays out
|
|
12799
|
+
through §44.8.
|
|
12800
|
+
|
|
12801
|
+
### 44.6 Direct messages
|
|
12802
|
+
|
|
12803
|
+
One-to-one and group conversations, with message requests from people who are
|
|
12804
|
+
not connected. Messages are end-to-end encrypted by default using MLS
|
|
12805
|
+
(RFC 9420); the server stores ciphertext. A recipient can report a message
|
|
12806
|
+
with cryptographic message franking, so moderation sees exactly what was
|
|
12807
|
+
reported and nothing else. Read receipts are opt-in. Owner-to-customer
|
|
12808
|
+
messaging in §4.14 is unchanged and separate.
|
|
12809
|
+
|
|
12810
|
+
*Decided 2026-10-15 (C12.23):* each browser where a member opens messages is
|
|
12811
|
+
a device with its own keys. A conversation is encrypted as soon as everyone in
|
|
12812
|
+
it has a device; until then it is encrypted at rest and says it is not yet end
|
|
12813
|
+
to end. A member's own agent (C12.14) holds no device keys, so its messages
|
|
12814
|
+
are plaintext and labelled as such, and it can never register a device.
|
|
12815
|
+
Sale threads (§44.8) stay readable by the site, because disputes need them.
|
|
12816
|
+
|
|
12817
|
+
### 44.7 Voice and video calls
|
|
12818
|
+
|
|
12819
|
+
Private calls between members use WebRTC. One-to-one calls are peer-to-peer;
|
|
12820
|
+
group calls use a self-hostable open-source SFU through an adapter (§2.5).
|
|
12821
|
+
TURN relay uses short-lived credentials. SFU media is end-to-end encrypted.
|
|
12822
|
+
Members can only be called by connections or by people whose request they
|
|
12823
|
+
accepted. Nothing is recorded unless every participant consents during the
|
|
12824
|
+
call. This supersedes the 2026-09-27 routing of voice and video through a
|
|
12825
|
+
provider plugin for member-to-member calls.
|
|
12826
|
+
|
|
12827
|
+
### 44.8 Marketplace
|
|
12828
|
+
|
|
12829
|
+
Members sell physical goods, services bookable through the scheduling engine
|
|
12830
|
+
(§4.4), digital goods and rentals. Listings reuse the catalog (§4.2) with a
|
|
12831
|
+
seller dimension; each seller's storefront appears on their profile.
|
|
12832
|
+
|
|
12833
|
+
Checkout supports carts across sellers. The buyer pays one invoice on the
|
|
12834
|
+
Invoice → Payment spine, and each seller's share of each line is recorded on a
|
|
12835
|
+
payout ledger, less the site fee, which the site admin sets and which
|
|
12836
|
+
defaults to zero.
|
|
12837
|
+
|
|
12838
|
+
*Owner decision 2026-10-14:* the default payout model holds funds — the site
|
|
12839
|
+
charges the buyer, keeps the money until the buyer confirms delivery or a
|
|
12840
|
+
stated window passes, then pays the seller — because that is what protects
|
|
12841
|
+
buyers. Site owners can switch, in one setting, to **seller as merchant**
|
|
12842
|
+
(charges go straight to the seller; the site only takes its fee) or
|
|
12843
|
+
**instant payout** (the site charges and routes funds to the seller at once).
|
|
12844
|
+
Money moves through a provider-neutral marketplace payout adapter (§2.5):
|
|
12845
|
+
Stripe Connect is the first, with seller verification run by the provider;
|
|
12846
|
+
other providers plug into the same seam, and a manual adapter lets a site
|
|
12847
|
+
pay sellers by hand while the ledger keeps every amount owed.
|
|
12848
|
+
Disputes go to site-admin mediation. Reviews are possible only after a
|
|
12849
|
+
completed transaction and are revealed to both sides together.
|
|
12850
|
+
|
|
12851
|
+
### 44.9 Trust and safety
|
|
12852
|
+
|
|
12853
|
+
Anything can be reported. Moderation extends the community plugin's queue with
|
|
12854
|
+
audit trails, rate limits and spam controls. Sites publish a prohibited-items
|
|
12855
|
+
policy. Adult content is opt-in for adults and never shown to minors. Known
|
|
12856
|
+
abuse imagery is hash-matched on upload with a legal reporting path.
|
|
12857
|
+
|
|
12858
|
+
### 44.10 Agents
|
|
12859
|
+
|
|
12860
|
+
Every member capability is a service (§2.7), so it reaches HTTP, SDK and MCP.
|
|
12861
|
+
Members can issue scoped, expiring keys so their own agents act as them; a
|
|
12862
|
+
member key can never exceed that member's permissions.
|
|
12863
|
+
|
|
12864
|
+
### 44.11 Federation
|
|
12865
|
+
|
|
12866
|
+
Opt-in ActivityPub federation lets members follow and be followed across the
|
|
12867
|
+
fediverse and take their audience elsewhere.
|