Capstone - Milestone 4: report, decision, defense and self-assessment

Study time
≈ 7 h (estimate)
Needs
L2-M08-L03
Updated
2026-11-04

Progress is saved in this browser only. No account, nothing is sent to a server.

Draft · reviewed by AI, not yet by a person. Content may change. English translation: AI-assisted, not human-reviewed.
On this page

Module: L2-M08 (capstone) · Duration: ~7 hours (estimate) · Previous: Milestone 3 · Next: L3-M01-L01 (Level 3, not yet written)

1. Introduction

Evidence is only worth something when the decision maker can read it and knows where it stops. The last milestone turns the milestone 3 results into four things: a report generated from files, a decision record signed by one person, a defense session where you answer questions about the limits of your own platform, and a self-score against the rubric, with evidence. You finish by being able to say: whether rc can be released, based on what, what is not yet known, and what would change the conclusion.

2. Objectives

  1. Generate the report from the files in out/, with no hand-typed figures, and regenerate it byte for byte.
  2. Point out the rc defect families with deterministic evidence (counts by version, slice and check type), and only then explain the cause.
  3. Write the decision record: the decision, the decision maker, the grounds, the limits, the conditions for changing the decision; consistent with the gate.
  4. Defend the result against questions about simulation, sample size, the judge and scope.
  5. Self-score against the rubric, each score with evidence and one real weakness.

