---
title: Experience Contract Inference
description: What an experience contract means educationally, and how the case_experience_contract service turns an RSD into observable satisfaction tests.
created: 2026-11-27
updated: 2026-11-27
authors: ThinkingCap
topics: [Research And Development]
status: published
canonical: https://console.thinkingcap.com/guest/Research-and-Development/Skills/Inference/03-experience-contract-inference
service: case_experience_contract
queuetype: case_experience_contract
repo: tc-case-inferral
commit: 386c0a6bdface08e87298503edcd70254fc11e9d
source_revision: 386c0a6bdface08e87298503edcd70254fc11e9d
generated: 2026-11-26
order: 3
---

# The Experience Contract, in Plain Terms

## What an experience contract is

A Rich Skill Descriptor (RSD) says what a skill IS: its statement, the performance criteria that define competent performance, the evidence an assessor would accept, the knowledge behind it. The **experience contract** answers the next question: what must a learning experience PROVIDE for a learner to satisfy that skill's envelope?

Two commitments define the artifact:

- **It is checkable.** The heart of the contract is a set of satisfaction tests — statements that can be answered true or false of a concrete, proposed experience. Not "the learner will understand…", but "the experience places the learner in at least two staged assessments with a live observer."
- **It stops at the door.** The contract names the tests; it never designs the experience that would pass them. Judging a proposed build against exactly these tests is the NEXT service's question, not this one's.

## What the service starts from

- **The RSD itself — authoritative.** Skill statement, performance criteria, evidence of attainment, knowledge, learning outcomes, tools and equipment, occupational context. The contract is derived content: it may synthesize, but never invent requirements the RSD does not support.
- **The org tree around the node.** Ancestors give context — where this skill sits in the organization's framework. Descendants matter twice over: child nodes that already have their own RSDs mark ground this contract must NOT claim, and child nodes still un-mapped make the contract provisional (see "What complete means").
- The tree and the RSD are strictly read-only inputs; the service writes only its own artifact.

## How it reasons, section by section

**Context requirements.** The situations the learner must be placed in, drawn from the performance criteria and occupational context. If a criterion implies supervision, sterile procedure, or a live customer, the contract says the experience must put the learner there — context is a requirement, not a garnish.

**Practice requirements.** The observable things the learner must DO, each one tied to the criteria it covers. Practice means deeds performed, not content consumed.

**Evidence requirements.** The artifacts or performances an assessor could inspect afterwards — built from the RSD's evidence of attainment.

**Mastery signals.** What an assessor watches for to declare the envelope satisfied — the observable difference between a pass and a not-yet.

**Coverage map — the audit trail.** Every performance criterion of the RSD must be accounted for exactly once, each linked to the practice and evidence elements that cover it, with the criterion quoted verbatim from the RSD so nothing gets paraphrased away. A draft that misses a criterion, or covers one twice, is rejected outright — no contract is written.

**Boundaries — what it refuses to claim.** Where a child RSD below already owns ground, the contract says so explicitly, citing that child by id (or naming the ground `sibling` / `out_of_scope`). Overlap between a parent and child envelope is expected on a skill path; the contract adjudicates it here, in data, so reviewing those boundaries later is a data operation, not a code change.

**Prerequisites and estimates.** Entry capabilities the experience may assume (citing other RSDs where known), and honest ranges — seat time as a low/high pair, practice repetitions, assessment items — not false precision.

**Satisfaction tests — the door itself.** Checkable pass/fail statements, each answerable of a concrete experience. A contract with no satisfaction tests is no contract, and the service refuses to write one.

## What "complete" means

A standing principle applies: **any plan is provisional until all its ends are mapped.** If any node below the RSD's node is still un-mapped — traversal has not yet judged it terminal — the contract is written with `envelope_complete: false`. That flag is never the model's to declare: the service computes it from the tree and forces the value into the artifact. When the last child reaches a terminal state, the contract can be regenerated as complete — but only by an explicit re-run (a re-enqueue or version bump), never automatically.

## Guardrails against invention

