360 Secure SkillHub
360 安全技能中心

agent-harness-settings-parity

在 Codex、Pi、OpenCode 等已安装编码 CLI 及其配置档之间对齐模型、推理预算、自动压缩阈值与审批模式:盘点版本与配置层级,按单位换算阈值,经授权后应用改动,再用配置回读或隔离会话的运行时证据核对是否生效,无法验证的项标记为未验证。

分类:开发
wxxb789
热度 0.00
最近更新 2026-11-21 05:31:29

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add wxxb789/hoa/agent-harness-settings-parity
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
agent-harness-settings-parity
description
Enforce the same model, reasoning budget or thinking effort, auto-compaction threshold and approval mode across installed coding CLIs like Codex, Pi and OpenCode. When knobs differ in units (tokens, percent, fractions) or profiles override them, verify effective values with config readback and session traces. Not for hermes-models.
metadata
{"revision":"3","areas":"software-development","targets":"runtime-agnostic","summary":"hold one policy across every coding harness despite different config files, knob names and units","summary_zh":"让同一条策略在每个 coding harness 上生效,尽管配置文件、键名与单位各不相同","kind":"entry"}

Agent harness settings parity

Prove that the operator's policy holds across the installed harnesses and profiles in scope. An audit is read-only; apply only the changes the operator authorized.

  1. Inventory. Resolve each executable (including version-manager or package installs not on PATH), version, config root, and active profile or preset. Use that version's schema, help and docs to identify the knob, unit, default and override order. Treat existing values as hypotheses until read back.
  2. Translate. Distinguish a trigger threshold from a reserve or buffer: for a reserve subtracted from the context window, threshold = window - reserve. Check the actual model window, unit and any additional caps. Prefer a percentage only if that version implements it with the semantics required by the policy. Check the scope that owns the effective value, including nested presets; a host-level setting may be inert.
  3. Apply. Prefer the harness's validated config command, especially for protected files; otherwise back up the authorized file in the task directory before editing. Prefer a supported user-layer override. Report any managed or package-owned edit that an update could replace. Do not bypass approval or protection.
  4. Read back per version and profile. Use the supported parse/dump/get command and distinguish parse success from effective-value proof. For a runtime-only value, use an isolated session with the same model and profile; cite the exact resolution event or other runtime evidence. A banner, config diff, or successful write is not runtime proof.
  5. Check activation. Determine whether this version reloads config, reads it at startup, or restores a value on resume; test fresh and resumed sessions separately if both matter. Never interrupt real work to prove a setting. Let the turn finish; get explicit approval for any disruptive restart and state its impact on live sessions and watchers. A stopped harness needs no restart, but it does need runtime evidence before claiming parity.
  6. Report harness/version/profile, key and unit, before/after, and exact readback or runtime evidence. Mark inaccessible or unsupported verification as unverified, not equivalent.

For compaction key candidates and preset layouts, see the 2026-11-21 key map. Confirm every row against the installed version before use.