Skip to content

fix(dcode): disable LangGraph CLI analytics - #6471

Merged
ericksoa merged 2 commits into
mainfrom
codex/fix-6459-disable-analytics-clean
Jul 8, 2026
Merged

ericksoa merged 2 commits into
mainfrom
codex/fix-6459-disable-analytics-clean

Conversation

@ericksoa

@ericksoa ericksoa commented Jul 8, 2026 •

Copy link
Copy Markdown
Member

Summary

Disable LangGraph CLI's optional analytics in NemoClaw-managed Deep Agents Code sandboxes. This removes the blocked Supabase request reported in #6459 without widening sandbox egress policy or changing managed inference routing.

Related Issue

Refs #6459. Exact rebuilt-image validation now proves foreground dcode -n succeeds, but the issue remains open for QA/release revalidation because the pinned analytics client handles its background HTTP failure independently and the original report did not include logs that establish foreground causality.

Changes

  • Force LANGGRAPH_CLI_NO_ANALYTICS=1 at the image, startup/login-shell, wrapper, Python entrypoint, managed-runtime, and LangGraph child-process boundaries.
  • Reassert the managed child posture after persistent and restart-time environment overrides.
  • Reject already-patched package states with stale entrypoint, main, helper, server, status, welcome, or model-identity patches.
  • Add hostile-value and restart coverage while keeping Supabase absent from the default policy.

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
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification: this changes only optional upstream analytics egress; commands, configuration, inference routing, credentials, and policy remain unchanged.
  • 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: pending human review of the managed runtime boundary.
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

Verification

  • PR description includes the DCO sign-off declaration and every commit appears as Verified in GitHub
  • Normal pre-commit, commit-msg, and pre-push hooks passed, or npm run check:diff passed when hooks were skipped or unavailable
  • Targeted behavior tests pass for the current change set, or tests are marked not applicable above — 141 passed, 1 platform skip across managed-entrypoint, direct-module patch, and image-contract suites; image suite used a 60-second timeout for two known slow corpus cases.
  • Applicable broad gate passed — exact-head CI completed with 42 successful checks and 3 intentional skips, including all five CLI shards, the aggregate CLI suite, x86_64/ARM64 image builds, and sandbox smoke jobs.
  • Required rebuilt-image E2E passed — run 28949444993 on exact head 818faf83 completed the Ubuntu DCode target; check 07 passed 10/10 with login-shell and direct-exec dcode -n returning PONG through inference.local. The sanitized artifact set contains no Supabase hostname, PermissionDeniedError, or RemoteException; it is supporting evidence rather than a dedicated network-audit assertion.
  • 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)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Signed-off-by: Aaron Erickson [email protected]

Summary by CodeRabbit

  • Bug Fixes

    • Improved managed runtime behavior so analytics are consistently disabled across startup scripts, wrappers, and sandboxed execution.
    • Strengthened package handling to detect incomplete or stale managed-state updates more reliably.
  • Tests

    • Expanded coverage for analytics-related environment propagation and cleanup.
    • Added checks for generated runtime outputs, policy constraints, and managed entrypoint behavior.

@github-code-quality

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

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage in the codex/fix-6459-disab... 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/fix-6459-disab... 818faf8 +/-
nemoclaw/src/se...cret-scanner.ts — 100% —
nemoclaw/src/commands/slash.ts — 100% —
nemoclaw/src/li...bprocess-env.ts — 100% —
nemoclaw/src/bl...eprint/state.ts — 98% —
nemoclaw/src/onboard/config.ts — 98% —
nemoclaw/src/bl...int/snapshot.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/fix-6459-disab... branch is 76%. Coverage data for the main branch is not yet available.

