Skip to content

chore(release): defer dcode status to v0.0.74 - #6223

Merged
cv merged 1 commit into
mainfrom
codex/revert-6202-for-v0.0.73
Jul 3, 2026
Merged

cv merged 1 commit into
mainfrom
codex/revert-6202-for-v0.0.73

Conversation

@cv

@cv cv commented Jul 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Reverts #6202 from main so v0.0.73 retains the release boundary that was already documented and exercised by the release E2E run. PR #6202 remains targeted for v0.0.74.

The resulting tree is byte-for-byte identical to commit 2276b2e1373548f9afa95b3a4f4bcd8db244874c (967ad0207b591bfc7f3398f37c230f199bb932ed).

Related Issue

Release-boundary housekeeping for v0.0.73. Reverts #6202 without closing its related issues.

Changes

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 — exact revert restores the previously tested tree.
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes — feat(deepagents-code): add dcode status and allow OpenShell TLS key in secret guard #6202 documentation is reverted with the code.
  • 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 index tree exactly matches the pre-feat(deepagents-code): add dcode status and allow OpenShell TLS key in secret guard #6202 release tree, and no manual edits were made to the revert.
  • Non-success, skipped, or missing CI check accepted by maintainer — no CI waiver requested; the local broad test-cli pre-commit hook was skipped after seven unrelated environment-sensitive baseline failures in Hermes file modes, managed-gateway trust state, and state-dir permission modes. Changed-area tests pass and PR CI remains required.

Verification

  • PR description includes the DCO sign-off declaration and the commit appears as Verified in GitHub.
  • Normal pre-push hooks passed; all pre-commit hooks except the disclosed broad test-cli baseline lane passed.
  • npx vitest run --project cli src/lib/onboard/sandbox-create-launch.test.ts --silent=false --reporter=default — 6/6 passed.
  • npx vitest run --project integration test/langchain-deepagents-code-image.test.ts --silent=false --reporter=default — 53/53 passed.
  • Full npm test passes (broad runtime changes only) — not rerun; the broad hook's unrelated baseline failures are disclosed above.
  • Quality Gates section completed with required justifications or waivers.
  • No secrets, API keys, or credentials committed.
  • npm run docs passes with 0 errors and two pre-existing Fern warnings.
  • Doc pages follow the style guide.
  • New doc pages include SPDX header and frontmatter — no new doc pages.

Signed-off-by: Carlos Villela cvillela@nvidia.com

Summary by CodeRabbit

  • New Features
    • Additional environment details are now carried into runtime setup for better tracing and project context.
  • Bug Fixes
    • Tightened secret-detection and runtime-value checks to reduce the chance of sensitive values being accepted.
    • Improved sandbox launch behavior by simplifying how launch settings are prepared.
  • Documentation
    • Removed outdated guidance about checking the current sandbox from the quickstart.

Revert 470060d so v0.0.73 retains its intended release boundary.

PR #6202 remains targeted for v0.0.74.

Signed-off-by: Carlos Villela <cvillela@nvidia.com>
@cv
cv requested a review from miyoungc July 3, 2026 00:48
@cv cv added v0.0.73 integration: dcode LangChain Deep Code integration behavior area: cli Command line interface, flags, terminal UX, or output labels Jul 3, 2026
@cv cv self-assigned this Jul 3, 2026
@coderabbitai

coderabbitai Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: cd3946cf-d465-45af-a194-5778ed9e5b94

📥 Commits

Reviewing files that changed from the base of the PR and between 470060d and 75ed6a2.

📒 Files selected for processing (9)
  • 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.test.ts
  • src/lib/onboard/sandbox-create-launch.ts
  • test/dcode-wrapper-identity.test.ts
  • test/langchain-deepagents-code-image.test.ts
  • test/support/dcode-start-script-fixture.ts
💤 Files with no reviewable changes (6)
  • test/support/dcode-start-script-fixture.ts
  • src/lib/onboard/sandbox-create-launch.test.ts
  • test/dcode-wrapper-identity.test.ts
  • src/lib/onboard/sandbox-create-launch.ts
  • docs/get-started/quickstart-langchain-deepagents-code.mdx
  • agents/langchain-deepagents-code/start.sh

📝 Walkthrough

Walkthrough

This PR removes sandbox-name forwarding across onboarding code, start.sh, and tests, replacing it with LangSmith environment variable forwarding. Separately, dcode-wrapper.sh guard logic is tightened by removing context-secret and OpenShell TLS allowlist helpers, narrowing rejected secret prefixes, and restructuring CLI dispatch, with corresponding test and doc updates.

Changes

Sandbox Name Forwarding Removal

Layer / File(s) Summary
Remove sandboxName from launch input contract
src/lib/onboard/sandbox-create-launch.ts, src/lib/onboard/sandbox-create-launch.test.ts
SandboxCreateLaunchInput.sandboxName removed; prepareSandboxCreateLaunch no longer injects NEMOCLAW_SANDBOX_NAME; related tests deleted.
Onboard call-site and messaging plan update
src/lib/onboard.ts
Stops passing sandboxName; introduces plannedMessagingPlan local for computing configuredMessagingChannels.
start.sh env forwarding swap
agents/langchain-deepagents-code/start.sh
Forwards LANGSMITH_TRACING, LANGSMITH_PROJECT, DEEPAGENTS_CODE_LANGSMITH_PROJECT; no longer forwards NEMOCLAW_SANDBOX_NAME.
Test/doc cleanup
test/langchain-deepagents-code-image.test.ts, test/support/dcode-start-script-fixture.ts, docs/get-started/quickstart-langchain-deepagents-code.mdx
Removes shared fixture helper file (replaced by inline helper), deletes sandbox-name serialization test, updates Slack rejection payloads/token list, removes dcode status doc section.

dcode-wrapper.sh Secret Guard Tightening

Layer / File(s) Summary
Remove context-secret/TLS allowlist helpers, narrow regex
agents/langchain-deepagents-code/dcode-wrapper.sh
Deletes has_context_secret_shape() and is_allowed_openshell_runtime_value(), removes their usage, narrows rejected token prefixes (removes tvly-), removes unused readonly path constants.
Restructure CLI dispatch
agents/langchain-deepagents-code/dcode-wrapper.sh
Inserts case dispatch block for --version/-v/-V and --help/-h.
Update guard-related tests
test/langchain-deepagents-code-image.test.ts, test/dcode-wrapper-identity.test.ts
Removes tavily sample from rejection list, updates Slack token wrapping payloads, removes identity test file covering allowlist behavior.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

Not applicable — changes are guard-logic tightening, config/env forwarding, and test/doc cleanup without new multi-component control flow.

Suggested labels: chore

Suggested reviewers: cjagwani, ericksoa

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly reflects the release deferment and dcode status rollback in this changeset.
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.
✨ 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/revert-6202-for-v0.0.73

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

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

