RefCov demo

How much of your reference material did the AI actually read?

Without RefCov, 13 of 16 runs wrote their code without opening any of the registered guides. With RefCov, all 16 runs read every required unit before they wrote.

Without RefCov: lit cells opened a registered guide, grey cells opened none (3 of 16 lit)
  1. Run 1: opened a registered guide
  2. Run 2: opened a registered guide
  3. Run 3: opened a registered guide
  4. Run 4: no registered guide opened
  5. Run 5: no registered guide opened
  6. Run 6: no registered guide opened
  7. Run 7: no registered guide opened
  8. Run 8: no registered guide opened
  9. Run 9: no registered guide opened
  10. Run 10: no registered guide opened
  11. Run 11: no registered guide opened
  12. Run 12: no registered guide opened
  13. Run 13: no registered guide opened
  14. Run 14: no registered guide opened
  15. Run 15: no registered guide opened
  16. Run 16: no registered guide opened
With RefCov: every lit cell read every required unit (16 of 16 lit)
  1. Run 1: read every required unit
  2. Run 2: read every required unit
  3. Run 3: read every required unit
  4. Run 4: read every required unit
  5. Run 5: read every required unit
  6. Run 6: read every required unit
  7. Run 7: read every required unit
  8. Run 8: read every required unit
  9. Run 9: read every required unit
  10. Run 10: read every required unit
  11. Run 11: read every required unit
  12. Run 12: read every required unit
  13. Run 13: read every required unit
  14. Run 14: read every required unit
  15. Run 15: read every required unit
  16. Run 16: read every required unit

Scope: five front-end tasks, claude-haiku-5.5 on kiro-cli 3.3.0 (the version of the first task is inferred), three or four runs per group per task. These are descriptions of 16 runs, not statistics. Sources: front-end trial, section 5 (first task) and front-end extension trial, section 7 (all five tasks).

The same prompt and the same cheap model, with and without RefCov

Both runs used claude-haiku-5.5 on the first task: an account settings page with a confirm dialog and form validation. Both are reruns from 15 November. Each side replays the events in the order the run produced them.

Motion is off because your system asks for reduced motion. Each replay shows its final state.

Without RefCov

Loading the replay.

With RefCov

Loading the replay.

Guide practices in each run's index.html
PracticeWithout RefCovWith RefCov
closedby="any": a click outside closes the dialognot usedused
:user-invalid: the error shows after the user edits the fieldnot usedused
commandfor: a button opens the dialognot usednot used
overscroll-behavior: the page behind the dialog does not scrollnot usedused

With RefCov, the run used three of the four practices and did not use commandfor. The table shows that as recorded.

How the guides were picked: for this first task, Claude picked the eight guides and knew which four practices the check would look for. For the four later tasks, the guide pack's own search rules picked the guides.

Five front-end tasks

Each task ran three or four times per group with claude-haiku-5.5 on kiro-cli 3.3.0. "Practices" are the guide patterns that each task's check looks for: four for the first task, three for the FAQ accordion, five for the dropdown menu, and three each for the dark-mode switch and the long article page.

Results per task, all with claude-haiku-5.5
Task Without RefCov: runs that opened a registered guide Without RefCov: practices used With RefCov: runs that read every required unit With RefCov: practices used Notes
Account settings page (first trial) 0 of 4 0 / 16 4 of 4 (82 units) 14 / 16 Version inferred. Source: front-end trial, section 5.
FAQ accordion 0 of 3 0 / 9 3 of 3 (117 units) 7 / 9 The gate blocked two runs mid-read; both read the rest of the units, then wrote. One run chose hidden="until-found" over details after reading.
Dropdown menu 0 of 3 0 / 15 3 of 3 (92 units) 5 / 15 After reading, two runs built the menu in JavaScript (a conservative choice). The gate blocked one run.
Dark-mode switch 2 of 3 7 / 9 3 of 3 (101 units) 7 / 9 Two runs without RefCov opened the dark-mode guide themselves. The gate blocked one run.
Long article page 1 of 3 2 / 9 3 of 3 (54 units) 6 / 9 After reading, one run used JavaScript for the progress bar, the header and the sticky headings (a conservative choice).
All five tasks 3 of 16 runs 9 / 58 16 of 16 runs 39 / 58 13 of 16 runs opened no guide without RefCov.

