Capabilities agents requested that the merchant doesn't declare
The headline output: for each capability agents’ negotiation requests actually named, minus the capabilities the merchant declares in their UCP profile. Sorted by estimated_impact_minor descending, request_count descending as tiebreak, unconditionally — there is no sort query parameter, the same money-first invariant the Lost Revenue Ledger enforces on its own default sort. estimated_impact_minor is 0 with impact_confidence=unmeasurable unless a specific failed/abandoned checkout’s cart snapshot could be demonstrably attributed to the missing capability — never a modeled or extrapolated figure. Rows with request_count below the small-count suppression threshold (default 5) are omitted.
/insights/capability_gapsAuthorizationBearer token (JWT) · headerrequiredJWT issued by the external IdP via the OAuth 2.0 authorization-code flow (Kinde in
production; a simulator in test). The client obtains it and sends it as a Bearer token on
every authenticated call. Sarvex's services verify it — issuer, audience, signature
(IdP JWKS), expiry — and read identity and tenant from its claims. Sarvex does not issue
or revoke these tokens. merchant_id/store_id are read from the verified claims (and the
merchant→store mapping), never from the URL. The operator scope is required for
/operator/*. Operators acting on a specific merchant pass the X-Operate-As header,
which is recorded in the audit log.
monthstringyyyy-MM. Defaults to the current UTC month.
store_idstringRestrict to one store. Omit for every store the merchant operates.
Capability gaps for the month, impact-sorted.
datainsights_capability_gap[]requiredShow propertiesHide properties
insights_capability_gapcapability_idstringA reverse-domain capability name taken verbatim from the negotiation's requested capability set (internal/pkg/ucp/types) — never free-form.
request_countintegerdistinct_agent_countintegerCount of distinct calling agent platforms (by negotiation platform_profile_uri) observed requesting this capability — the closest honest proxy this telemetry supports for "distinct agent" (no per-buyer or per-conversation identity exists on the wire).
surface_breakdownobjectfirst_seen_atstring<date-time>last_seen_atstring<date-time>estimated_impact_minorintegerimpact_confidenceinsights_impact_confidencemeasured: every session counted toward estimated_impact_minor had a cart snapshot demonstrably preceded by the missing capability. partial: some but not all counted sessions had a cart snapshot. unmeasurable: no session could be demonstrably attributed — estimated_impact_minor is 0, never a modeled or extrapolated figure (same no-estimation rule as the Lost Revenue Ledger).
measuredpartialunmeasurablemerchant_supportedbooleanWhether the merchant declares this capability — always false for a row that exists at all (a gap is by construction requested-minus-declared), kept as a stored, queryable field rather than an implied invariant.
remediation_availablebooleanWhether Sarvex can close this gap on the merchant's behalf. Always false today — nothing in this codebase lets Sarvex serve a UCP capability for a merchant; every gap requires merchant-side work.
recommended_actionstringMerchant-readable, imperative, no protocol jargon.
pagepagerequiredShow propertiesHide properties
cursorstring | nullrequiredhas_morebooleanrequiredAuthenticated but not permitted (e.g. non-operator on an operator route).
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequireddetailsobject | nullRequest body failed validation.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequireddetailsobject | null