Commit Graph
1470 Commits
Author SHA1 Message Date
haelyra f2f3375838 Merge remote-tracking branch 'origin/pr-3921' into stewardship/20261116
# Conflicts:
#	manifests/context-packs/skill-triggers@1.json
2026-11-16 13:24:32 -05:00
haelyra 8d78e08609 Merge remote-tracking branch 'origin/pr-3933' into stewardship/20261116 2026-11-16 13:22:31 -05:00
haelyra 88e8a4db07 Merge remote-tracking branch 'origin/pr-3894' into stewardship/20261116 2026-11-16 13:20:47 -05:00
haelyra 66aede496c Merge remote-tracking branch 'origin/pr-3926' into stewardship/20261116 2026-11-16 13:20:47 -05:00
Neo 8f0dd2ca3a fix(eval): record fulfilled async tool responses 2026-11-13 15:17:43 -05:00
montjeffrey bf7f495a53 fix(harness): canonicalize source_doc containment with native realpath
Resolve both sides of the source_doc containment check with
fs.realpathSync.native (falling back to fs.realpathSync). With the JS
realpath, a repo root reached through a Windows 8.3 short name stays in
short form while an in-repo symlink whose target uses the long-path form
resolves to the long form, so a legitimate in-repo doc was reported as
"resolves outside repository root". Escapes outside the repo are still
rejected.

Adds a cross-platform regression test that models differing JS and
native realpath results: in-repo docs are accepted through a short-form
root and an outside target is still rejected. It fails on the previous
implementation.

Not required for the #3882 Windows CI fix; kept as a separate commit so
it can be taken or dropped on its own.
2026-11-12 00:21:26 -05:00
yuhoyuho bcad1b982c fix(control-pane): bound action output capture and preserve streamed UTF-8 2026-11-12 09:36:35 +09:00
yuhoyuho 322e347a86 fix(gateguard): gate DROP DATABASE, DROP SCHEMA and ALTER TABLE ... DROP COLUMN
DESTRUCTIVE_SQL matched only DROP TABLE, DELETE FROM and TRUNCATE.
`psql -c "DROP DATABASE prod"`, `DROP SCHEMA public CASCADE` and
`ALTER TABLE users DROP COLUMN email` went to the routine gate instead
of the destructive gate, even though each loses at least as much data
as DROP TABLE.

Add DROP DATABASE, DROP SCHEMA and an ALTER TABLE ... DROP COLUMN arm
to the phrase check. The DROP COLUMN arm stops at `;` so it never
matches across two statements. It requires the COLUMN keyword so
ALTER COLUMN ... DROP DEFAULT / DROP NOT NULL stay passive. Existing
literal and quote stripping keeps SQL strings, commit messages and
echo mentions passive.

Update the gateguard trigger list (en, ja-JP, zh-CN) and rebind the
skill-triggers registry digest for the SKILL.md body edit. Skill
descriptions and triggers are unchanged.
2026-11-12 01:08:39 +09:00
montjeffrey cefc906288 fix(grok): compare worktree roots with native realpath on Windows
GitHub Windows runners use an 8.3 short path for os.tmpdir()
(C:\Users\RUNNER~1\...). git rev-parse --show-toplevel returns the long
path, but JS fs.realpathSync does not expand 8.3 short names, so
isGitWorkTreeRoot compared unequal for a valid worktree and source
preparation fell through to the registry branch and threw.

Prefer fs.realpathSync.native (falling back to realpathSync for injected
fakes) in isGitWorkTreeRoot and findRegistrySource. Fail-closed behavior
is unchanged. Adds cross-platform and Windows-only regression tests.