Under the rule written before the runs, two of the five tasks show a clear difference: the first task and the FAQ accordion. In the dropdown and article tasks, the runs with RefCov read the guides and then several chose conservative browser-support code. In the dark-mode task, the runs without RefCov read the guide themselves.

Not in this table: the automatic model selection and claude-sonnet-5.5 groups of the first trial. Their results are in front-end trial, section 3. The claude-haiku-5.5 numbers for the first task are in section 5. Totals: front-end extension trial, section 7, and the story document, section 2.

The gate: a write waits until the required units are read

Run G-01 (folder gis-20261115-213112) is the first formal run of the group where only the gate was on. That group had the per-message status line removed, so the gate was the only RefCov part active. The question asks for a total area, and the answer goes into answer.md.

Gate message, translated: Write blocked by the RefCov gate: required units not read yet.

Loading the replay.

answer.md written. Graded outside this repository: within ±3% of the reference answer.

Without RefCov, the model also looked up the dictionary on this dataset. RefCov adds a count you can check, and here the answer file could not be written until all 24 units had been read.

The answer's number is not shown. Three GIS rounds did not show that reading changes the answer.

Splitting material into units

The video app cuts a reference video into shots. The GIS app splits a layer's manifest and a data dictionary into units.

Video: 46 shots

Loading the shot strip.

    0.0 s

    Shots are split at hard cuts. Soft transitions stay inside one shot, so this does not claim that every frame was read. No key frames or on-screen text are shown.

    GIS: 24 units

    Loading the field units.

    Layer manifest

      NYC building dictionary

        We used it on ourselves

        From 15 November, claude-haiku-5.5 built the layer-coverage app, this page and the install layer under RefCov, which required the specs and data notes to be read before each write. The ledger below is the project's own record, one row per piece of work. Credits show as unknown where the Kiro panel did not show the number.

        48 pieces of work, all with claude-haiku-5.5. The full-suite test count went from 742 passing to 996.

        Show the build ledger, row by row
        Build ledger, rows in order, copied from the repository's ledger file
        Date Task Model Credits Tests Units read before writing Gate blocks
        2026-11-15Take over RefCov: read the docs, check the MCP report, draft the scope config and registration commands for the user to run; create the branch and this ledgerclaude-haiku-5.5unknownno targeted tests; full suite 742 passed0 (no MCP unit reads this session; the report showed 114/114 earlier)2 (two shell commands stopped by the protection check; not bypassed)
        2026-11-15Checkpoints 3 and 4: three wording fixes (team conventions marked, 4 runs per group, browser limit); night DEVLOG entry; read the 36 newly registered units before merging mainclaude-haiku-5.5unknownno targeted tests; full suite 742 passed37 (session total: 1 earlier plus 36 new)0
        2026-11-15Merge main (two documents only, no conflicts)claude-haiku-5.5unknownno targeted tests; full suite 742 passed37 (as above)0
        2026-11-15Checkpoint 3 decision written into the simplified setup design, section 0claude-haiku-5.5unknownno targeted tests; full suite 742 passed37 (as above)0
        2026-11-15Setup step 1: store reads [sources]; sources_problems; six property tests (S1–S6)claude-haiku-5.5unknown6 targeted tests pass; full suite 748 passed37 (as above)0
        2026-11-15Setup step 2: gen_id, plan_sync and sync in api; gather's automatic source rule; report lines for pending sync; seven tests (Y1–Y7)claude-haiku-5.5unknown7 targeted tests pass; full suite 755 passed (one report-field assertion failed first; fixed)37 (as above)0
        2026-11-15Setup step 3: refcov sync subcommand (user only); add rejects f- IDs; sync added to USER_ONLY in the CLI and the hook; protection test expectations updated; two tests (Y8–Y9)claude-haiku-5.5unknown2 targeted tests pass; full suite 757 passed37 (as above)1 (the commit message named the subcommand; reworded before committing)
        2026-11-15Setup step 4: integrations/kiro/setup.py (standalone, standard library only); --root for the hook; eight tests (U1–U7 and two properties)claude-haiku-5.5unknown8 targeted tests pass; full suite 765 passed (a subprocess output encoding problem was fixed)37 (as above)1 (the commit message named the config file; reworded before committing)
        2026-11-15Setup step 5: README Setup section rewritten in English (editable install, run setup.py, list material under [sources], sync)claude-haiku-5.5unknownfull suite 765 passed37 (as above)0
        2026-11-15Performance change after review: the moved-out check compares only the origin recorded in the manifest; no repository walk, no material reads; tests Y10 and Y11; design 1.5 rewordedclaude-haiku-5.5unknown2 targeted tests pass; full suite 767 passed37 (as above)0
        2026-11-15README Setup gets two sentences: setup writes the template only when there is no refcov.toml; the hooks point at the clone, so re-run setup after moving itclaude-haiku-5.5unknownfull suite 767 passed37 (as above)0
        2026-11-15GIS requirements draft (checkpoint 1): seven requirements, 13 cited units; check-spec 0 phantom, 0 invalid, 0 unconverted; all 82 units of the scope read through MCP before writingclaude-haiku-5.5unknownfull suite 767 passed82 (session total, whole scope)0
        2026-11-15Requirements second draft: three changes after user review (6.3 standard library only; 7.2 standing rule; new requirement 8 for the demo); check-spec 0 phantom, 0 invalid, 0 unconverted; Bayside code distribution matches step 0claude-haiku-5.5unknownno targeted tests; full suite 767 passed82 (as above; no new reads)1 (a shell command that read the records was stopped by the protection check; not bypassed)
        2026-11-15Task 1: apps/layer-coverage/stats.py (standard library only) and tests/test_layer_stats.py; one @given each for P1–P5 (200 examples) plus seven fixed examples; 12 in allclaude-haiku-5.5unknown12 targeted tests pass; full suite 779 passed82 (as above)0
        2026-11-15Task 2: apps/layer-coverage/adapter.py (name layer, three kinds, import guard); 22 tests (16 adapter tests including property A1, 3 import guard, 3 standard library)claude-haiku-5.5unknown22 targeted tests pass; full suite 801 passed82 (as above)0
        2026-11-15Task 3: apps/layer-coverage/build.py (pure function build_manifest; command line reads and writes only; generated manifest passed through the adapter first); 18 tests. The first run had 12 failures: the alias check treated SHAPE_AREA and shape_area as two rows with the same name; fixedclaude-haiku-5.5unknown18 targeted tests pass; full suite 820 passed82 (as above)0
        2026-11-15Task 4: apps/layer-coverage/fetch.py (paging; checks the total and group counts before writing; retries wait 2, 4 and 8 seconds; output inside the repository refused before any network call; --check); 12 tests, one more standard-library checkclaude-haiku-5.5unknown12 targeted tests pass; full suite 833 passed82 (as above)0
        2026-11-15Task 5: cli.py (fields lists field units only; show prints a unit's body; read-only; does not import refcov) and an English README.md (mechanism and limits only); design section 8 aligned with requirement 6.1; 14 tests (CLI 8, standard library 6)claude-haiku-5.5unknown14 targeted tests pass; full suite 842 passed82 (as above)0
        2026-11-15Live run (task 6): fetch.py --check against the live interface, 6018 rows, group counts match step 0; build.py makes the manifest from the local extract and the live dictionary (17 units); three manifest regression testsclaude-haiku-5.5unknown3 targeted tests pass; full suite 845 passed82 (this step also read one data-quality unit through MCP; still within 82)0
        2026-11-15Wrote design.md and tasks.md; two Attribute-table units of the dictionary read through MCP; read-only check of Bayside's fields and code distributionclaude-haiku-5.5unknownno targeted tests; full suite 767 passed82 (two dictionary units read again through MCP; still within 82)0
        2026-11-15Requirements completed: 1.4 README use terms not yet read; 2.3 units for fields missing from the dictionary; 3.1, 3.2 and 3.3 coordinate-system and scope units quote the dictionary's data-quality section; manifest regenerated; lookup accepts two row styles; a missed ledger row addedclaude-haiku-5.5unknownfull suite 850 passed (23 build tests)82 (one data-quality unit read again through MCP; still within 82)0
        2026-11-15Checkpoint 2 stop: ledger rows for f73a639 and 9c49d99 added; DEVLOG checkpoint entry; demo not run; kiro-cli not startedclaude-haiku-5.5unknownfull suite 850 passed82 (as above; no new reads in this step)0
        2026-11-15Design changes after review: templates renamed GIS-template and GIS-N-template; template gains geojson; all groups use identical files; group N added; grading script written outside the repository and run; task 7 done; task 8 changed to probe, then set the count, then the formal runclaude-haiku-5.5unknownfull suite 850 passed82 (as above; no new reads in this step)0
        2026-11-15Sync (written by Claude, forwarded by the user): GIS trial results in design section 10 (probe, count, reference IDs, the absolute path setup wrote); task 8 ticked; product.md gains "do not say" and "must state" items; main evidence changed to five tasks; three outdated claims correctedclaude-haiku-5.5unknownfull suite 850 passed82 (as above; no new reads in this step)0
        2026-11-16Corrections after Claude's review of 4d945e8: gate order, English summary, FAQ added to the conservative-choice note, first-trial labels, design 10.4 kiro-cli check sentence; ledger row for 4d945e8 addedclaude-haiku-5.5unknownfull suite 850 passed82 (as above; no new reads in this step)0
        2026-11-16Demo-page requirements first draft (16 requirements, no site/ folder yet): check-spec 0 phantom, 0 invalid, 9 unconvertedclaude-haiku-5.5unknownfull suite 850 passed82 (report check: 82 this session; earlier counts not recorded separately)0
        2026-11-16Demo-page requirements revised per Claude's review of 878deaa: 8.6, replay version, 2.2, 2.5, 3.5, source line 5, 6.3, 7.1, 9.5; check-spec 0 phantom, 0 invalid, 9 unconvertedclaude-haiku-5.5unknownfull suite 850 passed82 (report check: 82 this session; earlier counts not recorded separately)0
        2026-11-17Demo-page design draft and source conversion: six project documents and app-positioning cited as [ref:…]; check-spec 0 phantom, 0 invalid, 0 unconvertedclaude-haiku-5.5unknownfull suite 850 passed142 (check: 142 of 384 this session)0
        2026-11-17Converter script, its tests and the four replay JSON files: standard library only; 17 tests including one property testclaude-haiku-5.5unknown17 targeted tests pass; full suite 867 passed316 (report check: session total; earlier counts not recorded separately)0
        2026-11-17Display names for read events (unit ID with layout tags and entities removed, hyphens as spaces, cut to 80 characters); G-01 and WB-H-03 JSON regenerated; two converter tests addedclaude-haiku-5.5unknown19 converter tests pass; full suite 869 passed316 (report check: session total; earlier counts not recorded separately)0
        2026-11-17Demo page: index.html, style.css and app.js (English, eight sections); three page test files (page 12, numbers 9, contrast 3); Pages workflow pages.yml uploads site/ only; design sections 3.2 and 3.4 define the display field; design section 8 steps 4 and 5 doneclaude-haiku-5.5unknown24 new tests pass; full suite 893 passed316 (report check: session total; earlier counts not recorded separately)1 (a shell command that read the RefCov log was stopped by the protection check; the report tool was used instead)
        2026-11-17Steering: product.md says RefCov records workspace MCP reads without saying which agent made them; tech.md adds a rule that required units are read by the writing agent through MCP, not by sub-agentsclaude-haiku-5.5unknownno targeted tests; full suite 893 passed316 (report check: session total; the 82 guide units read before this step did not change the count)0
        2026-11-17Review fixes: 82 guide units read and the page checked against them (pause control, press state, keyboard-reachable table regions, flash on reveal); nine page text changes; bold markers removed from display names and the four JSON files regenerated (only the G-01 table-of-contents name changed)claude-haiku-5.5unknownsite and converter tests pass; full suite 904 passed316 (report check: session total; the 82 catch-up reads did not change the count)0
        2026-11-17Terms of use and source line for layer-coverage: three terms bullets in its README; one source line in the manifest (bayside.fields.md regenerated, one line added); a Sources and licenses footer line with a test; demo-page requirement 9.5 marked completed; ledger row for dda0f07claude-haiku-5.5unknownfull suite 905 passed384 (strict check from the commit message; session count not recorded separately)0 (not checked separately; the DEVLOG entry records no block)
        2026-11-17Spec and design for layer 1 (checkpoint 3): requirements (8) and design (11 sections) under .kiro/specs/easy-install; ledger row for 9239c79 and its matching page rowclaude-haiku-5.5unknownfull suite 905 passed4 (MCP reads this session; hook report 4 of 384; 384 of 384 historically)1 (a protection check stopped one shell command whose text named the config file; recorded in the DEVLOG)
        2026-11-17Spec revision after the checkpoint 3 review: requirements 1.4, 2.6, 3.3, 3.6, 5.2, 5.10, 6.2 to 6.8 and 8.1 to 8.6 changed; design section 2 marked decided; ledger row and page row for d4ba991claude-haiku-5.5unknownfull suite 905 passed4 (MCP reads this session; hook report 4 of 384; 384 of 384 historically)0 (the DEVLOG entry for this piece records no block)
        2026-11-17Implementation: forwarding module for init and doctor (the command line imports only it); init, and a read-only doctor; protection rules that recognise full paths and quotes; a clean-install acceptance test (skipped by default); setup rewritten as a wrapper around init; README install steps and limits rewrittenclaude-haiku-5.5unknownfull suite 949 passed (the 9 clean-install checks passed separately when run on this commit)4 (MCP reads this session; hook report 4 of 384; 384 of 384 historically)0 (the DEVLOG entry for this piece records no block)
        2026-11-17README: install with uv tool install, the configuration step, doctor, the limits of the install and the protection paragraph rewritten; status opens with 2026-11-17; layout table updated; ledger row for b85af88 and its page rowclaude-haiku-5.5unknownfull suite 949 passed (the 9 clean-install checks as for the previous piece)4 (same as the previous piece)1 (a commit message named a user-only subcommand; the text match was a false positive, nothing was run, and the wording was changed before committing)
        2026-11-17Ledger row for 4e2167c, its page row and summary; a DEVLOG record of a false-positive protection block on a commit message; the DEVLOG wording made accurate; no code changedclaude-haiku-5.5unknownfull suite 949 passed (the 9 clean-install checks ran on b85af88; no code changed since, so the result stands)4 (same as the previous piece)0 (the DEVLOG entry for this piece records no block; the false positive is recorded on the 4e2167c row)
        2026-11-17README status: removed the required-set, pass/fail and five-hooks items (already built) and the earlier-status paragraph; ledger row for 6357d70 added; demo page ledger syncedclaude-haiku-5.5unknownno targeted tests; full suite 949 passed4 (same as the previous piece)0 (the DEVLOG entry for this piece records no block)
        2026-11-17Acceptance record and demo page fixes: README trust step and install address on main; section 7 in four steps; extra space above the replay columns removed (margin reset on the column sections, measured at two widths); design section 10 items 1 and 2 marked verified; ledger row for 47050d2 addedclaude-haiku-5.5unknown2 targeted tests pass (the external-link check and the new section 7 test); full suite 950 passed0 (no MCP unit reads in that session)1 (a shell command that tried to read RefCov records was stopped by the protection check; not bypassed)
        2026-11-17Merge main by fast-forward: only the two permission-test documents came in; no merge commitclaude-haiku-5.5unknownno targeted tests; full suite 950 passed0 (no MCP reads yet in the session when the merge was made)0
        2026-11-17Layer 2 spec, first version (proposals and apply, with eight Kiro permission units read through MCP): check-spec 0 phantom, 0 invalid, 5 unconverted; ledger rows for 236f747 and the merge dba5a2e addedclaude-haiku-5.5unknownno targeted tests; full suite 950 passed8 (MCP reads this session, counted by hand; the report's this-session column is not visible through MCP)0
        2026-11-17Layer 2 implementation (propose_sources and apply_proposal, two permission rules, manual-deletion test), with the second spec draft in the same commit; the clean-install tests then passed 10 of 10 after the commit, including a new variant with spaces and Chinese in the project pathclaude-haiku-5.5unknown35 targeted tests pass (test_proposals 23, test_permission_rules 11, test_mcp_proposals 1); full suite 985 passed8 (MCP reads this session, counted by hand; the report's this-session column is not visible through MCP)0
        2026-11-17State directory .gitignore: ensure_state_dir and STATE_GITIGNORE write a file that lists only the local files and never overwrites an existing one; the hook's errors.log writer and the proposal writer go through it; the README state-file paragraph gets a blank line; design section 1 gets a row; ledger row for 16d07b8 and this page synced (summary 44 pieces, to 985)claude-haiku-5.5unknown5 targeted tests pass (tests/test_state_gitignore.py); full suite 990 passed, 10 skipped; the clean-install tests passed 10 of 10 after the commit0 (no MCP reads in this step)1 (a verification command run after the commit was stopped by the protection check; not bypassed)
        2026-11-17Wording fixes after the layer 2 acceptance: the config template, the protection text and the two MCP tool descriptions no longer say the AI cannot register on the user's behalf; they name propose_sources and apply_proposal, the approval popup and add-only behaviour; watch and confirm are marked not implemented in the template, the design and the tasks; the hook's error log writes even when the core layer cannot be imported; design section 7 is dated and gains a step that asks for registration without naming a tool; the example config gets the same comments; ledger row for a4969bc and this page synced (summary 45 pieces, to 990)claude-haiku-5.5unknown6 targeted tests pass (tests/test_wording.py 5, tests/test_hook_log.py 1); full suite 996 passed, 10 skipped; the clean-install tests passed 10 of 10 after the commit0 (no MCP reads in this step)1 (a shell command that searched a README sentence was stopped by the protection check because its text named the config file; not bypassed)
        2026-11-18Layer 2 acceptance record: the DEVLOG entry for the 2026-11-18 install-test (reinstalled with the new template; Kiro proposed and applied the registration itself, through an approval popup; the user judged A to F all passed) and the clean-install result after 2ed1abd (10 passed); the status lines of the layer 2 design, its section 7, the requirements and the README now read accepted (2026-11-18); ledger row for 2ed1abd and this page synced (summary 46 pieces, to 996)claude-haiku-5.5unknownno targeted tests; full suite 996 passed, 10 skipped (no code changed)0 (no MCP reads in this step)0
        2026-11-18Two wording fixes: the README's approval-prompt sentence now credits the tool card above the prompt, as Claude's review asked (permission measurements, section 4); review cells of the a4969bc and 2ed1abd rows set to passed; ledger row for af79db8 added; demo page synced (summary 47 pieces, to 996); main fast-forwarded to 4c38aed first (same file tree as af79db8)claude-haiku-5.5unknownno targeted tests; full suite 996 passed, 10 skipped (no code changed)0 (no MCP reads in this step)0

        Same task, two models

        Two re-implementation tasks, each done by claude-haiku-5.5 and by Opus 5.5 from the same specs and tests (kiro-cli 3.3.0, one run each, 2026-11-15). Both copies had the same single failure, in test_gitignore.py, caused by an empty .git folder in the copy.

        Credits and seconds for the same task
        Taskclaude-haiku-5.5Opus 5.5
        T1: the two unit-list functions of the shot app0.18 credits, 150 s4.77 credits, 304 s
        T2: the adapter loader in the core layer0.37 credits, 232 s9.31 credits, 432 s

        Haiku's code still needs review. Claude reviews it at checkpoints, and the review findings are recorded in the ledger.

        Commits made with claude-haiku-5.5 carry a Kiro-Model trailer. To list them:

        git log before-haiku.. --grep "Kiro-Model: claude-haiku-5.5"

        What this does not show

        Try it yourself

        These are the Setup steps in short. If this page and the README differ, the README is right.

        1. Install RefCov with uv: uv tool install git+https://github.com/3322jj/refcov.
        2. In your project root (the folder that holds .git), run refcov init, then refcov doctor.
        3. Open the project in Kiro and trust the workspace. Until you trust it, Kiro does not load the project's MCP configuration; in our test the hooks also showed as disabled.
        4. Add the two permission rules that refcov init prints to ~/.kiro/settings/permissions.yaml. Then register your reference material: in Kiro, say "register docs/guide.md as reference material" and approve the prompt; or list the files under [sources] in refcov.toml and run refcov sync.

        The full steps are in the Setup section of the README.