Skip to main content
IntentLang
← All examples

CreateStudyPlan

examples/CreateStudyPlan.intent

CreateStudyPlan.intent
1# CreateStudyPlan.intent , Distributed + failure semantics (Gap 3).
2# Partial failure is modeled explicitly: idempotency, timeout, retry, delivery, dedup,
3# and compensation. IntentLang checks the DECLARED failure policy is safe; OpenThunder
4# verifies the implementation honors it. See docs/intent-graph.md.
5
6mission CreateStudyPlan
7
8title "Create a study plan from uploaded material"
9
10command CreateStudyPlan
11 idempotency_key Request.id
12 timeout 30 seconds
13 retry at_most 2
14 with exponential_backoff
15
16event StudyPlanCreated
17 delivery at_least_once
18 ordered_by Learner.id
19
20on duplicate StudyPlanCreated
21 ignore when Event.id was_processed
22
23on permanent_failure
24 compensate RemovePartialStudyPlan
25 notify Learner
26 preserve UploadedMaterial
Draft syntax. This file is illustrative and does not run yet.