Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭 适合新手
#85 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
61/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
documentation

调研方向

从仓库文档中关于 agent DSL/compiler 里的 pre_tool_call / post_tool_call 钩子(以及 before_reasoning / after_reasoning)的说明读起,同时查看任何 examples/ 或示例脚本目录。添加一段简短的文档说明(可选附一个示例脚本),展示在特权工具运行之前、于 pre_tool_call 内部使用 AffixIO 主机侧签名的是/否门控,以及可选的 post_tool_call 证明(attestation)。完成标准是:文档页面渲染出该示例并附带安装命令,且声明这是操作证明(action attestation),而非身份/PII。请注意,该 issue 作者正在等待维护者反馈,之后才会提交任何 PR。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
272
派生
56
平均合并
12 小时 18 分钟
30 天内合并 PR
5

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

salesforce/agentscript 的其他 Issue

查看 salesforce/agentscript 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。