Show a code coverage summary of the most covered files.
File main codex/fix-6459-disab... 818faf8 +/-
src/lib/onboard/preflight.ts — 82% —
src/lib/state/o...oard-session.ts — 82% —
src/lib/actions...all/run-plan.ts — 81% —
src/lib/actions...licy-channel.ts — 79% —
src/lib/actions...box/snapshot.ts — 79% —
src/lib/state/sandbox.ts — 75% —
src/lib/onboard...er-gpu-patch.ts — 69% —
src/lib/policy/index.ts — 65% —
src/lib/shields/index.ts — 61% —
src/lib/onboard.ts — 28% —

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

@coderabbitai

coderabbitai Bot commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Adds LANGGRAPH_CLI_NO_ANALYTICS=1 across the Dockerfile, wrapper/start scripts, managed runtime hardening, and the deepagents-code patcher, including reassertion after server env overrides, stricter partial-patch/staleness detection, and corresponding test helper and suite updates verifying the analytics flag end-to-end.

Changes

Analytics disabling and hardening

Layer / File(s) Summary
Runtime script and Dockerfile env settings
agents/langchain-deepagents-code/Dockerfile, agents/langchain-deepagents-code/dcode-wrapper.sh, agents/langchain-deepagents-code/start.sh
Sets LANGGRAPH_CLI_NO_ANALYTICS=1 in the Dockerfile ENV block, wrapper script export, start.sh top-level export, and the generated runtime env script.
Managed runtime analytics guard
agents/langchain-deepagents-code/managed-dcode-runtime.py
assert_safe_runtime() sets LANGGRAPH_CLI_NO_ANALYTICS to "1" during environment hardening.
Package patcher analytics enforcement
agents/langchain-deepagents-code/patch-managed-deepagents-code.py
Injects LANGGRAPH_CLI_NO_ANALYTICS into entrypoint/main patches and the server env builder, reasserts it after override layers alongside OTEL suppression, and tightens partial-patch/staleness and completeness checks including SERVER_ENV_OVERRIDES_PATCH verification.
Test helper support for analytics probing
test/helpers/langchain-deepagents-code-headless.ts, test/helpers/langchain-deepagents-code-patch-fixture.ts
Adds ANALYTICS_DISABLE_ENV_NAMES constant used in proxy probe generation and an assertion in the generated Python fixture checking the analytics env var.
Direct-module patch test coverage
test/langchain-deepagents-code-direct-module-patch.test.ts
Extends anchor/boundary matrices for corrupt-patch detection, adds a stale-analytics-guard rejection test, and rewrites environment-hardening assertions covering an analytics_child ServerProcess across start/restart.
Image and entrypoint test coverage
test/langchain-deepagents-code-image.test.ts, test/langchain-deepagents-code-managed-entrypoints.test.ts
Verifies analytics-disable env vars end-to-end in proxy probes, asserts supabase.co exclusion from policy, and validates analytics flag output/override behavior in wrapper entrypoint tests.

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

Sequence Diagram(s)

sequenceDiagram
  participant Patcher as patch-managed-deepagents-code.py
  participant Server as server._build_server_env()
  participant Env as Process Env

  Patcher->>Server: apply persistent overrides
  Patcher->>Server: apply non-persistent overrides
  Patcher->>Env: reassert LANGGRAPH_CLI_NO_ANALYTICS=1
  Patcher->>Env: force OTEL_ENABLED=false
  Patcher->>Env: remove proxy/OTLP telemetry vars
Loading

Suggested labels: bug-fix

🚥 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 clearly matches the main change: disabling LangGraph CLI analytics in dcode-managed sandboxes.
✨ 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/fix-6459-disable-analytics-clean

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

@github-actions

github-actions Bot commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

E2E Advisor Recommendation

Required E2E: ubuntu-repo-cloud-langchain-deepagents-code
Optional E2E: network-policy

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 production Deep Agents Code image, entrypoint, wrapper, and managed runtime behavior changed. This live target rebuilds/onboards the LangChain Deep Agents Code sandbox and runs the registered Deep Agents Code cloud-experimental checks, including managed profile, re-onboard, Landlock/read-only, Python egress, headless inference, secret boundary, Tavily opt-in, TUI startup, and observability checks.

