{"generatedFrom":{"reasonCodeInventory":["src/lib/extensions/registry.ts (byStage() -> evaluator.reasonCodes)","src/lib/rules/trust.ts (TRUST_REASON_CODES, centrally attached)"],"fixtures":"src/lib/rules/__tests__/__fixtures__/golden.json","archetypeGrid":"src/lib/mock/merchants.ts (mockMerchants[].manifest.capabilities[].namespace)"},"goldenFixtureGeneratedAt":"2026-06-09T00:00:00.000Z","summary":{"total":43,"covered":38,"uncovered":5,"fixtureCoveredDirectly":23,"syntheticExceptionOnly":15},"reasonCodes":[{"code":"HIDDEN_PRODUCT","specId":"0001","sources":["com.os.retailagent.shopping.visibility","com.os.retailagent.shopping.eligibility"],"fixtureCovered":true,"covered":true},{"code":"REGION_POLICY_UNDECLARED","specId":"0001","sources":["com.os.retailagent.shopping.eligibility (buildManifest — manifest-build time, not a registered evaluator)"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/projections/__tests__/projections.test.ts","reason":"Emitted by buildManifest() at manifest-build time when MerchantProfile.servesRegions is undefined — a state the required TS field prevents for typed profiles; only reachable via JS/JSON-constructed profiles. golden.test.ts never calls buildManifest, so this can never appear in the fixture grid."},"covered":true},{"code":"REGION_RESTRICTED","specId":"0001","sources":["com.os.retailagent.shopping.visibility","com.os.retailagent.shopping.eligibility"],"fixtureCovered":false,"covered":false},{"code":"RESALE_CERTIFICATE_REQUIRED","specId":"0001","sources":["com.os.retailagent.shopping.eligibility"],"fixtureCovered":true,"covered":true},{"code":"TIER_RESTRICTION","specId":"0001","sources":["com.os.retailagent.shopping.eligibility"],"fixtureCovered":true,"covered":true},{"code":"WHOLESALE_ONLY","specId":"0001","sources":["com.os.retailagent.shopping.eligibility"],"fixtureCovered":true,"covered":true},{"code":"BELOW_MOQ","specId":"0002","sources":["com.os.retailagent.shopping.pricing"],"fixtureCovered":true,"covered":true},{"code":"BULK_TIER_APPLIED","specId":"0002","sources":["com.os.retailagent.shopping.pricing"],"fixtureCovered":true,"covered":true},{"code":"CALL_FOR_PRICE","specId":"0002","sources":["com.os.retailagent.shopping.pricing"],"fixtureCovered":true,"covered":true},{"code":"MEMBER_PRICE_APPLIED","specId":"0002","sources":["com.os.retailagent.shopping.pricing"],"fixtureCovered":true,"covered":true},{"code":"PURCHASE_LIMIT_EXCEEDED","specId":"0002","sources":["com.os.retailagent.shopping.pricing"],"fixtureCovered":true,"covered":true},{"code":"QUANTITY_INCREMENT_MISMATCH","specId":"0002","sources":["com.os.retailagent.shopping.pricing"],"fixtureCovered":true,"covered":true},{"code":"TEASER_LOCKED","specId":"0002","sources":["com.os.retailagent.shopping.pricing"],"fixtureCovered":true,"covered":true},{"code":"CUTOFF_PASSED","specId":"0003","sources":["com.os.retailagent.shopping.fulfillment_constraints"],"fixtureCovered":true,"syntheticException":{"testFile":"src/lib/rules/__tests__/fulfillment.test.ts","reason":"Requires an injected `now` past the merchant-local cutoff hour — GOLDEN_NOW isn't chosen relative to any merchant's cutoffHourLocal, so this can never appear in the fixture grid."},"covered":true},{"code":"FULFILLMENT_MODE_UNAVAILABLE","specId":"0003","sources":["com.os.retailagent.shopping.fulfillment_constraints"],"fixtureCovered":true,"covered":true},{"code":"HAZMAT_RESTRICTION","specId":"0003","sources":["com.os.retailagent.shopping.fulfillment_constraints"],"fixtureCovered":true,"covered":true},{"code":"INSUFFICIENT_TIME_BEFORE_CLOSE","specId":"0003","sources":["com.os.retailagent.shopping.fulfillment_constraints"],"fixtureCovered":false,"covered":false},{"code":"LEAD_TIME_EXCEEDS_NEED_BY","specId":"0003","sources":["com.os.retailagent.shopping.fulfillment_constraints"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/rules/__tests__/fulfillment.test.ts","reason":"Requires an asserted BuyerContext.needByDate — the static golden CONTEXT_GRID has none, so this can never appear in the fixture grid."},"covered":true},{"code":"ORDER_ACCEPTANCE_ENDED","specId":"0003","sources":["com.os.retailagent.shopping.fulfillment_constraints"],"fixtureCovered":false,"covered":false},{"code":"OVERSIZE_RESTRICTION","specId":"0003","sources":["com.os.retailagent.shopping.fulfillment_constraints"],"fixtureCovered":true,"covered":true},{"code":"PREPARATION_EXCEEDS_NEED_BY","specId":"0003","sources":["com.os.retailagent.shopping.fulfillment_constraints"],"fixtureCovered":false,"covered":false},{"code":"REGION_NOT_SERVED","specId":"0003","sources":["com.os.retailagent.shopping.fulfillment_constraints"],"fixtureCovered":true,"covered":true},{"code":"STORE_CLOSED","specId":"0003","sources":["com.os.retailagent.shopping.fulfillment_constraints"],"fixtureCovered":false,"covered":false},{"code":"BACKORDER_AVAILABLE","specId":"0005","sources":["com.os.retailagent.shopping.inventory"],"fixtureCovered":true,"covered":true},{"code":"LOCATION_OUT_OF_STOCK","specId":"0005","sources":["com.os.retailagent.shopping.inventory"],"fixtureCovered":true,"covered":true},{"code":"LOW_STOCK","specId":"0005","sources":["com.os.retailagent.shopping.inventory"],"fixtureCovered":true,"covered":true},{"code":"OUT_OF_STOCK","specId":"0005","sources":["com.os.retailagent.shopping.inventory"],"fixtureCovered":true,"covered":true},{"code":"PREORDER_NOT_YET_BUYABLE","specId":"0005","sources":["com.os.retailagent.shopping.inventory"],"fixtureCovered":true,"covered":true},{"code":"RESERVATION_EXPIRED","specId":"0005","sources":["com.os.retailagent.shopping.inventory"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/rules/__tests__/inventory.test.ts","reason":"Requires an injected expired InventoryHold via setInventoryHolds() — not reachable from the static catalog fixture grid."},"covered":true},{"code":"STOCK_STALE","specId":"0005","sources":["com.os.retailagent.shopping.inventory"],"fixtureCovered":true,"covered":true},{"code":"QUOTE_CONTEXT_CHANGED","specId":"0007","sources":["com.os.retailagent.shopping.quote"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/rules/__tests__/quote.test.ts","reason":"Requires re-validating a quote against a changed BuyerContext — not produced by the fixture grid."},"covered":true},{"code":"QUOTE_EXPIRED","specId":"0007","sources":["com.os.retailagent.shopping.quote"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/rules/__tests__/quote.test.ts","reason":"Requires issueQuote + validateQuote with an injected expired `now` — not produced by the fixture grid."},"covered":true},{"code":"QUOTE_FORGED","specId":"0007","sources":["com.os.retailagent.shopping.quote"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/rules/__tests__/quote.test.ts","reason":"Requires an injected mismatched/forged quote payload — not produced by the fixture grid."},"covered":true},{"code":"QUOTE_HONORED_GRACE","specId":"0007","sources":["com.os.retailagent.shopping.quote"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/rules/__tests__/quote.test.ts","reason":"Requires validating a quote inside its honor-grace window after nominal expiry — not produced by the fixture grid."},"covered":true},{"code":"QUOTE_ISSUED","specId":"0007","sources":["com.os.retailagent.shopping.quote"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/rules/__tests__/quote.test.ts","reason":"Golden fixtures call rule functions directly and never invoke evaluateOffer/the QUOTE stage."},"covered":true},{"code":"QUOTE_PARTIALLY_HONORED","specId":"0007","sources":["com.os.retailagent.shopping.quote"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/rules/__tests__/quote.test.ts","reason":"Requires a partial-honor HonorPolicy (Grocery C) exercised at validate time — not produced by the fixture grid."},"covered":true},{"code":"QUOTE_STOCK_LOST","specId":"0007","sources":["com.os.retailagent.shopping.quote"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/rules/__tests__/quote.test.ts","reason":"Requires stock to change between quote issuance and validation — not produced by the fixture grid."},"covered":true},{"code":"CLOCK_SKEW_SUSPECTED","specId":"0008","sources":["com.os.retailagent.shopping.trust"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/rules/__tests__/trust.test.ts","reason":"Requires computedAt > now + tolerance."},"covered":true},{"code":"DATA_STALE","specId":"0008","sources":["com.os.retailagent.shopping.trust"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/rules/__tests__/trust.test.ts","reason":"Requires a `now` past (computedAt + ttlSeconds*1000) for the outer trust envelope — the golden grid’s GOLDEN_NOW/TTL combination never crosses that boundary."},"covered":true},{"code":"ISSUER_UNKNOWN","specId":"0008","sources":["com.os.retailagent.shopping.trust"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/rules/__tests__/trust.test.ts","reason":"Requires a keyId not present in the merchant manifest's keys[]."},"covered":true},{"code":"KEY_EXPIRED","specId":"0008","sources":["com.os.retailagent.shopping.trust"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/rules/__tests__/trust.test.ts","reason":"Requires a signing key with validTo < now."},"covered":true},{"code":"SIGNATURE_INVALID","specId":"0008","sources":["com.os.retailagent.shopping.trust"],"fixtureCovered":false,"syntheticException":{"testFile":"src/lib/rules/__tests__/trust.test.ts","reason":"Requires injecting a mismatched payload into verifyEnvelope."},"covered":true},{"code":"TRUST_SIMULATED","specId":"0008","sources":["com.os.retailagent.shopping.trust"],"fixtureCovered":true,"covered":true}],"archetypes":[{"merchantId":"m_boutique_001","merchantName":"Boutique A","headlineTier":2,"cells":{"0000":{"specId":"0000","exercised":true,"namespaces":[],"regionPolicyDeclared":null},"0001":{"specId":"0001","exercised":true,"namespaces":["com.os.retailagent.shopping.visibility","com.os.retailagent.shopping.eligibility"],"regionPolicyDeclared":true},"0002":{"specId":"0002","exercised":true,"namespaces":["com.os.retailagent.shopping.member_pricing","com.os.retailagent.shopping.pricing"],"regionPolicyDeclared":null},"0003":{"specId":"0003","exercised":true,"namespaces":["com.os.retailagent.shopping.fulfillment_constraints"],"regionPolicyDeclared":null},"0005":{"specId":"0005","exercised":true,"namespaces":["com.os.retailagent.shopping.inventory"],"regionPolicyDeclared":null},"0007":{"specId":"0007","exercised":false,"namespaces":[],"regionPolicyDeclared":null},"0008":{"specId":"0008","exercised":true,"namespaces":["com.os.retailagent.shopping.trust"],"regionPolicyDeclared":null},"0013pt1":{"specId":"0013pt1","exercised":null,"namespaces":[],"regionPolicyDeclared":null}}},{"merchantId":"m_wholesale_002","merchantName":"Wholesale B","headlineTier":2,"cells":{"0000":{"specId":"0000","exercised":true,"namespaces":[],"regionPolicyDeclared":null},"0001":{"specId":"0001","exercised":true,"namespaces":["com.os.retailagent.shopping.visibility","com.os.retailagent.shopping.eligibility"],"regionPolicyDeclared":true},"0002":{"specId":"0002","exercised":true,"namespaces":["com.os.retailagent.shopping.member_pricing","com.os.retailagent.shopping.bulk_pricing","com.os.retailagent.shopping.pricing"],"regionPolicyDeclared":null},"0003":{"specId":"0003","exercised":true,"namespaces":["com.os.retailagent.shopping.fulfillment_constraints"],"regionPolicyDeclared":null},"0005":{"specId":"0005","exercised":true,"namespaces":["com.os.retailagent.shopping.inventory"],"regionPolicyDeclared":null},"0007":{"specId":"0007","exercised":true,"namespaces":["com.os.retailagent.shopping.quote"],"regionPolicyDeclared":null},"0008":{"specId":"0008","exercised":true,"namespaces":["com.os.retailagent.shopping.trust"],"regionPolicyDeclared":null},"0013pt1":{"specId":"0013pt1","exercised":null,"namespaces":[],"regionPolicyDeclared":null}}},{"merchantId":"m_grocery_003","merchantName":"Grocery Retail C","headlineTier":3,"cells":{"0000":{"specId":"0000","exercised":true,"namespaces":[],"regionPolicyDeclared":null},"0001":{"specId":"0001","exercised":true,"namespaces":["com.os.retailagent.shopping.visibility","com.os.retailagent.shopping.eligibility"],"regionPolicyDeclared":true},"0002":{"specId":"0002","exercised":true,"namespaces":["com.os.retailagent.shopping.member_pricing","com.os.retailagent.shopping.bulk_pricing","com.os.retailagent.shopping.promo_pricing","com.os.retailagent.shopping.pricing"],"regionPolicyDeclared":null},"0003":{"specId":"0003","exercised":true,"namespaces":["com.os.retailagent.shopping.fulfillment_constraints"],"regionPolicyDeclared":null},"0005":{"specId":"0005","exercised":true,"namespaces":["com.os.retailagent.shopping.inventory"],"regionPolicyDeclared":null},"0007":{"specId":"0007","exercised":true,"namespaces":["com.os.retailagent.shopping.quote"],"regionPolicyDeclared":null},"0008":{"specId":"0008","exercised":true,"namespaces":["com.os.retailagent.shopping.trust"],"regionPolicyDeclared":null},"0013pt1":{"specId":"0013pt1","exercised":null,"namespaces":[],"regionPolicyDeclared":null}}}],"specOrder":["0000","0001","0002","0003","0005","0007","0008","0013pt1"],"publishedSpecs":{"0000":{"title":"Protocol Foundations, Context & Conformance","namespace":"…core","specFile":"specs/0000-foundations.md"},"0001":{"title":"Eligibility & Visibility Semantics","namespace":"…eligibility / …visibility","specFile":"specs/0001-eligibility.md"},"0002":{"title":"Contextual Pricing (Member + Bulk)","namespace":"…member_pricing / …bulk_pricing","specFile":"specs/0002-contextual-pricing.md"},"0003":{"title":"Fulfillment Feasibility","namespace":"…fulfillment_constraints","specFile":"specs/0003-fulfillment.md"},"0005":{"title":"Inventory & Availability","namespace":"…inventory","specFile":"specs/0005-inventory.md"},"0007":{"title":"Quote Integrity & Price Lock","namespace":"…quote","specFile":"specs/0007-quote-integrity.md"},"0008":{"title":"Trust, Provenance & Freshness","namespace":"…trust","specFile":"specs/0008-trust-provenance.md"},"0013pt1":{"title":"Decision Trace (three audiences)","namespace":"…trace","specFile":"specs/0013-intent-capture.md"}}}