ACP test setup leaks session settings into the test process

Open
#527 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 5 days

@gmemuriuki is already working on this.

Since Nov 23, 2026.

  • #528 by @gmemuriuki — open

Assessment

This issue has not been assessed yet.

Description

bug
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
  1. Give the test process a known SYMPOSIUM_HOME.
  2. Call run_with_acp_session with a nonexistent agent executable.
  3. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from symposium-dev/symposium

All issues in symposium-dev/symposium

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.