symcc

Probe: one workspace board over several repos (what breaks, what must change) #

Task T-974, probed on 2026-11-24. Kept as a note by T-975.

The question #

Could one symcc board sit in a workspace folder (a plain folder that is not a git repo itself) and run tasks in several git repos below it? What breaks today, and what would have to change to make it work?

How it was found #

A throwaway workspace in /tmp with two small repos below it (client and server), driven with the Node CLI (bun hosts/node/main.ts --root <dir> ...). The root and guard functions (mainRoot, projectRoot, isWorkerFolder in hooks/app/store.ts, and hooks/core/path-guard.ts) were also called straight from small bun scripts. The list of one-repo assumptions comes from reading the code and from grep over hooks/app. Line numbers are from the code as it was on 2026-11-24 and may have moved since. No real claude worker ran, and the Claude Code, OpenCode and Copilot hosts were not tried (see "What I couldn't check" at the end).

The answer #

"I" below is the agent that did the probe.

Short answer: Today symcc treats a workspace folder (not itself a git repo) as one broken project. The board gets made there, but no work ever starts, and the only way forward it offers wrecks the setup. Copies of the repos below it aren't recognised as worker copies either. The path guard is the one big piece that already works, as long as its "project root" stays the board folder. The build fits in about 8 small tasks. The main changes: the git calls (about 110, almost all with no folder given) need a per-project folder, git status is checked per project, and worker copies are recognised by their place under the board's worktrees folder rather than by git.

1. What broke in the probe #

I made /tmp/t974/ws with two repos below it (client, server, each with one commit) and drove it with the Node CLI (bun hosts/node/main.ts --root <dir> ...) from this worktree. Everything is cleaned up now.

  1. Starting in the workspace: board said "no symcc board in this folder · /symcc-init to create one here". Correct, and nothing was written.
  2. cmd symcc-init: made ws/.symcc/board.json, scouts.json and scouts/ in the workspace, and added 11 paused scouts.
    • It then told the lead: "This folder has no git repo... Set it up? (git init, a .gitignore, a first commit...)".
    • An added task stays todo for ever. pump stops at gitReady (hooks/app/workers.ts:116-117).
  3. tool setup_git (on a copy of the workspace): this is dangerous. It ran git init in the workspace and committed client and server as bare repo pointers (mode 160000) with no .gitmodules: a broken half-submodule.
    • A git worktree add of that repo has an empty client/ folder, so a worker would see no code.
    • The cause is setupGit in hooks/app/git.ts:140-175 (git add -A at the top). This needs a guard even before any multi-repo work.
  4. Worker copies under the workspace board are not recognised. I ran git -C client worktree add ws/.symcc/worktrees/T-1 (and T-2 from server). Then I called mainRoot, projectRoot and isWorkerFolder from hooks/app/store.ts in a bun probe:
foldermainRoot / projectRootisWorkerFolder(dir, mainRoot)isWorkerFolder(dir, workspace)
ws/.symcc/worktrees/T-1 (copy of client)the worktree itselffalsetrue
ws/.symcc/worktrees/T-2 (copy of server)the worktree itselffalsetrue
ws/client/.symcc/worktrees/T-9 (today's layout)ws/clienttruefalse
  1. A session started in ws/client says "no board". projectRoot never looks above the session folder (store.ts:121-133, T-860). That is fine if the rule is "open the session in the workspace".
  2. Path guard (hooks/core/path-guard.ts): it works when the root is the workspace, with the worker copy ws/.symcc/worktrees/T-1:
    • Editing the copy's own README.md: allowed.
    • Editing ws/client/README.md, ws/server/README.md, ../T-2/README.md or .symcc/board.json: refused.
    • Shell cat ../../../client/README.md and git -C ws/server status: refused.
    • If the root were only the task's repo, editing server/README.md and the board would get through. So the guard's root must stay the board folder.
    • A repo outside the workspace (/tmp/other) is only guarded when it is in the root list. Folders already accepts a list (path-guard.ts:80).
  3. Task files must be relative to the project's repo, not the workspace. blockedEdit('README.md', T-1, ['client/README.md']) refused the edit, while ['README.md'] allowed it. The lead must write README.md, not client/README.md.

2. Every one-repo assumption, grouped by what it needs #

A. Needs the task's project root (the git repo the task works in):

B. Needs a per-project setting:

C. Board-level, nothing to change (S.root = the board folder is right):

D. Needs a different rule:

3. Proposed build (in order; each depends on the one before) #

  1. Worker copies by place. Change mainRoot/projectRoot so a folder under <X>/.symcc/worktrees/ with a board at X belongs to X.
    • Files: hooks/app/store.ts, tests/.
    • Test: fake-host unit tests (worktree of a repo below the board → guard-only start), plus one Node host test making the T-1 layout above.
    • This is safe to do on its own, even before projects exist.
  2. Setup-git guard. setup_git and the Set up git button refuse when folders below hold their own .git, and say "this looks like a workspace".
    • Files: hooks/app/git.ts, hooks/core/git-setup.ts, tests/.
    • Test: a Node host test with two nested repos; setup_git answers the refusal and runs no git init.
  3. Data shape. Board gets projects?: { name, root, test_commands?, docs_test_commands? }[]; each task gets project?. Add a projectOf(b, t) helper (the root resolved against the board folder), plus parseBoard and validation.
    • Files: types/index.d.ts, hooks/core/board-file.ts, hooks/core/task.ts, hooks/board.ts, tests/.
    • Test: pure tests in tests/board*.test.ts.
  4. git goes per project. git/gitOk lose the S.root default (a folder must be given). homeBranch, branchList, branchExists, currentBranch, prepareWorktree, copyTypes, removeWorktree, deleteMergedBranch, cleanupMerged, taskWork take a repo folder.
    • Every caller in workers.ts, review.ts (including the merge moveTarget and symbolic-ref in the project), merged.ts, tools.ts, checker.ts, doctor.ts and lead.ts passes projectOf(t).
    • Files: hooks/app/git.ts, workers.ts, review.ts, merged.ts, tools.ts, cleanup.ts, doctor.ts, lead.ts, tests/.
    • Test: typecheck catches every caller once the default is gone. tests/merge.test.ts with a fake run that checks opts.cwd.
    • This is the biggest task; it could be split into "git helpers + workers" and "review + merged + doctor".
  5. Git state per project. S.gitState becomes a map by project. pump starts a task only when its own project is ready. The banner names the project that isn't ready.
    • Files: hooks/app/state.ts, git.ts, workers.ts, session-start.ts, open.ts, hooks/core/banner.ts, tests/.
    • Test: one project with no commit blocks only its own tasks.
  6. Per-project test commands in review.ts, prompt-values.ts and checker.ts. The settings tool and Settings page get a project selector or a projects setting.
    • Files: hooks/core/settings.ts, hooks/app/tools.ts, lead.ts, state.ts, the Settings UI, site/, docs/guide.md, tests/.
    • Test: a settings test, plus a Node host e2e where client's tests pass and server's fail.
  7. Lead tools and prompts. add takes project (required when there are 2+ projects; the lead is told the list). merge_into comes from that project. A project add/remove/list tool or slash command. Scout and worker prompts name the project.
    • Files: hooks/app/tools.ts, slash-commands.ts, hooks/core/commands.ts, hooks/core/prompts.ts, scouts.ts, tests/.
    • Test: tool tests, plus a Node host e2e with two repos and one task each, both merged into their own main, after across them.
  8. Look. A [project] tag on task rows and the task page when there are 2+ projects. Live Branches reads per project. Doctor and cleanup loop over projects.
    • Files: hooks/core/task-list.ts, hooks/claude/ui/, hooks/opencode/, branches.ts, doctor.ts, site/, docs/guide.md, tests/.
    • Test: snapshot tests (terminal, desktop, mobile, VS Code), plus sh tests/build-site.sh.

Data migration: with no projects, the board folder is the one project (root "."). Existing one-repo boards then work unchanged, and every task's project reads as that one.

4. For the owner to decide #

5. Risks #

What I couldn't check #

Next step: start with task 1 (recognise worker copies by their place) and task 2 (block setup_git over nested repos). Both are small, worth doing even if multi-repo waits, and close the two dangers the probe found. Then ask the owner the "where the board lives / how a project is added" questions before task 3.

Files I read: hooks/app/store.ts, git.ts, session-start.ts, ask.ts, review.ts, workers.ts, branches.ts, doctor.ts, tools.ts, hooks/core/path-guard.ts, hooks/host.ts, hosts/node/main.ts, hosts/node/session.ts. The probe scripts were in /tmp/t974 (deleted).