Optional E2E

  • network-policy (high): Useful adjacent confidence because the PR is about closing optional third-party analytics egress from a sandboxed agent. The generic live network-policy job validates allow/deny behavior and denied-log evidence, but it is not a substitute for the Deep Agents Code target because it does not build or run the DCode image.

New E2E recommendations

  • deepagents-code-analytics-egress (high): Existing Deep Agents Code live checks exercise headless/TUI, Python egress, secret boundary, and policy behavior, but there is no explicit live acceptance check that hostile LANGGRAPH_CLI_NO_ANALYTICS values are overridden inside a real sandbox and that no LangGraph Supabase analytics request occurs during dcode/server startup or restart.
    • Suggested test: Extend the Deep Agents Code cloud-experimental checks with a live analytics-egress guard that runs dcode/headless and the server path with hostile inherited analytics env values, asserts LANGGRAPH_CLI_NO_ANALYTICS=1 in the effective runtime/child environment, and verifies sandbox/audit logs contain no Supabase/LangGraph analytics egress.

Dispatch hint

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

@github-actions

github-actions Bot commented Jul 8, 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 sandbox image, managed dcode wrapper/start entrypoints, and patched managed runtime posture for LangGraph analytics/egress controls. The live-supported typed target ubuntu-repo-cloud-langchain-deepagents-code is the smallest registry target that builds and exercises this Deep Agents Code onboarding/runtime surface, including terminal-agent and deepagents-code-policy checks.
    • 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/Dockerfile
  • agents/langchain-deepagents-code/dcode-wrapper.sh
  • agents/langchain-deepagents-code/managed-dcode-runtime.py
  • agents/langchain-deepagents-code/patch-managed-deepagents-code.py
  • agents/langchain-deepagents-code/start.sh

@github-actions

github-actions Bot commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor (Nemotron Ultra) — No blocking findings

Merge posture: No blocking advisor findings
Primary next action: Add or justify PRA-T1 and any related test follow-ups.
Open items: 0 required · 0 warnings · 3 suggestions · 1 test follow-up
Since last review: 4 prior items resolved · 0 still apply · 0 new items found

Action checklist

  • PRA-T1 Add or justify test follow-up: Restart path reasserts analytics disable after hostile env overrides
  • PRA-1 In-scope improvement: LANGGRAPH_CLI_NO_ANALYTICS=1 closes optional telemetry egress at runtime boundary in agents/langchain-deepagents-code/managed-dcode-runtime.py:899
  • PRA-2 In-scope improvement: Patcher validation gate detects stale analytics guard in helper module in agents/langchain-deepagents-code/patch-managed-deepagents-code.py:1160
  • PRA-3 In-scope improvement: Restart path reasserts analytics disable after hostile env overrides in test/langchain-deepagents-code-direct-module-patch.test.ts:926

Findings index

ID Severity Category Location Required action
PRA-1 Improvement security agents/langchain-deepagents-code/managed-dcode-runtime.py:899 No action required. The defense-in-depth application across all entry boundaries is correct. The validation gate in patch-managed-deepagents-code.py (line 1160) detects stale/missing analytics guard.
PRA-2 Improvement correctness agents/langchain-deepagents-code/patch-managed-deepagents-code.py:1160 No action required. The validation is precise and the test at line 125 in direct-module-patch.test.ts verifies rejection of a stale guard.
PRA-3 Improvement tests test/langchain-deepagents-code-direct-module-patch.test.ts:926 No action required. Test provides strong regression coverage for the restart path.
Review findings by urgency: 0 required fixes, 0 items to resolve/justify, 3 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.

  • None.