@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/revert-6202-fo... 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/revert-6202-fo... 75ed6a2 +/-
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/revert-6202-fo... 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/revert-6202-fo... 75ed6a2 +/-
src/lib/actions...dbox/rebuild.ts — 82% —
src/lib/actions...all/run-plan.ts — 80% —
src/lib/state/o...oard-session.ts — 79% —
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 00:56 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

E2E Advisor Recommendation

Required E2E: ubuntu-repo-cloud-langchain-deepagents-code, cloud-onboard
Optional E2E: onboard-resume, onboard-repair

Dispatch hint: targets=cloud-onboard,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 LangChain Deep Agents Code image entrypoints, managed wrapper security boundary, startup env/proxy behavior, and onboarding launch env. This typed live target onboards a real Deep Agents Code sandbox and runs the terminal-agent/deepagents policy checks, including headless inference, dcode wrapper chain, secret boundary, Tavily opt-in, Python/proxy egress, and TUI startup.
  • cloud-onboard (high): Required because src/lib/onboard.ts and sandbox-create-launch.ts changed the sandbox create/launch path used by hosted onboarding. This validates a clean cloud onboarding flow with real OpenShell sandbox creation and hosted NVIDIA inference.

Optional E2E

  • onboard-resume (medium): Optional adjacent coverage: createSandbox and sandbox-create-launch changes are used after interrupted onboarding resumes, but this PR does not appear to touch the machine live-slice orchestration, resume state handling, repair policy, session bootstrap, or onboarding state transitions that would make this mandatory.
  • onboard-repair (medium): Optional adjacent coverage for repair flows that recreate or reconcile sandbox launch state after onboarding damage. Useful if reviewers want extra confidence around createSandbox changes, but not required by the onboarding resume rule for this diff.

New E2E recommendations

  • Deep Agents Code live secret-boundary parity (high): The existing live dcode secret-boundary check exercises representative secrets, but this PR changes canonical-token parity in the wrapper around Tavily/context-shaped values and managed token exceptions. Add live coverage that samples every canonical TOKEN_PREFIX_PATTERNS class, including Tavily, and verifies rejection occurs before dcode/network execution without echoing the raw secret.
    • Suggested test: Extend test/e2e/e2e-cloud-experimental/checks/08-deepagents-code-secret-boundary.sh with a canonical-token sample matrix for dcode runtime env and .env values.

Dispatch hint

  • Workflow: .github/workflows/e2e.yaml
  • jobs input: targets=cloud-onboard,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: None

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 wrapper/startup scripts and host-side sandbox create launch path used to onboard that agent. Run the live Deep Agents Code typed target to verify sandbox creation, managed runtime environment/proxy behavior, dcode terminal-agent startup, inference, and policy/secret-boundary coverage.
    • Dispatch: gh workflow run e2e.yaml --ref <pr-head-ref> --field targets=ubuntu-repo-cloud-langchain-deepagents-code

Optional E2E targets

  • None.

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) — Blocked

Merge posture: Do not merge until addressed
Primary next action: Fix PRA-2: Wrapper token-prefix scan missing tvly- (Tavily) pattern; then add or justify PRA-T1.
Open items: 3 required · 2 warnings · 4 suggestions · 8 test follow-ups
Since last review: 0 prior items resolved · 0 still apply · 0 new items found

Action checklist

  • PRA-2 Fix: Wrapper token-prefix scan missing tvly- (Tavily) pattern in agents/langchain-deepagents-code/dcode-wrapper.sh:45
  • PRA-3 Fix: Wrapper context-pattern detection (CONTEXT_PATTERNS parity) entirely removed in agents/langchain-deepagents-code/dcode-wrapper.sh:70
  • PRA-4 Fix: Parity test tvly- case removed but fingerprint test still expects it in test/langchain-deepagents-code-image.test.ts:1340
  • PRA-1 Resolve or justify: Source-of-truth review needed: agents/langchain-deepagents-code/dcode-wrapper.sh secret guard
  • PRA-5 Resolve or justify: OpenShell TLS key allowlist removed; may break dcode if injected in agents/langchain-deepagents-code/dcode-wrapper.sh:1
  • 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: Parity test tvly- case removed but fingerprint test still expects it
  • PRA-T6 Add or justify test follow-up: Identity test file deleted; parity tests should cover config.toml secret rejection
  • PRA-T7 Add or justify test follow-up: Acceptance clause
  • PRA-T8 Add or justify test follow-up: Acceptance clause
  • PRA-6 In-scope improvement: NEMOCLAW_SANDBOX_NAME forwarding removed; verify no downstream consumers in src/lib/onboard/sandbox-create-launch.ts:1
  • PRA-7 In-scope improvement: Identity test file deleted; parity tests should cover config.toml secret rejection in test/dcode-wrapper-identity.test.ts:1
  • PRA-8 In-scope improvement: Inline fixture replaces external support module (good simplification) in test/langchain-deepagents-code-image.test.ts:127
  • PRA-9 In-scope improvement: Dead identity test file deleted (good cleanup) in test/dcode-wrapper-identity.test.ts:1

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 Required security agents/langchain-deepagents-code/dcode-wrapper.sh:45 Restore tvly- pattern in both functions: add |tvly- to the regex alternation (nvapi-|nvcf-|ghp_|hf_|glpat-|gsk_|pypi-|tvly-).
PRA-3 Required security agents/langchain-deepagents-code/dcode-wrapper.sh:70 Restore context-aware secret detection in wrapper, or document why CONTEXT_PATTERNS parity is intentionally dropped for Bash entrypoint. If dropped, update fingerprint test expectation.
PRA-4 Required tests test/langchain-deepagents-code-image.test.ts:1340 Re-add { name: "tavily", sample: "tvly-abcdefghijklmnop" } to the cases array. Ensure wrapper rejects it (requires fix above).
PRA-5 Resolve/justify security agents/langchain-deepagents-code/dcode-wrapper.sh:1 Verify whether OPENSHELL_TLS_KEY is injected into dcode sandboxes. If yes, restore allowlist with exact name/value match. If not, document why removal is safe.
PRA-6 Improvement correctness src/lib/onboard/sandbox-create-launch.ts:1 Confirm no downstream sandbox-side code reads NEMOCLAW_SANDBOX_NAME. If unused, removal is clean.
PRA-7 Improvement tests test/dcode-wrapper-identity.test.ts:1 Add test that secret-shaped values in config.toml (route, provider, model, endpoint) are rejected by wrapper's env-file/runtime scans, since config.toml parsing is gone but secrets could still be injected via env.
PRA-8 Improvement architecture test/langchain-deepagents-code-image.test.ts:127 Keep inlined fixture. No action needed.
PRA-9 Improvement architecture test/dcode-wrapper-identity.test.ts:1 Keep deleted. No action needed.

🚨 Required before merge

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

