Skip to content

feat(deepagents-code): restore dcode status after v0.0.73 - #6232

Merged
cv merged 7 commits into
mainfrom
codex/restore-6202-for-v0.0.74
Jul 3, 2026
Merged

cv merged 7 commits into
mainfrom
codex/restore-6202-for-v0.0.74

Conversation

@cv

@cv cv commented Jul 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Restores #6202 now that v0.0.73 has been tagged. This reintroduces dcode status identity reporting, managed help, the exact OpenShell TLS-key runtime allowance, sandbox-name propagation, and their docs and tests for v0.0.74, with focused follow-ups that suppress private-key-shaped or encoded-credential metadata and fail closed on malformed or unsupported identity config scalars.

Related Issue

Restores #6202 after the release-boundary revert in #6223. Related to #6189, #6186, and the complementary runtime hardening in #6082.

Changes

  • Restore dcode status, dcode whoami, and dcode identity without launching the interactive UI.
  • Restore the exact runtime-only OPENSHELL_TLS_KEY=/etc/openshell/tls/client/tls.key allowance while keeping arbitrary paths, values, PEM material, and persisted .env entries fail-closed.
  • Restore Tavily and context-shaped secret detection in the managed Deep Agents Code wrapper.
  • Mirror canonical private-key block detection before mutable config or runtime metadata can reach dcode status, including the managed Slack early-allowlist path, and scan the complete mutable .deepagents/.env so raw multiline blocks cannot evade per-line classification.
  • Reject literal, escaped, percent-encoded, and double-encoded query, fragment, and userinfo delimiters before endpoint metadata can reach dcode status.
  • Restrict the informational TOML reader to known generated sections and complete quoted scalars so malformed, commented, array, and unsupported nested values fall back safely instead of being displayed.
  • Restore Deep Agents Code sandbox-name propagation through onboarding and startup state.
  • Restore the original feat(deepagents-code): add dcode status and allow OpenShell TLS key in secret guard #6202 quickstart documentation, identity tests, secret-boundary tests, and shared fixture, then add a composed onboarding → start.sh → dcode status handoff test.
  • Record the fix(dcode): harden managed runtime boundaries #6082 rebase contract: feat(deepagents-code): restore dcode status after v0.0.73 #6232's managed-proxy and secret-filtering paths remain authoritative while fix(dcode): harden managed runtime boundaries #6082's runtime upgrade, auth-store, and mutation-command work layers on afterward.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior — restores the original feat(deepagents-code): add dcode status and allow OpenShell TLS key in secret guard #6202 identity, secret-boundary, image-contract, and onboarding coverage; adds canonical private-key parity, malformed/unsupported config, encoded endpoint, and composed sandbox-name handoff cases.
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes — restores the original dcode status quickstart section.
  • Docs not applicable — justification:
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — the restoration commit exactly matches the previously reviewed feat(deepagents-code): add dcode status and allow OpenShell TLS key in secret guard #6202 tree; independent reproduction confirmed the advisor-reported private-key status leak, and focused follow-ups mirror the canonical block pattern, reject raw multiline .env key blocks and encoded endpoint delimiters, and fail closed on malformed generated scalars with status, parity, managed-Slack, composed-handoff, no-launch, redaction, and secret-scanner coverage.
  • Non-success, skipped, or missing CI check accepted by maintainer — no CI waiver requested; required remote checks remain mandatory.

Verification

  • PR description includes the DCO sign-off declaration and every commit appears as Verified in GitHub.
  • Git hooks passed during commit and push, or npx prek run --from-ref main --to-ref HEAD passes — all commit hooks except the disclosed local test-cli environment-sensitive baseline lane passed; normal pre-push CLI typecheck and tag-version synchronization passed.
  • Targeted tests pass for changed behavior — onboarding 8/8 and Deep Agents Code wrapper/image/composed-handoff tests 77/77 after review follow-ups; CLI typecheck, ShellCheck, Biome, test-size/project-overlap gates, detect-private-key, and gitleaks also pass.
  • Required exact-head live E2Es pass on attempt 1 — ubuntu-repo-cloud-langchain-deepagents-code and cloud-onboard at a503d95a81094cd3415ce933b64a0213a4d3aa2d.
  • Full npm test passes (broad runtime changes only) — not rerun; remote CI remains required.
  • Quality Gates section completed with required justifications or waivers.
  • No secrets, API keys, or credentials committed.
  • npm run docs builds without warnings (doc changes only) — build passed with 0 errors and two pre-existing Fern warnings.
  • Doc pages follow the style guide; independent docs review found no additional changes needed.
  • New doc pages include SPDX header and frontmatter — no new doc pages.

Signed-off-by: Carlos Villela [email protected]

Revert dc96deb now that v0.0.73 is tagged.

This restores #6202 unchanged for v0.0.74.

Signed-off-by: Carlos Villela <[email protected]>
@cv cv self-assigned this Jul 3, 2026
@cv cv added the v0.0.74 label Jul 3, 2026
@cv
cv requested a review from apurvvkumaria July 3, 2026 01:26
@cv cv added integration: dcode LangChain Deep Code integration behavior area: cli Command line interface, flags, terminal UX, or output labels Jul 3, 2026
@cv
cv requested a review from miyoungc July 3, 2026 01:26
@cv cv added feature PR adds or expands user-visible functionality NV QA Bugs found by the NVIDIA QA Team labels Jul 3, 2026
@coderabbitai

coderabbitai Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This PR hardens dcode-wrapper.sh secret detection, adds managed identity/help commands and an OpenShell TLS key allowlist, propagates NEMOCLAW_SANDBOX_NAME through sandbox launch and runtime scripts, and updates related tests and quickstart documentation.

Changes

Wrapper Identity, Secret Hardening, and TLS Allowlist

Layer / File(s) Summary
Secret-shape detection hardening
agents/langchain-deepagents-code/dcode-wrapper.sh
Adds context-based credential detection, private-key block detection, and expanded tvly- token handling in the wrapper’s secret classification paths.
OpenShell TLS key allowlist
agents/langchain-deepagents-code/dcode-wrapper.sh
Adds the mounted OpenShell TLS key path constant, allows only the canonical runtime key/value pair, and exempts that pair from runtime credential rejection.
TOML identity and help commands
agents/langchain-deepagents-code/dcode-wrapper.sh
Adds TOML metadata parsing, safe agent resolution, identity sanitizers, identity output, managed help text, and command routing for status, whoami, identity, and help.
Wrapper identity and TLS tests
test/dcode-wrapper-identity.test.ts
Adds tests for managed identity output, agent selection, metadata sanitization, endpoint safety, help routing, and OpenShell TLS key allowlist enforcement.

NEMOCLAW_SANDBOX_NAME propagation

Layer / File(s) Summary
Sandbox name input and launch env injection
src/lib/onboard/sandbox-create-launch.ts, src/lib/onboard/sandbox-create-launch.test.ts, src/lib/onboard.ts, agents/langchain-deepagents-code/start.sh, docs/get-started/quickstart-langchain-deepagents-code.mdx
Adds optional sandboxName to sandbox launch input, passes it through onboard wiring, injects NEMOCLAW_SANDBOX_NAME for langchain-deepagents-code, exports it in start.sh, and documents dcode status.
Start-script fixture extraction and image tests
test/support/dcode-start-script-fixture.ts, test/langchain-deepagents-code-image.test.ts
Extracts the start-script test fixture helper, updates image tests to use it, adds a sandbox-name export test, and refreshes secret-rejection cases.
Sandbox identity integration test
test/dcode-sandbox-identity-integration.test.ts
Adds a Linux-gated integration test that launches the sandbox, runs the generated start script, and checks wrapper status output for the validated sandbox name.

Estimated code review effort: 4 (Complex) | ~60 minutes

Suggested labels: bug-fix

Suggested reviewers: ericksoa

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: restoring dcode status behavior after v0.0.73.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/restore-6202-for-v0.0.74

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage in the codex/restore-6202-f... branch is 96%. Coverage data for the main branch is not yet available.

Show a code coverage summary of the most covered files.
File main codex/restore-6202-f... a503d95 +/-
nemoclaw/src/se...cret-scanner.ts — 100% —
nemoclaw/src/commands/slash.ts — 100% —
nemoclaw/src/bl...eprint/state.ts — 98% —
nemoclaw/src/onboard/config.ts — 98% —
nemoclaw/src/bl...int/snapshot.ts — 97% —
nemoclaw/src/blueprint/ssrf.ts — 97% —
nemoclaw/src/bl...print/runner.ts — 95% —
nemoclaw/src/co...ration-state.ts — 94% —
nemoclaw/src/bl...ate-networks.ts — 94% —
nemoclaw/src/index.ts — 94% —

TypeScript / code-coverage/cli

The overall coverage in the codex/restore-6202-f... branch is 69%. Coverage data for the main branch is not yet available.

Show a code coverage summary of the most covered files.
File main codex/restore-6202-f... a503d95 +/-
src/lib/actions...dbox/rebuild.ts — 82% —
src/lib/actions...all/run-plan.ts — 80% —
src/lib/state/o...oard-session.ts — 80% —
src/lib/shields/index.ts — 75% —
src/lib/state/sandbox.ts — 73% —
src/lib/onboard...er-gpu-patch.ts — 69% —
src/lib/onboard/preflight.ts — 69% —
src/lib/actions...licy-channel.ts — 59% —
src/lib/policy/index.ts — 56% —
src/lib/onboard.ts — 20% —

Updated July 03, 2026 02:14 UTC
Code Coverage is in Public Preview. Learn more and provide us with your feedback.

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

E2E Advisor Recommendation

Required E2E: ubuntu-repo-cloud-langchain-deepagents-code
Optional E2E: cloud-onboard, credential-sanitization

Dispatch hint: targets=ubuntu-repo-cloud-langchain-deepagents-code

Workflow run

Full advisor summary

E2E Recommendation Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required E2E

  • ubuntu-repo-cloud-langchain-deepagents-code (high): Required because the PR changes the Deep Agents Code sandbox image entrypoints, dcode wrapper security boundary, onboarding env injection, and real dcode headless/TUI flows. This live registry target onboards a real langchain-deepagents-code sandbox and runs the Deep Agents cloud-experimental checks, including headless inference, Python egress, Tavily opt-in, TUI startup, and dcode secret-boundary probes.

Optional E2E

  • cloud-onboard (high): Useful additional confidence because src/lib/onboard.ts and sandbox-create-launch.ts are in the hosted onboarding create path. This public-installer hosted onboarding check is adjacent to the changed code, although the required Deep Agents live target is the more direct coverage for the dcode-specific behavior.
  • credential-sanitization (medium): Optional adjacent coverage for credential handling and sanitization because the PR updates secret-pattern mirroring in the dcode wrapper. The Deep Agents live target includes the dcode-specific secret-boundary check, so this broader credential suite is useful but not merge-blocking.

New E2E recommendations

  • Deep Agents Code in-sandbox identity/status command (high): Existing live Deep Agents checks do not appear to exercise dcode status, dcode whoami, or dcode identity inside a real OpenShell sandbox. This PR adds that user-visible managed command and relies on onboarding/startup propagation of NEMOCLAW_SANDBOX_NAME, so live coverage should assert the real connected sandbox prints the validated sandbox name, route/provider/model/endpoint fields, and exits without launching upstream dcode.
    • Suggested test: Add a Deep Agents Code cloud-experimental check, for example test/e2e/e2e-cloud-experimental/checks/11-deepagents-code-identity-status.sh, and include it in DEEPAGENTS_CLOUD_EXPERIMENTAL_CHECKS.

Dispatch hint

  • Workflow: .github/workflows/e2e.yaml
  • jobs input: targets=ubuntu-repo-cloud-langchain-deepagents-code

@github-actions

github-actions Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

E2E Target Recommendation

Required E2E targets: ubuntu-repo-cloud-langchain-deepagents-code
Optional E2E targets: ubuntu-repo-cloud-openclaw

Dispatch required E2E targets:

  • gh workflow run e2e.yaml --ref <pr-head-ref> --field targets=ubuntu-repo-cloud-langchain-deepagents-code

Workflow run

Full E2E target advisor summary

E2E Target Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required E2E targets

  • ubuntu-repo-cloud-langchain-deepagents-code: The PR changes the LangChain Deep Agents Code sandbox startup and managed dcode wrapper identity/secret-boundary behavior, plus onboarding launch env propagation for the langchain-deepagents-code agent. The live-supported Deep Agents Code target is the smallest typed target that exercises sandbox creation, dcode image startup, terminal-agent checks, and managed inference/policy behavior.
    • Dispatch: gh workflow run e2e.yaml --ref <pr-head-ref> --field targets=ubuntu-repo-cloud-langchain-deepagents-code

Optional E2E targets

  • ubuntu-repo-cloud-openclaw: Optional adjacent coverage for the shared onboarding sandbox-create launch path touched in src/lib/onboard.ts and src/lib/onboard/sandbox-create-launch.ts, to confirm the standard OpenClaw onboarding path is not affected by the Deep Agents Code-specific env propagation.
    • Dispatch: gh workflow run e2e.yaml --ref <pr-head-ref> --field targets=ubuntu-repo-cloud-openclaw

Relevant changed files

  • agents/langchain-deepagents-code/dcode-wrapper.sh
  • agents/langchain-deepagents-code/start.sh
  • src/lib/onboard.ts
  • src/lib/onboard/sandbox-create-launch.ts

@github-actions

github-actions Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor (Nemotron Ultra) — Changes requested

Merge posture: Do not merge yet
Primary next action: Fix PRA-4: PR #6082 merge conflict on same 4 files; then add or justify PRA-T1.
Open items: 1 required · 11 warnings · 9 suggestions · 8 test follow-ups
Since last review: 3 prior items resolved · 8 still apply · 5 new items found

