Skip to content

Status, 15 October 2026: proposed by Yevhen Kariakin; pending the founder's (Dmitriy Zhuk) acceptance. The implementation of decision 006 was removed from the API on 15 October 2026, before this record is accepted. Everything below is proven only against the fake driver; the OpenCart 3 module does not answer product.list yet, and nothing has run against a real store.

007 — Live catalog reads: no copy of store data in Store Deputy ​

Store Deputy keeps no copy of any store entity. Every catalog read goes to the store through the driver port at the moment of the call. This reverses decision 006, which kept a copy of products, variants, categories and manufacturers in the API's PostgreSQL and answered the agent's catalog questions from it. An answer is as current as the shop; nothing needs to be synchronized, cleared or explained.

Context ​

Decision 006, accepted on 11 October 2026, solved a real problem: catalog_query_products must filter and total a catalog in one call, and the shop's product.list takes no filters, only cursor, limit, updatedSince and include. Its price, built on 12 October 2026:

  • Eight tables (CatalogProduct, CatalogVariant, CatalogCategory, CatalogManufacturer, CatalogSync, CatalogResourceSync, CatalogHint, CatalogHintNonce) holding a second version of the shop's data.
  • Three background workers: product synchronization, auxiliary resources and the hint queue, with leases, fencing and resumable cursors.
  • A signed inbound endpoint, POST /module/events, and a new direction in Module Protocol 1, catalog.changed, that the module would have had to send.
  • Freshness states in every answer (building, fresh, stale, failed, paused) that the agent had to name and explain to the owner, and a copy that was wrong whenever an extension wrote to the shop's database directly.

The copy answered a question the owner can also get from the shop itself, and it never served a write: a change always re-read every item live.

Decision ​

  1. No copy of any store entity. Products, variants, categories, manufacturers, orders and customers are read from the store when the tool is called. Nothing is stored between calls, so disconnecting a store has nothing to clear.
  2. catalog_find_products and catalog_get_products read the store at the moment of the call through product.search and product.get. The answer says when it was read.
  3. catalog_query_products scans product.list page by page, filters in the API. The filters are those of decision 004: status, category, manufacturer, price range, stock range, text in the name and changed since, with a sort and a limit. The scan reads at most 25 pages per question. If a further page exists after that, the scan stops and the answer says partial: true. The answer carries read_at (when the scan started), total (how many products matched; a lower bound when partial), more and scanned (how many products were examined). A non-progressing cursor is an error.
  4. The selection form of price_change_propose expands the same way, then re-reads every selected product live; selection.changed[].listedPrice is the price the listing returned, compared with the live price. When the scan hit its bound, the selection cannot be proven complete and the proposal is refused with catalog_too_large.
  5. catalog.changed and POST /module/events are removed from Module Protocol 1 and its operations contract. The OpenCart module never has to send a hint. The Shopify webhooks of decision 005 no longer feed anything.
  6. The tool versions rise (find 3, get 3, query 2) because their descriptions and outputs change and Agentfy caches the tool list; the input schemas do not change.

Alternatives considered ​

  • Keep the mirror (decision 006). Answers a filtered question in one SQL statement whatever the catalog size. Rejected by the proposer for the price listed in the context.
  • Filter parameters on product.list, so that the shop filters and the API reads only matching pages. The right fix for large catalogs, but it widens the module contract and every module and driver implements its own subset of filters. Not decided; the open follow-up below.
  • A filter tree in the module (the Module JSON 1.0 proposal). Rejected in 004 and not reopened here.

Consequences ​

  • Every answer is current: it reflects the shop at the moment of the call, including changes made by extensions that write to the database directly.
  • The cost moves to the shop: a catalog_query_products question reads up to 25 pages of the product list, from a shop that is often on shared hosting. A page holds at most the smaller of 200 and the shop's declared maxPageSize.
  • Known limitation: a catalog larger than the scan bound cannot be queried by filter. The answer is marked partial: true and its list and total are incomplete, and a selection on such a catalog is refused with catalog_too_large. The open follow-up is filter parameters on product.list in the module contract, so that the shop filters; it is not decided.
  • Nothing is stored, so a disconnect has nothing to delete, and the API loses the eight tables, three workers and the inbound endpoint. A migration drops the tables.
  • Artem Belikov's module need not build a sender for catalog.changed; it still has to answer product.list, which it does not do yet.
  • Matching a supplier price file (STOR-5) can no longer use a local index by SKU, code and GTIN; it reads live through product.search, with the scan bound for a whole-catalog pass. How the supplier flow reads a large catalog is part of its own design.
  • Decision 006 stays on the record as history, marked as withdrawal proposed until the founder accepts this record.

Scope ​

In: the reversal of 006, the live read of every catalog tool, the scan and its bound, the expansion of a selection, the removal of catalog.changed. Out: filter parameters on product.list, the supplier-file flow, analytics, orders and customers, per-plan limits.

Constraints and numbers ​

FactWhere
product.list takes cursor, limit, updatedSince, include; no filterscontracts/module/operations.json
The scan reads at most 25 pages (CATALOG_SCAN_MAX_PAGES), plus one when the 25th still carries a cursor, to tell a catalog that ends there from one that goes on; a page is the smaller of 200 and the shop's maxPageSizeapi/src/slices/catalog/query/
A selection is refused above 50 products (selection_too_large) or when the scan hit its bound (catalog_too_large)api/src/slices/operations/change/
Tool versions: find 3, get 3, query 2api/src/slices/mcp/server/domain/toolSchemas.lock.json
Eight model round-trips per turn; tool results unboundeddecision 004, numbers

What this supersedes or must be reconciled with ​

  • Proposes to withdraw decision 006 and the reference page that described it, now in the archive.
  • Reopens the question of decision 004 on where catalog_query_products reads from and answers it: from the store, live, with a bound.
  • Removes the Shopify webhooks' only consumer from decision 005; the app/uninstalled webhook stays.
  • Removes the inbound catalog.changed from the operation shape. The read-only categoryIds and manufacturerId of Product stay: the API filters by them.

Open questions ​

QuestionOwner
Acceptance of this decision, which reverses an accepted one.Dmitriy Zhuk
Filter parameters on product.list (status, category, price range, name) so that the shop filters and catalogs above the scan bound can be queried.yevhen.kariakin, Artem Belikov
Whether the 25-page bound is right once the OpenCart 3 module answers product.list, and how long a full scan takes: up to 26 sequential requests of up to 10 s each, with no time budget for the whole question yet; to be measured on the local test shops.yevhen.kariakin
How the supplier price file flow (STOR-5) reads a large catalog without a local index.yevhen.kariakin