System Design Atlas

Adaptive learning paths with verifiable recommendations

10 / 10Worked example

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

Learning interfaceAttempt + assessment
Learning APIIngestion + final assessment
Attempt logImmutable attempts
Relational learning-state storeProjection + E-50
Projection workerRecompute state
Recommendation workerModel or fallback
Task catalogueVersioned
Learning interface → Learning APIAttempt / assessment
Learning API → Attempt logCommitted attempt
Learning API → Relational learning-state storeAssessment + state
Attempt log → Projection workerNew attempts
Projection worker → Relational learning-state storeNewer projection version
Relational learning-state store → Recommendation workerFixed state
Task catalogue → Recommendation workerCatalogue version
Recommendation worker → Relational learning-state storeE-50

Both attempts are logged first. Recompute the projection after a concurrency conflict. Assessment remains an API module with a fixed rule.

Reuse the topology from step 6. Mark replay at the attempt log, model failure at the worker and the 8/10 threshold at final assessment. Link back to steps 2, 4 and 6.

Test plan with expected outcomes

Input and initial stateExpected resultReturn to an earlier step
Learning-state version 4 → Two devices update in orders A/B and B/A with expected version 4One 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-50One assessment; changed replay produces a conflict.Step 4
P-50 with 10 tasks → 7/8/9 correct answersNot passed / Passed / Passed.Step 2
Recommendation model unavailable → Request a recommendation, then complete the assessment with 8 correct answersThe 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.

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?

Transfer the decisions and their counterexamples to the editable design template.

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
  1. Purpose and boundary

    What corresponds to “Recommendations support a choice” in your own project?

    In the example: Learners may skip tasks.

  2. Requirements

    What corresponds to “Eight out of ten is a fixed threshold” in your own project?

    In the example: Completion follows correctly answered tasks.

  3. Scale estimates

    What corresponds to “Attempts determine event load” in your own project?

    In the example: Test peak load and concurrent devices separately.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.