Action checklist

  • PRA-4 Fix: PR fix(dcode): harden managed runtime boundaries #6082 merge conflict on same 4 files in agents/langchain-deepagents-code/dcode-wrapper.sh:1
  • PRA-1 Resolve or justify: Source-of-truth review needed: safe_endpoint_identity_value (dcode-wrapper.sh:495-520)
  • PRA-2 Resolve or justify: Source-of-truth review needed: has_context_secret_shape (dcode-wrapper.sh:45-53)
  • PRA-3 Resolve or justify: Source-of-truth review needed: has_private_key_block_shape (dcode-wrapper.sh:55-65)
  • PRA-5 Resolve or justify: safe_endpoint_identity_value misses metadata service IPs and private ranges in agents/langchain-deepagents-code/dcode-wrapper.sh:495
  • PRA-6 Resolve or justify: has_context_secret_shape regex diverges from canonical CONTEXT_PATTERNS in agents/langchain-deepagents-code/dcode-wrapper.sh:45
  • PRA-7 Resolve or justify: has_private_key_block_shape uses Bash glob requiring two BEGIN/END pairs vs canonical single-pair regex in agents/langchain-deepagents-code/dcode-wrapper.sh:55
  • PRA-8 Resolve or justify: Missing test for identity commands with secret-shaped env vars in test/dcode-wrapper-identity.test.ts:480
  • PRA-9 Resolve or justify: SECRET_BLOCK_PATTERNS fingerprint test missing from canonical image test in test/langchain-deepagents-code-image.test.ts:1336
  • PRA-10 Resolve or justify: Secret guard blocks diagnostic commands (status, --help, --version) in agents/langchain-deepagents-code/dcode-wrapper.sh:185
  • PRA-11 Resolve or justify: is_secret_shaped_value applies context pattern to raw value — semantic divergence in agents/langchain-deepagents-code/dcode-wrapper.sh:150
  • PRA-T1 Add or justify test follow-up: Runtime validation
  • PRA-T2 Add or justify test follow-up: Runtime validation
  • PRA-T3 Add or justify test follow-up: Runtime validation
  • PRA-T4 Add or justify test follow-up: Runtime validation
  • PRA-T5 Add or justify test follow-up: Runtime validation
  • PRA-T6 Add or justify test follow-up: Missing test for identity commands with secret-shaped env vars
  • PRA-T7 Add or justify test follow-up: SECRET_BLOCK_PATTERNS fingerprint test missing from canonical image test
  • PRA-T8 Add or justify test follow-up: Integration test uses stubbed wrapper — doesn't exercise real secret guard or TOML parsing
  • PRA-13 In-scope improvement: Hardcoded agent allowlist for sandbox name propagation in src/lib/onboard/sandbox-create-launch.ts:58
  • PRA-14 In-scope improvement: Integration test uses stubbed wrapper — doesn't exercise real secret guard or TOML parsing in test/dcode-sandbox-identity-integration.test.ts:1
  • PRA-15 In-scope improvement: Secret guard check order not documented in agents/langchain-deepagents-code/dcode-wrapper.sh:185
  • PRA-16 In-scope improvement: Repeated PATH fallback in test fixtures in test/dcode-wrapper-identity.test.ts:92
  • PRA-17 In-scope improvement: Repeated dcode-wrapper.sh fixture patching logic in test/support/dcode-start-script-fixture.ts:21
  • PRA-18 In-scope improvement: toml_section_scalar supported format not documented in agents/langchain-deepagents-code/dcode-wrapper.sh:380
  • PRA-19 In-scope improvement: toml_provider_metadata parses fragile comment format in agents/langchain-deepagents-code/dcode-wrapper.sh:400
  • PRA-20 In-scope improvement: has_context_secret_shape character class clarity and semantics in agents/langchain-deepagents-code/dcode-wrapper.sh:45
  • PRA-21 In-scope improvement: has_multiline_private_key_block_shape only detects literal newlines in agents/langchain-deepagents-code/dcode-wrapper.sh:70

Findings index

ID Severity Category Location Required action
PRA-1 Resolve/justify architecture — Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
PRA-2 Resolve/justify architecture — Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
PRA-3 Resolve/justify architecture — Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
PRA-4 Required architecture agents/langchain-deepagents-code/dcode-wrapper.sh:1 Coordinate with PR #6082 author. Either merge #6082 first and rebase this PR, or ensure this PR's changes are a strict subset of #6082's final state. Verify no duplicate/contradictory secret-pattern regex additions or proxy handling changes.
PRA-5 Resolve/justify security agents/langchain-deepagents-code/dcode-wrapper.sh:495 Add explicit blocklist for known metadata/service IPs and private ranges in safe_endpoint_identity_value, or switch to an allowlist of known-safe hosts (inference.local, configured API endpoints) and reject everything else.
PRA-6 Resolve/justify security agents/langchain-deepagents-code/dcode-wrapper.sh:45 Add behavioral parity test feeding CONTEXT_PATTERNS samples through Bash has_context_secret_shape and verifying identical accept/reject decisions. Or narrow Bash regex to match canonical exactly (space-only delimiter, add Bearer check, document intentional semantic difference).
PRA-7 Resolve/justify security agents/langchain-deepagents-code/dcode-wrapper.sh:55 Add behavioral parity test feeding SECRET_BLOCK_PATTERNS samples (including multi-block PEM, RSA/EC/DSA types, escaped newlines) through has_private_key_block_shape via all call paths (runtime env, env-file, Slack wrapping). Consider if Bash '=~' with multiline support is needed for precision.
PRA-8 Resolve/justify tests test/dcode-wrapper-identity.test.ts:480 Add test cases: run 'dcode status', 'dcode whoami', 'dcode identity', '--help', '--version' with secret-shaped runtime env vars and env-file entries. Verify and document expected behavior — either (a) managed help/status prints and dcode launches (bypass) or (b) exits 2 with secret error (fail-closed). Document decision in security comment block.
PRA-9 Resolve/justify tests test/langchain-deepagents-code-image.test.ts:1336 Add SECRET_BLOCK_PATTERNS fingerprint test to langchain-deepagents-code-image.test.ts. Extend 'rejects every canonical token shape' test to also feed samples through the env-file parser (assert_no_secret_env_file) and verify identical rejection behavior.
PRA-10 Resolve/justify security agents/langchain-deepagents-code/dcode-wrapper.sh:185 Decide if identity/status/help commands should bypass secret guard (with audit logging) or if fail-closed everywhere is intended. If fail-closed, document that operators must clean environment before any dcode command. Add tests for identity commands with secret-shaped env vars to lock in expected behavior.
PRA-11 Resolve/justify security agents/langchain-deepagents-code/dcode-wrapper.sh:150 Review whether has_context_secret_shape should apply to raw values in is_secret_shaped_value. Either align Bash implementation to match canonical behavior (check name=value boundary) or document the intentional divergence (defense-in-depth for embedded patterns).
PRA-12 Resolve/justify security agents/langchain-deepagents-code/dcode-wrapper.sh:470 Create a separate display filter (e.g., is_display_secret_shaped) that uses only token-prefix and private-key-block patterns (no context pattern). Use it in terminal_safe_identity_value. Keep is_secret_shaped_value for env var scanning.
PRA-13 Improvement correctness src/lib/onboard/sandbox-create-launch.ts:58 Add 'needsSandboxNamePropagation?: boolean' to AgentDefinition interface in src/lib/agent/defs.ts. Gate propagation on that field. Update langchain-deepagents-code agent definition to opt in.
PRA-14 Improvement tests test/dcode-sandbox-identity-integration.test.ts:1 Add one integration test variant using the real wrapper (not stubbed exec) with a valid config.toml that verifies status output includes all fields (route, provider, model, endpoint). Current test is correct for its scope (sandbox name handoff) but doesn't cover the full identity pipeline.
PRA-15 Improvement correctness agents/langchain-deepagents-code/dcode-wrapper.sh:185 Add comment in assert_no_secret_runtime_env explaining check order: secret-shaped scan first (catches malicious values), then credential-name-context with allowlist exception (allows canonical TLS key path).
PRA-16 Improvement correctness test/dcode-wrapper-identity.test.ts:92 Extract to module-level constant: const TEST_PATH = process.env.PATH ?? '/usr/bin:/bin'; and reuse.
PRA-17 Improvement correctness test/support/dcode-start-script-fixture.ts:21 Extract shared fixture helper to test/support/dcode-wrapper-fixture.ts (parallel to dcode-start-script-fixture.ts). Not urgent with only 3 test files, but good hygiene.
PRA-18 Improvement correctness agents/langchain-deepagents-code/dcode-wrapper.sh:380 Document the exact supported TOML subset in the function comment: only double-quoted scalars in flat sections. Consider if single-quoted or unquoted should be supported for robustness.
PRA-19 Improvement correctness agents/langchain-deepagents-code/dcode-wrapper.sh:400 Consider moving provider metadata to a dedicated TOML section in onboard config generation. Or add a test that the onboard-generated config.toml comment format is parsed correctly by toml_provider_metadata.
PRA-20 Improvement correctness agents/langchain-deepagents-code/dcode-wrapper.sh:45 Change character class to [A-Za-z0-9_.+/=-] for clarity. Document that the function matches embedded 'KEY=secret' patterns in raw values (different from canonical lookbehind semantics).

🚨 Required before merge

Address these before merging unless a maintainer explicitly overrides the advisor with rationale.

PRA-4 Required — PR #6082 merge conflict on same 4 files

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:1
  • Category: architecture
  • Problem: PR fix(dcode): harden managed runtime boundaries #6082 ('fix(dcode): harden managed runtime boundaries') modifies the same 4 files: dcode-wrapper.sh, start.sh, quickstart-langchain-deepagents-code.mdx, and test/langchain-deepagents-code-image.test.ts. Both PRs are open. Uncoordinated merges risk conflicting secret-pattern regex additions (e.g., both adding tvly- prefix), duplicate proxy handling changes, or contradictory test modifications.
  • Impact: Conflicting secret-pattern regex could weaken security boundaries or cause merge failures; duplicate test modifications create maintenance burden.
  • Required action: Coordinate with PR fix(dcode): harden managed runtime boundaries #6082 author. Either merge fix(dcode): harden managed runtime boundaries #6082 first and rebase this PR, or ensure this PR's changes are a strict subset of fix(dcode): harden managed runtime boundaries #6082's final state. Verify no duplicate/contradictory secret-pattern regex additions or proxy handling changes.
  • Expected follow-up: Fix before merge or get explicit maintainer override.
  • Verification: Run `gh pr view 6082 --json files` and compare file lists. Check both PRs' diffs for overlapping hunks in the 4 shared files.
  • Missing regression test: N/A — process/coordination issue, not a testable code defect.
  • Done when: The required change is committed and verification passes: Run `gh pr view 6082 --json files` and compare file lists. Check both PRs' diffs for overlapping hunks in the 4 shared files.
  • Evidence: Both PRs modify agents/langchain-deepagents-code/dcode-wrapper.sh, agents/langchain-deepagents-code/start.sh, docs/get-started/quickstart-langchain-deepagents-code.mdx, test/langchain-deepagents-code-image.test.ts
Review findings by urgency: 1 required fix, 11 items to resolve/justify, 9 in-scope improvements

⚠️ Resolve or justify before merge

Investigate these in the current review; either fix them, explain why they are not applicable, or document the accepted risk.

PRA-1 Resolve/justify — Source-of-truth review needed: safe_endpoint_identity_value (dcode-wrapper.sh:495-520)

  • Location: not file-specific
  • Category: architecture
  • Problem: The advisor marked localized patch analysis as needs_followup.
  • Impact: A localized workaround can preserve or hide an invalid state when the source boundary is unclear.
  • Recommended action: Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Missing regression test: dcode-wrapper-identity.test.ts 'does not write unsafe endpoint values from mutable sources' covers literal/encoded query, fragment, userinfo. Missing: metadata IPs, private ranges.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Evidence: safe_endpoint_identity_value lacks blocklist for 169.254.169.254, 169.254.170.2, loopback, RFC1918 ranges

PRA-2 Resolve/justify — Source-of-truth review needed: has_context_secret_shape (dcode-wrapper.sh:45-53)

  • Location: not file-specific
  • Category: architecture
  • Problem: The advisor marked localized patch analysis as needs_followup.
  • Impact: A localized workaround can preserve or hide an invalid state when the source boundary is unclear.
  • Recommended action: Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Missing regression test: CONTEXT_PATTERNS fingerprint test in langchain-deepagents-code-image.test.ts pins canonical patterns. No behavioral parity test for Bash.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Evidence: Bash regex uses [:space:], uppercase-only class, missing Bearer, matches prefix+delimiter+value vs lookbehind value-only

PRA-3 Resolve/justify — Source-of-truth review needed: has_private_key_block_shape (dcode-wrapper.sh:55-65)

  • Location: not file-specific
  • Category: architecture
  • Problem: The advisor marked localized patch analysis as needs_followup.
  • Impact: A localized workaround can preserve or hide an invalid state when the source boundary is unclear.
  • Recommended action: Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Missing regression test: SECRET_BLOCK_PATTERNS fingerprint test in dcode-wrapper-identity.test.ts. Missing from canonical image test.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Evidence: Bash case glob requires two BEGIN/END pairs vs canonical non-greedy single-pair regex with optional key type

PRA-5 Resolve/justify — safe_endpoint_identity_value misses metadata service IPs and private ranges

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:495
  • Category: security
  • Problem: safe_endpoint_identity_value filters endpoint URLs for display but does not block metadata service IPs (169.254.169.254, 169.254.170.2), loopback variants (127.0.0.1, ::1, localhost), or private RFC1918 ranges. A mutated config.toml or OPENAI_BASE_URL could leak internal service endpoints in status output.
  • Impact: SSRF metadata endpoint leakage in dcode status output — an attacker who can mutate config.toml or inject OPENAI_BASE_URL could exfiltrate internal service addresses via the identity command.
  • Recommended action: Add explicit blocklist for known metadata/service IPs and private ranges in safe_endpoint_identity_value, or switch to an allowlist of known-safe hosts (inference.local, configured API endpoints) and reject everything else.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Test with OPENAI_BASE_URL=http://169.254.169.254/latest/meta-data/ and verify status output suppresses the Endpoint line.
  • Missing regression test: Add test case in dcode-wrapper-identity.test.ts feeding metadata IPs and private IPs via config and runtime env; assert Endpoint line is omitted.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Test with OPENAI_BASE_URL=http://169.254.169.254/latest/meta-data/ and verify status output suppresses the Endpoint line.
  • Evidence: safe_endpoint_identity_value at line 495 only checks for encoded query/fragment/userinfo/percent delimiters, not IP-based SSRF targets

