Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Feature] AffixIO attestation on pre_tool_call / post_tool_call for privileged actions

Đang mở Phù hợp với người mới
#85 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
61/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu từ tài liệu kho mô tả các hook pre_tool_call / post_tool_call (và before_reasoning / after_reasoning) trong DSL/compiler của agent, cùng bất kỳ thư mục examples/ hay thư mục script mẫu nào. Thêm một ghi chú tài liệu ngắn (tùy chọn một script mẫu) minh họa một cổng có ký kết có/không phía host của AffixIO bên trong pre_tool_call trước khi một công cụ đặc quyền chạy, và một xác nhận (attestation) tùy chọn trong post_tool_call. Xem là hoàn tất khi trang tài liệu hiển thị ví dụ kèm các lệnh cài đặt và nêu rõ đây là xác nhận hành động (action attestation), không phải danh tính/PII. Lưu ý người tạo issue đang chờ phản hồi từ maintainer trước bất kỳ PR nào.

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

Mô tả

Problem Statement

Agent Script already exposes deterministic tool lifecycle hooks (pre_tool_call, post_tool_call, plus before_reasoning / after_reasoning). Teams running agents that can call privileged tools (secrets, remediations, admin actions) still need a host-side proof that an approval gate ran before the tool executed.

Today those hooks can gate and observe, but there is no documented pattern for attaching a signed host-side yes/no attestation to that gate.

Proposed Solution

Document (and optionally sample) AffixIO on pre_tool_call / post_tool_call:

  • pre_tool_call: require AffixIO host-side approval before a privileged tool runs. AffixIO returns a signed yes/no that the action gate completed.
  • post_tool_call: optionally record/attest that the privileged action finished (still action attestation, not identity).

AffixIO proves a host-side action completed (signed yes/no). It is not person/age/KYC. PII stays on the host.

Install:

npm i affixio
# optional local MCP (stdio)
npm i @affixio/[email protected]

Links:

This is a documentation / example ask against the existing hook surface, not a request to embed AffixIO in the runtime.

Alternatives Considered

  • Custom policy only inside pre_tool_call without attestation: works, but no portable signed proof the gate ran.
  • Full AffixIO dialect/runtime wrap: too heavy; Kris/AffixIO prefer a thin hook example over middleware wraps.

Additional Context

Compiler already models pre_tool_call / post_tool_call in the agent DSL. A short docs note or example script showing AffixIO in those callbacks would be enough.

Happy to contribute a minimal example if maintainers want it. Will wait for feedback before any PR.

Ngôn ngữ chính
TypeScript
Star
272
Fork
56
Merge trung bình
12 giờ 18 phút
Pull request đã merge (30 ngày)
5

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 salesforce/agentscript

Tất cả issue của salesforce/agentscript

Issue tương tự

Thêm issue về TypeScript

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.