Commit Graph
901 Commits
Author SHA1 Message Date
haelyra 050b15801a test: assert artifact read flags outside verifier error handling 2026-11-19 15:30:19 -05:00
haelyra 0d70266cb4 test: bind fixture assertions to descriptors and fixed open modes 2026-11-19 15:29:44 -05:00
haelyra fa198c59a4 test: secure temporary fixtures without filesystem forwarding wrappers 2026-11-19 15:22:51 -05:00
haelyra d26e1d946f Merge reviewed security and evaluation batch preserving fifteen source PRs 2026-11-19 15:22:25 -05:00
haelyra 2105d3279a Merge reviewed PR #3939 opt-in local work-item artifact verification 2026-11-19 15:20:54 -05:00
haelyra 74a474ad1b Merge reviewed adapter and install batch preserving four source PRs 2026-11-19 15:19:51 -05:00
haelyra 66d1ff31cd Merge reviewed PR #3938 same-batch GateGuard denial consistency 2026-11-19 15:18:11 -05:00
haelyra 065e1112ac test: escape astral fixture for Unicode safety policy 2026-11-19 15:17:52 -05:00
haelyra 870e1f0fa9 Merge reviewed PR #4028 into security and evaluation batch 2026-11-19 15:15:21 -05:00
haelyra e380dfe79b Merge reviewed PR #4034 into security and evaluation batch 2026-11-19 15:15:17 -05:00
haelyra d9d342c94f Merge reviewed PR #4033 into security and evaluation batch 2026-11-19 15:15:17 -05:00
haelyra 44b3fa728b Merge reviewed PR #3955 into security and evaluation batch 2026-11-19 15:15:17 -05:00
haelyra 3109f61dca Merge reviewed PR #4020: fix(eval-harness): preserve fixtures when recording fails 2026-11-19 15:15:05 -05:00
haelyra 4277ddd357 Merge reviewed PR #3980: fix(instincts): recognize canonical framework and language aliases 2026-11-19 15:14:57 -05:00
haelyra a8f3704061 Merge reviewed PR #3979: fix(formatter): find shared workspace config above package manifests 2026-11-19 15:14:56 -05:00
haelyra 8a8deeb643 Merge reviewed PR #3977: fix(proximity): resolve emitted module paths to TypeScript sources 2026-11-19 15:14:55 -05:00
haelyra bd8affeb57 Merge reviewed PR #3965: fix(skill-tracker): serialize concurrent append and retention 2026-11-19 15:14:54 -05:00
haelyra 5be687b704 Merge reviewed PR #3963: perf(sessions): stop parsing after the most recent summary turns 2026-11-19 15:14:52 -05:00
haelyra 669b6ac90f Merge reviewed PR #3962: fix(transcripts): complete short reads within the requested tail 2026-11-19 15:14:52 -05:00
haelyra 9155d4448e Merge reviewed PR #3961: fix(project-detect): preserve extras in Python dependency arrays 2026-11-19 15:14:51 -05:00
haelyra c7cc4ed0d5 Merge reviewed PR #3960: perf(project-detect): scan root extensions once per detection 2026-11-19 15:14:51 -05:00
haelyra 6aae31a5ce Merge commit 'refs/review/3987'; commit 'refs/review/4031'; commit 'refs/review/4037'; commit 'refs/review/4038' into review/adapters-20261119 2026-11-19 15:14:26 -05:00
wellkilo 48b63aa711 fix(opencode): resolve home instructions from the install plan
Filter the shipped instruction list to files selected by the install profile and make the retained paths independent of the launch directory. Record the resolved paths for repair, and anchor the bundled skill lookup to the same config root.

Refs #4029
2026-11-18 19:19:39 -08:00
Afloat 912162997e test(sessions): isolate transcript parse counters 2026-11-19 11:09:03 +08:00
Afloat ec6237570b refactor: collect Python dependencies without mutation
Signed-off-by: Afloat <ShuffleMonkey@163.com>
2026-11-19 10:43:56 +08:00
NeoandClaude Opus 5.5 18f1db503a docs(eval-harness): describe digest sort as UTF-16 code-unit order
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:33:37 -05:00
NeoandClaude Opus 5.5 06aeab9aa1 fix(eval-harness): canonicalize toJSON values as JSON.stringify does
canonicalize walked Object.keys and never called toJSON, so every Date
hashed as {}. Replay fixtures are keyed by hashValue({ tool, args }), so a
call with a different Date argument replayed the fixture recorded for
another date instead of failing with tool.fixture_missing, and the stored
response held {} where the live call returned a date.

Call toJSON with the holder key before canonicalizing, matching the JSON
coercion policy the module already follows. Plain JSON data hashes are
unchanged; the pinned byte and hash vectors still pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:32:52 -05:00
NeoandClaude Opus 5.5 0bc6d1d052 fix(eval-harness): make variant directory digests unique and locale-independent
digestDir hashed each file as `path \0 bytes \0` with no length, so file
contents holding NUL could absorb the following files: a one-file tree and
a two-file tree produced the same digest. Frame each file as
`path \0 byteLength \0 bytes`.

