M9 evidence: Many projects
Date: 2026-11-24. Machine: macOS 26.3, Apple silicon, Node 22.17.1, npm 11.5.2, Playwright
1.65.1 with Chromium 1255. Built on M8's 0b68e8a; shipped as 8b38dae.
The brief's work for M9: "Workspace mode and the home view." Its proof: "two temporary repos sharing one workspace board." The design is D-141; the format is in FORMAT.md.
Acceptance
| Check | Result |
|---|---|
| Two temporary repos sharing one workspace board | test/integration/workspace.test.ts makes a git repository holding boards/, and two code repositories. clara init --workspace boards --key WEB in one and --key API in the other make one workspace with a project for each and write only .clara.json in each repository, no .clara. Each repository works its own project; clara workspace from either shows both, its own marked, with what is in progress, blocked and waiting on the person asking; run in the workspace folder it shows both, neither current. clara sync commits only boards/WEB/ in the workspace's repository and leaves the code's history alone, and does the same from a linked worktree of the code |
| A third clone joins | A clone given --key WEB writes only the link and sees WEB's tickets. A clone whose folder name would propose a key the workspace already has is refused without a terminal, naming the flag to join with, and is asked for another key with one: a project is joined only under a key someone named |
| The link is followed safely (D15) | Only to a folder holding workspace.json, only into the folder of a valid key, never through a .clara.json that is a symbolic link (read or written, a dangling one included), and never to a path naming another machine (\\host\share, //host/share, \\?\, \\.\), which Windows would connect to before anyone was asked. A broken link is refused by every command that needs the board rather than passed over (test/unit/node/workspace.test.ts) |
| The home view | test/e2e/home.spec.ts, against a real clara serve in a linked repository: Home is first in the navigation, each project is a labelled region, API-1's question shows under "Needs you" and "Blocked" without a link (it is another project's), WEB-1 under "In progress" links to this board's ticket panel, and axe finds no serious problem. A board in no workspace offers no Home |
GET /api/home |
Answers the workspace's home as the signed-in actor; on a board in no workspace, NO_BOARD (test/integration/server.test.ts) |
| Every way into a repository finds the linked board | findBoard takes .clara.json over .clara; a linked worktree uses its main checkout's link (test/unit/cli/where.test.ts). The Claude Code plugin's session hook gives the same answer as findBoard in every case, two linked ones added (test/integration/plugin-hook.test.ts). The git hooks that keep the board following the repository run in a linked repository |
| Web app budget | First load 93.6 KB gzipped (budget 100 KB; 92.6 KB at M8). The Home view is a lazy chunk of 1.2 KB |
Tests and coverage
npm run ci in a clean clone at 1d1db26: 221 test files, 4,517 tests passed and 2 skipped
(the two that need a Windows host). Library coverage: statements 96.81%, branches 90.63%,
functions 97.46%, lines 97.66%, every one above its gate. Lint, both type checks, the build
and the web budget passed.
That run's budgets gate measured clara --version at 119 ms against its 100 ms budget, with
node itself taking 122 ms to start: the machine was running another project's browser tests
and this milestone's helpers (load average above 20). Run again in the same clean clone, the
cold start measured 32 ms and every budget passed; no budget was changed.
A second clean run at 8b38dae, which adds only the Windows fix below, passed 4,514 tests;
the three others timed out with the load average between 58 and 84, and passed when run again
in that clone (15 of 15).
Fresh-eyes review
A subagent read the workspace code, init, sync, the hooks and the Home view with no
knowledge of how they were built. Its findings, all fixed, each with a test that fails without
the fix:
- A symbolic link as
.clara.jsonwould have been written through, to wherever a cloned repository pointed it, a dangling one included. Clara now refuses to read or write a link file that is a symbolic link. - A link naming another machine (
\\host\share) would have made Windows connect to it and offer the user's credentials just by looking. Such paths are refused. init --workspacewithout--keyjoined whatever project had the key Clara proposed from the folder's name, which could be another repository's. It now joins only under a key someone named, and otherwise asks, or refuses without a terminal.- The plugin's session hook did not see a linked repository as having a board.
- The git hooks returned early in a linked repository, which has no
.clara. clara syncfrom a linked worktree left a workspace's board uncommitted, treating it as the main checkout's, which it is not.ensureWorkspacecould fail with a raw validation error on a folder name over 100 characters, or withEEXISTwhen two inits raced. The name is shortened, and the second init joins the first's workspace.- The search for the workspace's repository walked up without limit, so a workspace under a home folder kept in git (dotfiles) would have been committed and pushed there. A repository at the home folder or the top of the disk is taken only when the workspace is that folder.
Testing finding 6 turned up a ninth: a link was written relative to the repository's path as
given and followed from its real path. On macOS, where /var is a symbolic link, a clone in a
temporary folder wrote a link that led nowhere from its worktrees. Links are now computed and
followed between real paths.
Hosted CI
- M8 (
0b68e8a, run 45522936137): every job passed but Windows, wheretest/integration/export.test.tsexpected a refused link's path with a backslash, asjoinbuilds it there, while Clara names paths with/on every system. The refusal was right and the test was wrong;8b38daefixes the test. - M9 (
8b38dae, run 45546991802): every job passed: Ubuntu on Node 22, 24 and 26, macOS and Windows on Node 24, Bun, and the browser journeys.
Not proven here
- The hosted board serves one project of a workspace's repository (
CLARA_PATH=boards/WEB), not a workspace's home: that needs the repository's other projects read with the person's token, which is M8's adapter over several folders, and is not built. - The GitHub Action works on the board of the repository it runs in and does not follow a link to a workspace its checkout does not have.