Progress
Active milestone: B0 complete on 2026-11-28. Next owner: Kiro. Next task: CV-T09 in .kiro/specs/clearance-verifier/tasks.md (Kiro IDE review of the spec and the Correctness run).
Claude Code also finished issue #3 (supervised CAD worker, arena doctor; the issue is closed) and built the offline parts of issue #4 (a restricted Strands analyst on Groq, tested against a scripted model and a fake wire) on 2026-11-28. On 2026-11-30 the analyst moved from the assembled strands-harness to the core Strands SDK under community spec v1.4 (issue #28), and the owner chose one model, qwen/qwen3.8-27b. One live run exists (2026-12-02): it ended at the turn cap with no failure found. On 2026-12-03 the registered 12-cell matrix added 125 records: 120 scored cell runs, three replaced provider-error runs and the two smoke records. One of the 120 scored runs measured a violated pose, and 69 ended in a model-written FailureAnalysis. docs/analyst-evaluation.md publishes the raw tallies and makes no capability claim on the full box. Issue #4 stays open until the owner reviews those runs. This repository makes no accuracy or speed claim for the analyst. Issue #27 (owner: Kiro IDE) extends the clearance-verifier spec to the worker, arena doctor and the analyst; the spec files carry a note about it.
Checkpoint commit: the commit that contains this file (git log -1 --format=%h -- docs/progress.md). Work went straight to main; there are no branches and no CI workflow (one workflow publishes the docs site). The local gates are the contract (see "Commands run"). Results below come from 2026-11-30 on the working tree that includes the v1.4 migration, unless a row or heading gives another date.
Build machine
| Item | Value |
|---|---|
| OS | Ubuntu 26.04.1 LTS, kernel 7.0.0-43-generic (spec target is Ubuntu 24.04; not measured there) |
| Python, uv | 3.12.11, 0.13.10 |
| CAD | build123d 0.13.0 on cadquery-ocp-novtk 8.0.1.1.0 (OCP.__version__ 8.0.1.1; OCP exposes no OCCT version call) |
| Libraries | pydantic 2.14.4 |
| Test tools | pytest 9.2.0, hypothesis 6.170.23, ruff 0.17.6, mypy 2.4.1 |
Agent runtime (optional group agents) | strands-agents 1.68.0 (core SDK, strands-agents[openai]), openai 3.60.0, httpx2 2.16.2. strands-harness 0.6.0 belonged to this group until 2026-11-30 and is gone from pyproject.toml and uv.lock. |
Commands run and what they printed
| Command | Result |
|---|---|
bash scripts/check-fast.sh | exit 0: ruff clean, format clean (312 files), mypy --strict clean (67 source files), 3865 passed, 452 deselected (2026-12-03, one run on the merged tree of issues 40, 42, 7, 6, 27, 43, 44, 41, 14, 8, 30, 31, 32, 33, 45, 12, 5, 34, 46, 9, 37, 22, 52, 51, 10, 23, 13, 35 phase 1, 56, 50, 48, 15, 11, 54, 53, 26, 16, 35 phase 2 and the README media of 57, plus the schema, unit, symlink, evaluation-runner and Hypothesis-deadline fixes) |
bash scripts/check-geometry.sh | exit 0: 383 native tests passed (2026-12-03, one run) |
bash scripts/check-agents.sh | exit 0: 523 passed (2026-12-03, one run); needs uv sync --group agents and fails, never skips, without it; also checks that all 4782 collected tests belong to one gate |
.venv/bin/python scripts/mutation_check.py --workdir <empty dir> | 1785 mutants (9 new OL mutants of the issue 4 omission live-run recorder, 13 new EV mutants of issue 35 phase 2, 9 more RP mutants from the issue 16 review, 52 new RP mutants of issue 16, 99 new AP mutants of issue 53, 15 new DS mutants of issue 26, 36 new AX mutants of issue 54, 22 new VW mutants of issue 11, 125 new GE mutants of issue 15, 21 new LX mutants of issue 48, 47 new SX mutants of issue 50, 43 new ST mutants of issue 56, 7 new EM mutants of issue 35 and its runner fixes, 1 CF mutant, 27 new FB mutants of issue 23, 39 new CR mutants of issue 13, 66 new PJ, 44 new AS and 53 new PI mutants, 84 FY mutants of issue 52, 34 new OM mutants of issue 22, 17 new CM mutants of issue 37, 52 new BS mutants of issue 9, 22 new FM, EA, BV and CS mutants, 186 AG mutants, 19 AGM mutants, 14 RP mutants, 39 MV mutants and 405 others, including the 15 PW and 8 KG mutants, the 97 TV, 6 IH and 11 SP mutants and the 7 AT, 10 new KH, 16 KF, 17 KP, 8 RQ, 21 YE, 14 RV, 12 TL and 18 MX mutants). Full run of 2026-12-01 at 3bb0a44 over the first 273: 272 killed, 0 survived, 1 capped (W10), 0 invalid, 0 broken; control 1093 passed before and after. W10 was then rescoped to one test and killed on its own in 3.5 s, and the 11 mutants added on 2026-12-02 (F04, F05, C13 to C16, AGP15 to AGP19) were killed in a separate run, controls clean. The 21 mutants added for issue 29 (AGX29 to AGX49) were killed in a separate run on 2026-12-02, controls clean. The 25 mutants added for issue 39 (KH01 to KH25) were killed in a separate run on 2026-12-02, controls clean. The 7 mutants added for issue 36 (AT01 to AT07) were killed in a separate run on 2026-12-02, controls clean. The 60 mutants added for issues 23 and 13 (FB01 to FB22, CR01 to CR38) were killed in a separate run on 2026-12-03 on the merged tree, controls clean (314 passed before and after). The 6 mutants added with the review fixes (FB23 to FB27, CR39) were killed in a second run, controls clean (104 passed before and after); the first run left FB23 alive until the test gained a quote with no word after the number. The 4 EM mutants of issue 35 were killed in their own run on 2026-12-03 on the merged tree, controls clean (5 passed before and after). EM05 to EM07 (the runner fixes) and CF01 (the Hypothesis profile) were killed in their own runs, controls clean (17 to 24 passed before and after). The 43 ST mutants of issue 56 were killed in one run on 2026-12-03 on the merged tree: mutants: 43 KILLED=43 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, controls clean (107 passed before and after). No single run covers all 619 |
.venv/bin/python scripts/kernel_error_survey.py | 37 angles x 25 offsets = 925 queries; largest kernel/oracle difference 8.882e-15 mm (at 70 deg, offset 0.3 mm); 8.12 s in all, about 8.8 ms per query including solid construction (one run) |
.venv/bin/arena verify --angle-deg 45 --offset-mm 0 | gap 2 mm, relation separated, satisfied, exit 0 |
.venv/bin/arena verify --angle-deg 45 --offset-mm=-1.2 | gap 0.8 mm, relation separated, violated (clearance_below_minimum), exit 1 |
.venv/bin/arena verify --angle-deg 45 --offset-mm=-0.5 | gap 1.5 mm, indeterminate (within_ambiguity_band), exit 2 |
.venv/bin/arena sweep --angles-deg 0,30,60,90 --offsets-mm=-1.2 | no_failure_found, smallest gap 8.04831268601 mm, grid-only statement, exit 0 |
.venv/bin/arena sweep --angles-deg 0,30,45,60,90 --offsets-mm=-1.2 | failure_found, 1 violated point, smallest gap 0.8 mm, exit 1 |
arena export-lattice (default 91 by 49 grid) | 4459 cells in 333.816 s: 4388 satisfied, 70 violated, 1 indeterminate; header input_sha256 b0ea8550906aec5a1c95a18b1c5d0220c57ec824c2a6db932625daea64b6fd8f, file SHA-256 d05537d30eb43136fca4f3e5667883cc404d505aa9421adfba8cc0b176179237 (2026-12-02, one run) |
Test count: 4782 collected = 3865 selected by the fast gate (3865 passed) + 383 native tests + 523 selected by the agents gate (523 passed) + 11 install tests that only scripts/check-install.sh runs. Each gate prints its passed count and fails below a floor (3865, 383 and 523), and check-agents.sh fails when a collected test belongs to no gate. The mutation harness selections are --only '^(?!AG)' (1580 mutants, including AT01 to AT07, OM01 to OM34, FY01 to FY84, PJ, AS, PI, FB, CR, ST, SX, LX, GE, VW, AX, DS, AP and RP) and --only '^AG' (205 mutants, counted from the MUTANTS list on 2026-12-03; the earlier 433 and 186 were stale). The AG mutants need --python set to an interpreter that has the agents group; the default .venv/bin/python has it.
The mutation check found real gaps
The harness copies the tree, applies one mutant at a time, reads the edit back and runs the tests under a time and memory cap. A capped run is its own outcome and never counts as a kill. These are the first-run results, taken from the run logs and the B0 record:
- B0, at c2dcb01 (2026-11-28). The first run killed 31 of 38 mutants. The seven survivors were guards that no test exercised: the
NaNwitness masked a missing non-finite check, the kernel flag was never asserted, the inclusion flag never reached a test, the fixture validity and volume checks had no tampered-solid test, the oracle's non-finite message was unchecked, and an unknown verdict in aggregation was accepted. Eight tests were added (226 total) and the full run was repeated: all 38 killed, controls passed before and after. - First worker batch (2026-11-28). 39 mutants: 38 killed, 0 survived, 1 capped. The capped mutant (
W06, the reaper never sendsSIGKILL) left a child that ignoresSIGTERMalive until the 300 s cap. The test child now ends itself withSIGALRMafter 30 s, and the next batch killedW06. - First agent batch (2026-11-28). 77 mutants: 75 killed, 2 survived (
AGT05andAGF12).AGT05only echoed the model's own call back, which leaks nothing, so a mutant that sendsstr(exc)to the model replaced it. That is the leak the adapter exists to prevent.AGF12(prompt caching switched on) proved equivalent and was removed. - Next batch (2026-11-28). 33 mutants: 3 survived (
C12,AGA01,AGA12). Each got a test, and the rerun killed all three (see the defects below). - Full run (2026-11-28). 235 mutants: 4 survived (
V10,V11,W18,AGP13) and 1 was capped (W10, the query deadline replaced by an hour). The run log is the source for these counts; the run was not repeated for this file. - Current harness (2026-12-03). 1785 mutants, the length of
MUTANTSinscripts/mutation_check.py. 273 of them existed for the full run on 2026-12-01, and 11 came with the drift audit of 2026-12-02. The full run (tree 3bb0a44, about 2 h 10 min) killed 272, left no survivor and capped one:W10(the query deadline replaced by an hour) hit the 300 s cap, as it had on 2026-11-28. The cause was the harness, not the test:W10ran the whole suite with--maxfail=4, and every hang test waits out its 25 s alarm first.W10now runs onlytest_a_query_waits_for_its_own_deadline_not_a_longer_one, which records the timeout passed to_receiveand fails on 3600. Run alone with--only '^W10$'it is killed, control passed before and after. No full run has been repeated on the rescoped harness, so the kills of those 273 rest on two runs, and the 11 later mutants on a third. The 25KHmutants added for issue 39 on 2026-12-02 were killed in their own run, controls clean, and the 21AGXmutants of issue 29 in another. The 7ATmutants of issue 36 were killed in their own run on 2026-12-02, controls clean. The 34OMmutants of issue 22 were killed in their own run on 2026-12-02, controls clean. The 84FYmutants of issue 52 were killed in their own run on 2026-12-02, controls clean. The 66PJ, 44ASand 53PImutants of issues 51 and 10 were killed in a separate run on 2026-12-02, controls clean. The 22FBmutants of issue 23 and the 38CRmutants of issue 13 were killed in a separate run on 2026-12-03, controls clean. - Full run stopped (2026-12-04). A second full run over the whole harness (2150 mutants at the time) started on four lanes of about 58 mutants each. The owner stopped it after 20 mutants (lane W0 5, W1 6, W2 5, W3 4): 20 killed and no survivor. The lanes had spent about 2 h 40 min on their control run and the first mutants, so the run could not finish before the deadline, and the CPU went to the interface work. The last complete run is the one of 2026-12-01 over the first 273 mutants. Mutants added since then ran only in targeted
--onlybatches, each with the control green first. The stop is recorded in issue 66. - Arm H2 design search stopped (2026-12-04). A search for a better hybrid than arm H of rung v7 replayed 10 candidate designs on the stored first calls of rungs v5 and v6, offline, in three rounds under rules committed before each round. No design met the rule. The closest, TN (restart the search only when it found nothing below its start), scored 173 of 196 on needle boxes and 92 of 97 on E1 boxes, against 178 and 86 for arm H, and missed the needle guard by 2 runs. The owner stopped the search and ran no live H2 campaign. Rung v7 stays the result of the hybrid. The replay script and its results are not in this repository; issue 66 holds the numbers and the stop.
- Arm H mutants postponed (2026-12-04). The
HYmutants of the hybrid module were not merged. Their first run left four survivors (HY024, HY034, HY036, HY037) that need stronger tests. The replicate logic carries 65RPCmutants that all die. The postponement is recorded in issue 66.
Sketch input (issue 24)
arena fixture-from-sketch turns one PNG or JPEG into a plain-text transcription, then uses the
prose-to-fixture path unchanged. sketch_input.py owns the magic-byte, size, pixel and file-stability
guards; agents/sketch_reader.py owns the one tool-less vision request; the echo prints the image
hash and the transcription, writes <output stem>.description.txt, and leaves clearance
verification to verify-fixture. The five clean live-gate sketches measured the sketched values
and the two defective sketches ended in a question, as recorded in docs/sketch-live-gate/.
Session K49 made no provider call.
Two new boundary tests failed before their fixes: a raw transcription over the cap could pass by
being trimmed, and a truncated JPEG frame segment could pass on its readable dimensions. The
transcription cap now applies before trimming, and the JPEG frame segment must fit in the file.
The SK batch covers all 78 new guards. The exact command
.venv/bin/python scripts/mutation_check.py --workdir runs/mut_24 --only '^SK[0-9]+$' --python "$PWD/.venv/bin/python" ended with control before: PASS (369 passed),
mutants: 78 KILLED=78 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0,
control after: PASS (369 passed) and RESULT: every mutant killed, controls clean. The earlier
run left seven survivors and one broken mutant; the tests and mutants above were added before this
clean run.
Guard coverage for models, motion, search, ledger, evidence and replay (issue 15)
Added on 2026-12-03 by Kiro CLI on amazon-ergo, baseline 1c4fd87, offline except gh issue view 15. The 125 GE mutants cover guards in models.py, motion.py, search.py, ledger.py, evidence.py and replay.py. The inherited batch left 8 survivors, 2 invalid patterns and 1 broken mutant. This continuation repaired the GE68 and GE76 indentation patterns and the GE78 conditional expression, and added or corrected tests for GE40, GE50, GE55, GE61, GE63, GE68, GE69, GE71 and GE72. GE40 isolates the finding canonical-JSON check from the state seal. GE50 asserts the finite-bound reason with NaN and infinity. GE55 passes an invalid Scenario instance back through validation. GE63 forces a cache miss so the confirmation guard is reached. GE68 pins the explicit finding branch independently of the aggregate fallback. GE69 cancels after one satisfied evaluation. GE71 checks the persisted status after wall-time exhaustion. GE72 removes the terminal-ledger guard rather than disabling the status write.
Final command: .venv/bin/python scripts/mutation_check.py --workdir runs/mut_15 --only 'GE[0-9]+' --python "$PWD/.venv/bin/python". It printed control before: PASS (135 passed), mutants: 125 KILLED=125 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, control after: PASS (135 passed) and RESULT: every mutant killed, controls clean. The table names the test the harness reported for each kill. Parametrized node suffixes are shortened to the test function.
| Module | Guard | Mutant id | Killing test |
|---|---|---|---|
motion | non-iterable transform vector accepted | GE01 | tests/test_motion.py::test_transform_vectors_must_be_non_text_iterables |
motion | wrong-length transform vector accepted | GE02 | tests/test_motion.py::test_transform_vectors_must_have_the_declared_length |
motion | compose accepts a non-transform child | GE03 | tests/test_motion.py::test_compose_refuses_a_non_transform_child |
motion | empty or non-text joint identity accepted | GE04 | tests/test_motion.py::test_joint_identity_fields_are_non_empty_strings |
motion | non-text joint kind accepted | GE05 | tests/test_motion.py::test_joint_kind_and_fixed_transform_are_typed |
motion | non-transform fixed joint accepted | GE06 | tests/test_motion.py::test_joint_kind_and_fixed_transform_are_typed |
motion | non-transform joint frames accepted | GE07 | tests/test_motion.py::test_revolute_joint_refuses_non_transform_frames |
motion | non-iterable joint limits accepted | GE08 | tests/test_motion.py::test_revolute_joint_limits_need_a_non_text_pair |
motion | three joint limits accepted | GE09 | tests/test_motion.py::test_revolute_joint_limits_need_a_non_text_pair |
motion | non-iterable joint axis accepted | GE10 | tests/test_motion.py::test_revolute_joint_axis_must_be_an_iterable |
motion | empty kinematic tree accepted | GE11 | tests/test_motion.py::test_kinematic_tree_construction_guards |
motion | non-transform world accepted | GE12 | tests/test_motion.py::test_kinematic_tree_construction_guards |
motion | empty or non-text root accepted | GE13 | tests/test_motion.py::test_kinematic_tree_construction_guards |
motion | non-Joint tree member accepted | GE14 | tests/test_motion.py::test_kinematic_tree_construction_guards |
motion | empty or non-text occurrence accepted | GE15 | tests/test_motion.py::test_kinematic_tree_occurrences_are_non_empty_strings_and_contain_the_root |
motion | root outside occurrences accepted | GE16 | tests/test_motion.py::test_kinematic_tree_occurrences_are_non_empty_strings_and_contain_the_root |
motion | root as child accepted | GE17 | tests/test_motion.py::test_kinematic_tree_refuses_the_root_as_a_child |
motion | disconnected occurrence accepted | GE18 | tests/test_motion.py::test_kinematic_tree_refuses_a_disconnected_joint |
motion | non-mapping joint positions accepted | GE19 | tests/test_motion.py::test_pose_requires_a_mapping_of_joint_positions |
motion | non-mapping fixed transform overrides accepted | GE20 | tests/test_motion.py::test_fixed_transform_overrides_must_be_a_mapping |
motion | non-transform fixed override accepted | GE21 | tests/test_motion.py::test_each_fixed_transform_override_must_be_a_transform |
ledger | evaluation without scenario or one credit accepted | GE22 | tests/test_ledger.py::test_ledger_entry_shape_guards_reject_inconsistent_entries |
ledger | cache hit with native query accepted | GE23 | tests/test_ledger.py::test_ledger_entry_shape_guards_reject_inconsistent_entries |
ledger | non-cache evaluation without native query accepted | GE24 | tests/test_ledger.py::test_ledger_entry_shape_guards_reject_inconsistent_entries |
ledger | retry cache-hit entry accepted | GE25 | tests/test_ledger.py::test_ledger_entry_shape_guards_reject_inconsistent_entries |
ledger | rejected, finding or status entry spends resources | GE26 | tests/test_ledger.py::test_ledger_entry_shape_guards_reject_inconsistent_entries |
ledger | rejection without reason accepted | GE27 | tests/test_ledger.py::test_ledger_entry_shape_guards_reject_inconsistent_entries |
ledger | finding without scenario accepted | GE28 | tests/test_ledger.py::test_ledger_entry_shape_guards_reject_inconsistent_entries |
ledger | unknown terminal status entry accepted | GE29 | tests/test_ledger.py::test_ledger_entry_shape_guards_reject_inconsistent_entries |
ledger | multiple terminal status entries accepted | GE30 | tests/test_ledger.py::test_ledger_state_rejects_two_terminal_status_entries |
ledger | ledger status inconsistent with its entry accepted | GE31 | tests/test_ledger.py::test_ledger_state_status_matches_the_status_entry |
ledger | creating over an existing ledger resets it | GE32 | tests/test_ledger.py::test_create_never_resets_an_existing_ledger |
ledger | unreadable ledger escapes as a raw exception | GE33 | tests/test_ledger.py::test_open_failures_are_ledger_errors |
ledger | ledger reopened with a different budget accepted | GE34 | tests/test_ledger.py::test_reopen_refuses_a_different_budget |
ledger | non-cache reservation without native query accepted | GE35 | tests/test_ledger.py::test_a_non_cache_reservation_must_include_a_native_query |
ledger | completion of missing sequence accepted | GE36 | tests/test_ledger.py::test_completion_sequence_must_name_an_existing_entry |
ledger | terminal ledger accepts rejected request entries | GE37 | tests/test_ledger.py::test_terminal_ledger_refuses_rejections_and_findings |
ledger | terminal ledger accepts findings | GE38 | tests/test_ledger.py::test_terminal_ledger_refuses_rejections_and_findings |
ledger | finding without scenario key accepted | GE39 | tests/test_ledger.py::test_a_finding_needs_a_scenario_key_and_canonical_json |
ledger | finding outside canonical JSON accepted | GE40 | tests/test_ledger.py::test_a_finding_needs_a_scenario_key_and_canonical_json |
ledger | unknown terminal status accepted | GE41 | tests/test_ledger.py::test_unknown_terminal_status_is_refused |
ledger | repeating terminal status adds an entry or fails | GE42 | tests/test_ledger.py::test_setting_the_same_terminal_status_is_idempotent |
ledger | cache lookup ignores completed results | GE43 | tests/test_ledger.py::test_cache_lookup_skips_an_incomplete_reservation |
ledger | in-memory ledger writes to a missing path | GE44 | tests/test_ledger.py::test_in_memory_writes_need_no_filesystem_path |
search | boolean or non-numeric wall time accepted | GE45 | tests/test_search.py::test_wall_time_must_be_a_non_boolean_number |
search | non-boolean polish flag accepted | GE46 | tests/test_search.py::test_polish_must_be_a_boolean |
search | largest declared seed rejected | GE47 | tests/test_search.py::test_seed_and_retry_upper_bounds_are_inclusive |
search | largest declared retry count rejected | GE48 | tests/test_search.py::test_seed_and_retry_upper_bounds_are_inclusive |
search | boolean or non-numeric search bound accepted | GE49 | tests/test_search.py::test_search_space_rejects_non_numeric_and_non_finite_bounds |
search | non-finite search bound accepted | GE50 | tests/test_search.py::test_search_space_rejects_non_numeric_and_non_finite_bounds |
search | search space reads a non-spec object | GE51 | tests/test_search.py::test_search_space_needs_a_mechanism_spec_with_one_joint_and_uncertainty |
search | search space accepts extra uncertainty dimensions | GE52 | tests/test_search.py::test_search_space_needs_a_mechanism_spec_with_one_joint_and_uncertainty |
search | scenario outside declared search bounds accepted | GE53 | tests/test_search.py::test_scenario_checks_declared_space_bounds_after_global_validation |
search | scenario mapping treated as a scenario instance | GE54 | tests/test_search.py::test_contains_accepts_only_a_validated_scenario_instance |
search | invalid scenario mapping escapes containment check | GE55 | tests/test_search.py::test_contains_accepts_only_a_validated_scenario_instance |
search | evaluator accepts a non-callable measure | GE56 | tests/test_search.py::test_the_evaluator_and_search_require_a_callable_measure |
search | unknown evaluation phase accepted | GE57 | tests/test_search.py::test_an_unknown_evaluation_phase_is_refused_before_a_charge |
search | invalid scenario escapes as a raw validation error | GE58 | tests/test_search.py::test_an_invalid_scenario_is_rejected_and_spends_nothing |
search | cache miss treated as a cached result | GE59 | tests/test_search.py::test_a_cache_hit_spends_a_credit_and_makes_no_native_call |
search | duplicate diagnostic points consume the strategy budget | GE60 | tests/test_search.py::test_degenerate_diagnostics_still_fill_the_proposed_scope_once |
search | repeated candidate appears more than once in scope | GE61 | tests/test_search.py::test_a_repeated_candidate_appears_once_in_the_proposed_scope |
search | every candidate gets a confirmation | GE62 | tests/test_search.py::test_only_a_violated_candidate_gets_a_confirmation |
search | same unconfirmed candidate is confirmed repeatedly | GE63 | tests/test_search.py::test_a_repeated_unconfirmed_candidate_is_not_confirmed_twice |
search | unaffordable confirmation is not counted as unconfirmed | GE64 | tests/test_search.py::test_a_confirmation_refused_by_the_budget_counts_as_unconfirmed |
search | polish flag ignored | GE65 | tests/test_search.py::test_polish_false_disables_the_polishing_phase |
search | zero planned Sobol points raises instead of drawing one unused point | GE66 | tests/test_search.py::test_zero_planned_sobol_points_use_a_defined_empty_draw |
search | differential evolution starts with no remaining budget | GE67 | tests/test_search.py::test_differential_evolution_does_not_start_after_diagnostics_fill_the_budget |
search | confirmed finding omitted from conclusion | GE68 | tests/test_search.py::test_a_confirmed_finding_does_not_use_the_aggregate_fallback |
search | cancelled search without unconfirmed candidates reads as a clean campaign | GE69 | tests/test_search.py::test_cancellation_after_a_satisfied_evaluation_is_inconclusive |
search | cancelled search persists completed instead | GE70 | tests/test_search.py::test_cancellation_before_the_first_evaluation_is_inconclusive |
search | exhausted search persists completed instead | GE71 | tests/test_search.py::test_wall_time_exhaustion_stops_the_search |
search | cancelled status written to an already terminal ledger | GE72 | tests/test_search.py::test_an_already_terminal_ledger_is_not_overwritten_by_cancellation |
search | completed search leaves the ledger running | GE73 | tests/test_search.py::test_exhausted_and_completed_searches_persist_their_terminal_status |
search | unrelated SciPy failure swallowed as budget exhaustion | GE74 | tests/test_search.py::test_an_unrelated_scipy_runtime_error_is_not_swallowed |
search | backward clock produces negative latency | GE75 | tests/test_search.py::test_latency_is_never_negative_when_a_clock_moves_backwards |
evidence | bundle writer accepts extra uncertainty dimensions | GE76 | tests/test_evidence.py::test_scenario_document_requires_one_joint_and_one_uncertainty |
evidence | failed query exported as completed typed result | GE77 | tests/test_evidence.py::test_typed_verification_marks_failed_kernel_queries |
evidence | fixture failure exported as kernel query failure | GE78 | tests/test_evidence.py::test_typed_verification_distinguishes_fixture_failures |
evidence | bundle path that is a file accepted | GE79 | tests/test_evidence.py::test_a_bundle_path_that_is_a_file_is_refused |
evidence | typed non-violation exported as a counterexample | GE80 | tests/test_evidence.py::test_write_bundle_rechecks_the_typed_verdict |
evidence | unreadable evidence JSON escapes as a raw exception | GE81 | tests/test_evidence.py::test_load_json_fails_closed_for_missing_malformed_and_non_object_files |
evidence | non-object evidence JSON accepted | GE82 | tests/test_evidence.py::test_load_json_fails_closed_for_missing_malformed_and_non_object_files |
replay | missing bundle directory reads as a missing manifest | GE83 | tests/test_replay.py::test_a_missing_bundle_directory_is_rejected |
replay | missing manifest reported as malformed rather than absent | GE84 | tests/test_replay.py::test_a_missing_or_malformed_manifest_is_rejected |
replay | malformed manifest escapes the replay error type | GE85 | tests/test_replay.py::test_a_missing_or_malformed_manifest_is_rejected |
replay | missing evidence file read instead of rejected | GE86 | tests/test_replay.py::test_a_missing_bundle_file_is_rejected |
replay | stale scenario escapes as a raw model error | GE87 | tests/test_replay.py::test_a_scenario_outside_the_declared_bounds_is_rejected |
replay | result may belong to another design | GE88 | tests/test_replay.py::test_result_design_scenario_and_constraint_count_are_bound_to_the_bundle |
replay | result may carry another scenario | GE89 | tests/test_replay.py::test_result_design_scenario_and_constraint_count_are_bound_to_the_bundle |
replay | counterexample result with extra constraints accepted | GE90 | tests/test_replay.py::test_result_design_scenario_and_constraint_count_are_bound_to_the_bundle |
replay | counterexample may belong to another design | GE91 | tests/test_replay.py::test_counterexample_cross_references_are_bound |
replay | counterexample may cite another scenario | GE92 | tests/test_replay.py::test_counterexample_cross_references_are_bound |
replay | counterexample specification hash not bound to manifest | GE93 | tests/test_replay.py::test_counterexample_cross_references_are_bound |
replay | counterexample scenario hash not bound to manifest | GE94 | tests/test_replay.py::test_counterexample_cross_references_are_bound |
replay | manifest policy hash not bound to specification | GE95 | tests/test_replay.py::test_every_manifest_reference_is_bound_to_the_bundle |
replay | manifest design hash not bound to design | GE96 | tests/test_replay.py::test_every_manifest_reference_is_bound_to_the_bundle |
replay | manifest scenario id not bound to scenario | GE97 | tests/test_replay.py::test_every_manifest_reference_is_bound_to_the_bundle |
replay | manifest result id not bound to result | GE98 | tests/test_replay.py::test_every_manifest_reference_is_bound_to_the_bundle |
replay | manifest counterexample id not bound to counterexample | GE99 | tests/test_replay.py::test_every_manifest_reference_is_bound_to_the_bundle |
replay | counterexample expected verdict not bound to result | GE100 | tests/test_replay.py::test_expected_verdict_is_bound_to_the_result |
replay | counterexample expected distance not bound to result | GE101 | tests/test_replay.py::test_expected_distance_is_bound_to_the_result |
replay | any mismatch reads as a matched replay | GE102 | tests/test_replay.py::test_replay_reason_and_matched_cover_each_mismatch_combination |
replay | mismatch reported as a match reason | GE103 | tests/test_replay.py::test_replay_reason_and_matched_cover_each_mismatch_combination |
replay | combined mismatch reported as verdict-only | GE104 | tests/test_replay.py::test_replay_reason_and_matched_cover_each_mismatch_combination |
replay | verdict mismatch reported as numerical-only | GE105 | tests/test_replay.py::test_replay_reason_and_matched_cover_each_mismatch_combination |
replay | failed replay subtraction instead of no numerical match | GE106 | tests/test_replay.py::test_a_replayed_failed_query_has_no_numerical_match |
models | non-text geometry parameter name accepted | GE107 | tests/test_model_guards.py::test_a_geometry_parameter_name_must_be_text |
models | non-text binding id accepted by the mapping normalizer | GE108 | tests/test_model_guards.py::test_a_binding_mapping_needs_text_ids_and_mapping_bodies |
models | non-mapping binding body accepted by the normalizer | GE109 | tests/test_model_guards.py::test_a_binding_mapping_needs_text_ids_and_mapping_bodies |
models | empty occurrence name accepted in a scope | GE110 | tests/test_model_guards.py::test_a_scope_pair_cannot_have_an_empty_occurrence |
models | angle binding unit not normalized | GE111 | tests/test_model_guards.py::test_binding_unit_normalization_falls_back_to_angle_units |
models | design from a stale template version accepted | GE112 | tests/test_model_guards.py::test_verifiable_design_checks_the_template_version_separately |
models | scenario bound to another design accepted | GE113 | tests/test_model_guards.py::test_verifiable_scenario_checks_the_design_hash_separately |
models | unsafe or malformed YAML escapes as a raw parser error | GE114 | tests/test_models.py::test_yaml_is_loaded_safely_and_json_is_accepted |
models | non-UTF-8 specification escapes as a raw decode error | GE115 | tests/test_model_guards.py::test_a_non_utf8_spec_file_is_refused |
models | invalid specification escapes as a raw validation error | GE116 | tests/test_models.py::test_bad_documents_are_refused |
models | units normalizer accepts a non-mapping | GE117 | tests/test_model_guards.py::test_model_normalizers_reject_non_mapping_input |
models | geometry parameter normalizer accepts a non-mapping | GE118 | tests/test_model_guards.py::test_model_normalizers_reject_non_mapping_input |
models | binding normalizer accepts a non-mapping | GE119 | tests/test_model_guards.py::test_model_normalizers_reject_non_mapping_input |
models | frame normalizer accepts a non-mapping | GE120 | tests/test_model_guards.py::test_model_normalizers_reject_non_mapping_input |
models | joint normalizer accepts a non-mapping | GE121 | tests/test_model_guards.py::test_model_normalizers_reject_non_mapping_input |
models | uncertainty normalizer accepts a non-mapping | GE122 | tests/test_model_guards.py::test_model_normalizers_reject_non_mapping_input |
models | requirement normalizer accepts a non-mapping | GE123 | tests/test_model_guards.py::test_model_normalizers_reject_non_mapping_input |
models | editable parameter normalizer accepts a non-mapping | GE124 | tests/test_model_guards.py::test_model_normalizers_reject_non_mapping_input |
models | mechanism spec normalizer accepts a non-mapping | GE125 | tests/test_model_guards.py::test_model_normalizers_reject_non_mapping_input |
Supervised worker and arena doctor (issue 3, closed)
arena verify and arena sweep send every kernel query to one spawned worker process (--in-process skips it). The parent speaks JSON only, over a pipe, with a hard deadline of 10 s per query and a 30 s start-up limit. A crash, a hang, a malformed reply or a failed start becomes a NativeQueryError with a worker_* code (worker_start_failed, worker_crashed, worker_timeout, worker_protocol_error, worker_invalid_request, worker_exception, worker_unreapable, worker_closed). The result is indeterminate with reason code kernel_query_failed, the worker_* code sits in native_error, and the exit status is 2, never 0. The parent terminates, then kills, then reaps the child, and starts a fresh process and a fresh pipe for the next query. The supervisor removes the provider credentials from the environment while it starts the child. A fixture error raised in the worker reaches the verifier as a fixed message with no worker text.
arena doctor output on the build machine, 2026-11-30. It exits 0 when every capability works and 2 when one is missing or when nothing was checked. arena doctor --json prints the same facts plus a worker block with start_method, deadline_s, terminate_grace_s and kill_wait_s.
ToleranceArena doctor
os: Linux-7.0.0-43-generic-x86_64-with-glibc2.43
python: 3.12.11
build123d: 0.13.0
cadquery-ocp-novtk: 8.0.1.1.0
ocp: 8.0.1.1
occt: not exposed by OCP
tolerance-arena: 0.1.0
worker_start_method: spawn
worker_limits: deadline_s=10.0 terminate_grace_s=2.0 kill_wait_s=2.0
capability.kernel_distance_query: ok (gap 2 mm at 45 deg and 0 mm, oracle 2 mm, difference 2.44e-15 mm)
capability.failed_query_reporting: ok (an empty shape and an invalid shape raise NativeQueryError)
capability.worker_round_trip: ok (gap 0.8 mm from process 2779765, oracle 0.8 mm, difference 3.33e-16 mm)
capability.worker_recovery: ok (fresh process 2780604 answered correctly after SIGKILL of 2779765)
measurement.worker_startup_s: 1.96719
measurement.worker_query_ms: 27.0158
measurement.worker_peak_rss_mib: 385.465
relation_policy: separated only; touching, overlap and inclusion report unknown; an invalid shape is a failed query
not_advertised: step_import, glb_export, pairs_other_than_pin_obstacle, intersection_and_containment_classification
doctor: ok
Each capability is checked by doing it once on the machine, so a check that raises, returns a wrong value or does not exist reads as missing. worker_recovery sends SIGKILL to the live worker and requires a fresh process to give the right gap.
| Measurement | Value | Conditions |
|---|---|---|
Worker start-up (spawn, import build123d, ready message) | 1.54 to 1.62 s on 2026-11-28; 1.97 s on 2026-11-30 | 2026-11-28: four runs, load average about 2.8. 2026-11-30: one run, load average about 3.5. The machine was not idle either time. |
| One scenario through the worker | 5.5 to 6.8 ms on 2026-11-28; 27.0 ms on 2026-11-30 | includes solid construction and the pipe round trip. The 2026-11-30 value is one run, and nobody investigated the difference. |
| Worker peak memory | 425.4 to 425.7 MiB on 2026-11-28; 385.5 MiB on 2026-11-30 | largest ru_maxrss the worker reported on any reply during the doctor run |
Relation fixtures (tests/test_relations.py, real kernel). The kernel returns a finite gap for invalid shapes, so the adapter refuses them before measuring. The first four rows are raw kernel measurements of cylinder pairs that are not the rotating_pin_v1 fixture. The test reads the relation from evaluate and takes the verdict from classify_clearance with agrees=True. Those rows show the verdict a pair would get if the oracle agreed. A real scenario with these distances would also meet the oracle comparison and, on a mismatch, report native_reference_mismatch. The last row is the result of evaluate itself.
| Fixture | Gap the kernel reports | Relation | Verdict if the oracle agreed | Reason codes |
|---|---|---|---|---|
| Separated cylinders (centres 6 mm apart, radius 2 mm) | 2 mm | separated | satisfied | none |
| Touching faces (centres 4 mm apart) | 7.3e-16 mm | unknown | violated | clearance_below_minimum, relation_unclassified |
| Overlapping solids (centres 3 mm apart) | 0 mm | unknown | violated | clearance_below_minimum, relation_unclassified |
| One solid inside the other | 0 mm, inclusion flag set | unknown | violated | clearance_below_minimum, relation_unclassified |
| Invalid shape (zero-radius cylinder) | none | unknown | indeterminate (from evaluate) | kernel_query_failed (native_error invalid_shape) |
Strands analyst (issue 4)
Built and tested offline on the core Strands SDK. Every test uses a scripted model or a fake httpx2 transport, and a suite-wide guard fails any test that opens an internet socket, so nothing reached a provider.
-
Restricted factory.
build_role_agentconstructsstrands.Agentdirectly. It passes the three domain tools as the whole tool list and the caller's system prompt, and it setscallback_handler=None, a sequential tool executor, one model attempt,load_tools_from_directory=False,context_manager=False,plugins=[]andsession_manager=None. The SDK adds its own structured-output tool when a run asks for a structured answer, and tests check that the model sees the three domain tools plus that one. Tests plant a hostileAGENTS.md,CLAUDE.md, skill, memory file andtools/directory in the working directory, and check that none of them reaches the model, that no file is written, and that a model call to any of 15 prohibited names (shell,bash,subagentand twelve others) runs nothing. -
Gateway. The model's tool arguments reach the gateway as raw parsed JSON. It rejects booleans, numeric strings, NaN, infinity, unknown keys, empty and oversized batches, charges the budget before it does any work, and returns only what
verify.evaluatemeasured. The campaign outcome is derived from stored verdicts: a run that measured nothing readsinconclusive. A failed query stays stored and readable, and an analysis may not cite it. -
Budgets. In-memory shim of the spec 8.5 discovery limits: 500 credits, 4 model requests, 8 tool dispatches, 120 s, 1 invocation, batches of at most 8 scenarios. The persisted ledger belongs to the search issue.
-
Provider. Groq through Strands'
OpenAIModelwith an injectedopenai.AsyncOpenAIclient: zero client retries, no redirects andtrust_env=False(a test setsHTTPS_PROXYand checks that the HTTP client is built withtrust_env=Falseand no redirects). The one allowed model isqwen/qwen3.8-27b. A request hook runs before every send. It checks the endpoint (POST tohttps://api.groq.com/openai/v1/chat/completions), the model and the full parameter set against the approved values: temperature 0.2,max_completion_tokens2000,reasoning_formathidden,parallel_tool_callsfalse,streamfalse andreasoning_effort(none,default,low,mediumorhigh; defaultlow, an untested starting choice). It refuseslogprobs,logit_bias,top_logprobs,prompt_cache_key,prompt_cache_retention,include_reasoning,nother than 1,messages[].name,messages[].reasoning_content,messages[].reasoning, any parameter outside the approved set,response_formattogether with tools and a body over 64 KiB. Then it reserves one model request before the request leaves. With the default budget the fake transport saw 4 requests and the fifth was refused. With the cap set to 2 it saw 2 and the third was refused. Missing credentials turn the action off with an error that names the variables and never a value. A model id or effort outside its list turns the action off the same way before any request. -
HTTP 429. A 429 ends the run with status
provider_rate_limitedand error codehttp_429. The record keeps onlyretry-afterandx-ratelimit-reset-*values that are plain durations or HTTP dates of at most 32 characters, four entries at most. The request is sent once and counted once. The run neither retries nor falls back to another model. -
Run statuses. Each run ends in one of
completed,missing_credentials,budget_exhausted,request_denied,cancelled,blocked_output,no_structured_output,unsupported_claim,provider_error,provider_rate_limited. -
Phrase screen.
validate_analysisinagents/schemas.pychecks that every cited id belongs to a completed verifier result and thatinspect_findingcites one. It refuses a summary when a pattern from_CLAIM_PATTERNSmatches, ignoring case: "no failure" or "no failures" followed by "exist", "exists", "anywhere", "at all" or "can occur"; "cannot fail", "never fail" or "never fails"; "guarantee", "guarantees", "guaranteed"; "optimal", "optimum", "optimised" or "optimized"; "faster than", "quicker than", "more efficient than" or "quicker"; "superior to"; "beat" or "beats" followed by "search" within 40 characters and no full stop; "outperform", "outperforms" or "outperformed"; "better than" followed by search, sampling or optimisation (with an optional random, grid, numerical or classical before it); "certify", "certifies", "certified" or "certification"; the word "safe" unless "not ", "n't " or "never " directly precedes it; "collision" and "free" joined by spaces, hyphens or underscores; and "all" or "every" followed by scenarios, poses, cases or angles and then "pass" or "satisfy". The screen matches those phrases and nothing else. A paraphrase passes, so it is a minimal guard on advisory text and no proof. -
Run record.
scripts/analyst_live_run.pywrites a recording with provider, model, reasoning effort, the sampling parameters, library versions, admitted tools, result ids, usage, stop reason, rate-limit metadata, a comparison with a declared 21-point grid baseline (7 angles x 3 offsets) and a sanitised trace. The comparison states counts and gaps and claims no speed or success rate. -
Live run (2026-12-02). One run on the public fixture with
qwen/qwen3.8-27bthrough Groq, reasoning effortlow: statusbudget_exhausted, stop reasonlimit_turns, outcomeno_failure_found. The model used all 4 requests (11 996 tokens in 9.98 s of active time) and 20 evaluations over 19 poses, the 4-turn cap ended the run before it emitted aFailureAnalysis, and it did not reach the 45 degree, offset -1.2 pose where the gap is 0.8 mm. The 21-point grid baseline does find it. An earlier run on the same day ended inprovider_errorat its second request (HTTP 400); the record carried no provider body, and two later runs did not reproduce it. The analyst record now stores the provider's HTTP status, error code and a message cut at 300 characters, so the next 400 explains itself. This is one run: it supports no accuracy, success-rate or speed claim, and it shows that the analyst can miss a failure the grid finds. -
Evaluation matrix (2026-12-03). The registered 12 cells ran on rungs
eval-v0toeval-v3with 120 scored runs, plus three replaced provider-error runs and the smoke run's two records. Raw result: 1 of the 120 scored runs measured a violated pose (cell 5, rungeval-v2, full box, 0.8 mm at 45 degrees and -1.2 mm). The full box supports no capability claim. The off-lattice box was chosen to test refinement: all six cells measured 0 of 10 (Wilson 95% [0.000, 0.277]) while the seeded random baseline found a violation in 37 to 42 of 100 seeds, so the intervals do not overlap and the agent interval is below the random one. 69 of the 120 scored runs ended in a model-writtenFailureAnalysis. The 125 records hold 468 model requests and 1 618 646 tokens. The runs shared the machine with other jobs, and the largest active time was 22.413 s against the 120 s limit.docs/analyst-evaluation.mdholds every cell, both baselines, the record-derived counts and the reproduction commands.
Done: 69 of the 120 scored runs ended in a model-written FailureAnalysis, and their records carry the sanitised trace. Not done: the comparison of at least two Groq models that issue #4 lists. The allowlist holds one model, so that criterion needs an owner decision. search_failure waits for the search issue and propose_revision for the repair issue.
Defects found while building these
- A crash read as a protocol error. After
SIGKILLthe OCCT worker is multi-threaded: the leader sits in state Z while its threads still exit, soProcess.is_alive()stayed true and a reset pipe was classified from that snapshot as an oversized reply. The classification now follows the exceptionrecv_bytesraised, and the tests and the doctor wait for the full exit withwaitid(WNOWAIT). - Invalid shapes got confident distances. An open shell and a zero-radius cylinder returned finite gaps.
native.measure_distancenow checks validity and refuses withinvalid_shape. - A mutant that never ends. Removing the
SIGKILLfrom the reaper left a SIGTERM-ignoring test child alive, and the interpreter waited for it at exit until the 300 s cap. The child now ends itself withSIGALRMafter 30 s, so the same mutant fails a test instead of running out the clock. - Survivors that exposed gaps. The first agent batch kept
AGT05(replaced by a stronger mutant) andAGF12(removed as equivalent), described above. The batch after it kept three real survivors:arena doctorwith an empty default capability list (no test ran the command with the real checks), a pre-set cancel signal that still started a run (the SDK's own cancel check hid it, so the test now also asserts that no invocation was spent and no agent was built), and the structured-output classifier (the SDK swallows that exception while an attempts limit applies, so the test feeds the classifier the exception chain directly).
Decisions
- ADR-003, direct OCP query. build123d 0.13.0
Shape.distance_toreturnsValue()without checkingIsDone().native.measure_distancechecks completion, solution count, finiteness and sign, and raisesNativeQueryErrorwith a reason code. - Tolerances stay at the spec values. Comparison tolerance 1e-5 mm and ambiguity band 1e-5 mm. The observed kernel error on the survey grid is 8.9e-15 mm, so the comparison tolerance sits about 10^9 above it (ratio 1.13e+09 in the 2026-11-30 survey run).
- Added criterion CV-04.5. A gap above 1.5 mm plus the band with an unclassified relation gives
indeterminate(relation_unclassified). The first verdict table had no row for it. - LLM provider is Groq, with one model. The owner chose Groq on 2026-11-28 and
.kiro/steering/tech.mdrecorded it, while spec v1.3 sections 8.8, 9.4.1, 10.2 and 15.1 still named Anthropic first. Community spec v1.4 (dated 28 November 2026; adopted intodocs/community-spec.mdon 2026-11-30, sha256be637eba...39ff, byte-identical to the owner's Downloads file; v1.3 was2923ed73...1e9a) fixes Groq as the only provider and replaces the assembledstrands-harnesswith the core Strands SDK, instantiated directly withstrands.Agent. v1.4 listsopenai/gpt-oss-120b(default) andopenai/gpt-oss-20b. On 2026-11-30 the owner chose the single modelqwen/qwen3.8-27b, which supersedes that list in this repository. Groq lists it as a preview model and may retire it on short notice. The allowlist is the constantALLOWED_MODELSinprovider.py, and recorded runs replay offline. v1.4 section 8.8 usesinclude_reasoningfor the gpt-oss models. The code sendsreasoning_formathiddenand refusesinclude_reasoning, because a code comment inprovider.pyrecords that Groq documents the two as exclusive and this model needsreasoning_format.GROQ_API_KEYis not set in the build environment. Groq refuses some VPN exit addresses with HTTP 403. httpx2stays. v1.4 nameshttpxas the HTTP layer.openai3.60.0 requireshttpx2, so the provider, the hook and the transports usehttpx2.- Public name is "ToleranceArena". The spec title says "Community Edition"; the repository drops that label so it does not suggest a paid edition.
- AI roles (planned, nothing measured yet). The plan makes no claim that the model finds failures faster than numerical search, and no text may make one until a benchmark measures it. The model is meant to supply what search cannot: reading a mechanism from prose (#23), proposing contributors the problem omits, such as a coating on the cylinders (#22, the headline), and choosing among allowed bindings by a design note (#16). These roles are planned. Every number still comes from the kernel and carries a result ID. A benchmark on planted cases with published raw tallies (#25) decides what the README may claim.
- Supervisor over
multiprocessingspawn, JSON only. A pickle from a child is code the parent would run, and OCCT shapes cannot cross a process boundary anyway. The wire carries finite numbers only (allow_nan=False, NaN and Infinity rejected on read), with a size limit and strict reply validation. - Worker by default.
arena verifyandarena sweepuse the worker.--in-processexists for debugging and says so in its help. - The agent runtime is a separate install group, and the analyst is a core feature.
strands-agents[openai]sits in the dependency groupagents, so the deterministic verifier installs without it. No normal command imports it, a source scan enforces that, andscripts/check-agents.shfails when it is missing. - Outcome derived, never quoted. The analyst's text may not set the campaign outcome. The gateway derives it from stored verifier verdicts, and the phrase screen described above refuses a summary that matches its pattern list.
- No prompt-caching flag in the direct-SDK factory. On 2026-11-28 the harness factory passed
caching=False, and the request bodies withcaching=Falseand"auto"were byte-identical, so the mutant for it (AGF12) was removed as equivalent. The 2026-11-30 factory has no such flag, and the request hook refusesprompt_cache_keyandprompt_cache_retention. - Design direction (planned). The viewer uses the open Cloudscape design system for its shell and a custom Three.js workbench, with its own tokens, IBM Plex type and live scrubbing against the real kernel. The rules live in
.kiro/steering/design.md, which loads only for files underweb/. Thedesign-tasteskill is installed at user level, pinned to commit3218793, and is not part of the repository.
Known limits
- One fixture, one pair (
pinandobstacle), two cylinders. Nothing else is checked. relationisseparatedonly when the gap exceeds the comparison tolerance and OCCT reports no inclusion. There is no intersection or containment classifier.- For equal-height cylinders the witness z is not unique (the kernel reports two solutions at z = 8.0). Do not read meaning into witness z.
- Measured on Ubuntu 26.04 only. The 1e-5 mm tolerance was not re-checked on another kernel build or CPU.
- Worker: the thread-count variables (
OMP_NUM_THREADSand similar) are not set, there is no process-group supervision, and there is no cooperative stop before the firstSIGTERM. Timings come from one machine under load. verifyimports the CAD stack when it loads, so an agent process that imports the gateway also loads OCP, about 400 MiB, even though it measures through the worker. Splitting the import is a later cleanup.- Agent: only 3 of the 5 spec tools exist. The agent runs in the parent process, and no supervised child with an IPC cancel bridge exists. The budget ledger is in memory. Groq accepted the tool schemas and the structured-output tool over four requests in one run, and rejected one earlier run with an HTTP 400 that has not reproduced. The model is a Groq preview model. The 125 evaluation records support no accuracy or speed claim: 1 of 120 scored runs measured a violated pose, and the full box supports no capability claim.
- No CI workflow, except the one that publishes the docs site.
.githooks/pre-pushruns the three gates (check-fast.sh,check-geometry.sh,check-agents.sh); enable withgit config core.hooksPath .githooks. tasks.mduses Kiro-style checkboxes and requirement links, but Kiro does not document that syntax. CV-T09 confirms how the IDE reads it.- The spec files describe checkpoint B0. They carry a note that the worker,
arena doctorand the analyst are implemented and have no requirements in the Kiro spec workflow yet (issue #27). - Departures from spec v1.4 in the built scope, found by the drift audit of 2026-12-02 and confirmed against the code:
- Exit code 130 is built (an interrupt prints one stderr line, writes no JSON and keeps no partial finding). Exit code 124 is not: a worker timeout exits 2 (CV-09.2), where spec 5.4 names 124 for a hard timeout.
- GLB export scale and orientation, an M0 item, was never validated;
arena doctorlistsglb_exportas not advertised. - The kernel runs with the OCP default deflection and algorithm, and neither is recorded. The fixture's own check tolerances (1e-6 mm and 1e-9) live in
fixture.py. arena doctorruns two of its four checks, the kernel query and the failed-query report, in its own process with no deadline.- The JSON has no separate execution field. A worker timeout reads as
indeterminate,kernel_query_failedand the native errorworker_timeout. Spec M1 schedules the execution state. - The sweep text omits the per-point reference gap and relation (the JSON has them), and the sweep takes any angle list without stating an angular resolution.
- Analyst: Stop is checked between tool calls, so a batch of up to 8 scenarios already running is not cut short. No admission policy reads token headroom or rate-limit headers, no attempt ID is issued per send,
evaluate_scenariostakes no request ID, and nothing guards against OTLP telemetry (opentelemetry-sdkis in the lock). The record omits the provider request ID, cached and reasoning tokens and cost. No progress events exist.
- Failure analyst manifest (issue #30): spec v1.4 section 8 lists
describe_problemforfailure_analyst. The Strands/Groq failure analyst no longer receives that tool, andALLOWED_TOOL_NAMESno longer admits it.analyst.render_problem_messagerenders the first user message fromGateway.describe_problem({}), so the declared box, requirement and budget limits reach the first request without a model tool call. The gateway and the Kiro MCP manifest keepdescribe_problemfor the repair and Kiro roles.- Analyst details the spec does not list:
structured_output_attemptsis a fourth SDK cap (2), and an answer that reports no usage ends asprovider_errorwithusage_not_reportedand the analysis is dropped, where spec 8.8 says to mark usage unknown.
- Analyst details the spec does not list:
Kiro credits (issue 1)
Credit request submitted by the owner about 8 hours before 2026-11-28 07:09 UTC. Review takes up to 48 business hours. Status: the owner reported on 2026-12-01 that the credits arrived; the amount is not recorded here. The rules require redeeming credit codes by 2026-12-04, and unredeemed codes expire. Check the Kiro usage dashboard for the credit amount once approved.
Open work
Work is tracked as GitHub issues, 43 in total (41 open: Kiro IDE 14, Kiro CLI 23, owner 4): https://github.com/vladimirrott/tolerance-arena/issues. Each has an owner label (owner:kiro-ide, owner:kiro-cli, owner:human) and a priority. The issues of the first plan also carry a milestone and native blocked by links. The Kiro IDE owns the features whose requirements map to properties (typed verifier, motion and variation, search and replay, repair policy). The first IDE issue is the native spec review and Correctness run (CV-T09). On 2026-12-02 nine issues (#29 to #37) turned the first live run into a tuning and evaluation plan: a declared parameter box (#29), the problem description in the first message (#30), an analysis at the end of every run (#31), boundary-value guidance (#32), a coverage summary (#33), a pre-registered protocol and runner (#34) and the published tallies (#35) go to Kiro CLI; the analyst-tuning spec with its steering file (#36) and a coverage figure (#37) go to Kiro IDE. Kiro CLI implemented #29 (row K08 in docs/KIRO_USAGE.md); it stays open until the owner reads that record. Issue #38 reserves the final review for Kiro on amazon-ergo. Five more issues followed the same day: a stop gate (#39), a tool guard (#40), the analyst as a Kiro agent over MCP (#41), file-scoped steering with a skill and a facts hook (#42) and a Power (#43). Issue #5 (reviewer agent and verifier MCP server) moved to must, and its reviewer agent is read-only by design. The new issues go to Kiro CLI on amazon-ergo.
Issues #22 to #25 (omission analyst, prose-to-fixture, sketch input, benchmark) and #26 (design system and motion) were added after the first plan. Issues #27 and #28 were added on 2026-11-30. Issue #27 (owner: Kiro IDE) extends the clearance-verifier spec to the worker, doctor and analyst, and the IDE writes requirements CV-11 to CV-13 there. Issue #28 (owner: Kiro CLI) tracks the move to the core Strands SDK. The code is committed and the full mutation run is what remains. Issue #3 is closed: it meets its four acceptance criteria and has its proof in this file. Issue #4 (owner: Kiro CLI) is open: it is built and tested offline and waits for the live run. On 2026-12-01 the owner reassigned ten issues by what each tool does well. Kiro IDE took #11, #23, #24 and #26 (web files, images, specs with properties). Kiro CLI took #4, #16, #17, #18, #22 and #28 (terminal runs, deploy, release). #4 and #28 can start now. The others wait on the Kiro IDE chain (#7 to #10) or on #4.
Kiroween rules
The owner pasted the official rules on 2026-11-28. Facts taken from them: submission closes 2026-12-04 14:00 PT with no extensions; the credit request form closes 2026-12-01 12:00 PT and codes must be redeemed by 2026-12-04; the entry needs a functional URL that stays free until judging ends on 2027-01-29, a public GitHub repository with a detectable open source license and a root .kiro/ directory that is not gitignored, a public YouTube video under three minutes, and a write-up on how Kiro was used. Insufficient use of Kiro leads to disqualification. Quebec, Argentina, Brazil, Italy, the Philippines, Russia, the UAE and sanctioned regions are excluded; Mexico and Romania are not on the list. The blog bonus accepts any third-party platform and requires a mention of the Kiroween 2026 hackathon.
Still to confirm by the owner: the Kiro features and models available in the owner's region, and the credit approval (issue 1).
Search, ledger, evidence and replay (issue 9)
Added on 2026-12-02 by Kiro IDE 1.5.49 on amazon-ergo, baseline afad48b, offline except gh issue view 9. New modules ledger.py, search.py, evidence.py and replay.py, commands arena search and arena replay, spec .kiro/specs/search-replay/, six test files and 52 BS mutants. Counts below are from the final tree.
| Command | Result |
|---|---|
bash scripts/check-fast.sh | exit 0: OK check-fast: 1441 tests passed, no native query issued |
bash scripts/check-geometry.sh | exit 0: OK check-geometry: 191 native tests passed |
bash scripts/check-agents.sh | exit 0: OK check-agents: 346 tests passed; all 1983 collected tests belong to a gate |
.venv/bin/python scripts/mutation_check.py --workdir runs/mut_9 --only 'BS[0-9]+' --python "$PWD/.venv/bin/python" | mutants: 52 KILLED=52 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, RESULT: every mutant killed, controls clean, control 128 passed before and after |
.venv/bin/python -m pytest -q -p no:cacheprovider tests/test_ledger.py tests/test_search.py tests/test_evidence.py tests/test_replay.py -k property | 4 passed, 119 deselected in 7.28s |
.venv/bin/python -m pytest -q -p no:cacheprovider tests/test_search_native.py tests/test_replay_native.py -k property | 2 passed, 6 deselected in 23.12s |
Test count: 1983 collected = 1442 selected by the fast gate (1441 passed, 1 xfailed) + 191 native tests + 350 selected by the agents gate (346 passed, 4 xfailed). Floors: 1441, 191 and 346. The 128 new fast tests are 24 ledger, 69 search, 7 evidence and 28 replay; the 8 new native tests are 6 search and 2 replay. numpy==2.5.5 and scipy==1.18.1 are direct dependencies and were already locked through build123d; uv lock --offline updated only the project entry.
Search evidence: arena search --spec runs/issue9_demo/mechanism.yaml --budget 12 --seed 42 --output runs/issue9_demo/bundle printed conclusion: failure_found, angle_deg=45 offset_mm=-1.2 native_gap_mm=0.8 verdict=violated, latency_s: 4.396723, exit 1, and wrote the eight bundle files. Seeded real-kernel latency over seeds 1, 2 and 3 was 0.239934, 0.253542 and 0.222854 s at 12 credits and 12 native queries, each failure_found. arena replay runs/issue9_demo/bundle in a fresh process printed replay: match, stored_verdict: violated, replayed_verdict: violated, distance_difference_mm: 0.0, numerical_match: true, exit 1. The native subprocess blocked internet sockets and printed agent_runtime: not imported.
One real failure: a 12-credit differential-evolution search first exited 2 with RuntimeError: The map-like callable must be of the form f(func, iterable). SciPy wraps a BudgetExhausted raised during the initial population. The new unwrap is tested and killed by BS52. The issue makes no AI-advantage claim.
Web viewer (issue 49)
2026-12-02, Kiro IDE 1.5.49, model amazon-ergo. web/ holds the static React, TypeScript and Three.js viewer with a Cloudscape shell, the typed manifest parser, the matrix-only placement and the nominal pose from arena export-meshes. .kiro/specs/web-viewer/ holds the spec and scripts/check-web.sh is the web gate: OK check-web: 45 tests passed, typecheck and build clean. The Python gates are unchanged: 1436 fast, 190 geometry and 411 agents tests, all 2037 collected tests in a gate. Record: K34 in docs/KIRO_USAGE.md.
Assembly families (issue 52)
Implemented outside Kiro (no Kiro session produced this code). Three mechanism families (hinged-flap-post, sliding-block-post, lever-stop) with closed-form reference distances in src/tolerance_arena/assembly/; the kernel agrees with the references within 1e-6 mm on every sampled pose (largest difference 2.1e-14 mm). The evidence log is docs/assembly-log/families.md and the pose tables are in docs/assembly-families.md.
Repair policy (issue 10)
Added on 2026-12-02 by Kiro IDE 1.5.49 on amazon-ergo, baseline 1c4fd87, offline except two timed-out gh issue view 10 attempts; the owner supplied the issue text. New src/tolerance_arena/repair_policy.py, tests/test_repair_policy.py, spec .kiro/specs/repair-policy/ and 53 PI mutants. The module is the offline M6 contract: one allowed binding by default and at most three declared, each with its own range; the policy hash covers the requirement, motion and uncertainty bounds, allowed bindings, frozen validation cases and design note; the design-revision hash covers the geometry edit only; proposal_scope exposes only allowed bindings and ranges; candidate validation rejects stale identity, policy tampering, undeclared bindings, out-of-range values and no-change edits; apply and undo preserve the original revision, file digests and evidence. No AI proposal, comparison run, CLI command or API route.
| Command | Result |
|---|---|
bash scripts/check-fast.sh | exit 0: OK check-fast: 1605 tests passed, no native query issued |
bash scripts/check-geometry.sh | exit 0: OK check-geometry: 198 native tests passed |
bash scripts/check-agents.sh | exit 0: OK check-agents: 411 tests passed; all 2214 collected tests belong to a gate |
.venv/bin/python -m pytest -q -p no:cacheprovider tests/test_repair_policy.py | 41 passed in 8.80s |
.venv/bin/python -m pytest -q -p no:cacheprovider tests/test_repair_policy.py -k property | 8 passed, 33 deselected in 10.56s |
.venv/bin/python scripts/mutation_check.py --workdir runs/mut_10 --only 'PI[0-9]+' --python "$PWD/.venv/bin/python" | mutants: 53 KILLED=53 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, RESULT: every mutant killed, controls clean, control 41 passed before and after |
Test count: 2214 collected = 1605 selected by the fast gate + 198 native tests + 411 selected by the agents gate. MIN_TESTS floors unchanged at 1564, 198 and 411. The 41 new fast tests include the eight properties; no native or agents tests were added. The Correctness panel exposed no transcript to the agent in this session, so the review is recorded in .kiro/specs/repair-policy/design.md and docs/KIRO_USAGE.md row K36, not claimed as a captured panel. The first mutant run had 10 BROKEN malformed replacements and three survivors; the fixes and the removed redundant guard are recorded in K36. |
Joints and measurement (issue 51)
Implemented outside Kiro (no Kiro session produced this code). src/tolerance_arena/assembly/pose.py places the parts for a joint coordinate and a deviation and refuses out-of-range, non-finite and unknown input; measure.py measures the requirement pair in a spawned child under a 10 s deadline. The rotating pin matches verify.measure_scenario on 60 poses (worst difference 2.665e-14 mm) and a sliding block matches a closed form on 68 poses (worst difference 1.776e-15 mm). The evidence log is docs/assembly-log/pose-measure.md.
Prose to fixture (issue 23)
Added on 2026-12-02 by Kiro IDE 1.5.49 on amazon-ergo, baseline 1c4fd87, offline except gh issue view 23. New modules prose_fixture.py, agents/fixture_builder.py, agents/prompts/fixture_builder.md and scripts/fixture_live_run.py, commands arena fixture-from-prose and arena verify-fixture, spec .kiro/specs/fixture-from-prose/, five test files and 21 FB mutants. Counts below are from the final tree.
| Command | Result |
|---|---|
bash scripts/check-fast.sh | exit 0: OK check-fast: 1631 tests passed, no native query issued |
bash scripts/check-geometry.sh | exit 0: OK check-geometry: 202 native tests passed |
bash scripts/check-agents.sh | exit 0: OK check-agents: 422 tests passed; all 2255 collected tests belong to a gate |
.venv/bin/python scripts/mutation_check.py --workdir runs/mut_23 --only '^FB' --python "$PWD/.venv/bin/python" | mutants: 21 KILLED=21 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, RESULT: every mutant killed, controls clean, control 82 passed before and after |
.venv/bin/python -m pytest -q -p no:cacheprovider tests/test_prose_fixture.py -k property | 5 passed, 53 deselected in 1.09s |
Test count: 2255 collected = 1631 selected by the fast gate + 202 native tests + 422 selected by the agents gate. Floors unchanged: 1564, 198 and 411. Per-file counts: test_prose_fixture.py 58, test_prose_cli.py 9, test_prose_fixture_native.py 4, tests/agents/test_fixture_builder.py 6 and test_fixture_live_run.py 5. | |
The model call is one request with no domain tools and FixtureProposal structured output, one model request in the budget and the existing provider admission. The target type is models.MechanismSpec; the proposal is an extraction record, not a second spec. build_spec asks for missing and ambiguous values, converts units through units.parse_quantity, requires an exact quote containing the stated number, and refuses unsupported units, unsupported mechanisms and instruction-like text before a model call. Real solids are measured for six dimensions, a difference over 1e-6 mm or 1e-6 deg is refused, and the echo hash is 12 hex characters over the description, the validated spec and the measured dimensions. verify-fixture re-measures and compares that hash before require_verifiable, evaluate and typed_verification; a non-nominal design is refused by the existing M1 rule. scripts/fixture_live_run.py reads the key only from the environment, refuses without it, removes it before CAD work, and writes an exclusive sanitized record. It is written and not run; the owner runs it. | |
The real-kernel echo for a complete description printed confirmation_sha256: dbd32369d960 and clearance verification: not run, with spec and measured values 2, 40, 2, 8, 46 mm and 45 degrees. One surprise: the issue's literal example sentence does not state the obstacle radius or the cylinder height, so the ask-not-default rule returns two questions for it. The end-to-end echo uses a complete sentence that states both, and design.md records this rather than filling the values from the template. inch stays unsupported because units.py and its tests already refuse it. |
Counterexample reduction (issue 13)
Added on 2026-12-02 by Kiro IDE 1.5.49 on amazon-ergo, baseline 1c4fd87, offline except gh issue view 13. New module reduce.py, command arena reduce, optional bundle files reduction.json and reduction-ledger.json, spec .kiro/specs/counterexample-reduction/ and 38 CR mutants. Counts below are from the final tree.
| Command | Result |
|---|---|
bash scripts/check-fast.sh | exit 0: OK check-fast: 1621 tests passed, no native query issued |
bash scripts/check-geometry.sh | exit 0: OK check-geometry: 201 native tests passed |
bash scripts/check-agents.sh | exit 0: OK check-agents: 411 tests passed; all 2233 collected tests belong to a gate |
.venv/bin/python scripts/mutation_check.py --workdir runs/mut_13 --only 'CR[0-9]+' --python "$PWD/.venv/bin/python" | mutants: 38 KILLED=38 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, RESULT: every mutant killed, controls clean, control 85 passed before and after |
.venv/bin/python -m pytest -q -p no:cacheprovider tests/test_reduce.py -k property | 3 passed, 54 deselected in 5.39s |
.venv/bin/python -m pytest -q -p no:cacheprovider tests/test_reduce_native.py -k property | 1 passed, 2 deselected in 24.16s |
Test count: 2233 collected. The fast gate selected 1621 passing tests, the geometry gate 201 and the agents gate 411. Floors stay 1564, 198 and 411. The new tests are 57 fast reduction tests and 3 native reduction tests. reduce.py holds the zero-anchored offset grid, ReductionBudget, the ledger-charged measurement loop and the fail-closed paths. evidence.py owns the optional reduction record and ledger, and replay.py accepts old bundles and hashes the optional files.
Demo: arena search --spec runs/issue13_demo/mechanism.yaml --budget 12 --seed 42 --output runs/issue13_demo/bundle found angle_deg=45 offset_mm=-1.2 native_gap_mm=0.8 verdict=violated. arena reduce runs/issue13_demo/bundle --step-mm 0.1 --budget 12 measured 7 steps and printed original_offset_mm: -1.2, reduced_offset_mm: -0.6, reduced_distance_mm: 1.4, reduced_verdict: violated, next_smaller_offset_mm: -0.5, next_smaller_verdict: indeterminate, already_minimal: false, exit 1. arena replay runs/issue13_demo/bundle printed replay: match, stored_distance_mm: 1.3999999999999948, replayed_distance_mm: 1.3999999999999948, distance_difference_mm: 0.0, numerical_match: true, exit 1.
One real defect was found by the property test during the mutation run: rounding could make a step equal the original and append it twice. The duplicate guard is restored and pinned. The first mutant batch was contaminated by a stopped background child, and one draft left CR09 BROKEN and CR10 SURVIVED; the final batch is 38/38 with clean controls.
Live check and review fixes for issue 23 (2026-12-03)
Implemented outside Kiro (no Kiro session produced this code). The schema fix, the unit-after-number check, the symbolic-link refusal in write_bundle, the script detail fix and the mutants FB23 to FB27 and CR39 were written on main after the merge of issues 23 and 13, test first. The live record assets/recorded/fixture-2026-12-03-live-completed.json is one request on Groq with no clearance verification; the 11 failed requests before the fix and the 11 successful ones after it are counted in docs/KIRO_USAGE.md. No claim is made about the success rate on other descriptions: the sample is one description.
STEP sample mechanisms with a sampled reference gap (issue 56)
Implemented outside Kiro (no Kiro session produced this code). Two mechanisms, latch-hook (revolute) and drawer-carriage (prismatic), are written as STEP files under assets/step-samples/ with a truth file each. The reference gap comes from src/tolerance_arena/assembly/sample_truth.py, which samples both surfaces and does not call the kernel's distance query, so the kernel can be checked against it. scripts/make_step_samples.py regenerates all four files; docs/assembly-step-samples.md states the method and the error bound, and docs/assembly-log/step-samples.md holds the evidence. The 43 ST mutants were killed on the merged tree (see the mutation row above). Gates on the merged tree: 2323 fast, 303 native, 437 agents tests.
STEP assembly loader (issue 50)
Written in a Kiro CLI session (K39, evidence in docs/KIRO_USAGE.md) and integrated onto main as one net diff. A sidecar YAML file pins each STEP file by SHA-256 and declares one joint, one deviation and one requirement; arena assembly validate turns it into the typed Assembly or refuses it and names the field, and arena assembly inspect FILE.step prints what a STEP file holds. Neither command measures a clearance or moves a part. The schema and its refusals are in docs/assembly-sidecar.md, the samples in fixtures/assembly/.
| Command | Result |
|---|---|
bash scripts/check-fast.sh | OK check-fast: 2649 tests passed, no native query issued; format clean (215 files), mypy --strict clean (53 source files) |
bash scripts/check-geometry.sh | OK check-geometry: 334 native tests passed |
bash scripts/check-agents.sh | OK check-agents: 437 tests passed; all 3420 collected tests belong to a gate |
.venv/bin/python scripts/mutation_check.py --workdir <empty dir> --only '^SX' --python "$PWD/.venv/bin/python" | 44 SX mutants, all killed. They ran in four parts (SX01 to SX05, then 14, 13 and 12 more), each with control before: PASS (927 passed) and the same after. Three mutants (SX13, SX25, SX26) hit the 300 s cap while other runs shared the machine; run alone they ended mutants: 3 KILLED=3 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0 and RESULT: every mutant killed, controls clean |
Test count: 3420 collected = 2649 fast + 334 native + 437 agents. The floors in check-fast.sh and check-geometry.sh rise from 2323 and 303 to 2649 and 334; check-agents.sh stays at 437. The 45th mutant the session wrote (SX44, allow_nan=False in the JSON output) was removed: _finite turns every non-finite solid value into null first, so no input reaches that guard, and the guard stays in the code.
Post-merge fix to the validate text output (implemented outside Kiro): the assembly id, the sidecar file name in the source line and each part file name now pass through printable_ascii, so a file name holding an escape sequence no longer reaches the terminal (the JSON output was already safe). Two tests drive it with an escape byte in a part file name and in the sidecar file name. Mutants SX46 to SX48 cover the three fields: mutants: 3 KILLED=3 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, RESULT: every mutant killed, controls clean, control 929 passed before and after.
Local API and evidence viewer (issue 11)
2026-12-03, Kiro IDE 1.5.49, model amazon-ergo, baseline aa05eae, offline except
gh issue view 11. Spec: .kiro/specs/local-api-viewer/, LAV-01 to LAV-13 and LAV-T01 to
LAV-T08. Record: K41 in docs/KIRO_USAGE.md.
The issue says "FastAPI routes". The decided reading is a standard library
http.server.ThreadingHTTPServer bound to 127.0.0.1 that calls framework-free handlers, the
shape omissions_api.py already uses, so no dependency is added to pyproject.toml, uv.lock,
web/package.json or web/package-lock.json. src/tolerance_arena/api.py holds the router,
handlers, run registry and server. arena serve takes a port and a run directory. The run
directory is the only store: run.json, result.json, ledger.json, bundle/ and meshes/.
A restart rebuilds the run list from it. The two omission routes are mounted.
Evaluate latency over real HTTP
scripts/evaluate_latency.py starts the real server with a CadWorker, opens one loopback
HTTP/1.1 connection and alternates the nominal pose (45 deg, 0 mm) and the near-failure pose
(45 deg, -1.2 mm). One warm-up request starts the worker and is not counted. Two final runs of
200 requests each, after disable_nagle_algorithm = True removed a 40 ms delayed-ACK pattern:
| Run | p50 (ms) | p95 (ms) | max (ms) | min (ms) | mean (ms) | warm-up (ms) |
|---|---|---|---|---|---|---|
| 1 | 20.888 | 31.416 | 254.055 | 15.201 | 23.116 | 4230.947 |
| 2 | 19.323 | 24.591 | 229.584 | 13.664 | 21.548 | 4273.185 |
Command: .venv/bin/python scripts/evaluate_latency.py --requests 200 --output runs/evaluate-latency.json (run 2 wrote runs/evaluate-latency-2.json). The report is JSON and
the script refuses fewer than 200 requests. No text claims live scrubbing: issue 26 owns the
motion layer, and this is the measurement that issue requires first.
Real HTTP proof
arena serve --port 0 --run-dir runs/proof11 printed
ToleranceArena local API on http://127.0.0.1:41009 (run directory runs/proof11). A first
attempt on port 8765 failed with error: [Errno 98] Address already in use; it is logged as a
failure, not hidden. Through curl on loopback:
POST /api/v1/runswith{"kind":"verify","angle_deg":45,"offset_mm":-1.2}returned 202 andrun-61a9cefc0b3c.GET /api/v1/runs/run-61a9cefc0b3c/statusreturnedstatus: completed,verdict: violated,conclusion: failure_found, result id3574ba9393f6b03cdc3be186cac5b45a2992b853414be43c140398e239c898d7, and the five artifactsmesh-manifest.json,obstacle.glb,pin.glb,result.json,run.json.GET .../findingsreturned one finding:distance_mm: 0.7999999999999959,threshold_mm: 1.5, witness points[29.698484809834994, 29.698484809834998, 8.0]and[30.26417023478423, 30.26417023478423, 8.0], reasonclearance_below_minimum, and the same result id.POST .../replayreturnedreplay: match,stored_verdict: violated,replayed_verdict: violated,distance_difference_mm: 0.0,distance_tolerance_mm: 1e-05,numerical_match: true.GET .../artifacts/result.jsonreturned 200application/jsonwith the typed result.GET .../artifacts/mesh-manifest.jsonreturned the pose45.0deg,-1.2mm, piecespinandobstacle, and the one matrix[[0.001,0,0,0],[0,0,0.001,0],[0,-0.001,0,0],[0,0,0,1]].POST /api/v1/evaluatewith the same pose returned the same result id, verdictviolatedand gap0.7999999999999959mm. An out-of-boundsangle_deg: 91returned 422invalid_pose.- No response carried
Access-Control-Allow-Origin. A foreign Host and a foreign Origin each returned 403, a body over the cap returned 413 and a known path with another method returned 405, intests/test_api.py.
Headless Chrome and CDP
Chrome 158.0.8127.107 loaded http://127.0.0.1:41009/ from the same server. A CDP script
(runs/cdp_proof11.mjs, removed after the record) set 1440 by 900 and 390 by 844, toggled both
themes, waited for data-ready="true" and measured:
| Viewport | Theme | scrollWidth / innerWidth | Canvas | Focus |
|---|---|---|---|---|
| 1440 by 900 | dark | 1425 / 1440 | 1280 by 558 | canvas focused, solid 2px |
| 1440 by 900 | light | 1425 / 1440 | 1280 by 558 | canvas focused, solid 2px |
| 390 by 844 | dark | 390 / 390 | 350 by 506 | canvas focused, solid 2px |
| 390 by 844 | light | 390 / 390 | 350 by 506 | canvas focused, solid 2px |
All four captures had the run, replay, units and export controls and Findings: none. Pillow
measured the PNGs: dark desktop 1278 unique colours, light desktop 1372, dark phone 1061, light
phone 1136, with zero pure black and zero pure white pixels. The image tool cannot render
screenshots, so the evidence is the CDP DOM and layout measurements and these pixel counts, not a
visual review. The screenshots were removed after the record.
Gates and mutants
bash scripts/check-fast.sh:OK check-fast: 1772 tests passed, no native query issued.bash scripts/check-geometry.sh:OK check-geometry: 203 native tests passed.bash scripts/check-agents.sh:OK check-agents: 422 tests passed; all 2397 collected tests belong to a gate.bash scripts/check-web.sh:OK check-web: 55 tests passed, typecheck and build clean, up from the issue 49 baseline of 45. The floor is unchanged..venv/bin/python scripts/mutation_check.py --workdir runs/mut_11 --only 'AP[0-9]+' --python "$PWD/.venv/bin/python":mutants: 22 KILLED=22 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, controls 32 passed before and after. An earlier batch in a reused work directory endedNOT CLEANand reportedINVALID: VW10andSURVIVED: VW14; the fresh run is the evidence.
Assembly export and viewer (issue 54)
Implemented outside Kiro (no Kiro session produced this code).
Integration on main (2026-12-03): the merged tree passed bash scripts/check-fast.sh (2928 passed), bash scripts/check-geometry.sh (355 passed), bash scripts/check-agents.sh (437 passed) and bash scripts/check-web.sh (166 tests passed, typecheck and build clean). The 36 AX mutants ended mutants: 36 KILLED=36 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0 in a fresh work directory, with control before: PASS (112 passed) and control after: PASS (112 passed). The viewer conflicts with the local-API viewer of issue 11 were resolved by keeping both: the pose assembly of issue 54 and the witness-point markers of issue 11.
arena assembly export-meshes writes one glTF per part of a sidecar assembly or a named family at one pose, plus a manifest with the joint coordinate, the deviation, the requirement and the measured gap (src/tolerance_arena/assembly/export.py, which calls meshes.export_meshes). The viewer in web/ loads such a manifest from ?pose=NAME, labels each part by its id, and shows the joint coordinate, the measured gap and a marker between the two witness points. It computes no verdict. The usage and the manifest pose schema are in docs/assembly-viewer.md and the evidence log is docs/assembly-log/export-viewer.md, with six screenshots beside it. Two defects in merged code came out of this work: a solid read from a STEP file exported as an empty glTF file (the exporter now re-wraps it and refuses a file with no vertex), and the issue 49 viewer converted each mesh a second time, so the sample pins were drawn on their side (fixed, screenshots before and after).
| Command | Result |
|---|---|
bash scripts/check-fast.sh | OK check-fast: 2723 tests passed, no native query issued; ruff format --check . printed 220 files already formatted, .venv/bin/mypy printed Success: no issues found in 54 source files |
bash scripts/check-geometry.sh | OK check-geometry: 350 native tests passed |
bash scripts/check-agents.sh | OK check-agents: 437 tests passed; all 3510 collected tests belong to a gate |
bash scripts/check-web.sh | OK check-web: 156 tests passed, typecheck and build clean |
.venv/bin/python scripts/mutation_check.py --workdir runs/mut_54/w1 --only '^AX[0-9]+$' --python "$PWD/.venv/bin/python" | control before: PASS (112 passed), mutants: 36 KILLED=36 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, RESULT: every mutant killed, controls clean, control after: PASS (112 passed) |
TypeScript sweep (47 edits, a scratch script, vitest in a copy of web/) | first run mutants: 47 killed=43 other=4; four tests added for the survivors (T01, T09, T14, T23); rerun mutants: 4 killed=4 other=0 |
arena assembly export-meshes --family hinged-flap-post --q 45 --delta-mm=-1.2 --output <dir> | exit 0, measured_gap_mm: 0.9063058585; the three files are byte-identical to web/public/data/family-hinged-flap-post/ |
arena assembly export-meshes --sidecar fixtures/assembly/hinge.assembly.yaml --q 85 --delta-mm=-0.5 --output <dir> | exit 0, measured_gap_mm: 0.6141590572; the three files are byte-identical to web/public/data/step-hinge/ |
Test count: 3510 collected = 2723 fast + 350 native + 437 agents. The floors in check-fast.sh and check-geometry.sh rise from 2649 and 334 to 2723 and 350; check-agents.sh stays at 437. The new tests are 59 and 15 fast, 16 native and 111 web (the 45 pin tests are unchanged). The 36 AX mutants cover the new Python guards; the harness runs pytest only, so the web guards were mutated by hand and the 47 edits are listed in the log. The harness also skips node_modules when it copies the tree. The viewer shows one pose per export and reads minimum_clearance requirements only.
README media, part one (issue 57)
Integration on main (2026-12-03): the merged tree passed bash scripts/check-fast.sh (3012 passed) and bash scripts/check-agents.sh (437 passed; all 3804 collected tests belong to a gate). The geometry gate is unchanged at 355 because the new tests are fast tests. A person has not yet watched the clip at full size.
Implemented outside Kiro (no Kiro session produced this code).
2026-12-03, clone runs/par/c57 at baseline 2035fce, offline, no model call. Part one is the build infrastructure and clip 1 (the terminal core story). The other five clips of the issue are not recorded here: they wait for the viewer and assembly work and are not imitated. Files: scripts/readme-media/build.sh, core-story.tape, core-story.setup, core-story.expect, assets/media/core-story.gif and core-story.png, docs/readme-media.md, one README block between <!-- readme-media:start --> and <!-- readme-media:end -->, and tests/test_readme_media.py. No dependency changed. vhs v0.11.0, ttyd and ffmpeg 8.0.1 are installed on the machine and are not repository dependencies.
Build and repeatability
| Command | Output line |
|---|---|
bash scripts/readme-media/build.sh --mp4 (final build, a 16.68 s recording) | built assets/media/core-story.gif: 216 frames, 18.000000 s, 327874 bytes, exit 0 |
| the same command, earlier build with a 17.08 s recording | built assets/media/core-story.gif: 216 frames, 18.000000 s, 331480 bytes, exit 0 |
| the same command, earlier build with a 18.16 s recording | built assets/media/core-story.gif: 216 frames, 18.000000 s, 335806 bytes, exit 0 |
ffprobe -count_frames on the committed GIF | 960,560,216 (width, height, frames) |
Without the fixed length, two builds of one tape disagreed: 207 frames, 17.250000 s and 217 frames, 18.080000 s at 960 by 560, and 190 frames, 15.830000 s and 207 frames, 17.250000 s at 1920 by 1120. The one-minute load average of the machine was 25.98 and 24.61 on 12 cores when probed. A probe tape of 11.2 s gave a video of 10.56 s at 1920 by 1120 and 11.16 s at 960 by 560, so the clip is drawn at 960 by 560. The line # length: 18 in the tape now fixes the GIF at 18 s: the build holds the last frame of a shorter recording and cuts the end of the final hold from a longer one, and it refuses the clip unless the picture is still from 1.5 s before the cut to the end (a peak pixel difference of at most 64 of 255; frames of one still screen differed by 1 and frames of two screens by 233). A first version compared the two frames byte for byte and refused a good recording, because lossy video frames of a still screen are not byte-equal.
Tool check, with PATH set to a folder that lacks one tool:
| Missing | Output | Exit |
|---|---|---|
ffmpeg | !! missing tool: ffmpeg | 3 |
| a Chromium browser | !! missing tool: a Chromium browser (one of: google-chrome chromium chromium-browser chrome) | 3 |
vhs and ttyd | !! missing tool: ttyd and !! missing tool: vhs | 3 |
After the final build ps listed no vhs, no ttyd and no process whose arguments named runs/readme-media.
What was on screen
The recorded commands, in a clean working directory with a fixed PATH, the prompt $ and no inherited variable: arena sweep --angles-deg 0,30,60,90 --offsets-mm=-1.2 printed campaign_conclusion: no_failure_found; arena search --spec mechanism.yaml --budget 12 --seed 42 --output bundle printed conclusion: failure_found and angle_deg=45 offset_mm=-1.2 native_gap_mm=0.8 verdict=violated; arena replay bundle printed replay: match, numerical_match: true and the scenario ID scenario-bddcb450a86a87761837efc7837bc40304a3d6944919096373918f7ba478e396. The terminal prints the scenario ID and not the result ID, which only arena replay --json prints, so the caption names the scenario ID. The scenario ID was the same in every recording of the session.
Frames read as images: from an earlier build of the same tape, 9 frames of the GIF (every 2 s from 0 s to 16 s) and the poster, and from the committed GIF, 4 of the 8 frames taken every 2.5 s (the sweep command typed, the search output, two of the replay output) and the committed poster. Together they showed the first prompt, the sweep command and output, the search command mid-typing and complete, the search output and the replay output. Each showed only the $ prompt and CLI output. No home path, user name, host name, environment line or key appeared, and the scenario ID sat on one row. The scope lines wrap in the middle of a word because the CLI prints them as one long line. A person has not yet watched the clip at full size.
Scan of runs/readme-media/masters/core-story.txt (the terminal text dump of the final build), each count from grep -c -F: /home/ 0, /Users/ 0, the user name 0, the host name 0, PATH= 0, HOME= 0, API_KEY 0, gsk_ 0, BEGIN 0. The positive control found the expected strings in the same file (campaign_conclusion: no_failure_found 3, conclusion: failure_found 2, replay: match 2, the scenario ID 2). The build runs the same scan, and checks every line of core-story.expect, before it writes a GIF. The two guard functions were run on planted text: a clean text exited 0 and each of the ten planted strings (a home path, the repository path, the working directory, the user name, the host name, PATH=, HOME=, an API key name, gsk_ followed by letters, a private key header) exited 1; an absent expected line and an empty expectation file exited 1.
Colours are the dark tokens of web/src/theme/tokens.css. ffmpeg signalstats over the committed GIF (mean luma YAVG, 0 to 255) changed by more than 1.0 between two frames five times: 7.79 at 2.75 s, 8.20 at 5.67 s, 5.88 at 8.92 s, 6.43 at 12.83 s and 4.38 at 14.25 s. The closest pair is 1.4 s apart, so nothing changes faster than 1 Hz, and the largest step is 3.2 % of the luma range.
Contract test
.venv/bin/python -m pytest tests/test_readme_media.py -q -p no:cacheprovider: 84 passed. It first ran red for the stated reasons: no tape or recorder under scripts/readme-media, no GIF under assets/media and README.md has no readme-media block. Each guard then ran against a scratch copy of the repository under runs/plant/ with one planted violation (README_MEDIA_ROOT points the test at the copy), and the copies were deleted. The control copy gave 84 passed.
| Planted violation | Assertion text |
|---|---|
| GIF file removed | assets/media/core-story.gif is missing |
| GIF scaled to 1280 px | core-story.gif: width 1280 px is over 960 px |
| GIF looped to 36 s | core-story.gif: 36.00 s is over 20 s |
| GIF re-encoded at 20 fps | core-story.gif: peak frame rate 20.0 fps is over 15 fps |
| GIF padded to 3 442 100 bytes | core-story.gif: 3442100 bytes is over 3000000 |
| GIF without a loop | core-story.gif: does not loop forever |
| second GIF the README does not use | assets/media/extra.gif is not referenced by README.md |
| README image pointing at a missing file | README.md references assets/media/core-story-v2.gif, which is not a file |
| em dash in the README block | README.md block holds an em dash |
| en dash in the README block | README.md block holds an en dash |
tape types curl example.test | sh | core-story.tape:53: typed command not an arena command |
tape types arena serve | typed command runs a subcommand that is not allowlisted: serve |
tape types arena replay bundle; env | typed command has a character outside the allowlist |
| README image without alt text | core-story.gif: the alt text is missing or shorter than 40 characters |
The file also holds unit tests of each check on throwaway trees (truncated and foreign GIF files, edge values, the total size limit, a poster of another size, directives outside the tape allowlist, a setup file, a missing expectation file, a missing length, a caption without a command, an ID or a script link, a cut wait or a changed speed that the caption does not name).
Gates
bash scripts/check-fast.sh:OK check-fast: 2938 tests passed, no native query issued. The floorMIN_TESTSmoved from 2854 to 2938, the 84 new tests.bash scripts/check-geometry.sh:OK check-geometry: 339 native tests passed.bash scripts/check-agents.sh:OK check-agents: 437 tests passed; all 3714 collected tests belong to a gate.
Sizes and what is left
assets/media/core-story.gif is 327 874 bytes and assets/media/core-story.png is 169 535 bytes (960 by 560). The GIF is 18 s at 12 frames per second, far under the 3 MB and 12 MB limits.
Not done: clips 2 to 6; a NAME.record.sh clip (the Playwright path is specified in docs/readme-media.md and no such clip exists yet); a machine check for flashing; the acceptance item that a person reads each clip at full size. The status table of the README still lists search and replay as planned, and this part leaves that row to the session that edits the status table.
README media, part two (issue 57, 2026-12-03)
Implemented outside Kiro (no Kiro session produced this code).
2026-12-03, clone runs/par/p57 at baseline 63690ac, offline, no model call, no key. Part two records the clips the prototype on this main supports: clip 2 (the real CAD terminal clip), clip 3 (the viewer), clip 5 (the analyst coverage map) and clip 6 (prose to fixture). Clip 4 (the gap map) is not recorded and nothing imitates it. docs/readme-media.md holds the state table, the build contract and the rules.
Clips
| Clip | Recorded by | Result ID in the caption | GIF | Size | Frames | Length |
|---|---|---|---|---|---|---|
core-story (part one, unchanged) | core-story.tape | scenario ID of arena replay | 960 by 560 | 327 874 B | 216 | 18 s |
real-cad | real-cad.tape (vhs, arena assembly validate, search, replay on the latch-hook STEP sample) | sidecar sha256 ecfba280...eadd77e (the assembly commands print no result ID) | 960 by 640 | 331 178 B | 228 | 19 s |
viewer-pose | viewer-pose.record.sh and clips.cjs viewer-pose (Playwright against arena serve and the built web/dist) | result ID 3574ba93...c898d7 | 960 by 720 | 1 583 150 B | 174 | 14.5 s |
analyst | analyst.record.sh and clips.cjs analyst (playback of assets/recorded/analyst-2026-12-02-none-failure-found-14-poses.json) | res-7e78f36ae53fc1d7 | 960 by 720 | 244 864 B | 162 | 13.5 s |
prose-fixture | prose-fixture.record.sh and clips.cjs prose (playback of assets/recorded/fixture-2026-12-03-live-completed.json) | confirmation_sha256: 2ed4f3c8fb0d | 960 by 720 | 209 275 B | 144 | 12 s |
The five GIFs total 2 696 341 bytes (limit 12 000 000) and each one is under 3 000 000. Every GIF loops forever, has a poster PNG of its own size and runs at 12 frames per second.
Not recorded:
- Clip 4, the gap map. The viewer on this main has no gap-map view and no click that jumps to a pose (
grepofweb/srcforlatticefinds nothing; the positive controlEvidence workbenchfindsApp.tsx).arena export-latticewrites the lattice data and nothing draws it. The state column ofdocs/readme-media.mdsays so. - A live prose-to-fixture recording. It would need a key and a network call, and a second run would read another proposal. Clip 6 plays back the committed record of the one live run instead, and says so on screen and in the caption.
Two clips are playbacks of committed records of live runs (clips 5 and 6). Each page says on screen that it is a playback and that no model is called, the caption says the same, and the contract test requires the caption phrases playback of a recorded run and no model call. Neither caption claims a rate, an accuracy or a comparison with numerical search. The viewer clip shows the real viewer, but the 3D scene of the viewer changes only when a run finishes, so the two pieces do not turn while the slider moves: the clip shows the gap readout falling as the slider goes from 0 to 45 degrees, and the pieces moving from the committed sample pose to the 45 degree pose when Run verification completes. The scrubber keeps one query in flight and sends the newest pose when it returns, so some slider positions are never measured; the first caption draft said each position was a query and the caption now says what the hook does.
Build, twice and a third time
bash scripts/readme-media/build.sh --mp4 regenerates all five clips with one command. It names every missing tool (!! missing tool: NAME, exit 3) before it records anything.
| Build | core-story | real-cad | viewer-pose | analyst | prose-fixture |
|---|---|---|---|---|---|
| 2 (four clips) | 216 frames, 327 541 B | 228, 333 849 B | 174, 1 551 177 B | 162, 242 047 B | not built |
| 3 (five clips, exit 0) | 216, 326 463 B | 228, 331 178 B | 174, 1 583 150 B | 162, 244 864 B | 144, 209 275 B |
The frame counts and durations are equal in every build (the clip length is fixed by the # length: line), and the prose clip gave 144 frames in three builds. The byte sizes differ by up to 2 %, because the recordings differ pixel by pixel. The committed core-story.gif is the part one file, restored from a pristine copy after each full build (the sha256 prefixes e3535f90 and 93d82254 match).
The flash check ran inside every build: flashes: 0 transitions in the busiest second on all five GIFs (limit 6, step 12).
Frames read
For the four GIFs built in this part, contact sheets at 1.5 to 3 s steps and the last frame were extracted with ffmpeg and read at 480 to 640 px wide, from the build that is committed. core-story is the part one file. None shows a home path, the user name, the host name, an environment dump or a key. The terminal clips use the prompt $ and the file names in the working directory only. The viewer and the two playbacks show the result IDs, which are part of the clip. The garbled look of some viewer frames in a contact sheet is the viewer's own 200 ms cross-fade of a panel; single frames pulled from the master and from the GIF are clean. A person has not yet read each clip at full size.
Contract test
.venv/bin/python -m pytest tests/test_readme_media.py -q -p no:cacheprovider: 174 passed (84 in part one, 90 new). The new tests cover the record scripts (length, # needs:, expectation file, tool and path denylist, arena subcommand), the copy lines of a setup file, caption phrases from # caption: lines, the res- and confirmation_sha256: ID forms, the build on stub tools (every tool named, exactly one missing tool named, exit 3, bad arguments exit 2), the order of the checks inside build.sh, and flashes.awk.
Each guard went red against a scratch copy of the media files (README_MEDIA_ROOT points the test at the copy). For each of 78 mutations the harness rebuilt the copy from a pristine one, applied the edit, checked that the tree hash changed, ran the real test file, required the named test to fail with the guard's own message, rebuilt the copy from the pristine one and compared the tree hashes (equal every time). The baseline gave 174 passed.
| Guard | Mutations (each went red) |
|---|---|
| clip has its GIF and poster | GIF deleted for real-cad and prose-fixture, poster deleted for viewer-pose |
| GIF limits | truncated file; padded over 3 000 000 bytes; five GIFs over 12 000 000 bytes; 30 ms frames (33 fps); 130 ms frames (over 20 s); screen width 1000; loops once; script declares 18, 12 and 11 s for a longer GIF; poster of another width (twice) |
| README references | a GIF the README does not show; an image path that is not a file |
| dashes | em dash in the README block and in two record scripts; en dash in clips.cjs and in the doc |
| private text | /home/ in clips.cjs and an expect file; $HOME in a recorder; ~/ in the README block; the host name in the doc |
| tape and setup allowlist | typed curl; arena agent run; an absolute path; Output master.txt removed; Source directive; copy /etc/hostname; copy with ../; expect file deleted |
| record script contract | curl, arena search, cat /etc/shadow, `env |
| caption | alt text too short (analyst and prose); no code span; no result ID (analyst, real-cad, prose); ID not in the expect file (analyst, viewer, prose); link to a script that does not exist (analyst and prose); page load cut, no model call, kernel start cut, driven by a Playwright script, waiting cut dropped; a # caption: phrase nobody wrote |
| build script | need ffprobe removed; exit 3 changed to exit 1; the node check for playwright removed; the flash check call removed, or no longer skipping the clip; the flat-text leak scan removed; the expectation check removed; unknown argument ignored |
flashes.awk | limit 6 raised to 60; step 12 raised to 120; empty input accepted |
The first run of the harness found one real gap: a recorder that runs cat /etc/shadow passed, because the denylist named network tools, printenv, $HOME and home paths only. Eight new test cases were written first and failed, then the denylist grew: a bare env or set, export -p, declare -x and the paths /etc/, /proc/, /root, /sys/ and /var/. Five more cases check that set -euo pipefail, export RM_URL=..., declare -a, exec > /dev/null and env -i ... stay allowed. A second harness mutation (the alt text of the prose caption) was too weak on its first try, since the text stayed over 40 characters; it now replaces the whole alt text and goes red.
The contract test never decodes a frame, so the build is the guard for flashing and for what is on screen. Twelve cases ran the real build.sh with real ffmpeg on synthetic clips in a scratch root with a stub arena, each case from a fresh copy:
| Case | Result |
|---|---|
| steady clip | exit 0, GIF published |
| black and white every second frame | exit 1, flashes faster than 3 Hz, no GIF; with the flash_check line removed from the copy: exit 0, GIF published |
/home/ in the terminal text | exit 1, shows a home path; with both screen_leaks calls replaced by :: exit 0, GIF published |
| an expectation the text lacks | exit 1, expected on screen but not in the terminal text; with the check removed: exit 0 |
| moving picture in the last 1.5 s before the cut | exit 1, the picture still changes; with the hold check replaced by true: exit 0 |
| length 25 | exit 1, must be a number above 0 and at most 20 |
gsk_... shaped string | exit 1, something shaped like a secret |
| the repository path | exit 1, shows the repository path |
The first try of the leak mutation removed the two screen_leaks lines and left an if with an empty branch, which bash -n refused (syntax error near unexpected token fi); the mutation was rewritten to replace the lines with :, and then it ran.
Gates
bash scripts/check-fast.sh:OK check-fast: 3496 tests passed, no native query issued. The floorMIN_TESTSmoved from 3406 to 3496, the 90 new tests.bash scripts/check-agents.sh:OK check-agents: 464 tests passed; all 4351 collected tests belong to a gate.bash scripts/check-docs.sh:OK check-docs: 19 pages, 0 broken links(1373 internal links checked).bash scripts/check-geometry.shwas not run: no native code changed, and the 380 native tests stay as counted.
Test count: 4351 collected = 3496 fast + 380 native + 464 agents + 11 install.
Surprises
- The viewer scene does not follow the slider (see above).
- The assembly commands print no result ID, so the caption of
real-cadnames the sidecar digest thatvalidateandsearchprint, and the contract test accepts a 64 hex digit string as an ID. - Playwright's own VP8 video made the viewer GIF 4.96 MB because the noise of every frame differs; a lossless DevTools screencast gives 1.5 MB.
arena serve --port 0breaks the host check of the server, so the recorder picks a free port with node first. The product is unchanged.vhsdumps the terminal text broken at 80 columns, so an expectation never matched a long line until the build removed the line breaks.- The assets folder already held a committed live record of the prose-to-fixture run, which made clip 6 possible as a playback.
- The GIF bytes are not reproducible, only the frame count and duration: two builds of one clip differ by up to 2 % in size.
What is left
Clip 4 (needs a gap-map view in the viewer first). A live recording of prose to fixture, if the owner wants one with a fresh key. The acceptance item of the issue that a person reads each clip at full size: nobody has, and the commit message says so.
Design system and motion (issue 26)
Integration on main (2026-12-03): the merged tree passed bash scripts/check-web.sh (197 tests passed, typecheck and build clean), bash scripts/check-design.sh (OK design: no refused pattern), bash scripts/check-fast.sh (3029 passed) and bash scripts/check-agents.sh (437 passed; all 3821 collected tests belong to a gate). The geometry gate is unchanged at 355. The 15 DS mutants ended mutants: 15 KILLED=15 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0 in a fresh work directory, with control before and control after both at 17 passed.
2026-12-03, Kiro IDE 1.5.49, model amazon-ergo, baseline 2035fce, offline except
gh issue view 26 and gh issue view 47. Spec: .kiro/specs/design-system-motion/, DSM-01 to
DSM-09 and DSM-T01 to DSM-T09. Record: K46 in docs/KIRO_USAGE.md. The work owns
web/src/styles, web/src/theme, the new web/src/scrub/, the fonts and the design checks. It
does not create web/src/panels/ or web/src/map/, which issue 47 owns. web/src/App.tsx gains
the scrubber, focusable finding and inspector, and the finding handoff only.
Type, theme and contrast
Plex was not fetched. web/package-lock.json already locks @fontsource/ibm-plex-sans and
@fontsource/ibm-plex-mono, and web/node_modules/@fontsource/ holds the WOFF2 files, including
ibm-plex-sans-latin-400-normal.woff2, ibm-plex-sans-latin-600-normal.woff2 and
ibm-plex-mono-latin-400-normal.woff2. main.tsx imports the locked CSS, Vite emits relative
./assets/*.woff2 URLs, and web/tests/fonts.test.ts checks the files and the absence of an
absolute font URL.
.venv/bin/python scripts/contrast_tokens.py reads web/src/theme/tokens.css and prints the
WCAG ratio of each declared pair. The full result was:
| Pair | Required | Dark | Light |
|---|---|---|---|
| Body text on background | 4.5 | 15.31 | 14.97 |
| Body text on surface | 4.5 | 14.18 | 15.79 |
| Muted text on background | 4.5 | 8.42 | 6.79 |
| Muted text on surface | 4.5 | 7.80 | 7.16 |
| Gap signal on background | 3.0 | 9.22 | 5.45 |
| Gap signal on surface | 3.0 | 8.54 | 5.75 |
| Violation signal on background | 3.0 | 7.28 | 6.03 |
| Violation signal on surface | 3.0 | 6.75 | 6.36 |
| Focus ring on background | 3.0 | 9.86 | 6.26 |
| Focus ring on surface | 3.0 | 9.14 | 6.60 |
| Text on gap signal | 4.5 | 9.22 | 5.75 |
| Text on violation signal | 4.5 | 7.28 | 6.36 |
| Pin in the 3D view | 3.0 | 7.49 | 3.98 |
| Obstacle in the 3D view | 3.0 | 7.75 | 3.62 |
| Other piece in the 3D view | 3.0 | 7.31 | 4.07 |
The command ended OK contrast: 30 pairs in dark and light meet the requirement. The script
also exits 1 on a missing or weak pair, and tests/test_contrast_tokens.py pins black on white
at 21 and #777777 on white at 4.478089453577214.
Live scrubber and measured latency
web/src/scrub/scrubState.ts holds one in-flight pose and the latest requested revision.
useScrubber.ts sends POST /api/v1/evaluate, ignores a late reply from a superseded token and
keeps the last returned sample on error. Scrubber.tsx renders the returned pose, gap, threshold,
verdict, result ID and scope, and reads none when the engine returned null. The ribbon takes
its thickness and signal colour from the returned gap and verdict, and the single ghost appears
only for a returned violated. No gap is interpolated.
scripts/scrub_latency.py starts the real server with a CadWorker, warms the worker, then sends
200 sequential updates on one loopback HTTP/1.1 connection, alternating (45 deg, 0 mm) and
(45 deg, -1.2 mm). run_updates refuses fewer than 200 updates and holds the same one-query
rule as the browser. Command and output:
.venv/bin/python scripts/scrub_latency.py --requests 200 --output runs/scrub-latency.json
warm_up_ms: 4023.503
p50_ms: 20.315
p95_ms: 32.666
max_ms: 225.209
min_ms: 11.519
mean_ms: 22.701
The p95 is below 50 ms. The scrubber still coalesces to one query in flight, so a slower machine does not queue a drag. This is the HTTP measurement issue 26 asks for, separate from the issue 11 table above.
Motion, keyboard and reduced motion
web/src/scrub/motion.ts uses document.startViewTransition for the finding-to-scene handoff,
falls back to an opacity crossfade and returns instant for reduced motion or a Tab-initiated
run. The easing is cubic-bezier(0.23, 1, 0.32, 1), the duration is 200 ms and the shared
keyframes start at scale(0.95). The reduced-motion CSS removes transform, transition and
animation from the scrub layer, while colour and opacity changes stay.
Chrome 158.0.8127.107 loaded the built app from http://127.0.0.1:8877/. A CDP script
(runs/cdp_proof26.mjs, removed after the record) set the explicit theme and viewport, scrubbed
to the violated pose, ran verification and recorded:
runs/issue26-transition.json:{"viewTransitionsSupported": true, "calls": 1}, so the finding handoff used the shared-element API.runs/issue26-keyboard.json:reached: {finding: true, scrubber: true, inspector: true, visibleRing: true}. Tab reached.finding,Scrub angle (deg),Scrub offset (mm)and theUnits and bounds inspector, each withsolid 2px.runs/issue26-reduced-motion.json:media: true,ribbonTransform: "none",ghostTransform: "none",runningAnimations: 0, empty handoff names, andscrollWidth: 390,innerWidth: 390,bodyScrollWidth: 390at 390 by 844.runs/issue26-network.json: 19 requests. The only network origin ishttp://127.0.0.1:8877; the three Plex WOFF2 requests are same-origin, and the twodata:entries are inline WOFF2 data, not another origin.
Screenshots are committed under docs/screenshots/. Pillow measured them:
| File | Pixels | Mean luminance | Unique colours | Pure black | Pure white |
|---|---|---|---|---|---|
issue26-dark-1440x900.png | 1440 by 900 | 38.9 | 6207 | 0 | 0 |
issue26-light-1440x900.png | 1440 by 900 | 221.9 | 6435 | 0 | 0 |
issue26-dark-390x844.png | 390 by 844 | 36.5 | 4640 | 0 | 0 |
issue26-light-390x844.png | 390 by 844 | 227.7 | 4770 | 0 | 0 |
The evidence is the DOM, layout, network and pixel measurements, not a visual review.
Design-rule check
bash scripts/check-design.sh scans web/src and web/index.html for gradients,
backdrop-filter, side borders wider than 1 px, radius above 12 px and Inter. On the clean tree
it prints OK design: no refused pattern in /home/user/Desktop/tolerance-arena/runs/par/ide26/web. A scratch copy under
runs/design-planted with border-left: 4px printed:
runs/design-planted/web/src/styles/planted.css:2: side-border: border-left: 4px solid var(--color-violation);
FAIL design: 1 refused pattern(s) in runs/design-planted/web
exit=1
The copy was deleted and test ! -e runs/design-planted printed removed.
Gates and mutants
bash scripts/check-web.sh:OK check-web: 86 tests passed, typecheck and build clean, up from 55. The new tests arescrub-state,scrub-hook,scrubber,motionandfonts, plus the App, workbench, token and layout extensions.bash scripts/check-fast.sh:OK check-fast: 2871 tests passed, no native query issued, up from the 2854 floor. The 17 new tests are 5 design-rule, 6 contrast and 6 scrub-latency.bash scripts/check-geometry.sh:OK check-geometry: 339 native tests passed.bash scripts/check-agents.sh:OK check-agents: 437 tests passed; all 3647 collected tests belong to a gate..venv/bin/python scripts/mutation_check.py --workdir runs/mut_26_final --only 'DS[0-9]+' --python "$PWD/.venv/bin/python":mutants: 15 KILLED=15 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0,RESULT: every mutant killed, controls clean, control 17 passed before and after. An earlier run hadDS10 SURVIVEDbecause the percentile test used only integral ranks; the test now uses a three-value sample, andDS10is killed.
Assembly pipeline commands (issue 53)
Implemented in a Kiro IDE session (K40, phase 2): arena assembly verify, sweep, search, replay and report run the existing clearance checks on a sidecar assembly or a family, with an assembly bundle that replay re-measures in a fresh process. The code sits in src/tolerance_arena/assembly/ (commands.py, pipeline.py, context.py, results.py, bundle.py, replay.py, report.py, provenance.py); docs/assembly-sidecar.md describes the commands and docs/KIRO_USAGE.md holds the session record. The session did not edit this file.
Integration on main (2026-12-03): the session's commit was applied as one net diff. The conflicts were src/tolerance_arena/assembly/cli.py (resolved by hand: export-meshes of issue 54 and the five new commands share one parser), the mutant list, the two floors and docs/KIRO_USAGE.md. The merged tree passed OK check-fast: 3223 tests passed, no native query issued, OK check-geometry: 363 native tests passed and OK check-agents: 437 tests passed; all 4023 collected tests belong to a gate. The 99 AP mutants ran in two batches with fresh work directories: mutants: 49 KILLED=49 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0 and mutants: 50 KILLED=50 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, with controls clean before and after. The floors are now 3223, 363 and 437.
Repair proposal and paired replay (issue 16)
Implemented in a Kiro CLI session (K44, model amazon-ergo, offline): arena repair-replay, the controller src/tolerance_arena/repair.py, the restricted proposer role src/tolerance_arena/agents/repair.py with its prompt repair_proposer.md, and an optional nominal obstacle radius (default 46.0 mm) in verify, worker and bindings. The model proposes one allowed obstacle-radius change. Only the controller creates the candidate, runs the frozen 90-case paired plan and applies or undoes the revision over the issue 10 ledger. The sealed comparison bundle replays both designs offline in a fresh process. The spec is .kiro/specs/repair-proposal/ (RP-01 to RP-10) and the record is K44 in docs/KIRO_USAGE.md. No live Groq repair-proposal run exists yet.
Integration on main (2026-12-03): the session's commit was applied as one net diff onto 17a1c67. The conflicts were src/tolerance_arena/cli.py (both reduce and repair-replay share one parser), src/tolerance_arena/agents/provider.py and its two test unions (the repair role's tool names join the allowed set), the mutant list in scripts/mutation_check.py, the three floors and the docs. Adding nominal_radius_mm to the verify nominal and sweep JSON changed two entries of tests/data/pin_golden.json (verify-nominal-json and sweep-json); only those two were regenerated and tests/test_pin_output_golden.py documents the field. The merged tree passed OK check-fast: 3282 tests passed, no native query issued, OK check-geometry: 367 native tests passed and OK check-agents: 454 tests passed; all 4103 collected tests belong to a gate. The 52 new RP mutants ran in two batches with fresh work directories: mutants: 25 KILLED=25 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0 (control 59 passed after) and mutants: 27 KILLED=27 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, controls clean. The floors are now 3282, 367 and 454.
Analyst evaluation report (issue 35 phase 2)
Added on 2026-12-03 by Kiro CLI (K45, evidence in docs/KIRO_USAGE.md), offline except gh issue view 35: no Groq call, no GROQ_API_KEY and no kiro-cli chat run, because the issue's Proof names no live CLI command. scripts/make_evaluation_report.py reads assets/evaluation/ and docs/analyst-evaluation-rungs.md, reuses tally, wilson_95, not_scored_cause, parse_timestamp, _requests and _tokens from scripts/analyst_eval.py, and writes docs/analyst-evaluation.md. The runner's report blocks are published unchanged from matrix.log; both baselines come from that file. The record-derived counts are status, stop reason and runs that measured a negative offset. The report states the 1 of 120 result, the full-box limit, the off-lattice purpose, the rung SHAs, the 468 requests and 1 618 646 tokens over 125 records, the shared machine and 22.413 s maximum active time, the three runner fixes, and the acceptance criteria of issue #4. It claims no speed or success-rate advantage.
| Command | Result |
|---|---|
.venv/bin/python scripts/make_evaluation_report.py | wrote docs/analyst-evaluation.md; a second run produced the same bytes, and tests/test_evaluation_report.py compares them and the committed file |
bash scripts/check-fast.sh | OK check-fast: 2658 tests passed, no native query issued; ruff clean, format clean (217 files), mypy --strict clean (53 source files) |
bash scripts/check-geometry.sh | OK check-geometry: 334 native tests passed |
bash scripts/check-agents.sh | OK check-agents: 437 tests passed; all 3429 collected tests belong to a gate |
.venv/bin/python scripts/mutation_check.py --workdir runs/mut_35 --only '^EV[0-9]+$' --python "$PWD/.venv/bin/python" | mutants: 13 KILLED=13 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, RESULT: every mutant killed, controls clean, control 9 passed before and after |
Test count: 3429 collected = 2658 fast + 334 native + 437 agents. The fast floor rises from 2649 to 2658; geometry stays 334 and agents stays 437. The 9 new fast tests use fixture records and the committed matrix, run the generator twice and compare the bytes, and pin the runner blocks, both baselines, the record-derived counts, the all-record totals and the shared tally and Wilson interval. The workdir was removed after the mutant run.
Integration on main (2026-12-03): the session's two commits were applied as one net diff onto 8dfb692. The conflicts were the mutant list and floors in scripts/mutation_check.py and scripts/check-fast.sh, the count lines of this file and docs/KIRO_USAGE.md (both sides kept). The merged tree passed OK check-fast: 3298 tests passed, no native query issued (3282 plus the 9 report tests and the 7 tests of the issue 16 review), OK check-geometry: 367 native tests passed (unchanged: this issue adds no native test) and OK check-agents: 454 tests passed; all 4119 collected tests belong to a gate. The 13 EV mutants ended mutants: 13 KILLED=13 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, controls clean. The fast floor is now 3298.
Integration on main (2026-12-03): the omission live-run recorder of issue 4 (K48) was applied as one net diff onto 6056018. The conflicts were the count lines of this file, the agents floor and docs/KIRO_USAGE.md (both sides kept). The merged tree passed OK check-fast: 3298 tests passed, no native query issued and OK check-agents: 462 tests passed; all 4127 collected tests belong to a gate; check-geometry is unchanged at 367 native tests. The 9 OL mutants ended mutants: 9 KILLED=9 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, controls clean. The agents floor is now 462.
Integration on main (2026-12-03, final-tree gates): the provider-error detail field of agents/record.py (mutant RD01) and the issue 16 review fixes (mutants RP68 to RP76) are in the tree gated here. On commit 25eca62 check-fast passed 3298 tests, check-agents passed 464 tests with all 4129 collected tests in a gate, and check-geometry passed 367 native tests. The agents floor is now 464, and the harness defines 1601 mutants (1396 outside AG, 205 inside).
Community files and license notices (release preparation)
Written outside Kiro on 2026-12-03, offline, on baseline 0e5f062. The repository goes public, so it needed a security policy, contribution rules, a code of conduct, issue forms, a citation file, a third-party license inventory, a changelog and a roadmap. The owner asked for the SysKnife user experience with local git hooks and no GitHub workflow, so none was added.
Files
SECURITY.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, .github/ISSUE_TEMPLATE/bug.yml, feature.yml and config.yml, .github/PULL_REQUEST_TEMPLATE.md, CITATION.cff, THIRD_PARTY_NOTICES.md, CHANGELOG.md, ROADMAP.md, tests/test_notices.py and tests/test_community_files.py. The only tracked file that changed is the MIN_TESTS line of scripts/check-fast.sh. tests/test_repo_contract.py does not list top-level files, so its allow-list needed no change.
Decisions
- Security reports go through GitHub private vulnerability reporting. No email address appears in any file.
CODE_OF_CONDUCT.mdis the Contributor Covenant 2.1 text from the project site. Only the contact placeholder changed, to a private security advisory or a direct contact withvladimirrotton GitHub.CITATION.cfffollowspyproject.toml(name, version, license, description) and omitsdate-releaseduntil a tag exists. It validates against the CFF 1.2.0 JSON schema, and a copy with a wrong field type failed the same validation.- The bug form asks for
arena doctoroutput, becausearena --versiondoes not exist. CHANGELOG.mdhas one entry,0.1.0 - Unreleased.ROADMAP.mdlists open issues and recorded limits and carries no dates.
License inventory
THIRD_PARTY_NOTICES.md lists 118 locked Python packages (65 runtime, 43 in the agents group, 10 in dev) and 47 locked web runtime packages. A script read each package's License-Expression, License and classifier fields and its license files from the installed .dist-info. Four locked packages install only on other platforms, so the script read the PyPI metadata of the locked version for them. The file holds the 7 Apache-2.0 NOTICE texts verbatim, the OCCT section, the OFL text for the two IBM Plex fonts and the Inter Display attribution.
Findings the owner may want to decide on:
- The
cadquery-ocp-novtkwheel carries OCCT (LGPL-2.1 with the Open CASCADE exception) and 25 system libraries and ships no license text for them.libfreeimagecarries the tag "GPLv2 or GPLv3 or MPLv1.0" in its AlmaLinux package. certifi,hypothesisandpathspecuse MPL-2.0 and are unmodified.- The
numpyandscipywheels bundle OpenBLAS, LAPACK and the GCC runtime library (GPL-3.0-or-later with the GCC exception). threejs-materialsinstalls about 86 MB of texture presets, 15 of which carry an empty license string. No ToleranceArena code imports it.
Checks
tests/test_notices.py(12 tests) fails the fast gate whenuv.lockorweb/package-lock.jsonlists a package that the notice file lacks or lists at another version, and when an Apache NOTICE text, the OCCT section or a font row is missing. It was red first because the file did not exist.tests/test_community_files.py(25 tests) checks the issue forms, the config, the citation, the changelog head, the security URL, the Covenant contact, the absence of email addresses and dashes, and thatCONTRIBUTING.mdnames exactly the gate scripts that exist and the three the pre-push hook runs.- Mutation proof on the notice test: 10 edits to
THIRD_PARTY_NOTICES.md(a Python row, the OCP row, a stale numpy version, an npm row, a nested npm row, a heading version, a NOTICE text, the OCCT exception, the OCCT wording, a font row) and 2 edits to the lock files (urllib32.8.1 inuv.lock,three0.187.1 inweb/package-lock.json). Each went red. Each file came back from a pristine copy and the hashes matched. - Mutation proof on the community test: 15 edits, covering the security URL, the Covenant placeholder, the citation version and abstract, a dash, an email address, a missing gate mention, a duplicate form id, blank issues on, a dropped required field, a changelog placeholder and version, a gate dropped from the pre-push hook, and a dash and an email in the notices. Each went red and each file was restored with matching hashes.
- LICENSE: the GitHub licensee API reports
EUPL-1.2. The file is byte-identical to the English text on joinup.ec.europa.eu, and its sha256 matches the pin intests/test_repo_contract.py. .gitignoredoes not ignore.kiro.
Gates
bash scripts/check-fast.sh:OK check-fast: 3319 tests passed, no native query issued. The floor moved from 3282 to 3319 (+12 notice tests, +25 community tests).bash scripts/check-agents.sh:OK check-agents: 454 tests passed; all 4140 collected tests belong to a gate.bash scripts/check-geometry.sh:OK check-geometry: 367 native tests passed. The first run hit the 900 s hard timeout at a load average near 22 from other sessions (!! native tests hit the hard timeout (exit 124)). The rerun withGEOMETRY_TIMEOUT_S=3000finished in 650 s.bash scripts/check-web.shandbash scripts/check-design.shpassed (197 web tests).
Limits
- The inventory reads license fields as the packages state them. It is no legal review.
CONTRIBUTING.mdsays that a pull request offers its change under EUPL-1.2. The repository holds no written contributor policy, so this line states an intent.- The issue config links GitHub Discussions, and
gh api repos/vladimirrott/tolerance-arenareportedhas_discussions: falseon 2026-12-03. The owner has to switch Discussions on before the release, or the link leads to a missing page. - The issue counts in
CHANGELOG.mdfor #58 (126 recorded runs, 120 scored, 1 violated pose) come from the issue text, and the changelog says so.
Install routes and proof (2026-12-03)
Outside Kiro, offline except package, image and uv installer downloads. Record of the routes: docs/install.md; the five-line README block is docs/install-readme-block.md.
- Routes:
install.sh,uvxanduv tool installfrom a git tag, the release wheel URL, a Containerfile (python:3.12-slim-bookworm, user 10001,arena doctorby default) and the source checkout.scripts/build-release.shbuildsdist/andSHA256SUMSand prints the release commands; it uploads nothing. Two builds of one tree are byte-identical. - Defects found: the CAD kernel wheel links libGL, libX11 and libexpat, which minimal Ubuntu, Fedora and Debian-slim images lack, so
arenadied with a traceback beforedoctorcould speak.tolerance_arena.entrynow guards the import and prints cause and fix. uv picked CPython 3.15 for a source archive on a machine with no Python;install.shpasses--python 3.12.arena servesaid nothing whenweb/distwas missing; it now says it serves the API only. The wheel already held every runtime file (prompts); a test lists the three modules that read outside the package. - Clean containers (one run each, load average 12 to 25): ubuntu:24.04 with libraries first,
install.shstart to doctor ok 96 s, demo 8 s; ubuntu:24.04, ubuntu:22.04 and fedora:latest each stopped at the missing libraries, printed the fix, and passed after it and a second run (154, 165, 166 s in all). Alpine fails: no musl wheel. aarch64, macOS and Windows not verified. - Mutants: 14 hand mutants of the new guards, all killed, control green before and after, restores hash-checked. They are not in
scripts/mutation_check.py. - Gates:
OK check-fast: 3335 tests passed(3334 after one skip-prone shellcheck test was removed),OK check-agents: 454 tests passed; all 4167 collected tests belong to a gate,OK check-geometry: 367 native tests passed. 11 install tests run only throughscripts/check-install.sh, which the pre-push hook leaves out.
Bring your own STEP (issue 55)
Implemented outside Kiro (no Kiro session produced this code).
docs/bring-your-own-step.md walks from a STEP file to a verified, searched and replayed result with arena assembly inspect, validate, verify, sweep, search, replay, report and export-meshes, run on the two samples of assets/step-samples/. It states what was tested (samples written by the build123d kernel, no vendor-exported file), which printed values repeat and which vary, the limits, and the refusals with the messages observed. The README has one section that links to it. assets/step-samples/latch-hook.assembly.yaml and drawer-carriage.assembly.yaml are new sidecars, written by hand from the truth files; the STEP files and truth files did not change. No engine code, dependency or lock file changed.
How the page is kept equal to the runs. tests/assembly/byos_walk.py runs every command of the page as python -m tolerance_arena.cli ... in its own process, inside an empty directory that holds a copy of assets/step-samples/, with a small environment (no credential, HOME in the scratch directory). python tests/assembly/byos_walk.py --record writes the transcript tests/data/byos_walk.json. The native test tests/assembly/test_bring_your_own_step_native.py repeats the walk and compares exit status and printed lines with the transcript (decimals to nine places; latency_s, the digests of the glTF files and the size and digest of runs/byos/nested.step are ignored), then compares the page with the live run line by line and number by number. The fast test tests/assembly/test_bring_your_own_step.py compares the page with the transcript, checks the sidecars against the truth files and the STEP bytes, and audits every number of the page: each must be printed by a run, held by a sample file, or be a limit of the code (MAX_PARTS, MAX_STEP_BYTES) or the 0.02 mm agreement of the native test. A block of the page may leave lines out with [...]; the other lines must be printed lines, in order.
| Command | Result |
|---|---|
.venv/bin/python -m pytest tests/assembly/test_bring_your_own_step.py -q -p no:cacheprovider before the sidecars, the page and the transcript existed | 14 failed, 2 passed in 0.93s; 13 of the 14 failures are FileNotFoundError for latch-hook.assembly.yaml, drawer-carriage.assembly.yaml, docs/bring-your-own-step.md and tests/data/byos_walk.json, and the 14th is the README assertion; the 2 passes check the text normaliser and the elision marker |
.venv/bin/python tests/assembly/byos_walk.py --record | wrote tests/data/byos_walk.json; real 5m50.628s at a load average near 20 on 12 cores |
.venv/bin/python -m pytest tests/assembly/test_bring_your_own_step_native.py -q -p no:cacheprovider (first run) | 1 failed, 10 passed in 302.51s (0:05:02); the failure was the number audit on the live run: numbers that this run did not print and no file holds: ['27.996957'], the latency of the recorded search that the page quoted. The audit now masks latency_s and the size of nested.step before it reads numbers |
.venv/bin/python -m pytest tests/assembly/test_bring_your_own_step.py -q -p no:cacheprovider | 19 passed |
bash scripts/check-fast.sh | OK check-fast: 3242 tests passed, no native query issued |
bash scripts/check-geometry.sh | OK check-geometry: 376 native tests passed (376 passed, 3292 deselected, 5 warnings in 1050.16s (0:17:30)) with GEOMETRY_TIMEOUT_S=3600 at a load average near 24 on 12 cores. Two earlier runs did not pass. The first hit the default 900 s limit at 38% (!! native tests hit the hard timeout (exit 124)) while five geometry gates ran on the machine. The second printed 1 failed, 375 passed, 3292 deselected, 5 warnings in 1615.97s (0:26:55); the failure was tests/assembly/test_assembly_pipeline_native.py::test_a_step_sidecar_runs_the_chain_and_a_changed_file_refuses_the_replay[drawer-carriage] (an existing test, unchanged) at assert code == 1 and "replay: match" in out ... with assert (2 == 1). Both parameters of that test then passed alone (2 passed in 209.68s) and passed again in the run above. The output of the failing replay was not captured, so the cause is not established; the machine load was above 20 |
bash scripts/check-agents.sh | OK check-agents: 437 tests passed; all 4055 collected tests belong to a gate |
What the walk printed (build123d 0.13.0, cadquery-ocp-novtk 8.0.1.1.0, Python 3.12.11, recorded 2026-12-03):
| Step | Sample | Printed |
|---|---|---|
verify --q 0.0 --delta-mm=0 | latch-hook | native_gap_mm: 6.09010177977191, verdict: satisfied, exit 0 |
verify --q 26.7 --delta-mm=0.6 | latch-hook | native_gap_mm: 1.2928815135572953, reference_source: remeasure, verdict: violated, exit 1; the truth file has 1.293007 |
sweep --four-point --delta-values=0.6 | latch-hook | satisfied: 4, minimum_measured_distance_mm: 2.0000000000004996, campaign_conclusion: no_failure_found, exit 0 |
search --output runs/byos/latch-hook | latch-hook | conclusion: failure_found, credits_spent: 100, findings: 3, lowest q=26.340287976121218 delta_mm=0.536339334357593 native_gap_mm=1.3640300979238842, exit 1 |
replay runs/byos/latch-hook | latch-hook | replay: match, stored_distance_mm: 1.3640300979238842, replayed_distance_mm: 1.3640300979238842, exit 1 |
verify --q 15.0 --delta-mm=-0.5 | drawer-carriage | native_gap_mm: 1.1999999999999993, verdict: violated, exit 1; the truth file has 1.201089 |
sweep --four-point --delta-values=-0.5 | drawer-carriage | satisfied: 4, minimum_measured_distance_mm: 2.0, campaign_conclusion: no_failure_found, exit 0 |
search --output runs/byos/drawer-carriage | drawer-carriage | conclusion: failure_found, findings: 3, first q=15.0 delta_mm=-0.5 native_gap_mm=1.1999999999999993, exit 1 |
replay runs/byos/drawer-carriage | drawer-carriage | replay: match, stored_distance_mm: 1.1999999999999993, exit 1 |
Refusals observed, all exit 2 with one line on standard error: refused: parts[0].step.sha256: does not match the file: ..., refused: parts[1].step.solid: the file has no solid named 'gear'; its names are 'arm', 'striker', refused: datums: unknown key; the allowed keys are schema_version, units, parts, joint, deviation, requirement, refused: requirement.type: must be one of ('minimum_clearance',), got 'flatness', refused: requirement.parts: must name two parts, got ['arm', 'striker', 'striker'], invalid input: joint value 45 deg is outside the declared range 0 to 30 deg, invalid input: give --q-values or --four-point, not both and not neither and invalid bundle: sidecar edited.assembly.yaml changed: recorded sha256 ..., current ....
Defect found in merged code, not fixed here (no engine change belongs to this issue). The STEP importer (step_import._leaf_solids) lists each leaf solid of the tree that build123d.import_step returns and drops the placement of the sub-assemblies that contain it. A file written by the build123d kernel with one solid inside a sub-assembly placed at x = 100 prints build123d import_step, x from 95 to 105 from the kernel's reader and bbox_min_mm=(-5, -5, -5) bbox_max_mm=(5, 5, 5) from arena assembly inspect, exit 0, with no warning. The sidecar loader uses the same importer. The page states this as a limit and the native test test_a_solid_inside_a_placed_sub_assembly_is_listed_without_its_placement pins it, so a fix changes the test and the page together. The two samples are not affected: inspect lists their solids with the bounding boxes of their truth files, which a native test of this issue checks to 1e-6 mm.
Guards. This issue adds no source guard, so it adds no BY mutant. The page checks were mutated by hand, each mutation restored from a copy and compared by hash: a changed number of the page (1.293007 to 1.293008), a changed printed line (verdict: violated to verdict: satisfied), a changed exit status in a block, a changed digest in a sidecar, a removed limits sentence, a removed claim in the README, an em dash in the page and a changed sed expression. Each turned the named fast test red.
Test count: the fast gate rose from 3223 to 3242 (19 new tests), the geometry gate from 363 to 376 (13 new native tests), and the agents gate stays at 437. The floors in check-fast.sh and check-geometry.sh are now 3242 and 376. The new native tests share one run of the walk (about 5 minutes at a load average near 20, 302.51 s in the first run), which pushes the geometry gate past its default 900 s limit on a loaded machine; GEOMETRY_TIMEOUT_S raises the limit and the default is unchanged.
Public demo on GitHub Pages (issue 17, 2026-12-03)
The owner chose a static demo on GitHub Pages at https://vladimirrott.github.io/tolerance-arena/demo/, recorded in docs/adr/0001-public-demo-on-github-pages.md. A static site cannot run the CAD kernel, so the page replays kernel results that the repository commits in web/public-demo/recorded/: the verify at 45 degrees and -1.2 mm (gap 0.7999999999999959 mm, violated), the pin mesh export at that pose, the five-pose sweep (1 violated, 4 satisfied) and one recorded analyst run (byte-identical to assets/recorded/analyst-2026-12-02-none-failure-found-14-poses.json). The page says it replays recorded output and points to arena verify and docs/install.md. It has no input, calls no provider and makes no request to another origin. Cost cap 0 USD; teardown after 2027-01-29.
Build: npm run build:demo in web/ (web/vite.demo.config.ts, relative base). .github/workflows/docs.yml builds it from the lockfile with npm ci --ignore-scripts, runs scripts/check_demo.py on book/demo and publishes it in the docs deploy. scripts/check-demo.sh runs the same build and check locally.
Not done: the live deploy has not run (the repository is not public yet, so the visibility gate keeps the workflow skipped), and the URL has not been fetched from the internet. The issue asks for a live verify; the demo replays instead (see the ADR for the list of differences).
Signed decimal offset for the failure analyst (issue 58)
Implemented on 2026-12-03 by Kiro CLI (K50), baseline 12bd8d2 plus the interrupted session's snapshot dcf64d1 on main. Offline except gh issue view 58: no Groq call, no GROQ_API_KEY, and no kiro-cli chat --no-interactive run because the issue's Proof names the tests, the mutant run and the note, not a Kiro command. The defect and the earlier-evaluation consequence are in docs/groq-negative-number-defect.md.
evaluate_scenariosnow declaresoffset_mmasstringwith the pattern^-?[0-9]+(\.[0-9]+)?$, the range -1.2 to 1.2 mm and the example"-1.2";angle_degstays a number.Gateway._scenarioparses that text with the same pattern (parse_offset_text) into a float beforevalidate_scenario. A finite number still passes. Any other text raisesv.InvalidScenario, which_onerecords as an invalid proposal and charges like any other invalid scenario. The cache key, the result shapes and the declared ranges are unchanged.- The analyst prompt, the first message and the
describe_problemdeclaration tell the model to write the offset as signed decimal text. The probescripts/groq_sign_probe.pyrepeats the ten-call measurement through an injected transport in tests; it readsGROQ_API_KEYonly from the environment, prints no key, and belongs to no gate. - Targeted tests:
.venv/bin/python -m pytest tests/test_agent_gateway.py tests/test_groq_sign_probe.py -qprinted209 passed;.venv/bin/python -m pytest tests/agents/test_tools.py tests/agents/test_analyst.py -q -m agentsprinted132 passed. Each guard is pinned by a test that fails when the guard is removed, which theNGmutants below demonstrate. .venv/bin/python scripts/groq_sign_probe.pywith no key printed!! GROQ_API_KEY is not set in the environment: nothing was startedand exited 2. Its live run is pending a key.
| Check | Observed on 2026-12-03 |
|---|---|
bash scripts/check-fast.sh | exit 0: 3322 passed, 413 deselected, OK check-fast: 3322 tests passed, no native query issued |
bash scripts/check-geometry.sh | exit 0: 363 passed, 3372 deselected, OK check-geometry: 363 native tests passed |
bash scripts/check-agents.sh | exit 0: 460 passed, 3685 deselected, OK check-agents: 460 tests passed; all 4145 collected tests belong to a gate |
| Floors | MIN_TESTS 3322, 363 and 460 in the three gate scripts |
.venv/bin/python scripts/mutation_check.py --workdir runs/mut_58 --only '^NG[0-9]+$' --python "$PWD/.venv/bin/python" | mutants: 47 KILLED=47 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, control before: PASS (244 passed), control after: PASS (244 passed), RESULT: every mutant killed, controls clean |
The NG mutants cover the pattern, the text branch, the per-scenario refusal, the schema type and pattern, the range and example text, the prompt and first message, and the probe's key handling, call count, request shape, counting and exit status. The workdir was removed after the record.
Planted-case benchmark (issue 25)
Implemented in Kiro CLI session K51 (model claude-sonnet-5.5, 2026-12-03, offline except gh issue view 25): scripts/planted_benchmark.py, the case and answer files in tests/data/planted/, tests/test_planted_benchmark.py, tests/test_planted_native.py, tests/agents/test_planted_benchmark_roles.py, docs/evaluation.md and the raw docs/evaluation.json. Nine omission cases hold six variants, each with one flipping contributor, and three negatives. Six repair cases hold a hidden constraint that the design note does not state. Only the scoring code reads the answer files. The real omission and repair roles run against a fake wire that replays hand-scripted recordings; every offline number is labelled as scripted and not as a result about a model. The protocol fixes seeds 0 to 4, five runs per case, the model qwen/qwen3.8-27b, Wilson intervals and the case and recording hashes. Live mode needs --live, a positive --max-calls budget and GROQ_API_KEY, and refuses to start inside a gate. No live Groq call was made.
Offline result in docs/evaluation.md: the scripted omission recording put the flipper in the top three in 24 of 30 variant runs and raised 0 false alarms in 15 negative runs; the scripted repair role met 13 of 30 hidden constraints and the constraint-blind optimizer met 20 of 30. The report publishes these counts unchanged and makes no significance or capability claim.
Evidence: .venv/bin/python scripts/planted_benchmark.py --kernel native printed the offline label and wrote docs/evaluation.json and docs/evaluation.md; the regenerated files match the committed bytes. bash scripts/check-fast.sh printed OK check-fast: 3346 tests passed, no native query issued; bash scripts/check-geometry.sh printed OK check-geometry: 370 native tests passed; bash scripts/check-agents.sh printed OK check-agents: 482 tests passed; all 4198 collected tests belong to a gate. The floors are now 3346, 370 and 482. .venv/bin/python scripts/mutation_check.py --workdir runs/mut_25 --only '^PB[0-9]+$' --python "$PWD/.venv/bin/python" printed mutants: 49 KILLED=49 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0 and RESULT: every mutant killed, controls clean, controls 92 passed before and after. The first PB run left PB10, PB36 and PB43 alive and PB41 broken; the tests gained a non-finite compliance case, an empty-trial tally case, a reasoning-effort assertion and a recorded answer-file spy, and the rerun killed all 49.
Analyst evaluation rung v4: offline harness (2026-12-03)
Built in the scratch clone runs/par/ev4 on top of 15f5810 (main after issue 58). Offline: no provider call, no GROQ_API_KEY and no live run. The owner creates the annotated tag eval-v4 after the merge and runs the matrix. The registration is the section "Amendment 2026-12-03: rung v4" of docs/analyst-evaluation-protocol.md, committed as 8ce0b26 before any code that can write a v4 record. The 125 earlier records, the v0 to v3 report and the earlier tallies are unchanged.
What was added
- Prompt.
failure_analyst.mdnow prescribes a three-call sampling procedure: the four corners and four edge midpoints of the declared box, then eight poses around the smallest measured gap stepping the way the gap fell, then eight more at half the step, and nodescribe_problemcall because the first message already declares the ranges. The signed-text offset wording of issue 58 stays. Eight more tests intests/agents/test_analyst.pypin each part and a 20-mutantV401toV420group removes or bends one instruction at a time. The older prompt tests were rewritten to the new text, not loosened. The harness mutantsBV02toBV05quoted prompt text that no longer exists and are gone;BV01now removes the new section. - Ensemble.
scripts/make_eval_ensemble.pydraws boxes fromrandom.Random(20261204)and labels each with the exact oracle floor (the smallest gap sits at the angle nearest 45 degrees and the lowest offset). It skips a box inside the 1e-5 mm ambiguity band, keeps 20 positive and 20 negative boxes and refuses to overwrite its file.assets/evaluation/v4/ensemble.jsonis its output. A first draw wrote a-0.0box end, which would reach the first message as a minus sign in front of nothing, the sign the provider drops;snapnow returns+ 0.0(two tests went red first). - Baselines.
scripts/eval_baselines.pygives each box the analyst's 24 poses: the aspect-matched grid, the scripted three-round procedure and 300 random draws. Its goldens are the numbersruns/explore/baselines.pyprinted. - Tally, claim rule, ledger.
scripts/analyst_eval.pygains the v4 tally (hits on positive boxes, false alarms on negative boxes, not scored by cause includingrunner_error),claims_violation,claim_rule(strict>on the printed three-decimal values),SpendLedger(append-only, 22.5 USD default fromTOLERANCE_ARENA_SPEND_LIMIT_USD, prices 0.80 and 4.00 USD per million tokens, 0.006 USD per request when a record has no usage) andv4_plan(160 runs in order). - Runner.
scripts/run_analyst_matrix_v4.pyreadsGROQ_API_KEYfrom the environment of its own process only, refuses to start without it, exports the tag, runs one child at a time in the order A, B, C, writes one record per run underassets/evaluation/v4/cell-*/, appends a tally block per cell tomatrix.log, stops with exit 3 when the ledger reaches the limit and resumes without rerunning a run that has a record. A child that writes no record becomes arunner_errorrecord, counted as not scored and charged for four requests. - Report.
scripts/make_evaluation_report.pyappends a v4 section (cells A, B and C, baselines, the claim rule read mechanically, not scored by cause). The v0 to v3 part is byte-identical to the report before this work: a test pins its 23 757 bytes by SHA-256 (6763c382...b842).docs/analyst-evaluation.mdwas regenerated and shows 0 of 160 records.
Checks
| Command | Result |
|---|---|
Runner without a key (env -u GROQ_API_KEY .venv/bin/python scripts/run_analyst_matrix_v4.py) | !! GROQ_API_KEY is not set: no live call was made. Set it in the environment of this one process., exit 2, nothing written |
bash scripts/check-fast.sh | OK check-fast: 3801 tests passed, no native query issued (3801 passed, 449 deselected; floor 3625 to 3801) |
bash scripts/check-agents.sh | OK check-agents: 495 tests passed; all 4687 collected tests belong to a gate (floor 487 to 495) |
.venv/bin/python scripts/mutation_check.py --workdir <empty dir> --only '^V4' --python "$PWD/.venv/bin/python" | first run: mutants: 92 KILLED=84 SURVIVED=8; after the missing tests: mutants: 92 KILLED=92 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, RESULT: every mutant killed, controls clean, control 292 passed before and after |
Test count: 174 new fast tests in five files (test_eval_ensemble.py 17, test_eval_baselines.py 36, test_analyst_eval_v4.py 75, test_evaluation_report_v4.py 18, test_run_analyst_matrix_v4.py 28) and 2 pin tests in test_evaluation_report.py raise the fast gate from 3625 to 3801. The 8 new prompt tests raise the agents gate from 487 to 495. The geometry gate stays at 380 because no native code changed, and it was not run. The harness now defines 1736 mutants (1648, minus the 4 BV mutants, plus 92).
What the first mutant run found
Eight of the 92 mutants survived the first run, each a guard that no test pinned: a harness-written summary counted as a model claim on a negative box (V426), the median evaluations read as a mean (V429), the registration time taken from the last matching commit and not the first (V449, the test's third commit did not change the heading count that git log -S follows), the ensemble generator ignoring its seed (V457, the test compared files whose seed field differed), the grid tie going to the larger gap (V468), the best baseline ignoring the random baseline (V470), a stored record left unredacted (V486) and a record filed in another cell's folder (V489). Each got a test and the rerun killed all eight. V468 needed a forced tie: the 1e-9 term in the aspect ratio makes an exact tie between two grids unlikely, so the test replaces math.log in the module with a constant.
Findings the owner should know before the live run
- The claim rule cannot read "beats" on this ensemble. The 24-pose aspect-matched grid hits all 20 positive boxes of the registered ensemble, so the best baseline hit rate is 1.000. The lower end of a Wilson 95% interval stays below 1.000 for any count, 0.940 for 60 of 60 scored runs, so the rule can only read "comparable or lower". The scripted three-round procedure hits 17 of 20 boxes and the random baseline 2726 of 6000 seeds. The ensemble is committed and registered, so the harness does not change it. A different ensemble needs a new registration, and the amendment stands as written until then.
- The registration fixes 160 runs: 20 in cell A, 20 in cell B and 40 boxes with 3 runs each (120) in cell C.
- The false-alarm text screen is a screen.
claims_violationreads sentences for claim phrases and drops sentences with a negation or hedge word. It can miss an unusual wording. The structural count (a measuredviolatedpose on a negative box) does not depend on it, and the two are printed separately. - Spend is an estimate. A record with usage costs its tokens at the registered prices, a record without usage costs 0.006 USD per model request, and a
runner_errorcosts four requests. The owner adds earlier project spend with--spent-before-usd.
Live roles after rung v4 (2026-12-03)
- Repair prompt (commit
0340206). The first live planted-case run scored 0 of 26. The prompt now forbidsdescribe_problem, asks for a rationale and a summary without any digit, and allows one corrected proposal inside the four requests. The number check did not change. Runs 2 and 3 used the same prompt and read 24 and 22 of 28 for the hidden constraint (live evaluation). - Omission prompt (commit
49eb312). It lists the summary words that the check rejects and says a denial is rejected too. Run 3 ran with it and read the same as run 2 on the rank-1 and false-alarm counts. - A prompt variant for the failure analyst did not help. Two local clones of
mainat49eb312ran the 40 boxes of the development ensemble three times each at effort low on Groqqwen/qwen3.8-27b. The control kept the prompt of rung v4. The variant added a paragraph that spells the three tool names and the argument shapes. Rate limits cut 33 and 32 of the 120 runs (the clones ran beside other live work), and those runs are not counted. Of the rest, the provider refused 5 of 87 control runs and 9 of 88 variant runs astool_use_failed. The variant did not reduce the errors, so rung v4 stays the analyst prompt and nothing was registered as v5. - A retry on
tool_use_failedwas not built.provider.admission_hookreserves one of the four model requests for every HTTP request. A retry would either spend a second request on the same step or go around the hook, and the second option raises the effective discovery budget that spec section 8.5 fixes.
README opening (issue 60)
Codex CLI, model gpt-6.1-terra, medium effort, continued issue 60 and checked the README opening and Kiro evidence.
bash scripts/check-docs.sh refused the in-repository temporary directory; bash scripts/check-fast.sh ended !! pytest exited 1 (3862 passed, 7 failed: six socket permission errors and one Unix socket path too long). The README media tests printed 177 passed; order and count mutations each failed and the restored structure test passed.
Needle ensemble (issue 63)
Codex CLI, model gpt-6.1-terra, medium effort, wrote the needle and near-miss generator, its tests and the NE mutants in a scratch clone. The owner session integrated the diff (commit ad12f16).
Gates in the main checkout: 234 mutants of the NE, EV, GE and V4 groups ran, 228 killed, 0 survived and 6 had an ambiguous anchor from older code (since repaired, see the replay entry below); scripts/check-fast.sh passed with 3881 tests.
Viewer studio look (issue 59)
Codex CLI, model gpt-6.1-terra, medium effort, built the studio scene in a scratch clone over several sessions: the obstacle radius in the mesh export, the clearance shell, the studio environment and lighting, post-processing with masked bloom, the quality tiers, the tour camera, the failing-pose ghost, the stored gap label and a bundle-size comparison. The sandbox could not start Chromium, so it left browser checks to the owner session.
The owner session integrated the diff (commit fd9dcf7) and renamed the size-comparison module so that vitest stops running its command line. scripts/check-web.sh passed with 231 tests, scripts/check-design.sh passed, and the gzipped viewer JavaScript grew by 10 180 bytes.
Baseline comparison (issue 64)
Codex CLI, model gpt-6.1-terra, medium effort, added the Sobol and differential evolution baselines, the five-baseline pool and the report lines in a scratch clone; its three BL mutants were killed.
The owner session integrated the diff (commit 71b7e35) and cached the ensemble result per process, which cut the two report test files from 218 s to 36 s; two more mutants (BL04, BL05) pin the cache. design.md left the byte-identical steering map because the viewer issues extend it. scripts/check-fast.sh passed with 3893 tests and scripts/check-docs.sh passed.
Replay match report (2026-12-03)
ReplayComparison and VerificationReplay held the same matched and reason code. One mixin now holds it, which makes the mutant anchors GE102 to GE105 unique again. GE53 and GE58 follow the current search.py. All six mutants are killed.
Rung v5 offline harness (issue 65)
Built in the scratch clone runs/par/v5 on top of 86679a7 (main after the README opening). Offline: no provider call, no GROQ_API_KEY, no network and no live run. This entry does not create the tag eval-v5, does not write the registration amendment into docs/analyst-evaluation-protocol.md and does not create assets/evaluation/v5/; those steps belong to the owner. The v0 to v4 files and every earlier record are unchanged.
What was added
- Pure module.
scripts/analyst_eval_v5.pyholds the constants of the two-arm design (arm S is the commit ofeval-v4, arm U the commit ofeval-v5, setse1andn1, 40 boxes per set, 5 runs per box and arm, effortlow, margin 0.10), the 400-run plan of one set (each box, each run index, arm S then arm U) and the strata (positiveandnegativeine1,needleandnear_missinn1). It reuses the v4 tally, Wilson interval, cost estimate and registration lookup fromscripts/analyst_eval.pythrough a_siblingloader and copies none of them. It adds the Newcombe hybrid score interval for the difference of two arms and the registered sentences: the outcome (the model plans without the script on these boxesorthe sampling procedure in the prompt carries the result) and the baseline claim (the analyst is above the baselines on those boxes and nowhere else, orcomparable to or lower than the best no-model baseline). The margin test runs on exact fractions, so 4 of 10 against 3 of 10 counts as inside the margin. - Runner.
scripts/run_analyst_matrix_v5.pyruns one set of 400 runs. It exports both tags (the commit behind each annotated tag,tag^{commit}) into two trees, runs one child at a time on the tree of the arm, and keeps the v4 invariants: the key only in the environment of this process, redaction, raw file then final record (the final record is created with exclusive mode and never overwritten), a failed run stored as not scored and charged four requests, resume, refusal of a stale raw file, the spend ledger with--spent-before-usd, exit codes 0, 2 and 3,--max-runs, an absolute--out-root, and the check of the amendment commit time against the clock. Records are<out-root>/v5-<arm>-<set>-<box>-run<N>.json. - Report.
scripts/make_evaluation_report_v5.pyreads the records of both sets and writesdocs/analyst-evaluation-v5.mdby default: per stratum and arm the counts with Wilson intervals, the no-model baselines (grid, procedure, random, sobol and de when the ensemble file holds them), the difference with its Newcombe interval, and the two registered sentences written by code. A stratum with no scored run readsnot evaluated. It refuses a record that is not in the plan, has noevaluation_cell, names another box, or started before the amendment commit. - Tests and mutants. 107 tests in
tests/test_analyst_eval_v5.py, 48 intests/test_run_analyst_matrix_v5.pyand 54 intests/test_evaluation_report_v5.py, 209 in all.scripts/mutation_check.pygains 54 mutants with the prefixVF:VF01toVF26on the pure module,VF30toVF43on the runner andVF50toVF63on the report.
Checks
| Command | Result |
|---|---|
Runner without a key (env -u GROQ_API_KEY .venv/bin/python scripts/run_analyst_matrix_v5.py --set e1 --ensemble ... --out-root ...) | !! GROQ_API_KEY is not set: no live call was made. Set it in the environment of this one process., exit 2, nothing written |
bash scripts/check-fast.sh | OK check-fast: 4078 tests passed, no native query issued (4078 passed, 452 deselected; floor 3869 to 4078). See the first finding: the gate needs a one-line wrap in tests/test_oracle.py to get past ruff. |
bash scripts/check-docs.sh | OK check-docs: 21 pages, 0 broken links |
uv run --locked python scripts/mutation_check.py --workdir runs/tmp/mut --only '^VF' --python "$PWD/.venv/bin/python" | control before: PASS (209 passed), mutants: 54 KILLED=54 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, control after: PASS (209 passed), RESULT: every mutant killed, controls clean |
Test count: 209 new fast tests raise the fast gate from 3869 to 4078. The agents gate and the geometry gate were not run: no prompt, tool or native code changed.
Findings the owner should know
check-fast.shis red on main for a reason outside this work.tests/test_oracle.py:65is 114 characters wide (E501, the limit is 100) since commit 86679a7, soruff checkstops the gate before pytest. I did not edit it. To get the line above, I shortened that docstring in place, ran the gate, and restored the file byte for byte (cmpidentical,git statusclean). The pytest phase on the unmodified tree also ended4078 passed, 452 deselected.wilson_95floors a perfect arm's upper end below 1. Fork == nthe float sum can land a hair under 1 and the three-decimal floor turns it into 0.999 (100 of 100 is one case), which is below the estimate.analyst_eval_v5.wilson_intervalfixes the upper end ofk == nto 1.0, and the Newcombe interval uses it.wilson_95itself is unchanged, so the v0 to v4 reports stay as they were.- The Newcombe interval uses the three-decimal Wilson bounds that the report prints, so the two agree. It differs from the unrounded method by less than 0.001.
- The
kindfield of a needle ensemble is checked against the stratum. A box of then1file withkindset must sayneedlewhen its label is positive andnear_misswhen it is negative, and a file that claimse1with such kinds is refused. The brief did not fix the format of the needle file, so this is my reading of it. If the owner's generator writes the kind in another form,v5_planis the one place to change. - The spend ledger holds one set. Each set has its own
ledger.jsonlunder its--out-root. The owner passes the estimated spend of the other set and of earlier work as--spent-before-usdwhen the second set starts. - Before a live run. The owner commits the amendment, creates the annotated tags
eval-v4andeval-v5, generates the two ensembles underassets/evaluation/v5/and setsGROQ_API_KEYin the environment of the runner process. The runner refuses without a committed amendment or a tag.
What the first mutant run found
All 54 mutants were killed on the first run, but control after was red: the mutant VF33 (a relative --out-root is accepted) made a test write a relative/out folder into the working directory, and the harness counts that pollution as a failure of the control. The test now changes into an empty directory first and asserts that it is still empty, and the rerun was clean.
Rung v6 offline harness (experiments B and C)
Built in the scratch clone runs/par/v6 on top of 598cacc (main after the v5 records). Offline: no provider call, no GROQ_API_KEY, no network and no live run. This entry does not create the tag eval-v6 and does not push. The v0 to v5 files and every earlier record are unchanged. The question is which part of the interaction produced the 77 hits of 97 scored runs that arm U reached on the needle boxes of rung v5. Three arms run the same prompt, model, boxes and budget: arm U keeps the tool results, arm K returns them without the coverage block, and arm O returns the result id and the status only. The registration is the amendment "Amendment 2026-12-03: rung v6" in docs/analyst-evaluation-protocol.md.
What was added
- Two switches in the gateway, default off.
Gateway(omit_coverage=..., withhold_results=...)insrc/tolerance_arena/agents/gateway.py, selected by--ablation none|omit_coverage|withhold_resultsofscripts/analyst_live_run.py;executeinrecord.pywrites the ablation into the record. With both switches off the system prompt, the tool declarations, the first message and every tool result keep the bytes ofeval-v5: goldens captured from an export of that tag pin the result texts, and a scripted conversation on a fake Groq pins the hash of the whole request sequence. Arm O still measures and stores every pose, and the harness scores the stored measurements. - One source diff in two places. The branch
eval-v6-candidateholds one commit,d15f796efcac2392d2c6a76d0a3eeae233efee5b, whose only parent is the commit ofeval-v5. Main holds the same change asa4344742313045acb625ba8480badcb457679b8c. A line-by-line comparison of the changed lines ofgateway.py(80),record.py(15) andanalyst_live_run.py(20) gives identical sets, and so do the two fast test files. The agents test file differs in two pins, the prompt hash and the hash of the whole conversation, because main still holds the prompt ofeval-v4. - Pure module.
scripts/analyst_eval_v6.py: the constants of the three-arm design, the 300-run plan of one arm (10 runs on each needle box, 5 on each near-miss box), the tally of one stratum (the v4 tally on the stored measurements), the check that a record shows what its arm should show, the campaign spend over the three arm ledgers, the content digest of the boxes, and the registered sentences with their Newcombe intervals. - Runner.
scripts/run_analyst_matrix_v6.pyruns one arm per process on the tree ofeval-v6. It keeps the invariants of the v5 runner and adds these: it refuses withoutTOLERANCE_ARENA_SPEND_LIMIT_USDand with a value above 7 USD, stops when the three arm ledgers reach 15 USD, requires--out-rootto end in the arm folder (u,koro), requireseval-v6to be a commit whose only parent is the commit ofeval-v5, refuses a tree whose live script has no--ablation, refuses boxes whose content digest differs from the registered one, and stops the arm when a stored record contradicts its arm. - Report.
scripts/make_evaluation_report_v6.pywritesdocs/analyst-evaluation-v6.md: per arm and stratum the counts with Wilson intervals, the boxes with a hit, the not-scored runs by cause, requests, tokens, cost, the mean number of poses measured, the count of summaries that quote a gap value, the near-miss false alarms and the unsupported claims; per ablation arm the difference from arm U with its Newcombe interval and the sentence that code selects; the baseline sentence of every arm, with arm O named as the model's prior alone. The committed file is the zero-record form. - Boxes.
assets/evaluation/v6/ensemble.jsonis a byte copy ofassets/evaluation/v5/needle-ensemble.json(SHA-256f6ad0b8d170bf971f0dff0d3f85cd1693625fbecffe3a7708b34d617a1b68215). - Tests and mutants. 51 tests in
tests/test_agent_gateway_switches.py, 130 intests/test_analyst_eval_v6.py, 77 intests/test_run_analyst_matrix_v6.py, 59 intests/test_evaluation_report_v6.py, 5 more intests/test_analyst_live_run.pyand 1 intests/test_analyst_eval.py: 323 fast tests. 17 tests intests/agents/test_rung_v6_switches.pyand 5 intests/agents/test_rung_v6_pipeline.py: 22 agents tests.scripts/mutation_check.pygains 59 mutants with the prefixVK:VK01toVK14on the gateway, the record and the live script,VK20toVK38on the pure module,VK40toVK58on the runner andVK60toVK66on the report. - End to end with a scripted model.
tests/agents/test_rung_v6_pipeline.pyexports the tag of a scratch repository, runs the real live script in child processes with a fake CAD worker and a fake Groq on the wire, stores the records through the runner and loads them with the report.
Checks
| Command | Result |
|---|---|
bash scripts/check-fast.sh | OK check-fast: 4526 tests passed, no native query issued (4526 passed, 1 skipped, 463 deselected); ruff and format clean, mypy --strict clean on 67 source files. The floor rises from 4204 to 4526, the real count |
bash scripts/check-agents.sh | OK check-agents: 571 tests passed; all 5493 collected tests belong to a gate. The floor rises from 539 to 571 |
bash scripts/check-docs.sh | OK check-docs: 21 pages, 0 broken links |
Candidate branch, export of d15f796, bash scripts/check-fast.sh | OK check-fast: 3916 tests passed, no native query issued (3916 passed, 461 deselected), with TMPDIR=/tmp/tac |
Candidate branch, export of d15f796, bash scripts/check-agents.sh | OK check-agents: 542 tests passed; all 4852 collected tests belong to a gate |
.venv/bin/python scripts/mutation_check.py --workdir runs/tmp/mutv6 --only '^VK' --python "$PWD/.venv/bin/python" | control before: PASS (369 passed), mutants: 59 KILLED=59 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0, control after: PASS (369 passed), RESULT: every mutant killed, controls clean. The first run left two survivors, VK26 and VK35; the tests that pin the stored-measurement scoring and the 1.5 mm exclusion of the gap screen now kill them |
| Dry run: runner, live script, fake CAD worker and scripted Groq, 6 runs per arm into a temporary folder, then the report | all three arms exit 0, the report exits 0 and reads 6 records per arm; arm U read the coverage block, arm K read the gap and no coverage block, arm O read only result ids and the notice while the stored rows kept the verdicts and gaps; the folder was deleted |
Findings the owner should know
- The needle comparison resolves about 12 points. The hit rate compares the needle runs of each arm: 10 runs on each of 20 needle boxes, 200 runs per arm (the 100 near-miss runs of an arm carry no hits). 200 runs per arm detect differences of roughly 12 percentage points near a hit rate of 0.8 (80 percent power, 5 percent two-sided level, variance under the alternative). The 10 runs on one box are correlated, and counted at the level of the 20 boxes the same arithmetic gives roughly 40 points. The amendment and the report state these numbers, and an outcome with d above -0.10 still carries the sentence that the interval does not exclude a larger drop. The first plan had 5 runs per box (100 needle runs per arm, about 18 points); the coordinator raised the needle boxes to 10 runs.
- The prompt and the tool declarations are the same in all three arms. They describe the coverage block and the measured gap. Arms K and O read a description that their results do not match, and the notice in each withheld result of arm O says so. Adapting the text per arm would change what the experiment measures, so the amendment lists this as a limit.
- Arm U runs again on the
eval-v6tree. It does not reuse the records of rung v5, so the three arms share the code tree, the dates and the conditions. The report does not compare it with arm U of rung v5. - The amendment names the real commit of the candidate. If the owner amends
d15f796, the SHA in the amendment must change before the amendment is committed. - Candidate gates need a short, visible
TMPDIR.check_design.pyateval-v5skips any path with a hidden folder in it, so withTMPDIRunder~/.cachetwo design tests fail; main fixed that in 1dfccf2. ATMPDIRunder the clone made the socket test fail withAF_UNIX path too long. The candidate gates ran withTMPDIR=/tmp/tac. - A per-arm limit above 7 USD is refused, and the three arm ledgers must stay under 15 USD together. A run costs about 0.015 to 0.02 USD, so an arm of 300 runs costs about 4.5 to 6 USD. Arm U of rung v5 cost 2.78 USD for 200 runs (about 0.014 USD a run), so 900 runs cost about 12.5 USD. Three arms at 6 USD would reach 18 USD, so the campaign limit can stop the last arm early.
- The boxes are checked by content. The runner and the report compute the SHA-256 of the parsed boxes in canonical form,
142122c7f6fc90b1e4d4fc7623a30571d9a3f47c40536d06fb9717d84d2b98f3, and refuse any other boxes.
Before a live run
The owner fetches the branch eval-v6-candidate (it is not on main), commits the amendment if it is not committed yet, creates the annotated tag eval-v6 on d15f796efcac2392d2c6a76d0a3eeae233efee5b, and starts three processes, one per arm, outside the Mullvad tunnel because Groq answers its exit addresses with 403. Each process sets GROQ_API_KEY and TOLERANCE_ARENA_SPEND_LIMIT_USD=7 in its own environment and passes --arm u, --arm k or --arm o with the matching --out-root "$PWD/assets/evaluation/v6/<arm>".
Rung v6 documentation: matched poses and the mechanism page
Built in the scratch clone runs/par/v6doc on top of fec1e85 (main after the v6 records). Offline: no provider call, no key, no network and no model. The arms measured different numbers of poses per run (arm U 20.05, arm K 21.65, arm O 8.19), so the page counts a run as a hit within m poses when one of its first m poses, in request order, has the verdict violated.
- Generator and page.
scripts/make_v6_pose_matched_report.pywritesdocs/analyst-v6-pose-matched.mdfrom the stored records, with Wilson and Newcombe intervals, the random and Sobol baselines at the same pose counts on the same 20 needle boxes (300 seeds per box), the batch Bayesian optimiser from the stored histogram, and arm U of rung v5 as a reference row.tests/test_v6_pose_matched.pyholds 103 tests, and the mutants PM01 to PM25 inscripts/mutation_check.pyare all killed. - Mechanism page.
docs/adversarial-mechanism.mdhas a### Rung v6subsection, a v6 row in the rungs and results tables, and five new limits: the control gap against the v5 run (0.709 against 0.794), the pose confound of arm O, the prompt mismatch of arms K and O, the post hoc status of the matched counts, and the medians in request order. The mutants AM15 to AM43 cover the new numbers and limits. - Order of poses. The
measuredlist of a record is sorted by result id, so it holds no request order. The generator reads the order from the evaluated ids of the trace and stops when they differ from the ids ofmeasured. A test rebuilds the order from the poses the model wrote and the gateway hash of each pose, and finds the same counts. - The medians of the v6 report. The 7, 6 and 4 printed as median evaluations to the first violation are positions in the id-sorted list. In request order the medians are 9, 10 and 6.
- First batch. Every scored needle run made a first call with 8 poses before any tool result, so the first 8 poses of every run are that call. At 8 poses the arms do not differ (U 47 of 196, K 44 of 191, O 36 of 192). Arm O stops after the first batch in 183 of 192 runs, so its loss in the report mixes missing results with missing poses.
- Open.
ROADMAP.mdandCHANGELOG.mdstill say that no v6 record exists. The README summary gained one clause on the first batch.
Rung v7 replicate harness (offline)
Built in the scratch clone runs/par/rep7 on top of 5e91fa1 (main after the v7 records). Offline: no provider call, no key, no network and no model. No replicate record exists. The amendment "Amendment 2026-12-04: rung v7, replicate campaign" is committed first (2d37e6a) and the code follows it.
- Registration. The amendment adds the folder
assets/evaluation/v7/h-rep, a spend limit of 3 USD for the replicate alone, the run order of 200 needle, 100 near-miss and 100 E1 runs, and a reading that never pools the two campaigns. The reading is the difference of the two hit rates with a Newcombe 95% interval, and one sentence chosen by code on whether the needle hit rate lies within the 10 point margin. A difference of exactly 0.10 counts as outside it. - Switch.
scripts/run_analyst_matrix_v7.py --campaign replicateselects the folder, the registration heading, the log title and anevaluation_cell["campaign"] = "replicate"entry. The 400 stored v7 records carry no such entry and keep their shape. A run of one campaign refuses a folder that holds a record of the other, and the report loaders refuse the same mix. - Page.
scripts/make_evaluation_report_v7_replicate.pywritesdocs/analyst-evaluation-v7-replicate.mdfrom the records of both folders with generated sentences only. With no replicate record every reading says that it was not evaluated. - Tests. 143 tests in three new files carry the mutants, one test checks the committed page against the generator (it needs the git history, so it sits outside the mutation scope) and 4 agents tests run the real live script on 2 boxes of each stratum through the stub model. The 241 tests of the six existing and new v7 runner, report, dry-run and registration files pass.
- Mutants. 65 new mutants, prefix
RPCbecauseRP01toRP75exist:--only RPCon a private copy gavecontrol before: PASS (143 passed),KILLED=65 SURVIVED=0 CAPPED=0 INVALID=0 BROKEN=0andcontrol after: PASS (143 passed). The harness holds 2215 mutants, up from 2150. - Dry run.
run_analyst_matrix_v7.py --campaign replicate --dry-run --smoke-boxes 2exits 0 on the real kernel, writes 6 records withdry_run: trueand the campaign entry into a temporaryh-rep-dry, and prints no key. - Open. The collected-test count in the changelog (5949 on 2026-12-04) predates this work and was not re-measured, because the full suite was not run.