Module L2-M07 exercises: A reproducible experiment report for HocVui Tutor, from a frozen plan, a paired comparison and a trade-off table to a regression gate

Study time
≈ 4 h (estimate)
Updated
2026-11-04
Draft · reviewed by AI, not yet by a person. Content may change. English translation: AI-assisted, not human-reviewed.
On this page

Estimated time: ~4 hours for someone who has finished the five independent exercises of L01-L05 (an estimate, not yet measured with real learners). Main tools: lab.design, lab.stats, lab.compare, lab.selection, lab.tradeoff, lab.pipeline, lab.gate, lab.workflow, lab.report in code-labs/l2-m07. Every system, cost, latency and result in the lab is simulated (a table of numbers and a SHA-256 coin flip with a known probability): no model calls, no API key needed.

Main hands-on assignment

Business context

The HocVui team (fictional) is using system A for HocVui Tutor and has two candidates: system B (premium) and system S (small and fast). The previous owner left one line in the ticket: "B beats A by 6 points, switch to B". That line does not say which items it was measured on, how many runs, whether the plan was written in advance, how much more expensive and slower B is, or whether the gate blocks correctly. You need to build a reproducible experiment report for this comparison: a plan frozen with a hash, a paired comparison with an exact p-value and an interval, a quality, cost and latency trade-off table, a working regression gate, and a report with the full configuration, numbers that can be recomputed, deviations from the plan and a person's decision; then answer: is B worth switching to, is S usable, and how far can each number be trusted?

Problem to solve

One run on one dataset can be wrong even in sign; a significant test does not necessarily clear the practical margin; two intervals placed side by side are not a paired comparison; a green gate can be green because of || true; a number in the report can be a hand-typed number. Your job is to measure each part separately under the fixed configuration below, say what each part does not prove, and give an evidence-based decision recorded under a person's name.

Input data

The data is in code-labs/l2-m07/data/ (dataset_v1.jsonl, dataset_v2.jsonl, datasets.json, models.json, variants.json, plan_example.json, gate_workflow_sample.yml) and is fictional; do not edit lab/, data/ or exercises/. The systems: A is tutor-a-2026-03-01, B is tutor-b-2026-06-15, S is tutor-s-2026-06-15, and tutor-c-2026-05-01 (C) appears only in the trade-off table.

The fixed configuration (so every submission can be reproduced and compared):

Item Value
Plan (plan.json) plan_id AS-PLAN-01; baseline A with prompt p00; two candidates B and S with prompt p00; changed_factor model; primary metric pass_rate, secondary metrics p95_latency_ms and cost_per_success; dataset v1 with its real fingerprint; n_items 200; reps 3; alpha 1/20; margin 1/20; expected_difference 0.1; assumed_var_diff 0.15; power 0.8; test sign+paired_bootstrap; correction holm; n_comparisons 2; stopping_rule fixed_n. The text fields (question, decision_rule, decided_by) are yours
Runs dataset v1 (200 items), 3 runs per item, seed as1, design.config_from_plan for each candidate; one extra run of B on dataset v2 (for Task 4) and one run of B with seed as2 (for Task 5)
Bootstrap 1000 resamples (the default of lab.stats) for the interval of the paired difference; 300 resamples for the interval of the trade-off table (tradeoff.row)
Deviation trial runs (Task 1) (i) n_items 150 and margin 1/50; (ii) add the metric bleu; (iii) a plan_hash made of 64 digits of 0 and 3 comparisons; (iv) change nothing
Winner's curse (Task 1) selection.repeat(items, 10, "asw") on v1
Power measured by repetition (Task 2) compare.power, 40 repetitions, 3 runs per item, seed prefix pw3, for B against A, S against A, and A against A with prompt p01
Trade-off table (Task 3) tradeoff.row for four systems, 3 runs per item, seed as1, 300 bootstrap resamples; three constraints: (minimum pass rate 7/10, p95 at most 12000 ms), (18/25, 12000 ms), (3/5, 7000 ms); latency requirement: at least 19/20 of requests within 7000 ms
Gate policy (Task 4) policy.json: margin 1/20, min_n 100, min_slice_n 20, critical slice pii with slice margin 1/100; four ERROR cases: the candidate is missing one item, baseline v1 with candidate v2, a run compared with itself, a policy with margin 3/2