PRA-2 Required — Wrapper token-prefix scan missing tvly- (Tavily) pattern

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:45
  • Category: security
  • Problem: is_secret_shaped_value() and has_non_slack_secret_shape() dropped tvly- prefix. Canonical TOKEN_PREFIX_PATTERNS includes tvly-[A-Za-z0-9_-]{10,}. Tavily keys in non-credential-named vars (e.g., RANDOM_VAR=tvly-abcdefghijklmnop) bypass guard and reach upstream dcode.
  • Impact: Credential leakage into third-party Python process; sandbox escape vector if dcode exfiltrates via tool calls.
  • Required action: Restore tvly- pattern in both functions: add |tvly- to the regex alternation (nvapi-|nvcf-|ghp_|hf_|glpat-|gsk_|pypi-|tvly-).
  • Expected follow-up: Fix before merge or get explicit maintainer override.
  • Verification: Run test/langchain-deepagents-code-image.test.ts "rejects every canonical token shape" with a tvly- sample added to cases array; observe wrapper exits 0 instead of 2.
  • Missing regression test: Add { name: "tavily", sample: "tvly-abcdefghijklmnop" } back to the exhaustive parity test cases array in test/langchain-deepagents-code-image.test.ts.
  • Done when: The required change is committed and verification passes: Run test/langchain-deepagents-code-image.test.ts "rejects every canonical token shape" with a tvly- sample added to cases array; observe wrapper exits 0 instead of 2.
  • Evidence: diff shows tvly- removed from lines 45 and 70 of dcode-wrapper.sh; canonical patterns in src/lib/security/secret-patterns.ts still include tvly-.

PRA-3 Required — Wrapper context-pattern detection (CONTEXT_PATTERNS parity) entirely removed

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:70
  • Category: security
  • Problem: has_context_secret_shape() function deleted. It implemented CONTEXT_PATTERNS semantics: detecting Bearer tokens and KEY=value patterns inside arbitrary variable values. Values like Authorization: Bearer sk-... or PASSWORD=secret123 in non-credential-named vars no longer detected.
  • Impact: Embedded secrets in arbitrary env vars bypass guard; defense-in-depth layer lost. Attacker can wrap canonical tokens in headers or key=value pairs to evade token-prefix scan.
  • Required action: Restore context-aware secret detection in wrapper, or document why CONTEXT_PATTERNS parity is intentionally dropped for Bash entrypoint. If dropped, update fingerprint test expectation.
  • Expected follow-up: Fix before merge or get explicit maintainer override.
  • Verification: Set env var EMBEDDED=Bearer sk-abcdefghijklmnopqrstuvwx and run wrapper; observe it exits 0 (launches dcode) instead of 2.
  • Missing regression test: Add test cases for context-pattern detection: Bearer sk-... in value of non-credential-named var, and KEY=secret pattern in arbitrary var value.
  • Done when: The required change is committed and verification passes: Set env var EMBEDDED=Bearer sk-abcdefghijklmnopqrstuvwx and run wrapper; observe it exits 0 (launches dcode) instead of 2.
  • Evidence: diff shows has_context_secret_shape() function (lines 20-25) and its two call sites removed entirely from dcode-wrapper.sh.

PRA-4 Required — Parity test tvly- case removed but fingerprint test still expects it

  • Location: test/langchain-deepagents-code-image.test.ts:1340
  • Category: tests
  • Problem: Exhaustive test "rejects every canonical token shape" had tvly- case removed from cases array, but fingerprint test still expects tvly- in canonical TOKEN_PREFIX_PATTERNS. Test suite no longer exercises tvly- rejection, allowing wrapper drift to go undetected.
  • Impact: Security regression in wrapper secret guard not caught by CI; drift persists silently.
  • Required action: Re-add { name: "tavily", sample: "tvly-abcdefghijklmnop" } to the cases array. Ensure wrapper rejects it (requires fix above).
  • Expected follow-up: Fix before merge or get explicit maintainer override.
  • Verification: Run the parity test with tvly- case added; it will fail until wrapper pattern restored.
  • Missing regression test: The test case itself is the regression test — restore it in the exhaustive parity test.
  • Done when: The required change is committed and verification passes: Run the parity test with tvly- case added; it will fail until wrapper pattern restored.
  • Evidence: diff shows tvly- case removed from cases array at line 1340; fingerprint test at line 1365 still expects tvly- in canonical patterns.
Review findings by urgency: 3 required fixes, 2 items to resolve/justify, 4 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: agents/langchain-deepagents-code/dcode-wrapper.sh secret guard

  • 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: Parity fingerprint test (exists) + exhaustive rejection test (gap: tvly- case missing; context-pattern cases missing).
  • 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: Wrapper comment documents removal condition; diff shows tvly- and context detection removed in this revert.

PRA-5 Resolve/justify — OpenShell TLS key allowlist removed; may break dcode if injected

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:1
  • Category: security
  • Problem: is_allowed_openshell_runtime_value() allowlist for OPENSHELL_TLS_KEY=/etc/openshell/tls/client/tls.key removed. Hermes runtime validator allows this at runtime. If OpenShell supervisor injects this into dcode sandboxes, all dcode invocations will fail with secret rejection.
  • Impact: Potential dcode startup failure in production sandboxes if TLS key injection occurs.
  • Recommended action: Verify whether OPENSHELL_TLS_KEY is injected into dcode sandboxes. If yes, restore allowlist with exact name/value match. If not, document why removal is safe.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Launch a dcode sandbox, exec into it, run env | grep OPENSHELL_TLS_KEY. If present, run dcode --version and observe exit code 2.
  • Missing regression test: E2E check that dcode starts successfully in a real sandbox with OpenShell TLS key injected (if applicable).
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Launch a dcode sandbox, exec into it, run env | grep OPENSHELL_TLS_KEY. If present, run dcode --version and observe exit code 2.
  • Evidence: diff shows is_allowed_openshell_runtime_value function and its call site removed; Hermes validator in agents/hermes/validate-env-secret-boundary.py still allows this key/value pair in RUNTIME_ALLOWED_PLATFORM_PATH_VALUES.

💡 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-6 Improvement — NEMOCLAW_SANDBOX_NAME forwarding removed; verify no downstream consumers

  • Location: src/lib/onboard/sandbox-create-launch.ts:1
  • Category: correctness
  • Problem: Removed NEMOCLAW_SANDBOX_NAME forwarding for langchain-deepagents-code agent. Was only used by deferred dcode status command. No security impact, but verify no other sandbox-side code (logging, telemetry) relied on this env var.
  • Impact: Potential silent breakage if sandbox-side code expected this env var.
  • Suggested action: Confirm no downstream sandbox-side code reads NEMOCLAW_SANDBOX_NAME. If unused, removal is clean.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: grep -r NEMOCLAW_SANDBOX_NAME agents/langchain-deepagents-code/ src/lib/onboard/ — should return no hits in sandbox-side code.
  • Missing regression test: None needed if confirmed unused.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: diff shows sandboxName parameter and envArgs.push removed from prepareSandboxCreateLaunch for langchain-deepagents-code agent.