💡 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-1 Improvement — LANGGRAPH_CLI_NO_ANALYTICS=1 closes optional telemetry egress at runtime boundary

  • Location: agents/langchain-deepagents-code/managed-dcode-runtime.py:899
  • Category: security
  • Problem: Managed runtime assertion now sets LANGGRAPH_CLI_NO_ANALYTICS=1 alongside other managed env vars in assert_safe_runtime(), ensuring analytics disable is enforced even if hostile values are inherited at process start. Defense-in-depth across 7 entry boundaries.
  • Impact: Prevents LangGraph CLI from posting command analytics to third-party Supabase collector in managed sandboxes. Closes optional egress vector without widening sandbox policy.
  • Suggested action: No action required. The defense-in-depth application across all entry boundaries is correct. The validation gate in patch-managed-deepagents-code.py (line 1160) detects stale/missing analytics guard.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: grep -r LANGGRAPH_CLI_NO_ANALYTICS agents/langchain-deepagents-code/ --include="*.py" --include="*.sh" --include="Dockerfile"
  • Missing regression test: Already covered: test/langchain-deepagents-code-direct-module-patch.test.ts validates flag in env, server child process, restart path, and hostile override rejection. test/langchain-deepagents-code-managed-entrypoints.test.ts verifies wrapper and patcher contain the flag.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: LANGGRAPH_CLI_NO_ANALYTICS=1 appears at Dockerfile ENV, start.sh, dcode-wrapper.sh, managed-dcode-runtime.py assert_safe_runtime, patch entrypoint, patch main, patch server _build_server_env, patch server SERVER_ENV_OVERRIDES_PATCH

PRA-2 Improvement — Patcher validation gate detects stale analytics guard in helper module

  • Location: agents/langchain-deepagents-code/patch-managed-deepagents-code.py:1160
  • Category: correctness
  • Problem: Patcher validates that _nemoclaw_managed.py contains exactly one instance of the analytics guard line, preventing drift where the helper is missing or has duplicate/stale guards.
  • Impact: Ensures the managed package patch remains complete; a stale or missing analytics guard will fail the image build rather than silently allowing analytics egress.
  • Suggested action: No action required. The validation is precise and the test at line 125 in direct-module-patch.test.ts verifies rejection of a stale guard.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Check test/langchain-deepagents-code-direct-module-patch.test.ts line 125 for the stale guard rejection test
  • Missing regression test: Already covered by the new test case 'rejects a fully marked package with a stale managed analytics guard'
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: analytics_guard variable and count check at line 1160-1168; test at direct-module-patch.test.ts:125 corrupts the anchor and expects build failure

PRA-3 Improvement — Restart path reasserts analytics disable after hostile env overrides

  • Location: test/langchain-deepagents-code-direct-module-patch.test.ts:926
  • Category: tests
  • Problem: New analytics_child test verifies server restart path correctly re-applies LANGGRAPH_CLI_NO_ANALYTICS=1 even when _persistent_env_overrides and _env_overrides contain hostile values (0, false, true).
  • Impact: Confirms the SERVER_ENV_OVERRIDES_PATCH restart defense works end-to-end; prevents analytics re-enablement across server restarts.
  • Suggested action: No action required. Test provides strong regression coverage for the restart path.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Run test/langchain-deepagents-code-direct-module-patch.test.ts and verify the 'loads only strict HTTPS-only managed MCP configuration' test passes (includes analytics_child assertions)
  • Missing regression test: Already covered by the analytics_child start/restart assertions in the validation script
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: analytics_child test at lines 926-959 sets hostile overrides in both _persistent_env_overrides and _env_overrides, then verifies child env has analytics=1 after start and restart
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 Restart path reasserts analytics disable after hostile env overrides — No action required. Test provides strong regression coverage for the restart path.
Since last review details

Current findings, using the urgency labels above:

