Clara Docs
All docs

M10 evidence: Reach

Evidence5 min readEdit on GitHub

On this page

Date: 2026-11-25. Machine: macOS 26.3, Apple silicon, Node 22.17.1, npm 11.5.2, Playwright 1.65.1 with Chromium 1255. Built on M9's 8b38dae.

The brief's work for M10: "D14, plus ask, do, scan, split, estimate and the live terminal views." Its proof: "importer dry runs against fixtures, routine scheduling under a fixed clock." The designs are D-142 to D-151 in DECISIONS.md.

Acceptance

Check Result
Importer dry runs against fixtures test/fixtures/import/ holds an export of each source: Jira CSV, Linear CSV, GitHub issues JSON, Trello JSON, Beads JSONL, a Backlog.md folder and Vibe Kanban. Each reader has its own tests in test/unit/import/ (97 tests), mapping statuses, types, priorities, points, assignees, labels, criteria, parents and dependencies, and naming every value it had to change. board.import without apply writes nothing and lists what it would make, skip and change (test/unit/ops/import.test.ts); clara import previews first and makes the tickets only with --apply (test/integration/cli-import.test.ts); clara init offers a Beads or Backlog.md board it finds and imports it only on a yes (test/integration/cli-init-import.test.ts). Importing again makes only what is new
Routine scheduling under a fixed clock test/unit/rules/routines.test.ts takes daily, weekly:<day> and monthly:<n> across month and year ends. test/unit/ops/routines.test.ts and test/integration/cli-routines.test.ts run routine.run on the test board's fixed clock (Monday 2026-11-16, 09:00 UTC), advance it, and see each occurrence made once, archived tickets counted; three weeks with nobody running it make one ticket, for the latest Monday, not one per week missed. test/integration/github-routines.test.ts runs the Action's routines mode against a real remote: it pushes as the Actions bot, does nothing on another branch, and makes nothing twice when someone else pushed the ticket first
Automations (D-144) epic_auto_done, flag_stale and sprint_digest, each on by default and each off when the board says (test/unit/doctor/checks.test.ts, test/unit/ops/doctor.test.ts, test/unit/ops/sprints.test.ts)
Templates (D-146) Ticket templates in .clara/templates for clara add --template, ticket.create and the web's dialog; project templates for clara init --template (test/unit/ops/templates.test.ts, test/integration/cli-templates.test.ts, test/integration/demo-template.test.ts)
Notifications (D-147) Webhooks to Slack, Discord, Telegram or JSON, sent only once trusted, never following a redirect, the address never printed whole (test/unit/model/notify.test.ts, test/unit/cli/notify.test.ts, test/integration/notify.test.ts); the privacy test sends nothing to an untrusted hook
ask, do, split, estimate (D-148) With the fake agent: ask runs with the reading tools only; split and estimate are plan runs whose proposals are applied only on review (test/integration/cli-agent-commands.test.ts, test/unit/ops/plan.test.ts)
Live terminal views (D-149) clara board --watch and clara top, redrawn on each change, every line through the terminal filter (test/unit/cli/live.test.ts, test/integration/cli-live.test.ts)
Attachments (D-150) PNG, JPEG, GIF or WebP by their bytes, at most 3 MiB, SVG refused, served with the checked type, nosniff and the key (test/unit/ops/attachments.test.ts, test/integration/cli-attach.test.ts, test/integration/server-attachments.test.ts)
clara scan (D-151) TODO and FIXME comments in the files git tracks proposed as tickets, made with --apply, never twice; links out of the repository skipped (test/unit/scan/todos.test.ts, test/unit/ops/scan.test.ts, test/integration/cli-scan.test.ts)
Exports JSON, CSV guarded against formula injection, and Markdown (test/unit/export/tickets.test.ts, test/integration/cli-export-format.test.ts)
Web app budget First load 96.1 KB gzipped (budget 100 KB; 93.6 KB at M9)

Tests and coverage

M10 shipped with M11, after the clean run at 9480f6a that M11's evidence describes: 261 test files, 4,938 tests passed and 2 skipped. Library coverage: statements 96.99%, branches 91.01%, functions 97.53%, lines 97.83% (96.81%, 90.63%, 97.46% and 97.66% at M9). M10's own clean runs stopped on the privacy test below and then on tests that ran past their time limits in the full suite; M11's evidence names each of those and its fix.

Fresh-eyes review

A subagent read the M10 code in the library, the CLI, the server and the web app with no knowledge of how it was built. It found three things; each is fixed with a test that fails without the fix.

  1. An export printed to a terminal skipped the terminal filter. A ticket title can hold a C1 control such as U+009B, which some terminals obey as ESC [. Printed to a terminal, the export now goes through the same filter as all of Clara's output; piped or redirected, it is the file as it is. Markdown cells drop C1 controls too (c868726).
  2. One routine occurrence could get two tickets. clara work on a laptop and the Action's schedule could each make the ticket before seeing the other's, and git keeps both, since each ticket is its own file. clara doctor now names the later copy, and doctor --fix archives it while nobody has started it (fe2c00f).
  3. Imports: a source id too long for the origin was cut, so it was not found again on the next import and links to it did not resolve; it is now hashed. Imported tickets already in progress get a start date, so cycle time sees them (2f6da34).

The clean-clone run before shipping found a fourth: the privacy test, which lists every git command the source may run, took --literal-pathspecs for the command in clara scan's git --literal-pathspecs ls-files. The test now reads the command after git's own options, and ls-files, which reads only the checkout, is in its list (ca9a922).

Reading the docs for M11 found three more, fixed before M10 shipped: the help for clara github setup and clara github action left out the routines workflow and mode (cb55931, CLA-73 and CLA-74); scripts/pack-smoke-extra.mjs, which runs the packed tarball, still expected five workflows from clara github setup all rather than six (46b844a); and an example in FORMAT.md named an agent adapter by a name that is not one (cb55931).

Hosted CI

M10 and M11 were pushed together, so one hosted run covers both.

Run 45649106557, on 9480f6a, failed two jobs:

  • Windows, Node 24. Five tests in test/integration/cli-init-import.test.ts failed: they read their fixtures through a URL's pathname, which on Windows starts with a slash before the drive letter. They now use fileURLToPath (e3e57b9). One demo test in the same run also took 154 seconds; it passed in the next run without a change.
  • Ubuntu, Node 24. The budget for clara list on 1,000 tickets failed at 208.6 ms against 200 ms. The command now loads the webhook sender and the importers only when a change needs them (3661bf5); the budget is unchanged.

Run 45674193482, on 3661bf5, passed every job: Ubuntu with Node 22, 24 and 26, macOS and Windows with Node 24, Bun, and the browser journeys. clara list on 1,000 tickets took 127.5 to 185.8 ms on Linux and macOS (budget 200 ms) and 214.9 ms on Windows (budget 400 ms). The clean-clone npm run ci before that push passed every gate; one browser journey, the morning by keyboard, failed once and passed on its retry.

Not proven here

  • Real agents: ask, do, split and estimate ran with the fake agent only.
  • Webhooks: sent only within the tests, never to a real Slack, Discord or Telegram.
  • Trello checklist items are imported unchecked, whatever their state in Trello.
  • clara scan reads comments by line, so a TODO inside a string is proposed too; the preview shows it before anything is made.
  • clara ask prints its answer and keeps none of it on the board.