This release is a pre-release and may not be stable for production use.
pyxis-harness-auto-review
权限模式「自动审查」:带审批门的工具调用先由模型审查,放行的直接执行,其余的交给用户审批。
| 项 | 值 |
|---|---|
| 条目 | auto-review(base bundle) |
| 注入 | agentLoop、llm |
| 权限模式 | auto-review;基于 workspace-write |
| 来源 | dsh 的 dsh-experimental-auto-review |
文件
| 文件 | 内容 |
|---|---|
__init__.py |
导出 |
plugin.py |
apply、Config、MODE:向 agent loop 贡献权限模式 |
middleware.py |
ReviewMiddleware、reviewed、review_of、note |
review.py |
Review、parse、history、prompt、tool_schema |
config.toml |
MODE、NOTES、HISTORY |
prompts.toml |
审查者的 system prompt |
配置
| 键 | 默认 | 内容 |
|---|---|---|
model |
None |
审查用的模型;None:被审调用所在请求的模型 |
timeout |
60.0 |
一次审查的时限(秒) |
流程
| 步骤 | 契约 |
|---|---|
| 模型回复 | ReviewMiddleware.awrap_model_call:逐个审查回复里带审批门的工具调用 |
| 审查范围 | 工具有审批门,且审批门自己的 when 为真;其余调用不审 |
| 审查请求 | 每个调用一次模型请求,顺序执行,标记 nostream |
| 记录 | AI 消息的 additional_kwargs["pyharness"] = {"kind": "auto-review", "reviews": {调用 id: 记录}} |
| 运行事件 | tool_review:id、name 与记录的字段 |
| 审批门 | reviewed:记录为 allow 时不中断;其余照常中断 |
| 审批卡片 | 描述以审查结论开头(NOTES),其后是审批门自己的描述 |
| 恢复运行 | 审批门重新求值时读同一条记录 |
记录
| 结果 | 字段 |
|---|---|
| 放行 | decision: allow、risk |
| 拒绝 | decision: deny、risk、reason? |
| 失败 | decision: deny、error:超时、模型错误、回复不是合法结论 |
risk |
decision |
|---|---|
low |
allow |
medium |
allow、deny |
high |
deny |
审查输入
一个 JSON 对象:environment、history、tool、pending。
| 会话消息 | history 的条目 |
|---|---|
| 用户输入的消息 | user-instruction;去掉附件块 |
| 子 agent 的第一条消息 | parent-instruction |
| harness 写入的消息(压缩检查点、重启续跑) | checkpoint |
| AI 消息的工具调用 | fact |
| AI 消息的正文与推理、工具结果、system prompt | 无 |
HISTORY |
内容 |
|---|---|
items |
条目数上限;保留最近的 |
text_chars |
一条文本的字符上限 |
args_chars |
一次历史调用参数的字符上限 |
图
| 对象 | 处理 |
|---|---|
| 主 agent | 审批门换成 reviewed;加入 ReviewMiddleware |
| 声明式子 agent | 继承主 agent 的审批门;加入 ReviewMiddleware(subagent=True) |
自带 interrupt_on、已编译或远程的子 agent |
不变 |
| 没有审批门的图 | 不变 |
边界
| 项 | 契约 |
|---|---|
| 没有审查记录的调用 | 照常中断 |
| 新会话的默认模式 | 不提供;按会话选择 |
| 无人值守 | pyh exec --mode auto-review --approvals reject:未放行的调用被拒绝,运行继续 |
| 审批时限 | agents 的 approval_timeout:未放行的调用到期被拒绝 |
| 轮次统计 | 不含审查的模型请求 |
Metadata
Release files for pyxis-harness-auto-review 0.1.1.dev1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyxis_harness_auto_review-0.1.1.dev1.tar.gz | 9.7 kB | Without provenance | Details for pyxis_harness_auto_review-0.1.1.dev1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyxis_harness_auto_review-0.1.1.dev1-py3-none-any.whl | Python 3 | none | any | Details for pyxis_harness_auto_review-0.1.1.dev1-py3-none-any.whl |
Total release size: 24.0 kB
Release files / pyxis_harness_auto_review-0.1.1.dev1.tar.gz
| Download URL | pyxis_harness_auto_review-0.1.1.dev1.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36569edfa137856416f2b1edb9aa812a6c6b18f5f11e68cb2e5e46e7a07f6b02
|
|
BLAKE2b-256 checksum How to use checksums |
067e5179847437f491da2fa4272c699229f5a5378a72dc10f2d061fd6c222278
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pyxis_harness_auto_review-0.1.1.dev1-py3-none-any.whl
| Download URL | pyxis_harness_auto_review-0.1.1.dev1-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33fe1e336307e63ebb7a8ed1e9f5e804bf5ea32c9f3e1ebbaed284cba63e96a0
|
|
BLAKE2b-256 checksum How to use checksums |
b2786dbe82db9d19f93b0ceb2a0733601777907aa121d0beed94428150fbe9e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pyxis-harness-auto-review 0.1.1.dev1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.