PRA-1 Improvement — LANGGRAPH_CLI_NO_ANALYTICS=1 closes optional telemetry egress at runtime boundary

  • Location: agents/langchain-deepagents-code/managed-dcode-runtime.py:899
  • Category: security
  • Problem: Managed runtime assertion now sets LANGGRAPH_CLI_NO_ANALYTICS=1 alongside other managed env vars in assert_safe_runtime(), ensuring analytics disable is enforced even if hostile values are inherited at process start. Defense-in-depth across 7 entry boundaries.
  • Impact: Prevents LangGraph CLI from posting command analytics to third-party Supabase collector in managed sandboxes. Closes optional egress vector without widening sandbox policy.
  • Suggested action: No action required. The defense-in-depth application across all entry boundaries is correct. The validation gate in patch-managed-deepagents-code.py (line 1160) detects stale/missing analytics guard.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: grep -r LANGGRAPH_CLI_NO_ANALYTICS agents/langchain-deepagents-code/ --include="*.py" --include="*.sh" --include="Dockerfile"
  • Missing regression test: Already covered: test/langchain-deepagents-code-direct-module-patch.test.ts validates flag in env, server child process, restart path, and hostile override rejection. test/langchain-deepagents-code-managed-entrypoints.test.ts verifies wrapper and patcher contain the flag.
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: LANGGRAPH_CLI_NO_ANALYTICS=1 appears at Dockerfile ENV, start.sh, dcode-wrapper.sh, managed-dcode-runtime.py assert_safe_runtime, patch entrypoint, patch main, patch server _build_server_env, patch server SERVER_ENV_OVERRIDES_PATCH

PRA-2 Improvement — Patcher validation gate detects stale analytics guard in helper module

  • Location: agents/langchain-deepagents-code/patch-managed-deepagents-code.py:1160
  • Category: correctness
  • Problem: Patcher validates that _nemoclaw_managed.py contains exactly one instance of the analytics guard line, preventing drift where the helper is missing or has duplicate/stale guards.
  • Impact: Ensures the managed package patch remains complete; a stale or missing analytics guard will fail the image build rather than silently allowing analytics egress.
  • Suggested action: No action required. The validation is precise and the test at line 125 in direct-module-patch.test.ts verifies rejection of a stale guard.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Check test/langchain-deepagents-code-direct-module-patch.test.ts line 125 for the stale guard rejection test
  • Missing regression test: Already covered by the new test case 'rejects a fully marked package with a stale managed analytics guard'
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: analytics_guard variable and count check at line 1160-1168; test at direct-module-patch.test.ts:125 corrupts the anchor and expects build failure

PRA-3 Improvement — Restart path reasserts analytics disable after hostile env overrides

  • Location: test/langchain-deepagents-code-direct-module-patch.test.ts:926
  • Category: tests
  • Problem: New analytics_child test verifies server restart path correctly re-applies LANGGRAPH_CLI_NO_ANALYTICS=1 even when _persistent_env_overrides and _env_overrides contain hostile values (0, false, true).
  • Impact: Confirms the SERVER_ENV_OVERRIDES_PATCH restart defense works end-to-end; prevents analytics re-enablement across server restarts.
  • Suggested action: No action required. Test provides strong regression coverage for the restart path.
  • Expected follow-up: Prefer a current-PR fix when local to changed code; defer only with rationale or linked follow-up.
  • Verification: Run test/langchain-deepagents-code-direct-module-patch.test.ts and verify the 'loads only strict HTTPS-only managed MCP configuration' test passes (includes analytics_child assertions)
  • Missing regression test: Already covered by the analytics_child start/restart assertions in the validation script
  • Done when: The local improvement is applied, or the PR notes why it should be deferred.
  • Evidence: analytics_child test at lines 926-959 sets hostile overrides in both _persistent_env_overrides and _env_overrides, then verifies child env has analytics=1 after start and restart

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 8, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor — No blocking findings

Merge posture: No blocking advisor findings
Primary next action: Add or justify PRA-T1 and any related test follow-ups.
Open items: 0 required · 0 warnings · 0 suggestions · 3 test follow-ups
Since last review: 2 prior items resolved · 0 still apply · 0 new items found