PRA-7 Improvement — Identity test file deleted; parity tests should cover config.toml secret rejection

  • Location: test/dcode-wrapper-identity.test.ts:1
  • Category: tests
  • Problem: Entire identity test file (426 lines) deleted. Covered status/whoami/identity commands, agent resolution, control-char sanitization, secret-shaped metadata rejection, unsafe endpoint rejection. With feature deferred, tests correctly removed, but parity tests should ensure secret guard still rejects secrets in config.toml values (previously tested via identity command).
  • Impact: Loss of regression coverage for secret-shaped values in config.toml-equivalent env vars.
  • Suggested action: Add test that secret-shaped values in config.toml (route, provider, model, endpoint) are rejected by wrapper's env-file/runtime scans, since config.toml parsing is gone but secrets could still be injected via env.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Write a test setting a secret in config.toml-equivalent runtime env var and verify wrapper rejects.
  • Missing regression test: New test: secret in config.toml-equivalent runtime env var rejected by wrapper.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: diff shows test/dcode-wrapper-identity.test.ts deleted entirely; config.toml parsing functions (toml_section_scalar, toml_provider_metadata) removed from wrapper.

PRA-8 Improvement — Inline fixture replaces external support module (good simplification)

  • Location: test/langchain-deepagents-code-image.test.ts:127
  • Category: architecture
  • Problem: makeStartScriptFixture inlined from test/support/dcode-start-script-fixture.ts into test file. Uses stdlib fs/path directly; no policy/validation added.
  • Impact: Reduces test infrastructure surface; eliminates external dependency.
  • Suggested action: Keep inlined fixture. No action needed.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Verify test/support/dcode-start-script-fixture.ts no longer imported and fixture works identically.
  • Missing regression test: None.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: diff shows test/support/dcode-start-script-fixture.ts deleted; inline function added at line 127 of test file.

PRA-9 Improvement — Dead identity test file deleted (good cleanup)

  • Location: test/dcode-wrapper-identity.test.ts:1
  • Category: architecture
  • Problem: 426-line test file for removed dcode status/whoami/identity commands deleted. No test debt carried forward.
  • Impact: Reduces test maintenance burden; eliminates tests for non-existent feature.
  • Suggested action: Keep deleted. No action needed.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Confirm no other tests import or depend on this file.
  • Missing regression test: None.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: diff shows test/dcode-wrapper-identity.test.ts deleted entirely.
Simplification opportunities: 2 possible cuts, net -483 lines possible

These are safe simplification checks only. Do not remove validation, security controls, data-loss prevention, or required tests.

  • PRA-8 stdlib (test/langchain-deepagents-code-image.test.ts:127): test/support/dcode-start-script-fixture.ts module and import
    • Replacement: inline makeStartScriptFixture function using fs/path/std
    • Net: -57 lines
    • Safety boundary: test fixture only; no production code affected
  • PRA-9 delete (test/dcode-wrapper-identity.test.ts:1): test/dcode-wrapper-identity.test.ts (426 lines)
    • Replacement: none — feature removed
    • Net: -426 lines
    • Safety boundary: tests only; feature code also removed
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 — rejects tvly- prefix in non-credential-named runtime env var. Runtime/sandbox/infrastructure paths need behavioral runtime validation: agents/langchain-deepagents-code/dcode-wrapper.sh, agents/langchain-deepagents-code/start.sh. Parity test gap for tvly- and context patterns must be closed; OpenShell TLS key injection behavior needs verification in real sandbox.
  • PRA-T2 Runtime validation — rejects Bearer token pattern in arbitrary env var value. Runtime/sandbox/infrastructure paths need behavioral runtime validation: agents/langchain-deepagents-code/dcode-wrapper.sh, agents/langchain-deepagents-code/start.sh. Parity test gap for tvly- and context patterns must be closed; OpenShell TLS key injection behavior needs verification in real sandbox.
  • PRA-T3 Runtime validation — rejects KEY=secret pattern in arbitrary env var value. Runtime/sandbox/infrastructure paths need behavioral runtime validation: agents/langchain-deepagents-code/dcode-wrapper.sh, agents/langchain-deepagents-code/start.sh. Parity test gap for tvly- and context patterns must be closed; OpenShell TLS key injection behavior needs verification in real sandbox.
  • PRA-T4 Runtime validation — allows dcode to start when OPENSHELL_TLS_KEY=/etc/openshell/tls/client/tls.key injected at runtime (if injection occurs). Runtime/sandbox/infrastructure paths need behavioral runtime validation: agents/langchain-deepagents-code/dcode-wrapper.sh, agents/langchain-deepagents-code/start.sh. Parity test gap for tvly- and context patterns must be closed; OpenShell TLS key injection behavior needs verification in real sandbox.
  • PRA-T5 Parity test tvly- case removed but fingerprint test still expects it — Re-add { name: "tavily", sample: "tvly-abcdefghijklmnop" } to the cases array. Ensure wrapper rejects it (requires fix above).
  • PRA-T6 Identity test file deleted; parity tests should cover config.toml secret rejection — Add test that secret-shaped values in config.toml (route, provider, model, endpoint) are rejected by wrapper's env-file/runtime scans, since config.toml parsing is gone but secrets could still be injected via env.
  • PRA-T7 Acceptance clause — Restores previously tested tree — add test evidence or identify existing coverage. Pre-feat(deepagents-code): add dcode status and allow OpenShell TLS key in secret guard #6202 tree was tested historically, but that tree already had secret guard drift (missing tvly- and context patterns). feat(deepagents-code): add dcode status and allow OpenShell TLS key in secret guard #6202 fixed the drift; this revert re-introduces it. Security posture regressed despite technical acceptance met.
  • PRA-T8 Acceptance clause — Tests added/updated for changed behavior — add test evidence or identify existing coverage. Identity tests correctly deleted for removed feature. But parity test weakened: tvly- case removed from exhaustive test while fingerprint test still expects it. Creates test gap that allows drift undetected.
Since last review details

Current findings, using the urgency labels above:

PRA-1 Resolve/justify — Source-of-truth review needed: agents/langchain-deepagents-code/dcode-wrapper.sh secret guard

  • 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: Parity fingerprint test (exists) + exhaustive rejection test (gap: tvly- case missing; context-pattern cases missing).
  • 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: Wrapper comment documents removal condition; diff shows tvly- and context detection removed in this revert.

