Repository navigation
feat(ssh): rung B glibc 2.17 compat runtime; gate remote vault on host node:sqlite - #24148
Conversation
|
| } else { | ||
| const source = slotFiles.get(filename) ?? join(basePackageDir, ...filename.split('/')) | ||
| copy(source, staged, isExecutable(filename)) | ||
| } | ||
| files[filename] = sha256(staged) |
There was a problem hiding this comment.
Compat watcher lacks floor check
The compat template copies watcher.node from the base target, but packaging checks only the compat node-pty prebuild against the glibc 2.17 floor. If a future watcher build needs newer glibc symbols, template verification will still accept it, leaving a rung B artifact that cannot load on the hosts it targets. Checking the assembled compat payload would catch that change before release.
Knowledge Base Used: Remote connectivity and execution
Comments Outside DiffThese findings could not be posted inline.
|
There was a problem hiding this comment.
ℹ️ No critical issues — a stale doc section plus two rough edges inline.
Reviewed changes
- Rung B now runs —
COMPAT_RELAY_RUNTIMESlistslinux-x64-glibc217;rungBCompatRuntimeForselects it below the 2.28 floor or after rung A refusedlibc_floor/missing_lib, andplanRelayRuntimeStepcase B builds a real compat plan instead of always refusing. - Compat slot plumbing —
pinnedNodeRuntimeAsset/COMPAT_SERVER_TARGET_BASESroute every target-to-asset lookup; the prebuilt loader falls back to the compat slot only when its own slot is missing or too new for the host glibc; the template build stages a compat target and the packaged-template verifier treats it as optional. - Runtime-store GC pins both runtimes —
relayRuntimeStorePinskeeps the default and compat shas so a rung A pass cannot collect rung B's runtime. - Rung C vault gating —
hasNodeSqliteReaderApinow requiresbackup()alongsideDatabaseSync, and the remote OpenCode reader reports a versioned "unavailable" message. - Rung D noexec recovery — a replayed (remembered) noexec is dropped when the pass settles at D, so allowing exec is re-proved on the next connect.
Verified locally: pnpm tc passes and all 13 changed test files pass (171 tests).
ℹ️ Stale doc section says nothing installs the compat slot
docs/reference/linux-glibc-compatibility.md:131 still ends with "Nothing installs it yet: the loader and the SSH deploy still choose only default slots." This PR is precisely the change that makes that false — the prebuilt loader now picks the compat slot and the SSH relay deploy now builds it — so the section should be corrected rather than left to mislead the next reader.
Technical details
# Stale statement in linux-glibc-compatibility.md
## Affected sites
- `docs/reference/linux-glibc-compatibility.md:131-136` — "Nothing installs it yet: the loader and the SSH deploy still choose only default slots."
## Required outcome
- The doc should describe the compat slot as now selected by the prebuilt loader
(`node-pty-prebuilt-slot.ts` `chooseSlot`) and deployed by rung B
(`ssh-relay-runtime-step-plan.ts` case `B`), while noting the remaining gaps the PR body
already lists (no compat prebuild in the release pipeline, no real CentOS 7 run,
`watcher.node` unverified on glibc 2.17).DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
| if (rung === 'C' && this.selfTest === 'passed' && this.pinnedRefusal === 'noexec') { | ||
| // Why also at D on a replayed noexec: nothing connects there, so the next connect re-proves A | ||
| // instead of the message's "allow exec" advice being unfixable. | ||
| const disproved = rung === 'C' && this.selfTest === 'passed' |
There was a problem hiding this comment.
A successful rung B loads its addons from the same ~/.orca-remote tree and sets selfTest === 'passed' (via verifyPinnedRelayInstall), so it disproves a remembered noexec exactly as rung C does. With only C checked, a host that allowed exec still persists pinnedRefusal: 'noexec' and skips rung A on every later connect (it keeps working on B, but never re-proves A). Including B here is what actually returns the host to rung A after the mount is fixed.
| const disproved = rung === 'C' && this.selfTest === 'passed' | |
| const disproved = (rung === 'C' || rung === 'B') && this.selfTest === 'passed' |
0b4317d to
09b8682
Compare
09b8682 to
7148f36
Compare
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between aaae3f29c4b2cb2e51528818aee04160350e74da and 9edff5d. 📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe changes add a Linux x64 glibc 2.17 compatibility runtime and node-pty slot. They package and verify optional compatibility targets and select compatible pinned runtimes for relay deployment. Runtime materializers and cleanup now support compatibility runtime assets. The runtime ladder tracks remembered noexec refusals and updates unavailable-runtime messages. SQLite availability checks use a shared helper, and the OpenCode reader reports Node.js version requirements when unavailable. Priority: ➖ Normal Merge Risk: 🟡 Moderate · up to The compatibility relay can launch on CentOS 7, but filesystem watching can fail because its inherited watcher requires newer system libraries. Provide a compatible watcher or withhold that target before merging. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The compatibility runtime retains pinned-download verification and executable checks. No new authentication bypass or privilege expansion was established. A recovery gap can keep an older host unavailable after its execution restriction is repaired, and complete recovery and native-library compatibility coverage remains uncertain. Retained concerns
Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 51.43% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 70 functions across 34 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: c245c0b6-34eb-4ef7-8f47-2ae785827b66
📥 Commits
Reviewing files that changed from the base of the PR and between 38cb4a0 and 7148f36a5e940402898adae0753cdac4607067a9.
📒 Files selected for processing (29)
config/scripts/build-orcad-template.mjsconfig/scripts/orcad-template-test-fixture.mjsconfig/scripts/verify-packaged-orcad-template.cjsconfig/scripts/verify-packaged-orcad-template.test.mjssrc/main/ai-vault-search/session-search-sqlite-support.test.tssrc/main/ai-vault-search/session-search-sqlite-support.tssrc/main/orcad/node-pty-prebuilt-slot.test.tssrc/main/orcad/node-pty-prebuilt-slot.tssrc/main/ssh/orcad-artifact-materializer.test.tssrc/main/ssh/orcad-artifact-materializer.tssrc/main/ssh/orcad-remote-node-runtime-windows.tssrc/main/ssh/orcad-remote-node-runtime.tssrc/main/ssh/pinned-runtime-materializer.tssrc/main/ssh/remote-node-runtime-store-gc.test.tssrc/main/ssh/ssh-relay-deploy-pinned-node.test.tssrc/main/ssh/ssh-relay-deploy.tssrc/main/ssh/ssh-relay-opencode-pinned-node.test.tssrc/main/ssh/ssh-relay-opencode-pinned-node.tssrc/main/ssh/ssh-relay-opencode-runtime.test.tssrc/main/ssh/ssh-relay-pinned-node.test.tssrc/main/ssh/ssh-relay-pinned-node.tssrc/main/ssh/ssh-relay-runtime-ladder.test.tssrc/main/ssh/ssh-relay-runtime-ladder.tssrc/main/ssh/ssh-relay-runtime-resolution.test.tssrc/main/ssh/ssh-relay-runtime-resolution.tssrc/main/ssh/ssh-relay-runtime-step-plan.tssrc/relay/ai-vault-opencode-reader.test.tssrc/relay/ai-vault-opencode-reader.tssrc/shared/node-runtime-pin.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
| /** | ||
| * A compat target (design D6 rung B) is its base target's package with the compat node-pty | ||
| * slot and runtime marker swapped in; everything else is target-independent or libc-static. | ||
| * Omitted, not failed, when this build has no compat slot: rung B then refuses as unavailable. | ||
| */ | ||
| function stageCompatTarget(compat, basePackageDir) { | ||
| const problems = findSlotProblems(readManifest(ORCAD_PREBUILDS_DIR), ORCAD_PREBUILDS_DIR, [ | ||
| compat | ||
| ]) | ||
| if (problems.length > 0) { | ||
| process.stdout.write( | ||
| `[build-orcad-template] skipping compat target ${compat}: ${problems.join('; ')}\n` | ||
| ) | ||
| return null | ||
| } | ||
| const destination = join(outputDir, ORCAD_TEMPLATE_TARGETS_DIR, compat) | ||
| const slotFiles = new Map( | ||
| orcadNodePtySlotFiles(compat).map((file) => [ | ||
| `${ORCAD_NODE_PTY_DIR}/build/Release/${file}`, | ||
| join(ORCAD_PREBUILDS_DIR, compat, ...file.split('/')) | ||
| ]) | ||
| ) | ||
| const files = {} | ||
| for (const filename of orcadTemplateTargetFilenames(compat)) { | ||
| const staged = join(destination, ...filename.split('/')) | ||
| if (filename === ORCAD_SERVER_TARGET_FILENAME) { | ||
| mkdirSync(dirname(staged), { recursive: true }) | ||
| writeFileSync(staged, `${compat}\n`) | ||
| } else if (filename === ORCAD_NODE_RUNTIME_MARKER_FILENAME) { | ||
| mkdirSync(dirname(staged), { recursive: true }) | ||
| writeFileSync(staged, `${pinnedNodeRuntimeAsset(compat).executableSha256}\n`) | ||
| } else { | ||
| const source = slotFiles.get(filename) ?? join(basePackageDir, ...filename.split('/')) | ||
| copy(source, staged, isExecutable(filename)) | ||
| } | ||
| files[filename] = sha256(staged) | ||
| } | ||
| return { files } | ||
| } | ||
|
|
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🏁 Script executed:
git rev-parse HEAD
git diff 38cb4a0ac82d4de20637fd45e77860a043a2b261 7148f36a5e940402898adae0753cdac4607067a9 -- config/scripts/build-orcad-template.mjs
sed -n '65,175p' config/scripts/build-orcad-template.mjs
rg -n 'watcher.node|watcher.*glibc|glibc.*watcher' config/scripts src/main/ssh src/relay src/sharedRepository: stablyai/orca
Length of output: 11386
🏁 Script executed:
#!/bin/bash
set -e
printf '%s\n' '--- target mappings and artifact definitions ---'
rg -n -C 8 'COMPAT_SERVER_TARGET|pinnedNodeRuntimeAsset|orcadTemplateTargetFilenames|ORCAD_PARCEL_WATCHER_NATIVE|orcadNodePtySlotFiles' src/shared config/scripts
printf '%s\n' '--- watcher package and build metadata ---'
rg -n -C 10 'watcherPackageIdentity|watcher-linux-x64-glibc|glibc.*floor|GLIBC_|GLIBC_2\.17|verify-linux-glibc-floor|prebuild' config/scripts package.json pnpm-lock.yaml src
printf '%s\n' '--- relay watcher loading and fallback ---'
rg -n -C 12 'watcher\.node|@parcel/watcher|watcher|rung.?B|compat.*unavailable|unavailable' src/main/ssh src/relay src/shared config/scripts
printf '%s\n' '--- focused source slices ---'
sed -n '1,220p' src/shared/node-runtime-pin.ts
sed -n '1,180p' src/shared/orcad-artifacts.ts
sed -n '1,220p' src/main/ssh/ssh-relay-pinned-node.test.ts
sed -n '1,180p' config/scripts/verify-linux-glibc-floor.test.mjs
sed -n '200,330p' config/scripts/verify-linux-glibc-floor.cjsRepository: stablyai/orca
Length of output: 45662
🏁 Script executed:
#!/bin/bash
set -e
printf '%s\n' '--- exact compat/runtime metadata ---'
sed -n '1,175p' src/shared/node-runtime-pin.ts
sed -n '1,230p' src/shared/orcad-artifacts.ts
printf '%s\n' '--- floor verifier exports and invocation ---'
rg -n -C 12 'SERVER_SLOT_GLIBC_FLOOR|COMPAT_SLOT_GLIBC_FLOOR|verifyLinuxGlibcFloor|findFloorViolations|verify-linux-glibc-floor' config/scripts --glob '!*.test.mjs'
printf '%s\n' '--- watcher package source and package selection ---'
sed -n '1,180p' config/scripts/orcad-watcher-package.mjs
rg -n -C 12 'orcad-watcher-package|watcherPackageIdentity|@parcel/watcher-linux-x64-glibc|watcher\.node' config/scripts/build-orcad.mjs config/scripts/orcad-watcher-package.mjs config/scripts/electron-builder-runtime-resources.mjs package.json pnpm-lock.yaml
printf '%s\n' '--- watcher loading and fallback symbols ---'
rg -n -C 15 'parcel-watcher-process-entry|ORCAD_PARCEL_WATCHER|@parcel/watcher|load.*watcher|watcher.*load|recordPinnedRuntimeRefusal|planPinnedNodeRelay|rung.?B|glibc217' src/main src/relay src/shared
printf '%s\n' '--- tracked prebuild and watcher artifacts ---'
git ls-files | rg '(^|/)(watcher\.node|orcad-prebuild|prebuild|parcel-watcher|node-runtime-pin|build-orcad-template|verify-linux-glibc-floor)'Repository: stablyai/orca
Length of output: 42369
🏁 Script executed:
#!/bin/bash
set -e
printf '%s\n' '--- watcher loader and fallback ---'
rg -n -C 15 'parcel-watcher-process-entry|ORCAD_PARCEL_WATCHER|@parcel/watcher|watcher\.node|watcher.*error|watcher.*fail|watcher.*fallback|fallback.*watcher|rung.?B|glibc217|artifacts_unavailable' src config docs --glob '!*.map'
printf '%s\n' '--- build watcher call sites and compat staging ---'
sed -n '70,125p' config/scripts/build-orcad.mjs
sed -n '240,315p' config/scripts/build-orcad-prebuilds.mjs
sed -n '1,220p' src/main/ssh/ssh-relay-pinned-node.ts
printf '%s\n' '--- package/build contract references ---'
rg -n -C 10 'D6|rung B|compat slot|glibc 2\.17|glibc217|watcher' docs config/scripts src/shared src/main/ssh | head -n 1200
printf '%s\n' '--- relevant tracked files ---'
git ls-files | rg 'watcher|parcel|relay.*pinned|remote.*runtime|orcad.*build|glibc'Repository: stablyai/orca
Length of output: 45664
🌐 Web query:
@parcel/watcher-linux-x64-glibc 2.5.6 watcher.node GLIBC_2.17 glibc requirements
💡 Result:
I can’t verify that `watcher.node` in **@parcel/watcher-linux-x64-glibc 2.5.6** requires exactly **GLIBC_2.17** from the available sources. The package metadata confirms version 2.5.6 is the Linux x64 glibc variant, but doesn’t specify a minimum glibc version. ([apache.googlesource.com](https://apache.googlesource.com/infrastructure-cap/%2B/4166a1229442c2fc0cd3353c3a46f95f9d12f7d3/frontend/package-lock.json?utm_source=openai))
Check the actual binary with:
```sh
readelf --version-info node_modules/@parcel/watcher-linux-x64-glibc/watcher.node | grep GLIBC_
```
The highest required `GLIBC_x.y` version shown is the minimum glibc version the binary needs.
Citations:
- 1: https://apache.googlesource.com/infrastructure-cap/%2B/4166a1229442c2fc0cd3353c3a46f95f9d12f7d3/frontend/package-lock.json?utm_source=openai
🏁 Script executed:
#!/bin/bash
set -e
printf '%s\n' '--- watcher process entry and module loader ---'
sed -n '1,220p' src/main/ipc/parcel-watcher-process-entry.ts
sed -n '1,260p' src/main/ipc/parcel-watcher-module-loader.ts
sed -n '1,220p' src/main/ipc/parcel-watcher-child-launch.ts
printf '%s\n' '--- relay process pool and failure handling ---'
sed -n '1,280p' src/relay/relay-watcher-process-pool.ts
sed -n '1,180p' src/relay/relay-watcher-setup-wait.ts
sed -n '1,180p' src/main/ipc/parcel-watcher-process-failure.ts
printf '%s\n' '--- compat gate and documentation ---'
sed -n '1,260p' src/cli/runtime/remote-runtime-compat-gate.ts
rg -n -C 8 'linux-x64-glibc217|rung B|compat|watcher|glibc 2\.17' docs/reference/linux-glibc-compatibility.md docs/reference/node-runtime-design.html src/cli/runtime src/main/ssh
printf '%s\n' '--- published watcher binary requirements ---'
python3 - <<'PY'
import io, tarfile, urllib.request, hashlib, shutil, subprocess, tempfile, os
url = 'https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.6.tgz'
try:
data = urllib.request.urlopen(url, timeout=30).read()
print('archive_bytes', len(data))
print('archive_sha512', 'sha512-' + hashlib.sha512(data).digest().hex())
with tarfile.open(fileobj=io.BytesIO(data), mode='r:gz') as tf:
member = tf.getmember('package/watcher.node')
binary = tf.extractfile(member).read()
print('watcher_bytes', len(binary))
with tempfile.NamedTemporaryFile(suffix='.node') as f:
f.write(binary); f.flush()
tool = shutil.which('readelf') or shutil.which('objdump')
print('elf_tool', tool or 'none')
if tool and os.path.basename(tool) == 'readelf':
out = subprocess.run([tool, '--version-info', f.name], text=True, capture_output=True, check=False)
elif tool:
out = subprocess.run([tool, '-p', '.gnu.version_r', f.name], text=True, capture_output=True, check=False)
else:
out = None
if out:
print(out.stdout)
if out.stderr:
print('tool_stderr', out.stderr)
except Exception as exc:
print(type(exc).__name__, str(exc))
PYRepository: stablyai/orca
Length of output: 42675
🏁 Script executed:
#!/bin/bash
printf '%s\n' '--- watcher process entry continuation ---'
sed -n '180,420p' src/main/ipc/parcel-watcher-process-entry.ts
printf '%s\n' '--- watcher supervisor startup/subscribe failure path ---'
rg -n -C 12 'launchWatcherChild|process_unavailable|subscribe_failed|entry_missing|subscribe_timeout|onGone|handleSubscribe|subscribe-started|watch-error' src/main/ipc/parcel-watcher-process-supervisor.ts src/main/ipc/runtime-watcher-process-pool.ts src/main/ipc/parcel-watcher-process.ts src/main/ipc/parcel-watcher-child-recovery.ts
printf '%s\n' '--- relay registry recovery path ---'
sed -n '170,290p' src/relay/relay-filesystem-watch-registry.ts
printf '%s\n' '--- published watcher binary requirements ---'
python3 - <<'PY'
import io, tarfile, urllib.request, hashlib, shutil, subprocess, tempfile, os, base64
url = 'https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.6.tgz'
try:
data = urllib.request.urlopen(url, timeout=30).read()
print('archive_bytes', len(data))
print('archive_sha512', 'sha512-' + base64.b64encode(hashlib.sha512(data).digest()).decode())
with tarfile.open(fileobj=io.BytesIO(data), mode='r:gz') as tf:
member = tf.getmember('package/watcher.node')
binary = tf.extractfile(member).read()
print('watcher_bytes', len(binary))
with tempfile.NamedTemporaryFile(suffix='.node') as f:
f.write(binary); f.flush()
for tool, args in [
('readelf', ['--version-info', f.name]),
('objdump', ['-p', f.name])
]:
path = shutil.which(tool)
if not path:
continue
print('elf_tool', path)
out = subprocess.run([path, *args], text=True, capture_output=True, check=False)
print(out.stdout)
if out.stderr:
print('tool_stderr', out.stderr)
break
except Exception as exc:
print(type(exc).__name__, str(exc))
PYRepository: stablyai/orca
Length of output: 14177
🏁 Script executed:
#!/bin/bash
python3 - <<'PY'
import base64, hashlib, io, os, shutil, ssl, subprocess, tarfile, tempfile, urllib.request
url = 'https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.6.tgz'
ctx = ssl._create_unverified_context()
data = urllib.request.urlopen(url, context=ctx, timeout=30).read()
print('archive_bytes', len(data))
print('archive_integrity', 'sha512-' + base64.b64encode(hashlib.sha512(data).digest()).decode())
with tarfile.open(fileobj=io.BytesIO(data), mode='r:gz') as tf:
member = tf.getmember('package/watcher.node')
binary = tf.extractfile(member).read()
print('watcher_bytes', len(binary))
with tempfile.NamedTemporaryFile(suffix='.node') as f:
f.write(binary)
f.flush()
for tool, args in [('readelf', ['--version-info', f.name]), ('objdump', ['-p', f.name])]:
path = shutil.which(tool)
if not path:
continue
print('elf_tool', path)
result = subprocess.run([path, *args], text=True, capture_output=True, check=False)
for line in result.stdout.splitlines():
if 'GLIBC_' in line or 'Version References' in line or 'NEEDED' in line:
print(line)
if result.stderr:
print('tool_stderr', result.stderr)
break
PYRepository: stablyai/orca
Length of output: 738
🏁 Script executed:
#!/bin/bash
python3 - <<'PY'
import io, shutil, ssl, subprocess, tarfile, tempfile, urllib.request
url = 'https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.6.tgz'
data = urllib.request.urlopen(url, context=ssl._create_unverified_context(), timeout=30).read()
with tarfile.open(fileobj=io.BytesIO(data), mode='r:gz') as tf:
binary = tf.extractfile(tf.getmember('package/watcher.node')).read()
with tempfile.NamedTemporaryFile(suffix='.node') as f:
f.write(binary)
f.flush()
tool = shutil.which('objdump')
if not tool:
print('objdump unavailable')
else:
result = subprocess.run([tool, '-p', f.name], text=True, capture_output=True, check=False)
in_refs = False
for line in result.stdout.splitlines():
if line.startswith('Version References:'):
in_refs = True
if in_refs and ('GLIBCXX_' in line or 'CXXABI_' in line or 'Version References:' in line):
print(line)
PYRepository: stablyai/orca
Length of output: 726
Do not inherit the default watcher into linux-x64-glibc217.
stageCompatTarget inherits watcher.node from linux-x64-glibc. The inherited binary requires GLIBCXX_3.4.22 and CXXABI_1.3.9, but the compat floor allows only GLIBCXX_3.4.19 and CXXABI_1.3.8. The binary’s glibc requirement is below 2.17, so the failure is from libstdc++, not glibc.
On a rung-B host, loadParcelWatcher() can fail while importing the native module. The relay disables its in-process fallback, so watcher subscription can fail instead of degrading safely. Provide a watcher built for the compat floor, or omit the compat target until one is available.
There was a problem hiding this comment.
ℹ️ No new issues in this delta — the compat runtime is now pinned by the relay-connect store GC.
Reviewed changes
- Relay-connect store GC pins the compat runtime —
deployAndLaunchRelayOnRuntimenow derivescurrentPinsfromrelayRuntimeStorePins(prebuilt.target)instead ofNODE_RUNTIME_ASSETS[prebuilt.target]. The old lookup has no compat entry, so it threw for a rung B target; it also pinned only the default runtime, so a rung A connect could collect the runtime rung B needs.relayRuntimeStorePinsreturns the host base plus every compat runtime for it, so both rungs keep both runtimes. - Both rungs asserted — the rung A and rung B deploy tests now expect the store GC to receive
[RUNTIME_SHA, COMPAT_SHA], and the rung B case exercises theNODE_RUNTIME_ASSETSlookup that previously threw.
Verified locally: pnpm tc:node and the four affected test files pass (51 tests).
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
7148f36 to
7440a21
Compare
There was a problem hiding this comment.
ℹ️ No new issues in this rebased delta. One prior review thread remains open.
Reviewed changes
- Rebased onto current
main— the feature, rung D noexec, and relay-store GC commits were replayed onto14d4bb2e2a, absorbing the merged Windows runtime-store work (#24149/#24147), so every prior commit hash was rewritten. - Windows vault reader now uses the shared runtime store —
preparePinnedNodeForVaultresolves deployment facts, chooses the runtime withpinnedRuntimeTargetForHost, and delegates toensureRemoteOrcadNodeRuntimefor every host (Windows included), returningruntimeSha256— the compat sha on a rung B host — for the relay directory's GC ref. The old Windows bare-node.exeupload path is gone. - Compat target chosen for the vault reader by glibc alone — the reader refuses early with "No Orca-managed Node runs on this host's glibc X" when neither the default nor the compat runtime fits, instead of uploading one whose self-test could only fail.
- Partial CI template support —
stageCompatTargetstages a compat target only beside its base target, and the packaged-template verifier accepts atargetslist while continuing to treat compat targets as optional.
Verified locally: pnpm tc:node passes, and the seven affected test files pass (78 tests). The ssh-relay-runtime-resolution.ts:112 thread (a successful rung B should also clear a remembered noexec) is unchanged by this delta and remains open.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ No new issues in this delta. One informational coverage note below, and one prior review thread (
ssh-relay-runtime-resolution.ts:112) remains open, so this is not an approval.
Reviewed changes
- The hostile-host CI now builds and ships the glibc 2.17 compat slot — a new
glibc217_slotjob chains aftermusl_slot, builds/smokeslinux-x64-glibc217under the compat Node inside themanylinux2014image (same digest asnode-server-tests.yml'slinux_glibc217_compatlane), and uploads the merged prebuilds ashostile-hosts-slots-compat;hostsnowneeds: glibc217_slotand downloads that artifact. - The CentOS 7 cell now expects rung B —
centos7-glibc217flips fromlegacy_failedtolaunched/ rungB/ runtimelinux-x64-glibc217, with a singleA:libc_floorrefusal.HostileHostExpectation.rungwidens to'A' | 'B', gains an optionalruntime, andhostileHostCellViolationsnow readsexpect.refusals ?? []. - The docker matrix checks the runtime it actually ran —
runtimeNodePathnow takes the compatNodeRuntimeTargetand the path/GC assertions hashpinnedNodeRuntimeAsset(runtime), so a rung B cell verifies the compat runtime directory rather than the host's default. - Tests updated with the cells — the workflow test asserts the compat-slot chain, the upload/download name match, and
manylinux2014digest parity with the headless lane; the cells test covers the rung B launch and itsartifacts_unavailablefailure mode.
Verified: pnpm test src/main/ssh/ssh-hostile-host-cells.test.ts config/scripts/ssh-hostile-hosts-workflow.test.mjs passes (14 tests). No production code is touched by these commits.
ℹ️ The host-npm fallback is no longer exercised by any cell
Moving centos7-glibc217 to rung B removed the matrix's only outcome: 'legacy_failed' cell, so the legacy_failed arm in HostileHostExpectation / hostileHostCellViolations (and the matching expect.outcome !== 'legacy_failed' toolchain guard) is now unreachable from HOSTILE_HOST_CELLS. If the legacy / npm rung still matters in production, a cell that reaches and fails there would preserve the check; if not, deleting the dead arm keeps the harness honest.
Technical details
# The `legacy_failed` outcome is now dead in the matrix
## Affected sites
- `src/main/ssh/ssh-hostile-host-cells.ts:34` — `{ outcome: 'legacy_failed'; refusals: ... }` arm, unreachable
- `src/main/ssh/ssh-hostile-host-cells.ts:198,223-230` — the toolchain guard and `case 'legacy_failed'` switch arm
- `src/main/ssh/ssh-hostile-host-cells.test.ts:41,43-47` — the coverage assertion no longer admits `legacy_failed` or a legacy rung
## Required outcome
- Decide whether the `legacy` rung needs matrix coverage. If yes, add (or repurpose) a cell whose
ladder settles on the host-npm path and fails, and re-add `legacy_failed` to the coverage set
assertion. If no, drop the unused arm from the union and switch so the harness cannot silently
absorb a future cell that never runs.
## Open questions for the human
- Was dropping the `legacy_failed` cell deliberate, or incidental to the CentOS 7 → rung B move?DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
b46eeae to
aaae3f2
Compare
There was a problem hiding this comment.
ℹ️ No new issues in this rebased delta. One prior review thread (
ssh-relay-runtime-resolution.ts:112) is untouched by these commits and remains open, so this is not an approval.
Reviewed changes
- Rebased onto current
main— the branch now sits on0ad77ea2f7(the main tip that merged the host-agnostic hostile-host harness and thelegacy_opt_outoutcome, #24180), rewriting every prior commit hash. A range-diff shows commits 1–4 are patch-identical and only the CI commit was reworked onto the new base. - The rung B runtime handling moved into the shared harness — the rebased CI commit now edits
src/main/ssh/ssh-hostile-host-test-harness.tsinstead of the docker test (which the rebase routes through the harness).pinnedRuntimeLayoutwidens toNodeRuntimeTarget, andexerciseLaunchedCellderivesruntime = cell.expect.runtime ?? cell.expect.target, then keys the store dir, sha (pinnedNodeRuntimeAsset) and addon slot (pinnedRelayAddonFiles) off that runtime, so the CentOS 7 cell verifies the compat runtime. Both drivers — the docker matrix and the Windows lanes — get the compat-aware path. - Launched cells' declared refusals are now asserted —
expectedRefusalsbecameexpect.outcome === 'legacy_opt_out' ? [] : (expect.refusals ?? []). Previouslylaunchedcells forced[], so the newcentos7-glibc217cell'sA:libc_floorrefusal chain was inert; it is now checked. - The rung B failure mode is covered — the cells test also drives the CentOS cell to
artifacts_unavailableand asserts the resulting four violations, includingsettled on nothing, expected B.
Verified locally: pnpm tc:node passes and pnpm test src/main/ssh/ssh-hostile-host-cells.test.ts config/scripts/ssh-hostile-hosts-workflow.test.mjs passes (15 tests). The docker and Windows lane tests compile and skip here (environment-gated).
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…vault on full node:sqlite - COMPAT_RELAY_RUNTIMES lists linux-x64-glibc217; rung B plans the compat slot and compat pinned Node when glibc is below 2.28 or rung A refused with libc_floor/missing_lib. - The relay version folds the compat runtime's executable hash; refusals are cached per runtime. - The orcad template stages an optional linux-x64-glibc217 target (base package + compat node-pty slot + compat runtime marker); the verifier and materializer accept it. - node-pty slot loader falls back to the compat slot when the default slot is missing or needs a newer glibc. - Runtime store GC keeps the compat pin beside the default one on every relay connect. - hasNodeSqliteReaderApi (DatabaseSync + backup) gates relay session search and the relay OpenCode reader, which now names the host Node version in its unavailable reason; the SSH vault reader installs the compat Node on old-glibc hosts and uploads nothing when no pinned Node can run. - Rung D: a remembered noexec reports home_noexec and never advises installing Node.
…; CentOS 7 lands on rung B
aaae3f2 to
9edff5d
Compare
There was a problem hiding this comment.
ℹ️ No new issues in this rebased delta. One prior review thread (
ssh-relay-runtime-resolution.ts:112) is untouched by these commits and remains open, so this is not an approval.
Reviewed changes
- Rebased onto current
main— the branch now sits onf9940d5354(which merged the relay EPIPE fix #24209 and the macOS hostile-host lane #24179), rewriting every prior commit hash. Agit range-diffshows commits 1–4 are patch-identical; only the CI commit was reworked onto the new base. - The compat-slot CI commit reconciled with the macOS lane — the
glibc217_slotjob, the four-job chain (glibc_slot → musl_slot → glibc217_slot → hosts) and thehostile-hosts-slots-compatartifact handoff are unchanged. The only workflow difference is a dropped header-comment hunk, whichf9940d5354already applied. - The stale
legacy_failedcoverage expectation is gone — the hostile-cell outcome-set assertion is nownew Set(['launched', 'unavailable'])(the base added the macOS launched cells), and a new assertion pins the launched rungs tonew Set(['A', 'B']), so the CentOS 7 cell's rung B is covered by the set itself. This answers the informational note from the prior review. - No production code changed —
ssh-hostile-host-cells.tsandssh-hostile-host-test-harness.tskeep the sameNodeRuntimeTargetwidening andruntime = cell.expect.runtime ?? cell.expect.targetcompat path.
Verified locally: pnpm tc:node passes and pnpm test src/main/ssh/ssh-hostile-host-cells.test.ts config/scripts/ssh-hostile-hosts-workflow.test.mjs passes (19 tests). The docker/Windows lane tests compile and skip here (environment-gated).
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

ELI5
Old Linux hosts (glibc 2.17–2.27, for example CentOS 7) can now get Orca's runtime through the unofficial glibc-2.17 Node and a matching node-pty build. Hosts whose own Node can't read SQLite now get a clear "unavailable" for remote AI Vault instead of a failure.
What Changed
COMPAT_RELAY_RUNTIMEShas thelinux-x64-glibc217entry.rungBCompatRuntimeForchooses it for linux x64 hosts with 2.17 ≤ glibc < 2.28, or when rung A refused withlibc_floorormissing_lib.node:sqliteAPI.Why
Design D6. Rung B is insurance for old-glibc hosts, and no open issue reports one yet.
Linked Issue
Part of the Node runtime plan (Phase 2). Stacked on
OrcaWin/node-rt-p2-integration, which includes #24134.Visual Proof
N/A. The only visible change is message text.
Testing
Unit tests cover selection, plan building, version hashing, GC and loader fallback.
Not yet:
watcher.nodehasn't been checked on glibc 2.17.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.