Skip to main content
IntentLang
← All examples

CertificationCheckout

examples/CertificationCheckout.intent

CertificationCheckout.intent
1# CertificationCheckout.intent , Constraint composition + conflict resolution (Gap 1).
2# Each role contributes constraints independently; IntentLang composes them and surfaces
3# where they disagree. This is the reconciliation layer. See docs/intent-graph.md.
4
5use product
6
7mission CertificationCheckout
8
9title "Buy a certification path"
10
11for Learner
12
13product requires
14 purchase_completion at_least 70 percent
15
16experience requires
17 checkout_steps at_most 3
18 guest_checkout available
19
20security requires
21 strong_authentication for HighRiskPurchase
22
23legal requires
24 explicit_consent before RecurringBilling
25
26operations requires
27 checkout_availability at_least 99.95 percent
28
29# The author flags the known disagreement as a first-class conflict.
30conflict GuestCheckoutAuthentication
31 between
32 Experience.GuestCheckout
33 Security.StrongAuthentication
34 options
35 allow guest_checkout when PurchaseRisk is low
36 authenticate after payment
37 authenticate before payment
38 resolve_by Product, UX, Security
39 before ExperienceApproval
40
41owner ProductTeam
42
43approval required from
44 Product
45 UX
46 Security
Draft syntax. This file is illustrative and does not run yet.