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
- 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.
catalog_find_productsandcatalog_get_productsread the store at the moment of the call throughproduct.searchandproduct.get. The answer says when it was read.catalog_query_productsscansproduct.listpage 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 sayspartial: true. The answer carriesread_at(when the scan started),total(how many products matched; a lower bound whenpartial),moreandscanned(how many products were examined). A non-progressing cursor is an error.- The
selectionform ofprice_change_proposeexpands the same way, then re-reads every selected product live;selection.changed[].listedPriceis 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 withcatalog_too_large. catalog.changedandPOST /module/eventsare 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.- 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_productsquestion 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 declaredmaxPageSize. - Known limitation: a catalog larger than the scan bound cannot be queried by filter. The answer is marked
partial: trueand its list and total are incomplete, and aselectionon such a catalog is refused withcatalog_too_large. The open follow-up is filter parameters onproduct.listin 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 answerproduct.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
| Fact | Where |
|---|---|
product.list takes cursor, limit, updatedSince, include; no filters | contracts/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 maxPageSize | api/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 2 | api/src/slices/mcp/server/domain/toolSchemas.lock.json |
| Eight model round-trips per turn; tool results unbounded | decision 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_productsreads from and answers it: from the store, live, with a bound. - Removes the Shopify webhooks' only consumer from decision 005; the
app/uninstalledwebhook stays. - Removes the inbound
catalog.changedfrom the operation shape. The read-onlycategoryIdsandmanufacturerIdofProductstay: the API filters by them.
Open questions
| Question | Owner |
|---|---|
| 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 |