-
Notifications
You must be signed in to change notification settings - Fork 3.1k
fix(e2e): avoid multiline Deep Agents secret probe #5902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -433,6 +433,13 @@ describe("LangChain Deep Agents Code image contracts", () => { | |
| expect(secretBoundaryCheck).toContain("Case: Deep Agents Code dcode secret boundary"); | ||
| expect(secretBoundaryCheck).toContain("env OPENAI_API_KEY="); | ||
| expect(secretBoundaryCheck).toContain("dcode -n 'Reply with the single word PING'"); | ||
| expect(secretBoundaryCheck).toContain("dcode_secret_probe_runtime_env"); | ||
| expect(secretBoundaryCheck).toContain("dcode_secret_probe_env_file"); | ||
| expect(secretBoundaryCheck).toContain("remote_cmd="); | ||
| expect(secretBoundaryCheck).toContain("OpenShell rejects newline-bearing exec"); | ||
| expect(secretBoundaryCheck).toContain("NEMOCLAW_E2E_SECRET_BOUNDARY_SELF_TEST"); | ||
| expect(secretBoundaryCheck).toContain("NO_NEWLINE_IN_COMMAND"); | ||
| expect(secretBoundaryCheck).toContain("DCODE_EXIT:%s\\\\n"); | ||
|
Comment on lines
+438
to
+442
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Avoid asserting shell implementation text here. These checks lock the test to the script’s internal variable name and exact 🤖 Prompt for AI AgentsSource: Path instructions |
||
| expect(secretBoundaryCheck).toContain("DCODE_EXIT:0"); | ||
| expect(secretBoundaryCheck).toContain("refusing to start"); | ||
| expect(secretBoundaryCheck).toContain("NETWORK_LOG_PATTERN="); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
Exercise both helpers in the command-shape self-test.
Line 207 only probes
dcode_secret_probe_runtime_env, so a future newline regression indcode_secret_probe_env_filewill bypass the lightweight OpenShell-boundary check and surface only in the heavier secret-boundary path. Add the env-file helper here too, or route both through one shared self-test helper.Suggested change
📝 Committable suggestion
🤖 Prompt for AI Agents
Source: Path instructions