PRA-2 Required — Wrapper token-prefix scan missing tvly- (Tavily) pattern

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:45
  • Category: security
  • Problem: is_secret_shaped_value() and has_non_slack_secret_shape() dropped tvly- prefix. Canonical TOKEN_PREFIX_PATTERNS includes tvly-[A-Za-z0-9_-]{10,}. Tavily keys in non-credential-named vars (e.g., RANDOM_VAR=tvly-abcdefghijklmnop) bypass guard and reach upstream dcode.
  • Impact: Credential leakage into third-party Python process; sandbox escape vector if dcode exfiltrates via tool calls.
  • Required action: Restore tvly- pattern in both functions: add |tvly- to the regex alternation (nvapi-|nvcf-|ghp_|hf_|glpat-|gsk_|pypi-|tvly-).
  • Expected follow-up: Fix before merge or get explicit maintainer override.
  • Verification: Run test/langchain-deepagents-code-image.test.ts "rejects every canonical token shape" with a tvly- sample added to cases array; observe wrapper exits 0 instead of 2.
  • Missing regression test: Add { name: "tavily", sample: "tvly-abcdefghijklmnop" } back to the exhaustive parity test cases array in test/langchain-deepagents-code-image.test.ts.
  • Done when: The required change is committed and verification passes: Run test/langchain-deepagents-code-image.test.ts "rejects every canonical token shape" with a tvly- sample added to cases array; observe wrapper exits 0 instead of 2.
  • Evidence: diff shows tvly- removed from lines 45 and 70 of dcode-wrapper.sh; canonical patterns in src/lib/security/secret-patterns.ts still include tvly-.

PRA-3 Required — Wrapper context-pattern detection (CONTEXT_PATTERNS parity) entirely removed

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:70
  • Category: security
  • Problem: has_context_secret_shape() function deleted. It implemented CONTEXT_PATTERNS semantics: detecting Bearer tokens and KEY=value patterns inside arbitrary variable values. Values like Authorization: Bearer sk-... or PASSWORD=secret123 in non-credential-named vars no longer detected.
  • Impact: Embedded secrets in arbitrary env vars bypass guard; defense-in-depth layer lost. Attacker can wrap canonical tokens in headers or key=value pairs to evade token-prefix scan.
  • Required action: Restore context-aware secret detection in wrapper, or document why CONTEXT_PATTERNS parity is intentionally dropped for Bash entrypoint. If dropped, update fingerprint test expectation.
  • Expected follow-up: Fix before merge or get explicit maintainer override.
  • Verification: Set env var EMBEDDED=Bearer sk-abcdefghijklmnopqrstuvwx and run wrapper; observe it exits 0 (launches dcode) instead of 2.
  • Missing regression test: Add test cases for context-pattern detection: Bearer sk-... in value of non-credential-named var, and KEY=secret pattern in arbitrary var value.
  • Done when: The required change is committed and verification passes: Set env var EMBEDDED=Bearer sk-abcdefghijklmnopqrstuvwx and run wrapper; observe it exits 0 (launches dcode) instead of 2.
  • Evidence: diff shows has_context_secret_shape() function (lines 20-25) and its two call sites removed entirely from dcode-wrapper.sh.

PRA-4 Required — Parity test tvly- case removed but fingerprint test still expects it

  • Location: test/langchain-deepagents-code-image.test.ts:1340
  • Category: tests
  • Problem: Exhaustive test "rejects every canonical token shape" had tvly- case removed from cases array, but fingerprint test still expects tvly- in canonical TOKEN_PREFIX_PATTERNS. Test suite no longer exercises tvly- rejection, allowing wrapper drift to go undetected.
  • Impact: Security regression in wrapper secret guard not caught by CI; drift persists silently.
  • Required action: Re-add { name: "tavily", sample: "tvly-abcdefghijklmnop" } to the cases array. Ensure wrapper rejects it (requires fix above).
  • Expected follow-up: Fix before merge or get explicit maintainer override.
  • Verification: Run the parity test with tvly- case added; it will fail until wrapper pattern restored.
  • Missing regression test: The test case itself is the regression test — restore it in the exhaustive parity test.
  • Done when: The required change is committed and verification passes: Run the parity test with tvly- case added; it will fail until wrapper pattern restored.
  • Evidence: diff shows tvly- case removed from cases array at line 1340; fingerprint test at line 1365 still expects tvly- in canonical patterns.

PRA-5 Resolve/justify — OpenShell TLS key allowlist removed; may break dcode if injected

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:1
  • Category: security
  • Problem: is_allowed_openshell_runtime_value() allowlist for OPENSHELL_TLS_KEY=/etc/openshell/tls/client/tls.key removed. Hermes runtime validator allows this at runtime. If OpenShell supervisor injects this into dcode sandboxes, all dcode invocations will fail with secret rejection.
  • Impact: Potential dcode startup failure in production sandboxes if TLS key injection occurs.
  • Recommended action: Verify whether OPENSHELL_TLS_KEY is injected into dcode sandboxes. If yes, restore allowlist with exact name/value match. If not, document why removal is safe.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Launch a dcode sandbox, exec into it, run env | grep OPENSHELL_TLS_KEY. If present, run dcode --version and observe exit code 2.
  • Missing regression test: E2E check that dcode starts successfully in a real sandbox with OpenShell TLS key injected (if applicable).
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Launch a dcode sandbox, exec into it, run env | grep OPENSHELL_TLS_KEY. If present, run dcode --version and observe exit code 2.
  • Evidence: diff shows is_allowed_openshell_runtime_value function and its call site removed; Hermes validator in agents/hermes/validate-env-secret-boundary.py still allows this key/value pair in RUNTIME_ALLOWED_PLATFORM_PATH_VALUES.

PRA-6 Improvement — NEMOCLAW_SANDBOX_NAME forwarding removed; verify no downstream consumers

  • Location: src/lib/onboard/sandbox-create-launch.ts:1
  • Category: correctness
  • Problem: Removed NEMOCLAW_SANDBOX_NAME forwarding for langchain-deepagents-code agent. Was only used by deferred dcode status command. No security impact, but verify no other sandbox-side code (logging, telemetry) relied on this env var.
  • Impact: Potential silent breakage if sandbox-side code expected this env var.
  • Suggested action: Confirm no downstream sandbox-side code reads NEMOCLAW_SANDBOX_NAME. If unused, removal is clean.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: grep -r NEMOCLAW_SANDBOX_NAME agents/langchain-deepagents-code/ src/lib/onboard/ — should return no hits in sandbox-side code.
  • Missing regression test: None needed if confirmed unused.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: diff shows sandboxName parameter and envArgs.push removed from prepareSandboxCreateLaunch for langchain-deepagents-code agent.

