@sjawhar/claude-envoy 1.25.0 → 1.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -478,7 +478,7 @@ something to count.
478
478
  later release may have it. A timing test can fail too: `internal/dispatch/pmdoc`'s linearity
479
479
  tests time a call by the process's CPU time, which gVisor counts in 10 ms ticks, so a call under
480
480
  10 ms can measure 0 s and the test reports `+Inf times`.
481
- - **`O_NOFOLLOW` guards a leaf and not a component under gVisor.** A lane measured this on
481
+ - **`O_DIRECTORY|O_NOFOLLOW` follows a directory link under gVisor.** A lane measured this on
482
482
  2026-11-01, in a pod under gVisor (`uname` 4.19.0-gvisor) against the same probe on an ordinary
483
483
  kernel, on two filesystems. Almost everything matches: `O_RDONLY|O_NOFOLLOW` on a symlink to a
484
484
  file refuses `ELOOP`, `O_CREAT|O_EXCL|O_NOFOLLOW` on one refuses `EEXIST`, `O_PATH|O_NOFOLLOW`
@@ -486,9 +486,13 @@ something to count.
486
486
  on both. One call differs: `openat(dirfd, <a link to a directory>,
487
487
  O_DIRECTORY|O_NOFOLLOW|O_RDONLY|O_CLOEXEC)`, which the ordinary kernel refuses `ENOTDIR` and
488
488
  gVisor follows with no error. So code that walks a path one component at a time and opens each
489
- with `O_NOFOLLOW` is defeated there while every leaf check still passes, and its tests stay
490
- green on a developer's kernel. A whole block of such tests failing in a pod is that one
491
- property of the environment, not one defect per test. The fix shape holds on both kernels:
489
+ with `O_DIRECTORY|O_NOFOLLOW` is defeated there while every leaf check still passes, and its
490
+ tests stay green on a developer's kernel. Dropping `O_DIRECTORY` changes it, because
491
+ `openat(dirfd, <a link to a directory>, O_RDONLY|O_NOFOLLOW|O_NONBLOCK|O_CLOEXEC)` refuses
492
+ `ELOOP` under gVisor too, measured on 2026-11-08 and relied on by `openSessionFileBeneath` in
493
+ `packages/daemon/cmd/legion/sessions.go`, so what the sandbox follows is the `O_DIRECTORY`
494
+ combination and not `O_NOFOLLOW` itself. A whole block of such tests failing in a pod is that
495
+ one property of the environment, not one defect per test. The fix shape holds on both kernels:
492
496
  the walk cannot trust `O_DIRECTORY|O_NOFOLLOW` there, so it opens each component with
493
497
  `O_PATH|O_NOFOLLOW|O_CLOEXEC`, which opens the entry itself on both kernels, and reads the
494
498
  kind from fstat of that handle. The repository's own instance is `mountPointBeneath` in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "1.25.0",
3
+ "version": "1.26.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",