Commit Graph
739 Commits
Author SHA1 Message Date
haelyra 926a07b5f8 fix: close metadata races and finish reviewed hook boundaries 2026-11-16 14:00:26 -05:00
haelyra 7da9b1d29c fix: reconcile final context evidence and literal BOM fixture 2026-11-16 13:40:22 -05:00
haelyra 6713636fb9 Merge remote-tracking branch 'origin/pr-3881' into stewardship/20261116 2026-11-16 13:38:19 -05:00
haelyra aabcddebfb Merge remote-tracking branch 'origin/pr-3862' into stewardship/20261116 2026-11-16 13:38:19 -05:00
haelyra 88b550f4b0 Merge remote-tracking branch 'origin/pr-3931' into stewardship/20261116 2026-11-16 13:37:29 -05:00
haelyra 4789eb1189 Merge remote-tracking branch 'origin/pr-3916' into stewardship/20261116 2026-11-16 13:24:34 -05:00
haelyra efe977f3f6 Merge remote-tracking branch 'origin/pr-3915' into stewardship/20261116 2026-11-16 13:24:34 -05:00
haelyra 73d2a0b28b Merge remote-tracking branch 'origin/pr-3910' into stewardship/20261116 2026-11-16 13:24:33 -05:00
haelyra c7315cd673 Merge remote-tracking branch 'origin/pr-3909' into stewardship/20261116 2026-11-16 13:24:33 -05:00
haelyra 8d78e08609 Merge remote-tracking branch 'origin/pr-3933' into stewardship/20261116 2026-11-16 13:22:31 -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 00bd41a414 feat(context): list installed non-ECC skills next to ECC's selection
ECC's selection, candidates, fallback and receipt stay unchanged. Installed non-ECC skills that also match the task are listed as companions in the resolver result, the ecc profile run launch input and the opt-in suggestion hook, so the host can use ECC's skill and the user's own together. A companion clears the automatic-load score bar and either has a matched word in its name or leads every other neighbor by the existing auto-admission margin. No constant changes.

ecc profile neighbors snapshots the provider home's other skills, including the project's own .claude/skills for Claude, and --neighbors or ECC_CONTEXT_NEIGHBORS passes the snapshot in.
2026-11-13 10:42:21 -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
Afloat 3fffe12cd3 fix(sessions): distinguish ID and filename lookups 2026-11-11 22:08:48 +08:00
Afloat 8d0e58094c fix(context): invalidate selections when workflow intent changes 2026-11-11 22:03:01 +08:00
Afloat 01ac0ca4e6 fix(sessions): prefer exact IDs over newer prefix matches 2026-11-11 21:50:33 +08:00
Afloat 21ae946484 fix(project-detect): reject invalid quoted module paths 2026-11-11 21:50:26 +08:00
Afloat b7de3157fd fix(project-detect): decode quoted Go module tokens 2026-11-11 21:41:52 +08:00
Afloat 82bf65024f fix(sessions): preserve complete Markdown sections 2026-11-11 21:30:15 +08:00
Afloat bbdfd133e0 fix(project-detect): read all Go require directives 2026-11-11 21:13:09 +08:00
hpz fc7ec24d56 fix(gateguard): match every .claude/settings*.json variant
The pattern only accepted settings.json and settings.<suffix>.json, so a plain settings-dev.json stayed editable on the subagent paths that only gate sensitive or hard-linked targets. Use settings[^/]*.json and cover the dash-suffixed variants plus a non-settings control.
2026-11-11 09:26:02 +08: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
Cheese 9470dc69a1 fix(scripts): declare package manager validation type guard 2026-11-07 03:40:15 +08: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 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 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 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 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 912fc63c41 Merge reviewed PR #3671 2026-11-05 23:10:45 -05:00
haelyra ab10daba18 Merge reviewed PR #3870 2026-11-05 23:10:32 -05:00
Cheese 4385863e56 fix(scripts): reject inherited package manager names 2026-11-06 11:52:10 +08: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 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
Rahul Selvaraj 846a561a7b fix(hooks): drop classifier notices from LLM summary input
The safety-classifier notice filter only covered the mechanical summary.
When generateSessionSummary runs (low context or message interval),
extractConversationText read the raw transcript and passed the notice to
the LLM as a user turn, so it could still reach saved context.

Move the check into one shared isClassifierNotice() in
scripts/lib/llm-summary.js and use it in both userMessageText() and
extractConversationText(). Add LLM-path regression tests, and split the
session-end classifier-notice tests into small functions (<50 lines).

Refs #3867

Assisted-by: Claude <noreply@anthropic.com>
2026-11-05 18:06:51 +08:00
L4XB 04f32e06e7 Merge remote-tracking branch 'origin/main' into fix/shell-split-newlines 2026-11-05 10:27:19 +01:00
L4XB 80a26c2ceb fix(hooks): read $$ as the process ID before looking for $'...'
In `echo $$'\'; npm run dev`, Bash reads `$$` as the process-ID parameter
and the quote after it as an ordinary single quote, so it runs
`npm run dev`. The splitter took the second `$` as the start of ANSI-C
quoting, which hid the semicolon, and a here-document delimiter such as
`$$'EOF'` was read as `$EOF`, so the body never ended. Consume the `$$`
pair first in both places.
2026-11-05 10:27:19 +01:00
haelyra 7a0188db61 fix(hooks): honor Bash quote boundaries in dev guard
(cherry picked from commit f4bf43c550)
2026-11-05 10:23:23 +01:00
kevin 3d7034872e fix(memory): scan decoded fields for secrets, not serialized JSON 2026-11-05 06:27:55 +09:00
kevin cfe051de5f fix(memory): flag GitHub ghu_ tokens as suspected secrets 2026-11-05 06:19:48 +09:00
huangpz6andTRAE 01c2426b2c fix(gateguard): classify settings through real paths and .claude project roots (#3862)
A symlink alias to .claude/settings.json resolved past the lexical settings check, and a project whose root is .claude collapsed the class path to bare settings.json. Judge the resolved absolute path and the symlink-resolved path as well, with regressions for both.

Co-Authored-By: TRAE <noreply@trae.ai>
2026-11-04 21:52:33 +08:00