fix(hook-utils): distinguish unresolved helpers and honor # comments - #2549
Conversation
|
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6d8bd49d44
ℹ️ 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".
6d8bd49 to
d3cbc22
Compare
|
Claude finished @cursor[bot]'s task in 3m 41s —— View job Claude finished the security review
Security review of PR #2549Scope: CRITICAL — mid-word Bash only treats Concretely, for the command string:
This parser is the shared tokenizing spine for The PR's own new tests ( Suggested fix — only enter comment mode when no word is currently being assembled; otherwise treat This is the same issue flagged by the automated Codex review comment on this PR ( No other security-relevant issues found in this diff's scope (the |
|
Last security-reviewed head: |
1107116 to
56865ba
Compare
|
Claude finished @cursor[bot]'s task in 2m 12s —— View job Claude finished the security review
Security review of PR #2549 (head
|
|
Claude finished @cursor[bot]'s task in 3m 15s —— View job Code review complete
Scope note: This repo runs both FindingsNone in this lane's scope. The one substantive defect in this diff — Verification performed (code-review lane checks)
|
c8c3f8c to
11a410d
Compare
|
Claude finished @cursor[bot]'s task in 1m 25s —— View job Claude finished the security review
Security review of PR #2549 (head
|
|
Claude has reviewed this PR 5 times. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
|
Claude finished @cursor[bot]'s task in 3m 7s —— View job Code review complete
Code review of PR #2549 (
|
11a410d to
d6026b4
Compare
|
Claude finished @cursor[bot]'s task in 2m 37s —— View job Code review complete
Scope note: Per Good news: the critical bug is fixedEvery prior automated review on this PR (Codex, and three passes of the security lane) flagged the same CRITICAL issue: the new I verified against the current head ( FindingsOne non-blocking documentation nit posted inline on lib/hook-utils.sh:352 (applies equally to line 483): the Verification performed
I did not have shellcheck available in this environment's tool grant, so lint cleanliness is unverified by me (author-claimed only). |
d6026b4 to
14b7d43
Compare
|
Claude finished @cursor[bot]'s task in 2m 38s —— View job Code review complete
Scope note: Per Good news: the critical bug remains fixedEvery earlier automated review on this PR (Codex, and multiple passes of the security lane) flagged a CRITICAL issue: the new Re-verified against the current head ( FindingsOne non-blocking documentation nit, posted inline on lib/hook-utils.sh:483: the Verification performed
I did not have permission to execute |
…1487) Give hook::physical_path and hook::repo_root a non-zero return and HOOK_*_UNRESOLVED flag when they fall back to a lexical answer, while still emitting that answer for advisory callers. Teach hook::bash_parse_segments to drop unquoted # comments to EOL. Sync lib copies and bump every carrying plugin version. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
14b7d43 to
004f587
Compare
|
Claude finished @cursor[bot]'s task in 1m 36s —— View job Code review complete
Scope note: Per The critical bug remains fixedEvery earlier automated review on this PR (Codex, and multiple passes of the security lane) flagged a CRITICAL issue: the new Re-verified against the current head ( FindingsOne non-blocking documentation nit posted inline on lib/hook-utils.sh:483: the Verification performed
I did not have permission to execute |
…rsor[bot] - Align HOOK_REPO_ROOT_UNRESOLVED shellcheck comment with physical_path - Add cursor[bot] to security-review skip-actors so cloud-agent PRs pass the evidence guard when the lane skips non-member bot actors (#2549) Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Fixes #1487
Summary
Shared
hook-utils.shhelpers no longer answer "I could not determine this" as an indistinguishable success:hook::physical_path— returns1and setsHOOK_PHYSICAL_PATH_UNRESOLVED=1when neitherrealpathnorreadlink -fresolves, while still printing the lexical path for advisory callers.hook::repo_root— returns1and setsHOOK_REPO_ROOT_UNRESOLVED=1whengit rev-parse --show-toplevelcannot answer, while still printing the hint fallback.hook::bash_parse_segments— unquoted#starts a shell comment to EOL; quoted#is preserved.Contract is documented at each helper: return 0 means resolved; advisory callers that ignore the status keep today's behavior.
Tests
lib/hook-utils.test.shcovers path-helper failure signals and the#comment bypass shape (git b # -C other-repo).Propagation
Synced via
scripts/sync-hook-utils.sh; all 16 carrying plugins bumped with changelog entries.Related
N/A