You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Goal:** Add unit and integration tests for the security fix.
158
+
**Goal:** Add unit and integration tests for the security fix, and fix E2E test to exercise real code paths.
159
+
160
+
**Background:** PR #1092 review feedback from @cv identified that `test/e2e/test-telegram-injection.sh` uses ad-hoc SSH commands (`MSG=$(cat) && echo ...`) instead of exercising the actual `runAgentInSandbox()` function in `telegram-bridge.js`. This makes the test validate the concept but not the production code path.
-**PR #617** (upstream): Bridge framework refactor — if merged first, changes apply to `bridge-core.js` instead
195
204
-**PR #699** (upstream): `ALLOWED_CHAT_IDS` warning/opt-in behavior — out of scope for this fix, separate concern
196
205
-**PR #897** (upstream): Env var propagation fix in `bin/nemoclaw.js` — separate file, no conflict
206
+
-**PR #1092** (upstream): Added E2E tests for telegram-injection; @cv's review noted tests don't exercise real `runAgentInSandbox()` — we address this in Phase 4
Copy file name to clipboardExpand all lines: .specs/telegram-bridge-command-injection-fix/validation.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,10 @@ Test Spec: `.specs/telegram-bridge-command-injection-fix/tests.md`
9
9
10
10
**Primary Validation**: Run `test/e2e/test-telegram-injection.sh` via brev-e2e test suite
11
11
12
+
### PR #1092 Feedback Addressed
13
+
14
+
Per @cv's review on PR #1092, the original `test-telegram-injection.sh` used ad-hoc SSH commands (`MSG=$(cat) && echo ...`) instead of exercising the actual `runAgentInSandbox()` function. As part of Phase 4, we update the E2E test to invoke the real production code path.
15
+
12
16
## Validation Strategy
13
17
14
18
The existing E2E test `test/e2e/test-telegram-injection.sh` provides comprehensive validation of the security fix. This test:
0 commit comments