phase-loop: replace jscpd with built-in duplicate-window check
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019dpKwZWtahQU4V2NhpVmLt
This commit is contained in:
1 parent
a1571f0dde
commit
efbf1ca163
1 file changed
+1
-1
@@ -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 <id>` which does:
|
3. **Local gate (script, not model judgment).** In the worktree, run `loop/gate.sh <id>` which does:
|
||||||
- `cargo fmt --check`, `cargo clippy --all-targets -- -D warnings`, `cargo test`, `cargo tree -i openssl` (must print nothing)
|
- `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.
|
- **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.
|
- **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.
|
- **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.
|
- **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.
|
||||||
|
|||||||
Reference in new issue
Block a user