Entries were also sorted with localeCompare, which follows the host locale
(sv_SE sorts `ä` after `z`), so the same tree got different digests on
different machines. Sort by code point.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:27:38 -05:00
vnegriyandClaude Opus 5.5 8b4723a613 fix(atomic-write): size the rename attempt cap for the shortest wait
Review feedback (CodeRabbit, Greptile): the attempt cap still assumed
25 ms per wait, but the jittered waits average about 15 ms, so writers
ran out of attempts at roughly 1 s on the default budget and about 5 s
on the 10 s install-state budget.

- Derive the safety cap from the minimum wait, so the elapsed budget is
  what actually stops retries.
- Raise the minimum jittered wait from 1 ms to 5 ms. That keeps the
  safety cap meaningful (401 attempts per default write) while the
  5-25 ms spread still breaks contender lockstep.
- Add tests whose fake clock advances by the requested wait. They fail
  on the previous commit (retries stopped at 1073 ms and 5127 ms) and
  pass now.
- Update the session-aliases bound that encoded the old cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 21:28:58 +03:00
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
Rudy Celekli f4261bd83c fix(eval-harness): preserve fixtures when recording fails 2026-11-18 00:55:35 -05:00
Manuel Albanese b986681b74 test(copilot): verify packed project installer across platforms 2026-11-17 12:23:20 +01:00
Afloat e5d055f2a7 chore: merge main and refresh context registry
Signed-off-by: Afloat <ShuffleMonkey@163.com>
2026-11-17 16:22:48 +08:00
Afloat 4ffff8d4c7 fix(instincts): align alias boundaries and disambiguate Go prose 2026-11-17 14:04:52 +08:00
Afloat e9300358da fix(formatter): honor equivalent Windows home paths 2026-11-17 14:04:49 +08:00
Afloat 89a8bbc205 fix(instincts): recognize canonical framework and language aliases 2026-11-17 13:55:18 +08:00
Afloat 69bbf04bc7 fix(formatter): find shared workspace config above package manifests 2026-11-17 13:54:47 +08:00
Afloat a55b14fe36 fix(proximity): resolve emitted module paths to TypeScript sources 2026-11-17 13:49:39 +08:00
haelyra 8a5cbb7e14 test(hooks): resolve context-gate fixture roots with realpath
Wrap #3106's mkdtemp fixture roots in realpathSync, matching the existing
atomic-write tests, so CodeQL no longer traces shared-temp paths from
these fixtures into read handles. Assertions are unchanged.
2026-11-17 00:45:14 -05:00
haelyra 562b541581 Merge reviewed PR #3106: opt-in context-gate hook 2026-11-17 00:45:08 -05:00
haelyra 9463858287 test(session): locate the mode fixture inside its private directory
Find the published recording by walking the test's mkdtemp directory
instead of reusing the library path helper, whose shared-temp default
CodeQL traces into the read handle. The basename is still asserted
against getFallbackSessionRecordingPath.

(cherry picked from commit 856f9e81ffb89aea02bd276d8ec819fad7f9f827)
2026-11-16 23:29:02 -05:00
haelyra 6ad1587064 test(session): inspect saved recordings through one handle
Resolve each recording fixture root with realpath after mkdtemp, and
check or change the published file's mode through a single opened
descriptor instead of a stat/chmod followed by a later open. This removes
the remaining CodeQL temp-file and check-then-use findings from #3952's
regression test without changing its assertions.
2026-11-16 22:35:15 -05:00
Afloat a796cab879 fix(project-detect): retain multiline continuations and array boundaries 2026-11-17 11:23:16 +08:00
haelyra e413166c50 test(hooks): make context-gate tests portable to Windows (#3106)
The hook proposes a correct absolute checkpoint path on Windows, but the
tests located that line with /^\s+[/\\].*\.md$/, which only matches paths
starting with a slash. Windows paths start with a drive letter (C:\...),
so every case that read the proposed path saw undefined and failed.

- Extract the proposed checkpoint as the indented line that ends in .md
  and satisfies path.isAbsolute, so POSIX and Windows paths both match.
- Include the hook output in the "both fires should propose" assertion
  so a genuine decline is diagnosable from CI logs.
- Write transcript fixtures into private fs.mkdtempSync directories
  instead of predictable names directly under os.tmpdir() (CodeQL
  js/insecure-temporary-file) in context-gate, context-gate-state and
  ecc-context-monitor tests.
2026-11-16 22:07:01 -05:00
haelyra 4b28aa9fe4 test: keep integrated fixtures out of the shared temp directory
Repair the CodeQL findings introduced by this integration without
dismissing any alert:

- OpenSpec validators: express the empty-symbol check as an explicit
  slice instead of an index-versus-length comparison (#2679).
- OpenSpec tests: create file and outside-target fixtures inside private
  mkdtemp directories (#2679).
- Antigravity policy test: give the bridge a private TMPDIR/TEMP/TMP so
  its edit accumulator never lands in the shared temp directory (#3221).
- Session recording test: write partial bytes through the staging
  descriptor and read the saved file through one opened handle (#3952).

Behavior and assertions are unchanged; each focused suite passes.
2026-11-16 22:03:55 -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
Afloat f9f3ed5ccf fix(project-detect): preserve TOML key and multiline string boundaries 2026-11-17 11:00:19 +08:00
Afloat f2d23ded28 fix(skill-tracker): serialize append and retention across processes 2026-11-17 10:53:25 +08:00