FinBot lab: a session whose handshake failed stays denied after the Guardian comes back

Open
#721 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python, typescript

Research direction

Read adapters/gateway/src/acs_gateway/sessions.py and trace conversation_key plus the handshake failure path for transport_failure and handshake_timeout. The issue offers two possible fixes, including a viewer change, so first inspect PR #695 and the epoch bump audit handling to understand the existing behavior. Done means a Guardian recovery no longer leaves a matching session denied, while the viewer still reports missing ACS records correctly.

Written by the indexing model from the issue text.

Description

After ./lab.sh run s2 --guardian-down, the gateway keeps each session whose handshake failed. Sessions are keyed by the conversation's system text and first user message (adapters/gateway/src/acs_gateway/sessions.py conversation_key). If someone types the same first message into FinBot by hand after the Guardian is back, the gateway reuses that session, and every step is denied until the next epoch bump. Every ./lab.sh run bumps at its start, so scripted runs never hit this.

The failure is closed, so nothing gets through. It still reads wrong, because the Guardian is up and the call is denied anyway.

The run's closing epoch bump would clear these sessions. PR #695 skips it on a guardian-down run, because a bump with no sessionEnd after it makes the viewer read "no ACS record" over the run's denies.

Two ways to fix it:

  1. The gateway drops a session whose handshake failed with transport_failure or handshake_timeout, so the next request starts a new handshake.
  2. The gateway's epoch_bumped audit line carries the number of sessions it ended, and the viewer shows "no ACS record" only after a bump that comes from a mode change.

Found in the final review of PR #695.

Dominant language
TypeScript
Stars
183
Forks
56
Avg merge
3d 1h
Merged PRs (30d)
67

Getting set up

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 GenAI-Security-Project/agent-control-standard

All issues in GenAI-Security-Project/agent-control-standard

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.