PRA-6 Resolve/justify — has_context_secret_shape regex diverges from canonical CONTEXT_PATTERNS

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:45
  • Category: security
  • Problem: has_context_secret_shape regex diverges from canonical CONTEXT_PATTERNS: (1) uses [:space:] (matches tab/newline) vs canonical space-only; (2) character class [A-Z0-9_.+/=-] only uppercase (input is uppercased so lowercase becomes uppercase, but confusing); (3) missing Bearer prefix check entirely; (4) matches prefix+delimiter+value vs canonical lookbehind matching value-only. Semantic divergence: canonical scans text for 'KEY=secret' patterns; Bash scans raw value for embedded 'KEY=secret' patterns.
  • Impact: False parity — a secret may pass the Bash check but fail the TypeScript redact check (or vice versa), creating gaps in the secret boundary. The canonical Bearer token check is missing entirely in Bash.
  • Recommended action: Add behavioral parity test feeding CONTEXT_PATTERNS samples through Bash has_context_secret_shape and verifying identical accept/reject decisions. Or narrow Bash regex to match canonical exactly (space-only delimiter, add Bearer check, document intentional semantic difference).
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Run the CONTEXT_PATTERNS fingerprint test samples through a manual Bash invocation of has_context_secret_shape and compare results.
  • Missing regression test: Add parity test in langchain-deepagents-code-image.test.ts: for each CONTEXT_PATTERNS sample, assert Bash wrapper rejects/accepts identically to TypeScript redact.ts.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Run the CONTEXT_PATTERNS fingerprint test samples through a manual Bash invocation of has_context_secret_shape and compare results.
  • Evidence: has_context_secret_shape at line 45-47 uses [[ "$upper" =~ (_KEY|API_KEY|SECRET|TOKEN|PASSWORD|CREDENTIAL)[=:[:space:]][\'\"]?[A-Z0-9_.+/=-]{10,} ]] vs canonical lookbehind pattern

PRA-7 Resolve/justify — has_private_key_block_shape uses Bash glob requiring two BEGIN/END pairs vs canonical single-pair regex

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:55
  • Category: security
  • Problem: has_private_key_block_shape uses Bash glob (case) matching requiring TWO begin/end marker pairs (BEGIN ... PRIVATE KEY----- ... END ... PRIVATE KEY----- appearing twice). Canonical SECRET_BLOCK_PATTERNS uses non-greedy regex matching a single BEGIN/END pair with optional key type (RSA, EC, DSA). Bash version is both more restrictive (requires two pairs) and less precise (no key type validation, greedy matching).
  • Impact: Private-key detection gaps — single-block PEM keys (the common case) may not be caught by Bash but would be caught by canonical regex. Multi-block keys may be caught by Bash but with no key-type validation.
  • Recommended action: Add behavioral parity test feeding SECRET_BLOCK_PATTERNS samples (including multi-block PEM, RSA/EC/DSA types, escaped newlines) through has_private_key_block_shape via all call paths (runtime env, env-file, Slack wrapping). Consider if Bash '=~' with multiline support is needed for precision.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Test with single-block PEM: '-----BEGIN PRIVATE KEY-----\nbody\n-----END PRIVATE KEY-----' — Bash version requires two pairs so this may not match.
  • Missing regression test: Extend 'keeps private-key block filtering aligned' test in langchain-deepagents-code-image.test.ts to feed canonical SECRET_BLOCK_PATTERNS samples through the wrapper and verify identical rejection.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Test with single-block PEM: '-----BEGIN PRIVATE KEY-----\nbody\n-----END PRIVATE KEY-----' — Bash version requires two pairs so this may not match.
  • Evidence: has_private_key_block_shape at line 55-63 uses case "$value" in *"$begin_marker"*"PRIVATE KEY-----"*"$end_marker"*"PRIVATE KEY-----"*) vs canonical /-----BEGIN (?:[A-Z0-9]+ )?PRIVATE KEY-----[\s\S]*?-----END (?:[A-Z0-9]+ )?PRIVATE KEY-----/g

PRA-8 Resolve/justify — Missing test for identity commands with secret-shaped env vars

  • Location: test/dcode-wrapper-identity.test.ts:480
  • Category: tests
  • Problem: No test cases for identity commands (status, whoami, identity) with secret-shaped runtime env vars or env-file entries. The secret guard runs before command dispatch, so these commands currently exit 2 with secret error. Expected behavior (bypass for diagnostics vs fail-closed everywhere) is undocumented and untested.
  • Impact: Operator debugging blocked without documented decision — if fail-closed is intentional, operators must know to clean environment before any dcode command. If bypass is intended for diagnostics, it needs audit logging.
  • Recommended action: Add test cases: run 'dcode status', 'dcode whoami', 'dcode identity', '--help', '--version' with secret-shaped runtime env vars and env-file entries. Verify and document expected behavior — either (a) managed help/status prints and dcode launches (bypass) or (b) exits 2 with secret error (fail-closed). Document decision in security comment block.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Run: NEMOCLAW_SANDBOX_NAME=test OPENAI_API_KEY=sk-abcdefghijklmnopqrstuvwx bash dcode-wrapper.sh status — currently exits 2.
  • Missing regression test: Add test cases in dcode-wrapper-identity.test.ts for each identity command with secret-shaped env vars.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Run: NEMOCLAW_SANDBOX_NAME=test OPENAI_API_KEY=sk-abcdefghijklmnopqrstuvwx bash dcode-wrapper.sh status — currently exits 2.
  • Evidence: Secret guard runs at script top (lines 185-195) before command dispatch at line 200+

PRA-9 Resolve/justify — SECRET_BLOCK_PATTERNS fingerprint test missing from canonical image test

  • Location: test/langchain-deepagents-code-image.test.ts:1336
  • Category: tests
  • Problem: SECRET_BLOCK_PATTERNS fingerprint test and env-file parity coverage exist only in the new test/dcode-wrapper-identity.test.ts, not in the canonical image contract test (langchain-deepagents-code-image.test.ts). Previous review asked to consolidate parity fingerprints to a single location or ensure all three pattern sets (TOKEN_PREFIX, CONTEXT, SECRET_BLOCK) are fingerprinted together in the image test.
  • Impact: Drift detection incomplete — canonical pattern changes to SECRET_BLOCK_PATTERNS would not trip the primary parity test, allowing Bash wrapper to diverge silently.
  • Recommended action: Add SECRET_BLOCK_PATTERNS fingerprint test to langchain-deepagents-code-image.test.ts. Extend 'rejects every canonical token shape' test to also feed samples through the env-file parser (assert_no_secret_env_file) and verify identical rejection behavior.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Check langchain-deepagents-code-image.test.ts for 'SECRET_BLOCK_PATTERNS' — absent. Check dcode-wrapper-identity.test.ts line 180 — present.
  • Missing regression test: Add SECRET_BLOCK_PATTERNS fingerprint test and env-file parity test to langchain-deepagents-code-image.test.ts.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Check langchain-deepagents-code-image.test.ts for 'SECRET_BLOCK_PATTERNS' — absent. Check dcode-wrapper-identity.test.ts line 180 — present.
  • Evidence: langchain-deepagents-code-image.test.ts has fingerprint tests for TOKEN_PREFIX_PATTERNS (line 1336) and CONTEXT_PATTERNS (line 1359) but not SECRET_BLOCK_PATTERNS

PRA-10 Resolve/justify — Secret guard blocks diagnostic commands (status, --help, --version)

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:185
  • Category: security
  • Problem: assert_no_secret_runtime_env and assert_no_secret_env_file execute unconditionally at script top, before command dispatch. This blocks diagnostic commands (status, whoami, identity, --help, --version) when secret-shaped env vars are present, preventing operator debugging. The security comment block does not address this trade-off.
  • Impact: Operators cannot run diagnostic commands when secret-shaped env vars are present — must clean environment first. No documented decision on whether this is intentional fail-closed or an oversight.
  • Recommended action: Decide if identity/status/help commands should bypass secret guard (with audit logging) or if fail-closed everywhere is intended. If fail-closed, document that operators must clean environment before any dcode command. Add tests for identity commands with secret-shaped env vars to lock in expected behavior.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Run: OPENAI_API_KEY=sk-abcdefghijklmnopqrstuvwx bash dcode-wrapper.sh status — exits 2, prints secret error, does not show identity.
  • Missing regression test: Covered by PRA-8 test addition.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Run: OPENAI_API_KEY=sk-abcdefghijklmnopqrstuvwx bash dcode-wrapper.sh status — exits 2, prints secret error, does not show identity.
  • Evidence: Secret guard runs at lines 185-195; command dispatch at line 200+; no bypass for identity commands

PRA-11 Resolve/justify — is_secret_shaped_value applies context pattern to raw value — semantic divergence

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:150
  • Category: security
  • Problem: is_secret_shaped_value calls has_context_secret_shape on the raw value (not name=value). Canonical CONTEXT_PATTERNS are designed to match the value PORTION after a name=value prefix (using lookbehind). Applying the context pattern to a raw value scans for embedded 'KEY=secret' patterns — a different threat model. This is a semantic divergence from the canonical contract.
  • Impact: Semantic mismatch with canonical contract — Bash treats embedded 'KEY=secret' in a value as a secret, while TypeScript redact on the same value alone would not match (no lookbehind prefix). Creates false positives/negatives at the boundary.
  • Recommended action: Review whether has_context_secret_shape should apply to raw values in is_secret_shaped_value. Either align Bash implementation to match canonical behavior (check name=value boundary) or document the intentional divergence (defense-in-depth for embedded patterns).
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Test: value='API_KEY=sk-abcdefghijklmnopqrstuvwx' — Bash is_secret_shaped_value returns true (matches embedded pattern); TypeScript redact on just the value would not match (no lookbehind prefix in the value alone).
  • Missing regression test: Add test case documenting the divergence: feed embedded 'KEY=secret' values through wrapper and TypeScript redact; assert and document difference.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Test: value='API_KEY=sk-abcdefghijklmnopqrstuvwx' — Bash is_secret_shaped_value returns true (matches embedded pattern); TypeScript redact on just the value would not match (no lookbehind prefix in the value alone).
  • Evidence: is_secret_shaped_value at line 150 calls has_context_secret_shape "$value" directly on raw value

PRA-12 Resolve/justify — terminal_safe_identity_value incorrectly applies context pattern to metadata display

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:470
  • Category: security
  • Problem: terminal_safe_identity_value uses is_secret_shaped_value (which includes has_context_secret_shape) to filter display output. For metadata display, only token-prefix and private-key-block patterns should apply — the credential-name-context check is appropriate for env var scanning (where name=value boundary exists) but not for arbitrary metadata values (route, provider, model, endpoint from config.toml).
  • Impact: Over-filtering of identity metadata — config.toml values containing patterns like 'API_KEY=secret' in route/provider/model fields will be suppressed entirely, losing legitimate diagnostic information.
  • Recommended action: Create a separate display filter (e.g., is_display_secret_shaped) that uses only token-prefix and private-key-block patterns (no context pattern). Use it in terminal_safe_identity_value. Keep is_secret_shaped_value for env var scanning.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Test: config.toml with route: 'API_KEY=opaquevalue12345' — current code suppresses Route line; with fix, Route line should show 'unknown' or fallback but not be suppressed due to context pattern.
  • Missing regression test: Add test in dcode-wrapper-identity.test.ts: config with context-pattern-shaped metadata values; assert they are filtered by token/key patterns only, not context pattern.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Test: config.toml with route: 'API_KEY=opaquevalue12345' — current code suppresses Route line; with fix, Route line should show 'unknown' or fallback but not be suppressed due to context pattern.
  • Evidence: terminal_safe_identity_value at line 470 calls is_secret_shaped_value which includes has_context_secret_shape

💡 In-scope improvements

These are lower-risk, not throwaway. Prefer fixing them in this PR when they are local to changed code; defer only with rationale or a linked follow-up.

PRA-13 Improvement — Hardcoded agent allowlist for sandbox name propagation

  • Location: src/lib/onboard/sandbox-create-launch.ts:58
  • Category: correctness
  • Problem: Hardcoded agent name check (input.agent?.name === 'langchain-deepagents-code') gates NEMOCLAW_SANDBOX_NAME propagation. Adding new terminal agents requires modifying this central file instead of declaring capability in the agent definition.
  • Impact: Maintenance burden — each new terminal agent requires modifying sandbox-create-launch.ts. Violates open/closed principle for agent capabilities.
  • Suggested action: Add 'needsSandboxNamePropagation?: boolean' to AgentDefinition interface in src/lib/agent/defs.ts. Gate propagation on that field. Update langchain-deepagents-code agent definition to opt in.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Check src/lib/agent/defs.ts for AgentDefinition — no such field exists.
  • Missing regression test: N/A — refactor; existing test 'forwards the validated sandbox name into the Deep Agents Code sandbox create env' covers behavior.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: Line 58: if (input.agent?.name === "langchain-deepagents-code") { ... }

PRA-14 Improvement — Integration test uses stubbed wrapper — doesn't exercise real secret guard or TOML parsing

  • Location: test/dcode-sandbox-identity-integration.test.ts:1
  • Category: tests
  • Problem: Integration test uses a stubbed wrapper (replaces 'exec python3 -m deepagents_code' with touch+exit). It verifies sandbox name handoff but does not exercise the real secret guard, TOML parsing, or full identity pipeline. A variant using the real wrapper with a valid config.toml would provide end-to-end coverage.
  • Impact: Integration test gap — the composed onboarding → start.sh → dcode status pipeline is not tested with real secret guard, TOML reader, or identity display filters.
  • Suggested action: Add one integration test variant using the real wrapper (not stubbed exec) with a valid config.toml that verifies status output includes all fields (route, provider, model, endpoint). Current test is correct for its scope (sandbox name handoff) but doesn't cover the full identity pipeline.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Run the integration test — it uses a stubbed wrapper. Check if any test exercises the real dcode-wrapper.sh with a valid config.toml.
  • Missing regression test: Add integration test variant with real wrapper and valid config.toml.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: test/dcode-sandbox-identity-integration.test.ts line 30 replaces 'exec python3 -m deepagents_code' with touch+exit

PRA-15 Improvement — Secret guard check order not documented

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:185
  • Category: correctness
  • Problem: assert_no_secret_runtime_env check order (secret-shaped scan first, then credential-name-context with allowlist exception) is not documented. Future maintainers may reorder checks and break the OpenShell TLS key allowlist.
  • Impact: Maintenance risk — reordering checks could break the OPENSHELL_TLS_KEY allowlist, causing false rejections of the canonical TLS key path.
  • Suggested action: Add comment in assert_no_secret_runtime_env explaining check order: secret-shaped scan first (catches malicious values), then credential-name-context with allowlist exception (allows canonical TLS key path).
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Read assert_no_secret_runtime_env — no comment explains order.
  • Missing regression test: N/A — documentation improvement.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: assert_no_secret_runtime_env at line 185 has no comment explaining the intentional check order

PRA-16 Improvement — Repeated PATH fallback in test fixtures

  • Location: test/dcode-wrapper-identity.test.ts:92
  • Category: correctness
  • Problem: Repeated PATH fallback (process.env.PATH ?? '/usr/bin:/bin') across test fixture setup and runBashWrapper. Should be a module-level constant.
  • Impact: Code duplication — if PATH fallback needs to change, must update in multiple places.
  • Suggested action: Extract to module-level constant: const TEST_PATH = process.env.PATH ?? '/usr/bin:/bin'; and reuse.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Grep for 'process.env.PATH' in the test file — appears 3+ times.
  • Missing regression test: N/A — code quality.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: Multiple occurrences of PATH: process.env.PATH ?? "/usr/bin:/bin" in fixture setup and runBashWrapper

PRA-17 Improvement — Repeated dcode-wrapper.sh fixture patching logic

  • Location: test/support/dcode-start-script-fixture.ts:21
  • Category: correctness
  • Problem: Repeated dcode-wrapper.sh fixture patching logic in test/dcode-wrapper-identity.test.ts (makeWrapperFixture) and test/dcode-sandbox-identity-integration.test.ts (makeWrapperFixture). Shared helper would improve maintainability.
  • Impact: Code duplication — if wrapper patching logic changes, must update in two test files.
  • Suggested action: Extract shared fixture helper to test/support/dcode-wrapper-fixture.ts (parallel to dcode-start-script-fixture.ts). Not urgent with only 3 test files, but good hygiene.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Compare makeWrapperFixture in both test files — nearly identical replacement logic.
  • Missing regression test: N/A — test infrastructure.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: makeWrapperFixture in dcode-wrapper-identity.test.ts (line 63) and dcode-sandbox-identity-integration.test.ts (line 29) have nearly identical replacement logic

PRA-18 Improvement — toml_section_scalar supported format not documented

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:380
  • Category: correctness
  • Problem: toml_section_scalar only supports exact quoted scalar format ('key = "value"'). It rejects single quotes, unquoted values, arrays, inline comments, and nested tables. The test 'falls back safely for malformed or unsupported generated config scalars' covers this, but the supported format should be documented in the function comment.
  • Impact: Maintainers may not know the exact TOML subset supported, leading to incorrect config generation or unexpected fallbacks.
  • Suggested action: Document the exact supported TOML subset in the function comment: only double-quoted scalars in flat sections. Consider if single-quoted or unquoted should be supported for robustness.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Read toml_section_scalar function comment — documents 'exact quoted scalars' but not the exact grammar.
  • Missing regression test: Already covered by 'falls back safely for malformed or unsupported generated config scalars' test.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: toml_section_scalar at line 380 only matches case "$key = \"*" pattern

PRA-19 Improvement — toml_provider_metadata parses fragile comment format

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:400
  • Category: correctness
  • Problem: toml_provider_metadata parses a fragile comment format '# NemoClaw provider route: inference; upstream provider: nvidia-prod; API: openai-completions.'. A dedicated TOML section (e.g., [nemoclaw.provider]) would be more robust. At minimum, add a test verifying the exact comment format is generated by onboard and parsed correctly here.
  • Impact: Fragile parsing — any change to onboard's comment format breaks provider metadata display. No test verifies the end-to-end format contract.
  • Suggested action: Consider moving provider metadata to a dedicated TOML section in onboard config generation. Or add a test that the onboard-generated config.toml comment format is parsed correctly by toml_provider_metadata.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Check src/lib/onboard for config.toml generation — search for 'NemoClaw provider route'.
  • Missing regression test: Add test verifying onboard-generated config.toml comment is parsed by toml_provider_metadata.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: toml_provider_metadata at line 400 parses comment with IFS=';' read -r route provider _api <<<"$line"

PRA-20 Improvement — has_context_secret_shape character class clarity and semantics

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:45
  • Category: correctness
  • Problem: has_context_secret_shape uppercases the entire value then matches [A-Z0-9_.+/=-]. This works because lowercase becomes uppercase, but is confusing and the character class should be [A-Za-z0-9_.+/=-] for clarity. Also, the pattern matches the PREFIX+delimiter+VALUE, not just the value (unlike canonical lookbehind).
  • Impact: Code clarity — future maintainers may misread the character class. Semantic difference from canonical not obvious.
  • Suggested action: Change character class to [A-Za-z0-9_.+/=-] for clarity. Document that the function matches embedded 'KEY=secret' patterns in raw values (different from canonical lookbehind semantics).
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Read has_context_secret_shape — the uppercase conversion and char class are at line 45-47.
  • Missing regression test: Covered by PRA-6 parity test.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: Line 47: [[ "$upper" =~ (_KEY|API_KEY|SECRET|TOKEN|PASSWORD|CREDENTIAL)[=:[:space:]][\'\"]?[A-Z0-9_.+/=-]{10,} ]]

PRA-21 Improvement — has_multiline_private_key_block_shape only detects literal newlines

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:70
  • Category: correctness
  • Problem: has_multiline_private_key_block_shape only detects literal newlines ($'\n'), not escaped newlines (\\n) in dotenv values. This is documented as defense-in-depth for 'raw multiline blocks', but the primary private-key detection (has_private_key_block_shape) catches both via glob matching. The distinction should be clarified in comments.
  • Impact: Comment clarity — the relationship between the two private-key detection functions is not obvious.
  • Suggested action: Clarify comment: this function is an ADDITIONAL scan on raw file content to catch literal-newline PEM blocks before line-by-line parsing; the main detection handles escaped newlines during value parsing.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Read has_multiline_private_key_block_shape comment and compare with has_private_key_block_shape.
  • Missing regression test: Covered by existing private-key tests.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: has_multiline_private_key_block_shape at line 70 uses literal newline=$'\n' in case pattern
Test follow-ups to resolve or justify

If these cover changed behavior, prefer adding them in this PR; otherwise state why existing coverage is enough or link the follow-up.

  • PRA-T1 Runtime validation — Identity commands (status, whoami, identity, --help, --version) with secret-shaped runtime env vars and env-file entries — lock in expected behavior (bypass vs fail-closed).. Runtime/sandbox/infrastructure paths need behavioral runtime validation: agents/langchain-deepagents-code/dcode-wrapper.sh, agents/langchain-deepagents-code/start.sh, docs/get-started/quickstart-langchain-deepagents-code.mdx, src/lib/onboard.ts, src/lib/onboard/sandbox-create-launch.ts. Current unit/integration tests cover identity commands, secret guard parity, and sandbox name handoff but lack behavioral parity tests for canonical patterns and metadata IP blocking.
  • PRA-T2 Runtime validation — SECRET_BLOCK_PATTERNS fingerprint test in langchain-deepagents-code-image.test.ts with env-file parity.. Runtime/sandbox/infrastructure paths need behavioral runtime validation: agents/langchain-deepagents-code/dcode-wrapper.sh, agents/langchain-deepagents-code/start.sh, docs/get-started/quickstart-langchain-deepagents-code.mdx, src/lib/onboard.ts, src/lib/onboard/sandbox-create-launch.ts. Current unit/integration tests cover identity commands, secret guard parity, and sandbox name handoff but lack behavioral parity tests for canonical patterns and metadata IP blocking.
  • PRA-T3 Runtime validation — Behavioral parity tests: feed canonical CONTEXT_PATTERNS and SECRET_BLOCK_PATTERNS samples through Bash wrapper; verify identical accept/reject.. Runtime/sandbox/infrastructure paths need behavioral runtime validation: agents/langchain-deepagents-code/dcode-wrapper.sh, agents/langchain-deepagents-code/start.sh, docs/get-started/quickstart-langchain-deepagents-code.mdx, src/lib/onboard.ts, src/lib/onboard/sandbox-create-launch.ts. Current unit/integration tests cover identity commands, secret guard parity, and sandbox name handoff but lack behavioral parity tests for canonical patterns and metadata IP blocking.
  • PRA-T4 Runtime validation — safe_endpoint_identity_value with metadata IPs (169.254.169.254), loopback, private ranges — assert Endpoint line suppressed.. Runtime/sandbox/infrastructure paths need behavioral runtime validation: agents/langchain-deepagents-code/dcode-wrapper.sh, agents/langchain-deepagents-code/start.sh, docs/get-started/quickstart-langchain-deepagents-code.mdx, src/lib/onboard.ts, src/lib/onboard/sandbox-create-launch.ts. Current unit/integration tests cover identity commands, secret guard parity, and sandbox name handoff but lack behavioral parity tests for canonical patterns and metadata IP blocking.
  • PRA-T5 Runtime validation — terminal_safe_identity_value with context-pattern-shaped metadata (e.g., route: 'API_KEY=secret') — assert filtered by token/key patterns only.. Runtime/sandbox/infrastructure paths need behavioral runtime validation: agents/langchain-deepagents-code/dcode-wrapper.sh, agents/langchain-deepagents-code/start.sh, docs/get-started/quickstart-langchain-deepagents-code.mdx, src/lib/onboard.ts, src/lib/onboard/sandbox-create-launch.ts. Current unit/integration tests cover identity commands, secret guard parity, and sandbox name handoff but lack behavioral parity tests for canonical patterns and metadata IP blocking.
  • PRA-T6 Missing test for identity commands with secret-shaped env vars — Add test cases: run 'dcode status', 'dcode whoami', 'dcode identity', '--help', '--version' with secret-shaped runtime env vars and env-file entries. Verify and document expected behavior — either (a) managed help/status prints and dcode launches (bypass) or (b) exits 2 with secret error (fail-closed). Document decision in security comment block.
  • PRA-T7 SECRET_BLOCK_PATTERNS fingerprint test missing from canonical image test — Add SECRET_BLOCK_PATTERNS fingerprint test to langchain-deepagents-code-image.test.ts. Extend 'rejects every canonical token shape' test to also feed samples through the env-file parser (assert_no_secret_env_file) and verify identical rejection behavior.
  • PRA-T8 Integration test uses stubbed wrapper — doesn't exercise real secret guard or TOML parsing — Add one integration test variant using the real wrapper (not stubbed exec) with a valid config.toml that verifies status output includes all fields (route, provider, model, endpoint). Current test is correct for its scope (sandbox name handoff) but doesn't cover the full identity pipeline.
Since last review details

Current findings, using the urgency labels above:

PRA-1 Resolve/justify — Source-of-truth review needed: safe_endpoint_identity_value (dcode-wrapper.sh:495-520)

  • Location: not file-specific
  • Category: architecture
  • Problem: The advisor marked localized patch analysis as needs_followup.
  • Impact: A localized workaround can preserve or hide an invalid state when the source boundary is unclear.
  • Recommended action: Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Missing regression test: dcode-wrapper-identity.test.ts 'does not write unsafe endpoint values from mutable sources' covers literal/encoded query, fragment, userinfo. Missing: metadata IPs, private ranges.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Evidence: safe_endpoint_identity_value lacks blocklist for 169.254.169.254, 169.254.170.2, loopback, RFC1918 ranges

PRA-2 Resolve/justify — Source-of-truth review needed: has_context_secret_shape (dcode-wrapper.sh:45-53)

  • Location: not file-specific
  • Category: architecture
  • Problem: The advisor marked localized patch analysis as needs_followup.
  • Impact: A localized workaround can preserve or hide an invalid state when the source boundary is unclear.
  • Recommended action: Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Missing regression test: CONTEXT_PATTERNS fingerprint test in langchain-deepagents-code-image.test.ts pins canonical patterns. No behavioral parity test for Bash.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Evidence: Bash regex uses [:space:], uppercase-only class, missing Bearer, matches prefix+delimiter+value vs lookbehind value-only

PRA-3 Resolve/justify — Source-of-truth review needed: has_private_key_block_shape (dcode-wrapper.sh:55-65)

  • Location: not file-specific
  • Category: architecture
  • Problem: The advisor marked localized patch analysis as needs_followup.
  • Impact: A localized workaround can preserve or hide an invalid state when the source boundary is unclear.
  • Recommended action: Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Missing regression test: SECRET_BLOCK_PATTERNS fingerprint test in dcode-wrapper-identity.test.ts. Missing from canonical image test.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Evidence: Bash case glob requires two BEGIN/END pairs vs canonical non-greedy single-pair regex with optional key type

PRA-4 Required — PR #6082 merge conflict on same 4 files

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:1
  • Category: architecture
  • Problem: PR fix(dcode): harden managed runtime boundaries #6082 ('fix(dcode): harden managed runtime boundaries') modifies the same 4 files: dcode-wrapper.sh, start.sh, quickstart-langchain-deepagents-code.mdx, and test/langchain-deepagents-code-image.test.ts. Both PRs are open. Uncoordinated merges risk conflicting secret-pattern regex additions (e.g., both adding tvly- prefix), duplicate proxy handling changes, or contradictory test modifications.
  • Impact: Conflicting secret-pattern regex could weaken security boundaries or cause merge failures; duplicate test modifications create maintenance burden.
  • Required action: Coordinate with PR fix(dcode): harden managed runtime boundaries #6082 author. Either merge fix(dcode): harden managed runtime boundaries #6082 first and rebase this PR, or ensure this PR's changes are a strict subset of fix(dcode): harden managed runtime boundaries #6082's final state. Verify no duplicate/contradictory secret-pattern regex additions or proxy handling changes.
  • Expected follow-up: Fix before merge or get explicit maintainer override.
  • Verification: Run `gh pr view 6082 --json files` and compare file lists. Check both PRs' diffs for overlapping hunks in the 4 shared files.
  • Missing regression test: N/A — process/coordination issue, not a testable code defect.
  • Done when: The required change is committed and verification passes: Run `gh pr view 6082 --json files` and compare file lists. Check both PRs' diffs for overlapping hunks in the 4 shared files.
  • Evidence: Both PRs modify agents/langchain-deepagents-code/dcode-wrapper.sh, agents/langchain-deepagents-code/start.sh, docs/get-started/quickstart-langchain-deepagents-code.mdx, test/langchain-deepagents-code-image.test.ts

PRA-5 Resolve/justify — safe_endpoint_identity_value misses metadata service IPs and private ranges

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:495
  • Category: security
  • Problem: safe_endpoint_identity_value filters endpoint URLs for display but does not block metadata service IPs (169.254.169.254, 169.254.170.2), loopback variants (127.0.0.1, ::1, localhost), or private RFC1918 ranges. A mutated config.toml or OPENAI_BASE_URL could leak internal service endpoints in status output.
  • Impact: SSRF metadata endpoint leakage in dcode status output — an attacker who can mutate config.toml or inject OPENAI_BASE_URL could exfiltrate internal service addresses via the identity command.
  • Recommended action: Add explicit blocklist for known metadata/service IPs and private ranges in safe_endpoint_identity_value, or switch to an allowlist of known-safe hosts (inference.local, configured API endpoints) and reject everything else.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Test with OPENAI_BASE_URL=http://169.254.169.254/latest/meta-data/ and verify status output suppresses the Endpoint line.
  • Missing regression test: Add test case in dcode-wrapper-identity.test.ts feeding metadata IPs and private IPs via config and runtime env; assert Endpoint line is omitted.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Test with OPENAI_BASE_URL=http://169.254.169.254/latest/meta-data/ and verify status output suppresses the Endpoint line.
  • Evidence: safe_endpoint_identity_value at line 495 only checks for encoded query/fragment/userinfo/percent delimiters, not IP-based SSRF targets

PRA-6 Resolve/justify — has_context_secret_shape regex diverges from canonical CONTEXT_PATTERNS

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:45
  • Category: security
  • Problem: has_context_secret_shape regex diverges from canonical CONTEXT_PATTERNS: (1) uses [:space:] (matches tab/newline) vs canonical space-only; (2) character class [A-Z0-9_.+/=-] only uppercase (input is uppercased so lowercase becomes uppercase, but confusing); (3) missing Bearer prefix check entirely; (4) matches prefix+delimiter+value vs canonical lookbehind matching value-only. Semantic divergence: canonical scans text for 'KEY=secret' patterns; Bash scans raw value for embedded 'KEY=secret' patterns.
  • Impact: False parity — a secret may pass the Bash check but fail the TypeScript redact check (or vice versa), creating gaps in the secret boundary. The canonical Bearer token check is missing entirely in Bash.
  • Recommended action: Add behavioral parity test feeding CONTEXT_PATTERNS samples through Bash has_context_secret_shape and verifying identical accept/reject decisions. Or narrow Bash regex to match canonical exactly (space-only delimiter, add Bearer check, document intentional semantic difference).
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Run the CONTEXT_PATTERNS fingerprint test samples through a manual Bash invocation of has_context_secret_shape and compare results.
  • Missing regression test: Add parity test in langchain-deepagents-code-image.test.ts: for each CONTEXT_PATTERNS sample, assert Bash wrapper rejects/accepts identically to TypeScript redact.ts.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Run the CONTEXT_PATTERNS fingerprint test samples through a manual Bash invocation of has_context_secret_shape and compare results.
  • Evidence: has_context_secret_shape at line 45-47 uses [[ "$upper" =~ (_KEY|API_KEY|SECRET|TOKEN|PASSWORD|CREDENTIAL)[=:[:space:]][\'\"]?[A-Z0-9_.+/=-]{10,} ]] vs canonical lookbehind pattern

PRA-7 Resolve/justify — has_private_key_block_shape uses Bash glob requiring two BEGIN/END pairs vs canonical single-pair regex

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:55
  • Category: security
  • Problem: has_private_key_block_shape uses Bash glob (case) matching requiring TWO begin/end marker pairs (BEGIN ... PRIVATE KEY----- ... END ... PRIVATE KEY----- appearing twice). Canonical SECRET_BLOCK_PATTERNS uses non-greedy regex matching a single BEGIN/END pair with optional key type (RSA, EC, DSA). Bash version is both more restrictive (requires two pairs) and less precise (no key type validation, greedy matching).
  • Impact: Private-key detection gaps — single-block PEM keys (the common case) may not be caught by Bash but would be caught by canonical regex. Multi-block keys may be caught by Bash but with no key-type validation.
  • Recommended action: Add behavioral parity test feeding SECRET_BLOCK_PATTERNS samples (including multi-block PEM, RSA/EC/DSA types, escaped newlines) through has_private_key_block_shape via all call paths (runtime env, env-file, Slack wrapping). Consider if Bash '=~' with multiline support is needed for precision.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Test with single-block PEM: '-----BEGIN PRIVATE KEY-----\nbody\n-----END PRIVATE KEY-----' — Bash version requires two pairs so this may not match.
  • Missing regression test: Extend 'keeps private-key block filtering aligned' test in langchain-deepagents-code-image.test.ts to feed canonical SECRET_BLOCK_PATTERNS samples through the wrapper and verify identical rejection.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Test with single-block PEM: '-----BEGIN PRIVATE KEY-----\nbody\n-----END PRIVATE KEY-----' — Bash version requires two pairs so this may not match.
  • Evidence: has_private_key_block_shape at line 55-63 uses case "$value" in *"$begin_marker"*"PRIVATE KEY-----"*"$end_marker"*"PRIVATE KEY-----"*) vs canonical /-----BEGIN (?:[A-Z0-9]+ )?PRIVATE KEY-----[\s\S]*?-----END (?:[A-Z0-9]+ )?PRIVATE KEY-----/g

PRA-8 Resolve/justify — Missing test for identity commands with secret-shaped env vars

  • Location: test/dcode-wrapper-identity.test.ts:480
  • Category: tests
  • Problem: No test cases for identity commands (status, whoami, identity) with secret-shaped runtime env vars or env-file entries. The secret guard runs before command dispatch, so these commands currently exit 2 with secret error. Expected behavior (bypass for diagnostics vs fail-closed everywhere) is undocumented and untested.
  • Impact: Operator debugging blocked without documented decision — if fail-closed is intentional, operators must know to clean environment before any dcode command. If bypass is intended for diagnostics, it needs audit logging.
  • Recommended action: Add test cases: run 'dcode status', 'dcode whoami', 'dcode identity', '--help', '--version' with secret-shaped runtime env vars and env-file entries. Verify and document expected behavior — either (a) managed help/status prints and dcode launches (bypass) or (b) exits 2 with secret error (fail-closed). Document decision in security comment block.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Run: NEMOCLAW_SANDBOX_NAME=test OPENAI_API_KEY=sk-abcdefghijklmnopqrstuvwx bash dcode-wrapper.sh status — currently exits 2.
  • Missing regression test: Add test cases in dcode-wrapper-identity.test.ts for each identity command with secret-shaped env vars.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Run: NEMOCLAW_SANDBOX_NAME=test OPENAI_API_KEY=sk-abcdefghijklmnopqrstuvwx bash dcode-wrapper.sh status — currently exits 2.
  • Evidence: Secret guard runs at script top (lines 185-195) before command dispatch at line 200+

PRA-9 Resolve/justify — SECRET_BLOCK_PATTERNS fingerprint test missing from canonical image test

  • Location: test/langchain-deepagents-code-image.test.ts:1336
  • Category: tests
  • Problem: SECRET_BLOCK_PATTERNS fingerprint test and env-file parity coverage exist only in the new test/dcode-wrapper-identity.test.ts, not in the canonical image contract test (langchain-deepagents-code-image.test.ts). Previous review asked to consolidate parity fingerprints to a single location or ensure all three pattern sets (TOKEN_PREFIX, CONTEXT, SECRET_BLOCK) are fingerprinted together in the image test.
  • Impact: Drift detection incomplete — canonical pattern changes to SECRET_BLOCK_PATTERNS would not trip the primary parity test, allowing Bash wrapper to diverge silently.
  • Recommended action: Add SECRET_BLOCK_PATTERNS fingerprint test to langchain-deepagents-code-image.test.ts. Extend 'rejects every canonical token shape' test to also feed samples through the env-file parser (assert_no_secret_env_file) and verify identical rejection behavior.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Check langchain-deepagents-code-image.test.ts for 'SECRET_BLOCK_PATTERNS' — absent. Check dcode-wrapper-identity.test.ts line 180 — present.
  • Missing regression test: Add SECRET_BLOCK_PATTERNS fingerprint test and env-file parity test to langchain-deepagents-code-image.test.ts.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Check langchain-deepagents-code-image.test.ts for 'SECRET_BLOCK_PATTERNS' — absent. Check dcode-wrapper-identity.test.ts line 180 — present.
  • Evidence: langchain-deepagents-code-image.test.ts has fingerprint tests for TOKEN_PREFIX_PATTERNS (line 1336) and CONTEXT_PATTERNS (line 1359) but not SECRET_BLOCK_PATTERNS

PRA-10 Resolve/justify — Secret guard blocks diagnostic commands (status, --help, --version)

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:185
  • Category: security
  • Problem: assert_no_secret_runtime_env and assert_no_secret_env_file execute unconditionally at script top, before command dispatch. This blocks diagnostic commands (status, whoami, identity, --help, --version) when secret-shaped env vars are present, preventing operator debugging. The security comment block does not address this trade-off.
  • Impact: Operators cannot run diagnostic commands when secret-shaped env vars are present — must clean environment first. No documented decision on whether this is intentional fail-closed or an oversight.
  • Recommended action: Decide if identity/status/help commands should bypass secret guard (with audit logging) or if fail-closed everywhere is intended. If fail-closed, document that operators must clean environment before any dcode command. Add tests for identity commands with secret-shaped env vars to lock in expected behavior.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Run: OPENAI_API_KEY=sk-abcdefghijklmnopqrstuvwx bash dcode-wrapper.sh status — exits 2, prints secret error, does not show identity.
  • Missing regression test: Covered by PRA-8 test addition.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Run: OPENAI_API_KEY=sk-abcdefghijklmnopqrstuvwx bash dcode-wrapper.sh status — exits 2, prints secret error, does not show identity.
  • Evidence: Secret guard runs at lines 185-195; command dispatch at line 200+; no bypass for identity commands

PRA-11 Resolve/justify — is_secret_shaped_value applies context pattern to raw value — semantic divergence

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:150
  • Category: security
  • Problem: is_secret_shaped_value calls has_context_secret_shape on the raw value (not name=value). Canonical CONTEXT_PATTERNS are designed to match the value PORTION after a name=value prefix (using lookbehind). Applying the context pattern to a raw value scans for embedded 'KEY=secret' patterns — a different threat model. This is a semantic divergence from the canonical contract.
  • Impact: Semantic mismatch with canonical contract — Bash treats embedded 'KEY=secret' in a value as a secret, while TypeScript redact on the same value alone would not match (no lookbehind prefix). Creates false positives/negatives at the boundary.
  • Recommended action: Review whether has_context_secret_shape should apply to raw values in is_secret_shaped_value. Either align Bash implementation to match canonical behavior (check name=value boundary) or document the intentional divergence (defense-in-depth for embedded patterns).
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Test: value='API_KEY=sk-abcdefghijklmnopqrstuvwx' — Bash is_secret_shaped_value returns true (matches embedded pattern); TypeScript redact on just the value would not match (no lookbehind prefix in the value alone).
  • Missing regression test: Add test case documenting the divergence: feed embedded 'KEY=secret' values through wrapper and TypeScript redact; assert and document difference.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Test: value='API_KEY=sk-abcdefghijklmnopqrstuvwx' — Bash is_secret_shaped_value returns true (matches embedded pattern); TypeScript redact on just the value would not match (no lookbehind prefix in the value alone).
  • Evidence: is_secret_shaped_value at line 150 calls has_context_secret_shape "$value" directly on raw value

PRA-12 Resolve/justify — terminal_safe_identity_value incorrectly applies context pattern to metadata display

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:470
  • Category: security
  • Problem: terminal_safe_identity_value uses is_secret_shaped_value (which includes has_context_secret_shape) to filter display output. For metadata display, only token-prefix and private-key-block patterns should apply — the credential-name-context check is appropriate for env var scanning (where name=value boundary exists) but not for arbitrary metadata values (route, provider, model, endpoint from config.toml).
  • Impact: Over-filtering of identity metadata — config.toml values containing patterns like 'API_KEY=secret' in route/provider/model fields will be suppressed entirely, losing legitimate diagnostic information.
  • Recommended action: Create a separate display filter (e.g., is_display_secret_shaped) that uses only token-prefix and private-key-block patterns (no context pattern). Use it in terminal_safe_identity_value. Keep is_secret_shaped_value for env var scanning.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Test: config.toml with route: 'API_KEY=opaquevalue12345' — current code suppresses Route line; with fix, Route line should show 'unknown' or fallback but not be suppressed due to context pattern.
  • Missing regression test: Add test in dcode-wrapper-identity.test.ts: config with context-pattern-shaped metadata values; assert they are filtered by token/key patterns only, not context pattern.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Test: config.toml with route: 'API_KEY=opaquevalue12345' — current code suppresses Route line; with fix, Route line should show 'unknown' or fallback but not be suppressed due to context pattern.
  • Evidence: terminal_safe_identity_value at line 470 calls is_secret_shaped_value which includes has_context_secret_shape

PRA-13 Improvement — Hardcoded agent allowlist for sandbox name propagation

  • Location: src/lib/onboard/sandbox-create-launch.ts:58
  • Category: correctness
  • Problem: Hardcoded agent name check (input.agent?.name === 'langchain-deepagents-code') gates NEMOCLAW_SANDBOX_NAME propagation. Adding new terminal agents requires modifying this central file instead of declaring capability in the agent definition.
  • Impact: Maintenance burden — each new terminal agent requires modifying sandbox-create-launch.ts. Violates open/closed principle for agent capabilities.
  • Suggested action: Add 'needsSandboxNamePropagation?: boolean' to AgentDefinition interface in src/lib/agent/defs.ts. Gate propagation on that field. Update langchain-deepagents-code agent definition to opt in.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Check src/lib/agent/defs.ts for AgentDefinition — no such field exists.
  • Missing regression test: N/A — refactor; existing test 'forwards the validated sandbox name into the Deep Agents Code sandbox create env' covers behavior.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: Line 58: if (input.agent?.name === "langchain-deepagents-code") { ... }

PRA-14 Improvement — Integration test uses stubbed wrapper — doesn't exercise real secret guard or TOML parsing

  • Location: test/dcode-sandbox-identity-integration.test.ts:1
  • Category: tests
  • Problem: Integration test uses a stubbed wrapper (replaces 'exec python3 -m deepagents_code' with touch+exit). It verifies sandbox name handoff but does not exercise the real secret guard, TOML parsing, or full identity pipeline. A variant using the real wrapper with a valid config.toml would provide end-to-end coverage.
  • Impact: Integration test gap — the composed onboarding → start.sh → dcode status pipeline is not tested with real secret guard, TOML reader, or identity display filters.
  • Suggested action: Add one integration test variant using the real wrapper (not stubbed exec) with a valid config.toml that verifies status output includes all fields (route, provider, model, endpoint). Current test is correct for its scope (sandbox name handoff) but doesn't cover the full identity pipeline.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Run the integration test — it uses a stubbed wrapper. Check if any test exercises the real dcode-wrapper.sh with a valid config.toml.
  • Missing regression test: Add integration test variant with real wrapper and valid config.toml.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: test/dcode-sandbox-identity-integration.test.ts line 30 replaces 'exec python3 -m deepagents_code' with touch+exit

PRA-15 Improvement — Secret guard check order not documented

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:185
  • Category: correctness
  • Problem: assert_no_secret_runtime_env check order (secret-shaped scan first, then credential-name-context with allowlist exception) is not documented. Future maintainers may reorder checks and break the OpenShell TLS key allowlist.
  • Impact: Maintenance risk — reordering checks could break the OPENSHELL_TLS_KEY allowlist, causing false rejections of the canonical TLS key path.
  • Suggested action: Add comment in assert_no_secret_runtime_env explaining check order: secret-shaped scan first (catches malicious values), then credential-name-context with allowlist exception (allows canonical TLS key path).
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Read assert_no_secret_runtime_env — no comment explains order.
  • Missing regression test: N/A — documentation improvement.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: assert_no_secret_runtime_env at line 185 has no comment explaining the intentional check order

PRA-16 Improvement — Repeated PATH fallback in test fixtures

  • Location: test/dcode-wrapper-identity.test.ts:92
  • Category: correctness
  • Problem: Repeated PATH fallback (process.env.PATH ?? '/usr/bin:/bin') across test fixture setup and runBashWrapper. Should be a module-level constant.
  • Impact: Code duplication — if PATH fallback needs to change, must update in multiple places.
  • Suggested action: Extract to module-level constant: const TEST_PATH = process.env.PATH ?? '/usr/bin:/bin'; and reuse.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Grep for 'process.env.PATH' in the test file — appears 3+ times.
  • Missing regression test: N/A — code quality.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: Multiple occurrences of PATH: process.env.PATH ?? "/usr/bin:/bin" in fixture setup and runBashWrapper

PRA-17 Improvement — Repeated dcode-wrapper.sh fixture patching logic

  • Location: test/support/dcode-start-script-fixture.ts:21
  • Category: correctness
  • Problem: Repeated dcode-wrapper.sh fixture patching logic in test/dcode-wrapper-identity.test.ts (makeWrapperFixture) and test/dcode-sandbox-identity-integration.test.ts (makeWrapperFixture). Shared helper would improve maintainability.
  • Impact: Code duplication — if wrapper patching logic changes, must update in two test files.
  • Suggested action: Extract shared fixture helper to test/support/dcode-wrapper-fixture.ts (parallel to dcode-start-script-fixture.ts). Not urgent with only 3 test files, but good hygiene.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Compare makeWrapperFixture in both test files — nearly identical replacement logic.
  • Missing regression test: N/A — test infrastructure.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: makeWrapperFixture in dcode-wrapper-identity.test.ts (line 63) and dcode-sandbox-identity-integration.test.ts (line 29) have nearly identical replacement logic

PRA-18 Improvement — toml_section_scalar supported format not documented

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:380
  • Category: correctness
  • Problem: toml_section_scalar only supports exact quoted scalar format ('key = "value"'). It rejects single quotes, unquoted values, arrays, inline comments, and nested tables. The test 'falls back safely for malformed or unsupported generated config scalars' covers this, but the supported format should be documented in the function comment.
  • Impact: Maintainers may not know the exact TOML subset supported, leading to incorrect config generation or unexpected fallbacks.
  • Suggested action: Document the exact supported TOML subset in the function comment: only double-quoted scalars in flat sections. Consider if single-quoted or unquoted should be supported for robustness.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Read toml_section_scalar function comment — documents 'exact quoted scalars' but not the exact grammar.
  • Missing regression test: Already covered by 'falls back safely for malformed or unsupported generated config scalars' test.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: toml_section_scalar at line 380 only matches case "$key = \"*" pattern

PRA-19 Improvement — toml_provider_metadata parses fragile comment format

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:400
  • Category: correctness
  • Problem: toml_provider_metadata parses a fragile comment format '# NemoClaw provider route: inference; upstream provider: nvidia-prod; API: openai-completions.'. A dedicated TOML section (e.g., [nemoclaw.provider]) would be more robust. At minimum, add a test verifying the exact comment format is generated by onboard and parsed correctly here.
  • Impact: Fragile parsing — any change to onboard's comment format breaks provider metadata display. No test verifies the end-to-end format contract.
  • Suggested action: Consider moving provider metadata to a dedicated TOML section in onboard config generation. Or add a test that the onboard-generated config.toml comment format is parsed correctly by toml_provider_metadata.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Check src/lib/onboard for config.toml generation — search for 'NemoClaw provider route'.
  • Missing regression test: Add test verifying onboard-generated config.toml comment is parsed by toml_provider_metadata.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: toml_provider_metadata at line 400 parses comment with IFS=';' read -r route provider _api <<<"$line"

PRA-20 Improvement — has_context_secret_shape character class clarity and semantics

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:45
  • Category: correctness
  • Problem: has_context_secret_shape uppercases the entire value then matches [A-Z0-9_.+/=-]. This works because lowercase becomes uppercase, but is confusing and the character class should be [A-Za-z0-9_.+/=-] for clarity. Also, the pattern matches the PREFIX+delimiter+VALUE, not just the value (unlike canonical lookbehind).
  • Impact: Code clarity — future maintainers may misread the character class. Semantic difference from canonical not obvious.
  • Suggested action: Change character class to [A-Za-z0-9_.+/=-] for clarity. Document that the function matches embedded 'KEY=secret' patterns in raw values (different from canonical lookbehind semantics).
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Read has_context_secret_shape — the uppercase conversion and char class are at line 45-47.
  • Missing regression test: Covered by PRA-6 parity test.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: Line 47: [[ "$upper" =~ (_KEY|API_KEY|SECRET|TOKEN|PASSWORD|CREDENTIAL)[=:[:space:]][\'\"]?[A-Z0-9_.+/=-]{10,} ]]

Workflow run details

This is an automated, non-binding review; it still expects maintainers and agents to respond to each required or warning item. Treat suggestions as current-PR improvements when they touch changed code; defer only with maintainer rationale or a linked follow-up. A human maintainer must make the final merge decision.

@github-actions

github-actions Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor — No blocking findings

Merge posture: No blocking advisor findings
Primary next action: No advisor follow-up required beyond maintainer review.
Open items: 0 required · 0 warnings · 0 suggestions · 0 test follow-ups
Since last review: 2 prior items resolved · 0 still apply · 0 new items found

Workflow run details

This is an automated, non-binding review; it still expects maintainers and agents to respond to each required or warning item. Treat suggestions as current-PR improvements when they touch changed code; defer only with maintainer rationale or a linked follow-up. A human maintainer must make the final merge decision.

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Vitest E2E Target Results — ✅ All selected jobs passed

Run: 28632409093
Workflow ref: codex/restore-6202-for-v0.0.74
Requested targets: ubuntu-repo-cloud-langchain-deepagents-code
Requested jobs: (default — all default-enabled free-standing jobs; explicit-only jobs hermes-gpu-startup, openshell-gateway-auth-contract, jetson-nvmap-gpu, and sandbox-rlimits-connect are skipped unless selected)
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
live ✅ success

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Vitest E2E Target Results — ✅ All selected jobs passed

Run: 28632729743
Workflow ref: codex/restore-6202-for-v0.0.74
Requested targets: ubuntu-repo-cloud-langchain-deepagents-code
Requested jobs: (default — all default-enabled free-standing jobs; explicit-only jobs hermes-gpu-startup, openshell-gateway-auth-contract, jetson-nvmap-gpu, and sandbox-rlimits-connect are skipped unless selected)
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
live ✅ success

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Vitest E2E Target Results — ✅ All selected jobs passed

Run: 28632819208
Workflow ref: codex/restore-6202-for-v0.0.74
Requested targets: ubuntu-repo-cloud-langchain-deepagents-code
Requested jobs: (default — all default-enabled free-standing jobs; explicit-only jobs hermes-gpu-startup, openshell-gateway-auth-contract, jetson-nvmap-gpu, and sandbox-rlimits-connect are skipped unless selected)
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
live ✅ success

@cv cv mentioned this pull request Jul 3, 2026
10 of 21 tasks
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Vitest E2E Target Results — ✅ All requested jobs passed

Run: 28632861121
Workflow ref: codex/restore-6202-for-v0.0.74
Requested targets: (default — all supported)
Requested jobs: cloud-onboard
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
cloud-onboard ✅ success

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Vitest E2E Target Results — ❌ Some jobs failed

Run: 28633136135
Workflow ref: codex/restore-6202-for-v0.0.74
Requested targets: (selector rejected by workflow validation)
Requested jobs: (selector rejected by workflow validation)
Summary: 0 passed, 1 failed, 0 cancelled, 0 skipped

Job Result
generate-matrix ❌ failure

Failed jobs: generate-matrix. Check run artifacts for logs.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
test/dcode-sandbox-identity-integration.test.ts (1)

28-46: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Silent no-op if literal fixture targets drift.

The wrapper-script patching relies on exact string matches (.replace(...)) for the env-file path, config-file path, and the exec python3 -m deepagents_code line. If any of these literals in dcode-wrapper.sh change, .replace() silently returns the original text with no error — the fixture would then reference the real /sandbox/.deepagents/... paths or actually attempt to exec deepagents_code, producing confusing downstream failures (or, in the worst case, false negatives on the ranMarker assertion) instead of a clear "fixture patch target not found" signal.

♻️ Suggested guard against silent match failures
+function replaceOrThrow(source: string, search: string, replacement: string): string {
+  if (!source.includes(search)) {
+    throw new Error(`dcode-wrapper.sh fixture patch target not found: ${search}`);
+  }
+  return source.replace(search, replacement);
+}
+
 function makeWrapperFixture(tempDir: string): { wrapperPath: string; ranMarker: string } {
   const wrapperPath = path.join(tempDir, "dcode-wrapper.sh");
   const ranMarker = path.join(tempDir, "dcode-ran");
   const dcodeEnvFile = path.join(tempDir, "dcode.env");
   const configFile = path.join(tempDir, "config.toml");
-  const fixture = fs
-    .readFileSync(WRAPPER, "utf8")
-    .replace(
-      'readonly DEEPAGENTS_ENV_FILE="/sandbox/.deepagents/.env"',
-      `readonly DEEPAGENTS_ENV_FILE="${dcodeEnvFile}"`,
-    )
-    .replace(
-      'readonly DEEPAGENTS_CONFIG_FILE="/sandbox/.deepagents/config.toml"',
-      `readonly DEEPAGENTS_CONFIG_FILE="${configFile}"`,
-    )
-    .replace(
-      "exec python3 -m deepagents_code",
-      `touch "${ranMarker}"; exit 0; : python3 -m deepagents_code`,
-    );
+  let fixture = fs.readFileSync(WRAPPER, "utf8");
+  fixture = replaceOrThrow(
+    fixture,
+    'readonly DEEPAGENTS_ENV_FILE="/sandbox/.deepagents/.env"',
+    `readonly DEEPAGENTS_ENV_FILE="${dcodeEnvFile}"`,
+  );
+  fixture = replaceOrThrow(
+    fixture,
+    'readonly DEEPAGENTS_CONFIG_FILE="/sandbox/.deepagents/config.toml"',
+    `readonly DEEPAGENTS_CONFIG_FILE="${configFile}"`,
+  );
+  fixture = replaceOrThrow(
+    fixture,
+    "exec python3 -m deepagents_code",
+    `touch "${ranMarker}"; exit 0; : python3 -m deepagents_code`,
+  );
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@test/dcode-sandbox-identity-integration.test.ts` around lines 28 - 46, The
fixture setup in the wrapper patching logic silently assumes exact string
matches, so update the test helper around fs.readFileSync(...).replace(...) to
verify each target literal was actually found and patched. Use the existing
dcodeEnvFile, configFile, wrapperPath, and ranMarker setup in
test/dcode-sandbox-identity-integration.test.ts to detect missing replacements
for the env path, config path, and exec python3 -m deepagents_code line, and
fail the test with a clear fixture-target-not-found error instead of leaving the
original wrapper content unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@test/dcode-sandbox-identity-integration.test.ts`:
- Around line 28-46: The fixture setup in the wrapper patching logic silently
assumes exact string matches, so update the test helper around
fs.readFileSync(...).replace(...) to verify each target literal was actually
found and patched. Use the existing dcodeEnvFile, configFile, wrapperPath, and
ranMarker setup in test/dcode-sandbox-identity-integration.test.ts to detect
missing replacements for the env path, config path, and exec python3 -m
deepagents_code line, and fail the test with a clear fixture-target-not-found
error instead of leaving the original wrapper content unchanged.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: eb99a2d3-37b2-41ec-a812-aed31d62c765

📥 Commits

Reviewing files that changed from the base of the PR and between b61b34a and 2463957.

📒 Files selected for processing (3)
  • agents/langchain-deepagents-code/dcode-wrapper.sh
  • test/dcode-sandbox-identity-integration.test.ts
  • test/dcode-wrapper-identity.test.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • agents/langchain-deepagents-code/dcode-wrapper.sh
  • test/dcode-wrapper-identity.test.ts

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Vitest E2E Target Results — ✅ All selected jobs passed

Run: 28633185574
Workflow ref: codex/restore-6202-for-v0.0.74
Requested targets: ubuntu-repo-cloud-langchain-deepagents-code
Requested jobs: (default — all default-enabled free-standing jobs; explicit-only jobs hermes-gpu-startup, openshell-gateway-auth-contract, jetson-nvmap-gpu, and sandbox-rlimits-connect are skipped unless selected)
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
live ✅ success

@cv

cv commented Jul 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

Review follow-up on a503d95a81094cd3415ce933b64a0213a4d3aa2d:

  • Composed sandbox-name flow (Nemotron PRA-4 / GPT runtime follow-up): test/dcode-sandbox-identity-integration.test.ts now composes prepareSandboxCreateLaunch → the real start.sh fixture → sourced persisted env → the real wrapper's dcode status. Only the terminal upstream exec python3 -m deepagents_code line is replaced with a marker; the secret guard, TOML reader, and status implementation are the production wrapper. The test asserts the validated name is printed, the rendered create name is absent, and upstream dcode is not launched. Focused onboarding tests pass 8/8; wrapper/image/composed tests pass 77/77. Fixture patches now fail explicitly if any source literal drifts, resolving CodeRabbit's maintainability finding, and do so with a linear assertion so the codebase-growth guard passes.
  • fix(dcode): harden managed runtime boundaries #6082 coordination and maintainer override (Nemotron PRA-4): I compared the overlapping wrapper, startup, docs, and image-test hunks and recorded the rebase contract on #6082. Maintainer decision: feat(deepagents-code): restore dcode status after v0.0.73 #6232 restores already-merged feat(deepagents-code): add dcode status and allow OpenShell TLS key in secret guard #6202 behavior and lands first; this explicitly overrides the advisor's alternative ordering. fix(dcode): harden managed runtime boundaries #6082 is complementary but currently CONFLICTING/DIRTY; its author has been notified that it must preserve feat(deepagents-code): restore dcode status after v0.0.73 #6232's trusted proxy normalization, secret matcher, exact TLS-key allowance, identity dispatch, and shared fixture, then layer its runtime-upgrade/auth-store/mutation-command work on top.
  • Status-display source boundary (Nemotron PRA-1/2/3/6/7/8): the wrapper now records the invalid state, final print boundary, source-fix constraint, supported generated-TOML subset, regression coverage, and removal condition. Mutable in-sandbox config/env still requires filtering at the final display boundary; a writer-only fix would not protect later mutation.
  • Parser and regex coverage (Nemotron PRA-9/10): tests now cover unterminated scalars/sections, inline comments, arrays, and unsupported nested sections; the POSIX whitespace class is documented inline.
  • Encoded endpoint disclosure (GPT PRA-2): endpoint display now rejects percent-encoded query, fragment, userinfo, and percent delimiters case-insensitively, including double encoding. Config and runtime tests cover uppercase/lowercase %3F, %23, %40, and %25 cases.
  • Multiline mutable .env key blocks (GPT PRA-2): the wrapper now scans the complete env file before per-line dotenv classification, so raw multiline begin/end markers cannot be split across physical lines to evade detection. The canonical parity test exercises both a real multiline generic block and an escaped typed block from the env file, asserts exit 2, redacted output, and no upstream launch.
  • Remaining Nemotron warnings: the Bash context matcher's whitespace superset is deliberately fail-closed and can only over-reject; control-bearing identity output is rejected separately. The private-key glob accepts every canonical raw/escaped generic and typed block tested and may only over-match malformed/multiple blocks, again fail-closed. Endpoint status rendering performs no fetch, so SSRF, metadata-IP, and path-traversal policy is not applicable at this display-only boundary; host allowlisting would incorrectly hide supported custom endpoints. --help intentionally does not bypass the runtime secret guard because it delegates to upstream Python after managed help, so invalid secret-bearing environments must fail before any upstream launch. Agent metadata generalization is deferred until a second agent needs sandbox-name propagation.
  • Parity and diagnostic clarifications (Nemotron PRA-6–12, PRA-14, PRA-18–21): Bearer detection is present as a separate branch immediately before the context check. The private-key glob requires one begin/end pair, not two, and supports generic or typed labels; whole-file raw-newline detection composes with the existing single-line escaped-block check. The SECRET_BLOCK_PATTERNS fingerprint lives in the focused identity suite because the image test is at its 1,500-line cap; both run in the same integration project, and the identity suite now exercises runtime plus env-file paths. Context-shaped metadata such as API_KEY=... remains intentionally suppressed as defense-in-depth rather than printed. The generated double-quoted TOML subset is documented, and the sample config test proves the exact provider-comment contract. The composed handoff uses the production guard/parser/status code and stubs only the unreachable terminal upstream exec. Broader fixture refactoring and future agent capability metadata are not needed to restore feat(deepagents-code): add dcode status and allow OpenShell TLS key in secret guard #6202.
  • Help behavior (Nemotron PRA-11): the restored quickstart already states that managed aliases precede upstream Deep Agents Code help.
  • Verification: GitHub marks all seven commits Verified; CLI typecheck, ShellCheck, Biome, test-conditionals, test-size/project-overlap, detect-private-key, and gitleaks pass. Exact-head required E2Es passed on attempt 1: ubuntu-repo-cloud-langchain-deepagents-code and cloud-onboard.

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Vitest E2E Target Results — ⚠️ Run cancelled — no signal

Run: 28633185524
Workflow ref: codex/restore-6202-for-v0.0.74
Requested targets: (default — all supported)
Requested jobs: cloud-onboard
Summary: 0 passed, 0 failed, 1 cancelled, 0 skipped

Job Result
cloud-onboard ⚠️ cancelled

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Vitest E2E Target Results — ✅ All selected jobs passed

Run: 28633333424
Workflow ref: codex/restore-6202-for-v0.0.74
Requested targets: ubuntu-repo-cloud-langchain-deepagents-code
Requested jobs: (default — all default-enabled free-standing jobs; explicit-only jobs hermes-gpu-startup, openshell-gateway-auth-contract, jetson-nvmap-gpu, and sandbox-rlimits-connect are skipped unless selected)
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
live ✅ success

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Vitest E2E Target Results — ⚠️ Run cancelled — no signal

Run: 28633333445
Workflow ref: codex/restore-6202-for-v0.0.74
Requested targets: (default — all supported)
Requested jobs: cloud-onboard
Summary: 0 passed, 0 failed, 1 cancelled, 0 skipped

Job Result
cloud-onboard ⚠️ cancelled

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Vitest E2E Target Results — ✅ All selected jobs passed

Run: 28633464269
Workflow ref: codex/restore-6202-for-v0.0.74
Requested targets: ubuntu-repo-cloud-langchain-deepagents-code
Requested jobs: (default — all default-enabled free-standing jobs; explicit-only jobs hermes-gpu-startup, openshell-gateway-auth-contract, jetson-nvmap-gpu, and sandbox-rlimits-connect are skipped unless selected)
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
live ✅ success

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Vitest E2E Target Results — ⚠️ Run cancelled — no signal

Run: 28633464254
Workflow ref: codex/restore-6202-for-v0.0.74
Requested targets: (default — all supported)
Requested jobs: cloud-onboard
Summary: 0 passed, 0 failed, 1 cancelled, 0 skipped

Job Result
cloud-onboard ⚠️ cancelled

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Vitest E2E Target Results — ✅ All selected jobs passed

Run: 28633693181
Workflow ref: codex/restore-6202-for-v0.0.74
Requested targets: ubuntu-repo-cloud-langchain-deepagents-code
Requested jobs: (default — all default-enabled free-standing jobs; explicit-only jobs hermes-gpu-startup, openshell-gateway-auth-contract, jetson-nvmap-gpu, and sandbox-rlimits-connect are skipped unless selected)
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
live ✅ success

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Vitest E2E Target Results — ✅ All requested jobs passed

Run: 28633693167
Workflow ref: codex/restore-6202-for-v0.0.74
Requested targets: (default — all supported)
Requested jobs: cloud-onboard
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
cloud-onboard ✅ success

@cv
cv enabled auto-merge (squash) July 3, 2026 02:15
@cv

cv commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author

@apurvvkumaria @miyoungc all required checks and both exact-head E2Es are green. GPT-5.5 is clean, the CodeRabbit finding is resolved, and the #6082 ordering override is documented. Squash auto-merge is enabled and is waiting only for one maintainer approval.

@cv
cv merged commit a4cd77d into main Jul 3, 2026
205 checks passed
@cv
cv deleted the codex/restore-6202-for-v0.0.74 branch July 3, 2026 02:43
ericksoa added a commit that referenced this pull request Jul 4, 2026
<!-- markdownlint-disable MD041 -->
## Summary
This PR prepares the user-facing documentation for v0.0.74 before the
release plan is frozen.
It expands the release notes across the 56-commit train and closes
durable documentation gaps found during the pre-tag commit scan.

## Changes
- Expand the `v0.0.74` release notes to cover OpenShell 0.0.72, managed
MCP, progressive tool disclosure, LangChain Deep Agents Code,
onboarding, local inference, messaging, recovery, and contributor
workflows.
- Correct the `destroy` contract for retained per-name volumes,
gateway-unreachable `--force` cleanup, managed MCP ownership, and
same-name recovery.
- Document separate remediation for an unreachable container DNS
resolver versus one that answers with `NXDOMAIN` or `REFUSED`.
- Document the Windows on Arm N1X automatic Ollama safeguard and its
remaining large-model limitations.
- State that messaging conflicts abort rebuild before backup or
deletion, leaving the original sandbox intact.
- Link the agent-runnable value benchmark from the contributor task
index.
- Synchronize generated agent command variants.
- Validate with `npm run docs:sync-agent-variants` and `npm run docs`;
Fern completed with 0 errors and 2 existing warnings.
- Source summary:
- [#6020](#6020) and
[#5876](#5876) ->
`docs/about/release-notes.mdx`: Consolidate the OpenShell 0.0.72 policy
boundary and managed MCP lifecycle.
- [#6251](#6251) and
[#5989](#5989) ->
`docs/about/release-notes.mdx`: Summarize progressive tool disclosure
and sandbox-first inference controls.
- [#6232](#6232),
[#6082](#6082),
[#6219](#6219),
[#6214](#6214),
[#6215](#6215),
[#6230](#6230), and
[#6260](#6260) ->
`docs/about/release-notes.mdx`: Summarize the experimental LangChain
Deep Agents Code status, secret, version, rebuild, snapshot, and MCP
boundaries.
- [#6166](#6166),
[#6254](#6254),
[#6265](#6265),
[#6164](#6164), and
[#6017](#6017) ->
`docs/about/release-notes.mdx`: Summarize BuildKit prebuild, validated
image reuse, bounded readiness, and preflight improvements.
- [#6150](#6150) ->
`docs/about/release-notes.mdx` and `docs/reference/troubleshooting.mdx`:
Separate unreachable-resolver remediation from reachable-but-rejected
DNS responses.
- [#6234](#6234) ->
`docs/about/release-notes.mdx`,
`docs/inference/use-local-inference.mdx`, and
`docs/get-started/windows-preparation.mdx`: Document N1X automatic 9B
selection and the remaining explicit-large-model boundary.
- [#6129](#6129),
[#5987](#5987),
[#5955](#5955), and
[#6220](#6220) ->
`docs/about/release-notes.mdx`,
`docs/manage-sandboxes/messaging-channels.mdx`,
`docs/reference/commands.mdx`, and
`docs/reference/commands-nemohermes.mdx`: Document messaging policy
persistence, status, and the pre-destructive conflict check.
- [#5963](#5963),
[#6050](#6050),
[#6094](#6094),
[#6238](#6238),
[#5988](#5988),
[#6235](#6235),
[#6181](#6181), and
[#5986](#5986) ->
`docs/about/release-notes.mdx`, `docs/reference/commands.mdx`, and
`docs/reference/commands-nemohermes.mdx`: Summarize day-two recovery and
clarify retained-volume and local-only destroy semantics.
- [#6200](#6200),
[#6248](#6248),
[#6168](#6168),
[#6270](#6270), and
[#5649](#5649) ->
`docs/about/release-notes.mdx` and `CONTRIBUTING.md`: Summarize
contributor setup and verification improvements and expose the advisory
value benchmark.

## Type of Change

- [ ] Code change (feature, bug fix, or refactor)
- [ ] Code change with doc updates
- [ ] Doc only (prose changes, no code sample modifications)
- [x] Doc only (includes code sample changes)

## Quality Gates
<!-- Check exactly one tests line and one docs line. Check other lines
when applicable. Add every requested justification or approval
reference. -->
- [ ] Tests added or updated for changed behavior
- [ ] Existing tests cover changed behavior — justification:
- [x] Tests not applicable — justification: documentation-only release
preparation; generated-variant synchronization and the Fern docs build
validate the changed pages and routes.
- [x] Docs updated for user-facing behavior changes
- [ ] Docs not applicable — justification:
- [ ] Sensitive paths changed (security, policy, credentials, preflight,
onboarding, inference, runner, sandbox, or messaging)
- [ ] Sensitive-path review completed or maintainer-approved waiver
recorded — reviewer/approval link/justification:
- [ ] Non-success, skipped, or missing CI check accepted by maintainer —
check name, approval link, and follow-up issue:

## Verification
<!-- Check each applicable item only when supported by the requested
evidence. Run targeted tests once per relevant change set and rerun
after later edits or hook autofixes that can affect the tested behavior.
Do not rerun hook-covered checks. -->
- [x] PR description includes the DCO sign-off declaration and every
commit appears as `Verified` in GitHub
- [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or
`npm run check:diff` passed when hooks were skipped or unavailable
- [x] Targeted behavior tests pass for the current change set, or tests
are marked not applicable above — command/result or justification: tests
are not applicable to this documentation-only change; `npm run docs`
validates the source and generated routes.
- [ ] Applicable broad gate passed — `npm test` for broad
runtime/test-harness changes; `npm run check` for repo-wide
validation/coverage changes — command/result:
- [x] Quality Gates section completed with required justifications or
waivers
- [x] No secrets, API keys, or credentials committed
- [ ] `npm run docs` builds without warnings (doc changes only)
- [x] Doc pages follow the [style
guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md)
(doc changes only)
- [ ] New doc pages include SPDX header and frontmatter (new pages only)

---
<!-- DCO sign-off is required in this PR description, and every commit
must appear as Verified in GitHub. Run: git config user.name && git
config user.email -->
Signed-off-by: Aaron Erickson <[email protected]>


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Expanded setup guidance for Windows on Arm devices with safer default
local model selection.
* Clarified local inference and sandbox messaging behavior, including
conflict checks before rebuilds and safer recovery steps.
* Updated destroy/rebuild/reference docs with more detailed warnings,
failure handling, and volume-retention guidance.
* Improved troubleshooting instructions for Docker DNS issues with
clearer paths for unreachable vs. blocked resolvers.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Aaron Erickson <[email protected]>
Hadar301 pushed a commit to Hadar301/NemoClaw-OpenShift that referenced this pull request Jul 12, 2026
<!-- markdownlint-disable MD041 -->
## Summary
<!-- 1-3 sentences: what this PR does and why. -->

Restores NVIDIA#6202 now that v0.0.73 has been tagged. This reintroduces
`dcode status` identity reporting, managed help, the exact OpenShell
TLS-key runtime allowance, sandbox-name propagation, and their docs and
tests for v0.0.74, with focused follow-ups that suppress
private-key-shaped or encoded-credential metadata and fail closed on
malformed or unsupported identity config scalars.

## Related Issue
<!-- Fixes #NNN or Closes #NNN. Remove this section if none. -->

Restores NVIDIA#6202 after the release-boundary revert in NVIDIA#6223. Related to
NVIDIA#6189, NVIDIA#6186, and the complementary runtime hardening in NVIDIA#6082.

## Changes
<!-- Bullet list of key changes. -->

- Restore `dcode status`, `dcode whoami`, and `dcode identity` without
launching the interactive UI.
- Restore the exact runtime-only
`OPENSHELL_TLS_KEY=/etc/openshell/tls/client/tls.key` allowance while
keeping arbitrary paths, values, PEM material, and persisted `.env`
entries fail-closed.
- Restore Tavily and context-shaped secret detection in the managed Deep
Agents Code wrapper.
- Mirror canonical private-key block detection before mutable config or
runtime metadata can reach `dcode status`, including the managed Slack
early-allowlist path, and scan the complete mutable `.deepagents/.env`
so raw multiline blocks cannot evade per-line classification.
- Reject literal, escaped, percent-encoded, and double-encoded query,
fragment, and userinfo delimiters before endpoint metadata can reach
`dcode status`.
- Restrict the informational TOML reader to known generated sections and
complete quoted scalars so malformed, commented, array, and unsupported
nested values fall back safely instead of being displayed.
- Restore Deep Agents Code sandbox-name propagation through onboarding
and startup state.
- Restore the original NVIDIA#6202 quickstart documentation, identity tests,
secret-boundary tests, and shared fixture, then add a composed
onboarding → `start.sh` → `dcode status` handoff test.
- Record the NVIDIA#6082 rebase contract: NVIDIA#6232's managed-proxy and
secret-filtering paths remain authoritative while NVIDIA#6082's runtime
upgrade, auth-store, and mutation-command work layers on afterward.

## Type of Change

- [ ] Code change (feature, bug fix, or refactor)
- [x] Code change with doc updates
- [ ] Doc only (prose changes, no code sample modifications)
- [ ] Doc only (includes code sample changes)

## Quality Gates
<!-- Check all that apply. For any "covered by existing tests", "not
applicable", or waiver entry, add a brief justification on the same line
or in the Changes section. -->
- [x] Tests added or updated for changed behavior — restores the
original NVIDIA#6202 identity, secret-boundary, image-contract, and onboarding
coverage; adds canonical private-key parity, malformed/unsupported
config, encoded endpoint, and composed sandbox-name handoff cases.
- [ ] Existing tests cover changed behavior — justification:
- [ ] Tests not applicable — justification:
- [x] Docs updated for user-facing behavior changes — restores the
original `dcode status` quickstart section.
- [ ] Docs not applicable — justification:
- [x] Sensitive paths changed (security, policy, credentials, preflight,
onboarding, inference, runner, sandbox, or messaging)
- [x] Sensitive-path review completed or maintainer-approved waiver
recorded — the restoration commit exactly matches the previously
reviewed NVIDIA#6202 tree; independent reproduction confirmed the
advisor-reported private-key status leak, and focused follow-ups mirror
the canonical block pattern, reject raw multiline `.env` key blocks and
encoded endpoint delimiters, and fail closed on malformed generated
scalars with status, parity, managed-Slack, composed-handoff, no-launch,
redaction, and secret-scanner coverage.
- [ ] Non-success, skipped, or missing CI check accepted by maintainer —
no CI waiver requested; required remote checks remain mandatory.

## Verification
<!-- Check each item you ran and confirmed. Leave unchecked items you
skipped. Doc-only changes do not require npm test unless you ran it. -->
- [x] PR description includes the DCO sign-off declaration and every
commit appears as `Verified` in GitHub.
- [ ] Git hooks passed during commit and push, or `npx prek run
--from-ref main --to-ref HEAD` passes — all commit hooks except the
disclosed local `test-cli` environment-sensitive baseline lane passed;
normal pre-push CLI typecheck and tag-version synchronization passed.
- [x] Targeted tests pass for changed behavior — onboarding 8/8 and Deep
Agents Code wrapper/image/composed-handoff tests 77/77 after review
follow-ups; CLI typecheck, ShellCheck, Biome, test-size/project-overlap
gates, detect-private-key, and gitleaks also pass.
- [x] Required exact-head live E2Es pass on attempt 1 —
`ubuntu-repo-cloud-langchain-deepagents-code` and `cloud-onboard` at
`a503d95a81094cd3415ce933b64a0213a4d3aa2d`.
- [ ] Full `npm test` passes (broad runtime changes only) — not rerun;
remote CI remains required.
- [x] Quality Gates section completed with required justifications or
waivers.
- [x] No secrets, API keys, or credentials committed.
- [ ] `npm run docs` builds without warnings (doc changes only) — build
passed with 0 errors and two pre-existing Fern warnings.
- [x] Doc pages follow the style guide; independent docs review found no
additional changes needed.
- [ ] New doc pages include SPDX header and frontmatter — no new doc
pages.

---
<!-- DCO sign-off is required in this PR description, and every commit
must appear as Verified in GitHub. Run: git config user.name && git
config user.email -->
Signed-off-by: Carlos Villela <[email protected]>

---------

Signed-off-by: Carlos Villela <[email protected]>
Hadar301 pushed a commit to Hadar301/NemoClaw-OpenShift that referenced this pull request Jul 12, 2026
<!-- markdownlint-disable MD041 -->
## Summary
This PR prepares the user-facing documentation for v0.0.74 before the
release plan is frozen.
It expands the release notes across the 56-commit train and closes
durable documentation gaps found during the pre-tag commit scan.

## Changes
- Expand the `v0.0.74` release notes to cover OpenShell 0.0.72, managed
MCP, progressive tool disclosure, LangChain Deep Agents Code,
onboarding, local inference, messaging, recovery, and contributor
workflows.
- Correct the `destroy` contract for retained per-name volumes,
gateway-unreachable `--force` cleanup, managed MCP ownership, and
same-name recovery.
- Document separate remediation for an unreachable container DNS
resolver versus one that answers with `NXDOMAIN` or `REFUSED`.
- Document the Windows on Arm N1X automatic Ollama safeguard and its
remaining large-model limitations.
- State that messaging conflicts abort rebuild before backup or
deletion, leaving the original sandbox intact.
- Link the agent-runnable value benchmark from the contributor task
index.
- Synchronize generated agent command variants.
- Validate with `npm run docs:sync-agent-variants` and `npm run docs`;
Fern completed with 0 errors and 2 existing warnings.
- Source summary:
- [NVIDIA#6020](NVIDIA#6020) and
[NVIDIA#5876](NVIDIA#5876) ->
`docs/about/release-notes.mdx`: Consolidate the OpenShell 0.0.72 policy
boundary and managed MCP lifecycle.
- [NVIDIA#6251](NVIDIA#6251) and
[NVIDIA#5989](NVIDIA#5989) ->
`docs/about/release-notes.mdx`: Summarize progressive tool disclosure
and sandbox-first inference controls.
- [NVIDIA#6232](NVIDIA#6232),
[NVIDIA#6082](NVIDIA#6082),
[NVIDIA#6219](NVIDIA#6219),
[NVIDIA#6214](NVIDIA#6214),
[NVIDIA#6215](NVIDIA#6215),
[NVIDIA#6230](NVIDIA#6230), and
[NVIDIA#6260](NVIDIA#6260) ->
`docs/about/release-notes.mdx`: Summarize the experimental LangChain
Deep Agents Code status, secret, version, rebuild, snapshot, and MCP
boundaries.
- [NVIDIA#6166](NVIDIA#6166),
[NVIDIA#6254](NVIDIA#6254),
[NVIDIA#6265](NVIDIA#6265),
[NVIDIA#6164](NVIDIA#6164), and
[NVIDIA#6017](NVIDIA#6017) ->
`docs/about/release-notes.mdx`: Summarize BuildKit prebuild, validated
image reuse, bounded readiness, and preflight improvements.
- [NVIDIA#6150](NVIDIA#6150) ->
`docs/about/release-notes.mdx` and `docs/reference/troubleshooting.mdx`:
Separate unreachable-resolver remediation from reachable-but-rejected
DNS responses.
- [NVIDIA#6234](NVIDIA#6234) ->
`docs/about/release-notes.mdx`,
`docs/inference/use-local-inference.mdx`, and
`docs/get-started/windows-preparation.mdx`: Document N1X automatic 9B
selection and the remaining explicit-large-model boundary.
- [NVIDIA#6129](NVIDIA#6129),
[NVIDIA#5987](NVIDIA#5987),
[NVIDIA#5955](NVIDIA#5955), and
[NVIDIA#6220](NVIDIA#6220) ->
`docs/about/release-notes.mdx`,
`docs/manage-sandboxes/messaging-channels.mdx`,
`docs/reference/commands.mdx`, and
`docs/reference/commands-nemohermes.mdx`: Document messaging policy
persistence, status, and the pre-destructive conflict check.
- [NVIDIA#5963](NVIDIA#5963),
[NVIDIA#6050](NVIDIA#6050),
[NVIDIA#6094](NVIDIA#6094),
[NVIDIA#6238](NVIDIA#6238),
[NVIDIA#5988](NVIDIA#5988),
[NVIDIA#6235](NVIDIA#6235),
[NVIDIA#6181](NVIDIA#6181), and
[NVIDIA#5986](NVIDIA#5986) ->
`docs/about/release-notes.mdx`, `docs/reference/commands.mdx`, and
`docs/reference/commands-nemohermes.mdx`: Summarize day-two recovery and
clarify retained-volume and local-only destroy semantics.
- [NVIDIA#6200](NVIDIA#6200),
[NVIDIA#6248](NVIDIA#6248),
[NVIDIA#6168](NVIDIA#6168),
[NVIDIA#6270](NVIDIA#6270), and
[NVIDIA#5649](NVIDIA#5649) ->
`docs/about/release-notes.mdx` and `CONTRIBUTING.md`: Summarize
contributor setup and verification improvements and expose the advisory
value benchmark.

## Type of Change

- [ ] Code change (feature, bug fix, or refactor)
- [ ] Code change with doc updates
- [ ] Doc only (prose changes, no code sample modifications)
- [x] Doc only (includes code sample changes)

## Quality Gates
<!-- Check exactly one tests line and one docs line. Check other lines
when applicable. Add every requested justification or approval
reference. -->
- [ ] Tests added or updated for changed behavior
- [ ] Existing tests cover changed behavior — justification:
- [x] Tests not applicable — justification: documentation-only release
preparation; generated-variant synchronization and the Fern docs build
validate the changed pages and routes.
- [x] Docs updated for user-facing behavior changes
- [ ] Docs not applicable — justification:
- [ ] Sensitive paths changed (security, policy, credentials, preflight,
onboarding, inference, runner, sandbox, or messaging)
- [ ] Sensitive-path review completed or maintainer-approved waiver
recorded — reviewer/approval link/justification:
- [ ] Non-success, skipped, or missing CI check accepted by maintainer —
check name, approval link, and follow-up issue:

## Verification
<!-- Check each applicable item only when supported by the requested
evidence. Run targeted tests once per relevant change set and rerun
after later edits or hook autofixes that can affect the tested behavior.
Do not rerun hook-covered checks. -->
- [x] PR description includes the DCO sign-off declaration and every
commit appears as `Verified` in GitHub
- [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or
`npm run check:diff` passed when hooks were skipped or unavailable
- [x] Targeted behavior tests pass for the current change set, or tests
are marked not applicable above — command/result or justification: tests
are not applicable to this documentation-only change; `npm run docs`
validates the source and generated routes.
- [ ] Applicable broad gate passed — `npm test` for broad
runtime/test-harness changes; `npm run check` for repo-wide
validation/coverage changes — command/result:
- [x] Quality Gates section completed with required justifications or
waivers
- [x] No secrets, API keys, or credentials committed
- [ ] `npm run docs` builds without warnings (doc changes only)
- [x] Doc pages follow the [style
guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md)
(doc changes only)
- [ ] New doc pages include SPDX header and frontmatter (new pages only)

---
<!-- DCO sign-off is required in this PR description, and every commit
must appear as Verified in GitHub. Run: git config user.name && git
config user.email -->
Signed-off-by: Aaron Erickson <[email protected]>


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Expanded setup guidance for Windows on Arm devices with safer default
local model selection.
* Clarified local inference and sandbox messaging behavior, including
conflict checks before rebuilds and safer recovery steps.
* Updated destroy/rebuild/reference docs with more detailed warnings,
failure handling, and volume-retention guidance.
* Improved troubleshooting instructions for Docker DNS issues with
clearer paths for unreachable vs. blocked resolvers.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Aaron Erickson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli Command line interface, flags, terminal UX, or output feature PR adds or expands user-visible functionality integration: dcode LangChain Deep Code integration behavior NV QA Bugs found by the NVIDIA QA Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants