test(repo-fleet-hygiene): restore bare-repo-with-working-tree coverage - #2658
Conversation
|
Claude finished @kyle-sexton's task in 1m 9s —— View job Security review — no issues found
Scope reviewed: This PR restores test fixtures/assertions for an existing finding kind and adds a new CI gate script that diffs finding-kind tokens between the collector and its test suite. No security-relevant surface stood out:
No injection, authorization, secret-handling, or Actions permission/trigger issues identified in this diff. |
|
Last security-reviewed head: |
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Claude finished @kyle-sexton's task in 28s —— View job Security review — skipped (no new commits since last review)
Skip reason: HEAD SHA No new review posted. If you want a full re-review anyway (e.g. after force-pushing or amending without a new SHA), delete the gate-tracking comment or push a new commit to trigger it. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dd9b29647a
ℹ️ 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".
47781ba to
1487ee3
Compare
|
Claude finished @cursor[bot]'s task in 2m 19s —— View job Code review
Scope reviewed: Reviewed against Note: the P1 raised by Codex ( I verified the restored Finding posted inline:
No correctness bugs found in the restored assertions, the new coverage gate, or the version/changelog bump. |
|
Claude has reviewed this PR 5 times. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
437bebb to
5e735f3
Compare
|
Claude finished @cursor[bot]'s task in 4m 36s —— View job Code review
Scope reviewed: all 10 changed files ( Findings posted inline (3):
Verified statically (could not execute scripts — no shell-execution approval in this sandbox): the restored |
Gate finding-kind test coverage outside the suite rewrite blast radius. Require Finding: needles (not bare tokens / F_KIND). Version bump on main. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
5e735f3 to
98c049d
Compare
Move fleet-finding-test-coverage-gate above the CHANGELOG parity doc comment so that comment again documents changelog-parity-gate. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Claude finished @cursor[bot]'s task in 2m 11s —— View job Code review
Scope: full PR diff Prior finding resolved: the Prior Codex P1 confirmed fixed: Verified against source (static read-through):
No new correctness or maintainability issues found. Could not execute the shell test suites in this sandbox (script execution isn't available here) — this is a static read-through of the diff against the collector source, not a live run; the PR's own verification section covers that. |
Unquoted colon in the step name made the workflow fail to parse, so the required ci suite never ran on #2658. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Claude finished @cursor[bot]'s task in 2m 19s —— View job Code review
Scope: full PR diff Previously-flagged issues, re-verified against current HEAD:
Verified against source (static read-through — script execution isn't available in this sandbox, matching prior rounds' caveat): One open finding, posted inline. No other correctness or maintainability issues found. |
…token Require a non-[a-z-] boundary after the kind so Finding: worktree-root-conformance cannot false-cover via Finding: worktree-root-conformance-summary. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
CI invokes scripts/check-fleet-finding-test-coverage.sh directly; without the executable bit the job exits 126 after the self-test passes. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Claude finished @cursor[bot]'s task in 3m 45s —— View job Code review in progress
|
Hygiene exec-bit requires shebang scripts to be mode 100755 in the index. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>

Closes #2656
Summary
bare-repo-with-working-treeshipped onmainwith zero suite coverage after the #2633/#2640 squash cycle. This restores the regression tests and adds a repo-level gate outsideaudit-fleet.test.shso a self-consistent rewrite cannot delete the defender again.Fix
bare-live/bare-purefixtures and end-to-end assertions (positive bare+live tree with remedy, discovery under--root, ordinary bare hub still rejects)directory_has_non_git_entriesandBARE_LIVE_TREE_*dedup viarecord_bare_live_treescripts/check-fleet-finding-test-coverage.sh(+ baseline, self-test, CI lane) asserting every emitted finding kind is named in the suite or grandfatheredVerification
Related
Refs #2633 — bare-live feature squash.
Refs #2640 — recovery squash that dropped the suite coverage.