Upgrading to 1.4.0

This page covers the upgrade from 1.3.0 to 1.4.0. Upgrade the packages you use together. If you run the starter, follow the starter upgrade order. If you compose your own host, apply the migrations and update the bindings for the capabilities you use. Upgrade procedure

What to check before upgrading

  • Starter database login. The demonstration runtime now uses an authenticated PostgreSQL credential per Compose project. Stop the app and run the updated lifecycle against the existing project, configuration and port. Database login migration
  • Starter checkout. Default attempt limits now persist in PostgreSQL. Apply the ledger forward before the starter file upgrade. If you own the checkout page, send the reviewed total for either purchase mode and retain the same checkout key through retries. Attempt limits · Reviewed total
  • Starter account. Cancellation is direct and feedback follows the committed cancellation. Customers are asked before an eligible save offer is shown. Cancellation and save offers
  • Scheduled jobs. A Node host with a node-cron bundle and a supplied cron now defaults to cluster locking. Native PostgreSQL job finishes also refuse lost leases, so a stale worker cannot save a new checkpoint. Scheduler lock mode · Job ledger migration
  • Native privacy. Export and erasure enforce installed contributor IDs, and erasure replay verifies receipt coverage. Apply the complete native catalogue, bind the required contributors and rehearse cutover before reopening traffic. Contributor declaration · Erasure receipts
  • Catalogue activation. A human administrator can release, price and activate an authored product on the marked demo. Published SKUs can list and quote. Fresh governed purchases remain fenced. Demo activation · Purchase admission
  • Upgrade automation. Read top-level conflicts from both openlup upgrade commands. Newly created managed files use mode 0644 subject to the umask. CLI changes and earlier file modes
  • Managed order queue. Update any copy or sealed check of OMS_OPERATIONAL_LADDER's missing_shipping_address.sqlPredicate to shipping_address_id IS NULL when applying the managed queue forward so it stays in sync with commerce_oms_admin_list_queue.
  • Invoice payment evidence. readInvoicePaymentEvidence fails closed on an identity mismatch with providerStatus: "unknown" and providerEvidence.unavailableReason: "provider_payment_identity_mismatch". Block issuance for this reason, including in flows that permit provider outages.
  • PostgreSQL migration runner. createPostgresMigrationRunner verifies the ledger lock through pg_locks before a forward write. Update query stubs to return ledger_locked: true for the held lock and model a lost lock as false.
  • Deprecations. 17 legacy 1.x symbols have new deprecation notices. Plan for 15 removals, one interface simplification and one default change in 2.0.0. Deprecated symbols and replacements

See the package notes below for the remaining changes and the API report differences for declaration changes. Check Known issues before rollout.

@openlup/core

Use governed catalogue lifecycle on a new native lineage

Install the complete native catalogue and compose the v4 draft handler and store for a new product. Withdraw through a publication to close fresh sales while retaining SKU facts and offer membership. Restore the product and explicitly restore and enable each SKU intended for fresh sales. Use readbackV3 for exact governed facts and the publication receipt reader for the original versioned receipt. Older lineages require explicit adoption.

Declare fixed-day subscription profiles

@openlup/core/subscription adds versioned cadence choices. @openlup/core/catalog validates profile declarations, returns field-specific remedies and provides canonical JSON for a SHA-256 declaration digest. Fixed-day declarations and their optional cap use whole days from 1 to 3660.

Record the catalogue revision accepted by commerce

The experimental @openlup/core/catalog accepted-reference types describe the immutable SKU identity recorded with a purchase or subscription agreement.

The catalogue extension guide and offline samples use version 3 drafts. The limits reference describes the starter's operator publication API, the catalogue tax-class check and how the Core evaluator handles stored promotion targets.

Adds an experimental decimal-percent validator to the pricing entry. It shares the catalogue money calculator's rate grammar.

  • Add the experimental planCatalogueMoneyV2 and calculateCatalogueMoneyV2 exports to @openlup/core/pricing for basis-aware catalogue amounts, adjustments, delivery, fees and tax. The API documents local rounding and provider evidence. Supply provider tax states in plan order for each component and a payable that includes fees.

Ships a runnable TypeScript catalogue pack and nine installed recipes for checking owned definitions and fixtures. The static JSON sample remains available.

Migration: Follow Convert the owned module from 1.3.0, then run the starter's catalogue:check:source npm script from your application root. Correct invalid registry definitions before starting the host. Retain the unit factor migration and follow the starter's installed-rules procedure if you opt into rule installation. The conversion requires no database upgrade.

Share original quote and order money

  • Use experimental CommerceMoneyBodyV2 from @openlup/core/pricing for the shared money facts that a quote commits and an order retains.

Report maturity and deprecation in openlup-context symbol hits

  • openlup-context export hits for a symbol now carry maturity (stable, experimental or testing) in --json output and in the MCP tool's structured hits, and deprecated: true for a symbol tagged @deprecated. Text output ends the hit with ; maturity <value> and ; deprecated.
  • A symbol tagged @experimental in its own declaration comment, or under a tagged re-export statement, reports experimental. Any other symbol reports its subpath's maturity from release-gates.json. A hit has no maturity when the declaration was not found inside the package, or when no subpath maturity is known and no @experimental tag applies; in either case, read the declaration.
  • The maturity reference lists, for each package, the symbols whose maturity differs from their subpath's or that are deprecated.

Expand settings guidance, qualification tests and adoption checkpoints

configure-settings.md now defines the five qualification tests for settings, documents the installed-policy end-to-end flow (including accessing the demonstration PostgreSQL container over Compose), and provides a command/exit-code table. Adoption, starter customization, upgrade, configuration reference, and adopter-kit templates now link directly to settings list and settings check. This documentation change requires no installed-policy step.

Starter browser code imports platform values from browser-safe entries

The starter's client/quote-acceptance.ts and shared/offer-estimate.ts now take acquisitionTermsSchema and deriveSubscriptionUnitPrice from @openlup/platform/pricing/browser, and ACQUISITION_TERMS_CAPABILITY from @openlup/platform/pricing/contracts, instead of the Node-oriented @openlup/platform/pricing entry. Behaviour is unchanged. In your own client/ or shared/ code, import runtime values only from a browser entry (…/contracts, account-support/read-contracts, pricing/browser, commerce, marketing, operations, storefront), use import type for types, and keep host-only modules under host/.

Migration: Upgrade replaces pristine copies of both files. If apply reports that a managed file has local edits, keep your edits separately, restore the file from the installed starter version, rerun apply and reconcile your edits with the replacement. A customised copy that still imports from @openlup/platform/pricing keeps working; change those imports to the browser entries when convenient. This upgrade requires no installed-policy step.

Rebuild starter catalogue packs after applying managed files

  • The demonstration installer publishes one verified rules build per adopter pack version. Save and Prepare require that build for the exact declared type. Offline conformance keeps using owned declarations. Migration: Restore required exact versions and their rules under owned/, follow the owned-module migration in “Consolidate starter catalogue declarations before demonstration installation”, apply managed files and run ./lifecycle up --json. Repeat the same draft action.
  • The demonstration installer requires each pack identity to fit one UTF-8 filename, including the version and suffix. A build publication failure can follow a committed SQL transaction. Migration: Check the pack filenames and the installer volume's write access. Restore matching inputs and replay to recreate a missing link. Use new pack and affected type versions for intentional changes.
  • Text up adds a Fix line to outer refusals and recognizes registered codes and explicit compatibility cases. Migration: Keep text checks on the first line, or use ./lifecycle up --json, findings[].code and the process exit status. Check the upgraded application with a missing rules bundle and a failed launcher.
  • The managed-file upgrade installs the refusal module and the lifecycle and host changes. Migration: Reconcile divergent managed files against the exact predecessor and target snapshots. Keep owned bytes through apply, then rebuild and check the reported type in the operator form.

Find catalogue tasks and owned files in the starter

The extracted agent guide maps catalogue tasks to application-owned inputs and installed recipes. Managed files point to the owned extension point. The extracted ownership guide lists managed JSON paths under Managed JSON files.

Migration: Replace a pristine AGENTS.md with the target extraction's copy. For a customized guide, explicitly reconcile the catalogue task section and preserve local instructions. Use the target extraction for managed files. This change requires no startup or policy action.

Apply an authored product on the demonstration starter

The starter can release a product, authorize its first gross base prices and activate that same product. The optional copy step publishes presentation on the retained product and SKU identities. Apply requires the marked demo and a human administrator who confirms each publication in an interactive terminal.

Upgrade replaces pristine managed lifecycle, operator, installer and action files together and installs the starter's local media verifier. If upgrade apply reports a conflict, save local modifications, restore the predecessor files and run upgrade again. Reconcile your saved changes against the new files before startup. Partial upgrades refuse with incomplete_application_upgrade. Keep your declarations in owned/catalogue.ts. Upgrading requires no sign-in, price write or installed-policy step.

Consolidate starter catalogue declarations before demonstration installation

Move any still-used declarations and fixtures from owned/catalogue.json to catalogueConformance.packs in owned/catalogue.ts and run the starter’s catalogue:check:source npm script from your application root. Upgrade leaves the old owned JSON bytes in place. After verifying the migration, remove a pristine copy manually and archive or remove a customized copy. Independent inert JSON fixtures can use openlup catalogue check --packs directly.

Convert the owned module from 1.3.0

The 1.3.0 starter exports only catalogDraftRegistry. Applying the upgrade preserves the owned TypeScript and JSON files. Before starting the demo, edit owned/catalogue.ts in your application. Keep your existing types array and its validators. Add the CatalogPackInput type import from @openlup/platform/catalog. Replace the single eager registry export with the target starter's pack declaration, catalogueConformance export and lazy registry block. Have the fixture pack use your retained types array. Move any still-used drafts into their pack entries and keep their type references. Run the source check and start the demo. Archive the retained JSON after verifying the conversion.

Upgrade replaces a pristine package.json and removes the old catalogue:check script. For a customized manifest, use the upgrade-conflict workflow to reconcile the manifest, then switch local and CI calls to the catalogue:check:source npm script.

Demo installation now uses each non-starter entry in declaration order. Use an application-owned ID and namespace, update references together, and supply and test owned/catalogue-rules.cjs. Give intentional changes to immutable pack, type or profile definitions new versions. Run the source check, then run ./lifecycle up to rebuild the image and activate demo definition installation. Applying application files alone performs no catalogue installation. See the Platform release notes under “Handle typed catalogue definition install refusals” for the experimental install and binding error changes.

  • The starter publication guide shows where Prepare reports missing or ineffective price lists and how to correct the affected draft operation before publishing.

Publish saved catalogue drafts in the starter

The demonstration installer provisions the restricted publication connection on ./lifecycle up. Use the installed starter guide to approve, publish, recover a receipt and read exact catalogue facts. The extracted AGENTS.md points to this workflow. Use the target extraction for a pristine guide or copy the new catalogue pointer into a customized guide. If startup reports starter_catalogue_publication_password_missing or starter_catalogue_publication_login_invalid, rerun the demonstration installer and verify its private credential is mounted before serving the application.

Keep fresh governed purchases unavailable in the starter

Install the complete native catalogue before starting the updated host. A pristine extraction includes the updated checkout and recovery bindings. In a customized extraction, preserve local policy and apply the host binding changes together. Checkout authenticates the original request before reusing a draft. Recovery verifies the original lineage, draft receipt and payment receipt before offering a replacement. An eligible tokenless legacy checkout can still be recreated.

The experimental catalogue acceptance type can carry private owner evidence. Historical acceptance without that evidence remains readable.

Change a live base price in the demonstration starter

After Activation, an active administrator can edit basePrices in owned/catalogue.ts and run the starter's catalogue:apply script with --reprice. Approval covers gross base amounts. Each receipt reports the effective subscription figure and policy revision after the write. Default apply verifies the publication receipts and live prices after Activation.

Upgrade replaces the pristine managed lifecycle, refusal and operator files together. If upgrade reports a conflict, save your changes, restore the predecessor files, apply the upgrade and reconcile your changes with the updated files before startup. If a starter command refuses after applying only some managed changes, compare the managed files with the target upgrade and complete the upgrade before retrying. Keep declarations in owned/catalogue.ts. The upgrade requires no price write or installed policy step.

The starter's checkout transport and bookkeeping move to shared/

The neutral starter gains shared/storefront-bindings.ts, which binds createPurchaseContinuation from @openlup/platform/storefront to the starter's checkout actions. It keeps the existing tab record (neutral-store:checkout-continuation:v1:<configuration>), uses the stored continuation value as the checkout.create key, and classifies the starter's answers. A record written by an earlier starter page is reused: call adoptFingerprint before the first submit and the purchase continues under the same key. The action transport act and uncertainAction move from client/api.ts to shared/transport.ts; client/api.ts re-exports both, and act takes an optional request deadline. The checkout page's create bookkeeping moves into the new module. A store-owned client can import both modules instead of rewriting the wire. The bindings send a create only after its dispatch time reads back from the record, and their finality rule assumes per-tab storage (sessionStorage) and the shared act's request timeout.

The managed pages are unchanged, with one correction: "no order under this key" now counts as final strictly after the request timeout plus the late-create bound, 1 ms later than before, matching the host's own strict stale rule. Behaviour is otherwise unchanged.

Migration: Upgrade replaces pristine copies of client/api.ts, client/purchase.ts and test/checkout-continuation.test.ts, and adds shared/transport.ts, shared/storefront-bindings.ts and test/storefront-bindings.test.ts. If apply reports that a managed file has local edits, keep your edits separately, restore the file from the installed starter version, rerun apply and reconcile your edits with the replacement. A customised client/api.ts that still defines act itself keeps working. This upgrade requires no installed-policy step.

The starter checkout page keeps one checkout key per purchase

The neutral starter's managed checkout page now keeps one checkout.create key for each purchase in the browser tab. It stores the key in tab storage under neutral-store:checkout-continuation:v1:<configuration> before the first request leaves the browser. After a lost response, a reload or a retry continues the same order instead of creating a second order and a second stock hold. The page starts a new key only after the host confirmed that the earlier order is closed, or that no order exists and none can still arrive. "No order" counts as final only 15 seconds after the last create settled; when the browser lost that create in transport, only 35 seconds after it was sent. For a record from an earlier page load, it counts as final no earlier than 15 seconds after the reload and 35 seconds after the create was sent. A refusal that wrote nothing keeps the key, and the panel does not appear on load after it.

