[RefImpl] Fix and harden the #571 timeout mapping: read the notice from output, require exit null, validate the hookmap
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
Research direction
Start in packages/host-adapter at exitStatusOf, then read the OpenCode hookmap and the changes and review context for #571 and #466. Add tests for exit null with the timeout notice, reject hookmap entries with an empty path or trimmed contains value, and measure whether OpenCode 1.18.30 truncates metadata.output with a 30,000+ character command. Done means one tested PR covers all three points and references #466 and #571.
Written by the indexing model from the issue text.
Description
Target runtime or language
TypeScript: the AGT host adapter (packages/host-adapter, exitStatusOf) and the OpenCode hookmap, fixing and hardening the mapping merged in #571 for #466.
What this proves
Follow-ups from the review of #571, as committed on #466, plus a correction found while measuring the third one (reported on #571 with captures).
- The signal path. #571 reads the timeout notice from
$.result.metadata.output, which never carries it attool.execute.afteron OpenCode 1.18.30, so the shipped mapping never fires on a live run and timeouts still arrive asfailure. The notice is in$.result.output, also after a truncation. This shows, end to end against the reference Guardian, a plain timeout and a truncated timeout reaching the Guardian astimeout, where #571's path givesfailurefor the same calls. - A host-reported timeout is only mapped to
timeoutwhen the host's own signals agree: the exit value the host declares for its timeout (exit: nullon OpenCode) alongside the notice. Tests cover exit 1 and 137 with the notice present: they stayfailure. This shows a command that prints the notice text cannot turn a real failure into a timeout. - Hookmap validation rejects a
paththat splits to no field ($..), acontainsthat is empty after trim, atimeout_whenwith noexit, and anexitthe adapter already reads assuccess. This shows a malformed entry fails at load instead of silently switching detection off or matching every result. - Truncation, measured on OpenCode 1.18.30 with 60,000 characters then a 2000 ms timeout:
outputis cut to a pointer to the saved file and keeps the notice;metadata.outputkeeps about the last 30,000 characters (truncated: true,outputPathset) and no notice. That case is a test.
Out of scope: what each exit_status value means (#119) and whether "an effect may already have happened" needs its own value (Discussion #128).
Done when one PR covers the four points, with tests and the end-to-end captures, and references #466 and #571.
Do you intend to implement this yourself
Yes, I want this assigned to me
Current Priority Scope
Feeds conformance evidence
- 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