Kaduno Feeds (kaduno-feeds)
Summary
Kaduno stores: each declared product feed (Google Merchant, Facebook, ACP) answers, parses and has valid items, and a sample of items matches the live product pages (price, availability, link, image).
Classification
- Category:
ECOMMERCE - Plugin id:
kaduno-feeds - Version:
1.0.0 - Target types:
WEBSHOP - Weight class:
MEDIUM - Risk level: not set on plugin object
- Browser required: No (HTTP / Node / other — see source)
- Tier / group: Tier 1 — HTTP-only
Schedule
- scheduleHints:
{ defaultInterval: '20 6 * * *', priority: 6 } - Prerequisites: None declared on this plugin.
Configurable inputs
Public keys are derived from inputSchema: z.object({ ... }) (underscore-prefixed keys are runtime-only and omitted here).
| Field | Notes |
|---|---|
sampleSize |
Items per feed compared with their live product page. Default 5, 1–20. |
staleAfterHours |
A feed file older than this that disagrees with the shop is reported as stale. Default 48. |
confirmAfterHours |
A price or availability mismatch is reported once it has lasted this long. Default 23 (the second daily run). 0 reports at once. |
timeoutMs |
Timeout for reading one feed file. Default 60 000. |
Runtime / injected config
declaredFeeds— the feeds in the target's latest accepted declared state ([{ channelType, url, status }]), added where the run is created (declaredFeedsConfigForin @teste-no/db). An empty list skips the run as not applicable; no list at all is a plain skip._priorRunMetrics—feedStatecarries each price / availability mismatch and when it was first seen (readsPriorRunMetrics): a mismatch raises a finding only once it has lastedconfirmAfterHours, or is still there after the feed was rebuilt.
What it does
- Runs as part of the worker test execution pipeline; results become
Runrows and may createFindingrecords. - Reads every feed the store declares (
declaredState.feeds, TESTE-NO-450). No declared feed: the run is SKIPPED as not applicable. It is part of the Kaduno platform test set once a store declares a feed, and is never shared across targets. - Formats.
google_merchantandfacebookare RSS 2.0 with theg:namespace;acpis tab-separated values with a header row (OpenAI's product feed columns). A feed of another channel type is read by what the file is (XML or TSV). A file is read up to 50 MB; a longer one is judged by the items before the cut, and the run says so (feed_truncated_<channel>: true, «feed truncated at 50 MB: validated the first N items» in the summary). A truncated feed raises noemptyfinding, and what was known about an item beyond the cut is kept unchanged. - Per feed.
- Does not answer (4xx, 5xx, no answer), after one more try 20 s later:
kaduno-feeds:unreachable:<channel>. When Kaduno itself reports the feed as never generated (pending,generatingor no status) and the URL answers 404:kaduno-feeds:not-generated:<channel>(WARNING). - Not a readable feed file (no
<rss>/<channel>, cut off before</rss>, an HTML page, a TSV withoutitem_id,url,price,availabilitycolumns):kaduno-feeds:invalid:<channel>. - Items that lack id, title, link, price or availability, or carry a price or availability no channel accepts:
kaduno-feeds:invalid-items:<channel>, with up to 10 item ids in the evidence. WARNING while fewer than 20 % of the items read are invalid (INVALID_ITEMS_CRITICAL_SHARE): the channel rejects those items, not the feed; from 20 % it takes the feed-fault severity below. - Item links on a host that is neither the target's own (its host, without
www., and its subdomains) nor the feed's:kaduno-feeds:link-offhost:<channel>(WARNING, one per feed), listing up to 10 items and the hosts. Those pages are never fetched, and those items are not sampled. - A valid file with no items:
kaduno-feeds:empty:<channel>(WARNING).
- Does not answer (4xx, 5xx, no answer), after one more try 20 s later:
- Per sampled item. The sample is the
sampleSizeitems whose id has the lowest stable hash (FNV-1a of a fixed salt and the id,sampleRank), plus every item that disagreed on the last run. It is chosen by id, not position (Kaduno writes the feed ordered by product id), so the same items are read every day while they stay in the feed; a new product enters it only when its own hash is lower. The item'slinkis fetched and the page's JSON-LDProduct/Offerread; the offer whoseskuis the item id is the one compared. Redirects are followed one hop at a time while they stay on the store's own hosts; a hop to another host is reported as the link's destination and not fetched.- Price differs by more than 0.01 from the price the feed says is charged (
sale_pricewhen present, elseprice):kaduno-feeds:price-mismatch:<channel>:<itemId>. - In stock on one side and out of stock on the other:
kaduno-feeds:availability-mismatch:<channel>:<itemId>. - Link and image problems are one finding per feed and kind, whose text lists the sampled items it hit (id, URL and what was seen, up to 10), so the finding stays one finding while the items in it change: the link redirects,
kaduno-feeds:link-redirect:<channel>; answers 404 / 410 / 5xx,kaduno-feeds:link-broken:<channel>; no image link,kaduno-feeds:image-missing:<channel>; the image answers 404 / 410 / 5xx (HEAD, then one GET),kaduno-feeds:image-broken:<channel>. All WARNING. - Not comparable is never a mismatch: no Product offer in the page's JSON-LD, a price stated without VAT (the feed is gross), another currency, pre-order / backorder, a page that refused or did not answer. Counted in
sample_unverified.
- Price differs by more than 0.01 from the price the feed says is charged (
- A mismatch is confirmed before it is reported. Kaduno rebuilds a feed once a day, on the store's schedule hour, and only when the catalogue changed. A price or stock change made since the last build is therefore an expected lag. The first run that sees a mismatch records it (
sample_pending); it becomes a finding when a later run still sees itconfirmAfterHoursafter the first, or after the feed was rebuilt. A confirmed item is read again on every run until it agrees or leaves the feed; when its page cannot be read, the finding stays open unchanged. - Stale. The declared state carries no schedule, and an unchanged catalogue is not rebuilt, so the age of the file alone is not a fault.
kaduno-feeds:stale:<channel>(WARNING) is raised when the file (Last-Modified, else the feed's own build date) is older thanstaleAfterHoursand a sampled item disagrees with the shop. The age is always in the metrics. - Severity. Unreachable, invalid, invalid items (from 20 % of the items) and confirmed mismatches are CRITICAL on a PRODUCTION target and WARNING on a preview or staging target (no channel reads a preview's feed). Everything else is WARNING. Escalation policy NONE.
- Metrics.
feeds_declared,feeds_ok,items_<channel>,feed_truncated_<channel>,feed_age_hours_<channel>,sample_checked,sample_mismatches(confirmed),sample_pending,sample_unverified,feedState. - Every request goes through
fetchTarget(safeFetch, TesteBot user agent); the target's HTTP Basic credentials are sent to the target's own host only. Images may be on any host (a CDN) and are read without credentials there.
Source
packages/test-plugins/src/plugins/kaduno-feeds.ts, packages/test-plugins/src/kaduno-feeds-logic.ts