Changed details, or a later purchase in the same tab while an unpaid order exists, answer starter_checkout_changed and open a panel. The panel also appears on load when the tab holds an earlier order or an uncertain create. It offers "Complete payment for the earlier order", which shows the order's total and then its payment link. It also offers "Cancel the earlier order and start over", which cancels the unpaid order and releases its stock. After starter_checkout_not_abandonable or starter_checkout_expired it also offers "Start a different purchase". That choice leaves the earlier order open until the store settles it; a payment already started for it may still complete. The checkout form no longer has the "Start a new action" button; other forms keep it. The completion page ends the key when it shows the order under it as paid, cancelled or expired.

A browser that blocks tab storage sees starter_storage_unavailable. Its form keeps the key in the page across retries and refused totals, until a reload or changed details, or the buyer chooses "Start a new action". The page raises starter_checkout_session_changed when an answer belongs to another sign-in state: sign in or out as when the order was placed. If the host answered with an order of the current sign-in state, the page also shows that order, and says when it was cancelled. It raises starter_checkout_in_progress when an earlier create may still be running. An order cancelled from the panel carries checkout_started_over.

Apply the application file upgrade to replace pristine managed files: client/forms.ts, client/purchase.ts, client/pages/checkout.ts, client/quote-acceptance.ts, client/api.ts, shared/api.ts and shared/limits.ts. If it reports a conflict, reconcile your customised files with the target starter. The buyer texts of the panel and its answers are the managed checkoutContinuationCopy export in shared/limits.ts; re-apply any customised text after the upgrade.

If your store owns its checkout page, follow the guide's rules: one random version 4 key per purchase, stored before the first request; a new key only after a confirmed end, never after a transport error; "no order" final only after your request timeout plus 15 seconds; and the key treated as a credential, never logged or reused. Changed details under the key answer starter_checkout_changed, so the page need not compare details itself.

The starter's checkout page runs on the purchase-continuation controller

The managed checkout page takes its key, replay, resume and start-over from createPurchaseContinuation through shared/storefront-bindings.ts. Three buyer-facing changes: changed details while an earlier order may exist send nothing, and the page shows starter_checkout_changed itself; a create whose answer was lost is repeated once under the same key; the payment-status page keeps the record of an expired order. "Start a different purchase" is offered whenever an answer names the earlier order as not payable, or a refusal leaves an order possible. After a refusal that wrote no order, such as starter_checkout_request_stale, corrected details are still sent.

Migration: Upgrade adds examples/neutral-store/browser/checkout-controller.spec.ts and replaces pristine copies of examples/neutral-store/client/forms.ts, examples/neutral-store/client/purchase.ts, examples/neutral-store/client/pages/checkout.ts, examples/neutral-store/shared/limits.ts, examples/neutral-store/shared/storefront-bindings.ts, examples/neutral-store/test/checkout-continuation.test.ts, examples/neutral-store/test/checkout-anchors.test.ts, examples/neutral-store/test/storefront-bindings.test.ts, examples/neutral-store/browser/journey.spec.ts, examples/neutral-store/browser/lost-response.spec.ts, examples/neutral-store/browser/checkout-expected-total.spec.ts, examples/neutral-store/browser/storefront-anchors.spec.ts, examples/neutral-store/playwright.config.ts, examples/neutral-store/playwright.database.config.ts, examples/neutral-store/ownership.json, examples/neutral-store/README.md and examples/neutral-store/docs/ownership.md. A customised copy of examples/neutral-store/test/checkout-continuation.test.ts conflicts and is reconciled. Owned page copies stay under application ownership. Check their submit contract below. No installed-policy step.

Submit the reviewed checkout total

Copied starter checkout pages must send the reviewed expectedTotal amount and currency on every fresh submit in either purchase mode. Keep the exact payload and command key when retrying an uncertain response. On a definitive starter_expected_total_required or starter_quote_price_changed refusal, clear consent and fetch a new offer.validate review. Keep the key. The refusal creates no order, and a reconfirmed create under the same key cannot create a second one. If you retire the key, an earlier create still in flight under the old key can place a second order. Managed checkout pages handle these steps.

One checkout key addresses one starter order

In the neutral starter's host, a repeat of checkout.create with the same Idempotency-Key and the same details returns the first order. While it is unpaid, the repeat also returns a further continuation token, so a guest can pay after a lost response. Earlier tokens stay valid and a repeat sends no mail. A refreshed quote acceptance for the same stored terms is the same purchase. Under a version 4 UUID key, changed details answer starter_checkout_changed, starter_checkout_paid or starter_checkout_not_payable instead of starter_command_conflict, and are never applied. Other key formats keep starter_command_conflict. Under a version 4 key, a create whose draft receipt was invalidated now answers starter_checkout_not_payable instead of commerce_order_draft_expired.

The new checkout.continuation operation resumes or abandons the order under a version 4 UUID key without its details, adding one starter operation. An abandoned order carries the reason checkout_started_over. An order whose creation has not completed can be abandoned only once it is a minute old; before that the answer is starter_checkout_in_progress. A creation that is still running after that minute can leave a stray provisional activation on the cancelled order, with no stock hold and no settlement intent, so nothing is payable. A fresh create that obtains its key lock more than 15 seconds after the host received it answers starter_checkout_request_stale and writes nothing.

Each repeat and each continuation of a known key adds one attempt-ledger row. It counts in a separate requester bucket and against maxPerEmail for that one key, never against the buyer's email. A replaced quota callback receives these calls with the idempotency key <derived key>:replay:<uuid> and the contact replay:<derived key>, which is not an address. A fresh create now passes the derived key, never the Idempotency-Key header value, as its idempotency key; an attempt recorded before the upgrade is therefore counted once more if its create is retried across the upgrade. A callback that throws refuses the repeat, and the order is returned without a token. The host now stores the derived key, checkout:<64 hex>, in clients.metadata.checkout.lastIntentIdempotencyKey. composeNativeBindings accepts an optional requesterKey function that replaces the socket-peer digest for every quota consumer. It must return a lowercase 64-hex SHA-256 digest, or undefined when the requester is unknown. A value that is not a function is refused at composition with OPENLUP_E_STARTER_REQUESTER_KEY_INVALID. A returned value that is not such a digest makes every request answer 503 starter_dependency_unavailable, and the host logs that code to stderr.

Apply the application file upgrade to replace pristine managed files: host/purchase-composition.ts, host/checkout-attempts.ts, host/server.ts, host/bindings.ts, host/native-composition.ts, host/quote-composition.ts and shared/api.ts. If it reports a conflict, reconcile your customised files with the target starter before retrying. Apply the platform forward 20261128230001_checkout_abandonment_safety_execute_grant.sql before starting the updated host: without it, abandon of an unpaid order answers starter_purchase_unavailable and nothing is cancelled.

If you own your checkout client, your idempotency keys are now credentials for unpaid guest orders: make them random version 4 UUIDs, never log them and never reuse one for another operation. Keep one key for the whole purchase and treat "no order under this key" as final only after your request timeout plus 15 seconds. A guest key does not survive sign-in or sign-out.

Guest orders created before the upgrade keep the raw key value in lastIntentIdempotencyKey until a later checkout of that contact overwrites it. Until those orders are paid or expire, that value could address them through checkout.continuation. To remove it sooner, clear clients.metadata.checkout.lastIntentIdempotencyKey for clients with unpaid guest orders created before the upgrade.

Authenticate the starter's runtime database login

The starter provisions an individual PostgreSQL runtime credential for each Compose project. The runtime credential file must stay in owner-only configuration. The starter validates it at start.

Migration: Stop the application, then run the updated ./lifecycle up with the existing Compose project, configuration, and listener port. Starter guide

Update demonstration price history

On marked starter demos, installation closes the exact obsolete subscription price rows and retains their history. The coffee and supplement demo configurations keep their one-time bases and subscription amounts. One Light still quotes 4,200 XTS minor units. A one-time bundle gives 5% off at 12,000 minor units or more. Three Light go from 12,600 to 11,970 and one Dawn with two Noon goes from 12,900 to 12,255.

The database-backed host runs the promotion claim sweep and watchdog in the background. The starter guide describes repair. On a fresh one-time checkout, the starter returns starter_quote_price_changed before creating an order if the submitted total differs from the server's re-quoted total. See Submit the reviewed checkout total.

Native starter cancellation and save offers

The account offers direct cancellation and asks permission before showing an eligible save offer. Feedback is optional and follows committed cancellation. Omit subscriptionCare.retention.offerPresentation for ask-first behavior or set it to off. Direct cancel bypasses the legacy action lists and retains native payment and lifecycle fences. defaultOffer applies after Yes. The first admitted pause preset can replace the configured preselection.

Feedback transfers with the native full-store capture, and restores follow the canonical schema_conflict remedy.

Migration: Apply the native Platform forwards before deploying the updated starter. Plan managed changes against both starter snapshots. Use candidate templates for untouched owned/copy.ts and owned/settings-host.ts. In customized versions, merge the seven permission and feedback strings in each active locale, remove careGuidance and confirmCancel, and update the retention and action descriptors while preserving local settings. If a managed account, host or shared file conflicts, reconcile the candidate logic into the local file and record its adopter ownership in both snapshots before retrying. Complete any interrupted apply with the same snapshots, then rerun to verify zero writes. Build and start the updated app and check the existing local markup and copy, the effective setting, direct cancel and optional feedback. A feedback setup refusal affects feedback alone. Preserve any intentional legacy offerByReason mapping; the startup validator refuses unsupported presentation modes.

Keep default checkout attempt limits across starter restarts

Apply the checkout attempt ledger forward before upgrading application files or starting the updated native starter. Use one PostgreSQL database per store and the same limits in every process serving it. Older hosts can run with the additive schema. The updated host starts counting in PostgreSQL without importing old in-memory counters.

Apply the application file upgrade to replace pristine managed checkout hosts and tests. If it reports a conflict, reconcile your customized checkout files with the target starter before retrying. Keep custom quota callbacks and bind the default callback to the held checkout session before the draft transaction.

In your owned settings host, update only the purchase.attemptLimits effect description from the target starter and keep your bindings. In your owned copy, apply the checkout quota wording in each locale and keep your other text. If startup reports that the ledger is missing, apply the forward and restart. If it reports missing EXECUTE, restore the runtime role's routine grant and restart. For a failed readiness check, check connectivity and the runtime credentials before restarting.

Run the catalogue demonstration on a free local port

Export OPENLUP_STARTER_PORT before starting the demonstration and running catalogue:apply. An unset or empty value uses 4319. Choose a decimal port from 1024 to 65535. The default origin excludes ports blocked by Fetch. Startup validates the port before Compose. Direct host startup accepts the full range.

The upgrade replaces pristine managed Compose, host, lifecycle and README files. If upgrade refuses a locally edited managed file, save your edits and restore the predecessor bytes before applying the upgrade. Move a local port edit to OPENLUP_STARTER_PORT in your launch environment. Reconcile other edits with the updated files before startup and keep unrelated owned overrides. If startup refuses following an interrupted upgrade, complete the managed upgrade and use the startup remedy before retrying. There is no installed business-policy step.

Upgrade the starter catalogue document verifiers

The starter shares verification of the selected gram SKU across quote and sized servicing. This upgrade prepares verification of mixed documents once the installed reader can supply authenticated sibling evidence.

Upgrade replaces pristine copies of host/editor-catalogue.ts, host/editor-ports.ts and host/quote-composition.ts together. If apply reports a conflict, save the customized code, restore the predecessor files and rerun apply. Reconcile the saved changes against the replacement group before startup. A partial upgrade refuses startup with incomplete_application_upgrade. This change requires no installed-policy step.

Find the invalid subscription offer member

settings check now reports the member and rule alongside starter_subscription_offer_invalid. In subscriptionOffers.<mode>.days, check days under classic or sized in your owned store configuration. Correct the value and rerun settings check.

Upgrade replaces a pristine shared/subscription-offer.ts. If apply reports that the managed file has local edits, preserve those edits separately, restore the file from the installed starter version, and rerun apply. Reconcile your edits with the replacement before startup. This upgrade requires no installed-policy step.

Browse and quote published starter products

The native starter lists published SKUs, keeps exact sibling selections in product URLs and checks SKU, quantity and currency in the server quote. Active published products need a document schema distinct from the configured application document schema and canonical draft JSON encoding. The starter excludes SKUs without one-time sellability and reports starter_catalogue_one_time_required. Enable one-time sellability through the catalogue workflow to make the SKU eligible for listing.

Migration: Apply the managed starter upgrade. If you copied a storefront page into application source, reconcile its SKU links, cart restoration and quote checks with the candidate. Keep the existing owned card signature. For an active schema collision, withdraw the colliding product through governed catalogue commands and repeat the original quote.

  • The neutral-store checkout keeps the reviewed acceptance and deadline across equivalent refreshes. Changes to the offer or an expired deadline require fresh review and consent.

The starter cart opens with a selection from its address

The neutral starter's cart route now accepts a selection in its query string: line=<sku>:<quantity> (repeated), mode (one_time or subscription) and cadence (days, subscription only), for example /cart?mode=one_time&line=<sku>%3A2. A buy link or a verification harness can open checkout in a fresh browser without seeding browser storage. Build links with selectionEntryPath from the new managed examples/neutral-store/shared/selection-entry.ts.

  • The cart validates the selection with validateCart against the storefront catalogue. It waits for the catalogue answer, and leaves the address unchanged when the catalogue answers with an error, the request fails or its answer cannot be applied.
  • A valid selection replaces an empty cart. A cart that holds anything else shows a question, "Use the selection from the link" or "Keep my cart", and offers no other cart control or checkout until the buyer answers. The entry never merges lines.
  • An invalid selection shows its own refusal with the cart's texts and writes nothing. It prints no raw link text: a SKU appears only when a product has it. A + is never valid in the address, encoded or not.
  • Once decided, only line, mode and cadence leave the address, with one history replacement. Every other parameter stays with its bytes and has no effect; no price, amount or currency is ever read.
  • The cart's checkout button carries data-openlup-action="proceed_to_checkout", written from storefrontAnchor. The starter now imports that value from the experimental @openlup/platform/storefront entry.
  • PageContext gains an optional catalogueSettled field, and navigate takes an optional { replace: true } second argument.

A link over an emptied cart after an order was placed in the same tab cannot create a second order: the next submit reuses the tab's checkout key and the host refuses a changed payload under it with starter_checkout_changed, starter_checkout_paid or starter_checkout_not_payable. That safety comes from the host's refusal of a changed payload; a host that updated the order in place would behave differently.