Fixes the windows npm/full lane on #3882.
2026-11-09 22:07:06 -05:00
Angga Julyananda Pradana b37b73248b fix(hooks): preserve Git built-ins with same-name aliases 2026-11-08 12:20:15 +07:00
Angga Julyananda Pradana 69e9facd5a fix: block command-supplied Git alias invocations 2026-11-08 11:45:35 +07:00
haelyra 6cf1eb55b1 chore(ci): sync main before PR cap integration 2026-11-06 16:21:06 -05:00
haelyra f5ff589cd1 fix: close remaining integration security gaps 2026-11-06 00:10:49 -05:00
haelyra bfb4dbe7b0 fix: harden integration security findings 2026-11-06 00:03:44 -05:00
haelyra b2ea647d41 fix: reconcile combined integration test contracts 2026-11-05 23:53:59 -05:00
haelyra 8da4a5f858 fix: preserve reviewed OpenCode install migration 2026-11-05 23:40:25 -05:00
haelyra 4b0bac4ba2 Merge reviewed PR #3854 2026-11-05 23:38:59 -05:00
haelyra 2fd58bd692 Merge reviewed PR #3650 2026-11-05 23:29:38 -05:00
haelyra a032472448 Merge reviewed PR #2856
# Conflicts:
#	manifests/context-packs/skill-triggers@1.json
2026-11-05 23:28:21 -05:00
haelyra 001df488e5 fix: reconcile reviewed integration repairs and generated catalogs 2026-11-05 23:26:12 -05:00
haelyra c9ebc0f2d1 Merge reviewed PR #3853
# Conflicts:
#	scripts/hooks/run-with-flags.js
2026-11-05 23:24:32 -05:00
haelyra cf5c041ea8 Merge reviewed PR #3848 2026-11-05 23:24:06 -05:00
haelyra ba3042a85d Merge reviewed PR #2496 2026-11-05 23:13:00 -05:00
haelyra c054b3053c Merge reviewed PR #3811 2026-11-05 23:12:33 -05:00
haelyra 8b19acc97d Merge reviewed PR #3819
# Conflicts:
#	tests/hooks/block-no-verify.test.js
2026-11-05 23:12:26 -05:00
haelyra ee1ec55232 Merge reviewed PR #3820 2026-11-05 23:12:13 -05:00
haelyra 5e170cfa10 Merge reviewed PR #3813 2026-11-05 23:12:13 -05:00
haelyra 917ed1fd2c Merge reviewed PR #3873 2026-11-05 23:11:46 -05:00
haelyra c20ca2f20c Merge reviewed PR #3872 2026-11-05 23:11:46 -05:00
haelyra acb2ac57a4 Merge reviewed PR #3838 2026-11-05 23:11:09 -05:00
haelyra 1ea3af26ec Merge reviewed PR #3865 2026-11-05 23:11:09 -05:00
haelyra 01e4f8bd44 Merge reviewed PR #3864 2026-11-05 23:11:09 -05:00
haelyra fceb970215 Merge reviewed PR #3862 2026-11-05 23:11:09 -05:00
haelyra 75322d5bb0 Merge reviewed PR #3675 2026-11-05 23:11:08 -05:00
haelyra 5d64ad64f3 Merge reviewed PR #3672
# Conflicts:
#	scripts/hooks/pre-bash-commit-quality.js
2026-11-05 23:10:59 -05:00
haelyra 912fc63c41 Merge reviewed PR #3671 2026-11-05 23:10:45 -05:00
haelyra 632aeb4d76 Merge reviewed PR #3663 2026-11-05 23:10:32 -05:00
haelyra ab10daba18 Merge reviewed PR #3870 2026-11-05 23:10:32 -05:00
haelyra a222e0091b Merge reviewed PR #3849 2026-11-05 23:10:32 -05:00
haelyra 22596737f7 Merge reviewed PR #3829 2026-11-05 23:09:32 -05:00
haelyra 759a3ba299 Merge reviewed PR #3822 2026-11-05 23:09:32 -05:00
haelyra 44de2e5996 Merge reviewed PR #3814 2026-11-05 23:09:32 -05:00
haelyra 14221ef652 Merge reviewed PR #3881 2026-11-05 23:09:32 -05:00
Cheese 4385863e56 fix(scripts): reject inherited package manager names 2026-11-06 11:52:10 +08:00
Gaurav DubeyandClaude Opus 5.5 f0eee4b543 fix(hooks): redact JWTs joined to an underscore-prefixed label
The JWT chain scanner only accepted a header at the start of a segment or
after `-`, so `session_<JWT>` reached the audit and cost logs unredacted.
Treat `_` as a prefix boundary too and cover it in the tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 03:30:52 +00:00
Rahul Selvaraj feac4f52ba fix(hooks): match the full classifier notice, isolate test env
CLASSIFIER_NOTICE matched by prefix, so a pasted notice followed by a
user question was dropped from both summary paths. Anchor it to the
whole message so trailing user text is kept, and add a regression test.

Also pass ECC_SKIP_LLM_SUMMARY=1 in the withTranscript fixture helper so
an inherited ECC_LLM_SUMMARY_INTERVAL=1 cannot trigger claude -p.

Refs #3867

Assisted-by: Claude <noreply@anthropic.com>
2026-11-06 08:47:21 +08:00
L4XB fee3d08666 fix(hooks): drop line continuations before checking text after a commit here-document
In double quotes Bash drops a backslash-newline before it expands
anything, so a tail of `$\<newline>HOME` after the substitution's `)` is
`$HOME` and expands. The expansion check read the tail with the
continuation still in it and saw an escaped newline, so the hook
validated `fix: a$HOME` with no warning. Continuations are now dropped
first, while other escapes stay for the check: `\$\<newline>HOME` is
still the literal `$HOME`.
2026-11-05 14:36:26 +01:00
L4XB 2ff19fafa0 fix(hooks): read text after a commit here-document's substitution
In `-m "$(cat <<'EOF' … EOF\n)."` Bash drops the body's trailing newlines
and adds the period, so Git records `fix: update input.`, but the hook
checked only the here-document and missed the trailing-period warning.
Read the rest of the quoted value after the substitution's `)` and add
it to the message as double-quoted text. Commands or an expansion after
the here-document make the message unverifiable, as an expansion in an
unquoted body already does. The here-document reading moves into
readHeredocMessage, which also returns the Bash 3.2 note.
2026-11-05 13:22:57 +01:00
L4XB 34e41430b1 perf(hooks): read the dev guard's segment queue by index
Since expanded here-document segments are queued too, a long substitution puts every segment in the queue, and shift() copied it each time: 130,000 segments took about 20 s, past the hook timeout. An index keeps the walk linear (under 0.3 s).
2026-11-05 13:14:48 +01:00
L4XB 30eb570117 fix(hooks): read NUL-ended delimiters, Bash blanks before #, and long bodies
Bash ends a decoded $'...' string at its first NUL, so `cat <<$'EOF\0X'`
ends at the line EOF, but the splitter looked for EOF\0X and swallowed
the commands after the body. A carriage return or a no-break space is
not a blank to Bash, so `echo foo\r# && npm run dev` runs the dev
server, but the splitter read the # as a comment. And spreading a long
substitution's segments into push() threw RangeError, which the hook's
catch turned into an allow. Truncate the decoded part at the NUL, use
Bash's blanks for word starts, and append the segments one at a time.
2026-11-05 13:07:21 +01:00