summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2026-10-27security-guidance: stop starting the packaged Python alias on every hookmhegazy/sg-launcher-alias-real-pathmhegazy
On Windows with the Python Install Manager, python, python3 and py are packaged aliases under ...\Microsoft\WindowsApps, and each start of one makes Windows run an App Installer update check for the package. The launcher started the chosen alias twice per hook (probe, then the hook), on every Edit, prompt and Stop. See anthropics/claude-code#98929. When the name that answers is such an alias and its interpreter is a regular python*.exe elsewhere, the launcher now checks that interpreter once (same version, reads the hook script when started by itself), runs the hook with it, and keeps its path in the state folder for a day. Later hooks start it directly: one process, none through the alias. The remembered path is used only while PATH and the hook folder are unchanged and the file is still there. A hook that fails on it empties the entry so the next hook searches again. Not used while VIRTUAL_ENV is set. Other systems, regular installs and Microsoft Store Python are unchanged. Hooks report launcher_direct (1 remembered, 2 just checked) as the last metric key on rows they already send.
2026-10-27Merge remote-tracking branch 'origin/main' into mhegazy/sg-secret-rename-pairingmhegazy/sg-secret-rename-pairingMohamed Hegazy
# Conflicts: # plugins/security-guidance/hooks/diffstate.py
2026-10-27Merge pull request #6906 from anthropics/add-plugin-versionsMohamed Hegazy
Give ten plugins explicit versions
2026-10-27Merge pull request #6905 from anthropics/port-code-review-from-claude-codeMohamed Hegazy
code-review: bring in the newer command from anthropics/claude-code
2026-10-26Merge pull request #6908 from anthropics/mhegazy/sg-bump-2.0.17Mohamed Hegazy
security-guidance: bump version to 2.0.17
2026-10-26Merge pull request #6875 from anthropics/mhegazy/sg-inflight-windows-lockMohamed Hegazy
security-guidance: hold in-flight review markers on native Windows too
2026-10-27security-guidance: bump version to 2.0.17mhegazy/sg-bump-2.0.17mhegazy
2026-10-26Merge pull request #6903 from anthropics/mhegazy/sg-reviewer-stage-metricsMohamed Hegazy
security-guidance: report turns and model time of a commit review (measure only)
2026-10-26Merge remote-tracking branch 'origin/main' into HEADmhegazy/sg-inflight-windows-lockClaude
2026-10-26Merge remote-tracking branch 'origin/main' into HEADmhegazy/sg-reviewer-stage-metricsClaude
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-26Merge pull request #6858 from anthropics/mhegazy/sg-prompt-capture-timeMohamed Hegazy
security-guidance: report where a slow prompt's time goes
2026-10-26code-review: add version 1.0.1port-code-review-from-claude-codeClaude
Without a version, every commit to this repository counts as a new version of the plugin. 1.0.1 sits above the old copy's 1.0.0, so existing installs of that copy update to this one. Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-10-26Give ten plugins explicit versionsadd-plugin-versionsClaude
Without a version, every commit to this repository counts as a new version of a plugin, so users get no-op updates. Each version sits above the one in the old anthropics/claude-code copy, so existing installs of that copy update to this one. From now on, a change to these plugins reaches existing installs only when its version is bumped. Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-10-26code-review: bring in the newer command from anthropics/claude-codeClaude
This copy was behind the one in anthropics/claude-code, which adds inline review comments, a --comment flag and dedicated bug-finding agents. Reviews now print to the terminal unless --comment is passed. Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-10-26security-guidance: report how many turns and how much model time a commit ↵Mohamed Hegazy
review took review_ms says how long an agentic commit review took but not why. Add one count-only key, rv_effort, on rows where the agentic reviewer ran: the turns it took and the time it spent waiting on the model, summed over all stages and packed as turns * 10,000,000 + model ms. It is emitted after every other key, so it never displaces one at the metric key cap. No behaviour change.
2026-10-23bump(salesforce-development): 3c15867b → d3088edf (#6876)github-actions[bot]
2026-10-23security-guidance: hold in-flight review markers on native Windows tooMohamed Hegazy
A commit or push review marks the commits it is reviewing by holding a lock on .git/sg-inflight-<sha>, so a push made meanwhile waits for that review instead of reviewing the same commit again. The lock was flock only. Native Windows Python has no fcntl, so there were no markers there and a push right after a commit still ran a second full review. On Windows the same shared/exclusive, never-waiting lock is now taken with LockFileEx, on a byte far past the end of the empty marker so that reading or copying the file is never refused. Windows will not delete an open file, so a marker is closed before it is deleted there, with a short retry while another review has it open; what cannot be deleted is left unlocked and swept once old, as before. Also: one marker that cannot be opened, or whose last holder deletes it between this review's open and lock, no longer costs the review its claim on the remaining commits. The in-flight tests no longer require fcntl, so they run on Windows.
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-22bump(databricks): e77e37e8 → c1964266 (#6454)github-actions[bot]
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-22security-guidance: stand-in CLI in the session transcript tests logs as UTF-8Mohamed Hegazy
The commit reviewer's system prompt has a character the Windows default encoding cannot write, so on Windows the stand-in failed before logging the review launch and three tests saw no launch.
2026-10-22security-guidance: let the test API stub serve servers that keep no request ↵Mohamed Hegazy
bodies
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: session transcript tests use the shared stand-in CLIMohamed Hegazy
The stand-in inner CLI was a /bin/sh script, which cannot be started on Windows. Use the test suite's write_cli helper instead.
2026-10-22Merge branch 'main' into mhegazy/sg-review-sessions-not-savedMohamed Hegazy
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-22security-guidance: test the kept old name beside a nested repository and a ↵Mohamed Hegazy
split path list
2026-10-22Merge remote-tracking branch 'origin/main' into mhegazy/sg-secret-rename-pairingMohamed Hegazy
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 remote-tracking branch 'origin/main' into ↵Claude
mhegazy/sg-stop-finding-names-unwritten
2026-10-20security-guidance: match edited paths when the repo folder is spelled in ↵Mohamed Hegazy
another case On file systems that ignore case, realpath keeps the case a path was given in, so an edit recorded as /TMP/x/REPO/app.py for a repo at /tmp/x/repo was counted as outside the repo. Fold case (and, on macOS, normalize) the whole path and the root before taking the relative path, not only the result.
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.