Migration: Upgrade adds examples/neutral-store/shared/selection-entry.ts and examples/neutral-store/test/selection-entry.test.ts, and replaces pristine copies of examples/neutral-store/client/pages/storefront.ts, examples/neutral-store/client/main.ts, examples/neutral-store/client/context.ts, examples/neutral-store/browser/journey.spec.ts, examples/neutral-store/docs/customization.md and examples/neutral-store/ownership.json. If apply reports that a managed file has local edits, keep your edits separately, restore the file from the installed starter version, rerun apply and reconcile your edits with the replacement. A store that owns its cart page or its client/main.ts keeps its copy and gets neither the entry nor the anchor; to add them, import decideSelectionEntry, withoutSelectionEntry and settleCatalogueRequest from shared/selection-entry.ts in the application, and set catalogueSettled from the catalogue request, or accept that the entry validates before the catalogue answers. This upgrade requires no installed-policy step.

Declare 15 additional starter settings for discovery and check

owned/settings-host.ts now declares 15 existing starter configuration settings (locale policy, guest contact defaults, return and hold reason subsets, checkout initial payment window, recovery link policy, wave windows, subscription care retention/actions/recovered window, renewal recovery and notice locales, sized editing preferences, graduation cadence, and minimum product payable minor) with Draft-7 Zod schemas and effect descriptions.

Upgrade replaces a pristine owned/settings-host.ts. For a customized copy, merge the added declarations from the target starter. This change requires no installed-policy step.

Use the starter settings script to find and check configuration

The starter's agent guide shows how to find settings by goal, verify a value edit and start the read-only settings server.

Migration: Before applying the next set's managed files, replace a pristine AGENTS.md from the 1.3.0 starter with the target starter's AGENTS.md. If the file has local edits, an explicit snapshot replacement refuses before writing. Merge the target guidance into your copy, keep your edits and rerun the managed upgrade without AGENTS.md in its snapshots. This documentation change requires no installed-policy step and adds no startup refusal.

Fix starter return reason, retry minimum and settings schemas

Starter store configurations now use damaged instead of damaged_item for return requests so database return creation accepts every configured reason. renewal.retryBackoffHours now requires positive whole hours (>= 1) matching native SQL validation and documents the separate fixed 24/72/168-hour provider failure ladder (subscriptions.retrySchedule). subscriptionOffers.deliveryCycles and purchase.attemptLimits now expose strict Zod schemas and updated effect guidance in owned/settings-host.ts.

Upgrade replaces a pristine shared/renewal-config.ts. For customized owned/store.config.ts or owned/settings-host.ts, replace damaged_item with damaged and ensure every retry backoff hour is at least 1. This change requires no installed-policy step.

Move shipping.rateResolver to the packaged catalogue and report subscription policy file values

shipping.rateResolver is now a packaged callback entry in @openlup/platform rather than a starter code declaration. owned/settings-host.ts removes its local shipping.rateResolver descriptor and reports file values (without descriptors) for subscription_minimum_base_units and subscription_sized_intro_phase.

Upgrade replaces a pristine owned/settings-host.ts. For a customized copy, remove any local shipping.rateResolver descriptor so settings list and settings check do not refuse a duplicate packaged key. This change requires no installed-policy step.

The starter's checkout pages carry storefront anchors

The starter's checkout fields, submit and payment-status line carry storefrontAnchor attributes. Behaviour and copy are unchanged.

Migration: Upgrade replaces pristine copies of examples/neutral-store/client/forms.ts and examples/neutral-store/client/pages/checkout.ts, and adds two tests. A customised checkout page works without anchors. No installed-policy step.

Declare seeded product physical facts

The starter takes a typed mass and a primary GTIN through its owned product configuration. It retains the existing seed documents and identifiers when the original physical facts are preserved.

Migration: For a pristine owned/store.config.ts, copy the candidate file. For a customized file, convert each physical entry in place. Move the old netWeightG to netContent with dimension: 'mass', unit: 'openlup:g', scale: 0 and the original whole grams as the decimal string unscaled. Move issuer and unitGtin into primaryUnitIdentifier as issuer and value, with scheme: 'gs1:gtin'. Keep all the original GTIN digits and the issuer for all six demonstration entries, or carry over each corresponding custom value. Preserve unrelated owned edits and apply the managed upgrade. Restart and recheck /api/config. An unchanged seed replay requires no installed-policy step.

If startup reports OPENLUP_E_STARTER_PRODUCT_PHYSICAL_INVALID, correct the named entry from verified facts. If an issuer correction changes its retained digest, follow “Reset an interrupted first install” for an owner-approved rebuild of the disposable demonstration in the same Compose project. That procedure removes all data in the demo volume. If startup reports OPENLUP_E_STARTER_SYNTHETIC_PHYSICAL_SIZE_INVALID, correct the named SKU's numeric physicalSize in owned/subscription-editing.ts to a verified whole gram value from 1 through 2147483647. Restart and recheck /api/config.

@openlup/outbox

  • composeIndependentHandlers composes same-event destinations with separate durable receipts, bounded concurrency, deterministic outcomes and an explicit acknowledgement metadata projection.

Adds sql/0002_outbox_active_partial_indexes.sql to @openlup/outbox (registered in sql/manifest.json) with three partial indexes scoped to active public.outbox_events rows (pending, processing, failed).

Migration: apply sql/0002_outbox_active_partial_indexes.sql after sql/0001_outbox.sql. The migration is additive and idempotent (CREATE INDEX IF NOT EXISTS).

@openlup/platform

Eleven acquisition and partner acquisition definer functions now pin pg_temp last on their search path.

Added @openlup/platform/adapter-kit (experimental rail) exporting shared zero-dependency provider adapter primitives: createHardenedFetch, createOAuth2TokenManager, parseRetryAfter, createRetryAfterCooldown, verifyHmacSha256, verifyHardenedStandardWebhook, and verifyEd25519Signature.

  • Managed renewal reporting can classify prepared, acknowledged and settled payment attempts independently of the legacy cycle result.
  • Managed operator support can opt into up to three attempts for rolled-back subscription actions and recovery commands on returned PostgreSQL 40P01.
  • Watchdog ledger adapters can batch up to four already-admitted alert observations over their existing store transition.

Adds partial indexes for active public.outbox_events rows and consolidates recordLabel (createPostgresFulfillmentShipmentSpinePort) and upsertAddress (createPostgresCustomerSavedAddressPort) into single-round-trip atomic PostgreSQL RPCs (public.fulfillment_record_label_atomic and public.customer_saved_address_upsert_atomic).

Migration: apply the two additive native forwards 20261124100000_outbox_active_partial_indexes.sql and 20261124110000_shipment_label_and_address_upsert_atomic.sql before deploying the updated @openlup/platform package. Historical per-step idempotency keys are preserved, and failed upsertAddress or recordLabel calls now roll back atomically instead of leaving partial commits.

  • Added the experimental readPostgresCatalogActivationReadiness catalogue export. It reads activation readiness for published SKUs after any in-flight publication; SQL decides price readiness and installed rules add other reasons afterwards.
  • Apply the complete catalogue through 20261124140000_catalog_publication_readiness.sql before calling the reader.

The governed offer membership reader adds a private admission_issue mode that returns authenticated issue evidence for one offer. Earlier modes, grants and the TypeScript reader are unchanged.

Native PostgreSQL installations retain and validate owner-stamped catalogue drafts and their companion rows. Connected-store restore refuses captures containing stamped drafts or their marked draft-created events. Governed checkout writes remain closed.

  • Add opt-in native catalogue drafts v4 and governed publication readback v3. Withdrawal closes both fresh-sale channels while retaining SKU facts and offer memberships. A parent-only restore leaves its SKUs unavailable for fresh sales.
  • Select governed drafts at genesis. A predecessor without certified lifecycle state needs explicit adoption. Archive is refused until the commerce barrier is available.

Migration: Install the complete native migration catalogue before composing the v4 draft handler and store. Keep existing v3 compositions for previously issued lineages. Consumers of the experimental publication result can branch on schemaVersion to recover original v2 or governed v3 receipts. Hosts should stop sending the removed experimental CatalogPublicationEvidence.lifecycle.skus[].demandPolicyRef field.

Use the experimental catalogInternalGtin export from @openlup/platform/catalog to assign a store-local trade identifier to a SKU without a globally assigned GTIN. Product JSON-LD omits 13-digit restricted-circulation numbers with prefixes 02, 04 and 20–29 from gtin13.

Native base and promoted legacy drafts take the same catalogue locks. public.catalog_admission_check_legacy_draft ignores its last argument, so a direct call with false or NULL now takes write-transaction row locks and refuses in a read-only transaction with 25006. A fresh promoted draft now takes these locks before validating its money. Its SHARE lock waits while a publication holds the catalogue fence. A wait that exceeds the caller's lock_timeout returns 55P03. After a completed wait at READ COMMITTED, a draft whose demand the publication made governed returns 55000 before money validation. At REPEATABLE READ, the stale product-row guard returns 40001. Only the publisher uses NOWAIT, and its fence returns 55P03 while a fresh draft holds the lock. Exact replay and uncontended results are unchanged.

Migration: Apply the native forward 20261125120000_catalog_legacy_draft_fixed_locks.sql. It changes no grant, table or TypeScript caller. Retry a 40001 draft in a new transaction.

Readiness with verified native orders

Price Setup and Publish can evaluate readiness with verified native one-time orders, including undiscounted orders with free shipping, and activated initial subscription orders with standalone acquisition terms under offer policy v2. Both require direct sandbox capture and matching checkout evidence. A claim-bearing refusal can clear when you complete an eligible pending activation or restore a valid, unambiguous acquisition schedule with the same source definition. Other hard refusals clear only after the blocking order ages past the inclusive 24-hour window.

Migration: Apply the native forward 20261128010000_catalog_order_checkout_protection.sql.

Native publication applies fresh basis-aware price edits atomically with issuance. Advisory assessment and dormant locked readback share the owner-only decision. Prepare wiring, its read-only snapshot, and runtime grants follow in a later change.

Issuance and locked readback require READ COMMITTED READ WRITE. A SKU gaining an effective selling mode or its first admitted offer requires a fresh edit.

The recorder checks receipts against the approved settlement context and locked price history. If a receipt's current entry changed or expired, reload the effective price and submit a fresh edit.

  • Fresh native gross base-price edits require an inclusive price list. Use an effective inclusive list for v1 and replay previously completed edits with their original command keys. There is no application or configuration migration for existing gross lists.

  • Added forward migration 20261124170000_catalog_publication_commit_perf.sql building on 20261124160000_catalog_canonical_ascii_order.sql: inlines leaf scalars, empty containers, and one level of flat pure-ASCII child objects in public.catalog_publication_canonical(jsonb,integer) while confining the numeric-overflow subtransaction to the number branch, and adds a single-pass fast path with jsonb_path_query fallback to public.catalog_publication_carriers_valid(jsonb,uuid). Preserves canonical wire output, depth and prototype guards, carrier validation, and search_path = pg_catalog, public, pg_temp.

  • Apply the platform migration catalog through 20261124170000_catalog_publication_commit_perf.sql; no API or caller changes are required.

  • Publish retains its readiness and dependency refusal codes. Known failures now include the readiness class as the subject, the pricing.readiness path and a fixed message with a repair and recheck. The starter HTTP response adds an issue and includes the class as reason for publication_price_readiness. Watchdog refusals can include approved failed-job names in the issue when matching run evidence is available. The documented fix text for catalog_publication_price_readiness now says to repair the reported issue and retry the same approved request while its draft and head still match, and the fix text for publication_authority_unavailable now asks the publication owner to verify the required authority and evidence before retrying.

  • Added the experimental readPostgresCatalogMembershipPage catalogue export. It reads governed offer memberships and their sealed evidence using one caller-owned statement.

  • Apply the complete catalogue through 20261124120000_catalog_publication_reads.sql before calling the reader.

  • Add the experimental validateTypedSkuAmounts contract and exact count, volume and independent gross diagnostics for a later typed publication path. Existing installation and publication continue on the gram path.

Preserve accepted catalogue identity through commerce and transfer

Native owner transactions can retain accepted SKU references on orders, edits and subscription templates. Renewals retain those references beside their existing pricing snapshots. The archive census reports outstanding obligations and incomplete evidence while archive remains unavailable.

Migration: connected-store restore admits only the target's current inventory. An earlier capture or a source whose column was dropped or retyped is refused with schema_conflict. The remedy is capture the source and restore it with the same OpenLup version on a pristine target of the same profile; upgrade the source within its installed profile first if it is older. If no such target can be provisioned, connected-store restore is unavailable for that pair.

Add a bounded owner lock hook to the native admission fence

The catalogue testing fence accepts an optional prelock callback for owner locks before receipt and catalogue acquisition. Read and authenticate replay after the visibility probe. Confirmed contention, visibility changes and budget expiry direct callers to retry with the same key. Infrastructure failures direct callers to the native binding, connection, privileges and migrations.

On fence expiry the writer is discarded. The fence key is released within the fence budget plus 50 ms plus two writer round trips. Writer latency delays delivery of the timeout settings and the lock request. In the no-injected-latency witness the bound is budget plus 50 ms.

When upgrading a call without a hook, pass an integer budget of 1 to 2147483647 milliseconds covering the whole pre-read phase. The fence snapshots its input and options at entry. Update fake drivers and trace assertions for guarded writer queries, timeout capture and restoration, and the probe's remaining allowance. Handle the existing same-key retry and checklist hints and the 40001 visibility refusal.

Guard selected catalogue reads during checkout

The private native checkout fence holds catalogue, price and exact-client guards through the transaction. Fresh governed purchases remain unavailable.

Native migration admission recognizes a later guarded checkout-owner EXECUTE grant for three issued catalogue routines. Both qualified PostgreSQL installers validate the host login and project its routine grants after the guarded unit commits.

Adds openlup catalogue project --trusted-packs for explicitly trusted local catalogue modules. It projects deterministic JSON to an external scratch file and runs one offline check with the registered content validators. Draft schemas through v3 check supplied draft data and operation and price shape. Finding pointers for v1 dimensions now resolve in the saved subject.

Migration: Existing catalogue check --packs invocations still read inert JSON. Use the reported replay command to inspect the scratch subject without loading application code. Installed rules, price execution and publication require separate evidence.

Handle typed catalogue definition install refusals

installCatalogDefinitions and withCatalogPublicationRules now report named domain refusals as CatalogDefinitionInstallError from the experimental @openlup/platform/catalog entry. Check the class and use its code, path, observed, causeText, fix and recheck fields. Migrate catches that inspect SQLSTATE, driver messages, DETAIL, the former SQL issue or publication diagnostics. The operational isolation error propagates with its original driver shape. Success signatures and the SQL install authority stay the same.