3. Prerequisites

  • The milestone 3 platform runs to the end (python -m evalplatform --out out gives the gate's exit code).
  • The capstone's rubric.md.

4. Parts of milestone 4

4.1 A report from files

report.write_report(out) reads the files of milestones 2 and 3 and writes out/report.md. Principle: every number has a file as its source, and a rerun gives the same bytes (L2-M07-L05 on reports from a manifest). The report has seven parts: configuration, results by slice on the test set, the A/A check, suspected defects, items for a person to read, judge calibration, limits. Three conventions:

  • Decimal numbers are written with a comma (62,5%) following util.pct; the project's checks recompute every table cell from the records and compare strings.
  • The report states clearly that it is simulated and that the judge only flags while a person decides.
  • A slice with too few items shows n/a in the statistics columns and is not dropped from the table: for the reader, a dropped row looks like "checked and fine".

4.2 From evidence to defects

The gate says where there is a problem; the "suspected defects" table says what kind of problem: the number of failed checks by (version, slice, check type). The table is paired by item and has an exact p for each check type: "rc only / stable only" counts the items where only one version fails. A defect family needs: at least 3 items where only rc fails and stable has none, or an exact p of 0.05 or less; and it must trace to a statement in a clause. A single item (for example 1/0) is only a suspicion or noise shared by both versions. A stable count other than 0 is a shared defect or background noise. Each defect family needs three things: the clause (T1-T8), the counts with p, and the severity. A small slice can be INCONCLUSIVE at the gate while the deterministic evidence is still clear: if stable never violates and rc violates on k items out of k, that is stronger evidence than the wide interval of a small slice (with k losses and no wins, the exact p is 2 divided by 2 to the power k). Only after you have counted may you open product/hocvui_tutor/tutor.py to explain the cause in the report (the project's black-box rule).

4.3 The decision record

The decision belongs to a person. The record deliverables/decision.md has the lines Quyết định: ("Decision"; CHẶN, PHÁT HÀNH or CÓ ĐIỀU KIỆN, that is BLOCK, RELEASE or CONDITIONAL), Người quyết định: ("Decision maker"; a name, not "auto" or "judge"), Ngày: ("Date"; ISO), then three sections: Căn cứ (grounds: slices, numbers, files), Giới hạn (limits: simulation, sample size, what was not checked) and Điều kiện để đổi quyết định (conditions for changing the decision: the concrete work and the evidence that would change the conclusion). The consistency rule: if the gate does not return 0 and the decision is not CHẶN (BLOCK), the record needs a line Ghi đè cổng: ("Gate override") with a written reason. Every percentage in the record must appear in the generated report: a hand-typed number is where copy errors begin. And the gate releases nothing: even when the gate is PASS, a person still records the decision. Two different sets of words: PASS, FAIL, INCONCLUSIVE, ERROR are the gate's result; CHẶN, PHÁT HÀNH, CÓ ĐIỀU KIỆN (BLOCK, RELEASE, CONDITIONAL) are the person's decision.

4.4 Defense

Prepare a 10-minute presentation and 10 minutes of questions. Common questions:

  • "How do you know the judge is good enough to use?" (calibration on test, false accepts and the Wilson interval, kappa, the unparsed rate)
  • "This slice has only 11 items, why trust the result?" (the interval, INCONCLUSIVE, the extra deterministic evidence)
  • "If the margin changes from 0.05 to 0.10, how does the gate change, and who is allowed to change it?"
  • "Which clause did you check weakest, and why?"
  • "Which conclusions do not carry over to a real model?" (everything here is simulated)
  • "Where did you use an AI assistant, and how did you verify it?"

4.5 Self-assessment

Score each dimension of rubric.md, each score with evidence (a real file path) and one weakness. Write it in deliverables/self-score.json; the keys design, dataset, runner, judge, comparison, report, self_assessment go inside dimensions:

{"dimensions": {"design": {"score": 3, "evidence": ["deliverables/design.md"], "weakness": "..."}},
 "total": 98.3,
 "mandatory": {"M1": true, "M2": true},
 "passed": true}

(abridged: all seven dimensions and M1-M7 are required). score is 0-3, evidence is a list of real paths, weakness is one sentence; total is rounded to one decimal place; passed is true when the total is ≥ 70 and every mandatory criterion is true. A weakness at level 3 is a real weakness: a limit that makes the conclusion less reliable than the reader assumes, not "a chart could be added".

4.6 Manual rerun (optional)

If you want to run the gate on GitHub, use a manual trigger only: on: workflow_dispatch (GitHub Docs [R4]), and keep the template in deliverables/, not in .github/. No step costs money, and an exit code other than 0 from the gate is the correct result for this rc, so write that in the README so readers do not think the process is broken.

5. Hands-on: build the report and write the decision

python -m evalplatform --out out
echo "exit=$?"

Output (copied from a real run with the reference solution, 2026-11-04, Python 3.14.6 and 3.12.14):

gate: FAIL
exit=1

Then: open out/report.md and read it from top to bottom as the decision maker; compare the "suspected defects" table with clauses T1-T8; write deliverables/decision.md (section 4.3) and deliverables/self-score.json (section 4.5); run:

python -m pytest

When every milestone is done, all 198 checks pass. If AC4.7 fails because the decision is not consistent with the gate, or AC4.8 fails because a hand-typed number is not in the report: that is the check doing its job.

6. QA perspective

  • What can go wrong: a "release" decision because most slices improved; reporting a non-significant difference as real; not stating the limits of the evidence; hand-copying numbers into the decision record; writing the name of a tool instead of a person; a self-score with no evidence; changing the margin to make the gate PASS.
  • What this platform does not know: how a real rc would do with real students. The simulation shows you how to measure, not the numbers of the real product.

7. Milestone 4 deliverables

starter/out/report.md               (tạo tự động; cùng các tệp out/ khác)
starter/deliverables/design.md      (mốc 1)
starter/deliverables/own_cases.jsonl (mốc 2)
starter/deliverables/decision.md
starter/deliverables/self-score.json
starter/deliverables/explore-notes.md, dataset-notes.md, hand-check.md (mốc 1 đến 3; người chấm đọc)
README của bạn: cách chạy, cấu hình, giới hạn đã biết, ghi chú "mã thoát 1 là kết quả đúng"

Criteria: pass tests/test_m4_report.py (AC4.1-AC4.10) and tests/test_hygiene_determinism.py (AC5.1-AC5.4); every mandatory criterion M1-M7 of the rubric has evidence.

8. Self-check questions

0/13 done · Results are kept in this browser only.

P01 · Short answer

Why must the report of milestone 4 be generated from the files in out/, and the decision record contain only percentages that appear in the report, instead of the author typing the numbers in for speed?

P03 · Multiple choice

Which sentence uses the capstone's terms correctly? (CHẶN is block, PHÁT HÀNH release, CÓ ĐIỀU KIỆN conditional.)

P04 · True or false

When the gate returns PASS (exit code 0), the platform has proved that rc is safe, so a person does not need to write a decision record.

P05 · Fill in the blank

A learner self-scores by rubric.md (weights: design 10, dataset 15, metric functions and runner 15, judge 20, comparison and gate 20, report and decision 15, self-assessment 5; the points of each dimension are the level reached / 3 × the weight) with the levels: design 3, dataset 2, runner 3, judge 2, comparison 2, report 2, self_assessment 1. total rounded to one decimal place is ___. If every mandatory criterion M1-M7 is correct then passed is ___; if M5 is false then passed is ___.

P06 · Put in order

Put the steps from the platform run to the decision record in order, following the project's black-box rule and §4.1-§4.3.

  1. Record each defect family with its clause, the counts with p, and the severity
  2. Only then open product/hocvui_tutor/tutor.py to explain the cause in the report
  3. Read the "suspected defects" table: the number of failed checks by (version, slice, kind of check)
  4. Write deliverables/decision.md, signed by a person, then self-score
  5. Pick the rc rows that fail where stable does not, and trace each row to a sentence of a clause T1-T8
  6. Run python -m evalplatform --out out and read the gate line and the slice table of out/report.md

P07 · Match

Match each question of the defence (§4.4) with the evidence you would point to.

P09 · Essay

A reader asks: "If the real rc ran with real pupils, which conclusions in this decision record would still hold?" Write 5-8 sentences for the Limits ("Giới hạn") section of the decision record.

P10 · Recall

Lesson: L2-M07-L05

L2-M07-L05 §4.4 and §5.3: lint_report checks the decided_by field of a report. What can it do and what does it not know?

P12 · Short answer

The check slice has 8 items on test: rc loses 5 items and wins 0 items; stable violates the number check on no item. The gate gives INCONCLUSIVE for this slice. Do you record a defect family in the report, and what is the exact p?

P13 · Select all that apply

A simulated "suspected defects" table paired by item (the number of items where only rc fails / only stable fails, and the exact p of the sign test). Select every row that meets the defect family criterion of §4.2 (assume each row traces to a sentence of a clause).

Row Only rc Only stable p
A: check, number 3 0 1/4
B: hint, contains_none 2 0 1/2
C: concept, contains_all 6 4 193/256
D: safety, no_phone 9 1 11/512
E: offtopic, contains_all 1 0 1

9. Summary

  • Milestone 4 turns evidence into a decision: a report from files, one person's decision record, a defense, a self-score.
  • Defect families are shown with deterministic counts by version, slice and check type; the cause is explained only afterwards.
  • The decision is consistent with the gate; a gate override needs a written reason; every number in the record is in the report.
  • Finishing the capstone means you have done the full job of a Level 2 AI Quality Engineer on a simulated product, not a promise about career results.

10. References

See this module's references.md.