AtlasCommerce · Beta documentation
Connect, synchronize, monitor, protect, and troubleshoot.
This guide documents the first hardened end-to-end workflow: WooCommerce store connection, canonical catalogue and inventory synchronization, low-stock evidence in AtlasSignals, campaign eligibility and buyability in AtlasCampaigns, and tenant-scoped audit history.
1. Store setup guide
AtlasCommerce requires an eligible organization and workspace. Connecting a store is a privileged mutation: the actor must have the AtlasCommerce entitlement and be an organization/workspace owner or admin.
WooCommerce prerequisites
- Use an HTTPS WooCommerce store with the REST API available.
- Create a WooCommerce REST API key for a trusted service account.
- Select Read permissions. The MVP does not need write access to products, orders, customers, or inventory.
- Copy the Consumer Key and Consumer Secret once. Treat both as secrets.
- In AtlasCommerce, select the organization/workspace, enter a clear store name, HTTPS store URL, three-letter currency, Consumer Key, and Consumer Secret.
- Choose Register and sync WooCommerce. AtlasCommerce first requests a bounded product page to validate the endpoint and credentials. It saves the credentials only after validation, encrypted and service-only.
Required AtlasLoopOS permissions
| Permission | Purpose |
|---|---|
| atlasinventory.access | Enter the AtlasCommerce product context. |
| atlasinventory.stores.manage | Connect stores and change the WooCommerce inventory threshold. |
| atlasinventory.catalog.sync | Run an explicit manual catalogue synchronization. |
| atlasinventory.items.view | View non-secret stores, products, availability, and workflow projections. |
| atlasinventory.logs.view | View synchronization, inventory-event, and safe workflow audit evidence. |
Other providers
Shopify and Magento / Adobe Commerce are executable catalogue providers in the current Beta. Shopify uses application OAuth; Magento uses four merchant-created OAuth 1.0a integration credentials. The stock-to-signal-to-campaign workflow documented below is hardened first for WooCommerce and does not claim provider parity yet.
2. Product catalogue sync guide
- Successful WooCommerce registration starts an immediate full synchronization.
- AtlasCommerce reads bounded product pages and detailed variations, then normalizes stable product identity, SKU, name, descriptions, type, status, price/currency, stock state/quantity, categories, images, variants, and provider timestamps.
- Products are upserted idempotently by connected store plus external product ID. Repeating a sync updates evidence instead of creating duplicate canonical products.
- Owners/admins can choose Sync now for an explicit full reconciliation. A shared six-hour workflow performs scheduled reconciliation when the deployment scheduler is enabled.
- Review the synchronization result and history. Successful, partial, and failed runs retain counts and safe errors separately from credentials.
Intentional states
- Loading: the workflow announces that stores, catalogue, or history are being loaded.
- Empty: no store, no product, or no history is represented explicitly rather than as a blank screen.
- Error: credential, endpoint, provider, or API failures are displayed as safe operator-readable messages.
- Retry: correct the configuration, use the relevant retry/refresh control, or run the sync again. Failed evidence is retained; a retry creates new run evidence.
3. Inventory monitoring and low-stock guide
The hardened WooCommerce workflow uses a deterministic product-level threshold. The default is 5 units. A workspace owner/admin may set any integer from 0 to 1,000,000.
- A known quantity at or below the threshold opens one tenant-scoped
low_stockinventory event per canonical product. - A later material observation updates that open event rather than creating duplicates.
- Recovery above the threshold resolves the same event. Explicit provider backorders remain buyable.
- Draft, archived, out-of-stock, missing-from-completed-full-pull, and zero-quantity products remain unavailable under the provider-neutral eligibility policy.
- Low/unavailable stock creates or refreshes one canonical AtlasSignals record with source
atlascommerce. Recovery resolves that same signal.
Change the threshold
- Select the WooCommerce store in the MVP workflow assurance panel.
- Enter the threshold and choose Save threshold and recompute.
- The service validates owner/admin access, updates the store policy, appends audit evidence, and recomputes inventory events, AtlasSignals, and campaign state in the same database transaction.
- Review open events and signals. A failed update shows an explicit error and can be retried without changing prior evidence.
4. Campaign eligibility update guide
Every normalized commerce product is projected to the existing AtlasCampaigns product content source. The provider-neutral eligibility engine records one of:
eligibleineligible_low_stockineligible_unavailable
The first complete WooCommerce path additionally records an explicit buyable flag, operator-readable reason, update time, and inventory-event lineage on the product source and active linked drafts.
- New product-linked ideas, drafts, schedules, queue execution, and X publishing fail closed while the source is ineligible.
- Draft/approved/scheduled records receive the current buyability projection.
- Human approval, copy, already-published/failed history, and external provider IDs are never rewritten.
- Recovery restores eligibility for future actions but does not silently requeue or republish failed work.
5. Audit and tenant isolation
Store, credential, connectivity, synchronization, inventory-event, threshold, eligibility, and buyability transitions append safe rows to the existing platform audit log. The authenticated workflow endpoint first verifies workspace membership, scopes the database query to the selected organization, then returns only events whose details match the selected workspace/store.
Audit details contain IDs, state transitions, quantities, thresholds, safe reasons, run/event lineage, and timestamps. They do not contain Consumer Secrets, OAuth tokens, ciphertext, raw webhook bodies, or customer/order payloads.
6. Troubleshooting and limitations
Connection validation fails
Confirm HTTPS, the exact store origin, WooCommerce REST API availability, and a read-capable key/secret pair. Regenerate a revoked key, correct the form, and retry. Secrets are not stored after failed validation.
The store connects but the catalogue is empty
Confirm the service account can read products and the store contains products visible through wc/v3. Run Sync now, inspect the safe run error/counts, then retry after correcting the provider.
A sync is partial or failed
Keep the failed run as evidence. Resolve rate limits, timeouts, provider errors, or invalid payloads, then run a new sync. Do not edit historical run rows.
No low-stock event appears
Verify the selected store is WooCommerce, the product has a known quantity, backorders are not permitted, and the quantity is at or below the current threshold. Refresh the workflow state after synchronization.
A campaign remains blocked after recovery
Run a fresh catalogue sync and inspect the product source, signal, event, and audit rows. Recovery resolves future eligibility but deliberately does not recreate or requeue previously failed execution.
Threshold update is denied
Only an entitled organization/workspace owner or admin can update the policy. Read-only members can inspect evidence but cannot mutate the store.
Known Beta limitations
- Live merchant-store and PostgreSQL migration proof, large-catalogue load, race handling, outage recovery, browser E2E, and accessibility remain release gates.
- Location safety stock, reservations, bundles, advanced salability, forecasts, reorder recommendations, and autonomous optimization are deferred.
- Orders, customers, fulfillment, checkout, remote write-back, advanced feeds, and complete markets/channels/location mastering are deferred.
- Shopify/Magento catalogue connectors exist, but exact low-stock event and campaign-buyability parity remains deferred.