The installer checks the declaration and manifest before rules verification. A declaration refusal now always includes the typed issue on invalid_catalog_pack, including former bare install-only refusals. Call catalogPackInstallIssues on a bound pack for these findings before writing.

  • Catalogue conformance findings show the observed fixture value and report definition issues alongside fixture issues for valid types. Five new advisory codes flag publication and listing limitations without changing the report state or exit code.

Native migration admission recognizes one exact ledger-guarded EXECUTE grant for the subscription profile identity lookup. The definition and its PUBLIC revoke must already be issued in a hash-pinned native-store forward.

The catalogue publication refusal for non-mass net content now directs authors to enter the net mass in whole grams and use a quantity variant option for a labelled volume or count.

The offline catalogue checker names the Prepare codes in its advisories for missing unit identifiers, legacy draft versions, and non-mass net content.

Catalogue conformance redacts path-like strings and keys in Observed previews. A pack with findings in its own definition skips fixture evaluation and trusted validation. If the pack supplies fixtures, the checker reports one skip advisory. A cross-pack duplicate identity alone still allows fixtures and trusted validators to run. Fix the local definition findings, then rerun the same check.

  • Qualified-v2 installations can use the catalogue publication login to read governed offer memberships and activation readiness. Apply the complete catalogue through 20261124180000_catalogue_read_grant.sql. Where provisioned, service_role remains supported.

Add native catalogue purchase admission

The native base and promoted draft owners refuse fresh governed demand with catalog_admission_quote_authority_required. Existing legacy purchase and authenticated draft replay stay available. Install the complete native catalogue for the matching runtime. The experimental catalogue assertion and quoteDigest helper check owner evidence. No governed purchase entry is enabled.

  • With buildCatalogReleaseDraftV3, publish release, price SKUs, then activate.

  • Use openlup catalogue schema --json to inspect the installed catalogue authoring schemas, units, limits, caps and refusal fixes. The formatVersion 1 report supports additive changes.

  • Added experimental readPostgresCatalogStorefrontPage to @openlup/platform/catalog for displaying published offer SKUs with current prices. Checkout continues to resolve its own prices.

Declare each variant option once with the experimental catalogVariantOptions helper in @openlup/platform/catalog. The offline checker reports the actual fixture locations for combination issues and advises on unmatched variant attributes and Platform version ranges.

Migration: Check pack definitions before upgrading. Definition admission, including registry construction and definition digest calculation, now refuses axes with mismatched declarations or repeated attribute assignments. This includes declarations with overlapping choice IDs or units. For example, an axis with [a,b] on its dimension and [a,c] on its attribute previously accepted a as an individual option. This release cannot register an installed type version with either issue. There is no in-place migration. A corrected new version still leaves the upgrade blocked while the affected version stays composed. If your pack is affected, stay on the previous release.

Let the runtime evaluate the checkout abandonment predicate

A forward adds public.commerce_checkout_abandonment_safe_runtime(uuid), which returns the unchanged public.commerce_initial_checkout_abandonment_safe(uuid) predicate and is executable by service_role where that role exists. A qualified runtime login can then check whether an unpaid initial checkout is safe to cancel before it asks for the cancellation. The predicate itself keeps its definition and ACL; PUBLIC, anon and authenticated cannot execute either function. Apply the forward with the rest of the catalogue; it needs no operator action.

  • The checkout-attempt migration provides private PostgreSQL admission storage. Native connected-store transfer and the experimental /portability utility can preserve the attempt digests and timestamps.

Qualified PostgreSQL installations can record an issued checkout-owner grant while the login is absent. The experimental applyPlatformCheckoutOwnerGrant operation lets the definition owner apply it later. Verified checkout permissions are local to the database and leave its canonical inventory unchanged for connected-store restore.

Migration: Ordinary qualified upgrades need no checkout login. Use the database upgrade handoff to prepare the role, preserve TEMP access and verify the grants on a supported opt-in installation.

Opt in to native quote composition

The experimental commerce server quote port binds an owned destination, a resolved pricing plan, installed payment limits and the host's native privacy registry. A physical delivery can return destination_contact_incomplete at /destination/contact. Collect the recipient name and phone, then issue a new destination snapshot. Exclusive recovery verifies the owned destination and its cutoff before reading pinned coverage history. Existing installations can continue using their current quote binding.

  • Add experimental native PostgreSQL payment limits with owner installation, revisioned rollback and a restricted active reader.
  • Discover commerce.money_limits.v2 offline. Connected show requires an owner inspection binding and returns money_limits_reader_unbound when that binding is absent.

Migration: Apply the native PostgreSQL forward during the normal upgrade. Existing checkout requires no settings changes. To opt in to installed limits, install terms for a qualified rail and bind owner inspection in the settings app.

Published @openlup/platform/communications/testing with runCommunicationsAdapterConformance (mode: "full" egress-admission, canary scanning, and authenticated scripted transport fault certification), createScriptedCommunicationsFake, ScriptedCommunicationsTransportError, and createInMemoryEmailTransport, while keeping @openlup/platform/communications backwards-compatible.

Migration: No adopter action is required. @openlup/platform/communications continues to export runCommunicationsAdapterConformance with backwards-compatible runtime and type signatures (additive optional options and fields); only the internal declaration file relocated from dist/communications/testing/adapterConformance.d.ts to dist/communications/adapterConformance.d.ts.

  • Quote acceptance verifies bounded, canonical v1 envelopes. Existing issuers retain their signing bytes and key rotation behavior. Refresh a quote to replace a malformed acceptance token.

Conformance finding paths now encode a dotted SKU id as a single escaped token; earlier releases split it at dots.

Seventeen channel and customer self-service definer functions now pin pg_temp last on their search path.

Subscriptions bought at a derived price keep their price-list context after the base price is replaced.

Migration: Apply the derived-subscription-price retired-base forward through the selected native migration catalogue.

  • Preserve the price-list context for purchases that use the derived subscription pricing policy. Subscription editing and starter-offer graduation can use the context after checkout and renewal.

Validate checkout destination addresses with a host policy

  • Use the experimental checkout schema and address policy to admit subdivision, normalize postal codes and classify destinations. Discover native issuance readiness with destinationV2Capabilities and find the host binding through the read-only shipping.addressPolicy setting. Managed v2 issuance and v2 saved addresses report unsupported. Existing v1 checkout commands retain their address contract.

Store native checkout destination snapshots

Native installations can retain and verify scoped checkout snapshots with a 24-hour database cutoff. The new experimental identity factories compose private document and receipt export and erasure with the existing privacy registry. Connected-store transfer carries the snapshots and current selections. Checkout issuance remains dormant.

Experimental native destination port

Native hosts can use createPostgresDestinationPortV2 on the destinations server subpath with their own executor. It supports retained reads, exact replay, rechecks and order binding while preserving the native owner's decisions. Fresh issuance remains disabled in the host and starter.

Retain native order destination evidence

Native order and shipment reads use the original verified destination binding. Privacy erasure clears sealed checkout pins. Checkout issuance remains dormant.

Migration: Apply 20261125130000_commerce_destination_v2_order_bindings.sql.

Preserve destination receipt replay and privacy

The native migration adds private destination receipts with a scoped replay key and an audit record. The native privacy contributor exports subject evidence and erases its payload while retaining the replay tombstone. Connected-store capture and restore carry both dispositions. Fresh destination issuance remains unavailable until its owner is installed.

Handle native destination snapshot and read refusals

  • Check for outcome: "refused" in the returned JSON before handling success. Roll back any caller-owned snapshot transaction before returning a refusal. Direct receipt routines retain their SQL diagnostics.

Native tax evaluation privacy

Native stores can transfer evaluation rows and compose their privacy obligations. PostgreSQL refuses a new erasure receipt that lacks tax-calculations with the message PRIVACY_CONTRIBUTOR_MISSING and SQLSTATE 55000. If a guarded native handler reaches this insert refusal, it returns HTTP 503 with PRIVACY_ASSESSMENT_UNAVAILABLE and the native prerequisite facts.

Migration: Apply the native catalogue that declares tax-calculations. Add createTaxCalculationPrivacyContributor() from @openlup/platform/identity to every serving native privacy registry as described in Export and erasure in the Personal data guide. Retry the original erasure request after rollout.

Add the experimental @openlup/platform/tax/stripe adapter for exclusive tax quotes and qualified fee-free reporting. Applications supply an account-bound client, a versioned market pack and read-only callbacks for reporting evidence. Use tax.adapter and tax.classMap to discover composition and class mapping. The tax port also adds a recalculation-probe capability and a comparison helper.

Use makeStripeTaxRequestDigest with StripeTaxRequestBinding and StripeTaxCaptureBinding to bind the reservation before dispatch. Commit requires the accepted evidence's providerLines, including merchandise lines without tax assessments. The experimental verifiers check integrity first and give a fixed remedy and a JSON Pointer for each refusal.

Adds experimental tax calculation contracts, strict document decoding, quote request preparation and merchant coverage reconciliation.

On the native rail, public.fulfillment_advance_shipment acquires the parent public.subscriptions row lock before locking public.fulfillment_shipments, matching the canonical delivery-alignment lock order (subscriptions -> fulfillment_shipments -> subscription_delivery_alignment_cases) and preventing 40P01 deadlocks against concurrent renewal admission.

Migration: apply the additive native forward 20261124090000_fulfillment_advance_shipment_lock_order.sql. No data rewrite, privilege change, or TypeScript caller change is required.

Fence legacy dispatch for destination v2

On native installations, legacy provider-command polling skips parcels bound to destination v2. Fresh enqueue and submission for those parcels return destination_adapter_unsupported. Use the qualified native dispatch workflow for the original order. Existing command replay and reconciliation remain available. Upgrades require no operator action.

Installer-owned public functions that pin a search path now list pg_temp last on every profile. Only the search path changes.

  • Install and inspect append-only tax coverage on qualified native PostgreSQL. Use the migration-owner installer to record a revision and bind the runtime settings reader to the intended installation and account. Connected owner transfer preserves the full revision history.

  • readInvoicePaymentEvidence reports a payment identity refusal from @openlup/platform/payments/stripe, @openlup/platform/payments/tpay, or a custom reader throwing PaymentReadbackIdentityMismatch as providerStatus: "unknown" with providerEvidence.unavailableReason: "provider_payment_identity_mismatch".

  • If your invoice flow can issue during a provider outage, block issuance on provider_payment_identity_mismatch. Outages still report provider_read_failed.

Preserve job checkpoints after lease loss

Native PostgreSQL job finishes return false when the submitted run is no longer current. The finish marks its own running row skipped with job_lease_lost and empty result metadata. Duplicate finishes preserve the first terminal result.

Migration: Apply 20261125070000_job_run_finish_lease_fence.sql through the selected native catalogue or through the existing application migration chain that consumes JOB_RUN_LEDGER_MIGRATIONS. Pre-upgrade checkpoints remain historical records eligible for selection. The resume guarantee applies to checkpoints written under the fence.

  • Updated OMS_OPERATIONAL_LADDER missing_shipping_address sqlPredicate to shipping_address_id IS NULL to match the optimized managed commerce_oms_admin_list_queue forward migration. If you mirror or byte-seal the missing_shipping_address predicate, refresh your copy to shipping_address_id IS NULL when you apply the matching managed commerce_oms_admin_list_queue forward.

Eliminated a redundant full-catalog SQL read and SHA-256 hash pass in platformRunner (readMigrations + readManifest) and removed redundant re-locking and double LEDGER_IDENTITY probes on forward units already holding SHARE ROW EXCLUSIVE in postgresRunner.

Migration: PUBLIC loses EXECUTE on the base activation entry and commit. Run activation with the qualified runtime login (inherits service_role) or the owner login. Custom roles are unsupported because the runner pins function ACLs and qualified installs refuse outside grants. See operator guidance.

  • Native acquisition checkout now checks the nested starter marker's second-delivery discount against the selected acquisition terms.

  • Native checkout now accepts a subscription quote whose derived price matches the effective catalogue base and policy. Generate a fresh server quote and retry if the pricing evidence changed.

  • This fix adds no refusal code, export or setting. Quotes without derived-policy evidence keep the existing price lookup.

Migration: Apply 20261128000000_native_derived_subscription_price.sql through the selected native migration catalogue.

Retry failed fulfillment polling pages

When an item fails, native fulfillment polling keeps the page for the next acquired polling tick. After three consecutive failures on the same page, polling advances and records the operator remedy in the failed job run.

Native erasure receipt coverage

Native erasure retries verify required coverage before returning the original receipt. An uncovered receipt returns HTTP 503 (UPSTREAM_UNAVAILABLE) with PRIVACY_RECEIPT_COVERAGE_INCOMPLETE in error.details.privacyCode and these facts in error.details. Here <owners> lists the required contributor IDs with missing coverage, separated by commas.

  • observed — A prior erasure is missing recorded coverage for the required owners (<owners>).
  • cause — The original receipt and verified owner approvals do not establish their local disposition.
  • fix — Ask the data privacy owner and contributor owners to reconcile the missing coverage against the original receipt.
  • recheck — Retry the original erasure request after reconciliation.

Migration: Forward findErasureReplay on the held transaction in native store wrappers, returning the original receipt and its covered contributor IDs. Update strict clients to accept the coverage refusal and its four facts. Run reconcilePostgresPrivacyErasure in an owner session for each missing contributor with verified approval for the original receipt, as described in Reconcile coverage of a native erasure receipt in the Personal data guide. Retry the original subject and idempotency key once coverage is complete. Follow Rehearse native privacy cutover for each store before reopening native privacy traffic.

Native privacy contributor declaration

Native export and erasure check the installed declaration before processing the subject. The handler returns HTTP 503 (UPSTREAM_UNAVAILABLE) with the refusal code in error.details.privacyCode and four facts in error.details.

For PRIVACY_CONTRIBUTOR_MISSING, <owners> is the comma-separated list of missing installed contributor IDs.

  • observed — Required installed owners are absent (<owners>).
  • cause — The installed declaration requires those owners.
  • fix — Register their working owner ports in the serving composition.
  • recheck — Retry the original request after rollout.

An unavailable or invalid declaration returns PRIVACY_ASSESSMENT_UNAVAILABLE.

  • observed — Native privacy prerequisites could not be verified.
  • cause — The native store or its installed declaration or receipt evidence is unavailable or invalid.
  • fix — Check the native handler and store binding, driver, connection and TLS, and CONNECT, schema USAGE and EXECUTE privileges. Ask the installation owner to recover the exact declared catalogue and its approved migration history or the original verified receipt evidence, as applicable.
  • recheck — Retry the original request.

