Add delegation and pre-action authorization attributes for agent spans

Đang mở
#4,599 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Rutvij97 đang làm issue này rồi.

Từ ngày 10/11/2026.

  • #4701 của @Rutvij97 — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python

Hướng nghiên cứu

Locate the existing handoff span implementation and the attribute registry, then trace where pre-action governance telemetry is recorded. Compare the proposed fields with the project’s conventions for scheme-neutral span attributes and RFC 8693 or signed-delegation data. Done means the agreed attributes are represented and emitted without including credentials or policy text, with coverage confirming their values across delegation and authorization cases.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Following the thread on pre-action governance telemetry: the handoff span records source and target agents, but not the authority the target is acting under. In multi-hop delegation that is the question auditors ask first: on whose behalf, and was this action within what was delegated?

A small, scheme-neutral set of attributes could cover it without putting credentials or policy text into traces, in line with the references-and-hashes approach discussed above:

  • gen_ai.delegation.root.id: the principal at the root of the chain
  • gen_ai.delegation.actor.id: the agent acting now
  • gen_ai.delegation.depth: number of delegation hops
  • gen_ai.delegation.chain.hash: hash of the delegation chain as verified, so an auditor can fetch and re-verify it out of band
  • gen_ai.authz.decision: allow or deny, recorded before the tool call executes
  • gen_ai.authz.reason: a short machine-readable code for a denial

These map directly onto RFC 8693 token exchange (sub and the nested act claims) and onto signed delegation formats. We maintain one such format, VAID (https://github.com/solara-associates/vaid), and a bridge from verified VAID chains to RFC 8693 JWTs, so we could emit these attributes in practice and report back on what works.

Happy to draft a PR against the attribute registry if this direction fits.

Ngôn ngữ chính
Python
Star
7.5k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của traceloop/openllmetry

Tất cả issue của traceloop/openllmetry

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.