Action checklist

  • 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: Acceptance clause
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 — Add or identify a rebuilt-image runtime check that starts the managed DCode LangGraph server path with inherited LANGGRAPH_CLI_NO_ANALYTICS=0 and verifies the spawned child process sees LANGGRAPH_CLI_NO_ANALYTICS=1.. The PR changes sandbox/runtime/container posture files. Focused local tests are strong for environment construction and monkeypatch drift, but rebuilt-image validation would provide extra confidence that the actual pinned LangGraph analytics client observes the flag before attempting third-party egress.
  • PRA-T2 Runtime validation — Add or identify a rebuilt-image network-policy check that exercises the former analytics-triggering command path and confirms no supabase.co request is attempted or logged while managed inference routing still succeeds.. The PR changes sandbox/runtime/container posture files. Focused local tests are strong for environment construction and monkeypatch drift, but rebuilt-image validation would provide extra confidence that the actual pinned LangGraph analytics client observes the flag before attempting third-party egress.
  • PRA-T3 Acceptance clause — No linked issue clauses were available in the deterministic validation context. — add test evidence or identify existing coverage. The validation context reported linkedIssues: []; PR body references [Ubuntu 24.04][Agent&Skills] dcode headless execution fails with PermissionDeniedError — supabase.co:443 blocked by sandbox egress policy #6459, but issue text/comments were not provided as trusted deterministic context, so no literal linked-issue clauses could be extracted or mapped.

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 8, 2026

Copy link
Copy Markdown
Contributor

E2E Target Results — ✅ All selected jobs passed

Run: 28949087948
Workflow ref: codex/fix-6459-disable-analytics-clean
Requested targets: ubuntu-repo-cloud-langchain-deepagents-code
Requested jobs: (default — all default-enabled free-standing jobs; explicit-only jobs openshell-gateway-auth-contract, mcp-bridge-dev, hermes-gpu-startup, sandbox-rlimits-connect, and jetson-nvmap-gpu are skipped unless selected)
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
live ✅ success

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

E2E Target Results — ✅ All selected jobs passed

Run: 28949444993
Workflow ref: codex/fix-6459-disable-analytics-clean
Requested targets: ubuntu-repo-cloud-langchain-deepagents-code
Requested jobs: (default — all default-enabled free-standing jobs; explicit-only jobs openshell-gateway-auth-contract, mcp-bridge-dev, hermes-gpu-startup, sandbox-rlimits-connect, and jetson-nvmap-gpu are skipped unless selected)
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
live ✅ success

@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/langchain-deepagents-code-managed-entrypoints.test.ts (1)

114-131: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Consider adding an issue reference suffix to the test title.