Migration: Apply the complete native catalogue for the installation profile. Declare each new required contributor ID in the ordered migration for its owner feature. Register every installed contributor in the serving registry. Forward readRequiredContributorIds on the held transaction in native store wrappers. Update strict clients to accept both codes and all four facts. Follow Upgrade native privacy operations in the Personal data guide for handler binding and cutover.

Adds an optional 3-rung p_cadence parameter ({"backoffHours":[h1,h2,h3]}) to public.payment_provider_result_apply (forward 20261124150000_native_provider_retry_cadence.sql) and optional retryCadence?: { readonly backoffHours: readonly number[] } to PostgresPaymentTruthOptions (createPostgresProviderPaymentControlPort), bringing provider-recorded renewal failure timing into parity with subscription_retry_apply_failure while preserving default [24, 72, 168] timing, immutable receipt replay, and the 3-rung (retry_attempt >= 4) exhaustion invariant.

Migration: Apply 20261124150000_native_provider_retry_cadence.sql before passing retryCadence to createPostgresProviderPaymentControlPort. Existing callers that omit retryCadence continue invoking the 11-argument overload. At that forward it uses [24, 72, 168] hours. With the 1.4.0 installed retry schedule, it uses the installed policy and falls back to those defaults when it is absent.

Adds an optional bounded concurrency option (default 1, max 16) to runRenewalBatchRows and createNativeSubscriptionBinding in @openlup/platform/subscriptions so hosts can overlap provider RTT across normal due renewals within a batch while preserving deterministic result ordering, per-row error isolation, 55P03 busy omission, and monotonic cycle advancement.

Migration: No action required. Existing callers keep sequential concurrency: 1 execution by default. Passing concurrency > 1 to createNativeSubscriptionBinding requires a pool-backed executor and fails closed with subscription_renewal_concurrency_requires_pool if given a single PoolClient.

Settings-only reviewed forwards may pin search paths of acquisition_private functions and auth.uid() installed by OpenLup. The remaining OpenLup-installed functions now pin pg_temp last in search_path.

Plan and validate commerce quote money offline

  • Use the experimental pricing functions to rank resolved promotion and delivery alternatives, compose the winning money with tax evidence and check a v2 quote's digests and totals. Shared quote and order types are available from the pricing and commerce contracts entries.

Add the experimental openlup recipe scaffold --domain <domain> --provider <slug> [--dest <dir>] [--force] [--verify] [--json] subcommand to @openlup/platform's openlup CLI for generating schema-valid, recipe-contract-isolated starter provider recipes across all eight supported adapter domains.

Added the experimental Agent-DX openlup recipe list|show|add|verify CLI subcommands to the openlup bin (packages/platform/src/lifecycle/openlup.mjs and packages/platform/src/lifecycle/recipeCli.mjs) for discovering, inspecting, copying into owned/adapters/<domain>/<provider> with provenance tracking, and offline-verifying (manifest parity, recipe-contract static isolation, @openlup/platform SemVer compatibility, and Stages 1–3 Vitest conformance/mount-proof suites) provider recipes.

Migration: Additive CLI subcommand under the existing openlup binary; no breaking changes for existing openlup upgrade, verify, catalogue, or settings invocations.

Parcel contact privacy coverage

The fulfillment-parcel-contacts contributor advances from fulfillment.parcel-contacts.v2 to fulfillment.parcel-contacts.v3. Its export coverage now explicitly includes parcel contacts projected from retained destination bindings. The existing export shape and contact erasure also cover those parcels.

Native migration admission allows one exact slot that adds a nullable receipt reference and widens the subscription quote preview acceptance CHECK to allow receipt-backed no-ops. The admission requires the issued CHECK preimage and keeps both existing acceptance states valid.

  • Added the reserved nullable price_lists.amount_basis column with the price_lists_basis_check constraint (tax_inclusive or tax_exclusive). NULL keeps the legacy gross basis; no released path reads or writes the column yet.

On the native rail, closed-from-open provenance can only be set by a guarded close or a native restore.

Migration: apply the additive native forward with the matching connected-store restore implementation. Existing readers can continue to verify stored policy tuples. No data rewrite is needed. Use the updated restore implementation for targets that have applied the forward. An earlier restore implementation refuses the new INSERT trigger.

Migration: CATALOG_MIGRATIONS gains 20261123192000_subscription_price_policy_close_provenance as its last entry. Code that pins the registry's length or index positions must stop doing so.

Managed divergence design: a managed twin could add the same INSERT guard to the policy revision table and use a transaction-keyed capability table with RLS. A trusted restore role could hold the narrow table grants and policies needed to restore and clear the capability in one transaction. Ordinary writers would have no capability privileges. The managed rail does not supply this feature.

@openlup/platform/pricing/browser also exports acquisitionTermsSchema and deriveSubscriptionUnitPrice, the same objects as on @openlup/platform/pricing. Browser code should import them from the browser entry. deriveSubscriptionUnitPrice is a display estimate; the quote is the amount charged. The module that defines it sets zod to jitless, as the server entry does. Tree-shaken production bundles that import only the entry's earlier symbols do not contain that call. Evaluating the whole entry applies the setting, which changes no parse result; that covers dev pre-bundling, unbundled ESM and Node.

  • Added experimental projectPublishedCatalogOfferPage and PublishedCatalogOfferPage to @openlup/platform/catalog. The projection carries public presentation, filters attributes against exact installed definition evidence and flags primary identifiers for local use. The raw storefront read distinguishes an unpublished offer with a typed issue.

Native migration admission allows one exact grant of the two catalogue read entry points to the qualified-v2 catalogue publication login when the local migration ledger records the applied authority migration.

Native migration admission allows one exact ledger-guarded SELECT (amount_basis) grant on public.price_lists to the qualified-v2 catalogue publication login in a dedicated grant-only slot. The column and any basis CHECK must first be issued in an earlier hash-pinned native-store forward.

Native migration admission allows one exact guarded EXECUTE grant to the qualified-v2 catalogue publication login for the two price setup wrappers. Both definitions must already be issued in earlier native slots with matching file and definition hashes.

Bind acceptance to a final v2 quote

  • Use experimental server helpers to issue and verify quote acceptance tokens bound to a final quote and its all-in presentation, including applicable fees.

The openlup recipe messages now name the provider recipe contract instead of an internal decision-record number; the rules are unchanged. The contract is documented in the platform architecture documentation, and the reader guide's provider recipe page summarizes it.

Migration: None; only message wording changed.

  • The native schema adds an owner-only renewal destination writer and classifier. The writer has no production caller. Retained order and shipment reads verify renewal documents at their issued scope and use the order's preparation to verify the binding and service. Use documentPurpose to narrow DestinationVerifiedReadV2. Subscription documents return "subscription" with null expiry. Checkout documents keep their timestamp, including when inherited by a renewal. When retained renewal coordinates differ, recover the original binding from the order's preparation through the authorized order workflow.

Add memoizeCommerceQuoteCatalogReads to share one catalog authority read across an offer projection and its quotes.

Migration: Existing callers can retain their current composition. To opt in, create one wrapper per request and pass it to the projection and its quote ports.

Configure the Node host scheduler lock

Breaking change from Platform 1.3.0. When cron is supplied on a node-cron bundle, createNodeHost().serveNode defaults to lockMode: "cluster". Cluster mode refuses with OPENLUP_E_SCHEDULER_CLUSTER_LOCK_REQUIRED before registering timers unless the resolved AdvisoryLock declares durability: "cluster". Direct createNodeScheduler calls default to lockMode: "process".

Migration: Supply a session-affine AdvisoryLock declaring durability: "cluster" as advisoryLock, or set lockMode: "process" for an intentional single-instance host whose scheduler profile permits it.

Adds experimental stock-wait reads for operators, operational evidence, and owned customer accounts. Operators can page through cases, see complete shortage totals, and distinguish recorded payments from missing intent evidence. The health check uses current shortage, check time, and persisted notice progress.

Migration: No database changes are required. Bind the server-side reader to the native or managed subscription graph with a request-authorized executor that opens one read-only repeatable-read transaction per invocation.

Compare selected catalogue quotes under the checkout fence

The comparator verifies the issue evidence. Fresh governed purchases remain unavailable.

Add callback entries and single-row installed policy readers

Added eight callback entries (checkout.offerAdmission, shipping.rateResolver, subscriptions.afterRenewal, subscriptions.editTermsAdmission, subscriptions.lifecycleCommandAdmission, pricing.acquisitionFinancialPolicy, subscriptions.sizedPortionProposal, bundles.compositionRules) and three installed policy entries (subscription_minimum_base_units, subscription_sized_intro_phase, shipping_flat_minor) to the packaged settings catalogue, with built-in SQL readers wired in openlup settings.

Point settings catalogue cap and invariant entries to domain guides

Replaced all 47 self-referencing settings-catalogue.md links on cap and invariant entries with direct links to their owning reader-guide pages.

Include configuration error details in settings check

When app loading or startup validation fails, settings check appends the error's nonempty, single-line string cause in parentheses when it has at most 300 characters and contains no control characters. This lets startup assertions identify which field to edit.

Improve settings CLI and MCP diagnostics and live-edit reloading

openlup settings mcp now runs each tool invocation in a fresh child process with stdout/console redirected to stderr so on-disk application configuration edits take effect immediately without restarting the MCP server. Added per-command --help (including check, preview, and mcp), optional appBindingWarning and partialMatch fields on list, rule messages on invalid check rows, distinct remediation when no connected reader is registered, Default: none text formatting, full preview input validation before app-key unsupported refusals, and checkout search synonyms.

Clarify commerce.manualHoldReasons fixed vocabulary

Updated the commerce.manualHoldReasons catalogue entry to state that native order controls enforce a fixed six-reason hold vocabulary (payment_not_succeeded, inventory_review, risk_review, address_review, fulfillment_exception, manual_support) rather than a single manual hold reason.

Discover fiscal profile inputs in the settings catalogue

Use show market.fiscalProfile --json with the starter's settings script to find the existing fiscal country, tax category, VAT rate, and legal basis inputs, including how blank values fall back and which inputs the reader refuses.

Add packaged code settings and multi-row installed readers

Added five packaged code settings to the settings catalogue (checkout.resumeWindowMinutes, inventory.offerLowStockThreshold, catalog.bundleAvailabilityPolicy, market.settlementProfile, communications.terminalPayloadRetentionDays) along with runtime numeric validation for resumeWindowMinutes and lowStockThreshold options. Added multi-row installed entries (pricing.subscriptionPricePolicy, communications.nativeDeliveryControls) with aggregate SQL readers in openlup settings.

  • Settings preview recognizes application settings declared by the selected app and points to show and check when a preview is unavailable. This refusal is also returned by the settings MCP tool.
  • When a settings goal matches no entries, text output suggests changing or omitting the goal.

Install method expiry warning and promotion claim hold policies

Added installed policy entries payment_method_expiry_warning_days (default 30 days, 1..365) and promotion_claim_hold_hours (default 24 hours, 1..720) to the packaged settings catalogue, wired their SQL readers in openlup settings, and exported experimental SQL-parity validation, install, and read helpers from @openlup/platform/payments and @openlup/platform/promotions.

Migration: Platform SQL migration 20261126010000_settings_wave1_method_expiry_and_claim_hold.sql installs strict JSONB validators and fail-closed commerce_settings readers for both policies, and updates public.subscription_method_health_read(uuid) and public.commerce_create_promoted_order_draft_with_outbox(text,jsonb,jsonb,uuid) to read the installed thresholds with unchanged 30-day and 24-hour absence fallbacks and fail-closed 22023 refusals on malformed rows.

Install subscription retry schedule and payment decline notice timing policies

Promoted subscriptions.retrySchedule (subscription_retry_schedule, default [24, 72, 168] hours, strictly 3 positive integers 1..2147483647) and payments.declineNoticeTiming (payment_decline_notice_timing, default delayMinutes: 3 (0..1440) and linkLifetimeHours: 24 (1..168)) from cap to installed in the packaged settings catalogue, wired their SQL readers in openlup settings, and exported experimental SQL-parity validation, install, and read helpers from @openlup/platform/subscriptions and @openlup/platform/payments.

Migration: Platform SQL migration 20261126020000_settings_wave2_retry_schedule_and_decline_timing.sql installs strict JSONB validators and fail-closed commerce_settings readers for both policies, updates 3-argument public.subscription_retry_apply_failure(uuid,text,jsonb) to forward public.subscription_retry_schedule_read(), and updates 12-argument public.payment_provider_result_apply(text,uuid,uuid,text,timestamptz,text,text,text,text,text,text,jsonb) to fall back to public.subscription_retry_schedule_read() when p_cadence is NULL (while preserving explicit p_cadence precedence) and to read public.payment_decline_notice_timing_read() for one-time recoverable decline notices and recovery link expiration.

Install operator slide max days and edit quote TTL policies

Promoted account_support_operator_slide_max_days (default 60 days, integer 3..365) and subscription_edit_quote_ttl_minutes (default 15 minutes, integer 1..1440) as installed entries in the packaged settings catalogue, wired their SQL readers in openlup settings, added optional quoteTtlMinutes (default 15, validated integer 1..1440) to PackageEditorOptions and SizedEditorOptions, and exported experimental SQL-parity validation, install, and read helpers from @openlup/platform/account-support and @openlup/platform/subscriptions.

Migration: Platform SQL migration 20261126030000_settings_wave3a_operator_slide_and_quote_ttl.sql installs strict JSONB validators and fail-closed commerce_settings readers for both policies, updates public.customer_support_apply_subscription_action_v1(uuid,uuid,text,jsonb,integer,text,timestamptz) to read public.account_support_operator_slide_max_days_read(), updates public.customer_subscription_preview_bundle_as_actor(uuid,text,jsonb,jsonb,jsonb,integer,integer) and public.subscription_command_preview(uuid,uuid,text,uuid,text,jsonb,timestamptz) to read public.subscription_edit_quote_ttl_minutes_read() consistently for both quote_hash and expires_at while failing closed on malformed policy rows, and revokes public execution while granting EXECUTE on the helper functions to service_role.

Install return reasons and payment method preference policies

Promoted commerce.returnReasons and shipping.paymentMethodPreferences from cap to installed, added returnReasonsPolicy and paymentMethodPreferencesPolicy helpers, and extended CustomerPreferencePolicy for custom codes.

Migration: Platform SQL migration replaces closed enum CHECK constraints with anchored format checks (^[a-z][a-z0-9_]{1,63}$), installs *_validate/_read helpers (SET search_path = pg_catalog, pg_temp), and enforces active lists in commerce_return_request_create_owned and customer_preference_save while preserving historical reads.

