fix(swarm): ignore local evidence in default gate#105
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4a0c091cd9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then | ||
| while IFS= read -r -d '' f; do | ||
| [[ "$f" == *.json ]] && EVIDENCE_FILES+=("$f") | ||
| done < <(git ls-files -z -- "$EVIDENCE_DIR" 2>/dev/null || true) |
There was a problem hiding this comment.
Limit tracked scan to top-level evidence files
In no-arg mode, git ls-files -z -- "$EVIDENCE_DIR" walks the directory recursively, so this path now validates *.json files in nested subdirectories (for example archived results) that were previously excluded by the find ... -maxdepth 1 behavior and are still excluded in explicit directory mode. In repos that keep historical/auxiliary JSON under .agents/swarm/results/**, this can cause unexpected gate failures unrelated to current evidence; filter to top-level files to preserve the prior contract.
Useful? React with 👍 / 👎.
Summary
Bead
Validation