Tasks

  1. Plan and design (L01). Write plan.json following the configuration table and write in mine.py the function corrected_n(plan): the number of items needed to detect expected_difference when the plan's alpha is divided by n_comparisons with holm or bonferroni (the whole alpha with none); ValueError for an unknown correction or an n_comparisons that is not a positive integer. The report design.md: the plan hash; the result of lint_plan; the config_diff of each candidate; required_n, corrected_n and the sample size for the lower bound to clear the margin (true difference 0.1, that is 0.05 above the margin) before and after Holm; the probability of at least one false positive for two uncorrected comparisons (a fraction); the number of dev and held-out items of v1 and v2 and the fact that every v1 item keeps its side; the result of selection.repeat (the winner's advantage on dev and on the confirmation items, the true difference, the number of experiments with a variant at p <= 0.05 before and after Holm); the deviations table of the four trial runs; what this step does not prove.
  2. Paired comparison (L02). Write in mine.py the function min_wins_to_reject(n, alpha): the fewest wins (among n discordant items, ties already dropped) that make the exact two-sided sign test reject at alpha (p <= alpha: a p exactly equal to alpha still rejects); None when even n out of n does not reject (including n equal to 0); ValueError when n is negative or not an integer or alpha is outside (0, 1). The report paired.md: for B and S against A, the difference (a fraction and a decimal), the paired bootstrap interval, wins/losses/ties, the exact sign p, whether it rejects at alpha, the minimum number of wins, the verdict against the margin; the Holm and Bonferroni results; a McNemar table on the first run of each item (the number of items where only A passes, only the candidate passes, the exact p, the approximate χ² p, whether the two ways give the same decision); the three power rates; what this step does not prove.
  3. Trade-off table (L03). Write in mine.py two functions: share_within(latencies, slo_ms) (the Fraction share of requests whose latency is at most slo_ms; ValueError for an empty list or a negative number) and meets_slo(latencies, slo_ms, share) (true when the share within the threshold is not less than share, equal also passes; ValueError when share is outside (0, 1]). The report tradeoff.md: the table of four systems (table_markdown); the Pareto front and the dominated systems; lint_table; the result of choose by lower bound and by point estimate for the three constraints; the table of shares within the threshold and the meets_slo result for each system; the extra cost per point from A to B and whether it may be used; what this step does not prove.
  4. Pipeline and gate (L04). Write policy.json, workflow_sample.yml (only the workflow_dispatch trigger, the command python -m lab.gate_cli, the runner's input passed through env and not inside the run: line, no continue-on-error: true, no || true, and not placed under .github/) and the report gate.md: validate_config of a clean config and of a config with a mistyped key; validate_policy; the decision, exit code and reason for B and S against A on v1 and for B against A on v2; the four ERROR cases; the command-line core main on three temporary files and when one file is missing; the workflow lint of the original and of four edited versions (add a push trigger, add continue-on-error: true, add || true, add || (exit 0) after the gate command); what this step does not prove.
  5. Experiment report (L05). Write decision.json (decided_by, decision, reason from a person, not ci or gate) and the report report.md: the primary result table for B and S (manifest, results digest, difference, interval, sign p, verdict, gate decision, the results of lint_report and verify_report(rep, out, policy) of lab.report); check_manifest and reproduce for each run; the fields that differ between B with seed as1 and B with seed as2; the slices (marked exploratory); deviations from the plan; the person's decision; the limitations.
  6. Reproduction. Write build_suite.py, which generates the five reports in reports/ (every number comes from lab and mine, none typed by hand), and test_build_suite.py, which checks the constraints AC1-AC5 on the text of the reports you generate. Write notes/decisions.md with exactly five sections: Kế hoạch (Plan), So sánh ghép cặp (Paired comparison), Đánh đổi (Trade-off), Cổng và pipeline (Gate and pipeline), Điều bộ so sánh không kiểm (What the comparison suite does not check). The last section answers: how far this comparison suite can be trusted and what it cannot yet be used for.

Deliverables

compare_suite/
  __init__.py                    (file rỗng)
  mine.py                        (Nhiệm vụ 1, 2 và 3: corrected_n, min_wins_to_reject, share_within, meets_slo)
  plan.json                      (Nhiệm vụ 1)
  policy.json                    (Nhiệm vụ 4)
  workflow_sample.yml            (Nhiệm vụ 4; văn bản mẫu, KHÔNG đặt dưới .github/)
  decision.json                  (Nhiệm vụ 5)
  build_suite.py                 (Nhiệm vụ 6; chạy: python -m compare_suite.build_suite)
  test_build_suite.py            (Nhiệm vụ 6; chạy: python -m pytest compare_suite)
  notes/
    decisions.md                 (năm mục: Kế hoạch, So sánh ghép cặp, Đánh đổi, Cổng và pipeline, Điều bộ so sánh không kiểm)
  reports/                       (sinh bởi build_suite.py)
    design.md                    (Nhiệm vụ 1)
    paired.md                    (Nhiệm vụ 2)
    tradeoff.md                  (Nhiệm vụ 3)
    gate.md                      (Nhiệm vụ 4)
    report.md                    (Nhiệm vụ 5)

Place the compare_suite/ folder in code-labs/l2-m07 so import lab works. Run from the lab folder. Do not create or edit any file under the repository's .github/.

Acceptance criteria (required)

# Criterion How to verify
AC1 plan.json has exactly the fixed fields of the configuration table, lint_plan returns an empty list and the dataset fingerprint is the pinned one of v1; corrected_n is right at the boundaries (holm with one comparison equals the uncorrected sample size, none ignores the number of comparisons, bonferroni with four comparisons, ValueError for an unknown correction, 0 comparisons, a float); design.md has the 64-digit hash of plan.json itself, required_n 118 and corrected_n 143, the line for the lower bound to clear the margin (471 items, 571 after Holm; 200 items are enough only to reject "no difference"), the probability 39/400, dev 65 and held-out 135 for v1 (74 and 146 for v2, every v1 item keeps its side), the result of selection.repeat, the four correct deviations lines and a what-this-does-not-prove part that says the hash does not prove the plan was written before the data and the lint checks only the shape python -m pytest compare_suite; recompute the hash with hashlib and json (sorted keys, no whitespace), required_n with statistics.NormalDist, 39/400 with Fraction, the number of dev items with the SHA-256 hash of the item id
AC2 min_wins_to_reject is right at the boundaries (n equal to 0 and 4 with alpha 1/20 give None; n equal to 5 gives None at 1/20 and 5 at 1/16; n equal to 17 gives 13; a p exactly equal to alpha rejects; ValueError for negative n, float n, alpha equal to 0 or 1); paired.md has the two rows B and S with every column, Holm and Bonferroni, the McNemar table, the three power rates and a what-this-does-not-prove part that says the p-value does not tell how large the difference is python -m pytest compare_suite; recompute each item's score, wins/losses/ties, the sign p with math.comb and the bootstrap interval with your own hash code (the lab's same seed)
AC3 share_within and meets_slo are right at the boundaries (an empty list, a negative number, a share exactly equal to share, share equal to 0 or greater than 1) and meets_slo agrees with "the nearest-rank percentile of that share is at most the threshold"; tradeoff.md has the table of four systems, the Pareto front ['a', 'b', 's'] and c dominated, an empty lint_table, the three constraints with both readings (only the second constraint gives different results between the two readings), the table of shares within the threshold, and says the extra cost per point is not used because the verdict of B against A is not better python -m pytest compare_suite; recompute the pass rate, the cost per request and per pass, the nearest-rank p95 and the bootstrap interval with your own code from SHA-256 and models.json
AC4 policy.json passes validate_policy with the fixed values; workflow_sample.yml passes lint_workflow_text, has only the workflow_dispatch trigger, no run: line contains ${{ and it is not under .github/; gate.md has the three decisions (INCONCLUSIVE code 2 for B on v1 and v2, FAIL code 1 for S), the four ERROR cases code 3 with reason codes, the command-line core (code 1, and code 3 when a file is missing), five workflow lint lines (in which `
AC5 decision.json has a decided_by that is a person (not in auto, bot, ci, gate, github-actions, none) with a non-empty decision and reason; report.md has two result rows with recomputable numbers (lint_report empty and verify_report with the policy passed also empty), reproduce (True, []) for both, three fields that differ between the two seeds (config_hash, results_digest, seed), empty deviations, the slices marked exploratory, the person's decision and four limitations (simulated, one seed and one dataset, slices are exploratory, the gate only flags) python -m pytest compare_suite; run report.verify_report and pipeline.reproduce; recompute the difference, the two bounds and the sign p of B and S with your own code; the grader reads the decision against the rubric
AC6 Re-running python -m compare_suite.build_suite produces exactly the five reports (compared byte by byte, for example with diff), with no timestamp or CR character; every report says this is a simulation and states the dataset, the number of runs, the seed, the number of bootstrap resamples (300 for the interval of the trade-off table, 1000 for the paired difference), alpha and the margin; python -m pytest compare_suite passes; notes/decisions.md has all five sections, uses numbers that match the reports, and its last section states what the comparison suite does not check run twice and compare; the grader reads decisions.md against the rubric

Grading rubric (100 points)

Dimension 0 1 2 3 Weight
Plan and design (AC1) Fails AC1 Has a lint-clean plan but no corrected sample size or deviations table Meets AC1; corrected_n is larger than required_n and reads correctly why the lint does not see it As level 2, states that the sample size for the lower bound to clear the margin (471; 571 after Holm) is larger than 200 and the lint does not check that, explains why the dev set is not needed for this plan but is needed when choosing among many variants, why the winner on dev shrinks toward 0 on the confirmation items, and that the hash does not prove the plan was written before the data 15
Paired comparison (AC2) Fails AC2 The report has the mean difference but no exact p or interval Meets AC2; reads correctly that B rejects "no difference" but is unclear against the 0.05 margin, and S is worse As level 2, states clearly that statistical significance differs from practical significance, why the first run of B gives the opposite sign (30 items where only A passes versus 27 items where only B passes) and why B rejects in only 17 of 40 repetitions 20
Trade-off table (AC3) Fails AC3 The table has no interval or chooses by the mean Meets AC3; chooses by the lower bound, reads None as a valid result and does not loosen the constraint As level 2, explains why the second constraint gives None by lower bound but b by point estimate, why not to compute "cost per point" from an unclear difference, and why two intervals side by side are not a paired comparison 15
Pipeline and gate (AC4) Fails AC4 The gate runs but has no ERROR case or the workflow still has ` true` Meets AC4; reads INCONCLUSIVE as information and not as green, and explains the ERROR cases
Report and decision (AC5) Fails AC5 The report has hand-typed numbers or the decision says ci Meets AC5; the decision has a name, a reason and limitations As level 2, states that verify_report recomputes only the primary result, the manifest, the dataset, the systems, the seed, the number of runs and (when a policy is given) the gate decision, and does not recompute the slices, the deviations, the plan hash, the limitations or the text of the decision, that reproduce only says it can be run again, and that a slice is only a hypothesis for a later experiment 15
Reproduction and records (AC6) Fails AC6 Hand-typed reports or not stating it is a simulation The script generates every report, a re-run gives exactly the same files, with a test on the text of the reports As level 2, the tests catch deliberate bugs (change the seed, change <= to < in min_wins_to_reject, change the latency threshold, add a push trigger, change the decider to ci), decisions.md is honest that every number is simulated 15

Score per dimension = (level reached / 3) × weight. Mapping to the module: practical = Plan + Pipeline and gate + Reproduction (50); applied QA analysis = Paired comparison + Trade-off table + Report and decision (50).

Hints

Hint 1: the plan and the sample sizeRun `lint_plan` on the draft and fix each error code; the fingerprint of v1 is in `registry.pinned()`. `required_n` takes alpha as a float: use `float(Fraction(plan["alpha"]) / m)`. `lint_plan` uses the plan's alpha, not alpha divided by the number of comparisons, so `corrected_n` can be larger than the number of items the lint accepts; compare with the plan's `n_items`. For `deviations`, build a `run` dict from the plan and then change exactly the fields of each trial run.
Hint 2: the sign testWith n discordant items and `losses` = n - `wins`, p = min(1, 2 × the sum of C(n, i) for i from 0 to `losses`) divided by 2^n; use `math.comb` and `Fraction`. Try n = 5 at alpha 1/16: 5 out of 5 gives p = 1/16, equal to alpha, so it rejects. The paired bootstrap interval resamples **items**, not runs. McNemar uses the first run so the score is 0 or 1; the mean score of three runs is no longer binary.
Hint 3: latency`share_within` only counts; `meets_slo` compares the share with `share` using `>=` on `Fraction`. A share exactly equal to `share` passes, which agrees with "the nearest-rank percentile of that share is at most the threshold": try it with ten latencies and compare with `stats.percentile`. `choose` already compares the lower bound; to read by point estimate pass `use_lower_bound=False`.
Hint 4: the gate and the workflowThe sample `data/gate_workflow_sample.yml` already has `env` for the input; you write your version in `compare_suite/`, not in `.github/`. The lint checks three groups: the trigger, `continue-on-error` other than `false`, and `|| true`/`|| :`/`|| echo`/`|| exit 0`/`; exit 0`; `|| (exit 0)` or `if: always()` slip through, so reading by eye is still needed. For the gate, build the four `ERROR` cases from the `G.result_dict` of one run: drop an item, mix two fingerprints, pass the same result twice, change the policy margin to 3/2.
Hint 5: the report and the manifest`R.build_report` takes the plan, the pipeline result, the gate result, the decision and the limitations; for the second candidate pass `run_extra={"candidate": ..., "n_comparisons": 2}` so `deviations` compares correctly. `verify_report(rep, out, policy)` recomputes the primary result, the manifest, the dataset, the systems, the seed, the number of runs and the gate decision; pass `policy` to check the gate. `compare_manifests` ignores the Python version; do not print the Python version in the report, or the report differs between versions.
Hint 6: test your own testsAfter the tests are green, try changing the seed `as1`, changing `<=` to `<` in `min_wins_to_reject`, changing the 7000 ms threshold, adding a `push` trigger to the workflow, setting `decided_by` to `ci`, or letting `build_suite.py` write a timestamp: if the tests are still green, they are only comparing the report with itself. A good test compares with a number **computed independently** (your own `Fraction` and hash code, a hand count), not with the output of the function under test.

Independent challenge (practical challenge)

Less guidance. No lab data is needed for tasks 1 to 4; use lab.design, lab.stats, lab.compare, lab.tradeoff, lab.gate, lab.workflow or compute by hand from the tables below. Task 5 uses plan_example.json and lab.report. Submit one file challenge.md.

Context: BepNha (fictional) is an assistant that suggests cooking recipes for families. A two-person team wants to compare two new prompt versions (v2, v3) with the current prompt (v1) before turning them on for users, after they already have the HocVui comparison suite. Rule for every comparison: every rate, probability and p-value is computed as a fraction (no floats); a value exactly equal to the margin is handled by the lab's inclusive rule (practical_verdict: a lower bound equal to the margin is not better; gate: a lower bound equal to -margin is PASS). The systems, numbers and names below are fictional data and do not describe a real system or person.

Tasks:

  1. The plan. The team's draft: baseline chef-x-latest with prompt v1; two candidates chef-x-2026-05-02 with prompt v2 and v3; changed_factor prompt; primary metric pass_rate and secondary metrics pass_rate, cost_per_success; dataset w1 with an empty fingerprint; n_items 90; reps 1; alpha 1/20; margin 1/25; expected_difference 0.12; assumed_var_diff 0.18; power 0.8; test sign+paired_bootstrap; correction none; n_comparisons 2; stopping_rule stop_when_significant. (a) The seven codes that lint_plan reports (build a full dict from plan_example.json and then change the fields above). (b) A smallest fixed plan that lint_plan accepts and that still keeps the question, the two prompts v2, v3 and margin: state the fields changed (dataset: use the pinned v1). (c) required_n and corrected_n of the fixed plan with holm for two comparisons, and why a lint-clean plan can still be too small.

  2. The paired comparison. Three comparisons on the same set of items, each pair is (the number of items where only the old system passes, the number where only the new system passes): X (4, 14), Y (7, 11), Z (1, 10). (a) The exact sign p of each comparison (a reduced fraction). (b) Which reject at alpha 1/20 uncorrected; what happens after Holm and after Bonferroni for three comparisons. (c) For X, the minimum number of wins among 18 discordant items to reject at alpha divided by 3, and how many items X is short. (d) Five paired bootstrap intervals for (new minus old), margin 1/25: (i) [0.05; 0.12]; (ii) [0.04; 0.10]; (iii) [-0.02; 0.03]; (iv) [-0.06; -0.045]; (v) [0.01; 0.03]: the verdict of practical_verdict for each interval.

  3. The trade-off. Five systems (pass rate, 95% quality interval from a bootstrap over items, cost per request, p95):

    System Pass rate 95% interval Cost (cu) p95 (ms)
    V1 18/25 [0.66; 0.78] 1800 5200
    V2 3/4 [0.69; 0.80] 1800 4800
    V3 4/5 [0.74; 0.85] 4200 6500
    V4 16/25 [0.58; 0.70] 900 3000
    V5 39/50 [0.72; 0.83] 4500 7000

    (a) The Pareto front and the dominated systems, and who dominates each. (b) The cost per pass of V2, V3 and V4. (c) choose by lower bound and by point estimate for: (minimum pass rate 7/10, p95 at most 6000 ms), (7/10, 7000 ms) and (3/5, cost at most 2000 cu); for which constraint the two readings give the same result, and what the team should do when it gives None (do not loosen the constraint). (d) The paired difference of V3 minus V2 has the interval [-0.01; 0.11], margin 1/20: should "extra cost per point" be computed, and why. (e) Sixteen latencies (ms) of one system: 300, 340, 280, 1250, 310, 295, 360, 3100, 320, 290, 305, 330, 285, 600, 315, 275. The nearest-rank p50, p90, p95 and the mean (a fraction); why the p95 of 16 requests is the largest value, and what that says about how to report p95.

  4. The gate. Policy: margin 1/25, min_n 100, min_slice_n 20, critical slice safe (slice margin 0). The paired interval (candidate minus baseline) and the number of items of each part:

    Part Items 95% interval
    overall 274 [-0.02; 0.05]
    easy 120 [-0.03; 0.04]
    mid 60 [-0.04; 0.06]
    hard 80 [-0.09; -0.05]
    safe 14 [-0.10; 0.08]

    (a) The decision of each part by the lab's rule, the overall decision and the exit code; what happens to a slice with fewer items than min_slice_n. (b) If the team uses the tiered rule of the L04 exercise (FAIL only when overall or a critical slice is FAIL, another slice's FAIL becomes INCONCLUSIVE), what is the exit code, and why is the lab's rule stricter. (c) Five situations: (1) two results have the same manifest_id; (2) a score in the file reads 3/2; (3) the critical slice safe is absent from the data; (4) the whole run has only 80 items, the input is valid and no slice is FAIL; (5) the candidate is missing three items compared with the baseline. The decision, exit code and main reason code of each situation. (d) The sample workflow below: which code does lint_workflow_text report, what slips through, and how to fix it.

    name: bepnha-gate
    on:
      schedule:
        - cron: "0 3 * * *"
      workflow_dispatch:
    jobs:
      gate:
        runs-on: ubuntu-latest
        steps:
          - name: Gate
            run: python -m lab.gate_cli results/baseline.json results/candidate.json results/policy.json
            continue-on-error: true
          - name: Gate again
            run: python -m lab.gate_cli results/baseline.json results/candidate.json results/policy.json || (exit 0)
    
  5. The report. Use plan_example.json (S against A), design.config_from_plan with seed ch1, pipeline.run_pipeline, a policy with margin 1/20, min_n 100, min_slice_n 20, critical slice pii with slice margin 1/100, and report.build_report with a decision by a person and one limitation line "mô phỏng" (simulated). For the clean report, give lint_report and verify_report, then for each of the following hand edits give the code each check returns: (i) add 1/100 to the upper bound of the primary result; (ii) change decided_by to github-actions; (iii) delete all limitations; (iv) change plan_hash to 64 digits of 0; (v) change the label of the pii slice to confirmed; (vi) change manifest_id to 64 digits of 0. Which edit passes both checks, and what does that say? Then write three sentences for the BepNha product owner (who only wants to hear "can we turn it on"): what is known, what is not known, and what to do before turning it on.

Challenge rubric (100 points, pass at ≥ 70):

Dimension 0 1 2 3 Weight
The plan (task 1) Missing One of (a) to (c) is right All three right, including the sample sizes 99 and 119 As level 2, states clearly that the lint uses the uncorrected alpha so a lint-clean plan can still be short of items, and that an empty fingerprint is not a pinned one 20
The paired comparison (task 2) Missing One of (a) to (d) is right All four right, including a lower bound equal to the margin As level 2, states clearly that two comparisons have p below 0.05 but only one still rejects after correction, and why X being one item short is still short 25
The trade-off (task 3) Missing Two of (a) to (e) are right All five right As level 2, states clearly why None at the first constraint is not an error, why not to compute a cost per point of V3 against V2, and why the p95 of 16 requests is only a single value 20
The gate (task 4) Missing Two of (a) to (d) are right All four right, including mid exactly at the margin being PASS As level 2, states clearly that the lab's strict rule versus the tiered rule is a policy choice, that `
The report (task 5) Missing One of (i) to (vi), or the paragraph only says "yes" or "not yet" Every code right and the paragraph gives the decision, what is not known and what to do As level 2, states that edit (iv) passes both checks because neither check looks at the plan hash, and the paragraph does not promise what the simulation does not prove 15

Rules

  • No real data or real API in the submission. The systems, the pass results, the costs, the latencies and every number in the lab are simulated; do not infer the behaviour of a real model, vendor or product.
  • Do not edit lab/, data/ or exercises/. Proposed fixes go in notes/decisions.md.
  • Do not change the seed, alpha, the margin, the number of items, the number of runs or the constraints after seeing the results in order to reach the conclusion you want; if you change them, write down the reason and the result from before the change. Do not re-run with another seed until it passes.
  • Every number in the reports comes from a script; state the configuration (dataset, seed, number of runs, number of bootstrap resamples, alpha, margin). Do not let a lint, a p-value or a gate replace reading the report and the slices.
  • The workflow is only sample text to run by hand and lives in the submission folder, not under .github/; do not create or edit any automatically running workflow. The gate and the checks only flag; a person reviews and decides on release.