Install subscription reschedule time zone policy

Promoted subscriptions.rescheduleTimeZone (subscription_reschedule_timezone, default "UTC") from cap to installed, added rescheduleTimeZonePolicy helpers and postgresCommandStore time-zone support.

Migration: Platform SQL migration updates the four reschedule functions (SET search_path = pg_catalog, pg_temp) and installs subscription_reschedule_timezone_validate/_read.

Added the provider-neutral CarrierRateQuotePort contract and helpers to @openlup/platform/shipping and @openlup/platform/shipping/contracts (type-only), along with the offline @openlup/platform/shipping/testing conformance runner (runShippingRateAdapterConformance) and authenticated scripted transport fake (createScriptedShippingRateFake).

  • Opt into immutable native subscription profile installation with subscriptionProfileDefinitions. Manifests and offline checks use Core's declaration validator. The owner can read the exact installed profile and policy pins with readInstalledCatalogSubscriptionProfile.
  • Connected-store capture refuses stores with profile receipts until connected-store restore supports them.

Migration: Handle subscription_profile_receipts_unsupported in exhaustive switches over PostgresTransferFailure.

Select a fixed-day subscription cadence

The pure selector intersects the declared choices from the store, SKU, offer, command and optional profile. Supply profile and policy identity pins from your binding. The selector reports declaration remedies and preserves the native prepaid refusal for unprofiled requests.

  • Native catalogue Prepare reports missing or ineffective price lists at each affected draft operation's priceListId field. Publish still checks the list when issuing the publication.

  • Add the experimental createPostgresCatalogPublicationReads factory on ./catalog for current heads, exact version 2 pages, authorized receipt recovery and history.

  • Qualified-v2 installations gain a dedicated restricted catalogue publication login. Native publication failures can report the rejected price-list ID as subject.

@openlup/platform/storefront also exports recoverAmbiguousSubmit and its result type AmbiguousSubmitRecovery, which replay a failed submit at most once, with the same request, only when the host's failure classifier reports a timeout or a transport failure, and send nothing after an in-flight refusal or an unrecognized failure.

@openlup/platform/storefront also exports getOrCreateContinuationId, readContinuationRecord, advanceAttempt and clearContinuationRecord, which keep the continuation record's reuse rule and payment-attempt sequence through the host's storage and identifier bindings. getOrCreateContinuationId returns null, so nothing may be sent, when its storage does not keep a new identity, unless the caller passes the deprecated storageFailure: "continue_unpersisted".

  • SubmitOutcomeClass in @openlup/platform/storefront gains declined, a definitive decline of the payment attempt that leaves the purchase payable, and closed, the server's statement that the purchase under the key is terminal and no payment under it can still settle; a classifier written earlier never returns either.

@openlup/platform/storefront also exports the experimental checkPendingResume, decidePendingResume, applyPendingResume and PendingResumeDecision, which decide what a pending provider action means from the host's status read, clock and provider facts, never drop the marker on an unreadable status, block a switch to another provider only before the open attempt was sent to its provider and only when that attempt admits no new one, and run exactly one effect per decision.

  • @openlup/platform/storefront/testing adds createPostgresStorefrontObserver, a storefront observer that reads each run subject's ledger, and with exclusive the database's payable orders, from the platform's own PostgreSQL tables through an injected SQL executor.

  • @openlup/platform/storefront adds the experimental createPurchaseContinuation, PurchaseContinuation and PurchaseContinuationSnapshot: one controller a store's UI renders a purchase from, composing the continuation-record, ambiguous-submit and pending-resume functions through host bindings; ClientEventReporter gains the event stored_continuation_rejected.

  • @openlup/platform/storefront/testing adds runStorefrontScenario, which runs a storefront proof scenario clean and under its control, checks its own harness and returns a format-1 verdict, and storefrontScenarios with lost_response_reload and duplicate_submit.

  • @openlup/platform/storefront/testing: four more scenarios; runStorefrontScenario gains an outcome driver, the omit_action and other_policy controls, declared auto-progress and stopAt.

Migration: the result is now a union on kind. Narrow before reading verdict.

import { runStorefrontScenario } from "@openlup/platform/storefront/testing";

export async function readVerdict(options: Parameters<typeof runStorefrontScenario>[0]) {
  const result = await runStorefrontScenario(options);
  if (result.kind !== "verdict") throw new Error(result.kind);
  return result.verdict;
}
  • getOrCreateContinuationId in @openlup/platform/storefront takes an optional per-call storageFailure policy and returns ContinuationId | null. By default it reads a newly minted record back once and returns null, so nothing may be sent, unless the record names the identity and fingerprint it just wrote; reuse and a write that throws read nothing back. createPurchaseContinuation keeps its statuses and still sends nothing when storage does not keep the record.

Migration: Hosts built from main that call getOrCreateContinuationId directly now receive ContinuationId | null. Handle null by sending nothing and letting the buyer try again once storage is available. To keep the earlier behaviour, which continues with an identity its storage did not keep and can create a second order, pass the deprecated storageFailure: "continue_unpersisted" and still narrow the result, which includes null under every policy.

The experimental @openlup/platform/storefront entry supplies browser-safe purchase-continuation types for identity roles, continuation records, host bindings and declarations. The identity constructors toContinuationId, toCommandKey and toAttemptNumber return their argument unchanged. storefrontAnchor names the data-openlup-* markup anchors. Export names are fixed once released. Shapes may still change in a minor release.

  • New @openlup/platform/storefront/testing (maturity testing, Node only): the storefront scenario, adapter, observer and page-handle contracts, createPageHandle over a Playwright page, and serializeStorefrontVerdict.

The lifecycle entry adds the storefront verdict and proof-file contracts (format version 1) with their parsers and JSON Schemas, and digestStorefrontFiles for the client-build digest. With the storefront runner included in 1.4.0, format version 1 can only gain fields. A removed field or changed meaning raises formatVersion.

  • The experimental native destination port reads and rechecks an authorized subscription's sealed destination. Read with a null binding for current coordinates, or supply the exact binding for the retained document. Use a writable read-committed transaction.

  • Recovery through direct address selection requires a qualified edit rail.

  • Store experimental future subscription destination selections on native PostgreSQL. The edit is available to the migration owner. Existing runtime callers can keep using the current subscription and checkout entries after upgrade.

Add a private read-only lookup for the frozen renewal agreement by operation and commercial generation.

Native hosts can opt into the experimental createPostgresSubscriptionSaveOfferAcceptor from @openlup/platform/subscriptions. Bind a trusted actor, lifecycle timing and offer policy, ordinary command admission, and a transaction callback that commits or rolls back on one READ COMMITTED connection.

Batch owned IDs with readPresentations. A returned null means the offer is unavailable for that subscription. To accept a SubscriptionSaveOfferPresentation, echo its generation, kind and the displayed reschedule target or chosen pause terms. Use a fresh action key for a new acceptance and recover a lost reply with the original key and input. Refresh the presentation after a stale or unavailable refusal. A consumed refusal means the kind was already accepted for that renewal occurrence.

Presentation and fresh acceptance require the retained renewal date and request time to fall in UTC calendar years 1970–9999. The reschedule offset, slide bounds, pause days and subscription cadence have a ceiling of 36,500 days. The pause month count has a ceiling of 1,200 months and the edit window has a ceiling of 876,000 hours. Exact retries and consumed occurrences retain their existing results.

Native tax evaluation claims

Native tax evaluations can now claim and seal an owned destination and replay a verified outcome. The 300-second lease governs qualified recovery. Definitive service unavailability directs the caller to request a new quote when service returns. The experimental tax store wrappers require a restricted transaction lane. Existing quote hosts require no setup changes.

Quote composition evidence in native tax evaluations

The native tax evaluation store can retain the original quote composition and verify its binding to a sealed outcome. Existing evaluations remain replayable and exportable. Existing hosts require no setup changes.

Quote composition on experimental tax evaluations

The experimental ./tax wrapper accepts the projected composition on claim and returns it with the claim. On success, it includes the supplied composition digest in the sealed fiscal or verified adapter evidence. The wrapper checks the exact projected pricing variants before an initial claim.

A legacy seal whose kind differs from the pinned kind now returns tax_invalid_input at /seal. Submit the kind from the original claim.

Experimental tax evaluation validation order

A legacy claim pin with both an unsupported kind and a wrong destination schema version reports tax_invalid_input at /pin/kind first. Correct the kind and review the remaining input before retrying.

Add the experimental local rate-table adapter, offline tax adapter conformance, and settings catalogue descriptors for application tax composition.

Tax verifiers report oversized canonical JSON as tax_invalid_input with a size remedy at the document's JSON Pointer. Missing and explicitly undefined required calculation evidence both point to /evidenceDigest.

Native PostgreSQL stock writes report a typed refusal when a replay changes the stock inputs. Reminder schedule installation reports a typed refusal when open orders block a schedule change.

Migration: Apply the ordered native migration catalogue through 20261125150000_checkout_recovery_reminder_install_outcome.sql. Match FulfillmentStockReplayConflictError or CheckoutRecoveryScheduleChangeBlockedError using instanceof. The reminder error exposes blockingOrders as a decimal string, and both errors retain the driver error in cause. Checkout treats raw stock 23505 as an operational failure.

Report upgrade conflicts once and name the repair

  • openlup upgrade plan and openlup upgrade apply report one top-level JSON conflicts array, including on completion, replay and errors after successful argument parsing. Schema-range and managed-file refusals include named findings with repair and recheck instructions.
  • The neutral starter refuses a missing or misbound StoreConfig before creating a pool. openlup verify --app includes the exact public OPENLUP_E_STARTER_STORE_CONFIG_REQUIRED diagnostic in the assembly failure's cause when recognized.

Migration:

  • Upgrade tooling should read top-level conflicts instead of plan.conflicts and update strict report and text assertions to expect the named findings. This response-shape change applies to callers of the upgrade commands.

  • Starter observers should pass the selected StoreConfig third and the optional keyring fourth to composeNativeBindings. Update exact verify-output assertions for the missing or misbound store configuration diagnostic. Check any custom observer or copied starter code that calls this binding.

  • New managed files created by openlup upgrade apply are readable by the app user (0644 subject to the process umask). Replaced files keep their existing mode.

Images built from the working copy where you ran openlup upgrade apply may contain files with mode 0600. The 1.0.0→1.1.0 upgrade created shared/policy.ts and test/policy.test.ts. The 1.1.0→1.2.0 upgrade created owned/market.config.ts, shared/copy-keys.ts, shared/locale-copy.ts, shared/locales.ts, test/checkout-recovery-stage.test.ts, test/locales.test.ts, and test/subscription-creation.test.ts. The 1.2.0→1.3.0 upgrade created owned/settings-host.ts when absent. Run chmod a+r on those files or rebuild from a fresh checkout with the default umask 022. Git applies the process umask on checkout.

  • Verified webhook intake supports an optional delivery effect for an observation with no incoming tracking references. The effect runs after handoff, before accounting and receipt completion. A confirmed delivery readback is reported separately from tracking counts.
  • Native intake can record a historical arrival using its retained verified webhook and existing, unambiguous provider-bound parcel reference.

Migration: Apply the selected platform migration chain before enabling the updated native webhook intake.

Export brandTransientSecret, PaymentWebhookControlPort (and companion verified-ingress webhook types), PaymentProviderExecutor, and provider-neutral browser form contracts (PaymentFormCopy, PaymentFormSettlement, RecoveryPaymentSetupFormCopy) from @openlup/platform/payments and @openlup/platform/payments/contracts, and align runPaymentAdapterConformance transport-fault status checks with canonical PAYMENT_EXECUTION_ATTEMPT_STATUSES (sent_to_provider).

Added contracts and offline conformance kits for @openlup/platform/accounting (/contracts, /testing), @openlup/platform/observability (/contracts, /testing), and @openlup/platform/channels/testing.

Known issues

A renewal claim that skips the snapshot recheck can charge the pre-edit amount. In Platform 1.0.0 through 1.4.0, legacy or custom callers of subscription_claim_due_renewal that skip the recheck can first claim a snapshot built before an accepted edit and charge the pre-edit amount. On the mounted, transaction-backed native v2 path, postgresRenewalStore.ts rebuilds the snapshot under the subscription row lock before the first claim and refuses a fingerprint mismatch with subscription_renewal_snapshot_stale.

In 1.4.0, the SQL first-claim guard for terms that carry catalogue acceptance raises catalog_acceptance_line_mismatch on a template-version, SKU quantity, or accepted SKU revision mismatch. Custom callers can close the stale-charge window by locking the subscription row before building the snapshot and holding the lock through the claim in the same transaction. A fix is planned for a later release.

Bundle edits refuse SKUs that have only a derived subscription price. In Platform 1.3.x and 1.4.0, the native command preview requires an active stored price in mode subscription or any for the requested quantity on the subscription's price list. If the price is missing, the preview returns the structured refusal subscription_edit_catalog_unavailable and stores it under the command key. The direct SQL edit preview raises SQLSTATE 22023 with the same message. Install an active stored price at the intended amount, then start a fresh command preview with a new command key. The original key replays the refusal. A fix that uses derived prices is planned for a later release.

Payment attempts can be recorded after cancellation. In @openlup/platform 1.0.0 through 1.4.0, the trusted server recordAttempt operation calls payment_provider_attempt_record. A new record is refused if the provider state is marked cancelled. The function skips checks for cancellation of the joined settlement intent and for the subscription's eligibility. If a record succeeds for a cancelled intent or an unsettled renewal cycle of a cancelled subscription, it sets the active attempt, updates the provider and payment statuses, and enqueues commerce.payment_attempt.requested. The spurious attempt cannot be dispatched or settled through the native payment rail, and recording it moves no money.

Outbox consumers can observe the spurious request. Use the event's paymentIntentId and paymentAttemptId to match the local records. Check the settlement intent and, for renewals, the subscription and cycle status. Verify any recorded provider reference against provider evidence before correcting consumer state, and treat the confirmed spurious request as ineligible for retry. Until a fix ships, check intent status and subscription eligibility before calling recordAttempt.

Newly deprecated symbols

Scheduled for removal in 2.0.0:

  • Core fulfillment helpers stepLabelKey and timelineLabelForStep. Use FULFILLMENT_STATUS_EFFECTS and application-owned translations.
  • Core's PaymentMethodCaptureHandoff literal union. Use toCoreCaptureHandoff and fromCoreCaptureHandoff.
  • Platform fulfillment's createFulfillmentCommandLedger. Use createPostgresFulfillmentDispatchStore.
  • Platform payment reference-support exports include createStripeSandboxPaymentExecutionAdapter, createStripePaymentReconciliationProvider, mapStripeIntent, mapSetupIntent, normalizeStripeFailureEvidence, createTpayPaymentExecutionAdapter, createTpayPaymentReconciliationProvider, createTpayHttpClient, normalizeTpayFailureEvidence, aliasValue and ProviderAttemptPreDispatchError.

