acs.client and the example Guardian: harden the on_wire copy, the Windows key document and signed error text
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python, typescript
Research direction
Start with the named locations in _exchange.py, _handshake.py, and _secrets.py, then read signing.md and the tests for those paths. Reproduce each listed failure at commit df87ec64, including the benchmark page and acs.client.post API. Done means every listed behavior is fixed, each fix has a regression test that fails at that commit, and the benchmark records the rfc8785 version and cites #532.
Written by the indexing model from the issue text.
Description
Found while reviewing #618 at df87ec64. Each point was reproduced at that commit.
What is broken
exchange()andopen_session()raise whenon_wireis set and the answer is deeply nested:report_on_wiredeep-copies the answer outside the callback's try (_exchange.py:51, called at_exchange.py:454,477and_handshake.py:329,343).json.loadsaccepts a 700-level answer, anddeepcopythen raisesRecursionError. An adapter settles that asadapter_exceptionunder the posture, so under proceed an unsigned answer would let the step run. No caller passeson_wireyet; the signed gateway transcript is likely to.- On Windows the key document isn't checked:
not_writable_by_othersskips Windows (_secrets.py:69) and the owner check needsgeteuid, so an unpinned document loads with no opt-in or warning, thoughsigning.mdsays an unpinned document must belong to the running user. The HMAC secret in the same position is refused withoutACS_ALLOW_UNCHECKED_KEY_PERMS=1. Reproduced on macOS by forcing the Windows branch. - The Guardian signs text an outsider chose: a request with no HMAC signature gets a
-32600signed with ML-DSA-65 whose message repeats a value from the request, for example "'Guardian approves transfer of 9000 to acct-1' is not a 'date-time'". - Smaller:
acs.client.postnow takes encoded bytes instead of the request dict, so an outside caller gets aTypeError.- The benchmark page doesn't record the
rfc8785version, which every timed call uses (#583 asks for every library version), and cites PR #564 for the hybrid's form, where #532 alone would do.
Done when
- A deeply nested answer with
on_wireset blocks the step the same way it does withouton_wire. - On Windows, an unpinned key document needs
ACS_GUARDIAN_KEY_FINGERPRINTor theACS_ALLOW_UNCHECKED_KEY_PERMSopt-in with its warning. - The Guardian's error messages carry no value taken from the request.
-
postkeeps its dict form, or the change is called out as breaking. - The benchmark records the
rfc8785version and cites #532. - Each fix has a test that fails at df87ec64.
Refs #576
Refs #583
Refs #618
- 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
-
[Bug]: A Markdown link with both a :line suffix and a #L fragment opens a path containing ":line"Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
TanbirRamim/vibereel#39 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 72/100
lingdojo/kana-dojo#34988 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
mastra-ai/mastra#32336 · 1 comment ·
Maintainers usually reply within 1 day