ACP test setup leaks session settings into the test process
Maintainers usually reply within 5 days
Assessment
This issue has not been assessed yet.
Description
What happens
Starting an ACP test changes the test process's SYMPOSIUM_HOME, SYMPOSIUM_HOOK_TRACE, and PATH, even when the agent fails to launch. Other tests and child processes can then inherit settings meant for that session.
This affects opt-in ACP agent testing (SYMPOSIUM_ENABLE_AGENT_TESTING with an ACP backend selected), not simulation-only runs or the default Claude SDK backend. Three tests in tests/hook_agent.rs enter this path: two exercise ACP scenarios; the third starts a session before skipping its Claude-SDK-only assertions.
Steps to reproduce
- Give the test process a known
SYMPOSIUM_HOME. - Call
run_with_acp_sessionwith a nonexistent agent executable. - After the launch error, compare the process environment with its original values.
Actual result
The launch fails with:
The system cannot find the file specified. (os error 2)
The regression then fails with:
assertion `left == right` failed: ACP launch failure changed SYMPOSIUM_HOME in the test process
The value now points to the session's temporary directory instead of the original home.
Expected result
ACP setup should leave the test process's environment unchanged, whether the agent starts or fails.
Environment
- Symposium:
3516c051, with an uncommitted regression. - Agent: deliberately nonexistent executable; no account or network needed.
- OS: Windows.
Notes
Reproduced independently by both of us. The local regression is tests::acp_launch_failure_preserves_environment in symposium-testlib.
run_with_acp_session sets process-wide variables before spawning the agent. On Unix this also raises an environment-mutation safety concern; no memory corruption has been reproduced.
- Dominant language
- Rust
- Stars
- 247
- Forks
- 30
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 44
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from symposium-dev/symposium
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
symposium-dev/symposium#530 ·
Maintainers usually reply within 5 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
symposium-dev/symposium#406 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
symposium-dev/symposium#369 ·
Maintainers usually reply within 5 days
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
symposium-dev/symposium#208 ·
Maintainers usually reply within 5 days
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
symposium-dev/symposium#531 ·
Maintainers usually reply within 5 days
All issues in symposium-dev/symposium
Similar issues
-
CI/CD ignore-for-release
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
eclipse-ankaios/ankaios#844 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
std: `SliceIndex<str>` missing for `std::ops` ranges, so generic `R: SliceIndex<str>` bounds failOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
topgrade-rs/topgrade#2540 ·
Maintainers usually reply within 1 day