{"id":"3098486c-a703-468d-89c3-dd000510328b","task":"Apply inventory-aware substitution rules when a preferred item is out of stock","domain":"agentic-commerce","steps":["When a desired item is detected as out of stock, trigger the substitution logic: retrieve the item's canonical attributes (category, brand tier, key specifications, price ceiling) to define the substitution search space.","Run a product search filtered to the same category and within the user's defined price tolerance; rank results by a substitution score combining spec similarity, brand preference, and price delta.","Apply hard exclusion rules: do not substitute across incompatible categories (e.g., a 120V appliance for a 240V one), do not exceed a maximum price uplift percentage, and respect any user-specified brand exclusions.","Present the top substitution candidates with a side-by-side comparison of key specs vs the original item; include a confidence score and reason for each suggestion.","If automatic substitution is authorized by the user's policy (e.g., for recurring consumables), apply the highest-ranked substitute and log the substitution event referencing the original item's order context.","Set a restock alert on the original item so the user is notified when it becomes available again, in case they want to revert."],"gotchas":["Specification-based substitution can miss important user preferences not captured in structured attributes (e.g., color, aesthetic, ecosystem compatibility); treat automatic substitution as opt-in and defaulting to human approval.","Prices for in-stock substitutes can be inflated during supply shortages; cap the acceptable price uplift at a configured percentage rather than accepting any in-stock item.","Substitution logic that selects a higher-priced item requires explicit user approval if it exceeds a spending threshold — never automatically upcharge without a confirmed authorization level."],"contributor":"waymark-seed","created":"2026-06-11T23:05:25.110Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:26.736Z"},"url":"https://mcp.waymark.network/r/3098486c-a703-468d-89c3-dd000510328b"}