Development log

Chronological record of the work, including work done by tools other than Kiro. The Kiro evidence index is docs/KIRO_USAGE.md. Measured results and open tasks are in docs/progress.md. Counts and timings carry the date they were measured, because the code changed after the first entries.

Who did what

ToolVersionWork
Claude Code (model claude-sonnet-5-5)2.1.332All of B0 on 2026-11-28: research, steering, spec, tests, code, scripts, docs
Kiro IDE1.5.49 installednone
Kiro CLI3.7.0 installednone
Codexn/anone

No Kiro feature ran during B0. The .kiro files were written by Claude Code and have not been opened in Kiro. The 2026-11-30 section below names no tool for its work.

2026-11-28

Research before any code

  • Read the community spec. Version 1.3 replaced 1.2 during the session, and the repository carried 1.3 that day (docs/community-spec.md, sha256 2923ed73...1e9a, byte-identical to the file in the owner's Downloads folder). On 2026-11-30 the repository moved to v1.4 (see that section).
  • Read the Kiro documentation pages on steering, specs, hooks, custom agents and AGENTS.md, and checked the installed CLI and IDE versions. Three points the pages do not settle are recorded in docs/KIRO_USAGE.md: the tasks.md checkbox syntax, whether custom agents inherit steering, and the exact hook trigger names in the installed build.
  • Looked up the Kiroween 2026 rules. Devpost refused automated reads (a Cloudflare challenge). A browser-based workaround was started and then stopped at the owner's request, and nothing from it was used. The facts first written into docs/progress.md came from third-party pages and were unverified. The official rules the owner pasted later that day replaced them (see "Planning, later on 2026-11-28"). The owner confirms eligibility on Devpost.
  • The owner chose Groq as the LLM provider. This overrode spec v1.3 section 8.8, which named Anthropic first, and .kiro/steering/tech.md recorded it. The v1.3 text also named Anthropic in sections 9.4.1, 10.2 and 15.1. Spec v1.4 (dated 28 November 2026) names Groq; see the 2026-11-30 section.

Build, test first

Every module followed the same loop: write the tests, run them, watch them fail for the stated reason, write the minimum code, run again.

  1. tests/test_repo_contract.py first. It checks the .kiro tree (front matter, hook schema, spec traceability), the license hash, that .kiro is not gitignored, and that no CLAUDE.md exists. Each validator has a bad-sample self-test so it cannot pass by accident.
  2. oracle.py. The formula imports only math. It rejects booleans, strings, NaN, infinity and out-of-range values.
  3. fixture.py and native.py. Reading build123d 0.13.0 showed that Shape.distance_to returns Value() without checking IsDone(). A failed query would come back as a number, so native.py calls BRepExtrema_DistShapeShape directly and raises NativeQueryError with a reason code for each failure (decision ADR-003).
  4. verify.py. Fail-closed rules: satisfied needs a completed query, oracle agreement, a gap above 1.5 mm plus the band, and a separated relation. I added requirement CV-04 criterion 5 (relation_unclassified) when the first table left one combination with no verdict.
  5. cli.py. Exit status 0, 1 or 2. An unexpected exception and an unknown outcome both exit 2, because an uncaught Python exception would exit 1 and read as "violation found".

Defects found by the checks themselves

  • Ruff 0.17 formats Python code blocks inside Markdown and tried to rewrite the verbatim spec copy. docs is now excluded in pyproject.toml, and the spec hash was compared before and after.
  • The mutation harness's own control run failed on its first launch: its scratch copy had no .git, so a contract test that calls git check-ignore had nothing to ask. The harness now runs git init in the copy with every GIT_* variable removed, and it prints the failing test names when the control fails.
  • The kernel error survey first covered 24 offsets instead of 25 and never queried +1.2 mm, because int(2.4 / 0.1) is 23 in floating point. The grid now uses round and stops with an error if it does not span the fixture domain.
  • A guard in cli.py (decimal-only number parsing) had no test: float() accepts 4_5 and 45. Three bad-input cases were added, and the mutation check confirms they fail when the guard is removed.

Not done at the B0 checkpoint (c2dcb01)

H0, M0 to M7, the Kiro-native review, hooks, and the Strands agent. Spec section 12.1 plans those for Kiro. Later the same day the supervised worker, arena doctor and the relation fixtures (M0 work) and an offline analyst were built (see "Claude-owned issues 3 and 4"). The Kiro-native review, the hooks, M1 to M7 and the live analyst run are still open.

Planning, later on 2026-11-28

  • The owner pasted the official Kiroween 2026 rules. They replaced the third-party summaries: eligibility, the blog and social bonus rules, the credit deadline and the write-up topics all come from them now (docs/progress.md).
  • Searched for how mechanical engineers work with tolerances and clearances (docs/use-cases.md) and for the Kiro IDE features the CLI lacks. The IDE alone offers the spec Correctness workflow, so the IDE owns only the features whose requirements map to properties.
  • Created 21 GitHub issues with owner, priority and milestone labels and native blocked-by links. A first run of the issue script left the text Blocked by lines out of the bodies because the helper never received the lists; the validator had nothing to check. The lines were added afterwards and read back.
  • Claude Code did this planning work. No Kiro surface was used.

Later planning, 2026-11-28: AI roles and design

  • The owner asked for something only an AI could do. The plan keeps the claim narrow: it makes no claim that the model searches faster or better than numerical search, so the model takes three jobs that search cannot do. These jobs are hypotheses, and no run has measured them. The model reads a mechanism from prose (#23), proposes contributors the problem omits (#22) and picks among allowed bindings by a design note (#16). Issues #22 to #25 were added and #4, #8, #10, #16 and #19 were amended. The result was read back from the remote.
  • The owner asked for a distinctive interface. Research found Cloudscape (open design system) and the usual signs of generated interfaces (gradients, Inter, glass, identical cards, invented metrics). Three GitHub skills were considered. Two were dropped: one is a single file last updated in 2025 and one targets marketing pages. h3nryprod01/design-taste fits an application screen. Its files were read, scanned for shell and network instructions (none) and installed at user level, byte-identical, pinned to commit 3218793, markdown only. They are not part of this repository, which keeps .kiro as the only instruction tree.
  • .kiro/steering/design.md carries the rules for Kiro, loaded only for web/**/*. A contract test checks its front matter and the invariants; deleting one invariant made the test fail.
  • Issue #26 (design system and motion) was added with a native blocker on #11, and #11 and #17 were amended. The scrubbing latency over HTTP is unmeasured; the steering file says so.

Claude-owned issues 3 and 4, 2026-11-28

The owner approved the Claude-owned work that no Kiro step blocks. Claude Code did all of it. No Kiro feature ran, and the .kiro files touched here (structure.md, tech.md) were written without opening Kiro.

Issue 3, worker and doctor. Tests first, each watched failing for its stated reason, then the code.

  • Added kernel_types.py so the supervisor shares NativeMeasurement and the error types without importing a CAD library. A test runs a clean interpreter and checks that importing worker loads neither build123d nor OCP, with a positive control that importing native loads both.
  • Built the supervisor in three parts: the JSON protocol and strict reply validation, the child loop, and the parent with its reaper. The first worker mutation batch ran 39 mutants: 38 were killed and one (W06, the reaper never sends SIGKILL) hit the 300 s cap. The current harness holds 35 W mutants.
  • The first real-kernel crash test returned worker_protocol_error where worker_crashed was right. The cause was is_alive() lagging behind a multi-threaded OCCT exit (see the defects in docs/progress.md). Classifying by the exception recv_bytes raised fixed it.
  • A probe of invalid solids showed OCCT returning finite gaps. The adapter now refuses them, and tests/test_relations.py pins the five relation fixtures against the real kernel.
  • arena doctor checks four capabilities by doing each once. Its tests include seven negative controls (a wrong kernel gap, an invalid shape given a number, a wrong reason code, a lying worker, a worker that keeps its process, no process to stop, a worker that restarts and gives a wrong answer).
  • Flakiness check: the worker tests ran green six times idle and twice under twelve busy loops.
  • A check of leftovers used pgrep -f twice, and both times the search matched its own shell. Exact command-line and /proc/<pid>/exe matches gave zero leftovers.

Issue 4, analyst (first version, on strands-harness). The Strands behaviour came from the installed 1.68.0 source.

  • Installed the two pinned packages (strands-harness 0.6.0 and strands-agents 1.68.0) in a scratch environment first. Both resolved. strands-agents does not pull openai unless the openai extra is named, and the OpenAI client 3.60.0 uses httpx2, which changed the request-hook types.
  • Tools are hand-written PythonAgentTools so the model's JSON reaches the gateway without coercion.
  • A fake httpx2 transport counts the requests that reach the wire. The "fifth request is refused" claim rests on that count and on nothing the agent loop reports about itself.
  • Two expectations were wrong and the run said so: the structured-output tool call ends the loop (stop reason tool_use, one request fewer than I had scripted), and the SDK turn cap of 4 fires before the admission cap. Tests now cover both caps separately.
  • Mutation harness: 93 agent mutants at 862766e, each run against its own test scope with --python choosing an interpreter that has the agents group. The first agent batch ran 77 mutants and kept 2 survivors: AGT05 was replaced by a stronger mutant and AGF12 proved equivalent and was removed. The next batch of 33 kept 3 more (C12, AGA01, AGA12), each fixed with a test and killed on rerun. Every mutant was killed in its latest run at that commit. The harness now holds 159 AG mutants.
  • scripts/analyst_live_run.py is written and its two refusal paths ran (no runtime, no key). It has not made a live call.

Status on 2026-11-28. #3 met its acceptance criteria and is closed since. #4 did not: the live run, the two-model comparison and the recorded trace waited for the owner's key.

2026-11-30

Commit a00bdb0 (2026-11-30 11:45 local time), "Harden the worker, verifier and analyst after a full review; add brand assets and a README rewrite", changed src/, tests/, scripts/, pyproject.toml, uv.lock, the steering files and the README. It did not change docs/progress.md or this file, so the counts and statements written before it carry the dates above. What the code shows after that commit:

  • verify.py: ClearanceResult and SweepResult check their own fields against each other, so a result built or edited by hand cannot report a verdict, reason codes, relation or difference that disagree with its measurement. A Settings model holds the three named numbers. evaluate revalidates the scenario (a model_construct instance with an out-of-domain value is refused) and turns a FixtureError into an indeterminate result with reason code fixture_check_failed. Failure text is cut to printable ASCII and 200 characters in native_detail. classify_clearance returns implausible_distance for a distance that is not finite.
  • kernel_types.py: NativeMeasurement refuses values that no completed query can produce.
  • worker.py: a watchdog kills a worker that sends half a reply, replies are validated strictly, a failed reap quarantines the slot (worker_unreapable), the provider credentials are removed from the environment while the child starts, and fixture text from the child never reaches the verifier.
  • doctor.py and cli.py: the report is a typed structure, arena doctor --json carries a worker block, and a failure to close the worker prints a warning and keeps the verdict.
  • Gates: check-fast.sh also runs mypy --strict on src, check-agents.sh also fails when a collected test belongs to no gate, and each gate has a floor on its test count. A suite-wide guard in tests/conftest.py fails any test that opens an internet socket.

Work after a00bdb0, on the working tree, tracked by issue #28:

  • Spec v1.4 replaced v1.3 in docs/community-spec.md (sha256 be637eba...39ff, byte-identical to the owner's Downloads file; the v1.3 sha was 2923ed73...1e9a). v1.4 is dated 28 November 2026. It fixes Groq as the only provider and replaces the assembled strands-harness with the core Strands SDK, instantiated directly with strands.Agent. It lists openai/gpt-oss-120b and openai/gpt-oss-20b.
  • The owner then chose the single model qwen/qwen3.8-27b, which supersedes the v1.4 list for this repository. Groq lists it as a preview model and may retire it.
  • strands-harness left pyproject.toml and uv.lock. factory.py builds strands.Agent directly. provider.py allows one model, takes reasoning_effort from none, default, low, medium or high (default low, untested), sends reasoning_format hidden and refuses include_reasoning in addition to the parameters it already refused. A 429 ends a run as provider_rate_limited with sanitised retry and reset metadata, and the run record carries it. httpx2 stays, because openai 3.60.0 requires it while v1.4 names httpx.
  • The mutation harness held 273 mutants at this point (114 outside the agent layer and 159 AG mutants). Its result is in docs/progress.md.
  • Gate results on 2026-11-30: check-fast.sh 624 passed, check-geometry.sh 160 passed, check-agents.sh 309 passed, 1093 tests in all, and every collected test belongs to a gate. The numbers in older entries came from smaller suites.
  • Issues #27 (extend the spec to the worker, doctor and analyst in Kiro IDE) and #28 (the SDK migration) were opened, and #3 was closed.

Honest status on 2026-11-30. #3 is closed. #4 stays open: the live run and the recorded trace need the owner's GROQ_API_KEY, and no live run exists, so there is no accuracy or speed claim. The two-model comparison in the #4 text cannot run while the allowlist holds one model, and that needs an owner decision.

2026-12-02: mutation result, W10 and a drift audit

  • The full mutation run finished on 2026-12-01 (273 mutants: 272 killed, 0 survived, 1 capped). W10 hit the 300 s cap because it ran the whole suite with --maxfail=4 and every hang test waits out its 25 s alarm. It now runs one test and is killed in 3.5 s.
  • Three read-only agents compared docs/community-spec.md, the .kiro files, the README and docs/progress.md with the code. Their findings were checked against the code before anything changed.
  • Code changes, each with a test written first: the admission hook refuses a non-default port, user info, a query string and any function that is not one of the four reviewed tool names; an interrupt exits 130 with one stderr line; two tests now cover the fixture's validity check and the text report; .env.example exists and is not hidden by .gitignore; httpx2 is declared in the agents group. Eleven mutants (F04, F05, C13 to C16, AGP15 to AGP19) cover the new guards and were killed.
  • Doc changes: README overclaims about the model, tokens and worker text, the verdict table, stale AGENTS.md and steering lines, a design property and a role row. The departures that stay open are listed under Known limits in docs/progress.md.
  • Gate results: check-fast.sh 633 passed, check-geometry.sh 161 passed, check-agents.sh 313 passed, 1107 tests in all.
  • The README was rewritten for the submission: a headline, badges, a diagram, a status table, the adversarial-search section and a Kiro table with links. A new figure, drawn from the analytic oracle by scripts/make_gap_plot.py, shows the grid missing the 0.8 mm failure; tests/test_gap_plot.py fails when a committed figure differs from the generated one.
  • Issues #4, #11, #16 to #18, #22 to #24, #26 and #28 moved to Kiro IDE or Kiro CLI on 2026-12-01.

2026-12-02: issue 29, a declared parameter box (Kiro CLI)

  • Tool: Kiro CLI 3.8.1, offline, starting at b698c0e. Record: K08 in docs/KIRO_USAGE.md.
  • Code changes, each test first: ParameterBox and InvalidBox refuse an empty, non-finite, non-real or out-of-fixture box. Gateway takes a box, describes it in describe_problem and answers a scenario outside it as invalid with a credit charged and no kernel call. The run record stores parameter_box, and the baseline grid is seven angles by three offsets of the box. scripts/analyst_live_run.py takes --angle-range and --offset-range and exits 2 on an unusable box before anything starts. With no box the output equals the earlier output.
  • Gate results: check-fast.sh 657 passed, check-geometry.sh 161 passed, check-agents.sh 332 passed, 1150 tests in all. 21 new mutants AGX29 to AGX49, all killed.

2026-12-02: issue 31, a labelled terminal analysis (Kiro CLI)

  • Tool: Kiro CLI 3.8.1, model amazon-ergo, offline, starting at 1a76d65. Record: K22 in docs/KIRO_USAGE.md.
  • Test first: the gateway notice tests failed with KeyError: 'requests_remaining', the record tests failed with KeyError: 'harness_summary', and the prompt test failed with AssertionError: assert 'requests_remaining' in ... before the implementation existed. The linked property test failed with KeyError: 'analysis_source' when run with --runxfail.
  • Code changes: schemas.py holds AnalysisSource, GapAtPose, HarnessSummary and TerminalAnalysis with the rule that a harness summary exists exactly when the source is harness. analyst.py computes the summary from stored results: distinct completed poses, the smallest gap with its pose and result id, sorted violated result ids and the declared box, with no model text. terminal_analysis labels a model answer model, a measured run without one harness, and a run with no completed evaluation None with no summary, leaving its status unchanged. gateway.py adds requests_remaining: 1 and the final-answer instruction to the tool result built with one model request left, and leaves both out of every other result. record.py writes analysis_source and harness_summary. The prompt tells the model to answer when a tool result carries the notice. The turn cap stays 4.
  • Scripted records, in a scratch copy under runs/ that was removed afterwards: a run that never answered ended budget_exhausted with analysis_source: "harness" and a summary of 1 pose, smallest gap 0.799999999999998 mm at 45 degrees and -1.2 mm, result id res-7e78f36ae53fc1d7; a run that answered on request 4 ended completed with analysis_source: "model" and harness_summary: null; a run with no completed evaluation ended no_structured_output with both fields null.
  • Gate results: OK check-fast: 1197 tests passed, no native query issued, OK check-geometry: 165 native tests passed, OK check-agents: 353 tests passed; all 1719 collected tests belong to a gate. The floors are 1197, 165 and 353.
  • Mutants: EA01 (record drops the label), EA02 (zero-completed case removed) and EA03 (instruction replaced) were all killed, controls clean.

2026-12-02: issue 34, the registered evaluation protocol and runner (Kiro CLI)

  • Tool: Kiro CLI 3.8.1, model amazon-ergo, offline, starting at 285856f. Record: K28 in docs/KIRO_USAGE.md. No Groq call, no GROQ_API_KEY, and no live smoke run: the owner has not authorized one.
  • Test first: all 16 tests in tests/test_analyst_eval.py failed with FileNotFoundError: scripts/analyst_eval.py before the implementation. They pass after it.
  • Protocol: docs/analyst-evaluation-protocol.md committed on its own at 9037733abef416b767889770ff9af4a1f2710e2c, before any recorded run. It fixes 12 cells and 120 planned runs, the rungs, the fixed settings, the primary and secondary metrics, the not-scored causes and three replacements per cell, the Wilson intervals, the two baselines, the 160-run ceiling and registration.
  • Runner: scripts/analyst_eval.py exports a rung with git archive, stores the full SHA in every record, runs the live script on that export, tallies k of n with Wilson 95 percent intervals, counts zero-model-call, provider-error and rate-limit runs by cause, replaces them up to three times per cell, and prints the declared 7 by 3 grid and the seeded 100-seed uniform random baseline. It refuses a record whose started_at precedes the protocol's first commit, and it redacts the provider key from child output and written records.
  • Gate results: OK check-fast: 1328 tests passed, no native query issued, OK check-geometry: 183 native tests passed, OK check-agents: 381 tests passed; all 1892 collected tests belong to a gate. The floors are 1328, 183 and 381.
  • Mutants: TL01 to TL12 cover the not-scored causes, the measured-verdict tally, registration, the Wilson interval, the random seed, the replacement cap and key redaction. All 12 were killed, controls clean.
  • Smoke run: pending the owner's authorization. The issue's only live check is that run, so no scratch-copy live check was made.

2026-12-02: issue 49, the static web viewer (Kiro IDE)

  • Tool: Kiro IDE 1.5.49, model amazon-ergo, baseline 573afe9, offline except gh issue view 49. Record: K34 in docs/KIRO_USAGE.md.
  • Test first: the suite failed on the missing parseManifest, placePiece and useTheme modules before implementation. web/ now holds the Vite React TypeScript app, the typed manifest parser, the Three.js scene with orbit controls, the Cloudscape shell, the single tokens file and the relative-base loader. .kiro/specs/web-viewer/ holds WV-01 to WV-09 and WV-T01 to WV-T06. scripts/check-web.sh runs typecheck, build and tests, fails on zero tests and echoes the count. The nominal pose is committed under web/public/data/pose/. tests/test_repo_contract.py registers the new spec; no Python source changed.
  • Gates: OK check-web: 45 tests passed, typecheck and build clean, OK check-fast: 1436 tests passed, no native query issued, OK check-geometry: 190 native tests passed, OK check-agents: 411 tests passed; all 2037 collected tests belong to a gate. Floors unchanged.
  • Limit: the image tool could not render the screenshots, so the visual evidence is the CSS and DOM tests, the CDP layout and focus measurements and the pixel counts.

2026-12-02: issue 10, repair policy (Kiro IDE)

  • Tool: Kiro IDE 1.5.49, model amazon-ergo, baseline 1c4fd87, offline except two timed-out gh issue view 10 attempts; the owner supplied the issue text. No Groq call, no GROQ_API_KEY, no npm.
  • Spec: .kiro/specs/repair-policy/ holds RPL-01 to RPL-08, properties 1 to 8 and tasks RPL-T01 to RPL-T08. design.md records the Correctness review. The panel exposed no transcript to the agent in this session, so there is no captured panel output.
  • Code, test first: src/tolerance_arena/repair_policy.py holds the allowed bindings and ranges, the frozen validation set and its hash, the policy hash, the independent design-revision hash, the proposal scope, candidate validation, and the apply/undo ledger. The first test run failed with ImportError: cannot import name 'repair_policy'. The final tests/test_repair_policy.py has 41 tests, including the eight ordinary Hypothesis properties.
  • Evidence: tests/test_repair_policy.py -k property printed 8 passed, 33 deselected in 10.56s; bash scripts/check-fast.sh printed OK check-fast: 1605 tests passed, no native query issued; bash scripts/check-geometry.sh printed OK check-geometry: 198 native tests passed; bash scripts/check-agents.sh printed OK check-agents: 411 tests passed; all 2214 collected tests belong to a gate. Floors unchanged at 1564, 198 and 411.
  • Mutants: 53 PI mutants, all killed, controls clean (41 passed before and after). The first run had 10 BROKEN malformed replacements and three survivors. The malformed replacements were fixed, a redundant policy-level frozen-hash guard was removed, and a test now covers an undeclared binding that the original revision carries. A failure that really happened is recorded, not hidden.

2026-12-02: issue 13, counterexample reduction (Kiro IDE)

  • Tool: Kiro IDE 1.5.49, model amazon-ergo, offline except gh issue view 13, starting at 1c4fd87. Record: K37 in docs/KIRO_USAGE.md.
  • Test first: tests/test_reduce.py and tests/test_reduce_native.py failed with ImportError: cannot import name 'reduce'. The repository contract test failed with At index 2 diff: 'counterexample-reduction' != 'motion-variation' before the new spec was registered. The first fast run after implementation failed two tests: a non-reproducing case stopped at the step budget, and a reduced offset kept binary noise. Both were fixed without changing a requirement.
  • Code: reduce.py measures zero-anchored offset magnitudes at the stored angle through SearchEvaluator, charges each step to the credit ledger, stops at the first violation, and writes the reduced case with evidence.write_bundle. evidence.py adds the optional reduction.json and reduction-ledger.json and hashes both in the manifest. replay.py accepts old eight-file bundles, allows only the two optional files and hashes every listed file. ledger.py exposes the sealed ledger document. arena reduce BUNDLE [--step-mm 0.1] [--budget 12] exits 1 for a reduced violation and 2 for invalid input or a failed reduction.
  • Correctness: six properties reviewed. The fast property run is 3 passed, 54 deselected in 5.39s; the native property run is 1 passed, 2 deselected in 24.16s. A property case found that rounding could append the original twice; the duplicate guard is restored and pinned by test_the_grid_does_not_repeat_the_original_when_rounding_reaches_it.
  • Demo: the planted 45 degree, -1.2 mm search bundle reduced in 7 measured steps to -0.6 mm at 1.4 mm. The next smaller step -0.5 mm measured 1.5 mm and is indeterminate inside the ambiguity band. A fresh arena replay on the reduced bundle printed replay: match, stored_distance_mm: 1.3999999999999948, distance_difference_mm: 0.0, exit 1. Both outputs are quoted in K37.
  • Mutants and gates: 38 CR mutants, all killed, controls clean at 85 passed. OK check-fast: 1621 tests passed, no native query issued, OK check-geometry: 201 native tests passed, OK check-agents: 411 tests passed; all 2233 collected tests belong to a gate. The floors stay 1564, 198 and 411.
  • Failures: a stopped background child contaminated the first mutant batch; the final batch is clean. One draft left CR09 BROKEN with an IndentationError and CR10 SURVIVED; the rounding mutant now replaces the whole block and the callable test matches measure must be callable.

2026-12-03: issue 11, the local API and evidence viewer (Kiro IDE)

  • Tool: Kiro IDE 1.5.49, model amazon-ergo, baseline aa05eae, offline except gh issue view 11. Record: K41 in docs/KIRO_USAGE.md.
  • Spec: .kiro/specs/local-api-viewer/ holds LAV-01 to LAV-13, the design and LAV-T01 to LAV-T08. tests/test_repo_contract.py registers the directory. The design records the decided reading of "FastAPI routes": a standard library ThreadingHTTPServer on 127.0.0.1 and framework-free handlers, no new dependency.
  • Test first: tests/test_api.py failed at collection with ImportError: cannot import name 'api' from 'tolerance_arena' before the module existed. The web tests were then integrated against the new workbench and first failed on the syntax and behaviour faults listed in K41, then passed. The native test failed before its first passing run only on the result id prefix, which the model does not carry; the assertion was corrected to the real id.
  • Implementation: api.py adds the run registry, fixture verification, bounded search through search.run_search, findings from result.json or ledger.json, replay through replay.replay_bundle and a new replay.replay_verification_result that shares the replay comparison rule, cancellation through should_stop, scoped artifacts, restart recovery, evaluate with a per-client token bucket and one in-flight query, the loopback server with Host and Origin checks, a 256 KiB body cap and no CORS header, and static serving of web/dist. cli.py adds arena serve. The web app adds the run, replay and export controls, the units and bounds panel, same-origin API and artifact URLs, and witness markers placed by the manifest matrix alone. No dependency changed.
  • Latency: 200 requests per run, one loopback client, nominal and near-failure poses. Two final runs gave p50 20.888 ms and 19.323 ms, p95 31.416 ms and 24.591 ms, max 254.055 ms and 229.584 ms. The script is scripts/evaluate_latency.py. No live scrubbing claim is made.
  • Real proof: arena serve --port 0 --run-dir runs/proof11 on 127.0.0.1:41009; a fixture run run-61a9cefc0b3c, status completed, one finding at 0.7999999999999959 mm against 1.5 mm, replay match with distance difference 0.0, result.json and mesh-manifest.json artifacts, and evaluate returning result id 3574ba9393f6b03cdc3be186cac5b45a2992b853414be43c140398e239c898d7. Port 8765 was already in use and that failure is logged in K41.
  • Browser: Chrome 158 loaded the built app from the same server. CDP measured no horizontal overflow at 1440 by 900 (1425/1440) and 390 by 844 (390/390), dark and light, a 350 by 506 phone canvas and a 1280 by 558 desktop canvas, and a 2 px focus outline. Pillow counted no pure black or pure white pixels. The image tool cannot render screenshots.
  • Gates: OK check-fast: 1772 tests passed, no native query issued, OK check-geometry: 203 native tests passed, OK check-agents: 422 tests passed; all 2397 collected tests belong to a gate, OK check-web: 55 tests passed, typecheck and build clean. Floors unchanged.
  • Mutants: 22 AP mutants, all killed, controls 32 passed before and after. An earlier batch in a reused work directory ended NOT CLEAN with INVALID: VW10 and SURVIVED: VW14; the fresh runs/mut_11 run is the evidence.

2026-12-02: issue 54, assembly export and viewer (outside Kiro)

  • Tool: implemented outside Kiro, baseline 10afd38, offline. Record: docs/progress.md section "Assembly export and viewer (issue 54)" and docs/assembly-log/export-viewer.md.
  • Test first: tests/assembly/test_assembly_export.py failed at collection with cannot import name 'export' from 'tolerance_arena.assembly' (2 errors in 5.70s); tests/test_meshes_empty_file.py ran 10 failed, 1 passed in 1.89s before the no-vertex check; assembly-manifest.test.ts ran 47 failed | 1 passed (48) before the parser change. The other web test files were written before their sources but not run before them.
  • Code: assembly/export.py, the export-meshes subcommand of arena assembly, a re-wrap of shapes that have a parent and a no-vertex check in meshes.py, and in web/ the assembly pose parser, ?pose=NAME, part labels, the gap marker and three panels. Two samples are committed under web/public/data/ and both regenerate byte-identically.
  • Defects in merged code: a STEP solid exported as an empty glTF file, and the viewer converted each mesh twice, so the sample pins lay on their side. Screenshots before and after are in docs/assembly-log/.
  • Mutants and gates: 36 AX mutants, all killed, controls clean at 112 passed. A hand sweep of 47 web edits left four survivors, each fixed by a new test. OK check-fast: 2723 tests passed, no native query issued, OK check-geometry: 350 native tests passed, OK check-agents: 437 tests passed; all 3510 collected tests belong to a gate, OK check-web: 156 tests passed, typecheck and build clean. Floors rise to 2723 and 350; the agents floor stays 437.

2026-12-03: issue 16, reviewed repair proposal and paired replay (Kiro CLI)

  • Tool: Kiro CLI 3.8.1, model amazon-ergo, baseline b1da2bf, offline except gh issue view 16. No Groq call and no GROQ_API_KEY. Record: K44 in docs/KIRO_USAGE.md. The first session hit its 3 hour limit with the work uncommitted; this continuation fixed the two fast-gate failures, added the guard tests and RP mutants, ran the gates and the live replay, and committed.
  • Spec and code: .kiro/specs/repair-proposal/ holds RP-01 to RP-10, nine properties and RP-T01 to RP-T08. repair.py owns the frozen 90-case plan, the 200-credit cap with the 180-evaluation reservation, source screening, paired validation, the advisory guard, the sealed comparison bundle, offline replay and apply/undo over the issue 10 ledger. agents/repair.py is the restricted proposer with describe_problem, read_evidence and propose_revision; the model cannot evaluate, select, apply or write a measured number. verify.py, worker.py and bindings.py take an optional nominal obstacle radius defaulting to 46.0 mm, and cli.py adds repair-replay.
  • Test first: the continuation found the seed check behind the plan-hash message and an advisory-guard test that expected met for a candidate whose source case sits exactly at the 1.5 mm requirement. The seed check now runs first, and the test asserts the hard indeterminate verdict separately from the not_met guard below 1.55 mm. New tests pin every RP guard, including the internal plan, identity, budget, outcome, curve, bundle and replay invariants.
  • Gates: OK check-fast: 2127 tests passed, no native query issued, OK check-geometry: 266 native tests passed, OK check-agents: 439 tests passed; all 2832 collected tests belong to a gate. Floors 2127, 266 and 439.
  • Mutants: 52 new RP mutants, RP15 to RP67, with RP16 removed as equivalent. The first parallel chunks left RP21, RP24 and RP39 alive; each was a test that reached a later guard, a revalidated nested model or an earlier outcome branch. New tests killed all three. The exact --only '^RP[0-9]+$' run in runs/mut_16 killed all 66 RP mutants including the issue 14 set, controls clean.
  • Proof: a real-kernel scratch campaign made 182 measure calls, fixed the source case, reached candidate outcome no_failure_found and guard met, and replayed offline with "replay": "match", "complete": true, "model_required": false, "checks": 182 and no mismatches. A Kiro CLI 3.8.1 session in the scratch copy ran the same repair-replay command and printed the same JSON. The first Kiro attempt was refused by the PreToolUse guard because the scratch copy had no .venv/bin/python; a .venv symlink fixed it. The scratch copy was removed.
  • Limit: no live Groq repair-proposal run. The owner still has to run the real provider proposal, the live paired comparison and the live repair record with GROQ_API_KEY.

2026-12-03: community files and license notices (outside Kiro)

  • Tool: written outside Kiro, baseline 0e5f062, offline except gh api reads, license texts and package metadata. No model call and no key. Record: docs/progress.md section "Community files and license notices (release preparation)".
  • Test first: tests/test_notices.py ran red because THIRD_PARTY_NOTICES.md did not exist; tests/test_community_files.py flagged the unfilled CHANGELOG.md placeholders until they held command output. Both files are green with 12 and 25 tests.
  • Files: SECURITY.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md (Contributor Covenant 2.1), three issue templates, the pull request template, CITATION.cff (validated against the CFF 1.2.0 schema, date-released left out), THIRD_PARTY_NOTICES.md, CHANGELOG.md and ROADMAP.md. No GitHub workflow was added.
  • Inventory: 118 locked Python packages (65 runtime, 43 agents, 10 dev) and 47 locked web runtime packages, from installed metadata. Four Python packages install only on other platforms, so their rows come from PyPI metadata. The OCP wheel bundles OCCT and 25 system libraries without license texts, and one of them, libfreeimage, carries the tag "GPLv2 or GPLv3 or MPLv1.0". The owner decides whether that needs a separate review.
  • Mutations: 12 on the notice test (10 file edits, 2 lock-file edits) and 15 on the community test. All went red, and each file was restored from a pristine copy with equal hashes.
  • LICENSE: the GitHub API reports EUPL-1.2, and the file matches the joinup English text byte for byte.
  • Gates: OK check-fast: 3319 tests passed, no native query issued (floor 3282 to 3319), OK check-agents: 454 tests passed; all 4140 collected tests belong to a gate, OK check-geometry: 367 native tests passed. The first geometry run hit the 900 s hard timeout at a load average near 22 from other sessions on the machine (!! native tests hit the hard timeout (exit 124)). The rerun with GEOMETRY_TIMEOUT_S=3000 finished in 650 s.
  • Limits: the inventory is no legal review; the inbound-equals-outbound licensing line in CONTRIBUTING.md states an intent and no written policy; GitHub Discussions is off; arena --version does not exist.

2026-12-03: install routes and proof (outside Kiro)

  • Added install.sh, Containerfile, scripts/build-release.sh, scripts/check-install.sh, src/tolerance_arena/entry.py, docs/install.md and docs/install-readme-block.md. Tests first: tests/test_install_script.py ran 31 failed before the scripts existed.
  • Real runs in clean ubuntu:24.04, ubuntu:22.04 and fedora containers found the missing system libraries and the Python 3.15 pick; both are fixed and tested. Details in docs/progress.md, section "Install routes and proof".

2026-12-03: issue 17, public demo on GitHub Pages (outside Kiro)

  • Added docs/adr/0001-public-demo-on-github-pages.md, web/demo/, web/src/demo/, web/vite.demo.config.ts, web/public-demo/recorded/ (real kernel output from arena verify, arena sweep and arena export-meshes at 45 degrees and -1.2 mm), scripts/check_demo.py and scripts/check-demo.sh. The Pages workflow now builds and checks the demo and publishes it under demo/.
  • Tests: tests/test_demo_check.py (18), tests/test_demo_pages.py (11), one design-scan test and web/tests/demo-app.test.tsx (7). Mutations of the checker, the workflow and the page text each turned a test red; files were restored from a copy and compared by hash.
  • Found: the viewer source test refused the GitHub link, so the two links live in web/src/demo/links.ts, the one exempt file. The design scan read a leftover web/dist-demo, so the scan now skips that folder.
  • Limit: replay only, no live verify.

2026-12-03: README media, clips 2, 3, 5 and 6 (issue 57, outside Kiro)

  • Tool: implemented outside Kiro, clone runs/par/p57, baseline 63690ac, offline, no model call and no key. Record: docs/progress.md section "README media, part two (issue 57, 2026-12-03)" and docs/readme-media.md.
  • Test first: the eight recorder denylist cases (cat /etc/shadow, env, set, export -p and four more) and the two confirmation_sha256: ID cases ran red before the change that made them pass. The file grew from 84 to 174 tests.
  • Code: build.sh takes NAME.record.sh clips with a # needs: line, finds a Chromium browser and the playwright module, names every missing tool and runs flashes.awk on each GIF. clips.cjs is one Playwright script with three stories (viewer-pose, analyst, prose) that records a lossless DevTools screencast. New clip files: real-cad.tape, .setup, .expect; viewer-pose, analyst and prose-fixture as .record.sh and .expect.
  • Clips: real-cad (228 frames, 331 178 B), viewer-pose (174 frames, 1 583 150 B), analyst (162 frames, 244 864 B) and prose-fixture (144 frames, 209 275 B), plus the unchanged core-story. Total 2 696 341 B. Three full builds gave the same frame counts and durations. Clips 5 and 6 are playbacks of committed records of live runs and say so on screen and in the caption. Clip 4 (gap map) is not recorded: the viewer on this main has no gap-map view.
  • Defects found on the way: the first viewer caption said each slider position is a kernel query, while the scrubber keeps one query in flight (corrected); the recorder denylist let cat /etc/shadow through (hardened, test first); Playwright's VP8 video made the viewer GIF 4.96 MB (lossless screencast instead, 1.5 MB); vhs breaks terminal text at 80 columns, which hid a long expected line.
  • Mutants: 78 mutations of the media files, README block and clip scripts went red on the named test with the guard's own message, each restored from a pristine copy with equal tree hashes; 12 end-to-end cases ran the real build with real ffmpeg on synthetic clips and showed that a flashing clip, a leaked path, a missing expectation, a cut through motion, a length over 20 s, a secret-shaped string and the repository path are each refused, and that the same clip is published once the matching check is removed from a copy of build.sh.
  • Gates: OK check-fast: 3496 tests passed, no native query issued (floor 3406 to 3496), OK check-agents: 464 tests passed; all 4351 collected tests belong to a gate, OK check-docs: 19 pages, 0 broken links. No native code changed, so check-geometry.sh was not run.
  • Limits: nobody has read each clip at full size yet. The GIF bytes are not reproducible, only the frame count and duration. No live prose-to-fixture recording and no gap-map clip.

2026-12-03: analyst evaluation rung v4, offline harness (outside Kiro)

  • Tool: written outside Kiro in the scratch clone runs/par/ev4, baseline 15f5810, offline. No model call, no GROQ_API_KEY, no live run. Record: docs/progress.md section "Analyst evaluation rung v4: offline harness (2026-12-03)". The owner tags eval-v4 after the merge and runs the matrix.
  • Order: prompt first (its tests were written and run red before the text changed, then the V401 to V420 mutants), then the amendment in docs/analyst-evaluation-protocol.md (8ce0b26) before any code that writes a v4 record, then the ensemble generator, baselines, tally, claim rule, ledger, report section and runner, each with its tests written and shown red first. The generator and its tests were the one slip: the script was written before its tests, so it was moved aside, the tests were run red (FileNotFoundError) and the script came back.
  • Files: scripts/make_eval_ensemble.py, assets/evaluation/v4/ensemble.json, scripts/eval_baselines.py, scripts/run_analyst_matrix_v4.py, the v4 block of scripts/analyst_eval.py, the v4 section of scripts/make_evaluation_report.py and five test files (174 tests). The v0 to v3 part of docs/analyst-evaluation.md is byte-identical to its earlier text, pinned by SHA-256 in tests/test_evaluation_report.py.
  • Found: a -0.0 box end in the first ensemble (fixed in snap, test first); the V4 mutant run found 8 guards that no test pinned (V426, V429, V449, V457, V468, V470, V486, V489), each now pinned and the rerun killed all 92. The harness mutants BV02 to BV05 quoted deleted prompt text and were removed.
  • Finding for the owner: the 24-pose aspect-matched grid hits all 20 positive boxes of the registered ensemble, so the best baseline hit rate is 1.000 and the claim rule can only read "comparable or lower" (the lower Wilson bound of 60 of 60 is 0.940).
  • Gates: OK check-fast: 3801 tests passed, no native query issued (floor 3625 to 3801), OK check-agents: 495 tests passed; all 4687 collected tests belong to a gate (floor 487 to 495). No native code changed, so check-geometry.sh was not run.
  • Limits: the matrix has not run, so no v4 number exists. The false-alarm text screen can miss an unusual wording. The spend ledger is an estimate.