Scenario matrix · Evolution proposal and compatibility differences. The proposal does not replace the current contract below.
Module Protocol 1
Status
Store Deputy Module Protocol 1 · the module/API contract · 6 October 2026, trimmed on 11 October 2026; Connect changed on 13 October 2026. This is how the Store Deputy API talks to the module installed in a shop: one signed JSON request to one URL, with the operation named in the body. This page fixes the transport, the envelope, signing, Connect (how a shop gets its connection), errors, Pause, the neutral data model and the setup operations (connection.revoke, store.describe, storefront.suspend). Every other operation is on Operation shape and in contracts/module/operations.json, the resource × verb contract accepted on 11 October 2026 (decision 004). The former catalog.search, catalog.get, catalog.list and price.apply were removed from this page and from protocol.yaml the same day, without aliases: nothing was deployed.
The protocol does not depend on the shop platform. The API knows nothing about OpenCart, WooCommerce or any other platform. Each platform gets an adapter module that translates its own data into one neutral model: string ids, UTC times, money as a decimal string with a currency, and anything only one platform has under extensions.<platform>. OpenCart 3 is the first adapter, OpenCart 4 the second, WooCommerce the third (decided), PrestaShop and Magento later. See data model and adapter architecture. The version stays 1.0: nothing is deployed.
What runs today, honestly. The transport, signing and pause run between the OpenCart 3 module and the API on the local test shops, and Connect ran end to end on 13 October 2026 on the OpenCart 3.0.5.1 shop (port 4144) with the local API (bun run connect:e2e). Since 12 October 2026 the API's driver sends the operations of operations.json and reads the neutral model, and since 20 October 2026 the OpenCart 3 module answers them for products, categories, manufacturers, customers and orders on both local test shops, with the capabilities declared in store.describe (conformance). The API's shop tests have not been run against it since. The MCP tools' rewrite is iteration 6 in PLAN.md. Nothing here has run against a real shop.
The machine contract is two files in contracts/module/: protocol.yaml (this page: transport, envelopes, signing, Connect, errors, the neutral model, the setup operations) and operations.json (every other operation, the capabilities, the module rules), which references the first. bun run contracts:check validates both and the standalone files generated from them. Where a page and a file disagree, fix both in the same commit.
Field names are camelCase everywhere on the wire: envelope, params, results, error details and the manifest (storefrontIds, updatedAt, maxIdsPerRead). Operation names (product.search), error codes (signature_invalid), capability names (product.read), enum values (such as the identifier type gtin) and HTTP header names keep their own form.
This replaces the REST 1.0 text that stood on this page from 1 October and the REST v2 OpenAPI draft. Neither was implemented. The service boundaries of decision 002 do not change. See history.
Who calls the module
Agentfy agent ──MCP──▶ Store Deputy MCP ──▶ Store Deputy API ──Module Protocol 1──▶ module in the shop- The agent never calls the module. It calls a tool on the Store Deputy MCP. The API decides whether the call is allowed, builds the module request and sends it. A language model never composes a module URL or a module request.
- The module never learns who is chatting. No chat, conversation, thread, session or user identifier is sent with any operation. For its own page only, the module learns the team name and the email of the person who approved the connection: Connect's exchange with the API returns them. Who is asking, and whether they may, is decided in the API from the verified call. The module checks that the request is signed by the API it is connected to, and applies its own local switches (Pause, disconnect).
- Approval and write safety live in the API. Owner approval, roles, plans, idempotency, the operation ledger, retries and reconciliation are all Store Deputy's. The module trusts a correctly signed call from its API and only does a compare-and-set per item. See writes.
- The module has no language model, no agent harness and no MCP server.
Transport
| Method | POST. The module does not refuse other methods, but every request still needs a valid signature |
| URL | The address the module names at Connect. On OpenCart 3: index.php?route=extension/storedeputy/backend at the shop's own address |
| Body | Content-Type: application/json, UTF-8. The API refuses to send or read more than 1 MB |
| HTTPS | Required, as the server or a TLS-terminating proxy (X-Forwarded-Proto) reports it. A development build of the module also accepts plain HTTP; a release build answers insecure_transport |
| Query string | The address may carry its own, such as OpenCart's ?route=. Extra parameters are ignored: the operation comes only from the signed body (conformance scenario envelope.query_ignored) |
| HTTP status | Every answer from the protocol handler is HTTP 200, success or error. Any other status, or a 200 without a valid response signature, means something else answered — a firewall, a CDN challenge, a maintenance page, a PHP fatal error — and the API reports the shop as unreachable, never as a shop error |
| Redirects | The API does not follow them |
| Timeouts | The API gives up after 10 seconds in total, or 5 seconds of silence |
There is one URL and the operation travels in the body, so operations need no routing of their own: no path segment per operation, no PATH_INFO.
Envelope
Request:
{
"protocol": "1.0",
"id": "0f8e2d6c-4b1a-4c3e-9d7f-1a2b3c4d5e6f",
"op": "product.get",
"params": { "ids": ["42", "999"] }
}protocol— the API sends"1.0". The module accepts any1.xand answersunsupported_protocolotherwise, withdetails.supported.id— chosen by the API for each request (a UUID today) and echoed back.op— the operation name. An unknown name isunknown_op.params— an object; its shape depends on the operation.
Success:
{ "protocol": "1.0", "id": "0f8e2d6c-…", "ok": true, "result": { "items": [], "missing": ["999"] } }Failure:
{ "protocol": "1.0", "id": "0f8e2d6c-…", "ok": false,
"error": { "code": "paused", "message": "The store owner has paused Store Deputy in the admin panel.", "retryable": false, "details": {} } }id is null when the module could not read the request, or when OpenCart's error action produced the answer (internal). Clients branch on error.code, never on message. A message never contains SQL, file paths or secrets.
Versioning: a minor version only adds operations, optional fields and capabilities; both sides ignore fields they do not know. A breaking change is protocol 2.
Signing
HMAC in both directions
Each connection has a connection id and a secret, known to the API and the module. Every request and every response carries four headers:
| Header | Value |
|---|---|
X-SD-Connection | The connection id |
X-SD-Timestamp | Unix seconds |
X-SD-Nonce | Random, at least 16 characters (the API sends 18 random bytes as base64url) |
X-SD-Signature | v1= + lowercase hex HMAC-SHA256 of the canonical string, keyed with the secret's text as UTF-8 bytes |
Canonical string, the same for requests and responses:
v1\n{timestamp}\n{nonce}\n{sha256_hex(exact body bytes)}The module checks the connection id and the signature in constant time, then the clock: more than 300 seconds apart is timestamp_skew. The signature is checked before the clock, so only an authentic request learns its timestamp was wrong. The module signs its answer over the exact body it sends, with its own timestamp and nonce; it discards anything PHP printed earlier so the body is exactly what was signed. The API accepts the answer only if X-SD-Connection matches and the signature verifies.
The Authorization header is deliberately unused: common CGI and FastCGI setups do not pass it to PHP.
Test vectors: contracts/module/signature-vectors.json. On 6 October 2026 they were verified against the module's own PHP classes on PHP 7.3 and 8.1; the API's formula was compared by reading the code.
Connect: how a shop gets its connection
Since 13 October 2026: Authorization Code + PKCE (RFC 7636). The module never receives a pairing request and carries no key: it fetches its connection id and secret itself, from its own server, over HTTPS. Only Store Deputy can connect a shop, because only the shop server that started Connect holds the code verifier that redeems the code.
| Step | Who | What |
|---|---|---|
| 1 | Module, admin panel | Connect, for a user allowed to change the module. A random state and code_verifier (32 bytes each, base64url) stay in the shop for ten minutes, the state only as its SHA-256 |
| 2 | Browser | To {app_url}/connect with state, code_challenge = BASE64URL(SHA-256(code_verifier)), code_challenge_method=S256, redirect_uri (the module's page), endpoint (this protocol address, same scheme, host and port) and store (the shop's name) |
| 3 | Store Deputy site | The owner signs in, picks a team and approves. A one-time code (two minutes, only its hash stored) is bound to the challenge, the return address and the shop; the browser goes back to redirect_uri with code and state. Cancelling returns error=access_denied, a failure there server_error, a malformed link invalid_request |
| 4 | Module, server | Uses up the state (the same admin user, unused, unexpired) and POSTs {api_url}/connections/exchange { code, codeVerifier, redirectUri, endpoint }, TLS verified, no redirects. The code dies at its first exchange, also when a check fails. Answer: { connectionId, secret, teamName, userEmail, confirmBy } |
| 5 | Module, server | Saves the connection as pending and POSTs {api_url}/connections/confirm { connectionId }. Store Deputy calls store.describe here, HMAC-signed with the new secret: only an answer signed with it connects the store: the same team's record of that shop keeps its store and takes the new connection (the earlier connection id and secret stop working at once), otherwise a store is created; another team's store at the same address is disconnected. The answer is checked against the manifest schema first (STOR-178): one that is signed but not a manifest (a required field missing or of the wrong type, a limit below its minimum) connects nothing, and the confirm is answered 502 STORE_UNREACHABLE with details.reason format. The module marks the connection active; a failed confirmation may be retried until confirmBy (ten minutes); a refusal that cannot change (a 4xx other than in progress or rate limiting, for example CONNECTION_UNKNOWN) ends the attempt, and the module forgets the pending connection and offers Connect again |
Build values. A module package carries three values, written when it is built and read only from there, never merged with the module's settings, so nothing in the shop's admin or database can change where the secret comes from: app_url (the Store Deputy site), api_url (the Store Deputy API) and development (plain HTTP allowed, local builds only). OpenCart 3: system/config/storedeputy_trust.php. Store Deputy's own download and module/opencart3x/scripts/package.mjs write it.
The exchange and confirm requests are Store Deputy API routes, not module operations; their shapes are in the API's OpenAPI document and contracts/module/protocol.yaml (connect). This replaced connection.pair, its one-time pairing code and the ECDSA pairing signature (X-SD-Key-Id, X-SD-Pairing-Signature), which the module no longer has.
Connection status: the module asks the API
Proposed 2 November 2026 (STOR-96). Implemented in the API and, since 9 November 2026, called by the OpenCart 3 and 4 modules (STOR-95): they check the answer's signature with the connection secret, show "being created" with no Connect again, "could not be created" or "no agent" with a link to the site, and "connect again" for needs_reconnect or a refusal; while the agent is being created the module's page asks every 7 seconds, only while it is visible. Proven only on the local test shops, against the local API.
After Connect the store is connected, but its Admin Agent is still being created. The module asks, from its server, POST {api_url}/connections/status with the body {}, signed with the same scheme the other way round (X-SD-Connection, X-SD-Timestamp, X-SD-Nonce, X-SD-Signature, the connection secret, 300 seconds, a new nonce each time; the API refuses a repeated nonce). It asks every 5 to 10 seconds while the agent is provisioning, at most 30 times a minute per connection. Like exchange and confirm, the path carries no API version.
The answer is { "success": true, "data": { "store", "agent", "chatAvailable", "agentReason", "nextAttemptAt" } }, signed with the same four headers over the exact body, so the module can tell it from anyone else's:
| Field | Values |
|---|---|
store | active, paused, needs_reconnect (then offer Connect) |
agent | none (not created, nothing scheduled), provisioning, ready, failed |
chatAvailable | true when the chat can be opened now |
agentReason | null, or while the agent is not ready who must act: retrying (Store Deputy tries again by itself), action_needed (an owner or admin can fix it on the site), support (only Store Deputy's operators can; reconnecting the module does not help) |
nextAttemptAt | ISO-8601 UTC time of the next automatic attempt, or null |
storefrontEnabled | true when the owner wants the Shopping Assistant shown. Store Deputy's record is the source of truth: the module's "Agent Status" switch follows it (proposed 19 November 2026) |
storefrontAgent | none, provisioning, ready, failed: the Shopping Assistant (the storefront agent) as Store Deputy has it |
storefrontReason | null, or, only while storefrontEnabled is true and the agent is not ready: retrying, action_needed, support (as for agentReason) or plan (the team's plan does not include the Shopping Assistant) |
There is no text for people and no team, user or agent id; the module words its own messages. Every refusal is one answer, HTTP 401 MODULE_REQUEST_REFUSED, whether the signature is wrong, the timestamp stale, the nonce repeated or the connection unknown or disconnected, so it cannot be used to find out whether a connection exists. The state is read from Store Deputy's own records, never from Agentfy or the shop. Machine form: contracts/module/protocol.yaml (connection_status).
Shopping Assistant switch: the module tells the API
Proposed 19 November 2026. A contract only: no module calls it yet. Implemented in the API and checked only against the local fakes.
Whether the Shopping Assistant is shown on the storefront is Store Deputy's record, and both sides change it. On the site an owner or admin switches it on the store's Shopping Assistant tab; the module learns it from storefrontEnabled in the next status answer and moves its own switch. In the module the owner presses the "Agent Status" switch and the module sends POST {api_url}/connections/storefront with the body { "enabled": true } or { "enabled": false }, signed exactly like the status request (no API version, a rate limit of its own: at most 10 requests a minute per connection).
Switching on creates the storefront agent when there is none, the same way the site's "Create Shopping Assistant" does, with the shop's module as the actor; creation is asynchronous, so the answer says provisioning and the module keeps asking for the status. Where the team's plan does not include the Shopping Assistant nothing is created and the answer says storefrontReason: "plan". Switching off keeps the agent: Store Deputy then refuses new shopper chat sessions and ends an open one at its next call, both with AGENT_PAUSED.
The answer is { "success": true, "data": … } with the same data as the status answer, read after the change, signed the same way. Every refusal is the same single HTTP 401 MODULE_REQUEST_REFUSED; a body that is not { "enabled": boolean } is HTTP 400 after the signature check. There is no text for people. Machine form: contracts/module/protocol.yaml (connection_storefront).
Disconnect: the module tells the API
Proposed 3 November 2026. Implemented in the API and in both modules (OpenCart 3 and 4), checked only on the local test shops.
When the owner presses Disconnect in the module's page, the module first sends POST {api_url}/connections/disconnect with the body {}, signed like the status request with the secret it is about to forget, and waits at most 10 seconds. Store Deputy disconnects the store at once, as Disconnect on the site does, except that it does not call connection.revoke back: the module forgets the secret itself. The store stops counting against the team's plan, so the owner can connect another shop right away.
The answer is { "success": true, "data": { "disconnected": true } }, signed the same way. Refusals are the same single HTTP 401 MODULE_REQUEST_REFUSED, also for a connection that is already disconnected; at most 10 requests a minute per connection. The module forgets the connection whatever the answer, so an unreachable Store Deputy never keeps a shop connected. Machine form: contracts/module/protocol.yaml (connection_disconnect).
Not done yet
- Replays are refused since 14 October 2026. The OpenCart 3 module keeps each signed request's nonce for ten minutes (longer than the clock window either way) and answers a repeat with
replayed,retryable: true. The API does not yet retry with a fresh nonce. - A response is not bound to its request. The response signature covers the body, which echoes the request
id, but the API does not compare thatidor check the response timestamp. Target: the API rejects an answer whoseiddiffers or whose timestamp is outside the window. - HTTPS keeps both of these hard to exploit; they are still gaps.
Errors
Every error is HTTP 200 with ok: false. "Implemented" means the OpenCart 3 module produces the code today. contracts/errors.yaml gives, for each code, the error the agent should see (the target mapping). Today the API maps paused to store_paused, every other signed refusal to store_refused, an unsigned answer that claims not_paired or signature_invalid to store_disconnected on a read (since 23 November 2026; the claim is unsigned, so a write still reports outcome_uncertain), and any other unsigned answer to store_unreachable.
| Code | Implemented | When |
|---|---|---|
invalid_params | yes | Body is not an envelope, a JSON key appears twice in one object, the envelope carries a field other than protocol, id, op, params, or params fail validation; details names the key or fields |
unsupported_protocol | yes | Major version is not 1; details.supported |
unknown_op | yes | The module does not have this operation |
capability_unavailable | yes | The module has the operation, but it is not offered on this shop (OpenCart 3: every variant.* operation and include: ["variants"], a query filter or sort the module did not declare); details.capability names it |
limit_exceeded | yes | Too many ids or items, or a body over maxBodyBytes (answered before the body is read, id: null, details.maxBodyBytes); details gives the limit |
paused | yes | The owner paused Store Deputy in the shop admin |
customer_required | no | Accepted 10 November 2026 (proposed 27 October 2026): a storefront operation only a signed-in customer may call (x-customer: required) was called for a guest, or the shopper's session no longer holds the customer the pass names |
pass_invalid | no | Proposed 17 November 2026 (STOR-150): a storefront operation's shopperPass is missing, malformed, signed with another secret, of another audience or connection, or for another storefront. Before it, invalid_params without a field |
session_ended | no | Proposed 17 November 2026 (STOR-150): the pass is valid, but its cartRef row has ended (a login or logout in that session, or 7 days without a new pass) |
not_paired | yes | No connection stored, or it was revoked. Sent unsigned, since there is no secret |
signature_invalid | yes | Missing, malformed or wrong signature, or wrong connection id |
timestamp_skew | yes | More than 300 s from the module's clock |
replayed | yes | The nonce was already used by this connection in the last ten minutes; retryable: true |
insecure_transport | yes | Plain HTTP to a release build |
internal | yes | OpenCart routed a failure to the module's error action (for example, a missing controller). retryable: true, id: null. An uncaught exception — such as a database error, which OpenCart's driver throws — produces no signed answer at all, and the API sees the shop as unreachable |
retryable is false for every code except internal.
Pause and disconnect
- Pause is the owner's own switch in the module page. While paused, the module answers every operation with
pausedexceptstore.describeandconnection.revoke(disconnecting only ever reduces access). A new connection made by Connect replaces the old one and clears the pause. - Disconnect (in the module page, or
connection.revokefrom the API) deletes the connection id and secret. In the module page, the module first tells Store Deputy, which disconnects the store at once. Every later request gets an unsignednot_paired. When Store Deputy was not told (it could not be reached, or an older module), on any contact that gets it (the owner's check on the site, an agent's tool call, a change being applied) the API marks an active store as needing reconnection; such a store still counts against the plan until it is disconnected on the site. The claim is unsigned, so it is a hint for the owner, not proof: the call itself still fails as unreachable, and a paused store keeps its status.
Writes: who is responsible for what
The only kind of write is <resource>.apply on Operation shape: one conditional change per item, { id, expected, set }, over the resource's writable fields. The first the API will send is product.apply on price. The module is kept minimal on purpose: it does the change and reports what happened. Everything that makes a write safe over time is the API's.
| Store Deputy API | Module |
|---|---|
| Owner approval, the employee's role, the team's plan — checked immediately before sending | Verifies the signature of its API; trusts that call |
Idempotency and the operation ledger (the API already journals tool calls as McpOperation) | Keeps no journal and takes no idempotency key or context |
| Retries and reconciliation after a timeout or an unclear answer | Per item: compare-and-set, read back, report applied / conflict / not_found with before → after |
Splitting work into batches of at most limits.maxItemsPerWrite (50) | Refuses a larger batch with limit_exceeded |
| — | Honours its own Pause switch |
Every item is conditional. The price changes only if it still equals expected; otherwise the outcome is conflict with the current value, and nothing is written. A new price needs a new approval.
Batches are not atomic. Up to maxItemsPerWrite independent items per request, each with its own outcome. Whether one item is atomic depends on the platform's tables: a module declares each write capability with conditional: atomic or emulated by the rule in the contract; OpenCart 3 installations commonly keep MyISAM tables, which have no transactions.
Reconciliation after an unclear answer
The API's responsibility; the API side is a later task and does not exist yet.
After a timeout, a non-200 answer, an unsigned answer, or a batch whose result does not cover every item, the API never resends blindly. It re-reads the affected items with the resource's get (product.get, or variant.get for a variant item; primitives) and classifies each item:
| Current price | Classification | API does |
|---|---|---|
equals set | applied | Record it as done |
equals expected | not applied | Safe to send again: the condition still holds |
| anything else, or the product is missing | conflict | Show the owner; a new price needs a new approval |
"Equals set" does not prove our write did it — an administrator may have made the same change — but either way the price is what the owner approved. The compare-and-set makes a repeated item harmless: if the first attempt did apply, the second comes back conflict.
Data model
One model for every platform. An adapter translates its platform's data into it; the API reads only this. The JSON Schema is $defs in contracts/module/protocol.yaml.
Ids, times, money
- Ids are strings everywhere: products, variants, storefronts. OpenCart's integer
42travels as"42"; WooCommerce's default storefront may be"default". Ids are compared as exact strings ("042"is not"42"). - Times are UTC, ISO 8601, with
Z, to the second:2026-09-30T11:12:00Z. The module converts from the shop's own time. The manifest'sstore.timezone(an IANA name) is for display only. There are no date-only values and no local datetimes on the wire. - Money is a decimal string with exactly 4 places (
"19.9900") plus a currency, never a JSON number. A price object is{ "amount": "19.9900", "currency": "EUR", "includesTax": false };includesTaxequals the manifest'sstore.pricesIncludeTax. Price rules and writes use the same currency and tax mode as the product's price. - Empty codes are
null, never"".
Product
| Field | Notes |
|---|---|
id | String |
code | The platform's own product code (OpenCart's model); null when the platform has none |
sku, mpn | Trimmed strings or null |
gtin, gtins | Barcodes normalized as in GTIN: gtins lists every distinct one, primary first; gtin is the first or null |
name | In the shop's admin language, HTML entities decoded; null if the product has no name in that language |
status | enabled or disabled |
stock | { quantity, tracked }. quantity is an integer, or null when the platform keeps none; tracked is whether orders reduce it |
price | The base price object. null only when variantPricing is variants and the parent has no price of its own |
priceRules | Prices that replace the base price for some buyers or quantities; see price rules |
variantPricing | none, options or variants; see variants |
storefrontIds | Storefronts the product is offered on |
categoryIds | Every category the product is in; empty when none. Read-only; the API filters by it when it scans product.list (decision 007) |
manufacturerId | The manufacturer or brand, or null. Read-only (decision 006) |
createdAt, updatedAt | Created and last changed, UTC; always present, null on a platform that keeps no such time. A product with a null updatedAt is never returned by list with updatedSince |
rating, reviewCount | Optional, only from platforms that keep reviews: the average of approved reviews on a 0–5 scale as a decimal string ("4.33"), null without reviews; and their number |
minQuantity | Optional: the smallest quantity a customer may order, or null |
availableAt | Optional: from when the product can be bought, UTC, or null |
variants | Only when asked for (include: ["variants"]) and the module declares variant.read |
texts | Accepted 11 November 2026. Only when asked for (include: ["texts"]) and the manifest carries store.languages: an object keyed by language code, each a text set or null for a language without a row; see texts |
extensions | Platform-only data; see extensions |
GTIN: one barcode field
Platforms keep barcodes differently: OpenCart has four columns (ean, upc, jan, isbn), WooCommerce one field, others none. The neutral model has one normalized list. The module normalizes each raw value:
- Remove spaces and hyphens.
- An ISBN-10 (9 digits and a digit or
X) becomes its ISBN-13:978, the first 9 digits, and a recomputed check digit. - What remains is a GTIN only if it is 8, 12, 13 or 14 digits. Anything else is not a GTIN: it is left out of
gtins(the raw value stays inextensions). - The check digit is not validated: a shop may store a barcode with a wrong check digit, and matching must still find it.
- Two GTINs are the same when they are equal after left-padding both with zeros to 14 digits (UPC-A
036000291452= EAN-130036000291452). The wire carries the digits from step 2, not padded.
When several exist, gtins lists each distinct one once, in the platform's order of preference (OpenCart: ean, upc, jan, isbn), and gtin is the first. product.search by gtin normalizes the input the same way and matches a product when any of its gtins is the same; an input that does not normalize matches nothing.
Price rules
priceRules lists every rule that is in effect now or starts later; expired rules are left out. Read-only in Protocol 1.
| Field | Notes |
|---|---|
kind | sale — a reduced price for everyone; special — a reduced price for a segment or a period; tier — a price from a minimum quantity; other — anything the adapter cannot place |
price | Money string, in the product's currency and tax mode |
startsAt, endsAt | UTC or null (no limit). The rule stops applying at endsAt |
audience | all or segment (some customers only: a customer group, a role, a list). Which segment is platform data in extensions |
minQuantity | Required for tier |
active | In effect at the moment of reading |
When a rule applies, those buyers see it rather than the base price. The API tells the owner so before proposing a base-price change.
Variants
WooCommerce is the next platform after OpenCart 4, so variants are in the model now. variantPricing on the product says how its price varies:
variantPricing | Meaning | product.apply on price |
|---|---|---|
none | One price | Changes the base price |
options | Options add to or subtract from the base price (OpenCart option prices). There is no per-variant base price | Changes the base price only; option surcharges are untouched |
variants | Each variant has its own price (WooCommerce variable products, OpenCart 4 masters with variants) | Changes the parent's own price where it has one (OpenCart 4: the master, which is bought itself); rejected / variant_required where it has none (price is null: WooCommerce, Shopify). A variant's price is written with variant.apply |
variants[] comes only with the capability variant.read and include: ["variants"]. Each variant: id (unique in the shop), parentId, code, sku, gtin, gtins, mpn, attributes (by name, for example { "Colour": "Red", "Size": "L" }), price, priceRules, stock, status, createdAt, updatedAt (both always present and null on a platform that keeps no variant dates, such as PrestaShop combinations), extensions.
A variant is written through variant.apply ({ id, expected, set } with the variant's own id) over price, status and stock.quantity, each under its capability variant.write.<field>. A variant is read only as a variant, never as a product of product.list or product.query (rules). It is not required for the pilot. The OpenCart 4 module offers it since version 1.7.0 (STOR-118, 22 November 2026, proven only on the local test shops); the OpenCart 3 module does not declare variant.* at all.
Extensions
extensions is an object keyed by platform name — opencart, woocommerce, prestashop, magento (the list is platforms in the contract). It may appear on the manifest, a warning, a product, a variant and a price rule.
- The API never interprets it. It may store or show it, never branch on it. If the API needs a field, it is promoted into the neutral model in a minor version.
- Nothing platform-specific outside it.
contracts:checkfails on a platform field (model,ean,taxClass,customerGroupId,storeIds,dateModified, …) anywhere else, in schemas or examples, and on an extension key that is not a registered platform. - The OpenCart objects are fixed in
extension_schemas.opencartin the contract, so adapters and readers agree on them.
Operations
This page specifies the setup operations (three). A shop gets its connection by Connect, not by an operation. Every other operation — product.search, product.get, product.list, product.apply and the operations of the other resources — is <resource>.<verb> on Operation shape and in contracts/module/operations.json. Every operation is sent by the API; the module never calls the API. (The hint catalog.changed of decision 006 was removed on 15 October 2026.)
The module declares five limits in store.describe: maxIdsPerRead, maxItemsPerWrite, timeBudgetMs, maxBodyBytes and maxPageSize (limits). The MCP tools ask for at most 50 ids at a time.
Implemented (old shape) means the OpenCart 3 module answers the operation on the test shops, but with the fields this page replaced; the adapter must move to the neutral model (mapping), and the API reads the old shape until it does.
| Operation | Status | Sent by the API today | Used by |
|---|---|---|---|
connection.revoke | Implemented | yes | Disconnecting a shop |
storefront.suspend | Implemented (STOR-166; both OpenCart modules since 1.11.0, STOR-164; local test shops only) | yes, since 27 November 2026 (run only locally) | Hiding or showing the Shopping Assistant's widget |
store.describe | Implemented | yes | Shop details after connecting; MCP tool store_describe |
every <resource>.<verb> operation | Implemented on OpenCart 3 since 20 October 2026 for products, categories, manufacturers, customers, customer groups, orders, order statuses and addresses; variant.* answers capability_unavailable, coupon.* is not served — see Operation shape | yes, since 12 October 2026 (product.search, product.get, product.list) | the MCP tools, the change engine, the live catalog scan |
Capabilities a module may declare in store.describe are named in operations.json: <resource>.read, <resource>.list and <resource>.write.<field>, each with a version, and every write with conditional: atomic or emulated (capabilities).
connection.revoke
Implemented. Params: none ({}). Result: { "revoked": true }. Deletes the stored connection; works while paused. See pause and disconnect.
storefront.suspend
Proposed 27 November 2026 (STOR-166), agreed by Yevhen Kariakin and Artem Belikov; the API side runs only locally against fakes. Both OpenCart modules answer it since 1.11.0 (STOR-164, 27 November 2026), checked on the six local test shops only, never on a real shop. Store Deputy tells the module when the Shopping Assistant's widget must be hidden or shown again, instead of the module polling connection_status. Params: { "suspended": boolean, "reason": null | "payment_overdue" | "quota_reached" }, both fields always present; reason is null exactly when suspended is false, and payment_overdue is sent when both causes hold. Any other pair is invalid_params. Result: the same pair, the state the module now holds. Signed like every API call, and allowed while paused (allowed_while_paused).
- The API always sends the current state, so a repeat is safe and the last delivered call wins. It sends when the state changes (an invoice paid or overdue, the monthly quota of shopper conversations used up or lifted, a plan change) and from a background check every few minutes. A shop that is unreachable is retried with a growing delay.
- The module keeps the state apart from the owner's switch (
storefrontEnabled) and never copies it into the switch. When a connection is paired or replaced the module clears its suspension flag; the API sends the current state to every new connection, so a stale suspension is never kept across a reconnect. - A module without the operation answers
unknown_op; the API marks that connection as not supporting it and stops (it asks again when the module reports another version, and once a day). The fallback stays:storefrontSuspendedandstorefrontSuspendedReasoninconnection_statusandconnection_storefrontare unchanged.
store.describe
Implemented since 14 October 2026; the OpenCart 3 module declares its capabilities since 20 October 2026. Params: none. Works while paused. Example result (an illustration, not output from a real shop):
{
"protocols": ["1.0"],
"platform": { "name": "opencart", "version": "3.0.5.1",
"adapter": { "name": "storedeputy-opencart3", "version": "0.5.0" } },
"store": {
"name": "Example Store",
"storefronts": [{ "id": "0", "name": "Example Store", "url": "https://shop.example/" }],
"currency": "EUR",
"pricesIncludeTax": false,
"timezone": "Europe/Kyiv"
},
"limits": { "maxIdsPerRead": 500, "maxItemsPerWrite": 50, "timeBudgetMs": 20000,
"maxBodyBytes": 262144, "maxPageSize": 500 },
"capabilities": [{ "name": "product.read", "version": 1 }, { "name": "product.list", "version": 1 },
{ "name": "product.write.price", "version": 1, "conditional": "atomic" }],
"warnings": [{ "code": "product_edit_listener", "message": "An extension listens to product saves.",
"extensions": { "opencart": { "eventCode": "example_feed",
"trigger": "admin/model/catalog/product/editProduct/after" } } }],
"paused": false,
"extensions": { "opencart": { "adminLanguage": "en-gb", "catalogCollation": "utf8mb4_general_ci",
"displayPricesWithTax": true, "php": "8.1.31", "db": "10.6.20-MariaDB" } }
}platformis informational. The API shows and logs it and never branches on it; what the shop can do is incapabilities.adapternames the module package and its version.storefrontslists every storefront; the first is the default. On OpenCart the base price is shared by all of them.storefronts[].endpoint(optional; 16 October 2026, STOR-68) is that storefront's storefront-side entry point: the address the API will send the storefront operations to, with the shopper pass, once they have schemas. A module lists it only from the release in which the address answers the protocol envelope; absent means the storefront has no storefront side. Same origin asurl, HTTPS. Nothing is sent there today.pricesIncludeTaxsays whether every price the module reads or writes includes tax. OpenCart stores prices without tax, so it isfalsethere.timezoneis the shop's IANA timezone, for display; times on the wire are UTC.languages(optional; accepted 11 November 2026) lists the shop's enabled languages as BCP 47 codes, one markeddefault; see product texts.limitsare the five of the contract;maxBodyBytesrepeats the transport limit andmaxPageSizeis the largestlimitalistaccepts (rules).capabilitieslists only what the module offers, by the names ofoperations.json; a write carriesconditional. The OpenCart 3 module declares the old namecatalog.readtoday and nothing else.warningstoday reports enabled extensions listening to product saves (product_edit_listener).
Adapter architecture
Planned, not built. The OpenCart 3 module is one package today. The plan is to split it into a shared core and a platform adapter:
| Shared PHP core (one source, every PHP platform) | Platform adapter (one per platform) |
|---|---|
| Envelope parsing and answers; always a signed answer, also on an exception | Entry point and wiring into the platform (OpenCart: the storefront route extension/storedeputy/backend; WooCommerce: a REST route of the plugin) |
| HMAC signing and verification, the time window | Storage of the connection and Pause (OpenCart settings; WordPress options) |
Dispatch by op, param validation against this contract, limits | Admin page: Connect (the PKCE exchange with Store Deputy's API), Pause, Disconnect |
| Money and UTC time formatting, GTIN normalization, identifier matching by the rules | Ports per resource: Manifest (describe the shop), a reader per resource (search, get, list) and a writer per writable field (apply: conditional write, read-back, product-saved notification). The split itself is Artem's decision (decision 005) |
- OpenCart 3 and OpenCart 4 share the core; each has its own adapter.
- WooCommerce (a WordPress plugin, also PHP) reuses the same core.
- The ports return the neutral model; the core never sees platform tables.
- How the core is packaged into each module (copied at build time from one source, or another way) is Artem's decision.
- Two entry points. The core serves the admin-side protocol endpoint now and must later serve a second, storefront-side entry point (storefront, reserved) without rework: keep the entry point, its dispatch table and its authentication separate from the shared pieces (signing, validation, formatting), so a second entry point is an addition.
- Storefront-side security, when it comes: public traffic, so rate limits; no admin capability or admin-side operation reachable from it (separate dispatch tables); ids only, minimal personal data.
OpenCart 3 and OpenCart 4
Same protocol, separate adapters. OpenCart 4 gets its own adapter; the transport, envelope, signatures, operations, data model and error codes are exactly the same. The API does not know which platform or version answers; store.describe reports it for display.
How the OpenCart 3 module does it, and what an OpenCart 4 adapter must do equivalently:
- Its entry point is a storefront route. Since the module's restructuring (13 October 2026) the protocol endpoint is
index.php?route=extension/storedeputy/backendin OpenCart's catalog (storefront) application. The earlier rootstoredeputy.php, which started the admin application without its login, is gone; the module's install removes it from shops that still have it. - The signature is the only authentication. The controller checks HTTPS (except in a development build), that the shop is connected and the HMAC signature before anything else, and serves only protocol requests.
- Open: admin product events. In the storefront application, a write does not load the extensions that listen to admin product events, as the earlier entry point did. Before
product.applyis built, decide how the product-saved notification the rules require reaches them. - Route separators are internal. OpenCart 4 writes routes with
|or.depending on the version. That matters only inside the module and in the endpoint address it names at Connect. - Renamed admin directory. OpenCart's installer places the admin files in the real admin directory, and the module's page and Connect use OpenCart's own links, so a renamed directory needs nothing.
OpenCart → neutral model
What the OpenCart adapter must produce. Today's OpenCart 3 module returns the source columns almost as they are (see x-old-shape in the contract).
| Neutral field | OpenCart source | Rule |
|---|---|---|
id | oc_product.product_id | The integer as a decimal string |
code | model | Trimmed; empty → null |
sku, mpn | sku, mpn | Trimmed; empty → null |
gtin, gtins | ean, upc, jan, isbn | Each normalized as in GTIN, in the order ean, upc, jan, isbn, duplicates once; raw values in extensions.opencart |
name | product_description.name in the admin language | HTML entities decoded; no row → null |
texts (accepted) | product_description per language_id | name, description, meta_title, meta_description, meta_keyword become name, description, metaTitle, metaDescription, metaKeywords; entities decoded on read, encoded on write; no row for a language → null |
store.languages (accepted) | enabled language rows | code en-gb → en-GB; language_id stays in the module; default is config_admin_language |
status | status | 1 → enabled, else disabled |
stock.quantity, stock.tracked | quantity, subtract | subtract = 1 → tracked: true |
price | price, config_currency | 4 places; includesTax: false |
priceRules (special) | product_special | kind: special, audience: segment; startsAt = date_start at 00:00 shop time in UTC, endsAt = date_end likewise (OpenCart applies a special while date_start ≤ today < date_end); 0000-00-00 → null; expired rows left out; extensions.opencart: customerGroupId, priority, source: product_special |
priceRules (tier) | product_discount | kind: tier, minQuantity = quantity, dates and audience as for specials; source: product_discount |
variantPricing | product_option_value.price | Any option value of the product with a price other than 0 → options; else none. OpenCart never reports variants |
storefrontIds | product_to_store.store_id | Strings, ascending |
updatedAt | date_modified | Shop time → UTC with the shop's timezone |
extensions.opencart.taxClass | tax_class_id | String or null: title of the class (tax_class.title); no class → null |
rating, reviewCount | review (status = 1) | AVG(rating) rounded to two places as a string and COUNT(*); null and 0 without approved reviews |
minQuantity | minimum | Integer; 0 → null |
availableAt | date_available | 00:00 shop time → UTC; 0000-00-00 → null |
extensions.opencart.viewed, .location | viewed, location | Integer; string, possibly empty |
platform.version | VERSION | detectedVersion and fork are dropped |
platform.adapter | Module name and version | storedeputy-opencart3 and the module version |
store.name, store.storefronts | config_name and HTTPS_CATALOG for store 0, then oc_store rows | Ids as strings |
store.storefronts[].endpoint | The storefront's own address (the one in url) and the storefront-side route: OpenCart 3 index.php?route=extension/storedeputy/frontend, OpenCart 4 index.php?route=extension/storedeputy/storedeputy/frontend | Sent for every storefront since 12 November 2026 (STOR-134): that route answers the protocol (signed, storefront.store.describe and the storefront operations) and refuses admin operations. Checked on the local test shops only |
store.currency | config_currency | |
store.pricesIncludeTax | — | false: OpenCart stores prices without tax |
store.timezone | PHP's date_default_timezone_get() | Used for every conversion to UTC |
manifest extensions.opencart | config_admin_language, product table collation, config_tax, PHP and database versions | adminLanguage, catalogCollation, displayPricesWithTax, php, db |
warning extensions.opencart | oc_event | eventCode, trigger |
search code / sku / mpn / id | model / sku / mpn / product_id | id that is not digits matches nothing |
categoryIds | product_to_category.category_id | Strings, ascending |
manufacturerId | manufacturer_id | String; 0 → null |
order total, currency, currencyRate; line unitPrice, total | order.total, order.currency_code, order.currency_value; order_product.price, order_product.total | As stored, never converted: OpenCart keeps the amounts in the shop's default currency and currency_code is the buyer's, so the amount in currency is the stored amount × currencyRate |
order address (orderPaymentAddress, orderShippingAddress) | order.payment_* and order.shipping_*: firstname, lastname, company, address_1, address_2, city, postcode, country, zone; country.iso_code_2 and zone.code by *_country_id and *_zone_id | As the order stores them; empty → null; an order without a shipping address is in missing |
order paymentMethod, shippingMethod { code, name } | 3.x and 4.0.0.0: payment_code + payment_method, shipping_code + shipping_method; 4.0.2 and later: the JSON { name, code } in payment_method and shipping_method | Empty → null (an order without shipping) |
order totalLines[] kind, code, title, value | order_total by sort_order: code, title, value | As stored, signed; kind: sub_total → subtotal, shipping, tax, coupon/voucher/reward → discount, handling/low_order_fee → fee, total, anything else → other |
order line code | order_product.model | As recorded when the order was placed; sku is left out, since order_product keeps none |
order customerId, customerGroupId, customerFirstName, customerLastName, customerEmail, customerTelephone, storefrontId | order.customer_id, customer_group_id, firstname, lastname, email, telephone, store_id | As the order stores them; customer_id 0 (a guest) → null; empty text → null; store_id as a string (0 is the default store) |
customer telephone | customer.telephone | Trimmed; empty → null |
customer customerGroupId; customerGroup name | customer.customer_group_id; customer_group_description.name for the default admin language | String |
customer addressIds, defaultAddressId | address.address_id of the customer; OpenCart 3 customer.address_id, OpenCart 4 address.default = 1 | 0 or none → null |
address country, countryCode, zone, zoneCode | country.name, country.iso_code_2, zone.name, zone.code; in OpenCart 4.1 the names are in country_description and zone_description for the default admin language | Empty → null |
product.list cursor | — | The last product_id of the page, as a string; order ascending product_id; updatedSince converted to shop time for date_modified >=; the module moves date_modified itself when an order takes stock or an option value changes, since OpenCart does not |
coupon discount { kind, value, minimumTotal, freeShipping } | coupon.type, discount, total, shipping | type P → percent, F → fixed_order; value = discount with 4 places; minimumTotal = total, 0 → null; freeShipping = shipping = 1. logged, the product and category lists stay out of the neutral model |
coupon usage { limitTotal, limitPerCustomer, used } | coupon.uses_total, uses_customer; coupon_history | 0 → null (OpenCart treats it as no limit); used = the coupon's rows in coupon_history |
coupon startsAt, endsAt, createdAt | coupon.date_start, date_end, date_added | Dates at 00:00 shop time → UTC, 0000-00-00 → null; date_added shop time → UTC. OpenCart keeps no modification time: updatedAt is null |
Module update
Proposed 30 October 2026 by Yevhen Kariakin. The API side is in main; the OpenCart 3 module implements it since 31 October 2026 (STOR-91), checked only on the two local test shops against a stand-in for the release route; nothing is deployed.
The OpenCart 3 module is to get an Update button. For that it asks the API which module version it serves, with GET {api_url}/module/opencart3/release, a public route with no API version that never moves (like the Connect exchange; {api_url} comes only from the trust values). The answer is { success: true, data: { version, sha256, size, downloadUrl, protocols } }: version is the version of the archive the API builds, sha256 (lowercase hex) and size (bytes) describe exactly the bytes of GET {api_url}/module/opencart3/download, downloadUrl is the absolute address of that download as a shop reaches the API, and protocols lists the Module Protocol versions the API speaks (["1.0"]). The module compares version with its own using version_compare and offers the update only when the API's is newer. When the API cannot build the module it answers 503 MODULE_UNAVAILABLE, like the download.
What the module does when the admin presses Update (the specification for the module's author):
- Preconditions. The admin user may modify the module; PHP has ZipArchive;
system/storage/uploadand the directories the module's files live in (admin,catalog,system) are writable by PHP, checked on the module's own files. If not, the page shows the manual path (download from the site, Extensions → Installer) instead of the button. - Download.
downloadUrlis fetched from the shop's server under the same rules as the Connect exchange (address only from the trust values, TLS verified, no redirects), intosystem/storage/upload/storedeputy-oc3-<version>.ocmod.zip.sizeandsha256are verified; a mismatch deletes the file and stops witherror_update_checksum. - Extract into a fresh
system/storage/upload/storedeputy-update-<random>/.upload/system/config/storedeputy.phpinside must state the expected version. - Back up the module's current files into
system/storage/upload/storedeputy-backup-<old version>-<time>/; only the latest backup is kept. - Copy the archive's
upload/admin,upload/catalogandupload/systemtrees onto the shop'sadmin,catalogandsystemdirectories, the mapping OpenCart's installer uses (3.0.3.5,admin/controller/marketplace/install.php:upload/admin→DIR_APPLICATION,upload/catalog→DIR_CATALOG,upload/system→DIR_SYSTEM,upload/image→DIR_IMAGE; the installer itself moves each file withrenameover any existing one and creates directories withmkdir; it accepts only paths under its allow-list, such asadmin/controller/extension/,admin/language/,admin/view/javascript/,admin/view/template/extension/,catalog/controller/extension/,system/config/,system/library/, and the module keeps to the same prefixes). Each file is written beside its target and renamed over it, so a file is never half-written. The trust file from the archive is taken too (it carries this site's addresses). Files the old version had and the new one does not are removed, limited to the directories only the module owns (admin/controller/extension/module/storedeputy*,admin/language/*/extension/module/storedeputy.php,admin/view/template/extension/module/storedeputy/,admin/view/javascript/storedeputy/,catalog/controller/extension/storedeputy/,system/library/storedeputy*,system/config/storedeputy*); the exact list is the module author's. - Record the installed files the way OpenCart's installer does, so Uninstall in Extensions → Installer still removes everything: one row in
extension_install(filename,date_added; the installer creates it at upload, the module reuses its own row found by filenamestoredeputy-oc3-*.ocmod.zipor adds one) and one row per directory and file inextension_path(extension_install_id,path), through thesetting/extensionmodel (addExtensionInstall,addExtensionPath,getExtensionPathsByExtensionInstallId,deleteExtensionPath); paths of the previous version that no longer exist are deleted from it. The module has noinstall.xml, so the installer's modification step does not apply. Read from the 3.0.3.5 source; it must be verified on both test shops (3.0.3.5 and 3.0.5.1) before it is claimed. - Finish. Run the module's own install step again (events and tables are idempotent), clear OpenCart's caches including compiled templates, remove the extracted folder and show "Updated to
<version>". On any failure after step 5 began, restore the backup and show the error; the manual path remains.
Compatibility rule. The API keeps answering every module version released since 1.0.0 until this page says otherwise; a release that needs a newer module says so here first.
Safety. The address comes only from the trust values. The archive is checked against the checksum the same API gave over TLS. The Update route needs the admin's user_token and modify permission. The module never takes an archive or an address from a request.
How the OpenCart 3 module does it (31 October 2026; where it differs from the steps above):
- The notice shows on every page of the module, before and after Connect: "Store Deputy
<new>is available. This store has<installed>." The Update button is shown to users who may modify the module, when the shop can update itself; otherwise the notice carries the download link for the manual path. When the API cannot be asked, or its version is not newer, there is no notice. The release answer is cached for OpenCart's cache time (an hour). - The archive is always fetched from
{api_url}/module/opencart3/downloadof the trust values;downloadUrlis not used. - Step 3: the files are read straight from the verified archive; there is no extraction folder.
- Step 7 runs in a second request (
extension/module/storedeputy/updated), because the request that copied the files still has the old code loaded. It sets the module's events again and creates missing tables without dropping existing ones, so connection requests and shopper sessions are kept, and it clears the compiled templates. - A failed update answers the reason and the download link for the manual path.
How the OpenCart 4 module does it (7 November 2026; where it differs from the OpenCart 3 module):
- Every file of the module is in one folder,
extension/storedeputy/, which OpenCart 4's installer made: the update replaces that folder's contents and nothing outside it. The archive is{api_url}/module/opencart4/download(noupload/prefix,install.jsonat its root), checked against the size andsha256of{api_url}/module/opencart4/release;install.jsonandsystem/config/storedeputy.phpinside must state the expected version. - The update writes
install.jsoninto the folder too and records the version (extension_install.version) and oneextension_pathrow per file and folder (storedeputy/…) as the installer does, so Extensions → Installer lists the new version and its Uninstall removes everything. It replaces the archive the installer keeps (system/storage/marketplace/storedeputy.ocmod.zip), so a later Install there takes the new version. A module put in place without the installer has no install row, and nothing is recorded. - Step 7 is
extension/storedeputy/module/storedeputy.updated(|updatedbefore 4.0.2.0). - Checked only on the local test shops 4153 (4.0.1.0) and 4156 (4.1.0.4), with the installed version lowered for the test.
Out of scope. Shops where PHP cannot write its own files (the manual path stays); updating from the Store Deputy site (that would be a new module operation, not decided).
Conformance suite
Built (STOR-27, 6 October 2026), retargeted to the accepted contract on 12 October 2026. No module passes it yet: the OpenCart 3 module fails three scenarios on the test shops (below). One black-box suite checks any module — OpenCart 3, OpenCart 4, later WooCommerce — the way the Store Deputy API sees it: signed JSON over HTTP to the module's endpoint, every answer checked against the JSON Schemas of contracts/module/protocol.yaml and contracts/module/operations.json. The fourteen evidence cases of the rules every module follows are scenarios tagged with their id. An adapter is done when the suite reports adapter conformant: yes on its own test shop. The suite is in contracts/conformance/ (see its README).
bun run conformance:test --endpoint 'http://localhost:4144/index.php?route=extension/storedeputy/backend' --platform opencart- How it connects. The suite tests the module, not Store Deputy's API: the platform hook puts a connection of its own into the module's settings, as Connect leaves it. Or it uses an existing connection made by Connect:
--connection-id, with the secret inCONFORMANCE_SECRET. The suite's connection replaces the shop's for the run; the OpenCart hook puts the module's settings and the fixture prices back afterwards. Do not point it at a shop someone is using. Connect itself is checked end to end bybun run connect:e2e. - What it checks, each scenario with its contract reference: signing in both directions (wrong secret or connection, a tampered body, a short nonce, the same signed request sent twice —
replayed, retryable — and accepted with a fresh nonce, a timestamp 303 s off either way by the module's own clock, read from its signed answer, the signature checked before the clock, a signed answer to every refusal exceptnot_paired); the envelope (HTTP 200, the id echoed, an unknown operation, the removedcatalog.*andprice.applyansweredunknown_op, reserved storefront operations and the removedcatalog.changednot served, protocol 2.0 and 1.x, an unreadable body, extra query parameters ignored) and the strict envelope of the rules (a body abovemaxBodyBytes, a duplicated JSON key, an unknown envelope field, an unknown param); the connection (a connection put into the module is used; a new one replaces the old at once;connection.pairisunknown_op);store.describeagainst the manifest schema, capabilities only fromoperations.jsonwithconditionalexactly on writes, the five limits,conditional: emulatedwhere the platform hook reports nontransactional product tables;product.searchby every identifier type, every duplicate returned, case and whitespace,%,_and*literal, GTIN normalization, exact ids, the 128-byte limit, the identifier limit;product.get— every product against the schema with nothing outside it (an OpenCart column outsideextensionsfails), each fixture field by field,categoryIdsandmanufacturerIdby shape,missing, string ids only, limits,include: ["variants"]withoutvariant.read;product.listif declared — a full walk without gaps or duplicates, a tampered cursor, a limit abovemaxPageSize,updatedSince, a product changed between two pages;product.applyifproduct.write.priceis declared — applied and read back, one product-saved notification, one write on a product offered on two storefronts,conflict,not_found, expected equal to set, the batch limit, independent items, strict params, a set field whose capability is not declared (and, when it is not declared, thatproduct.applyis refused); Pause blocks reads and writes;connection.revoke. - Skipped is visible. A scenario that needs an undeclared capability or a hook the platform does not have is reported as skipped, with the reason. The report also lists what the fixtures cannot show.
- Decision 008: create, more fields, order history (added 10 November 2026, gated by capability, proven on the reference module only). For each of
product.create,category.create,manufacturer.createandcoupon.createthe module declares: a created record is made disabled (a manufacturer has no status),afteris the whole record as a freshgetreads it, the sameidempotencyKeywith the same set iscreatedwithreplayed: trueand never a second record, the same key with another set isidempotency_key_reused, a missing required field, an unknown reference, a taken coupon code or SEO keyword, an unknown language and a field without its write capability are refused with the reason and the field, nothing is created while Pause is on. The newapplyfields (productcode,sku,mpn,gtin,manufacturerId,categoryIds,weight,dimensions,taxClassId,minQuantity,availableAt,seoKeywords,specials,discounts; category, manufacturer, coupon and customer fields) are each applied withbeforeandafter, read back, a staleexpectedis aconflictwithcurrent, and the value is restored; the order history append is guarded bylastEntryId; the reads (include: ["details"],["texts"],["history"],store.taxClasses) are checked against the schema. A module that declares none of it skips all of these scenarios, as the OpenCart modules do today. The module has no delete operation, so the records the suite creates stay in the shop, namedSD-CONFORMANCE-<run id>and disabled, and an order gets one history entry per run; the report lists them. Details:contracts/conformance/README.md. - Fixtures. SD-001 to SD-008 in the neutral model (
contracts/conformance/fixtures/spec.ts), found by code or SKU because ids differ per platform: an ordinary product with a barcode (SD-001); two products sharing a SKU (SD-002, SD-003 asSD-DUP); a product with only a code (SD-004); an active special (SD-005); a quantity tier and an option price (SD-006); two storefronts (SD-007); a price using all four decimals (SD-008). Not in the fixtures yet, so not checked: a variable product with variants (needed for WooCommerce); known categories or a manufacturer; a GTIN in several barcode fields; stored ISBN-10 or UPC-A barcodes; an MPN; status, stock or storefront writes; a disabled or untracked product; expired, future or dated price rules. - The suite tests itself.
bun run contracts:checkruns it against an in-process reference module that implements the contract and must pass (72 scenarios, 2 skipped for want of a fixture), proves that every evidence case has a passing scenario, and runs it against seven broken variants that must fail: numeric ids, local times, a field outsideextensions, unsigned errors, a module that ignores signatures, a loose envelope, wildcard search. - Both OpenCart 3 test shops, 30 October 2026: conformant — 91 passed, 0 failed, 10 skipped on each. The suite now expects a product-saved notification only for an item that answers
event: "fired"; an item that answersevent: "skipped"(OpenCart 3: the storefront side cannot reach the admin panel's listeners) must cause none, and the manifest must warnproduct_edit_listener, as the apply rules say. Only the local test shops; nothing has run against a real shop. - Both OpenCart 3 test shops, 20 October 2026, after the admin sign-in on 4144 and the clock check were fixed: not conformant — 84 passed, 2 failed, 15 skipped on each (three runs); only the product-saved notification fails.
bun run module:compatproduces this report. - Both OpenCart 3 test shops, 19–20 October 2026, the module rewritten against
operations.json: not conformant — 3.0.3.5 (port 4143): 82 passed, 3 failed, 15 skipped; 3.0.5.1 (port 4144): 81 or 82 passed, 3 or 4 failed, 15 skipped. Every product, category, manufacturer, customer and order scenario passed, and so did signing, the strict envelope, the manifest and revoke. The failures: the product-saved notification (two scenarios on each shop: the module answersevent: "skipped", because the storefront side, where the module's endpoint is, cannot reach the listeners extensions register on the admin panel's product save); Pause on 4144 (the suite could not sign in to that shop's admin panel; Pause passed on 4143); and, now and then, the 301-second timestamp boundary (the shop container's clock and the host's differ by about a second). The module's settings and the fixture prices were put back after each run. - OpenCart 3.0.5.1 test shop (port 4144), 13 October 2026, Connect by PKCE: not conformant — 23 passed, 33 failed, 16 skipped. Every connection scenario, signing, the extra-query check and revoke passed; the module's settings were identical before and after the run. The failures are outside Connect: the old manifest, the strict envelope not enforced, and
product.searchandproduct.getnot implemented (unknown_op). - OpenCart 3.0.5.1 test shop (port 4144), 6 October 2026, before the retarget: not conformant — 29 passed, 25 failed, 13 skipped against the Protocol 1 operations of that day. Signing, pairing, the envelope, Pause and revoke passed; the failures were the old shape of the manifest and the products. Since 11 October the module would also answer
unknown_opto everyproduct.*operation; it has not been run again. The 3.0.3.5 shop was not run, because the local stack uses it.
Storefront (reserved)
Accepted 10 November 2026: the storefront operations of operations.json (storefront: reads, the signed-in customer's reads, the cart, the checkout and the shopper agent's permissions) are accepted. The OpenCart 3 and 4 modules implement them; confirmed by Yevhen Kariakin. The API's shopper agent tools send them (STOR-33/35/88), proven so far only against fakes and the local test shops, not on a real shop. The passages below that say "reserved" or "nothing is sent" describe the state of 6 October 2026 and are kept for history.
Update, 13 October 2026: the pass below is an earlier draft. Embedded Bridle chat defines the accepted direction and STOR-60 agreement work. A pass exchanged for a scoped chat session is planned; the old 15-minute/per-message behaviour is not the new finalized contract. No embedded flow is claimed implemented.
Reserved, not built (decision of 6 October 2026); not in the 5–16 October work. A future second agent that a shop's customers talk to from the shop's own storefront, not from the Store Deputy site. Names and the shopper pass are fixed now so the module's core is designed for it. Nothing here is implemented, sent or called.
The module gets a second entry point on the storefront side, beside the admin-side protocol endpoint. It does two things:
- Issues a shopper pass to the shopper's browser (below).
- Serves an embedded chat widget on storefront pages. The widget gets a pass, refreshes it before it expires and sends it with every chat message to the Store Deputy API. Only the behaviour is described; there is no widget or UI contract yet.
Its address (16 October 2026, STOR-68). The manifest names the entry point per storefront, store.storefronts[].endpoint, optional and on the storefront's own origin: the host is what puts the shop into that storefront's context (tax, currency, language, customer group), and the API must not derive the path, which differs by platform, just as it never derives the admin-side address. The API will send the reserved operations there, with the pass, once they have schemas; until then it sends nothing there, and it never sends admin operations there or storefront operations to the admin-side endpoint. A module lists the address only from the release in which it answers the protocol envelope; what is served there is said by capabilities. The route that issues the pass to the browser and the widget are not in the manifest; STOR-60 names them.
Shopper pass
Superseded on 16 October 2026. The pass contract (admin and shopper, with audience, 120-second passes, single-use nonces, module routes and API routes) is the proposal of STOR-60, machine form contracts/embedded/passes.yaml; the block below is the 6 October draft, kept for history.
shopperPass is signed by the module with the connection secret, carried by the browser to the Store Deputy API, and verified there. The browser is never trusted for identity: the API takes the shopper only from a pass whose signature verifies.
shopperPass = base64url(payload) + "." + hex HMAC-SHA256(secret, "sd-shopper-pass-v1\n" + base64url(payload)){ "version": 1, "connectionId": "conn-example-0001", "storefrontId": "0",
"customer": { "id": "815" }, "sessionRef": null,
"cartRef": "c2hvcHBlci1jYXJ0LXJlZi0wMDAx",
"issuedAt": "2026-10-06T09:00:00Z", "expiresAt": "2026-10-06T09:15:00Z",
"nonce": "bm9uY2Utc2hvcHBlci0wMDAx" }customeris the signed-in customer, ornullfor an anonymous shopper, who has asessionRefinstead; exactly one of the two is set.sessionRefandcartRefare opaque references derived by the module, never the platform's session id or cookie, which are credentials.- Ids only: no credentials, no name, email, address or phone.
- Short-lived (proposed: at most 15 minutes). The domain prefix keeps a pass from ever verifying as a protocol signature. A revoked or replaced connection invalidates every pass, because the secret changes.
Storefront read operations (accepted)
Proposed on 26 October 2026, accepted on 10 November 2026, in operations.json (storefront): storefront.product.search|get|list|query, storefront.variant.search|get, storefront.category.search|get|list|query and storefront.manufacturer.search|get|list|query. A storefront endpoint answers them for the shopper the request's shopperPass names. Each mirrors the admin-side operation of the same resource and verb, with the storefront's own schemas (StorefrontProduct, StorefrontVariant, StorefrontCategory; Manufacturer as on the admin side):
- only what the storefront shows its shoppers: enabled, on this storefront, products available from now; a record it does not show is missing, never refused, and the agent cannot ask for it;
- no
status, storefront ids, created or updated times, exact stock or other groups' price rules, and no filter or sort on them; noupdatedSinceinlist; urlon a product and a category (proposed 18 November 2026): the address of its page as the storefront itself links to it, its search-friendly address where the shop has one, in the session's language, so the shopper agent can link what it names; null only when the platform has no such page;imageon a product (proposed 18 November 2026): its main picture at the size of the storefront's product lists, absolute, null when it has none, for the shopper agent's product cards;- prices as this shopper sees them (
StorefrontPrice): the special or discount of their customer group, with tax when the shop shows prices with tax, in the session's currency, computed by the module as the platform does;regularPricewhen a special applies,tierPricesfor larger quantities; thepricefilter and sort use the same price, so a question in the chat lists what the storefront lists; - availability as the storefront shows it (
inStock, the quantity only where the shop shows it, the stock status text), with aninStockfilter; - without a
sort, records come in the storefront's own order (OpenCart:sort_order, then name).
Each has a capability of its own: storefront.<resource>.read (search and get), .list and .query. A storefront endpoint declares them in its own manifest, storefront.store.describe (StorefrontManifest): only the storefront serving the request, with displayPricesWithTax, its limits, its storefront.* capabilities and paused; no other storefronts, admin-panel warnings or admin-side capabilities. It takes no shopper pass and answers while paused.
The signed-in customer's reads
Proposed on 27 October 2026, accepted on 10 November 2026: storefront.customer.get, storefront.customerGroup.search|get|list|query, storefront.customerAddress.get, storefront.customerOrder.search|get|list|query, storefront.orderStatus.search|get|list|query, storefront.customerOrderPaymentAddress.get, storefront.customerOrderShippingAddress.get and storefront.coupon.search|get|list|query. storefront.resources names the admin-side resource each mirrors (customerOrder mirrors order). Every operation says who may call it in x-customer: optional for any shopper, required for a customer signed in on the storefront only. All of these are required except storefront.coupon.search; a guest, or a session that no longer holds the customer the pass names, gets the new error customer_required, and the shopper agent asks the shopper to sign in.
- Only the customer's own records. The module finds the customer from the shopper's session, never from params:
storefront.customer.gettakes no id. Anybody else's address or order is missing. - The account (
StorefrontCustomer): the admin-side customer withoutstatus(a signed-in customer is always enabled);updatedAtstays for platforms that keep it (OpenCart:null). - Customer groups: only the groups the storefront offers at registration and the customer's own; names in the session's language; without a sort, the registration order.
- Orders (
StorefrontOrder): only the customer's completed orders on this storefront (OpenCart:customer_id,store_id,order_status_idabove 0), as their account shows them: every amount in the order's own currency at the rate stored with the order, line prices with tax where the storefront shows prices with tax; nocustomerId,customerGroupId,storefrontIdorcurrencyRate; status names in the session's language and neverabandoned; a line'sproductIdisnullwhen the storefront does not show that product now. Search byidandnumber; filtersorderStatusId,total(in each order's own currency),createdAt,updatedAt; without a sort, newest first. - Order statuses: every status the shop defines, named in the session's language; without a sort, by name.
- Addresses (the address book, an order's payment and shipping address) are personal data: the module always declares them, and the API offers them to the shopper agent only while the store team has turned on its
addresses.readpermission (permissions). - Coupons are codes the shop gives out, not a catalog.
get,listandqueryread only the coupons this customer used in an order on this storefront; no code of any other coupon is given away.storefront.coupon.searchfinds a coupon by the exact code the shopper gave, never by id, for a guest too, and answers the coupon withapplicableandreasons(expired,minimum_total,sign_in_required, …), checked as the platform checks a code entered in the cart. Amounts are in the session's currency;usagecarries the customer's own uses, not how often everybody used it.
orders.own.list and orders.read.own, reserved since 6 October, are replaced by storefront.customerOrder.*. A storefront search names the storefront resource it found (StorefrontSearchResult: customerOrder, not order), the one whose get reads the id.
The cart, a product's options and subscriptions
Proposed on 27 October 2026, accepted on 10 November 2026. Nothing is reserved any more: the cart.get and cart.items.* names of 6 October became these operations.
Options and subscriptions. storefront.product.get, .list and .query take include: ["options", "subscriptions"] beside variants. A module lists the include values it answers in each product capability (includes); another one is capability_unavailable.
options(StorefrontProductOption): what the shopper chooses or fills in when putting the product in the cart and which only changes its price (OpenCart options, Magento custom options):id,name,type(single,multiple,text,textarea,file,date,time,datetime),required,settable(falsefor a file: only the storefront can upload it),defaultandvalueswithpriceDeltaas the product page shows it. A value out of stock that the shop subtracts is not offered. A choice that makes a separate product with its own price and stock (WooCommerce, PrestaShop) is a variant instead.subscriptions(StorefrontProductSubscription): the plans of the shopper's customer group (OpenCart 3recurring, OpenCart 4 subscription plans):price,frequency,cycle,durationand an optionaltrial. A platform where the subscription is the product itself declares no such include.
The agent reads the product with them, asks the shopper for every required option and a plan, then puts it in the cart.
The cart. storefront.cart.get|add|update|remove, for a guest too. They change the platform's own cart of the shopper's session, which the shopper sees in the browser; Store Deputy keeps no copy.
getanswersStorefrontCart: lines with an opaqueid, the options and plan chosen,unitPriceandtotalas the cart page shows them,inStock,minQuantity, andtotalsas the cart page computes them, all in the session's currency.addtakesproductId,variantId(on a platform with variants),quantity,optionsandsubscriptionId, checked as the storefront checks them. The same product with the same options and plan adds to that line.updateandremovetake the line'sitemIdandexpected.quantity: if the shopper changed the line meanwhile, the answer isconflictwith the current quantity and nothing is changed.- Every change answers
StorefrontCartChangeResult:applied,rejectedwith every reason (option_required,option_invalid,option_not_settable,subscription_required,product_unavailable, …),conflictornot_found, and the cart after it. - Prices for signed-in customers only. Where the storefront shows prices to signed-in customers only (
StorefrontManifest.storefront.pricesForSignedInOnly; OpenCart:config_customer_price), a guest gets no price anywhere: a product'spriceandregularPricearenullandtierPricesempty, optionpriceDeltaand plan pricesnull, cart amountsnullandtotalsempty, and apricefilter answerscustomer_required. Sorting by price stays, as the storefront sorts by it. - Quantity and stock are refused only where the platform refuses them itself: OpenCart puts any quantity in the cart and refuses at checkout, so the line says
inStockandminQuantity. - The cart is an exception to decision 004: no admin-side resource and its own verbs, because a change is the shopper's own action, not an approved change applied by compare-and-set. A change goes through the platform's cart, not its cart pages, so extensions listening to those pages' events do not hear it.
The checkout
Proposed on 27 October 2026, accepted on 10 November 2026. The agent helps the shopper fill in the checkout; the order is placed in the chat only where its payment method takes nothing from the shopper, otherwise the shopper finishes on the storefront's own checkout page.
Payment card data never crosses this interface. No operation takes a card number, expiry or security code: whatever the agent receives passes through the API, Agentfy and the language model. A card or a payment provider's page is paid on the storefront.
storefront.checkout.getanswersStorefrontCheckout: the contact, the payment and shipping addresses, the shipping methods with their costs and the payment methods offered for them, the choices made, the comment and the store'sterms, the cart with its totals,blockers(what still stands between the shopper and an order),ready,placeableandcheckoutUrl. The methods are computed for the addresses in the session as the checkout's steps compute them, and kept there.storefront.checkout.estimatetakes a country and, where known, a region, city and postcode, and answers the shipping methods and costs for the cart now, keeping nothing: for "how much is delivery to…" before checking out. No payment methods: they depend on the shipping chosen.storefront.checkout.updatefills in a guest'scontact,paymentAddressandshippingAddress(typed in, or anaddressIdof the signed-in customer's address book),shippingMethodCode,paymentMethodCode,commentandagree. Checked as the checkout checks them; a failure rejects the whole change with every reason (field_required,zone_invalidwith the country's regions inchoices,shipping_method_unavailable, …). It is written where the checkout page reads it (OpenCart: the session'sguest,payment_address,shipping_address,shipping_method,payment_method,comment,agree), so the shopper finds the page filled in.storefront.checkout.placetakesexpected(the total and currency the shopper agreed to) and anidempotencyKey.placed: the order is created and the payment method's own confirm sets its status, so emails, stock and order events work as for any order; the cart is emptied as the success page does, andpaymentInstructionscarries what the method tells the shopper (bank details).handoff: the method is not placeable, nothing is created, the shopper goes tocheckoutUrl.conflict: the total changed.rejected:blockers. The same key answers the same order.placeablemethods are decided by the module, not a store setting: those that take nothing from the shopper (OpenCart:cod,bank_transfer,cheque,free_checkout).checkoutUrlis built by the module through the platform's own links (OpenCart: the route the store sets in the module,checkout/checkoutby default, for a third-party checkout). Every platform has its own checkout page, so the agent never builds this link.- A guest checks out only where the storefront lets a guest (OpenCart: guest checkout on, prices not for signed-in customers only, no downloadable product); otherwise
sign_in_required. A required custom field iscustom_field_required: the shopper fills it on the checkout page. - The checkout carries the shopper's contact and addresses, so the shopper agent's
checkout.writepermission requiresaddresses.read(permissions;rules.addresses.checkout). - Like the cart, the checkout has no admin-side resource and its own verbs.
The shopper agent's permissions
Proposed on 28 October 2026, accepted on 10 November 2026 (storefront.permissions). Like the admin agent's, they are switches an owner or admin sets for the store in Store Deputy, but a set of its own. The module always declares every storefront capability; the API offers the shopper agent an operation's tool only while the permission covering its capability is on. storefront.store.describe needs none.
| Permission | Operations | Requires | Default |
|---|---|---|---|
catalog.read | product, variant, category, manufacturer | — | on |
account.read | customer, customerGroup, customerOrder, orderStatus | — | on |
addresses.read | customerAddress, customerOrderPaymentAddress, customerOrderShippingAddress | account.read | off |
cart.write | cart, coupon | — | on |
checkout.write | checkout | cart.write, addresses.read | off |
Turning a permission on turns on what it requires; turning one off turns off what requires it, and the site says what else goes off. Turning the checkout on therefore turns on the cart, the addresses and the account: a placed order is read back as the customer's order. A permission governs what the agent may do, not who may: a signed-in customer's operations still answer customer_required to a guest.
Requires an Agentfy change. Agentfy gives no MCP tools to visitor turns today, and its server chat is for team members only. See DECISIONS.md (6 October 2026, the shopper agent reserve).
On the MCP side the frontend profile will use the verified pass as its call context (actor kind Shopper), with tools limited to the storefront's capabilities.
Not in Protocol 1
Out of the module contract as a whole (this page and Operation shape):
- Creating orders, checkout, payment for a shopper-facing agent. The storefront's reads, the customer's own orders and the cart are accepted, and so are the checkout and placing an order that takes nothing from the shopper (
checkout.place); card data never crosses this interface. - Creating or deleting any resource: not
apply, not specified (decision 004). - Price-rule writes (sale, special, tier) and option writes.
- Free-text search (a name that contains a word): the API runs it by scanning
product.listlive (decision 007); a module offers identifiers only. - Lookups by platform-only fields (
extensions) — search bygtininstead of a raw OpenCart barcode column. - A write journal or
operation.getin the module — idempotency and reconciliation are the API's (decision of 6 October 2026). connection.rotate_secret,trust.updatefrom the old Bridge draft.
Each would arrive as a new resource or writable field in operations.json in a 1.x minor version, with a capability in store.describe; never as a new verb.
Contract files and checks
| File | Contents |
|---|---|
contracts/module/protocol.yaml | This page: transport, envelopes, signing, Connect, the neutral model, the manifest (CapabilityDeclaration, Limits), the setup operations with status and examples, errors, OpenCart extension schemas |
contracts/module/operations.json | Operation shape: resources, verbs, capabilities, the module rules, every <resource>.<verb> operation with schemas and examples; accepted 11 October 2026 |
contracts/module/operations.schema.json, operations.examples.json | Generated from the two files above: one standalone JSON Schema 2020-12 and every example as a full request and response. Download · examples |
contracts/module/signature-vectors.json | HMAC test vectors (test values only); one body still names the removed catalog.get, which the vectors do not care about |
contracts/errors.yaml | Every module error code, whether it is implemented, and the MCP error the agent sees |
contracts/mcp/tools.yaml | Draft MCP tools and the module operations each needs (x-module-operations) and the tool served today (x-built-as); the neutral tool fields are a target, not served yet |
bun run contracts:check validates every example of both files against its schema and the envelope, requires camelCase field names, rejects chat, session or user identifiers in params, requires an expected value on every write item, rejects platform fields outside extensions and unregistered extension keys, requires string ids, UTC times and money strings, checks that the manifest's capabilities and limits are the shapes operations.json needs, that the removed operations stay removed, regenerates the standalone files and validates every example with a fresh validator, and reproduces the signature vectors. It proves the files are consistent, not that the module behaves this way; the conformance suite, the end-to-end Connect check (bun run connect:e2e) and the API's tests do that for what is implemented.
History
- Late September 2026 — Bridge Protocol v1 (archived as Bridge RPC draft): one endpoint, operation in the body, HMAC. Implemented in the OpenCart 3 module and the API.
- 1 October 2026 — this page described SD Module REST 1.0:
/v1paths, RFC 9421 message signatures, problem+json errors,POST /operations. Not implemented. - 2 October 2026 — a REST v2 OpenAPI draft (
contracts/module-rest/). Not implemented; removed. - 6 October 2026 — Module Protocol 1: the founder chose one signed JSON-RPC endpoint for OpenCart 3 and 4. It continues the Bridge v1 transport that already works. Reasons: OpenCart 4's route separators differ between versions, shared hosting does not reliably pass
PATH_INFO, and the transport is already proven on OpenCart 3. The same day: field names became camelCase (module and API renamed); approval, idempotency and reconciliation stay in the API, so the module keeps no journal andoperation.getwas dropped; the identifier value limit is 128 bytes everywhere. - 6 October 2026, later — the protocol became platform-neutral: string ids, UTC times, money with a currency, one normalized barcode list, price rules, variants (WooCommerce comes after OpenCart 4), and
extensions.<platform>for everything else. Still version 1.0, because nothing is deployed. The OpenCart 3 module answers the old shape until its adapter moves. SeeDECISIONS.md. - 11 October 2026 — the founder and Yevhen Kariakin accepted decision 004: every operation is
<resource>.<verb>incontracts/module/operations.json.catalog.search,catalog.get,catalog.listandprice.applyleft this page andprotocol.yamlwithout aliases; the manifest gainedconditionalper write and two more limits;ProductgainedcategoryIdsandmanufacturerId(decision 006); the module rules of the superseded Module JSON 1.0 proposal went into the contract. Still version 1.0: nothing is deployed. The module and the API are rewritten in iteration 6 ofPLAN.md. - 13 October 2026 — Connect by Authorization Code + PKCE replaced
connection.pair: the module fetches its secret from the API instead of receiving it with a signed pairing request, and no key ships in the module.unknown_keyandpairing_code_*left the error codes. The module's endpoint became a storefront route. SeeDECISIONS.md. - 15 October 2026 — the inbound hint
catalog.changedwas removed from the contract with the API's catalog mirror (decision 007, proposed, pending the founder): every operation is sent by the API, and the module never has to call it. Still version 1.0: nothing is deployed.