PRA-7 Improvement — Identity test file deleted; parity tests should cover config.toml secret rejection

  • Location: test/dcode-wrapper-identity.test.ts:1
  • Category: tests
  • Problem: Entire identity test file (426 lines) deleted. Covered status/whoami/identity commands, agent resolution, control-char sanitization, secret-shaped metadata rejection, unsafe endpoint rejection. With feature deferred, tests correctly removed, but parity tests should ensure secret guard still rejects secrets in config.toml values (previously tested via identity command).
  • Impact: Loss of regression coverage for secret-shaped values in config.toml-equivalent env vars.
  • Suggested action: Add test that secret-shaped values in config.toml (route, provider, model, endpoint) are rejected by wrapper's env-file/runtime scans, since config.toml parsing is gone but secrets could still be injected via env.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Write a test setting a secret in config.toml-equivalent runtime env var and verify wrapper rejects.
  • Missing regression test: New test: secret in config.toml-equivalent runtime env var rejected by wrapper.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: diff shows test/dcode-wrapper-identity.test.ts deleted entirely; config.toml parsing functions (toml_section_scalar, toml_provider_metadata) removed from wrapper.

PRA-8 Improvement — Inline fixture replaces external support module (good simplification)

  • Location: test/langchain-deepagents-code-image.test.ts:127
  • Category: architecture
  • Problem: makeStartScriptFixture inlined from test/support/dcode-start-script-fixture.ts into test file. Uses stdlib fs/path directly; no policy/validation added.
  • Impact: Reduces test infrastructure surface; eliminates external dependency.
  • Suggested action: Keep inlined fixture. No action needed.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Verify test/support/dcode-start-script-fixture.ts no longer imported and fixture works identically.
  • Missing regression test: None.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: diff shows test/support/dcode-start-script-fixture.ts deleted; inline function added at line 127 of test file.

PRA-9 Improvement — Dead identity test file deleted (good cleanup)

  • Location: test/dcode-wrapper-identity.test.ts:1
  • Category: architecture
  • Problem: 426-line test file for removed dcode status/whoami/identity commands deleted. No test debt carried forward.
  • Impact: Reduces test maintenance burden; eliminates tests for non-existent feature.
  • Suggested action: Keep deleted. No action needed.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Confirm no other tests import or depend on this file.
  • Missing regression test: None.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: diff shows test/dcode-wrapper-identity.test.ts deleted entirely.

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 — Blocked

Merge posture: Do not merge until addressed
Primary next action: Fix PRA-3: Tavily tokens no longer trip the dcode secret guard; then add or justify PRA-T1.
Open items: 2 required · 3 warnings · 0 suggestions · 8 test follow-ups
Top item: Restore canonical dcode secret-pattern parity for Tavily and context-shaped secrets

Action checklist

  • PRA-3 Fix: Tavily tokens no longer trip the dcode secret guard in agents/langchain-deepagents-code/dcode-wrapper.sh:80
  • PRA-4 Fix: Managed Slack allowlist can hide context-shaped credentials in agents/langchain-deepagents-code/dcode-wrapper.sh:64
  • PRA-1 Resolve or justify: Source-of-truth review needed: Deep Agents Code Bash secret guard mirrors src/lib/security/secret-patterns.ts
  • PRA-2 Resolve or justify: Source-of-truth review needed: OpenShell platform TLS path in dcode runtime environment
  • PRA-5 Resolve or justify: Canonical OpenShell TLS key path behavior is no longer covered for dcode startup in agents/langchain-deepagents-code/dcode-wrapper.sh:238
  • 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: Acceptance clause
  • PRA-T7 Add or justify test follow-up: Acceptance clause
  • PRA-T8 Add or justify test follow-up: Deep Agents Code Bash secret guard mirrors src/lib/security/secret-patterns.ts

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 Required security agents/langchain-deepagents-code/dcode-wrapper.sh:80 Restore tvly- matching in the Bash wrapper everywhere canonical token-prefix matching is mirrored, and restore representative runtime-env and env-file rejection tests for Tavily tokens.
PRA-4 Required security agents/langchain-deepagents-code/dcode-wrapper.sh:64 Restore context-shaped embedded-secret detection inside has_non_slack_secret_shape, or otherwise ensure managed Slack exceptions are only accepted when they match the intended platform token shape and do not contain canonical context-secret forms.
PRA-5 Resolve/justify correctness agents/langchain-deepagents-code/dcode-wrapper.sh:238 Either restore the exact runtime-only allowance for the canonical platform path or add a targeted test/source assertion proving dcode invocations never receive OPENSHELL_TLS_KEY in their runtime environment.

🚨 Required before merge

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

PRA-3 Required — Tavily tokens no longer trip the dcode secret guard

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:80
  • Category: security
  • Problem: The wrapper still claims to mirror the canonical TOKEN_PREFIX_PATTERNS contract, and src/lib/security/secret-patterns.ts still includes /tvly-[A-Za-z0-9_-]{10,}/g, but this PR removes tvly- from both is_secret_shaped_value and has_non_slack_secret_shape. The representative Tavily sample was also removed from the wrapper parity test, so a runtime env var or /sandbox/.deepagents/.env entry containing tvly-* can now pass to upstream Deep Agents Code.
  • Impact: A raw Tavily credential can be injected into the sandbox process environment or mutable dcode .env and used by upstream code, bypassing NemoClaw credentials/gateway injection and weakening the managed credential boundary for optional web search.
  • Required action: Restore tvly- matching in the Bash wrapper everywhere canonical token-prefix matching is mirrored, and restore representative runtime-env and env-file rejection tests for Tavily tokens.
  • Expected follow-up: Fix before merge or get explicit maintainer override.
  • Verification: Read src/lib/security/secret-patterns.ts for the canonical tvly- pattern, then inspect agents/langchain-deepagents-code/dcode-wrapper.sh for the absence of tvly- in is_secret_shaped_value and has_non_slack_secret_shape.
  • Missing regression test: Add a test in test/langchain-deepagents-code-image.test.ts that runs the wrapper fixture with NEMOCLAW_PARITY_TAVILY=tvly-abcdefghijklmnop and another that writes TAVILY_API_KEY=tvly-abcdefghijklmnop to the fixture env file, asserting dcode is not launched and the value is not printed.
  • Done when: The required change is committed and verification passes: Read src/lib/security/secret-patterns.ts for the canonical tvly- pattern, then inspect agents/langchain-deepagents-code/dcode-wrapper.sh for the absence of tvly- in is_secret_shaped_value and has_non_slack_secret_shape.
  • Evidence: The changed test still pins the TOKEN_PREFIX_PATTERNS fingerprint containing "tvly-[A-Za-z0-9_-]{10,}::g", but the "rejects every canonical token shape" cases no longer include Tavily and the wrapper file has no tvly- match.

