[Conformance] Tool-call trace spans are dropped by a GenAI backend: no gen_ai.operation.name, span name is not execute_tool
Maintainers usually reply within 1 day
Nobody has claimed this yet.
- #557 by @drk-ram — closed without merging
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend-api-design, observability
Research direction
Start with otel-mapping.json and locate the mappings for steps/toolCallRequest and steps/toolCallResult; then read the exporter test that covers those mappings. Update the span names and required attributes as described, retaining the acs.* attributes and exposing acs.decision as a span attribute as well as an event. Done when the test confirms both mappings emit the specified names and attributes.
Written by the indexing model from the issue text.
Description
What you ran
The reference Guardian's documented trace output, reference-implementations/agt/samples/trace/acs-trace-sample.jsonl on integration (the same shape ACS_OTEL_FILE / ACS_OTEL_ENDPOINT write), posted line by line as OTLP/JSON to SealedRun 0.8.1's OTLP receiver (/otlp/v1/traces). SealedRun is an open-source recorder that turns OTel GenAI spans into a signed hash chain; it keys spans on gen_ai.operation.name, with the first word of the span name as fallback, the way the OTel GenAI semantic conventions define them.
What you expected
The four steps/toolCallRequest spans (gen_ai.tool.name=Bash) and the one steps/toolCallResult span to show up as tool-call records, with the acs.decision verdict on each.
What happened
Both exports returned 200 and nothing was recorded: 0 runs, 0 records.
Cause: otel-mapping.json names the spans gen_ai.tool.call and gen_ai.tool.result and lists no gen_ai.operation.name. The OTel GenAI semantic conventions (v1.41.0, gen-ai-spans.md, "Execute tool span") say the span name SHOULD be execute_tool {gen_ai.tool.name} and gen_ai.operation.name is Required (execute_tool). A backend that follows the conventions sees an unknown operation and skips the span. That is any GenAI-aware backend, not one vendor.
Control: the same four spans renamed to execute_tool Bash with gen_ai.operation.name=execute_tool added, nothing else changed, produced four chained tool-call records at once. Two things were still lost in that run: the verdict, because acs.decision rides as a span event and attribute-driven backends do not read events; and acs.session.id / acs.request_id, which such a backend has no reason to keep.
Suggested change, mapping only, no new wire fields: for steps/toolCallRequest and steps/toolCallResult use the semconv span name and add gen_ai.operation.name to the required attributes, keep every acs.* attribute as is, and mirror the decision as a span attribute acs.decision next to the event so a reader that only has attributes still sees the verdict. The Guardian exporter reads otel-mapping.json at start, so it follows the mapping change with no code of its own. Happy to send that PR, mapping plus the exporter test, if this is accepted.
Not in this report: the chain head. The Guardian sends no chain_hash yet (PR #346), so an outside recorder can witness decisions and timing today but not the §8.6 head. Will re-run once that lands.
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
-
[Docs] The A2A page says `must` for a wire deferred to v0.2May be free again @Lrd0036 claimed this 30 days ago, and no pull request is open. Openscope:in-focus status:accepted type:docs workstream:docs
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
GenAI-Security-Project/agent-control-standard#391 · 1 comment · 1 assignee ·
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