Estimated time: ~5 hours for someone who has finished the five standalone exercises of L01-L05 (an estimate, not measured with real learners). Main tools:
lab.faults,lab.agent,lab.retry,lab.ledger,lab.trials,lab.budget,lab.reportincode-labs/l3-m06. The agent, the tools, the injected faults, the clock and every result in the lab are simulated (a deterministic program written by the lab's author): no model call, no real server, no API key; every effect lives inside one Python object.
Main practical exercise
Business context
The ThuVien Mini team (fictional) is getting ready to release ThuVien Mini v2: the same five tasks as the lab, but with a new retry policy (policy_v2) and eight release candidates that differ in agent configuration, retry policy and server. A colleague's ticket says: "v2 has retries now, so tool errors are no longer a problem". That line does not say whether a retry duplicates an effect, whether the agent reports a failure when the work is done, which tasks succeed consistently over many runs, or how much time the retries cost.
You need to build a reliability report for v2 with its supporting reports, then answer: which candidate is ready for a person to read its report, why are the others held, and what does this report not prove yet?
Problem to solve
A fault test whose fault never fires looks like a green test; when one rule fires and the other does not, classify still says recovered; a caller's timeout does not say whether the server wrote; a pooled rate hides a broken task; a p95 without its method cannot be compared; and a READY_FOR_REVIEW gate has not yet said whether that decision survives another seed.
Your job is to measure each layer on its own with the fixed setup below, combine them with the lab's gate (report.gate), state what each layer does not prove, and leave the final decision to a person. Every gate only says HOLD or READY_FOR_REVIEW and none of them uses the word "approve".
Input data
The lab's data is in code-labs/l3-m06/data/ and is fictional; do not change lab/, data/, tests/ or exercises/. You write every data file of the reliability_suite/ package yourself from the blocks below (copy every value exactly).
The fixed setup (so that every submission can be reproduced and compared):
| Item | Value |
|---|---|
| Fault injection (Task 1) | faults_v2.json: seven broken plans b1 to b7, twelve fault tests f01 to f12 (the task and plan of block 1), and the scorecard's fault suite suite; each fault test runs as A.run_task(task, configuration, plan, seed=13, trial=1, ...) |
| Retries (Task 2) | policy_v2.json: the policy policy_v2, six broken edits p1 to p6 (the value null means: remove that field), two operation keys for the jittered schedule (block 2); six write tests f01, f02, f03, f05, f09, f11 with retry_new_key, safe, safe on a server that ignores keys (honor_keys=False) and naive with policy=policy_v2 |
| Repeated trials and budgets (Tasks 3, 4) | trials_v2.json (block 3): seed 13, 20 trials per task for all five tasks, the plan flaky_v2, targets set before the run (k = 3, pass^3 ≥ 0.25, Wilson 95% lower bound ≥ 0.42 for each task), the v2 budgets, four limit sentences, and a second seed 31 |
| Scorecard (Task 5) | candidates_v2.json: eight candidates r01 to r08 (table 4). A candidate's report: R.build_report with the candidate's own repeated trials, one fault row per test of suite (R.fault_row(test id, run, mine.fault_outcome(run)), with the candidate's configuration, policy and server), check_budget with the v2 budgets, and the four limit sentences; the decision is R.gate |
| Reproduction (Task 7) | Seven Markdown reports and table.json; no timestamp of the run, no Python version (the date 2026-11-05 in the scope section is data from trials_v2.json) |
Block 1. faults_v2.json.
{"broken": {
"b1": [{"kind": "rate_limit", "target": "borrow_book", "on": [1], "retry_after_ms": 0}],
"b2": [{"kind": "tool_error", "target": "model", "on": [1]}],
"b3": [{"kind": "timeout", "target": "send_notice", "rate": 1.5}],
"b4": [{"kind": "partial_write", "target": "return_book", "on": []}],
"b5": [{"kind": "tool_error", "target": "get_book", "on": [1]}, "borrow_book"],
"b6": [{"kind": "partial_write", "target": "send_notice", "on": [1], "delay_ms": 2000}],
"b7": [{"kind": "timeout", "target": "model", "on": [1], "effect": "later"}]},
"tests": {
"f01": {"task": "t02", "plan": [{"kind": "timeout", "target": "send_notice", "on": [1], "effect": "after", "delay_ms": 2800}]},
"f02": {"task": "t03", "plan": [{"kind": "partial_write", "target": "borrow_book", "on": [1]}]},
"f03": {"task": "t05", "plan": [{"kind": "timeout", "target": "borrow_book", "on": [2], "effect": "after", "delay_ms": 7000}]},
"f04": {"task": "t02", "plan": [{"kind": "rate_limit", "target": "return_book", "on": [1], "retry_after_ms": 700}]},
"f05": {"task": "t03", "plan": [{"kind": "partial_write", "target": "send_notice", "on": [1]}]},
"f06": {"task": "t04", "plan": [{"kind": "malformed_output", "target": "model", "on": [1], "form": "missing_field"}]},
"f07": {"task": "t01", "plan": [{"kind": "tool_error", "target": "get_book", "on": [1, 2]}]},
"f08": {"task": "t05", "plan": [{"kind": "tool_error", "target": "return_book", "on": [1]}]},
"f09": {"task": "t02", "plan": [{"kind": "partial_write", "target": "return_book", "on": [1]}, {"kind": "tool_error", "target": "send_notice", "on": [3]}]},
"f10": {"task": "t01", "plan": [{"kind": "timeout", "target": "borrow_book", "on": [1], "effect": "before", "delay_ms": 2600}]},
"f11": {"task": "t05", "plan": [{"kind": "partial_write", "target": "borrow_book", "on": [2]}]},
"f12": {"task": "t03", "plan": [{"kind": "rate_limit", "target": "send_notice", "on": [1], "retry_after_ms": 2200}]}},
"suite": ["f02", "f03", "f04", "f05", "f06", "f07", "f10", "f11", "f12"]}
Block 2. policy_v2.json.
{"policy": {"max_attempts": 3, "base_ms": 150, "cap_ms": 1200, "jitter": "full", "timeout_ms": 2500,
"retry_on": ["RATE_LIMITED", "TIMEOUT", "TRANSIENT"], "honor_retry_after": true, "reuse_key": true},
"broken": {"p1": {"retry_on": ["TRANSIENT", "NOT_ON_LOAN"]}, "p2": {"cap_ms": 100}, "p3": {"max_attempts": 0},
"p4": {"reuse_key": null}, "p5": {"jitter": "equal"}, "p6": {"honor_retry_after": "yes"}},
"op_keys": ["t05-s13-t0-step1", "t05-s13-t1-step1"]}
Block 3. trials_v2.json (the four sentences of limits are yours; the example below only shows the structure, and your report must have at least four specific sentences).
{"product": "ThuVien Mini v2 (hư cấu)", "seed": 13, "n": 20, "date": "2026-11-05", "other_seed": 31,
"targets": {"k": 3, "min_pass_hat_k": 0.25, "min_wilson_low": 0.42},
"plan": [{"kind": "timeout", "target": "borrow_book", "rate": 0.15, "effect": "after", "delay_ms": 3200},
{"kind": "tool_error", "target": "send_notice", "rate": 0.2},
{"kind": "rate_limit", "target": "return_book", "rate": 0.25, "retry_after_ms": 900},
{"kind": "malformed_output", "target": "model", "rate": 0.03, "form": "truncated"}],
"ks": [1, 2, 3, 5, 10],
"budgets": {"t01": {"max_tokens": 2800, "max_cost": 40, "p50_ms": 3400, "p95_ms": 7200},
"t02": {"max_tokens": 2000, "max_cost": 30, "p50_ms": 2600, "p95_ms": 5000},
"t03": {"max_tokens": 2300, "max_cost": 34, "p50_ms": 2700, "p95_ms": 6500},
"t04": {"max_tokens": 1900, "max_cost": 26, "p50_ms": 2400, "p95_ms": 4600},
"t05": {"max_tokens": 2400, "max_cost": 36, "p50_ms": 2800, "p95_ms": 8000}},
"limits": ["...", "...", "...", "..."]}
Table 4. Eight release candidates (config is a name in lab.agent.CONFIGS; policy is null when the candidate uses its configuration's policy, or {"from": "v2" or a configuration name, "set": {...}} when it uses an edit of policy_v2 or of a configuration's policy; honor_keys is false when the server ignores keys).
id |
config |
policy |
honor_keys |
|---|---|---|---|
r01 |
safe |
null |
true |
r02 |
naive |
null |
true |
r03 |
ignore_errors |
null |
true |
r04 |
retry_new_key |
null |
true |
r05 |
naive |
{"from": "v2", "set": {}} |
true |
r06 |
naive |
{"from": "v2", "set": {"retry_on": ["TRANSIENT"]}} |
true |
r07 |
safe |
null |
false |
r08 |
safe |
{"from": "safe", "set": {"timeout_ms": 6000}} |
true |
Fixed interface
The reliability_suite/ package must have exactly these names (the grader and your tests call them):
| Name | Contract |
|---|---|
mine.fault_outcome(run) |
The outcome of a fault test, stricter than agent.classify: not_fired when any rule of the plan did not fire (faults.unfired_rules is not empty), otherwise exactly the outcome of classify. ValueError when the record is not a dict, lacks plan, faults, task or end_state (with missing, duplicate, unexpected as lists), when claimed_success or success is not a bool, or when plan is empty |
mine.false_failure(run) |
True when the agent says it did not finish (claimed_success False) while every expected effect of the task was applied exactly once and there is no unexpected effect; always False for a task with no expected effect. ValueError for a broken record (as above) or an unknown task |
mine.LAYERS |
("trials", "duplicates", "faults", "budgets") |
mine.layers(reasons) |
The layers present in a list of reasons of report.gate, in the order of LAYERS then malformed: trials for pass^k below target and success-rate lower bound below target, duplicates for duplicate side effect in trial, faults for every reason of report.FAULT_REASON, budgets for over budget, malformed for malformed: .... ValueError for any other reason or a broken list |
mine.diff_cards(before, after) |
The candidate ids (sorted) whose decision differs between two tables {id: (decision, reasons, ...)}; ValueError when the two tables do not hold the same ids |
build_reliability_suite.build(out) |
Writes exactly eight files in out: faults.md, retries.md, trials.md, budgets.md, report.md, scorecard.md, mutation.md, table.json |
build_reliability_suite.check_card() |
The cells of the recomputed table.json that differ from expected_v2.json (as faults/<id> or card/<id>); [] when they match |
build_reliability_suite.check_gates() |
The names of the fixed cases of report.validate_report and report.gate that give a wrong result; [] when all are right |
build_reliability_suite.check_cases() |
The names of the hand-built cases (values worked out by hand) that give a wrong result; [] when all are right |
table.json |
{"faults": {test: [fault_outcome outcome under naive, ignore_errors, retry_new_key, safe]}, "card": {id: [decision, mine.layers(reasons), ["c/n" of t01 to t05], number of runs with a duplicate effect, [the tests of suite whose outcome is a HOLD reason], ["<task> <over-budget code>", ...]]}} |
Call the lab's functions through their modules, in mine.py and in build_reliability_suite.py alike: from lab import agent as A, budget as B, faults as F, ledger as LG, report as R, retry as RT, trials as T, then R.gate(...), B.check_budget(...), T.pass_hat_k(...), F.validate_plan(...), LG.duplicates(...); do not write from lab.report import gate or from lab.budget import check_budget. The reason: the grader installs the broken versions of Task 6 with monkeypatch on the module attributes (R.gate, B.check_budget, ...). A name bound directly into your package still points to the original, so the broken version has no effect and the mutation grading measures nothing.
Tasks
- Fault injection (L01). Write
faults_v2.jsonfrom block 1 andmine.fault_outcome. Reportfaults.md: a table of the seven broken plans with the codes ofvalidate_plan; a table of the twelve fault tests (task, rules, thefault_outcomeoutcome under the four configurations,unfired_rulesand theclassifyoutcome undersafe); the lineKinds fired under safe: ...(the fault kinds that fired in at least one test undersafe); a line with the tests wherefault_outcomeandclassifydiffer undersafe; and a line with the tests wherenaiveis not aloud_failure. - Retries and idempotency (L02). Write
policy_v2.jsonfrom block 2 andmine.false_failure. Reportretries.md: a line checkingpolicy_v2; a table of the six broken edits with the codes ofvalidate_policy; the waits ofpolicy_v2without jitter and with jitter for the two operation keys; and a table of six write tests × four runners (thefault_outcomeoutcome, the number of effects in the ledger, the duplicated effects byledger.duplicates, whether it is a false failure). - Repeated trials (L03). Write
trials_v2.jsonfrom block 3 andcandidates_v2.jsonfrom table 4. Reporttrials.md: one row per candidate withc/n, pass^3 and the Wilson lower bound of each task and the number of runs with a duplicate effect; the pass@k and pass^k curves (the k of block 3) ofr01,r02,r05; and a line pooling every run ofr01into one rate, with the tasks whose own rate is below the pooled rate. - Budgets (L04). Report
budgets.md: one row per candidate (problems,warnings, the over-budget codes); a per-task table with the p95 ofr01by nearest rank and by NIST, the p95 ofr08by nearest rank, and thetokens_maxandcost_maxofr01; a line saying whetherr01run without a fault plan (same seed, same n) is over anything; and thebreakdownof the slowest run ofr01on t05. - Report and scorecard (L05). Write
mine.layersandmine.diff_cards. Reportreport.md: the report ofr01printed byR.render. Reportscorecard.md: a table of the eight candidates (configuration, policy, server, decision, layers, reasons); a line with the number of candidates each layer holds; fourdiff_cardslines when changing (i) to seed 31, (ii) to the lab's budgetsdata/budgets.json, (iii) addingf09tosuiteand scoring the fault rows withagent.classify, (iv) addingf09tosuiteand scoring withmine.fault_outcome; and a line with a person's decision fromreview.json(ornonewhendecisionis empty). Inreview.jsonyou record the decision of a person (decision,reviewed_by), not of a test or CI. - Golden table and mutants. Produce
table.json(12faultsrows, 8cardcells). Read each cell before you pin it (every cell you did not predict correctly before the run needs one sentence of explanation innotes/decisions.md), then write the table toexpected_v2.json. Writecheck_card,check_gates(at least: a small valid report built from real runs is READY_FOR_REVIEW; editing a cell ofrowsgivesROW_MISMATCH; editingcountsgivesCOUNT_MISMATCH; a run pasted twice, a run stillrunning, a fault row of another configuration, an unknown outcome, non-empty budgetproblems, a budget row of another task, limits made only of spaces, a target given as a string, no fault row at all, and something that is not a report all HOLD with the rightmalformedcode; anot_firedrow, aloud_failurerow, a run with a duplicate effect and an over-budget code all HOLD with the right reason; aP95_IS_MAXwarning on its own is still READY_FOR_REVIEW; no approval word) andcheck_cases(at least ten hand-built cases, values worked out by hand: the codes of b6 and b7; the codes of p1 and p4; the waits ofpolicy_v2without jitter;fault_outcomeandclassifyof f09 undersafe; the false failure of f03 withretry_new_key; f06 withnaiveis not a false failure;ledger.duplicateson three hand-built rows where two rows have the same effect and different keys; pass^3 of 13/20 as a fraction; the Wilson interval of 13/20; the nearest-rank p95 of ten values is the largest value; a run exactly at the budget is not over it;fault_outcomewith an empty plan raisesValueError). Reportmutation.md. In theMutationssection ofnotes/decisions.md, list at least ten broken versions (one line each, starting with- `m_) ofclassify, the injector,validate_plan,retry.call,backoff_ms, the server,ledger.duplicates,pass_hat_k,wilson,percentile,check_budget,validate_report,gateor theminefunctions that you installed withmonkeypatch, which ones were killed (by the golden table, a gate case or a hand-built case) and which ones survived, with the reason. - Reproduction. Write
build_reliability_suite.py(every number comes fromlabandmine, none typed by hand) andtest_build_reliability_suite.py, which checks AC1-AC7 on the text of the reports you generate. Writenotes/decisions.mdwith exactly five sections in this order:Fault injection and retries,Repeated trials and budgets,Report and scorecard,Mutations,What the report does not prove. The Vietnamese section names of the Vietnamese version of the brief are also accepted.
Deliverables
reliability_suite/
__init__.py
mine.py (fault_outcome, false_failure, LAYERS, layers, diff_cards)
faults_v2.json (1)
policy_v2.json (2)
trials_v2.json (3)
candidates_v2.json (3)
expected_v2.json (6)
review.json (5)
build_reliability_suite.py $ python -m reliability_suite.build_reliability_suite <out>
test_build_reliability_suite.py $ python -m pytest reliability_suite
notes/
decisions.md
The number in brackets is the file's task. __init__.py is an empty file; trials_v2.json holds the seed, n, plan, targets, budgets and limits; candidates_v2.json has 8 candidates; expected_v2.json is the golden table; review.json is a person's decision; notes/decisions.md has five sections. A $ line is the command that runs that file (<out> is the output folder).
Put the reliability_suite/ folder inside code-labs/l3-m06 so that import lab works, and run from the lab folder. Use relative imports inside the package (from . import mine). Do not create or change any file under .github/; delete every temporary file you create.
Acceptance criteria (required)
| # | Criterion | How it is checked |
|---|---|---|
| AC1 | faults.md: b1 ['BAD_PARAM'], b2 ['BAD_TARGET'], b3 ['BAD_RATE'], b4 ['BAD_ON'], b5 ['NOT_A_RULE'], b6 ['UNKNOWN_FIELD'], b7 two codes; f08 is not_fired under all four configurations; f09 is not_fired by fault_outcome while the classify of safe says otherwise; all five fault kinds fire under safe; the line of tests where naive is not a loud_failure lists exactly three tests; fault_outcome raises ValueError at the edges of the interface table |
your tests read the report text; the grader runs it again |
| AC2 | retries.md: policy_v2 is clean; p1 to p6 each give exactly one code; the waits without jitter are [150, 300] and each jittered schedule stays within its bounds; f05 leaves a duplicated notice with retry_new_key and with the server that ignores keys; exactly four rows are false failures, all of them on f03 and f11; naive with policy_v2 recovers on f01, f02, f03, f05 and f11; false_failure raises ValueError at the edges |
the tests read the report text |
| AC3 | trials.md has eight rows; r01 and r08 have the same row; t05 of r01 is 13/20 with pass^3 0.251; r04 and r07 each have 5 runs with a duplicate effect; the pooled line of r01 is 88/100 and names t03 and t05 |
the tests read the report text |
| AC4 | budgets.md: only r01, r04, r07 are over budget, and only OVER_P95 on t05; no candidate has problems or warnings; r01 without a fault plan is over nothing; the slowest run of r01 on t05 has a timeout wait other than 0 |
the tests read the report text |
| AC5 | report.md ends with HOLD and exactly one reason; scorecard.md: only r08 is READY_FOR_REVIEW, r01 is held by the budgets layer only, r05 is held by trials and faults with the reason f06; the line with the number of candidates per layer matches the table; the four diff_cards lines are right; the line with a person's decision is none when review.json has an empty decision; no approval word in any report; the mine functions raise ValueError at the edges of the interface table |
the tests compare cells with numbers worked out by hand (not with the function under test) |
| AC6 | table.json has 12 faults rows and 8 card cells, equal to expected_v2.json; check_card(), check_gates(), check_cases() all return []; mutation.md has No mismatch with the pinned table (20 cells)., Gate cases failing: none. and Hand-built cases failing: none.; changing one cell of the golden table makes check_card() return exactly that cell; the Mutations section has at least ten broken versions, each recording killed (by what) or survived and the reason |
run the tests; the grader reads the section |
| AC7 | A second run gives exactly the same eight files (compared byte by byte), with no timestamp of the run, no Python version and no CR character; every Markdown report says it is simulated (SIMULATED) and names no vendor or model; python -m pytest reliability_suite passes; notes/decisions.md has all five sections in the right order and no ranking words ("tốt nhất", "nên dùng", "khuyến nghị dùng": "the best", "should use", "recommended") |
run twice and compare; the grader reads decisions.md against the rubric |
Grading rubric (100 points)
| Dimension | 0 | 1 | 2 | 3 | Weight |
|---|---|---|---|---|---|
| Fault injection (AC1) | AC1 not met | Has the table but reads the classify of f09 as evidence, or trusts the "Done" sentence instead of the end state |
AC1 met | As level 2, and explains why f01 does not make naive fail (2800 ms is under the 3000 ms timeout: not_observed) but does give policy_v2 a timeout, and why the fault tests run on trial 1 and not on trial 0 of seed 13 |
15 |
| Retries and idempotency (AC2) | AC2 not met | Has the table but finds duplicates by key, or calls the NONE_LEFT stop of f02 a false failure |
AC2 met | As level 2, and explains why f03 and f11 are false failures (the loan was written, the next attempt hits S0107's loan limit) and f02 is not, and why naive with policy_v2 still fails on f06 |
15 |
| Repeated trials (AC3) | AC3 not met | Reports only the pooled rate, or computes pass^k as (c/n)^k | AC3 met | As level 2, and explains why r01 and r08 have the same successes, why t05 is a borderline case (286/1140 against 0.25) and what the Wilson interval of 13/20 says about it |
10 |
| Budgets (AC4) | AC4 not met | Has the table but does not state the percentile method, or loosens a budget after seeing the results | AC4 met | As level 2, splits the latency of the slowest run and explains why the 6000 ms timeout of r08 lowers the p95 of t05 here, and when it would do the opposite |
10 |
| Report and scorecard (AC5) | AC5 not met | Has a scorecard but drops unfavourable fault rows, or lets a broken report reach READY_FOR_REVIEW | AC5 met; every gate fails closed on missing or broken data, no approval word | As level 2, and explains why the READY_FOR_REVIEW of r08 is fragile (the four diff_cards lines), why r07 has the same configuration as r01 but is held by four layers, and what information the lab's report lacks to tell r01, r07, r08 apart |
20 |
| Golden table and mutants (AC6) | AC6 not met | Has a golden table but copied it from a run without reading it | AC6 met; at least ten broken versions, each with a conclusion | As level 2, separates the versions killed by the golden table from those only a gate case or a hand-built case can kill, explains why the survivors survive on this data and names the data or case that would kill them | 15 |
| Reproduction and notes (AC7) | AC7 not met | Reports typed by hand, or not saying they are simulated | A script generates every report, a second run gives the same files, tests run on the report text | As level 2, the tests catch deliberate errors (one golden cell changed, the target of a rule in faults_v2.json changed, a target changed, the decider set to ci), and decisions.md honestly says every number is simulated |
15 |
Score per dimension = (level reached / 3) × weight. Mapping to the module: practical = Fault injection + Retries and idempotency + Budgets + Reproduction and notes (55); applied QA analysis = Repeated trials + Report and scorecard + Golden table and mutants (45).
Hints
Hint 1: did the rule really fire
Before you read the outcome of a fault test, read `run["calls"]` to see which tools the task calls and how many times, then read `run["faults"]`. A rule aimed at call number 3 of a tool that is called once never fires, whatever the configuration; a timeout shorter than the caller's own timeout fires and nobody sees it (`not_observed`).Hint 2: false failures
Compare three things of the same run: the agent's last sentence (`claimed_success`), the effect ledger (`run["effects"]`) and the task's `expect` in `data/tasks.json`. A stop can be a real failure (an expected effect is still missing) or a false failure (every effect is there); the business rule that blocks the next attempt (`NONE_LEFT`, `LIMIT`) decides which.Hint 3: candidates and policies
`run_task(..., policy=...)` replaces the configuration's retry policy but keeps how the configuration handles errors and whether it re-asks the model. For each candidate, write down: how many attempts, how long it waits, what timeout, same key or new key, whether it re-asks the model, whether the server honours keys; only then predict the scorecard.Hint 4: a fragile decision
For each READY_FOR_REVIEW candidate, ask: which target is the closest call, and what (a seed, a budget, a fault test) would change the decision. Use `R.gate` and `mine.diff_cards` themselves to answer; do not guess.Hint 5: test your own tests
Once your tests are green, try changing one golden cell, changing the target of a rule in `faults_v2.json`, lowering a target, setting `reviewed_by` to `ci`, or letting the script write a timestamp: if the tests stay green, they only compare the report with itself. A good test compares with a number **derived independently** (worked out by hand), not with the output of the function under test.Practical challenge
Less guidance. The reliability_suite package is not needed (unless you want to reuse mine); use the lab's functions directly on the lab's data: the five tasks, the plans of data/fault_plans.json and the seeds named. Hand in one challenge.md file with four answers and how you computed them.
| Part | Requirement |
|---|---|
| (a) | With the policy {**RT.DEFAULT_POLICY, "max_attempts": m} and the configuration naive, the smallest m for which t01 is recovered under all four plans borrow_error_once, borrow_timeout_after, borrow_timeout_before, borrow_rate_limit; then the same question after adding "honor_retry_after": True. Is there an m for which naive recovers under model_truncated? |
| (b) | With the eight lab plans that use only on (no rate) and the five tasks, run safe: how many (plan, task) pairs are not_fired? State a rule that explains exactly that set |
| (c) | With safe, no fault plan, 20 runs of t01 at each seed 0 to 19: at which seeds does t01 miss the target pass^4 ≥ 0.5 of the L05 report? What is the smallest number of successes that meets it at n = 20, and does the target Wilson lower bound ≥ 0.6 ever decide t01? |
| (d) | Under the flaky plan, 20 runs per task at each seed 0 to 9: the number of runs with a duplicate effect for retry_new_key at each seed and in total, the tasks with a duplicate effect, and the same number for safe |
| Part | 0 | 1 | 2 | 3 | Weight |
|---|---|---|---|---|---|
| (a) | Missing | One of the two numbers right | Both numbers and the model_truncated answer right |
As level 2, and explains it with the rate-limit window (the waits added up against retry_after_ms) and with a retry policy never re-asking the model |
25 |
| (b) | Missing | Right count, no rule | Right count and a correct rule | As level 2, and says why a fault suite needs a "the rule fired" check for each pair, not only for each plan | 25 |
| (c) | Missing | Right seeds | Right seeds and the smallest number of successes | As level 2, and states the consequence: same agent, same target, the decision changes with the seed; the lower-bound target never decides at n = 20 | 25 |
| (d) | Missing | Some seeds right | Every seed, the total and the tasks right | As level 2, and explains why duplicates appear on those two tasks only (the only write fault of flaky) and why safe has none |
25 |
Rules
- Do not use real data or real APIs in your submission. The agent, the tools, the injected faults, the clock and every number in the lab are simulated; do not infer the behaviour, price or speed of any real model, vendor, framework or product.
- Do not change
lab/,data/,tests/orexercises/. Proposed changes go intonotes/decisions.md. - Every run stays inside the lab's Python process; no shell command, network or file outside the output folder. Inject faults only in the lab's sandbox; on a real system, only in a test environment, with permission.
- Do not change a fault plan, a target, a budget, a seed or the golden table after seeing the results to get the conclusion you want; if you change one, record the reason and the result before the change.
- Every number in the reports comes from the script; state the setup. Do not let a gate replace reading the report.
- Gates only label; gates fail closed on missing or broken data; a person reviews, decides and is responsible for every real-world effect. Do not create or change any automated workflow.