For provider composition, use PaymentAdapter and PaymentProviderRegistry from @openlup/platform/payments/contracts and createPaymentProviderRegistry from @openlup/platform/payments.

RenewalCyclePolicy is scheduled for simplification in 2.0.0. Prefer createDefaultRenewalCyclePolicy. Set PLATFORM_BUNDLE explicitly ahead of the change to the legacy DEFAULT_PLATFORM_BUNDLE default in 2.0.0.

API changes

packages/core/api/catalog.api.md

Added declarations: 14; see packages/core/api/catalog.api.md.

packages/core/api/fulfillment.api.md

Changed declarations:

// API report diff: not compiled.
export declare function stepLabelKey(step: CustomerFulfillmentStep): string;
export declare function timelineLabelForStep(step: CustomerFulfillmentStep): string;

packages/core/api/payment.api.md

Changed declarations:

// API report diff: not compiled.
export type PaymentMethodCaptureHandoff = "embedded_client_secret" | "payer_supplied_code";

packages/core/api/pricing.api.md

Added declarations: 28; see packages/core/api/pricing.api.md.

packages/core/api/promo.api.md

Changed declarations:

// API report diff: not compiled.
export declare const PROMOTION_APPLIES_TO_KINDS: readonly ["order_total", "line_with_variant", "line_with_category"];

packages/core/api/subscription.api.md

Added declarations: 5; see packages/core/api/subscription.api.md.

packages/outbox/api/index.api.md

Added declarations: 4; see packages/outbox/api/index.api.md.

packages/platform/api/account-support.api.md

Added declarations: 16; see packages/platform/api/account-support.api.md.

packages/platform/api/accounting-contracts.api.md

Added package subpath ./accounting/contracts.

Added declarations: 11; see packages/platform/api/accounting-contracts.api.md.

packages/platform/api/accounting-testing.api.md

Added package subpath ./accounting/testing.

Added declarations: 10; see packages/platform/api/accounting-testing.api.md.

packages/platform/api/accounting.api.md

Added package subpath ./accounting.

Added declarations: 8; see packages/platform/api/accounting.api.md.

packages/platform/api/adapter-kit.api.md

Added package subpath ./adapter-kit.

Added declarations: 33; see packages/platform/api/adapter-kit.api.md.

packages/platform/api/catalog-contracts.api.md

Added declarations: 3; see packages/platform/api/catalog-contracts.api.md.

Changed declarations:

