Repository navigation
feat(adapters): OpenShell content filter + NemoClaw supply-chain pre-flight - #105
Merged
Merged
Conversation
…flight Two agent-runtime adapters reusing the canonical ATREngine (no new dependency). openshell-filter: reference content filter for the NVIDIA/OpenShell L7 content-inspection contract proposed in their issue 1272. Reads the L7 body on stdin; exit 0 allow / 1 deny (verdict JSON on stdout) / 2 error; emits canonical atr.* detection findings, matched values redacted by default; one-shot and persistent NDJSON serve modes. nemoclaw-preflight: supply-chain pre-flight gate that scans SKILL.md skills and MCP config files before an agent is provisioned. Scans MCP config files as content (path atr scan does not cover). Fail-closed: oversized / symlink / unreadable / file-cap yields an incomplete verdict, never a silent pass. Adds tests for both, an examples/openshell config + wrapper, and package exports ./openshell-filter and ./nemoclaw-preflight.
- openshell-filter (runServe): enforce the ATR_MAX_BODY_BYTES cap in --serve mode too. Previously only one-shot/stdin was capped, so a single oversized NDJSON line passed an uncapped body straight to the engine. - nemoclaw-preflight (collectTargets): lstat the root instead of stat, so a symlinked root argument is no longer silently followed — honoring the module's 'never follow symlinks' contract (the per-entry guard only covered symlinks discovered during directory traversal).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two agent-runtime adapters that reuse the canonical ATREngine (no new dependency).
openshell-filter (src/adapters/openshell-filter.ts)
nemoclaw-preflight (src/adapters/nemoclaw-preflight.ts)
Tests for both (26 cases), an examples/openshell config plus wrapper, and package exports ./openshell-filter and ./nemoclaw-preflight. Reuses the same engine, redaction, and severity-threshold conventions as the existing Mastra adapter.