PRA-4 Required — Managed Slack allowlist can hide context-shaped credentials

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:64
  • Category: security
  • Problem: This PR removes has_context_secret_shape from the managed-token classifier and deletes the Slack wrapper tests for values such as xoxb-API_KEY=opaquevalue12345 and xapp-TOKEN:opaquevalue12345. Because is_managed_token_value_for_name returns success for SLACK_BOT_TOKEN/SLACK_APP_TOKEN values with the right prefix and length when has_non_slack_secret_shape returns false, context-shaped embedded secrets can now be allowlisted before the generic credential-name check runs.
  • Impact: A caller can smuggle a non-Slack opaque credential through the managed Slack token exception into Deep Agents Code, bypassing the wrapper's intended name-context secret rejection and increasing the chance of credential leakage to third-party code or network calls.
  • Required action: Restore context-shaped embedded-secret detection inside has_non_slack_secret_shape, or otherwise ensure managed Slack exceptions are only accepted when they match the intended platform token shape and do not contain canonical context-secret forms.
  • Expected follow-up: Fix before merge or get explicit maintainer override.
  • Verification: Inspect is_managed_token_value_for_name and has_non_slack_secret_shape in agents/langchain-deepagents-code/dcode-wrapper.sh; the current allowlist only checks prefixes/Bearer/LangSmith and no longer checks KEY/TOKEN/SECRET/PASSWORD/CREDENTIAL contexts embedded in the value.
  • Missing regression test: Restore or add tests that set SLACK_BOT_TOKEN=xoxb-API_KEY=opaquevalue12345 and SLACK_APP_TOKEN=xapp-TOKEN:opaquevalue12345 in both runtime env and the fixture env file, asserting the wrapper exits before launching dcode and does not print the secret value.
  • Done when: The required change is committed and verification passes: Inspect is_managed_token_value_for_name and has_non_slack_secret_shape in agents/langchain-deepagents-code/dcode-wrapper.sh; the current allowlist only checks prefixes/Bearer/LangSmith and no longer checks KEY/TOKEN/SECRET/PASSWORD/CREDENTIAL contexts embedded in the value.
  • Evidence: The diff deletes has_context_secret_shape and removes the corresponding Slack wrapped-context cases from test/langchain-deepagents-code-image.test.ts while the wrapper comment still claims name-context parity with CONTEXT_PATTERNS.
Review findings by urgency: 2 required fixes, 3 items to resolve/justify, 0 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: Deep Agents Code Bash secret guard mirrors src/lib/security/secret-patterns.ts

  • Location: not file-specific
  • Category: architecture
  • Problem: The advisor marked localized patch analysis as missing.
  • 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: Current fingerprint tests only pin the TypeScript patterns and do not prove Bash rejects every canonical token/context shape; Tavily and Slack context samples should be restored to wrapper fixture tests.
  • 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: src/lib/security/secret-patterns.ts includes tvly-* and context patterns; the changed wrapper omits tvly-* and removed has_context_secret_shape, and the representative tests were deleted.

PRA-2 Resolve/justify — Source-of-truth review needed: OpenShell platform TLS path in dcode runtime environment

  • 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: Add a dcode wrapper or runtime-envelope test that proves the exact canonical OPENSHELL_TLS_KEY path either starts successfully or is absent before wrapper validation.
  • 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: This PR deletes the dcode-specific OPENSHELL_TLS_KEY allowance while Hermes' validator still documents the same exact runtime-only platform allowance.

PRA-5 Resolve/justify — Canonical OpenShell TLS key path behavior is no longer covered for dcode startup

  • Location: agents/langchain-deepagents-code/dcode-wrapper.sh:238
  • Category: correctness
  • Problem: The PR intentionally removes the exact runtime-only OPENSHELL_TLS_KEY=/etc/openshell/tls/client/tls.key exception. With the generic credential-name check still active, any runtime environment containing that canonical OpenShell platform path will be rejected because OPENSHELL_TLS_KEY is a credential-shaped name and the value is longer than 10 characters.
  • Impact: If OpenShell injects OPENSHELL_TLS_KEY into Deep Agents Code exec environments, dcode will fail before startup even though the value is a mounted file path rather than private-key material. If the variable is not present for this runtime, the behavior is fine but currently unproven by changed tests.
  • Recommended action: Either restore the exact runtime-only allowance for the canonical platform path or add a targeted test/source assertion proving dcode invocations never receive OPENSHELL_TLS_KEY in their runtime environment.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Compare the current dcode wrapper's generic has_credential_name_context check with agents/hermes/validate-env-secret-boundary.py, which still documents and allows the exact OPENSHELL_TLS_KEY platform path at runtime only.
  • Missing regression test: Add a dcode wrapper fixture test for OPENSHELL_TLS_KEY=/etc/openshell/tls/client/tls.key that asserts the intended contract: either dcode starts if OpenShell injects this path, or a separate runtime-envelope test proves the variable is absent before dcode-wrapper.sh runs.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Compare the current dcode wrapper's generic has_credential_name_context check with agents/hermes/validate-env-secret-boundary.py, which still documents and allows the exact OPENSHELL_TLS_KEY platform path at runtime only.
  • Evidence: The diff removes OPENSHELL_TLS_KEY_PATH, is_allowed_openshell_runtime_value, and its tests from test/dcode-wrapper-identity.test.ts; the current runtime env check has no exception before refusing credential-shaped names.

💡 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.

  • None.
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 — dcode wrapper rejects tvly-* Tavily tokens from runtime env before launching deepagents_code. The changed surfaces are runtime sandbox and credential-boundary scripts. Existing fixture-style wrapper tests are appropriate, but this PR removes important negative-path cases and leaves the actual OpenShell TLS runtime contract unproven.
  • PRA-T2 Runtime validation — dcode wrapper rejects tvly-* Tavily tokens from /sandbox/.deepagents/.env without printing the token. The changed surfaces are runtime sandbox and credential-boundary scripts. Existing fixture-style wrapper tests are appropriate, but this PR removes important negative-path cases and leaves the actual OpenShell TLS runtime contract unproven.
  • PRA-T3 Runtime validation — dcode wrapper rejects SLACK_BOT_TOKEN and SLACK_APP_TOKEN values that embed API_KEY=, TOKEN:, SECRET=, PASSWORD=, or CREDENTIAL= context secrets in runtime env. The changed surfaces are runtime sandbox and credential-boundary scripts. Existing fixture-style wrapper tests are appropriate, but this PR removes important negative-path cases and leaves the actual OpenShell TLS runtime contract unproven.
  • PRA-T4 Runtime validation — dcode wrapper rejects the same context-wrapped Slack values when read from the Deep Agents .env file. The changed surfaces are runtime sandbox and credential-boundary scripts. Existing fixture-style wrapper tests are appropriate, but this PR removes important negative-path cases and leaves the actual OpenShell TLS runtime contract unproven.
  • PRA-T5 Runtime validation — dcode wrapper starts or intentionally rejects OPENSHELL_TLS_KEY=/etc/openshell/tls/client/tls.key according to a documented dcode runtime-envelope contract. The changed surfaces are runtime sandbox and credential-boundary scripts. Existing fixture-style wrapper tests are appropriate, but this PR removes important negative-path cases and leaves the actual OpenShell TLS runtime contract unproven.
  • PRA-T6 Acceptance clause — Reverts feat(deepagents-code): add dcode status and allow OpenShell TLS key in secret guard #6202 from `main` so v0.0.73 retains the release boundary that was already documented and exercised by the release E2E run. — add test evidence or identify existing coverage. The diff removes the dcode status/identity wrapper, sandbox-name propagation, TLS-key exception, and docs added around feat(deepagents-code): add dcode status and allow OpenShell TLS key in secret guard #6202. However, the revert also weakens the current canonical dcode secret-boundary implementation for Tavily and context-shaped secrets.
  • PRA-T7 Acceptance clause — The resulting tree is byte-for-byte identical to commit `2276b2e1373548f9afa95b3a4f4bcd8db244874c` (`967ad0207b591bfc7f3398f37c230f199bb932ed`). — add test evidence or identify existing coverage. The review used the provided diff and read-only file inspection; it did not verify a full tree hash against those commits.
  • PRA-T8 Deep Agents Code Bash secret guard mirrors src/lib/security/secret-patterns.ts — Current fingerprint tests only pin the TypeScript patterns and do not prove Bash rejects every canonical token/context shape; Tavily and Slack context samples should be restored to wrapper fixture tests.. src/lib/security/secret-patterns.ts includes tvly-* and context patterns; the changed wrapper omits tvly-* and removed has_context_secret_shape, and the representative tests were deleted.

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.

