learning:complete
learning family
Grants the attested caller credits and a pending reward for a course stage (or whole course) the substrate already records them completing — their own enrolment and their own account progress rows, never a device row; once per caller, course and stage. Platform courses only: any other course answers {ok:true, creditsGranted:0, reason:'course_not_rewarding'}. An author of the course's workspace earns nothing; a roles read that cannot answer refuses retryably ('unavailable'). Per-learner ceiling of 1 course and 10 lesson rewards a UTC day — past it, 'daily_limit'; a platform-wide budget of 100,000 course-reward credits a UTC day — past it, 'daily_budget' (retryable). Both limits are checked in the same statement as the grant
- Effect
- ask
- Awaits an outcome — the call returns the response below.
- Caller
- session
- The class of authority the caller must already hold, decided from the attested context with no round trip.
- Reversible
- no
- This cannot be undone. Dry-run it first where the contract allows.