The model is shown the RSD's criteria as a numbered list and the child envelopes as a closed set of citable ids, and it may reference only those. Afterwards the service re-checks everything deterministically: every criterion covered exactly once, every child citation real, completeness forced to the computed value. Any break means the draft is discarded with no row written — a failed attempt stays visible in the service's run ledger, and retry is a deliberate re-run, not a silent loop.

## What a reviewer receives

A successful run produces an active experience contract containing the summary, satisfaction tests, coverage map, context and practice requirements, evidence and mastery signals, boundaries, prerequisites, and provenance. The performance criteria are preserved verbatim so the reviewer can trace every obligation back to the RSD.

Earlier contracts are superseded rather than deleted. The run record also makes the outcome explicit: **complete**, **incomplete because a guard stopped it**, or **failed with a reason**. A reviewer never has to infer success from the mere presence of a new artifact.

## A worked example

Imagine an RSD for **"Selects appropriate wound dressing"** under a Nursing framework, with criteria like "Assesses wound using the facility scale" and "Selects dressing appropriate to wound stage," and one child node beneath it that already has its own RSD for negative-pressure therapy.

The contract the service writes says, educationally:

- The experience must place the learner in **staged wound-assessment situations** (context), not just show dressing charts.
- The learner must **perform** assessments and dressing selections (practice), each performance mapped to the criterion it satisfies.
- An assessor must be able to **inspect** the learner's staging rationale and selection notes (evidence), and **recognize mastery** when selections track the facility scale without prompting (mastery signals).
- **Negative-pressure therapy is explicitly NOT claimed** — the boundary cedes it to the child envelope that owns it.
- Because one node below is still un-mapped, the contract is marked **provisional** (`envelope_complete: false`).
- The door: satisfaction tests such as "the experience places the learner in at least two staged wound assessments with dressing selection observed."

The artifact itself (abridged, sanitized) looks like:

```json
{
  "summary": "Learner must assess wounds, choose dressings, and document rationale under supervision...",
  "envelope_complete": false,
  "experience_types": [{ "type": "guided scenario", "fit": "primary", "why": "Criteria demand decisions in context" }],
  "practice_requirements": [{ "action": "Select dressing for a presented wound stage", "covers_criteria": [1] }],
  "coverage_map": [
    { "criterion_index": 0, "criterion": "Assesses wound using facility scale", "covered_by": ["scenario walkthrough"] },
    { "criterion_index": 1, "criterion": "Selects appropriate dressing", "covered_by": ["Select dressing..."] }
  ],
  "boundaries": [{ "excludes": "Negative-pressure therapy", "reason": "Covered by child envelope", "belongs_to": "child_rsd:4220" }],
  "estimates": { "seat_time_minutes": [45, 90], "practice_reps": 4, "assessment_items": 6 },
  "satisfaction_tests": ["Experience places the learner in at least two staged wound assessments"],
  "provenanceNotes": "Folded in: RSD 4211, child_rsd:4220, ancestors Nursing / Clinical Skills"
}
```

Note what the JSON makes concrete: criteria are quoted verbatim, coverage is total and non-overlapping, the boundary names the child that owns the excluded ground, and every satisfaction test could be answered true or false of a real build.

## What this service deliberately does not do

- It does **not** design the experience — it stops at the door.
- It does **not** claim ground that belongs to child envelopes — boundaries say so in data.
- It does **not** declare its own completeness — the tree decides that.
- It does **not** modify the skill tree or the RSD, and it never deletes: a new contract supersedes the old one, which stays readable as history.

## Evidence and source note

Written from `tc-case-inferral` at commit `386c0a6bdface08e87298503edcd70254fc11e9d`. The contract's sections and their rules are defined in `src/contract/types.ts` (the artifact shape) and `src/contract/prompts.ts` (the authoring rules given to the model and the deterministic checks applied afterwards); the per-job flow — evidence gathering, the forced completeness computation, the single synthesis call, fail-soft handling — is in `src/contract/inferContract.ts`; the design principles (provisional-until-mapped, supersede-never-delete, boundaries adjudicated in data) are recorded in `schema/006_experience_contract.sql`. Operational mechanics (queue, leases, retries) are documented separately.