@cv

cv commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author

Maintainer disposition for the automated review and E2E recommendations:

The E2E advisor's two required scenarios already passed on release run 28628886300, attempt 1:

That run used c15086c3844b2a05a6af3334c9c7283283798a78; the only delta from it to the restored 2276b2e tree is docs-only PR #6216 (README/docs components/pages plus a docs contract test), which the maintainer explicitly accepted for evidence reuse. The current PR head restores that exact 2276b2e tree.

Additional local verification on the revert:

  • onboarding sandbox-create/launch: 6/6 passed;
  • Deep Agents Code image contract: 53/53 passed;
  • docs build: 0 errors, two pre-existing Fern warnings;
  • normal pre-push CLI typecheck and tag-version sync passed.

This is the requested maintainer rationale/override for the advisor items; human review and PR CI remain required before merge.

@cv
cv requested a review from apurvvkumaria July 3, 2026 00:58
@cv
cv merged commit dc96deb into main Jul 3, 2026
49 checks passed
@cv
cv deleted the codex/revert-6202-for-v0.0.73 branch July 3, 2026 01:01
cv added a commit that referenced this pull request Jul 3, 2026
<!-- markdownlint-disable MD041 -->
## Summary
<!-- 1-3 sentences: what this PR does and why. -->

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
<!-- Fixes #NNN or Closes #NNN. Remove this section if none. -->

Restores #6202 after the release-boundary revert in #6223. Related to
#6189, #6186, and the complementary runtime hardening in #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 #6202 quickstart documentation, identity tests,
secret-boundary tests, and shared fixture, then add a composed
onboarding → `start.sh` → `dcode status` handoff test.
- Record the #6082 rebase contract: #6232's managed-proxy and
secret-filtering paths remain authoritative while #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 #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 #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 <cvillela@nvidia.com>

---------

Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Hadar301 pushed a commit to Hadar301/NemoClaw-OpenShift that referenced this pull request Jul 12, 2026
## Summary

Reverts NVIDIA#6202 from `main` so v0.0.73 retains the release boundary that
was already documented and exercised by the release E2E run. PR NVIDIA#6202
remains targeted for v0.0.74.

The resulting tree is byte-for-byte identical to commit
`2276b2e1373548f9afa95b3a4f4bcd8db244874c`
(`967ad0207b591bfc7f3398f37c230f199bb932ed`).

## Related Issue

Release-boundary housekeeping for v0.0.73. Reverts NVIDIA#6202 without closing
its related issues.

## Changes

- Revert the Deep Agents Code `status`/identity wrapper commands
introduced by NVIDIA#6202.
- Revert the OpenShell TLS-key secret-guard exception introduced by
NVIDIA#6202.
- Revert the Deep Agents Code sandbox-name propagation and accompanying
tests.
- Remove the deferred user-facing `dcode status` documentation from the
v0.0.73 tree.

## 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

- [x] Tests added or updated for changed behavior — exact revert
restores the previously tested tree.
- [ ] Existing tests cover changed behavior — justification:
- [ ] Tests not applicable — justification:
- [x] Docs updated for user-facing behavior changes — NVIDIA#6202
documentation is reverted with the code.
- [ ] 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 index tree exactly matches the pre-NVIDIA#6202 release tree,
and no manual edits were made to the revert.
- [ ] Non-success, skipped, or missing CI check accepted by maintainer —
no CI waiver requested; the local broad `test-cli` pre-commit hook was
skipped after seven unrelated environment-sensitive baseline failures in
Hermes file modes, managed-gateway trust state, and state-dir permission
modes. Changed-area tests pass and PR CI remains required.

## Verification

- [x] PR description includes the DCO sign-off declaration and the
commit appears as `Verified` in GitHub.
- [x] Normal pre-push hooks passed; all pre-commit hooks except the
disclosed broad `test-cli` baseline lane passed.
- [x] `npx vitest run --project cli
src/lib/onboard/sandbox-create-launch.test.ts --silent=false
--reporter=default` — 6/6 passed.
- [x] `npx vitest run --project integration
test/langchain-deepagents-code-image.test.ts --silent=false
--reporter=default` — 53/53 passed.
- [ ] Full `npm test` passes (broad runtime changes only) — not rerun;
the broad hook's unrelated baseline failures are disclosed above.
- [x] Quality Gates section completed with required justifications or
waivers.
- [x] No secrets, API keys, or credentials committed.
- [x] `npm run docs` passes with 0 errors and two pre-existing Fern
warnings.
- [x] Doc pages follow the style guide.
- [ ] New doc pages include SPDX header and frontmatter — no new doc
pages.

---
Signed-off-by: Carlos Villela <cvillela@nvidia.com>


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

## Summary by CodeRabbit

* **New Features**
* Additional environment details are now carried into runtime setup for
better tracing and project context.
* **Bug Fixes**
* Tightened secret-detection and runtime-value checks to reduce the
chance of sensitive values being accepted.
* Improved sandbox launch behavior by simplifying how launch settings
are prepared.
* **Documentation**
* Removed outdated guidance about checking the current sandbox from the
quickstart.

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

Signed-off-by: Carlos Villela <cvillela@nvidia.com>
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 <cvillela@nvidia.com>

---------

Signed-off-by: Carlos Villela <cvillela@nvidia.com>
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 integration: dcode LangChain Deep Code integration behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants