Final design
The end-to-end test separates model recommendations from evidence. Which conditions ensure the intended result?
Recommendation cards alone do not demonstrate course completion.
Starting point Rebuild the projection from the log and corrections.
Assumptions for the example case
A fictional voluntary practice course on fractions. A recommendation model suggests tasks; course completion follows a fixed assessment. Recommendations determine neither school grades nor access to education. All quantities, thresholds and operational targets in this design are illustrative assumptions.
Learning architecture with counterexamples
Projection and recommendation workers
Both attempts are logged first. Recompute the projection after a concurrency conflict. Assessment remains an API module with a fixed rule.
Test plan with expected outcomes
| Input and initial state | Expected result | Return to an earlier step |
|---|---|---|
| Learning-state version 4 → Two devices update in orders A/B and B/A with expected version 4 | One versioned update commits; the loser recomputes from the current log. Both distinct attempts are preserved. | Step 5/7 |
| V-50 assessed → Identical replay; different answer under V-50 | One assessment; changed replay produces a conflict. | Step 4 |
| P-50 with 10 tasks → 7/8/9 correct answers | Not passed / Passed / Passed. | Step 2 |
| Recommendation model unavailable → Request a recommendation, then complete the assessment with 8 correct answers | The fixed exercise sequence is available; the assessment is still Passed. | Step 6/10 |
Learning-state version 4 → Two devices update in orders A/B and B/A with expected version 4
- Expected result
- One versioned update commits; the loser recomputes from the current log. Both distinct attempts are preserved.
- Return to an earlier step
- Step 5/7
V-50 assessed → Identical replay; different answer under V-50
- Expected result
- One assessment; changed replay produces a conflict.
- Return to an earlier step
- Step 4
P-50 with 10 tasks → 7/8/9 correct answers
- Expected result
- Not passed / Passed / Passed.
- Return to an earlier step
- Step 2
Recommendation model unavailable → Request a recommendation, then complete the assessment with 8 correct answers
- Expected result
- The fixed exercise sequence is available; the assessment is still Passed.
- Return to an earlier step
- Step 6/10
End-to-end test and unresolved agreements
- First end-to-end path
- Replay an attempt, update the learning state concurrently, simulate recommendation failure and assess results at the 7/8 pass boundary.
- Clarify before real use
- Learning effectiveness, fairness, task quality, consent and real assessment requirements need review by the teaching team and users.
The end-to-end test separates recommendations from competency evidence.
Test model failure and the assessment threshold together.
Recommendation cards alone do not demonstrate course completion.
The attempt log records one effect; revisit step 4. 7 correct answers fail, 8 pass even during model failure; revisit steps 2 and 6.
- Alternative considered
- Testing only the happy path hides dependencies.
- Trade-off
- Test requires a fixed set of tasks.
- Reassess
- Educational acceptance remains outstanding.
Try it yourself
Identify which earlier steps to revisit for replay and the assessment threshold.
A hint for your attempt
Recommendation cards alone do not demonstrate course completion.
Compare with a possible solution
- Replay
- The attempt log records one effect; revisit step 4.
- Validation
- 7 correct answers fail; 8 pass even during model failure. Revisit steps 2 and 6.
Apply to your project
What corresponds to “The end-to-end test separates model recommendations from evidence” in your own project?
Start your own design
Choose a small case from your project. The template collects the ten design tasks and leaves space for your sketches, decisions, and open assumptions. You can edit it in your text editor or note-taking app.
Download design template (.md)Compare the ten tasks with the example case
Purpose and boundary
What corresponds to “Recommendations support a choice” in your own project?
In the example: Learners may skip tasks.
Requirements
What corresponds to “Eight out of ten is a fixed threshold” in your own project?
In the example: Completion follows correctly answered tasks.
Scale estimates
What corresponds to “Attempts determine event load” in your own project?
In the example: Test peak load and concurrent devices separately.
Interfaces
What is the equivalent of “An answer remains stable under its identifier” in your own project?
In the example: attemptKey binds the answer and task version.
Data and states
What corresponds to “A correction replaces the previous effect traceably” in your own project?
In the example: The correction event references the assessment.
Overall architecture
What corresponds to “Learning continues when the model fails” in your own project?
In the example: A fixed exercise sequence is an explicit fallback.
Critical flow
What corresponds to “Concurrent devices preserve every attempt” in your own project?
In the example: Accept attempts durably and update the projection with version checks.
Bottlenecks and trade-offs
What corresponds to “Click-through rate does not demonstrate learning outcomes” in your own project?
In the example: Investigate incorrect assessments and exam success separately.
Operations and security
What is the equivalent of “Reconstruction follows valid attempts” in your own project?
In the example: Rebuild the projection from the log and corrections.
Final design
What corresponds to “The end-to-end test separates model recommendations from evidence” in your own project?
In the example: Test model failure and the assessment threshold together.