0xBUFF / docs

Instructional policy

Choose teaching strategies and authorize operations through host policy.

Use planInstruction(host, request) to select a strategy without a model. Identical validated inputs under the same policy revision produce the same plan.

Host policy

Supply POLICY_REVISION, a session ID, mode, grants, consent and installed capabilities. An optional lesson reference contains documentRef, revision, visibility (public or restricted) and kind (lesson or assessment_criteria). Bind these values after authenticating the learner.

The request contains assistance (plan or generate) and optional intent. Host signals describe difficulty (low, medium, high) or progress (starting, practicing, reviewing). Signals can affect fixed prompts, never permissions.

Modes and strategies

ModeDefaultOther allowed strategies
guided_learningexplainquestion, hint, practice, reflect
ungraded_practicepracticequestion, hint, reflect
retrieval_coachingretrievequestion, reflect, practice
defense_preparationquestionreflect, hint
assessment_lockedpauseNone

A recognized but unsupported intent falls back to the default; prepare and process are recognized intents, not strategies. Unknown intents are invalid. Locked assessments return fixed public process guidance without calling any port.

Capabilities

OperationPurpose
lesson.readRead the exact host-bound revision
practice.suggestSuggest ungraded exercises
memory.recallRecall scoped active facts
memory.rememberPropose a new or updated narrative fact
memory.forgetPropose removal of an eligible model-owned fact

Each operation must be permitted by the mode ceiling, grants, consent and installed capabilities. Empty lists grant nothing. The session engine checks actual adapter availability too.

Defense preparation denies memory writes and forget; lesson access requires public assessment criteria. Locked mode denies all operations. The first applicable denial reason is returned: mode_ceiling, not_granted, no_consent, not_installed, lesson_unavailable or public_criteria_required.

Interpret a plan

A completed result contains the policy revision, mode, strategy, selection reason, capabilities, denials and fixed next actions. Fixed prompts cannot inspect work or provide generated feedback. Invalid data returns invalid_input. A pure generation request returns unavailable with reason model_unavailable unless locked.

See contracts for validation and result limits.

On this page