summaryrefslogtreecommitdiff
path: root/plugins
AgeCommit message (Collapse)Author
2026-10-26Merge pull request #6861 from anthropics/mhegazy/sg-add-fail-metricMohamed Hegazy
security-guidance: count failed git add -N calls in the Stop review
2026-10-26Merge pull request #6839 from anthropics/mhegazy/sg-network-failure-classMohamed Hegazy
security-guidance: report why a review call got no HTTP response
2026-10-26Merge pull request #6836 from anthropics/mhegazy/sg-diff-seen-countMohamed Hegazy
security-guidance: count reviews of a diff that was already reviewed
2026-10-23security-guidance: count failed git add -N calls in the Stop reviewmhegazy/sg-add-fail-metricMohamed Hegazy
A failed add leaves new files out of the diff with no sign of it. Measure only; behaviour is unchanged.
2026-10-22security-guidance: report where a slow prompt's time goesmhegazy/sg-prompt-capture-timeMohamed Hegazy
Prompts that wait a second or more in the UserPromptSubmit hook send one metrics row: total, baseline and untracked listing time, index size, and whether the repository is on a Windows drive under WSL. Measures only; capture is unchanged. See #6854.
2026-10-22Merge branch 'main' into mhegazy/sg-diff-seen-countmhegazy/sg-diff-seen-countMohamed Hegazy
Keeps both sides in emit_metrics: diff_seen stays after the other review tail keys, and the launcher probe keys stay after everything else.
2026-10-22security-guidance: test net_err on the Windows store TLS contextmhegazy/sg-network-failure-classMohamed Hegazy
A failure on the context built for a store with an unreadable certificate, and a store check that itself fails, are still classified.
2026-10-22Merge branch 'main' into mhegazy/sg-network-failure-classMohamed Hegazy
2026-10-21Merge pull request #6849 from anthropics/mhegazy/sg-unreadable-store-certMohamed Hegazy
security-guidance: reviews run when the Windows certificate store has an unreadable entry
2026-10-21Merge pull request #6837 from anthropics/mhegazy/sg-index-copy-gitlinksMohamed Hegazy
security-guidance: keep nested repositories out of the index copy
2026-10-21security-guidance: name the test certificates in the config file so the ↵mhegazy/sg-unreadable-store-certClaude
fixture works with LibreSSL
2026-10-21security-guidance: bump version to 2.0.16Claude
2026-10-21security-guidance: reviews run when the Windows certificate store has an ↵Claude
unreadable entry Older Python releases load each Windows certificate store in one call, so one certificate OpenSSL cannot parse makes the default TLS context fail to build and every review call fails before a request is sent. When that happens the plugin's API calls now use a default context built from the store entries that do parse. Verification of the chain and the host name is unchanged. Review rows carry tls_store_skipped (a count) when this route is in use.
2026-10-21security-guidance: make one nested repository test work on Windowsmhegazy/sg-index-copy-gitlinksClaude
The test deleted a repository with shutil.rmtree, which fails on git's read-only object files there. It moves the directory away instead.
2026-10-20Merge pull request #6604 from anthropics/mhegazy/sg-baseline-subdirMohamed Hegazy
security-guidance: find a rewritten file's earlier version from a repo subdirectory
2026-10-21Merge branch 'main' into mhegazy/sg-index-copy-gitlinksClaude
2026-10-20Merge pull request #6591 from anthropics/mhegazy/sg-stop-pathspecMohamed Hegazy
security-guidance: keep the Stop review working when the changed paths do not fit one command
2026-10-20Merge pull request #6626 from anthropics/mhegazy/sg-pattern-fired-telemetryMohamed Hegazy
security-guidance: report which pattern rules fired on every Stop row
2026-10-20Merge pull request #6629 from anthropics/mhegazy/sg-launcher-probe-timingMohamed Hegazy
security-guidance: report how long the launcher waits for interpreter probes
2026-10-20security-guidance: find the earlier version of a file reached through a ↵mhegazy/sg-baseline-subdirMohamed Hegazy
symlinked folder When the tool's path and the session directory name the same repo through different symlinks (/tmp and /var on macOS), the relative path between the two spellings left the repo and the lookup found nothing, so a rewrite re-reported code that was already in the file. The lookup now tries again with both paths resolved. The first attempt is unchanged.
2026-10-20security-guidance: report why a review call got no HTTP responseMohamed Hegazy
A review call that never gets an HTTP response is reported as api_error -1 whatever the cause, so a certificate failure, a refused connection and a timeout look the same. Rows whose last call failed that way now carry a count-only net_err key: the failure class, the TLS verify code, and whether CA files, a proxy or TLS variables are in play. No behaviour change.
2026-10-20Merge branch 'main' into mhegazy/sg-baseline-subdirMohamed Hegazy
2026-10-20security-guidance: write the baseline lookup test files as bytesMohamed Hegazy
The fixture wrote its files with write_text, which stores "\n" as "\r\n" on Windows, so the committed text no longer equalled the string the tests compare against. The files are now written as bytes.
2026-10-20security-guidance: let the path budget test hold on Windowsmhegazy/sg-stop-pathspecMohamed Hegazy
The expected budget is the platform figure where that is lower than half of what the environment leaves.
2026-10-20Merge pull request #6722 from anthropics/mhegazy/sg-patterns-file-shapeMohamed Hegazy
security-guidance: skip an unusable security-patterns file on its own
2026-10-20security-guidance: keep nested repositories out of the index copyClaude
The hooks run `git stash create` (the turn baseline) and `git add --intent-to-add` (untracked files) on a throwaway copy of the index. A nested repository that the index records is a gitlink entry there. `git stash create` takes no --ignore-submodules option and `git add` reads the gitlinks its paths cover, so both started a second git inside that directory. Before anything runs on the copy, remove the gitlink entry of every nested repository from the copy, never from the real index. If that removal fails, do not use the copy at all: the baseline falls back to HEAD and runs no stash create, and the diff reads the real index with --ignore-submodules=all. A gitlink whose directory has no `.git` (a submodule that is not checked out) stays; git starts nothing there. Run the intent-to-add `git add` with literal pathspecs, in that one call's environment only. The index file is scanned for a gitlink's mode bytes first, so a repository without one starts no extra git process.
2026-10-20security-guidance: count reviews of a diff that was already reviewedMohamed Hegazy
A change that comes back under a new commit (undo and re-commit, rebase before the first push) is unknown to the reviewed-shas record, so the commit or push review runs on it again. Nothing says how often. Each commit and push review now notes a hash of every hunk it is sent in .git/sg-reviewed-diffs, once when it starts and once when it has a verdict, and reports one new metric, diff_seen: 0 some hunk was never reviewed in this clone 1 all were seen, but a review of one has no verdict (yet) 2 all had a finished review, on different repo contents 3 all had a finished review, on the same tree -1 the record could not be read or written Count only: no review is skipped, delayed or changed. The record is bounded (1 MB, 7 days), is not written in portable output mode, and its lock is never waited on for more than half a second.
2026-10-20Merge branch 'main' into mhegazy/sg-stop-pathspecMohamed Hegazy
The batched path commands now read each diff through the bounded reader that main added, so both changes apply to get_git_diff.
2026-10-20security-guidance: test the mask order, not that the masks come lastmhegazy/sg-pattern-fired-telemetryMohamed Hegazy
Other tail metrics are now added after the two warning masks, so the masks are no longer the last keys on the Stop row. What matters is that the fired mask comes after the unresolved one, so a row cut at the key cap loses the fired mask first. Test that, and say so in the comment.
2026-10-20Merge branch 'main' into mhegazy/sg-pattern-fired-telemetryMohamed Hegazy
2026-10-20Merge branch 'main' into mhegazy/sg-launcher-probe-timingmhegazy/sg-launcher-probe-timingClaude
2026-10-20Merge pull request #6630 from anthropics/mhegazy/sg-bump-2.0.15Mohamed Hegazy
security-guidance: bump version to 2.0.15
2026-10-20Merge branch 'main' into mhegazy/sg-sdk-bootstrap-switchesmhegazy/sg-sdk-bootstrap-switchesClaude
2026-10-20Merge pull request #6808 from anthropics/mhegazy/sg-secret-named-telemetryMohamed Hegazy
security-guidance: count secret-named data files in the Stop review set
2026-10-20Merge pull request #6807 from anthropics/mhegazy/sg-stop-diff-memoryMohamed Hegazy
security-guidance: read the Stop review's git diff without holding it whole
2026-10-20Merge pull request #6628 from anthropics/mhegazy/sg-stop-scope-telemetryMohamed Hegazy
security-guidance: report how Stop reviews relate to the session's own edits
2026-10-20Merge branch 'mhegazy/sg-gateway-login' into mhegazy/sg-sdk-bootstrap-switchesClaude
Resolves the overlap with the bootstrap working-directory change and the gateway sign-in route: the import probe keeps the state-dir working directory, and llm.py keeps both imports.
2026-10-20Merge branch 'main' into mhegazy/sg-stop-scope-telemetrymhegazy/sg-stop-scope-telemetryClaude
Resolves the overlap with the baseline-origin change in security_reminder_hook.py: both sets of state keys are stored beside the baseline.
2026-10-20Merge branch 'main' into mhegazy/sg-gateway-loginmhegazy/sg-gateway-loginClaude
2026-10-20Merge pull request #6721 from anthropics/mhegazy/sg-claude-code-credential-filesMohamed Hegazy
security-guidance: keep Claude Code's own credential files out of reviews
2026-10-20Merge pull request #6812 from anthropics/mhegazy/sg-bootstrap-spawn-cwdMohamed Hegazy
security-guidance: run SDK bootstrap subprocesses from the state dir
2026-10-20Merge pull request #6810 from anthropics/mhegazy/sg-stop-baseline-checkoutMohamed Hegazy
security-guidance: do not review against a baseline from another checkout
2026-10-20Merge pull request #6809 from anthropics/mhegazy/sg-reviewer-managed-mcpMohamed Hegazy
security-guidance: run reviews on machines with a managed MCP config
2026-10-20Merge main into mhegazy/sg-stop-diff-memorymhegazy/sg-stop-diff-memoryMohamed Hegazy
Conflict in get_git_diff: main added IGNORE_SUBMODULES to the diff command on the line where this branch resets its read counters. Both are kept.
2026-10-19security-guidance: let the tests that start a stand-in claude run on Windowsmhegazy/sg-gateway-login-wintestMohamed Hegazy
The tests' stand-ins for claude were files with a #! line, which Windows cannot start, so the gateway sign-in tests and the inner-CLI warning test failed there. On Windows a stand-in is now an .exe built the way pip builds a console script, and the gateway one writes its call log as UTF-8. Two tests that move the home directory also set USERPROFILE, and the one test that needs the Agent SDK without saying so is skipped without it.
2026-10-19Merge pull request #6813 from anthropics/mhegazy/sg-nested-reposMohamed Hegazy
security-guidance: stay out of repositories nested in the work tree
2026-10-19security-guidance: let the lone-surrogate path test pass on WindowsMohamed Hegazy
Windows file names can hold a lone surrogate, so the path the test uses as unreadable is an ordinary file in the repo there and the Stop row carries review_scope. Elsewhere the path cannot be encoded and the key is left out, as before.
2026-10-19Merge pull request #6607 from anthropics/mhegazy/sg-launcher-newer-pythonMohamed Hegazy
security-guidance: find Python releases newer than the launcher's list
2026-10-19security-guidance: stay out of repositories nested in the work treemhegazy/sg-nested-reposClaude
A directory with its own .git inside the work tree (a submodule, a vendored checkout, an unpacked archive) was added to the throwaway index as a submodule entry, and git then started a second git inside it to see whether it had changed. Nothing in such a directory is reviewed. git status and work-tree git diff now ignore submodule entries, an untracked nested repository is no longer listed as a changed file or added to the index copy, and a commit that moves a submodule is always shown as its two commit ids.
2026-10-19Merge remote-tracking branch 'origin/main' into mhegazy/sg-gateway-loginClaude
# Conflicts: # plugins/security-guidance/README.md # plugins/security-guidance/hooks/security_reminder_hook.py # plugins/security-guidance/tests/test_no_credentials_notice.py