diff --git a/.claude/deliver.config.yaml b/.claude/deliver.config.yaml new file mode 100644 index 0000000..a8e4a28 --- /dev/null +++ b/.claude/deliver.config.yaml @@ -0,0 +1,13 @@ +# Adapter config read by the /sidekick and /deliver skills when spawning workers. +# Plumbing only: it stops the gate and hard rules being re-derived from AGENTS.md and +# hand-pasted into every worker prompt. It is deliberately NOT a process-discipline +# mechanism — `skills:` is intentionally unset (all-or-nothing per worker; cannot +# express the per-tier falsification requirement in AGENTS.md). See openlock-ie6z. +adapter: + build_gate: "bun run lint && bun run typecheck" + hermetic_test: "bun run test && bun run knip" + rules: + - "Never run bare `bun test`; always `bun run test` (scoped to ./src/ ./tests/ ./scripts/)." + - "Tests use synthetic state only: never touch real credentials, the real dev gateway, or the real config dir. Use OPENLOCK_CONFIG_DIR / OPENLOCK_DISPOSABLE_HOST seams." + - "Never push to main; land everything via a PR." + - "Never commit, push, branch, or merge from a worker; leave changes in the working tree." diff --git a/.gitignore b/.gitignore index 6bfde96..aeb9874 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,10 @@ dist/ # everything else under .claude/ (settings, local config, agent-registry state, etc.) stays # ignored. A whole-directory ignore can't be negated per-child, hence the .claude/* + negation # form rather than a bare `!.claude/skills/`. +# Exception: .claude/deliver.config.yaml is the tracked sidekick/deliver adapter config +# (gate + hard rules), also negated individually below. .claude/* !.claude/skills/ +!.claude/deliver.config.yaml .mcp.json .local/ diff --git a/AGENTS.md b/AGENTS.md index ad566ca..ffbcd8c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -101,7 +101,8 @@ the load-bearing claim called out; the detailed policy lives outside this file. `.claude/skills/` holds versioned, on-demand procedures — load one when its trigger applies, rather than carrying it in context always. Unlike the rest of `.claude/`, this directory is -tracked. +tracked. `.claude/deliver.config.yaml` — the worker adapter config (gate + hard rules) read by +the `/sidekick` and `/deliver` skills — is also tracked. - `fork-upstream-sync` — syncing the vendored fork to a new upstream release. - `stacked-prs` — creating, pushing, or merging a `gh stack`.