From efbf1ca1634190e47a78d8e4265fef73288be1a6 Mon Sep 17 00:00:00 2001 From: ari Date: Mon, 19 Oct 2026 19:30:48 -0400 Subject: [PATCH] phase-loop: replace jscpd with built-in duplicate-window check Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_019dpKwZWtahQU4V2NhpVmLt --- .claude/skills/phase-loop/SKILL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.claude/skills/phase-loop/SKILL.md b/.claude/skills/phase-loop/SKILL.md index 6b003d4..24ec4ca 100644 --- a/.claude/skills/phase-loop/SKILL.md +++ b/.claude/skills/phase-loop/SKILL.md @@ -42,7 +42,7 @@ Merge order inside a wave follows dependencies (A, then B, then C/D/E, then F). 3. **Local gate (script, not model judgment).** In the worktree, run `loop/gate.sh ` which does: - `cargo fmt --check`, `cargo clippy --all-targets -- -D warnings`, `cargo test`, `cargo tree -i openssl` (must print nothing) - **test check:** the diff against base must add or change files under `tests/` or `#[cfg(test)]` code for every new `pub fn` / route / tool / config key. Fail if production `src/` changed with zero test lines added. - - **duplication check:** run `nix run nixpkgs#jscpd` over `src/` and `tests/` (changed files only), report-only for pre-existing clones over the diff; fail above the threshold in `loop/config.env`. + - **duplication check:** run `nix run nixpkgs#duplicate-window check` over `src/` and `tests/` (changed files only), report-only for pre-existing clones over the diff; fail above the threshold in `loop/config.env`. - **ownership check:** `git diff --name-only base...HEAD` must be a subset of the workstream's "Owned files". Violations fail. - **docs check:** config/CLI change requires `config.example.toml` and README diffs. - **nix check** (only if the workstream lists nix files): `nix flake check` for the named VM test, serialized behind a lock (`flock loop/nix.lock`), because AGENTS.md forbids concurrent nix gates.