[Conformance] Tool-call trace spans are dropped by a GenAI backend: no gen_ai.operation.name, span name is not execute_tool

Open Beginner friendly
#520 1 comment 0 reactions 0 assignees View on GitHub

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

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

status:needs-triage type:conformance
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

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.