What a maintainer or operator runs around the kit: the test runner, the CI rules, the weekly scheduler, the external tools it expects, and the optional codebase index. Debug mode and hook logs are in hooks.md; recovery steps are in the troubleshooting section of the manual.
bash tests/run-all.sh with no argument runs only the suites the diff touches, plus the always-on tree-wide lints (kit-contract, config-registry, no-personal-paths, no-scattered-ids, boundary-lint), about 1 to 2 minutes on a Mac. test-meta (about 200 seconds) joins only when the diff touches a path it reads (meta_input in bin/test-affected). --all is the full glob, 13 to 15 minutes, for CI and the nightly job only: it refuses (exit 64) unless CI is set or KIT_RUN_ALL=1. Any other mode or flag is refused (exit 64, a usage line on stderr) before the host lock is taken and before any suite starts; --help and -h print the usage and exit 0. RUN_ALL_JOBS defaults to auto on macOS and 1 on Linux. RUN_ALL_JOBS (and TEST_AFFECTED_JOBS) cap one run only; every suite worker also takes a slot of a host-wide semaphore (tests/lib/host-slots.sh), so concurrent runs from several worktrees cannot add up. KIT_TEST_HOST_SLOTS=<n> sets the slot count (default cores / 2, minimum 2, 0 turns the gate off) and KIT_TEST_SLOT_DIR=<dir> moves the slots (default dwarves-kit-test-slots under the per-user temp dir from getconf DARWIN_USER_TEMP_DIR, else ${TMPDIR:-/tmp}, so a sandboxed session with its own TMPDIR still shares the gate). Single suites still run on their own: bash tests/test-hooks.sh covers hook behavior, bash tests/test-meta.sh covers structural integrity (manifests, frontmatter, cross-links), and KIT_RUN_ALL=1 bash tests/run-all.sh --all runs the full CI glob locally (use plain bash tests/run-all.sh during development for the diff-scoped suites plus always-on lints).
.github/workflows/test.yml runs on every pull request, on every push to master, on v* release tags, and on manual workflow_dispatch. On a pull request, a fast plan job counts the suites selected by tests/run-all.sh --changed <base> against the PR base sha: up to 80 suites runs one test-fast job per OS (ubuntu-latest, macos-latest), and more than 80 suites falls back to the 5-shard full matrix. Concurrency cancels superseded runs of the same PR without cancelling pushes to master, tags, or manual dispatches. Pushes to master, v* tags, and manual dispatches always run the full 5-shard matrix on both OSes, and test (summary) gates the selected lane.
edit on a branch
|
v
bash tests/run-all.sh ....... diff-scoped suites + the always-on lints
| (about 1-2 min on a Mac)
v
commit --> push --> PR ...... repokit.yml (pr-shape, owners, secret-scan)
| test.yml fast lane (<= 80 suites, 1 job/OS)
| or 5-shard fallback (> 80 suites)
v
merge to master ............. test.yml full 5-shard matrix (ubuntu + macOS)
|
v
cutting a release
|
+--> gh workflow run test ........ full 5-shard matrix, on demand
+--> git push origin v<x.y.z> .... the same full matrix, on the tag
|
v
KIT_RUN_ALL=1 bash tests/run-all.sh --all ... the full glob (13-15 min);
before the tag, never on a commit; without
CI or KIT_RUN_ALL=1 it refuses (exit 64)
The kit ships ONE weekly LaunchAgent: a dispatcher over a declarative jobs list (session-intel digest, reflect propose, print-only unless BACKLOG_STAGE_AUTO=1 is set in ~/.config/kit-weekly/env; adding a job = one line, never a new plist). Consumer instantiates it: bash deploy/macos/install; runbook at deploy/macos/README.md.
Install these alongside; the kit does not bundle them.
- Context Hub -
npm install -g @aisuite/chub - Context7 - MCP server for library docs
- codebase-memory-mcp - AST-level codebase indexing
The required and recommended tools, and the formatters the auto-format hook detects, are listed in architecture.md "Dependencies".
If codebase-memory-mcp is installed, the
codebase-index.sh SessionStart hook keeps the current repo's structural index fresh
in the background (built on the first session in a repo, incremental refresh after),
so /kit:spec and /kit:execute query the index (search_code, search_graph,
get_architecture, trace_path) instead of grepping, cutting orientation cost. With
the tool absent the hook no-ops and the kit greps exactly as before, nothing to
configure and nothing breaks. Enable: put the binary on PATH, run
claude mcp add --scope user codebase-memory -- codebase-memory-mcp, then re-run
install.sh.
The public release tree carries the kit, its design record, and its living docs. Dated working history is pruned at minor release cuts into an archive tag so the working tree stays small without losing provenance.
What a release prune removes (dated working records nothing reads at runtime):
docs/verification/: one-off proof-of-done records and run logs (except the runtime files andgauntlet/listed below)docs/implementation-notes/,docs/retro/, andlib/*/docs/implementation-notes/: per-spec delta logs and cycle retrosdocs/research/: dated scans (research/foundations/stays)docs/briefs/: shipped working briefs (README.mdandTEMPLATE.mdstay)docs/absorption/: dated reports (README.mdandTEMPLATE.mdstay)
What always stays in the public tree:
docs/specs/,docs/decisions/, andCHANGELOG.md: the design record and release historydocs/verification/gauntlet/: the corpus thegauntlet-proof-auditskill checks- Files code, tests, or commands read at runtime:
docs/verification/README.md,task-types.md,test-design-standard.md,rejected-findings.md,COUNTS.md,done-modes.md, the lanes-as-data baseline, and the ceremony-lens baseline - Every
README.mdandTEMPLATE.mdin the pruned folders
Read or restore an archived file: a prune removes files in a single commit without rewriting git history. The private dwarvesf/dwarves-kit-internal repo keeps the pre-release history at history/master-pre-squash and release archive tags (starting with history/2026-10-27). Maintainers with access inspect or restore an archived file there:
git clone git@github.com:dwarvesf/dwarves-kit-internal.git
git -C dwarves-kit-internal show history/2026-10-27:docs/verification/advisor.mdSpecs, decisions, and CHANGELOG.md keep their historical paths as written; living docs and code comments cite archived files as history/<date>:<path>. Nothing changes for new work: proof of done still goes in docs/verification/, implementation notes in docs/implementation-notes/, retros in docs/retro/, research in docs/research/, and working briefs in docs/briefs/.