FinBot lab: a session whose handshake failed stays denied after the Guardian comes back
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
- Domain
- backend, observability
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:
- The gateway drops a session whose handshake failed with
transport_failureorhandshake_timeout, so the next request starts a new handshake. - The gateway's
epoch_bumpedaudit 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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
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 GenAI-Security-Project/agent-control-standard
-
status:needs-triage type:bug workstream:refimpl
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
GenAI-Security-Project/agent-control-standard#764 ·
Maintainers usually reply within 1 day
-
status:needs-triage type:docs
Difficulty 1/5 Under an hour Newbie friendliness 96/100
GenAI-Security-Project/agent-control-standard#717 ·
Maintainers usually reply within 1 day
-
status:needs-triage type:docs
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
GenAI-Security-Project/agent-control-standard#650 ·
Maintainers usually reply within 1 day
-
priority:P1 status:needs-triage type:conformance
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
GenAI-Security-Project/agent-control-standard#614 · 1 comment ·
Maintainers usually reply within 1 day
-
[Conformance] Tool-call trace spans are dropped by a GenAI backend: no gen_ai.operation.name, span name is not execute_toolMay be free again A pull request for this issue was closed without being merged. Openstatus:needs-triage type:conformance
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
GenAI-Security-Project/agent-control-standard#520 · 1 comment ·
Maintainers usually reply within 1 day
All issues in GenAI-Security-Project/agent-control-standard
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Make the "%" unit spacing the same in the web and in A10Possibly taken @kragent66-glitch claimed this today. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
maiychrus25/OpenTea-DX-OS#226 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
nextcloud-libraries/nextcloud-dialogs#2772 ·
Maintainers usually reply within 1 day
-
Editor: leave an uploaded or inserted image's alt text empty, so the preview asks for a descriptionOpen
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 65/100
sveltejs/svelte.dev#2417 ·
Maintainers usually reply within 1 day