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
| Tool | Version | Work |
|---|---|---|
Claude Code (model claude-sonnet-5-5) | 2.1.332 | All of B0 on 2026-11-28: research, steering, spec, tests, code, scripts, docs |
| Kiro IDE | 1.5.49 installed | none |
| Kiro CLI | 3.7.0 installed | none |
| Codex | n/a | none |
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, sha2562923ed73...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 indocs/KIRO_USAGE.md: thetasks.mdcheckbox 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.mdcame 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.mdrecorded 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.
tests/test_repo_contract.pyfirst. It checks the.kirotree (front matter, hook schema, spec traceability), the license hash, that.kirois not gitignored, and that noCLAUDE.mdexists. Each validator has a bad-sample self-test so it cannot pass by accident.oracle.py. The formula imports onlymath. It rejects booleans, strings, NaN, infinity and out-of-range values.fixture.pyandnative.py. Reading build123d 0.13.0 showed thatShape.distance_toreturnsValue()without checkingIsDone(). A failed query would come back as a number, sonative.pycallsBRepExtrema_DistShapeShapedirectly and raisesNativeQueryErrorwith a reason code for each failure (decision ADR-003).verify.py. Fail-closed rules:satisfiedneeds a completed query, oracle agreement, a gap above 1.5 mm plus the band, and aseparatedrelation. I added requirement CV-04 criterion 5 (relation_unclassified) when the first table left one combination with no verdict.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.
docsis now excluded inpyproject.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 callsgit check-ignorehad nothing to ask. The harness now runsgit initin the copy with everyGIT_*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 usesroundand 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()accepts4_5and45. 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 bylines 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-tastefits an application screen. Its files were read, scanned for shell and network instructions (none) and installed at user level, byte-identical, pinned to commit3218793, markdown only. They are not part of this repository, which keeps.kiroas the only instruction tree. .kiro/steering/design.mdcarries the rules for Kiro, loaded only forweb/**/*. 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.pyso the supervisor sharesNativeMeasurementand the error types without importing a CAD library. A test runs a clean interpreter and checks that importingworkerloads neitherbuild123dnorOCP, with a positive control that importingnativeloads 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 sendsSIGKILL) hit the 300 s cap. The current harness holds 35Wmutants. - The first real-kernel crash test returned
worker_protocol_errorwhereworker_crashedwas right. The cause wasis_alive()lagging behind a multi-threaded OCCT exit (see the defects indocs/progress.md). Classifying by the exceptionrecv_bytesraised fixed it. - A probe of invalid solids showed OCCT returning finite gaps. The adapter now refuses them, and
tests/test_relations.pypins the five relation fixtures against the real kernel. arena doctorchecks 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 -ftwice, and both times the search matched its own shell. Exact command-line and/proc/<pid>/exematches 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-harness0.6.0 andstrands-agents1.68.0) in a scratch environment first. Both resolved.strands-agentsdoes not pullopenaiunless theopenaiextra is named, and the OpenAI client 3.60.0 useshttpx2, 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
--pythonchoosing an interpreter that has the agents group. The first agent batch ran 77 mutants and kept 2 survivors:AGT05was replaced by a stronger mutant andAGF12proved 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 159AGmutants. scripts/analyst_live_run.pyis 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:ClearanceResultandSweepResultcheck 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. ASettingsmodel holds the three named numbers.evaluaterevalidates the scenario (amodel_constructinstance with an out-of-domain value is refused) and turns aFixtureErrorinto anindeterminateresult with reason codefixture_check_failed. Failure text is cut to printable ASCII and 200 characters innative_detail.classify_clearancereturnsimplausible_distancefor a distance that is not finite.kernel_types.py:NativeMeasurementrefuses 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.pyandcli.py: the report is a typed structure,arena doctor --jsoncarries aworkerblock, and a failure to close the worker prints a warning and keeps the verdict.- Gates:
check-fast.shalso runsmypy --strictonsrc,check-agents.shalso fails when a collected test belongs to no gate, and each gate has a floor on its test count. A suite-wide guard intests/conftest.pyfails 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(sha256be637eba...39ff, byte-identical to the owner's Downloads file; the v1.3 sha was2923ed73...1e9a). v1.4 is dated 28 November 2026. It fixes Groq as the only provider and replaces the assembledstrands-harnesswith the core Strands SDK, instantiated directly withstrands.Agent. It listsopenai/gpt-oss-120bandopenai/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-harnessleftpyproject.tomlanduv.lock.factory.pybuildsstrands.Agentdirectly.provider.pyallows one model, takesreasoning_effortfromnone,default,low,mediumorhigh(defaultlow, untested), sendsreasoning_formathiddenand refusesinclude_reasoningin addition to the parameters it already refused. A 429 ends a run asprovider_rate_limitedwith sanitised retry and reset metadata, and the run record carries it.httpx2stays, becauseopenai3.60.0 requires it while v1.4 nameshttpx.- The mutation harness held 273 mutants at this point (114 outside the agent layer and 159
AGmutants). Its result is indocs/progress.md. - Gate results on 2026-11-30:
check-fast.sh624 passed,check-geometry.sh160 passed,check-agents.sh309 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).
W10hit the 300 s cap because it ran the whole suite with--maxfail=4and 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.kirofiles, the README anddocs/progress.mdwith 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.exampleexists and is not hidden by.gitignore;httpx2is declared in the agents group. Eleven mutants (F04,F05,C13toC16,AGP15toAGP19) cover the new guards and were killed. - Doc changes: README overclaims about the model, tokens and worker text, the verdict table, stale
AGENTS.mdand steering lines, a design property and a role row. The departures that stay open are listed under Known limits indocs/progress.md. - Gate results:
check-fast.sh633 passed,check-geometry.sh161 passed,check-agents.sh313 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.pyfails 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:
ParameterBoxandInvalidBoxrefuse an empty, non-finite, non-real or out-of-fixture box.Gatewaytakes a box, describes it indescribe_problemand answers a scenario outside it asinvalidwith a credit charged and no kernel call. The run record storesparameter_box, and the baseline grid is seven angles by three offsets of the box.scripts/analyst_live_run.pytakes--angle-rangeand--offset-rangeand exits 2 on an unusable box before anything starts. With no box the output equals the earlier output. - Gate results:
check-fast.sh657 passed,check-geometry.sh161 passed,check-agents.sh332 passed, 1150 tests in all. 21 new mutantsAGX29toAGX49, 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 withKeyError: 'harness_summary', and the prompt test failed withAssertionError: assert 'requests_remaining' in ...before the implementation existed. The linked property test failed withKeyError: 'analysis_source'when run with--runxfail. - Code changes:
schemas.pyholdsAnalysisSource,GapAtPose,HarnessSummaryandTerminalAnalysiswith the rule that a harness summary exists exactly when the source isharness.analyst.pycomputes 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_analysislabels a model answermodel, a measured run without oneharness, and a run with no completed evaluationNonewith no summary, leaving its status unchanged.gateway.pyaddsrequests_remaining: 1and the final-answer instruction to the tool result built with one model request left, and leaves both out of every other result.record.pywritesanalysis_sourceandharness_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 endedbudget_exhaustedwithanalysis_source: "harness"and a summary of 1 pose, smallest gap 0.799999999999998 mm at 45 degrees and -1.2 mm, result idres-7e78f36ae53fc1d7; a run that answered on request 4 endedcompletedwithanalysis_source: "model"andharness_summary: null; a run with no completed evaluation endedno_structured_outputwith 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) andEA03(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, noGROQ_API_KEY, and no live smoke run: the owner has not authorized one. - Test first: all 16 tests in
tests/test_analyst_eval.pyfailed withFileNotFoundError: scripts/analyst_eval.pybefore the implementation. They pass after it. - Protocol:
docs/analyst-evaluation-protocol.mdcommitted on its own at9037733abef416b767889770ff9af4a1f2710e2c, 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.pyexports a rung withgit archive, stores the full SHA in every record, runs the live script on that export, tallieskofnwith 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 whosestarted_atprecedes 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:
TL01toTL12cover 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 indocs/KIRO_USAGE.md. - Test first: the suite failed on the missing
parseManifest,placePieceanduseThememodules 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.shruns typecheck, build and tests, fails on zero tests and echoes the count. The nominal pose is committed underweb/public/data/pose/.tests/test_repo_contract.pyregisters 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 10attempts; the owner supplied the issue text. No Groq call, noGROQ_API_KEY, nonpm. - Spec:
.kiro/specs/repair-policy/holds RPL-01 to RPL-08, properties 1 to 8 and tasks RPL-T01 to RPL-T08.design.mdrecords 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.pyholds 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 withImportError: cannot import name 'repair_policy'. The finaltests/test_repair_policy.pyhas 41 tests, including the eight ordinary Hypothesis properties. - Evidence:
tests/test_repair_policy.py -k propertyprinted8 passed, 33 deselected in 10.56s;bash scripts/check-fast.shprintedOK check-fast: 1605 tests passed, no native query issued;bash scripts/check-geometry.shprintedOK check-geometry: 198 native tests passed;bash scripts/check-agents.shprintedOK check-agents: 411 tests passed; all 2214 collected tests belong to a gate. Floors unchanged at 1564, 198 and 411. - Mutants: 53
PImutants, 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 indocs/KIRO_USAGE.md. - Test first:
tests/test_reduce.pyandtests/test_reduce_native.pyfailed withImportError: cannot import name 'reduce'. The repository contract test failed withAt 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.pymeasures zero-anchored offset magnitudes at the stored angle throughSearchEvaluator, charges each step to the credit ledger, stops at the first violation, and writes the reduced case withevidence.write_bundle.evidence.pyadds the optionalreduction.jsonandreduction-ledger.jsonand hashes both in the manifest.replay.pyaccepts old eight-file bundles, allows only the two optional files and hashes every listed file.ledger.pyexposes 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 is1 passed, 2 deselected in 24.16s. A property case found that rounding could append the original twice; the duplicate guard is restored and pinned bytest_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
indeterminateinside the ambiguity band. A fresharena replayon the reduced bundle printedreplay: match,stored_distance_mm: 1.3999999999999948,distance_difference_mm: 0.0, exit 1. Both outputs are quoted in K37. - Mutants and gates: 38
CRmutants, 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
BROKENwith anIndentationErrorand CR10SURVIVED; the rounding mutant now replaces the whole block and the callable test matchesmeasure 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 indocs/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.pyregisters the directory. The design records the decided reading of "FastAPI routes": a standard libraryThreadingHTTPServeron127.0.0.1and framework-free handlers, no new dependency. - Test first:
tests/test_api.pyfailed at collection withImportError: 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.pyadds the run registry, fixture verification, bounded search throughsearch.run_search, findings fromresult.jsonorledger.json, replay throughreplay.replay_bundleand a newreplay.replay_verification_resultthat shares the replay comparison rule, cancellation throughshould_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 ofweb/dist.cli.pyaddsarena 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/proof11on127.0.0.1:41009; a fixture runrun-61a9cefc0b3c, statuscompleted, one finding at 0.7999999999999959 mm against 1.5 mm, replaymatchwith distance difference 0.0,result.jsonandmesh-manifest.jsonartifacts, and evaluate returning result id3574ba9393f6b03cdc3be186cac5b45a2992b853414be43c140398e239c898d7. 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
APmutants, all killed, controls 32 passed before and after. An earlier batch in a reused work directory endedNOT CLEANwithINVALID: VW10andSURVIVED: VW14; the freshruns/mut_11run is the evidence.
2026-12-02: issue 54, assembly export and viewer (outside Kiro)
- Tool: implemented outside Kiro, baseline 10afd38, offline. Record:
docs/progress.mdsection "Assembly export and viewer (issue 54)" anddocs/assembly-log/export-viewer.md. - Test first:
tests/assembly/test_assembly_export.pyfailed at collection withcannot import name 'export' from 'tolerance_arena.assembly'(2 errors in 5.70s);tests/test_meshes_empty_file.pyran10 failed, 1 passed in 1.89sbefore the no-vertex check;assembly-manifest.test.tsran47 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, theexport-meshessubcommand ofarena assembly, a re-wrap of shapes that have a parent and a no-vertex check inmeshes.py, and inweb/the assembly pose parser,?pose=NAME, part labels, the gap marker and three panels. Two samples are committed underweb/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
AXmutants, 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 noGROQ_API_KEY. Record: K44 indocs/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 andRPmutants, 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.pyowns 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.pyis the restricted proposer withdescribe_problem,read_evidenceandpropose_revision; the model cannot evaluate, select, apply or write a measured number.verify.py,worker.pyandbindings.pytake an optional nominal obstacle radius defaulting to 46.0 mm, andcli.pyaddsrepair-replay. - Test first: the continuation found the seed check behind the plan-hash message and an advisory-guard test that expected
metfor a candidate whose source case sits exactly at the 1.5 mm requirement. The seed check now runs first, and the test asserts the hardindeterminateverdict separately from thenot_metguard below 1.55 mm. New tests pin everyRPguard, 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
RPmutants, 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 inruns/mut_16killed all 66RPmutants 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_foundand guardmet, and replayed offline with"replay": "match","complete": true,"model_required": false,"checks": 182and no mismatches. A Kiro CLI 3.8.1 session in the scratch copy ran the samerepair-replaycommand and printed the same JSON. The first Kiro attempt was refused by thePreToolUseguard because the scratch copy had no.venv/bin/python; a.venvsymlink 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 apireads, license texts and package metadata. No model call and no key. Record:docs/progress.mdsection "Community files and license notices (release preparation)". - Test first:
tests/test_notices.pyran red becauseTHIRD_PARTY_NOTICES.mddid not exist;tests/test_community_files.pyflagged the unfilledCHANGELOG.mdplaceholders 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-releasedleft out),THIRD_PARTY_NOTICES.md,CHANGELOG.mdandROADMAP.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 withGEOMETRY_TIMEOUT_S=3000finished in 650 s. - Limits: the inventory is no legal review; the inbound-equals-outbound licensing line in
CONTRIBUTING.mdstates an intent and no written policy; GitHub Discussions is off;arena --versiondoes 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.mdanddocs/install-readme-block.md. Tests first:tests/test_install_script.pyran 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 fromarena verify,arena sweepandarena export-meshesat 45 degrees and -1.2 mm),scripts/check_demo.pyandscripts/check-demo.sh. The Pages workflow now builds and checks the demo and publishes it underdemo/. - Tests:
tests/test_demo_check.py(18),tests/test_demo_pages.py(11), one design-scan test andweb/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 leftoverweb/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.mdsection "README media, part two (issue 57, 2026-12-03)" anddocs/readme-media.md. - Test first: the eight recorder denylist cases (
cat /etc/shadow,env,set,export -pand four more) and the twoconfirmation_sha256:ID cases ran red before the change that made them pass. The file grew from 84 to 174 tests. - Code:
build.shtakesNAME.record.shclips with a# needs:line, finds a Chromium browser and the playwright module, names every missing tool and runsflashes.awkon each GIF.clips.cjsis 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,analystandprose-fixtureas.record.shand.expect. - Clips:
real-cad(228 frames, 331 178 B),viewer-pose(174 frames, 1 583 150 B),analyst(162 frames, 244 864 B) andprose-fixture(144 frames, 209 275 B), plus the unchangedcore-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/shadowthrough (hardened, test first); Playwright's VP8 video made the viewer GIF 4.96 MB (lossless screencast instead, 1.5 MB);vhsbreaks 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
ffmpegon 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 ofbuild.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, socheck-geometry.shwas 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, noGROQ_API_KEY, no live run. Record:docs/progress.mdsection "Analyst evaluation rung v4: offline harness (2026-12-03)". The owner tagseval-v4after the merge and runs the matrix. - Order: prompt first (its tests were written and run red before the text changed, then the
V401toV420mutants), then the amendment indocs/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 ofscripts/analyst_eval.py, the v4 section ofscripts/make_evaluation_report.pyand five test files (174 tests). The v0 to v3 part ofdocs/analyst-evaluation.mdis byte-identical to its earlier text, pinned by SHA-256 intests/test_evaluation_report.py. - Found: a
-0.0box end in the first ensemble (fixed insnap, test first); theV4mutant 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 mutantsBV02toBV05quoted 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, socheck-geometry.shwas 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.