Repository navigation
fix(work-items): detect the overlay ignore stop condition without appending a duplicate (0.39.21) - #3219
Conversation
|
Claude finished @kyle-sexton's task in 1m 10s —— View job Security review
No security issues found. This PR is a correctness fix for the personal-overlay gitignore detection logic plus a docs/messaging cleanup; it has no security-relevant surface beyond a small, already-safe credential-config widening. Specifics:
Per the security-review skip criteria, this stops here — no findings to report. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 24fbc80513
ℹ️ 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".
|
Last security-reviewed head: |
|
Claude finished @kyle-sexton's task in 2m 46s —— View job Code review complete
This repo carries a 1 finding posted inline (🔴 Important) — Everything else checked out:
|
|
Claude has reviewed this PR 3 times. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
|
Claude finished @cursor[bot]'s task in 4m 0s —— View job Code review complete
This is a re-review after
I re-verified the rest of the diff for anything new since the last full pass:
No new findings — nothing to post inline. |
e7e9e81 to
0cfa6c7
Compare
0cfa6c7 to
0b30e58
Compare
|
Claude finished @kyle-sexton's task in 1m 28s —— View job Security review
No security issues found. Diffed
Per the security-review skip criteria, this stops here — no findings to report. |
…n probe
setup's personal-overlay gitignore step ran a bare `git check-ignore`, then
demanded that a *tracked* overlay be stopped and reported. Bare `check-ignore`
consults the index and exits 1 with no output for an already-tracked path,
because gitignore rules do not apply to tracked files, so the very condition the
step exists to catch was invisible to the probe meant to catch it: `apply` read
the silence as "no rule", appended a duplicate `.gitignore` line, and announced
it as the fix while the overlay stayed in team history.
Replace it with the two independent probes sibling `source-control` already
ships for its own local overlay (`apply-convention.md`, `layer=local`):
`git check-ignore --no-index -v` for whether a rule exists at all, and
`git ls-files` for whether the path is in the index. `check` probe 2's overlay
clause gets the same pair for the same reason. Two eval cases cover the tracked
stop and the untracked-uncovered append.
Also from the same audit:
- Allowlist `config.linear.auth_env` and `config.gitea.auth_env` for the
personal overlay. Both adapters read the credential's env-var NAME from the
merged view and the "auth identity is per-account" rationale already covered
them, so their omission was a silent exit-3 denial CONTRACT.md did not
predict. The rest of both subtrees stays team-layer-only.
- Point `invalid binding at <path>` at `/work-items:setup check`, which
itemizes which validation condition failed.
- Reconcile the two `docs` pointer strings; CONTRACT.md's variant embedded a
`plugins/work-items/...` monorepo path that resolves to nothing in a consumer
repo.
- Stop calling `${CLAUDE_PROJECT_DIR}` and the git toplevel "that single
anchor". They diverge inside a worktree, verified on this machine.
Closes #3132
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014QH5jtNyrDCYYsDgxMxkHk
Co-authored-by: Kyle Sexton <[email protected]>
…tup check The jira, gitea, and linear adapter preambles each carry their own copy of the `invalid binding at <path>` string, so pointing only the dispatcher's copy at `/work-items:setup check` left three of the four emitters printing the old message. A user whose failure surfaces through an adapter got no route to the itemized breakdown. Refs #3132 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014QH5jtNyrDCYYsDgxMxkHk
…t code Independent review caught that the ported snippet derived HAS_RULE from the exit code of `git check-ignore --no-index -v`. With `-v`, git reports NEGATION patterns as matches and still exits 0, so that exit code means "some pattern matched", not "the path is ignored". Verified on this machine (git 2.55.0.windows.3) with `.gitignore` carrying `*.json` then `!.work-item-tracker.local.json`, overlay untracked: check-ignore --no-index -> exit 1 (correct: NOT ignored) check-ignore --no-index -v -> exit 0 (matched the negation rule) git status --porcelain -> ?? .work-item-tracker.local.json The `-v` reading would have routed to "already covered, change nothing" for an overlay git does not ignore at all, leaving it exposed to `git add -A` and steering away from the append that does fix it (last matching rule wins, verified). That is the same failure shape this change exists to remove. The verdict now comes from the bare `--no-index -q` exit code; `-v` is used only to render the matching rule in the report. This defect is inherited from the sibling snippet at source-control's apply-convention.md:288, which needs its own item. Also from the same review: - Move the probe description into `setup/reference/overlay-ignore-probes.md`. Inlining it pushed SKILL.md to 525 lines, past this repo's 500-line hard cap; the skill gate now passes at 499. Both callers cite the one spoke. - Update the fifth `invalid binding at` emitter, `onboard-adapter`'s `common.sh.tmpl`, which seeds every consumer-authored adapter. - Two more eval cases (18, 19) for the negation branch and for a tracked overlay that no rule covers, the two combinations 16/17 left uncovered. - Drop "silent" from the F4 changelog entry (the denial names the offending key; it was undocumented, not silent) and stop claiming `check` itemizes all eight validation conditions, which it does not. Refs #3132 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014QH5jtNyrDCYYsDgxMxkHk
…obes Eval 16 prescribed git check-ignore -v as the coverage verdict, which is the negation-pattern false positive this change exists to prevent. Take the verdict from --no-index -q and document linear/gitea auth_env on the same overlay allowlist the seam already implements. Closes #3132 Co-authored-by: Kyle Sexton <[email protected]>
Markdown hygiene rejects two ### Fixed sections under one version. Co-authored-by: Kyle Sexton <[email protected]>
MD012 rejects two consecutive blank lines in CHANGELOG.md. Co-authored-by: Kyle Sexton <[email protected]>
0b30e58 to
ef23812
Compare
|
Claude finished @kyle-sexton's task in 1m 17s —— View job Security review
No security issues found. Skip gate condition 3 applies: this head already has a successful security review that still applies. The prior full pass (at
The two commits since that review ( Per the security-review skip criteria, this stops here — no findings to report. |
|
Claude finished @kyle-sexton's task in 1m 2s —— View job Code review
Skip gate hit: PR is closed (merged). Per For reference, all substantive findings raised during this PR's earlier review passes (eval 16's |
Closes #3132
Summary
work-itemssetup used a baregit check-ignoreto decide whether the personal overlay was ignored. That probe is silent for a tracked file, so the stop condition was undetectable andapplyappended a duplicate ignore line as the "fix". Setup now uses two independent probes, and the ignore verdict comes from the bare--no-indexexit code so a negation rule cannot look like coverage.Fix
Port
source-control's two-probe form into setup step 5 and check probe 2, documented once insetup/reference/overlay-ignore-probes.md:git check-ignore --no-index -qanswers whether the path is ignored (no-vin the verdict —-vreports negation patterns and still exits 0)git ls-filesanswers whether the path is trackedA tracked overlay stops and names
git rm --cached. Untracked and uncovered appends the ignore line. Untracked and covered changes nothing.Also from the same audit: overlay allowlist covers
config.linear.auth_env/config.gitea.auth_env;invalid binding at <path>points at/work-items:setup checkon all five emitters; the twodocsstrings are reconciled to the consumer-facing form; CONTRACT.md no longer calls the project dir and the git toplevel "that single anchor".Verification
bash plugins/work-items/tools/work-item-tracker/lib/binding.test.sh— 69 PASS (including the new linear/gitea overlay allowlist cases).plugins/work-items/skills/setup/SKILL.mdis 499 lines (under the 500-line skill-gate cap).check-changelog-parity.sh --check-bump origin/mainpasses (0.39.19).Related
plugins/source-control/skills/setup/reference/apply-convention.md— the siblinglayer=localsnippet this ports; its-vexit-code verdict is the same inherited defect and needs its own itemauth_env