Commit Graph
782 Commits
Author SHA1 Message Date
vnegriyandClaude Opus 5.5 aa92c3ec1e fix(install-state): stop concurrent Windows writers from starving on rename
On Windows, concurrent writeInstallState calls (and real-time antivirus
scans of each freshly published file) can hold replacement sharing locks
for over a second. renameAtomic retried at a fixed 25 ms interval, which
kept contenders in lockstep, so one writer could lose every round and
give up with EPERM at the 2 s deadline. This made
tests/lib/install-state.test.js fail in about half of isolated runs.

- Retry with a uniform random wait of 1-25 ms instead of a fixed 25 ms.
  Exponential backoff was measured and made starvation worse.
- Add a renameRetryBudgetMs option to writeFileAtomic. The default stays
  2 s, so hook callers keep their latency bound, and the attempt cap is
  derived from the budget (81 for the default).
- writeInstallState uses a 10 s budget, since it runs only during installs.

Measured on Windows 11 with Defender on: install-state test 0/12
failures (previously 4/8).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:47:15 +03:00
haelyra 562b541581 Merge reviewed PR #3106: opt-in context-gate hook 2026-11-17 00:45:08 -05:00
haelyra d64bf7d2b6 Merge reviewed PR #3584: preserve exact lifecycle worktree paths 2026-11-16 22:01:04 -05:00
haelyra e7b578939e Merge reviewed PR #3100: Mistral Vibe native skill target
# Conflicts:
#	README.md
#	manifests/context-packs/skill-triggers@1.json
#	schemas/context-carrier.schema.json
#	scripts/lib/install-manifests.js
#	tests/lib/harness-capabilities.test.js
2026-11-16 22:01:03 -05:00
haelyra 7bb8c65afc Merge reviewed PR #3221: experimental native Antigravity plugin and hooks 2026-11-16 22:00:42 -05:00
haelyra f30cfd0e8c Merge reviewed PR #2846: per-manager dev-server option arity 2026-11-16 21:31:28 -05:00
haelyra 9080e4668a Merge reviewed PR #3870: skip safety-classifier notices in session summaries 2026-11-16 21:31:27 -05:00
haelyra 57df779cd6 Merge reviewed PR #3953: preserve aliases with inherited object names 2026-11-16 21:31:27 -05:00
haelyra dbd56688aa Merge reviewed PR #3952: preserve recordings when fallback writes fail 2026-11-16 21:31:27 -05:00
haelyra b553918a84 Merge remote-tracking branch 'origin/main' into fix/dev-server-block-quoted-scripts
Main kept evolving pre-bash-dev-server-block.js while this branch waited:
tmux pane-launch detection past tmux options and command sequences, bash
double-quote backslash rules, here-document segment scanning and an indexed
segment queue. Resolve by keeping this branch's thin hook and moving main's
current helpers into scripts/lib/dev-command.js, so both dev hooks still
share one classifier without losing main's tmux behavior.

The same resolution makes package-manager option arity manager-specific,
as requested in review: npm -d / pnpm -d are loglevel flags, pnpm -w is
--workspace-root, bun -d is --define <K:V>. A shared value table swallowed
the script after the boolean spellings, so `npm -d run dev` escaped tmux.
2026-11-16 21:15:47 -05:00
haelyra 0fd07ea7e2 Merge origin/main into feat/mistral-vibe-support
Refresh the Mistral Vibe skill target on current main. Keep main's
Copilot and Grok targets, agent/skill/locale selectors and install-config
cases alongside the mistral-vibe target, and take main's skill-triggers
manifest so the digest matches the current catalog.
2026-11-16 21:07:39 -05:00
haelyra f98320f140 fix(antigravity): keep doctor reporting when one target root is unsafe
An Antigravity home whose workflows directory resolves outside the
trusted config root made resolveTrustedRoots throw out of the doctor
loop, hiding results for every other installed target. Report it as an
unsafe-trusted-root error for that target instead, with a regression.

Also align the README support row with the pinned CLI 1.3.5 validation
and leave the shipped 2.2.0 release notes unchanged.
2026-11-16 21:02:31 -05:00
haelyra adcf7be6a7 merge: sync origin/main into feat/antigravity-tier1
Resolve conflicts with grok target and repair source-root changes:
keep both antigravity-home and grok targets, combine main's repair
source root with the PR's trusted-root selection, and rebind the
skill-trigger registry digest to the merged install registry.
2026-11-16 20:59:51 -05:00
haelyra d76848d6db Merge branch 'main' into scout/worktree-nul-paths-20261015 2026-11-16 20:56:35 -05:00
haelyra 9f770ae5a1 chore(hooks): merge main into context-gate carry-forward (#3106) 2026-11-16 20:55:33 -05:00
Rahul Selvaraj f4ff940826 Merge branch 'main' into fix/3867-skip-classifier-notices 2026-11-17 09:27:23 +08:00
Afloat f314b2f2e3 fix(session): preserve recording permissions during staging 2026-11-17 07:06:30 +08:00
Afloat b504f3cdd7 fix(session): treat aliases as own JSON keys 2026-11-17 07:04:23 +08:00
Afloat 0083c6e8ec fix(session): publish fallback recordings atomically 2026-11-17 06:44:03 +08:00
Afloat 087686af59 fix(session): report the latest model from Codex rollouts 2026-11-17 06:25:09 +08:00
haelyra 4df78f0f64 fix: enforce read-only metadata and separate shell token data 2026-11-16 14:11:51 -05:00
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
Rahul Selvaraj dd9f8abb0c fix(hooks): normalize whitespace before matching the classifier notice
isClassifierNotice now collapses whitespace runs itself, so the
session-end hook drops a notice wrapped across lines the same way the
LLM summary path already did.

Assisted-by: Claude <noreply@anthropic.com>
2026-11-11 18:33:02 +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