| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
security-guidance: stop killed hooks from filling the disk (2.0.11)
|
|
bump(figma): 17292073 → f0493295 (v2.2.127)
|
|
Releases before 2.0.10 ran `git stash create` on the real index. When that
git was killed, it left an `index.stash.<pid>` file the size of the index
in the git directory, and nothing removes those: a clone can hold hundreds.
Before it copies the index, the hook now deletes such files once they are
older than 30 minutes. It only touches regular files of the current user
whose name is exactly `index.stash.<digits>`, and never `index.lock`.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QR7edfw5HHkxJvJVgZiWpM
|
|
(2.0.10 → 2.0.11)
In a clone with a very large git index, 2.0.10 could still fill the disk.
It copies the index for each git call that might write it, and a hook that
Claude Code cancels (SIGTERM, then SIGKILL) never reached its cleanup, so
every cancelled hook left index-sized files in the temp directory for up
to 30 minutes. With several agents in one clone the live copies alone
could take many GB.
- A hook told to terminate removes its copies before it exits.
- A copy's name records the hook's pid; the next run deletes copies whose
hook is gone instead of waiting for the age limit.
- Diffs no longer need a copy: diff.autoRefreshIndex is off, so they only
read the index. Only `git stash create` and `git add -N` get one.
- The copy is a hard link where the filesystem allows it.
- Only so many hooks hold a copy at once, fewer as the disk fills. A hook
that gets no slot within 5 s goes without: the baseline falls back to
HEAD, or new untracked files are left out of that review.
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
|
|
anthropics/manual-bumps/2026-10-07-salesforce-development
bump(salesforce-development): c217b703 → 3c15867b (v2.3.0)
|
|
|
|
security-guidance: leave nothing behind when git is killed
|
|
With a very large git index the hook's git calls hit their time limits and
are killed, so git cannot clean up. Each kill could leave an index-sized
file in the temp directory, index.stash.<pid> files in .git, and a dead
.git/index.lock that fails the user's next git add or commit.
- `git stash create` and the work-tree diff run on a throwaway index copy.
- Every git the hook spawns gets GIT_OPTIONAL_LOCKS=0.
- Copies live in a private per-user folder and are removed together with
the files git writes next to them.
- Leftovers older than 30 minutes are swept, including existing ones.
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
security-guidance: follow the newest Opus instead of a pinned release
|
|
(#6349)
|
|
→ 2.0.9)
The review model was hardcoded to claude-opus-4-7, so the plugin fell
behind each time a new Opus shipped.
- The diff review asks the configured endpoint (GET /v1/models) for the
newest Opus it serves, cached for a day; claude-opus-5-5 if it can't say.
- The agentic commit review, and every review on Bedrock, Vertex and
Foundry, use Claude Code's `opus` alias.
- SECURITY_REVIEW_MODEL and SG_AGENTIC_MODEL still pin a model.
- Adds pricing rows for the newer Opus models, and tests.
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
|
Remote-Dev: homespace
Co-authored-by: Fahreddin Özcan <ozcanfahrettinn@gmail.com>
|
|
imessage: surface every inbound image, not just the first
|
|
An iMessage with several photos arrived with only the first one in the
channel tag: handleInbound took the first image attachment and stopped.
Collect every image attachment instead (same filters as before) and pass
each path in the notification meta as image_path, image_path_2,
image_path_3, ... so the model can Read all of them. A single image still
produces exactly image_path, so existing behaviour is unchanged.
Numbered keys rather than an array or a joined list: Claude Code accepts
only string values in channel meta and renders each key as an attribute
on the <channel> tag, so keys must be plain identifiers; one key per path
also avoids inventing a delimiter for sender-controlled filenames. The
attachments query gains ORDER BY a.ROWID so the numbering follows
attachment ROWID (creation) order. Instructions and README updated to
match; version 0.1.0 -> 0.2.0 in plugin.json and package.json.
Known limits, unchanged by this patch: attachments still downloading
when the message row is first polled (filename NULL) are skipped and,
since the poll watermark has already passed the message, never picked up
later; HEIC is passed through unconverted; attachments with a NULL
mime_type still pass the image filter; no cap on images per message.
|
|
mathematics problems (#6322)
Squash merge of 2 commits
|
|
Squash merge of 1 commit
|
|
Squash merge of 2 commits
|
|
* Exempt command sources from scope guard source.url check
Command sources have no repo URL to validate, so the guard no longer fails a non-member PR that adds one.
Remote-Dev: homespace
* Flag unvalidated command sources in scope guard output
Report command-source entries the guard skipped and stop the pass message from claiming every added entry came from a live repo.
Remote-Dev: homespace
|
|
code-modernization: guided workflow with independent proof
|
|
Squash merge of 1 commit
|
|
Usage counts now say what the plugin runs on (system, python status and version, path problems) and which kind of failure happens: a missing or placeholder python, a permission block, a model error, or an error in the plugin's own script. Failures are classified on the machine into a fixed list and only the code is sent, once per kind per session. A session-start ping, once per plugin version, counts machines where nobody gets as far as typing a command. When python cannot run, the shell wrapper reports that itself, and on Windows it falls back to python or the py launcher.
|
|
The plugin now has a version and a changelog. Two hooks record whole-number usage counts (which command ran, how far a system got, how many rules and proofs) through the CLI's own telemetry: counts from 100 up are rounded, nothing is sent when the plugin is not in use, and any of three switches turns it off. The README documents every key and lists what the plugin was tried on, checked against the run files.
|
|
/modernize-review-pane
The pane's bare /modernize-review took the name of the plugin's own review command, so typing the short form in a pane-enabled session opened the pane's cards instead of the pop-up review. The pane's version is now /modernize-review-pane, and /modernize-review always runs the plugin command. Both still write the same review file.
|
|
A rule named only by a skipped or pending test no longer counts as covered. It is listed as "named, not run" and fails the rules check. A test-only folder is listed as tooling and gets no verdict. The verify command tries malformed records only when the person asked for exact behavior, so a proof loop has an end. The report parses rule headings and fields in linear time, and the report and pane show the new status.
|
|
An independent check of a rewritten batch job found differences on two new
inputs of one family (a blank numeric field the rewrite rejects on purpose
and the old program reads as zero). Each input has several output files, so
accepting the deviation meant three or four hand-written entries per input.
A top-level "approvedInputs": {"F23": "reason"} in a cases file now approves
every case that shares that input label. A reason is still required (blank
approves nothing), a case's own reason wins, a missing file is never turned
into a pass, and the result still lists the difference as approved.
|
|
Follow-ups from review of the consolidation pass:
- The agent is a restricted type with the same read-only wording as its
siblings, and every field on its numbered list is a single bounded line, so
a rule name containing a newline cannot fake another entry.
- A group with any number out of range or not an integer is rejected whole
instead of being coerced into a different merge.
- A merge keeps the most conservative review state: the highest priority, the
lowest confidence, and every suspected defect and SME question of the folded
rules.
- Every folded rule is returned with the rule it went into, and the rules
document lists them under "Rules folded into another", so nothing disappears
untraceably. Extra citations show as "Also cited" without the joining word.
|
|
Three ways a same-technology uplift could come out PROVEN too easily:
- The baseline came from a table someone typed. It now counts as measured
only when the script can read per-test results (JUnit or TRX XML, a runner
log with a summary line, or per-test JSON) from analysis/<system>/baseline/
or a "Recorded:" line of BASELINE.md; a counts-only file is ignored, two
measured sources that disagree are a gap, and the typed table must match
what was measured.
- Tests edited during the uplift passed unnoticed. The pack now compares the
legacy and working-copy test files (by walking files only) and lists what
was added, removed or changed; a removed file, more than a quarter of the
files changed, or no legacy tests to compare with is a gap, and it says
plainly that weakened assertions cannot be detected.
- A silent behavioral change with no test at its site. Each Behavioral-silent
delta in the catalog must have a test file naming its site file, or the
module is at most PARTLY PROVEN.
The report's Proof section shows the three new checks, and an uplift pack that
lacks any of them reads as PARTLY PROVEN. 214 script tests pass.
|
|
A numeric library implemented in C, in a C++ header and in a fixed-point
variant produced three "twiddle factor" rules, two "generic butterfly" rules
and two "factorization" rules, because the referee's duplicate key is the
file plus the rule's name. The plan and the review then carry noise.
After verification, one small agent per 150 rules lists the groups that
describe the same behavior implemented in more than one place, told to merge
only what would be implemented and tested as one thing. The kept rule cites
every place (the renderer shows them as "Also cited") and takes the highest
priority of its group; overlapping, out-of-range or self-merging groups are
ignored, and the rule list is fenced as untrusted data. The count is
reported as stats.consolidated.
|
|
Found by reading the commands as an engineer with a large Java 8 system:
- The baseline suite was run "on legacy/<system>", which writes build output
into the source. It now runs on a scratch copy, its result files or log are
kept under analysis/<system>/baseline/ and named in BASELINE.md, and a
typed table alone no longer counts as a measured baseline.
- The working copy no longer carries the source repository's history, keeps
files that look like credentials or production settings out of its first
commit and lists them for a person, and moves that history to its own new
local repository.
- Migration tools (OpenRewrite and the like) run on a scratch copy, never in
the source, since a dry run still builds and downloads.
- A move spanning several versions or two things at once (a JDK and a
framework) is split into hops that each build and test green.
- Tests are not run against a database or service the configuration names
until the person says it is a local or throwaway instance.
- The silent-behavior hunt now names the usual traps for Java, Python, Node
and PHP as well as .NET (locale data, default charset, ORM mappings,
property binding, str/bytes).
- The brief no longer requires business rules for a same-technology uplift:
the recorded baseline is its behavior contract, so extract-rules can wait.
|
|
Adds the pictures the README and the pane docs use: three of the report (the
at-a-glance view when the proof passes, the same view when an independent
check finds a difference the development cases missed, and the proof tab) and
ten of the live pane, drawn by the pane's own code from finished runs. The
report pictures come from real runs; the pane's fleet and x-ray views and its
GIF use scripted agent activity, and the review and sign-off pictures use
sample text, all said so in the pane's README.
The front door names every place a person decides and moves the security scan
first when the person asked for it, and status points a new user to the front
door instead of straight to preflight.
|
|
The pane's button reads "put in prompt" (it never runs the command), the
refresh button is gone (the pane already refreshes after writes, at turn end
and every 20 seconds while idle), the summary line fits a 120-column bar, and
the next-step reasons are short enough to read. A P0 rule under discussion is
listed under Attention ("the build waits"), and a module that is not proven
shows its first reason there. In an uplift, finished modules list before
merely edited ones.
hooks/README.md now names every button and label as the code does, documents
the plugin's /code-modernization:modernize-review command (which writes the
same ledger for people without the pane) and how it differs from the pane's
own /modernize-review, and says which pictures use sample text. 141 engine
tests pass and the type check is clean.
|
|
The report is the page people open first, but it never said what to do
next. It now shows one command with a copy button and a one-line reason,
decided from which artifacts exist (preflight through brief, a rule review
before the plan when rules look wrong, verify after a build, harden, then
status).
Short words and verdict pills no longer break inside narrow table cells
("sam" and "e", "Calculatio" and "n"): only paths and hashes break anywhere.
|
|
baselines
A reviewer's "this rule is wrong" never reached the plan or the rewrite: the
pane wrote a review ledger that no command read, and without the pane there
was no way to write one. /code-modernization:modernize-review asks about the
rules that need judgement (P0 rules with a defect, an SME question or less
than High confidence) in a pop-up, or takes verdicts typed in the request,
and writes the same RULE_REVIEWS.json/.md with an optional note. brief,
transform, reimagine and the test engineer read it: a rule marked wrong is
not an oracle and a P0 rule under discussion blocks.
Running the old system to record a baseline is now limited to the local
machine or a test environment the person named; production or third-party
services, new accounts and real data are off limits unless the approved plan
names them, a token in a recorded response is replaced before anything is
saved, and every command stops the servers it started.
Also: the front door asks in two pop-ups within the four-option limit, every
command points a missing-code user to /modernize <name> --source <path>, the
status inventory and next-step order include review and verify, the
assessment says what Rehost and Replace mean, preflight notes the Windows
python name, and the plugin and marketplace descriptions match what it does.
|
|
/code-modernization:modernize-verify re-checks a finished build instead of
trusting the notes it left behind, and a script (not the model) computes one
verdict per module: PROVEN, PARTLY PROVEN or NOT PROVEN, with the rules
written into the output.
The pack re-reads the tests' own result files or a saved runner log (counts
the command merely reported never count), traces every P0 business rule to a
test that names it, judges the old and new outputs again with compare.py,
then runs at least ten inputs that development did not use on both systems.
It requires a recorded canary that turned tests red, checks that the legacy
source was not touched (by file times: no process runs in the analyzed
tree), and lists every human criterion as waiting for a person. For an
uplift it diffs the fresh results against the recorded baseline. Verdicts
are never carried over from an earlier run.
The report gains a Proof section that recomputes each verdict from the same
checks, and a failed diagram no longer stops the ones after it from drawing.
|
|
On a roughly thousand-line C utility the whole-estate extraction ran four
rounds, spawned 223 agents and returned 141 rules (31 of them P0), because a
model can always find one more micro-behavior in a small program and the loop
only stopped when a round found nothing at all.
Every extractor now gets the same instruction on how fine to cut a rule: one
per business decision or calculation, not per branch or field, skipping
plumbing, roughly one per 40 to 80 lines of real logic, and rating P0 only
for the few rules that would defeat the system's purpose. The whole-estate
loop defaults to two rounds and stops when a round adds under 15% of what
is already catalogued.
|
|
Found by exercising the pane against the real outputs of finished runs:
- Below 144 columns the engine holds an unasked pane back; the pane ignored
that, so it drew no pane, no show bar, and the panel command "hid" a pane
that was never there.
- A symlinked legacy/<name> lists as another kind of entry, so the source
link that preflight now creates was never recognized as a system.
- Uplift and reimagine next steps were placeholders with no button.
- The refresh debounce was starved while agents ran, so the map froze.
- Hostile lines in the brief, rules and baseline could take seconds to match;
lines are now capped. The rule-review ledger is validated on read and
merged on save, and keeps a reviewer's note.
- A baseline with no row read as "the baseline had 0"; one-module baseline
totals now count as that module's row.
New: a verdict chip with words on every built module, a verify-first next
step, and a readable palette that follows the terminal theme. 140 engine
tests pass and the type check is clean.
|
|
Replace mean
Follow-ups from review of the tolerance check: an absolute tolerance above
1e-6 is refused like a relative one above 1%, numbers are compared as exact
decimals rather than doubles, dotted runs such as 1.2.3 or 10.0.0.1 are text
that must match exactly, and the self-check now changes the leading digit of
every sampled number to prove the tolerance cannot hide a real change.
The business-rules header says how many rules there were at extraction, since
later steps add rules. The assessment says what to do when it recommends
Rehost or Replace, which change no code and so have no build command.
|
|
The equivalence check compared bytes only, which cannot pass for numeric
code (Fortran, C, scientific and financial results) whose last digits differ
between compilers and math libraries, so those cases pushed people to mask
the numbers away. A case can now declare a tolerance, relative or absolute,
with a required reason. Only numbers written with a decimal point or an
exponent may differ within it; integers and every other byte must match, a
relative tolerance above 1% is refused, and the tolerance and the largest
difference are recorded in the result. The self-check also fails when a
tolerance is loose enough to hide a change to the leading digit of a number.
|
|
The extractor is told to cite a single file range per rule, but on a large
Perl codebase it kept returning two or three files and a sentence of
explanation in the source field, which the report and the pane cannot
resolve to a line. The renderer now takes the first path:line-range as the
rule's citation and puts anything after it on an "Also cited" line.
|
|
The Workflow tool refuses a plugin script path whenever the plugin lives
outside the working directory, which is the normal case for an installed
plugin: the model failed once or twice on every run before falling back to
the registered name. The commands now call each workflow by its registered
name and mention the script path only as a fallback.
modernize-uplift also referred to legacy/$system_version, which is not an
argument; it now uses $source_version everywhere, and the version pair, the
rewrite target and the vision fall back to analysis/<system>/INTENT.md when
they are not given. The README notes that a scripted (claude -p) run needs
CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0 so long fan-out steps can finish.
|
|
The portfolio sweep let each survey agent pick its own complexity tool, so
one system's number was a per-file total and another's a per-function mean,
and the heat-map compared them anyway. Every agent now takes the same
measure (the per-file decision-point total, and the most complex single
file), the workflow computes complexity per thousand lines in code, and the
table shows those columns. Documentation coverage no longer counts a license
header as documentation.
|
|
/code-modernization:modernize takes no arguments. It finds the code, asks
what the person wants to do with it (a newer version of the same
technology, a rewrite in another one, a rebuild, or just to understand it)
and what must stay true, writes the answers to analysis/<system>/INTENT.md,
shows the road ahead in a few lines, and gives the exact first command.
On a return visit it acts like status.
brief takes its objective, target and each phase's build command from
INTENT.md, and uplift, transform and reimagine fall back to it for their
versions, target and vision, so nobody is asked the same thing twice. The
README's start section now begins with the front door.
|
|
finish
Two problems from running the commands on real repositories:
- The P0 definition was money- and regulation-shaped, so a music-library
tool got no P0 rules and its behavior contract came out empty. P0 now
means the system's core purpose depends on the rule, or a wrong result is
costly or irreversible (money, legal, data integrity, security or safety,
or the central calculation or decision the system exists to perform).
- Citations came back as lists of ranges, and the rule renderer numbered
RULE-NNN in a different order from the document. Each rule now cites one
range and the numbers read in sequence.
Commands that start subagents now say to run them in the foreground and
wait, because a headless session ends when the model stops talking even if
it said it was waiting for a background agent.
|
|
equivalence check
Commands hardcoded legacy/<system>, so code too big to copy, or living at
an absolute path, needed a hand-made symlink. Preflight now takes
--source <path> and makes the legacy/<system> link for you (a junction on
Windows); nothing is copied, and every command says where the link points
before it starts. The harden patch is applied with patch -p1 -d.
Each command ends by naming the next command to run, and the commands are
about a third shorter with no step removed:
- map accepts an existing dependency graph (--graph) or the stack's own
tooling, maps very large estates in resumable chunks, records reflection
targets as unresolved instead of dead, asks before describing more than
40 nodes, and never gives two nodes the same location.
- transform can take its module and target from the brief, counts the
equivalence cases that executed (zero is a failure and a comparison never
skips), shows the tests can fail with a deliberate one-line break, and
hands "same or different" to a script when both systems can run.
- brief writes each phase in one fixed shape: one command, module ids as in
the map, and criteria written as conditions a build command may tick but
not reword.
- reimagine reuses the discovery artifacts instead of extracting them again.
- status names the exact command to paste next.
scripts/build_report.py turns whatever the commands wrote into one
self-contained, offline REPORT.html (Mermaid is vendored, all text from the
analysis is escaped, the quarantined secrets file is never read), and
scripts/compare.py decides byte-for-byte whether two outputs match, records
why, and checks it can fail. The shard builder ignores symbolic links and
paths that leave the source, matches a plain name against what lies beneath
it, and falls back to the directory tree when the map's modules share a
location.
The README drops from 275 to about 100 lines; the pane's reference moves to
hooks/README.md.
|
|
that ship with the plugin
The command used to carry a 35-line shard-building script inline and asked
the model to write a rules renderer on every run, so the shard list and the
BUSINESS_RULES.md layout varied from run to run and could not be tested.
scripts/make_shards.py builds the shard list from topology.json when the map
has run, and from the directory tree when it has not (skipping vendored,
generated and test-fixture directories, one shard per directory, split at 25
files or about 5,000 lines). scripts/render_rules.py turns the workflow's
result into BUSINESS_RULES.md and DATA_OBJECTS.md with RULE-NNN headings, the
SME section and the coverage gaps, and writes every value from the analysis as
plain text.
The workflow takes an optional sourceDir, so the code can live outside the
workspace, and shard files are kept relative to it. The command drops from 305
to about 150 lines.
|
|
The pane adds two kinds of text to what the model reads: a note about the
file it just read (names, rule titles and delta ids from the analysis
files) and a one-line state. Those names were written by analysis agents
from the legacy code, so a hostile comment could reach the model through
them.
Each such value is now cut to one short plain line: control, invisible
and bidirectional characters, backticks, angle and square brackets and
double quotes are replaced, and long values are trimmed. A note opens by
saying its contents are data, never instructions, and closes with an end
line no value can forge. The state line says it is a status line and not
an instruction, and the next-step command names a module only when the
module id is one plain token. The pane lists only system directories
whose names the plugin's workflows accept.
|