// API report diff: not compiled.
// dist/catalog/contracts/candidate.d.ts
export interface CatalogCandidateIssue extends CatalogDraftIssue {
// dist/catalog/contracts/catalogConformance.d.ts
export type CatalogConformanceCode = "definition_invalid_shape" | "definition_unknown_field" | "definition_key_invalid" | "definition_version_invalid" | "definition_unit_invalid" | "definition_dimension_invalid" | "definition_net_content_invalid" | "definition_attribute_invalid" | "definition_axis_invalid" | "definition_validator_ref_invalid" | "definition_profile_ref_invalid" | "definition_tax_class_invalid" | "definition_callback_missing" | "definition_duplicate_identity" | "definition_duplicate_unit" | "definition_duplicate_dimension" | "definition_duplicate_net_content_unit" | "definition_unknown_net_content_unit" | "definition_duplicate_choice" | "definition_duplicate_dimension_unit" | "definition_dimension_unit_mismatch" | "definition_net_content_unit_mismatch" | "definition_multiple_net_content_dimensions" | "definition_unit_factor_invalid" | "definition_duplicate_attribute" | "definition_facetable_not_filterable" | "definition_unknown_attribute_unit" | "definition_duplicate_axis" | "definition_unknown_axis_attribute" | "definition_axis_scope_invalid" | "definition_duplicate_enum_value" | "definition_unknown_axis_dimension" | "definition_axis_mismatch" | "definition_duplicate_axis_attribute" | "definition_unknown_tax_class" | "definition_unknown_profile_ref" | "pack_type_namespace_mismatch" | "attribute_projection_text_too_large" | "attribute_storage_too_large" | "attribute_values_invalid" | "attribute_value_invalid" | "attribute_unknown_key" | "attribute_scope_conflict" | "attribute_cardinality_invalid" | "attribute_required_missing" | "attribute_required_locale_missing" | "attribute_reference_unresolved" | "attribute_publication_revision_invalid" | "conformance_subject_invalid" | "conformance_owner_unavailable" | "conformance_refusal_fixture_missing" | "conformance_refusal_fixture_invalid" | "conformance_refusal_fixture_mismatch" | "draft_input_invalid" | "draft_payload_invalid" | "draft_payload_too_large" | "quantity_invalid" | "quantity_cross_dimension" | "quantity_fractional_count" | "quantity_unknown_unit" | "quantity_overflow" | "quantity_not_exactly_representable" | "axis_not_installed" | "duplicate_axis" | "option_not_selected" | "option_missing" | "option_invalid" | "unit_factor_missing" | "sku_identity_change_requires_new_sku" | "duplicate_combination" | "combination_digest_collision" | "duplicate_sku_id" | "combination_identity_integrity_failed" | "sku_payload_limit" | "product_capacity_exceeded" | "product_capacity_invalid" | "definition_profile_invalid" | "cadence_kind_unsupported" | "advisory_net_content_not_publishable" | "advisory_filter_flags_unused" | "advisory_unit_identifier_missing" | "advisory_draft_version_not_publishable" | "advisory_fixtures_skipped_definition_invalid" | "advisory_variant_attribute_without_axis" | "advisory_openlup_range_unrecognised" | "advisory_openlup_range_unsatisfied";
export interface CatalogDefinitionIssue {
// dist/catalog/contracts/catalogPack.d.ts
export interface CatalogPackInput {
// dist/catalog/contracts/definitionInstall.d.ts
export interface CatalogDefinitionInstallReceipt {

packages/platform/api/catalog-testing.api.md

Added declarations: 15; see packages/platform/api/catalog-testing.api.md.

Changed declarations:

// API report diff: not compiled.
// dist/catalog/testing/contracts.d.ts
export interface CatalogConformanceFinding {

packages/platform/api/catalog.api.md

Added declarations: 114; see packages/platform/api/catalog.api.md.

The internal IntentSku declaration was removed. PublicationIntent.skus now uses the SKU type from CatalogDraftPayloadV3 directly.

Changed declarations:

// API report diff: not compiled.
// dist/catalog/catalogPackManifest.d.ts
export interface CatalogPackManifest {
// dist/catalog/catalogPublicationCommands.d.ts
export type CatalogPublicationCommandResult = {
// dist/catalog/catalogPublicationRules.d.ts
export interface CatalogPublicationRulesModule {
// dist/catalog/draftHandler.d.ts
export interface CatalogDraftHandlerDeps<Context, Record extends PublicationDraftRecord = CatalogDraftRecord, Page extends CatalogDraftPage = CatalogDraftPage> {
// dist/catalog/draftPorts.d.ts
export interface CatalogDraftStorePort<Record extends PublicationDraftRecord = CatalogDraftRecord, Page extends CatalogDraftPage = CatalogDraftPage> {
// dist/catalog/publicationCodec.d.ts
export declare function catalogPublicationManifestSchema(documentDigests?: ReadonlySet<string>): z.ZodType<CatalogPublicationManifestV2 | CatalogPublicationManifestV3>;
export declare function decodePublicationPacket(input: {
    manifest: unknown;
}): Decoded<CatalogPublicationManifestV2 | CatalogPublicationManifestV3>;
export declare function decodeStoredPublicationReceipt(text: unknown): CatalogPublicationReceiptV2 | CatalogPublicationReceiptV3;
export declare const nativeCatalogPublication: {
// dist/catalog/publicationContracts.d.ts
export interface CatalogPublishedProduct extends RulesProduct {
export interface CatalogPublishedSku extends RulesSku {
export interface CatalogPublicationFailure {
// dist/catalog/publicationError.d.ts
export declare const publicationPriceRefusalReason: z.ZodEnum<{
declare const publicationCodes: readonly ["activation_not_assessed", "activation_unknown", "catalog_action_conflict", "catalog_archive_barrier_unavailable", "catalog_bound_obligations", "catalog_obligation_evidence_unknown", "catalog_obligation_evidence_unavailable", "catalog_lifecycle_child_effects_mismatch", "catalog_lifecycle_evidence_unavailable", "catalog_lifecycle_fresh_sale_refused", "catalog_lifecycle_last_active_child", "catalog_lifecycle_raw_status_fenced", "catalog_lifecycle_state_conflict", "catalog_lifecycle_transition_refused", "catalog_lifecycle_withdrawal_overlay_refused", "catalog_publication_absent", "catalog_publication_use_readback_v2", "catalog_publication_use_readback_v3", "catalog_publication_activation_effect_missing", "catalog_publication_approval_missing", "catalog_publication_approval_state_valid", "catalog_publication_approval_wrong", "catalog_publication_attributes_invalid", "catalog_publication_authored_amounts_invalid", "catalog_publication_axes_invalid", "catalog_publication_busy", "catalog_publication_candidate_already_issued", "catalog_publication_candidate_invalid", "catalog_publication_command_key_reused", "catalog_publication_committed_at_valid", "catalog_publication_content_invalid", "catalog_publication_cursor_invalid", "catalog_publication_decided_at_valid", "catalog_publication_derived_source_mismatch", "catalog_publication_document_bytes_unavailable", "catalog_publication_document_invalid", "catalog_publication_document_required", "catalog_publication_document_revision_sequence", "catalog_publication_document_source_mismatch", "catalog_publication_document_source_missing", "catalog_publication_document_text_copied", "catalog_publication_draft_advanced", "catalog_publication_eligibility_source_mismatch", "catalog_publication_envelope_too_large", "catalog_publication_facts_invalid", "catalog_publication_gross_below_net", "catalog_publication_gross_mass_invalid", "catalog_publication_gross_mass_required", "catalog_publication_gtin_conflict", "catalog_publication_gtin_invalid", "catalog_publication_head_invalid", "catalog_publication_history_item_too_large", "catalog_publication_identifier_blank", "catalog_publication_identifier_conflict", "catalog_publication_identifier_effect_missing", "catalog_publication_identifier_key_reused", "catalog_publication_identifier_primary_invalid", "catalog_publication_identifier_requires_created_sku", "catalog_publication_identifier_source_mismatch", "catalog_publication_identity_conflict", "catalog_publication_integral_grams_required", "catalog_publication_net_content_invalid", "catalog_publication_quantity_definition_unqualified", "catalog_publication_issue_sealed", "catalog_publication_lifecycle_assertion_changed", "catalog_publication_lineage_invalid", "catalog_publication_lineage_unknown", "catalog_publication_live_drift", "catalog_publication_activation_membership_required", "catalog_publication_logistics_source_mismatch", "catalog_publication_manifest_invalid", "catalog_publication_mass_required_until_mc5", "catalog_publication_media_evidence_mismatch", "catalog_publication_media_readiness_unproven", "catalog_publication_media_validation_unavailable", "catalog_publication_membership_change_not_allowed", "catalog_publication_membership_effect_missing", "catalog_publication_membership_source_mismatch", "catalog_publication_metadata_effect_missing", "catalog_publication_net_weight_unsupported", "catalog_publication_operation_invalid", "catalog_publication_operation_source_ambiguous", "catalog_publication_operation_source_mismatch", "catalog_publication_operation_source_missing", "catalog_publication_page_invalid", "catalog_publication_pointer_capability_unconsumed", "catalog_publication_post_state_changed", "catalog_publication_presentation_effect_missing", "catalog_publication_presentation_invalid", "catalog_publication_presentation_source_mismatch", "catalog_publication_presentation_unavailable", "catalog_publication_price_changed", "catalog_publication_price_key_reused", "catalog_publication_price_readiness", "catalog_publication_price_unavailable", "catalog_publication_primary_sku_required", "catalog_publication_product_identity_conflict", "catalog_publication_product_name_source_mismatch", "catalog_publication_query_invalid", "catalog_publication_read_invalid", "catalog_publication_readback_item_too_large", "catalog_publication_receipt_input_invalid", "catalog_publication_receipt_invalid", "catalog_publication_receipt_unsupported", "catalog_publication_record_immutable", "catalog_publication_reserved_carrier", "catalog_publication_roster_limit", "catalog_publication_route_conflict", "catalog_publication_rule_failed", "catalog_publication_rules_binding_mismatch", "catalog_publication_rules_digest_mismatch", "catalog_publication_rules_module_invalid", "catalog_publication_scope_expansion", "catalog_publication_sku_effect_missing", "catalog_publication_sku_identity_changed", "catalog_publication_sku_price_not_ready", "catalog_publication_sku_price_shape_invalid", "catalog_publication_sku_revision_invalid", "catalog_publication_sku_title_invalid", "catalog_publication_sku_too_large", "catalog_publication_source_invalid", "catalog_publication_source_mismatch", "catalog_publication_tax_class_unavailable", "catalog_publication_v3_activation_readiness_failed", "catalog_publication_v3_active_primary_required", "catalog_publication_v3_compile_archive_refused", "catalog_publication_v3_compile_change_noop", "catalog_publication_v3_compile_derived_facts_mismatch", "catalog_publication_v3_compile_document_absent", "catalog_publication_v3_compile_document_conflict", "catalog_publication_v3_compile_document_stale", "catalog_publication_v3_compile_identifier_conflict", "catalog_publication_v3_compile_primary_foreign", "catalog_publication_v3_compile_primary_immutable", "catalog_publication_v3_compile_product_absent", "catalog_publication_v3_compile_product_conflict", "catalog_publication_v3_compile_product_incomplete", "catalog_publication_v3_compile_sku_absent", "catalog_publication_v3_compile_sku_archived", "catalog_publication_v3_compile_sku_conflict", "catalog_publication_v3_document_digest_mismatch", "catalog_publication_v3_document_invalid", "catalog_publication_v3_document_not_canonical", "catalog_publication_v3_document_reference_stale", "catalog_publication_v3_presentation_required", "catalog_publication_v3_structural_readiness_failed", "catalog_publication_wire_invalid", "catalog_publications_canonical_state_check", "catalog_sku_revisions_full_facts_check", "channel_identity_not_assessed", "commerce_product_slug_unsupported", "commercial_activation_not_assessed", "content_missing", "dimension_not_declared", "dimension_not_installed", "current_primary_mismatch", "document_reference_missing", "duplicate_dimension", "duplicate_option_combination", "duplicate_sku_code", "duplicate_sku_id", "duplicate_trade_identifier", "foreign_product_reference", "gross_mass_invalid", "gross_mass_missing", "intent_sku_absent", "logistics_reference_missing", "media_readiness_mismatch", "media_readiness_unknown", "media_reference_missing", "net_content_invalid", "net_content_missing", "net_content_option_mismatch", "option_quantity_invalid", "option_type_invalid", "option_value_invalid", "price_reference_missing", "price_validation_unavailable", "primary_sku_missing", "primary_sku_not_in_product", "publication_authority_unavailable", "publication_evidence_unavailable", "publication_head_unavailable", "publication_preparation_unavailable", "publisher_not_authorized", "retained_read_not_authorized", "retained_revision_unavailable", "retained_source_mismatch", "sku_code_missing", "sku_missing", "slug_missing", "trade_identifier_invalid", "trade_identifier_quantity_invalid", "trade_identifier_scheme_unsupported", "type_not_installed", "unit_trade_identifier_missing"];
type AdmissionRefusal = CatalogPublicationFailure & {
// dist/catalog/publicationEvidence.d.ts
export interface CatalogPublicationEvidence {
// dist/catalog/publicationIntent.d.ts
export declare const lifecycleEvidenceSchema: z.ZodObject<{
export type PublicationIntent = Omit<CatalogDraftPayloadV3, "schemaVersion" | "publication"> & {
export type PublicationDraftRecord = Omit<CatalogDraftPublicationStoredRecord, "payload"> & {
export declare function publicationIntent(input: unknown, onInvalid?: (path: string, unsupportedKey: boolean, fix?: string) => never, stored?: boolean): PublicationIntent | null;
// dist/catalog/sql.d.ts
export declare const CATALOG_MIGRATIONS: readonly [

packages/platform/api/channels-testing.api.md

Added package subpath ./channels/testing.

Added declarations: 11; see packages/platform/api/channels-testing.api.md.

packages/platform/api/commerce-contracts.api.md

Added declarations: 8; see packages/platform/api/commerce-contracts.api.md.

packages/platform/api/commerce-destinations.api.md

Added declarations: 39; see packages/platform/api/commerce-destinations.api.md.

packages/platform/api/commerce-server.api.md

Added declarations: 238; see packages/platform/api/commerce-server.api.md.

Changed declarations:

// API report diff: not compiled.
// dist/fulfillment/fulfillmentObservationEffects.d.ts
interface FulfillmentObservationInput<LocalStatus, TrackingStatus> {
export declare function applyFulfillmentObservationEffects<LocalStatus, TrackingStatus>(input: FulfillmentObservationInput<LocalStatus, TrackingStatus>, policy: FulfillmentObservationStatusPolicy<LocalStatus, TrackingStatus>): Promise<void>;
// dist/fulfillment/migrations.d.ts
export declare const FULFILLMENT_MIGRATIONS: readonly [{
// dist/fulfillment/providerCommandLedger.d.ts
export declare function createFulfillmentCommandLedger(store: LedgerStore): LedgerStore;
// dist/fulfillment/verifiedIngress.d.ts
export type FulfillmentIngressResult = {
export declare function verifyAndNormalizeFulfillmentObservation(input: {

packages/platform/api/communications-testing.api.md

Added package subpath ./communications/testing.

Added declarations: 25; see packages/platform/api/communications-testing.api.md.

packages/platform/api/communications.api.md

Added declarations: 1; see packages/platform/api/communications.api.md.

Changed declarations:

// API report diff: not compiled.
// dist/communications/newsletterIntegrationContracts.d.ts
export declare const newsletterSyncEventTypeSchema: z.ZodEnum<{
export declare const newsletterWebhookEventTypeSchema: z.ZodEnum<{
export declare const canonicalNewsletterWebhookEventSchema: z.ZodObject<{
export declare function createNewsletterIntegrationSchemas<Purpose extends string>(registry: CommunicationPurposeRegistry<Purpose>): {

packages/platform/api/composition.api.md

Changed declarations:

// API report diff: not compiled.
export interface ServeNodeOptions {

packages/platform/api/identity-contracts.api.md

Changed declarations:

// API report diff: not compiled.
declare const refusalCodes: readonly ["PRIVACY_SUBJECT_NOT_FOUND", "PRIVACY_CONTRIBUTOR_DUPLICATE", "PRIVACY_CONTRIBUTOR_MISSING", "PRIVACY_ASSESSMENT_UNAVAILABLE", "PRIVACY_OWNERSHIP_UNDECLARED", "PRIVACY_ACTIVE_SUBSCRIPTION", "PRIVACY_RESUMABLE_SUBSCRIPTION", "PRIVACY_PROTECTED_OPERATOR", "PRIVACY_IDEMPOTENCY_CONFLICT", "PRIVACY_SUBJECT_ERASED", "PRIVACY_STORE_PRIVILEGES_UNSAFE", "PRIVACY_RECEIPT_COVERAGE_INCOMPLETE", "PRIVACY_RECONCILIATION_APPROVAL_UNVERIFIED", "MANAGED_PRIVACY_ERASURE_UNAVAILABLE"];

packages/platform/api/identity.api.md

Added declarations: 25; see packages/platform/api/identity.api.md.

PrivacyUseCaseDependencies remains exported as a type alias.

Changed declarations:

// API report diff: not compiled.
// dist/identity/postgresPrivacy.d.ts
export declare function createPostgresPrivacyStore(): NativePrivacyStore<PgQueryExecutor>;
// dist/identity/privacyHandlers.d.ts
export interface PrivacyHandlerDependencies extends IdentityResponseOptions {
// dist/identity/privacyPorts.d.ts
export declare class PrivacyRefusal extends Error {
// dist/identity/privacyUseCases.d.ts
export declare function createPrivacyOperations<C>(deps: PrivacyUseCaseDependencies<C> & {
    store: NativePrivacyStore<C>;
}): NativePrivacyOperations;

packages/platform/api/kernel.api.md

Changed declarations:

// API report diff: not compiled.
export declare const DEFAULT_PLATFORM_BUNDLE: PlatformBundleId;

packages/platform/api/lifecycle.api.md

Added declarations: 11; see packages/platform/api/lifecycle.api.md.

packages/platform/api/marketing.api.md

Changed declarations:

// API report diff: not compiled.
export declare const acquisitionNewsletterConsentEventSchema: z.ZodObject<{

packages/platform/api/migrations.api.md

Added declarations: 16; see packages/platform/api/migrations.api.md.

packages/platform/api/observability-contracts.api.md

Added package subpath ./observability/contracts.

Added declarations: 7; see packages/platform/api/observability-contracts.api.md.

packages/platform/api/observability-testing.api.md

Added package subpath ./observability/testing.

Added declarations: 10; see packages/platform/api/observability-testing.api.md.

packages/platform/api/observability.api.md

Added package subpath ./observability.

Added declarations: 10; see packages/platform/api/observability.api.md.

packages/platform/api/operations-contracts.api.md

Changed declarations:

// API report diff: not compiled.
export interface SettingRefusal {

packages/platform/api/operations-server.api.md

Added declarations: 4; see packages/platform/api/operations-server.api.md.

Changed declarations:

// API report diff: not compiled.
// dist/operations/server/settingsCommand.d.ts
type SettingsHost = {
// dist/operations/server/settingsRead.d.ts
type ListResult = {
type PreviewRefusal = {

packages/platform/api/payments-contracts.api.md

Added declarations: 6; see packages/platform/api/payments-contracts.api.md.

Changed declarations:

// API report diff: not compiled.
// dist/payments/contracts/evidence.d.ts
export type PaymentReadbackEnvelope = {
// dist/payments/contracts/truth.d.ts
export type PostgresPaymentTruthOptions = {

packages/platform/api/payments-stripe.api.md

Changed declarations:

// API report diff: not compiled.
// dist/payments/stripe/index.d.ts
export { createStripeSandboxPaymentExecutionAdapter } from "./stripeSandboxPaymentExecutionAdapter.js";
export { createStripePaymentReconciliationProvider } from "./stripePaymentReconciliationProvider.js";
export { mapStripeIntent } from "./intentMapper.js";
export { mapSetupIntent } from "./intentMapper.js";
export { normalizeStripeFailureEvidence } from "./stripeFailureEvidence.js";
// dist/payments/stripe/stripePaymentReconciliationProvider.d.ts
export interface StripePaymentIntentReader {

packages/platform/api/payments-tpay.api.md

Changed declarations:

// API report diff: not compiled.
export { createTpayPaymentExecutionAdapter } from "./tpayPaymentExecutionAdapter.js";
export { createTpayPaymentReconciliationProvider } from "./tpayPaymentReconciliationProvider.js";
export { createTpayHttpClient } from "./tpayHttpClient.js";
export { normalizeTpayFailureEvidence } from "./tpayFailureEvidence.js";
export { aliasValue } from "./tpayCreateTransactionInput.js";
export { ProviderAttemptPreDispatchError } from "./preparedProviderAttempt.js";

packages/platform/api/payments.api.md

Added declarations: 25; see packages/platform/api/payments.api.md.

packages/platform/api/portability.api.md

Changed declarations:

// API report diff: not compiled.
declare const TABLES: readonly ["clients", "subscriptions", "subscription_events", "subscription_pause_windows", "subscription_renewal_terms", "subscription_renewal_term_lines", "subscription_renewal_operations", "subscription_cycles", "commerce_orders", "commerce_order_items", "commerce_checkout_attempt_ledger", "commerce_settlement_intents", "commerce_settlement_transitions", "payment_truth_events", "payment_truth_reconciliation_evidence", "subscription_renewal_outcomes", "outbox_events", "invoicing_duties", "invoicing_fact_revisions", "invoicing_effect_receipts", "invoicing_capture_faults"];
export type PostgresTransferFailure = "invalid_input" | "unsupported_table" | "schema_conflict" | "insert_trigger_requires_owner" | "target_conflict" | "limit_exceeded" | "database_unavailable" | "subscription_profile_receipts_unsupported";

packages/platform/api/pricing-browser.api.md

Added declarations: 2; see packages/platform/api/pricing-browser.api.md.

Changed declarations:

// API report diff: not compiled.
// dist/pricing/subscriptionPricePolicy.d.ts
export declare function deriveSubscriptionUnitPrice(baseUnitAmountMinor: number, semantics: SubscriptionPricePolicySemantics | SubscriptionPricePolicyCanonicalInput | SubscriptionPricePolicyRevision): number;

packages/platform/api/pricing-contracts.api.md

Added declarations: 8; see packages/platform/api/pricing-contracts.api.md.

packages/platform/api/pricing.api.md

Added declarations: 58; see packages/platform/api/pricing.api.md.

Changed declarations:

// API report diff: not compiled.
// dist/pricing/commerceQuoteCatalogReadPort.d.ts
export interface CommerceQuoteCatalogReadPort<Item extends CommerceQuoteCatalogItem = CommerceQuoteCatalogItem> {

packages/platform/api/promotions.api.md

Added declarations: 25; see packages/platform/api/promotions.api.md.

packages/platform/api/scheduler.api.md

Added declarations: 2; see packages/platform/api/scheduler.api.md.

Changed declarations:

// API report diff: not compiled.
// dist/scheduler/nodeScheduler.d.ts
export interface CreateNodeSchedulerOptions {

packages/platform/api/shipping-contracts.api.md

Added declarations: 11; see packages/platform/api/shipping-contracts.api.md.

packages/platform/api/shipping-testing.api.md

Added package subpath ./shipping/testing.

Added declarations: 19; see packages/platform/api/shipping-testing.api.md.

packages/platform/api/shipping.api.md

Added declarations: 26; see packages/platform/api/shipping.api.md.

Changed declarations:

// API report diff: not compiled.
// dist/shipping/customerPreferenceSchemas.d.ts
export interface CustomerPreferencePolicy {
export declare function createCustomerPreferenceSchemas(policy: CustomerPreferencePolicy): {
// dist/shipping/postgresAddressBook.d.ts
export declare function createPostgresCustomerSavedAddressPort(executor: SavedAddressQueryExecutor, scope: CustomerSavedAddressScope, options: CustomerSavedAddressOptions): CustomerSavedAddressPort;

packages/platform/api/storefront-testing.api.md

Added package subpath ./storefront/testing.

Added declarations: 34; see packages/platform/api/storefront-testing.api.md.

packages/platform/api/storefront.api.md

Added package subpath ./storefront.

Added declarations: 53; see packages/platform/api/storefront.api.md.

packages/platform/api/subscriptions-contracts.api.md

Added declarations: 11; see packages/platform/api/subscriptions-contracts.api.md.

Changed declarations:

// API report diff: not compiled.
// dist/subscriptions/contracts/renewal.d.ts
export interface RenewalReadback extends RenewalSchedule {

packages/platform/api/subscriptions.api.md

Added declarations: 60; see packages/platform/api/subscriptions.api.md.

Changed declarations:

// API report diff: not compiled.
// dist/subscriptions/automaticRenewalExecution.d.ts
export declare function runRenewalBatchRows(due: RenewalDue[], run: (row: RenewalDue) => Promise<AutomaticRenewalRunResult>, policy: Pick<AutomaticRenewalPolicy, "identityKey">, options?: RunRenewalBatchOptions): Promise<AutomaticRenewalRunResult[]>;
// dist/subscriptions/nativeSubscriptionBinding.d.ts
export declare function createNativeSubscriptionBinding(input: {
// dist/subscriptions/packageEditContracts.d.ts
export interface PackageEditorOptions extends PackageEditQuotePorts {
// dist/subscriptions/postgresProviderRenewalBinding.d.ts
export interface ProviderRenewalPaymentPorts {
// dist/subscriptions/renewalCycleMechanism.d.ts
export interface RenewalCyclePolicy<D extends HostedRenewalDue, CI, IR extends RenewalIntentResult, P extends string, I extends PaymentExecutionBaseInput, M extends string | null | undefined, F extends string> {
// dist/subscriptions/sizedEditPorts.d.ts
export interface SizedEditorOptions extends SizedHostPorts {

packages/platform/api/tax-contracts.api.md

Added package subpath ./tax/contracts.

packages/platform/api/tax-stripe.api.md

Added package subpath ./tax/stripe.

Added declarations: 33; see packages/platform/api/tax-stripe.api.md.

packages/platform/api/tax.api.md

Added package subpath ./tax.