The renamed title "overrides hostile tracing and analytics flags before the managed package starts" is behavior-oriented but omits a local issue reference, even though this change is tied to the Supabase-blocking bug (#6459).

As per coding guidelines, **/*.test.ts: "Write behavior-oriented test titles, and put local issue references in a final (#1234) suffix."

🤖 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/langchain-deepagents-code-managed-entrypoints.test.ts` around lines 114
- 131, Update the test title in the affected test case to keep the
behavior-oriented wording and append the local issue reference as a final
suffix, matching the project convention for test files. Locate the `it(...)`
block in the managed entrypoints test and rename the description so it ends with
the issue number in parentheses, preserving the existing scenario text while
adding the `(`#6459`)` suffix.

Source: Coding guidelines

🤖 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/langchain-deepagents-code-managed-entrypoints.test.ts`:
- Around line 114-131: Update the test title in the affected test case to keep
the behavior-oriented wording and append the local issue reference as a final
suffix, matching the project convention for test files. Locate the `it(...)`
block in the managed entrypoints test and rename the description so it ends with
the issue number in parentheses, preserving the existing scenario text while
adding the `(`#6459`)` suffix.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: f75981de-eb4f-4f69-aeed-70889f547280

📥 Commits

Reviewing files that changed from the base of the PR and between abc1a1d and 818faf8.

📒 Files selected for processing (10)
  • agents/langchain-deepagents-code/Dockerfile
  • agents/langchain-deepagents-code/dcode-wrapper.sh
  • agents/langchain-deepagents-code/managed-dcode-runtime.py
  • agents/langchain-deepagents-code/patch-managed-deepagents-code.py
  • agents/langchain-deepagents-code/start.sh
  • test/helpers/langchain-deepagents-code-headless.ts
  • test/helpers/langchain-deepagents-code-patch-fixture.ts
  • test/langchain-deepagents-code-direct-module-patch.test.ts
  • test/langchain-deepagents-code-image.test.ts
  • test/langchain-deepagents-code-managed-entrypoints.test.ts

@ericksoa
ericksoa merged commit ede618d into main Jul 8, 2026
126 checks passed
@ericksoa
ericksoa deleted the codex/fix-6459-disable-analytics-clean branch July 8, 2026 14:35
@miyoungc miyoungc mentioned this pull request Jul 8, 2026
9 of 21 tasks
miyoungc added a commit that referenced this pull request Jul 8, 2026
<!-- markdownlint-disable MD041 -->
## Summary
Adds the v0.0.77 release-note section from the shipped release
announcement and release commit range.
This is post-release docs recovery, so the PR is labeled for the next
patch release train.

## Changes
- Added `v0.0.77` to `docs/about/release-notes.mdx` with links to the
deeper Deep Agents, architecture, inference, security, and agent-docs
pages.
- Source summary:
- #6469 -> `docs/about/release-notes.mdx`: Documents Deep Agents Code
base-image publication and stale-version validation.
- #6471 -> `docs/about/release-notes.mdx`: Documents the managed runtime
disabling LangGraph CLI analytics.
- #6462 -> `docs/about/release-notes.mdx`: Documents the TUI, launch
banner, and model-identity provider display behavior.
- #6460 -> `docs/about/release-notes.mdx`: Documents bounded,
best-effort OTLP trace credential scrubbing and the remaining
collector-side redaction requirement.
- #6423 -> `docs/about/release-notes.mdx`: Documents the checked-in
loopback-only local credential form used by starter prompts.

## Type of Change

- [ ] Code change (feature, bug fix, or refactor)
- [ ] Code change with doc updates
- [x] Doc only (prose changes, no code sample modifications)
- [ ] 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: release-note prose only, no
runtime behavior or code samples changed.
- [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
not applicable for release-note prose only.
- [ ] 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)

Verification note: `npm run docs` passed. `fern check --warnings`
reports the existing light-mode accent color contrast warning: `2.41:1`,
expected at least `3:1`.

---
<!-- 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: Miyoung Choi <[email protected]>


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

## Summary by CodeRabbit

* **Documentation**
* Added a new release-notes entry for **v0.0.77** at the top of the
changelog.
* Highlighted improved package validation, tighter handling of telemetry
and trace data, and safer starter prompt behavior with stronger
redaction and local-only submission.


<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Hadar301 pushed a commit to Hadar301/NemoClaw-OpenShift that referenced this pull request Jul 12, 2026
<!-- markdownlint-disable MD041 -->
## Summary

Disable LangGraph CLI's optional analytics in NemoClaw-managed Deep
Agents Code sandboxes. This removes the blocked Supabase request
reported in NVIDIA#6459 without widening sandbox egress policy or changing
managed inference routing.

## Related Issue

Refs NVIDIA#6459. Exact rebuilt-image validation now proves foreground `dcode
-n` succeeds, but the issue remains open for QA/release revalidation
because the pinned analytics client handles its background HTTP failure
independently and the original report did not include logs that
establish foreground causality.

## Changes

- Force `LANGGRAPH_CLI_NO_ANALYTICS=1` at the image,
startup/login-shell, wrapper, Python entrypoint, managed-runtime, and
LangGraph child-process boundaries.
- Reassert the managed child posture after persistent and restart-time
environment overrides.
- Reject already-patched package states with stale entrypoint, main,
helper, server, status, welcome, or model-identity patches.
- Add hostile-value and restart coverage while keeping Supabase absent
from the default policy.

## Type of Change

- [x] 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

- [x] Tests added or updated for changed behavior
- [ ] Existing tests cover changed behavior — justification:
- [ ] Tests not applicable — justification:
- [ ] Docs updated for user-facing behavior changes
- [x] Docs not applicable — justification: this changes only optional
upstream analytics egress; commands, configuration, inference routing,
credentials, and policy remain unchanged.
- [x] 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: pending human review of
the managed runtime boundary.
- [ ] Non-success, skipped, or missing CI check accepted by maintainer —
check name, approval link, and follow-up issue:

## Verification

- [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 — 141 passed, 1 platform skip across
managed-entrypoint, direct-module patch, and image-contract suites;
image suite used a 60-second timeout for two known slow corpus cases.
- [x] Applicable broad gate passed — exact-head CI completed with 42
successful checks and 3 intentional skips, including all five CLI
shards, the aggregate CLI suite, x86_64/ARM64 image builds, and sandbox
smoke jobs.
- [x] Required rebuilt-image E2E passed — [run
28949444993](https://github.com/NVIDIA/NemoClaw/actions/runs/28949444993)
on exact head `818faf83` completed the Ubuntu DCode target; check 07
passed 10/10 with login-shell and direct-exec `dcode -n` returning
`PONG` through `inference.local`. The sanitized artifact set contains no
Supabase hostname, `PermissionDeniedError`, or `RemoteException`; it is
supporting evidence rather than a dedicated network-audit assertion.
- [ ] 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)
- [ ] 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)

---
Signed-off-by: Aaron Erickson <[email protected]>


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

## Summary by CodeRabbit

* **Bug Fixes**
* Improved managed runtime behavior so analytics are consistently
disabled across startup scripts, wrappers, and sandboxed execution.
* Strengthened package handling to detect incomplete or stale
managed-state updates more reliably.

* **Tests**
* Expanded coverage for analytics-related environment propagation and
cleanup.
* Added checks for generated runtime outputs, policy constraints, and
managed entrypoint behavior.

<!-- 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
Adds the v0.0.77 release-note section from the shipped release
announcement and release commit range.
This is post-release docs recovery, so the PR is labeled for the next
patch release train.

## Changes
- Added `v0.0.77` to `docs/about/release-notes.mdx` with links to the
deeper Deep Agents, architecture, inference, security, and agent-docs
pages.
- Source summary:
- NVIDIA#6469 -> `docs/about/release-notes.mdx`: Documents Deep Agents Code
base-image publication and stale-version validation.
- NVIDIA#6471 -> `docs/about/release-notes.mdx`: Documents the managed runtime
disabling LangGraph CLI analytics.
- NVIDIA#6462 -> `docs/about/release-notes.mdx`: Documents the TUI, launch
banner, and model-identity provider display behavior.
- NVIDIA#6460 -> `docs/about/release-notes.mdx`: Documents bounded,
best-effort OTLP trace credential scrubbing and the remaining
collector-side redaction requirement.
- NVIDIA#6423 -> `docs/about/release-notes.mdx`: Documents the checked-in
loopback-only local credential form used by starter prompts.

## Type of Change

- [ ] Code change (feature, bug fix, or refactor)
- [ ] Code change with doc updates
- [x] Doc only (prose changes, no code sample modifications)
- [ ] 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: release-note prose only, no
runtime behavior or code samples changed.
- [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
not applicable for release-note prose only.
- [ ] 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)

Verification note: `npm run docs` passed. `fern check --warnings`
reports the existing light-mode accent color contrast warning: `2.41:1`,
expected at least `3:1`.

---
<!-- 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: Miyoung Choi <[email protected]>


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

## Summary by CodeRabbit

* **Documentation**
* Added a new release-notes entry for **v0.0.77** at the top of the
changelog.
* Highlighted improved package validation, tighter handling of telemetry
and trace data, and safer starter prompt behavior with stronger
redaction and local-only submission.


<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@wscurran wscurran added area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery bug-fix PR fixes a bug or regression integration: dcode LangChain Deep Code integration behavior labels Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery bug-fix PR fixes a bug or regression integration: dcode LangChain Deep Code integration behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants