Skip to content

JNY-COM-CAT-006A member accepts a contextual cart suggestion

Markdown

JNY-COM-CAT-006

A member accepts a contextual cart suggestion

Markdown
  • DocumentDraft
  • Product intentProposed
  • ImplementationObserved

KindJourneyProduct areaCommerceModuleCatalog and Selling ConfigurationRevision1End-to-endNone

Read atservices-commerce c8b66a98

The Formal Contract

The narrative above explains; the sections below are authoritative — the rules, scenarios and tests this document binds.

Goal
Add a relevant suggested item and retain its conversion reference.

Steps

#SurfaceActionCapabilityExpectedProvenance
1activateRecommendationRuleActivate the rule bound to the cart placementCAP-COM-CAT-019The active rule becomes available for cart evaluationtest
2evaluateOffersEvaluate suggestions for the member’s t-shirt cartCAP-COM-CAT-020A twelve-dollar mug presentation returns with a fifteen-minute response expirytest
services-commerce:modules/recommendations/tests/e2e/offers.e2e.spec.js#answers one offer: the mug, from the listing, priced $12.00 by the quote, live, to add to the checkout, expiring with the quote
3acceptOfferAccept the mug presentationCAP-COM-CAT-020Checkout gains the mug with its offer referencetest
services-commerce:modules/recommendations/tests/e2e/offers.e2e.spec.js#adds the mug to the checkout with the offer on the item when accepted
4getRecommendationRulePerformanceInspect performance after order acceptanceCAP-COM-CAT-019The report associates one shown, accepted and converted twelve-dollar linetest
services-commerce:modules/recommendations/tests/e2e/offers.e2e.spec.js#shows one shown, one accepted and one converted line worth $12.00 on the rule’s performance once the order is accepted

Alternate and Failure Paths

PathFrom stepConditionPath takenOutcomeProvenance
alternate2A recent mug dismissal remains within the suppression intervalEvaluation excludes the dismissed candidateThe default dismissal interval suppresses repetitiontest
failure3First response occurs after the presentation expiresThe acceptance fails validation identifying when the offer expiredThe checkout receives no new itemtest
services-commerce:modules/recommendations/tests/e2e/offers.e2e.spec.js#is refused 409 offer_expired, naming when it expired

Assertions

IdStatementProvenance
01Activation requires an appropriate placement binding before offers can be produced.test
services-commerce:modules/recommendations/tests/e2e/recommendation-rules.e2e.spec.js#refuses to activate a rule bound to no placement, 409 no_placement
02Repeated acceptance does not add another item and subsequent evaluation suppresses the accepted candidate.test
services-commerce:modules/recommendations/tests/e2e/offers.e2e.spec.js#offers nothing a second time: the mug is in the checkout and was accepted

End-to-end policy: none: Recommendation surfaces and approved scope remain absent; current journey evidence comes from the API tests.

The Markdown files under specs/ in rhythmsoftware/rhythm-v2-docs are the canonical source of truth. This reader is a generated, read-only projection of them.