Files
Agent-System-Dev/policy/adoption.md
T
weichen ccddcc2b2b Add the zcode write-path guard instance with its adaptation matrix
Why: zcode lacks a rules feature (AGENTS.md is the resident layer) but
supports PreToolUse hooks that can block Edit/Write before the write lands,
upgrading A1/A3 from commit-time to write-time enforcement; the two block
shapes (integration branch, detached submodule) mirror the real incidents.
Evidence: script-level suite 8/8 (N1-N3 blocks with exit 2 and remediation
hints, P1-P5 allows incl. fail-open degradation paths); config JSON valid;
client-side live-fire interception marked pending-live in the matrix.
Impact: .zcode/config.json enables the hook runner for this workspace;
.zcode/plans/ ignored (client state); no product code change.
Refs: Development-Guidelines 0.1.0-draft.8; policy/tool-adaptation-zcode.md
2026-09-30 03:43:26 +00:00

2.0 KiB
Raw Blame History

通用规范采纳记录(Agent-System-Dev 组合)

  • 项目/负责人:Agent-System 组合 / weichen
  • 状态:active(2026-09-30 经 PR weichen/Development-Guidelines#1 采纳 draft.7;机制经 Dev PR#1 合入 ef89fc8)
  • 规范位置:deps/development-guidelines(gitlink 固定版本)
  • 过程文档位置:modules/documents(docs/records/)
  • 版本权威:父仓 gitlink
  • 批准/生效依据:Dev PR#1(19/19 正负例 + make test);guidelines PR#1
规范/工作流 适用条件与范围 执行方式/证据
core/baseline.md 日常 manual
workflows/delivery.md(含启动自检 §1) 交付 advisory(make precheck);判定输出 BUSY/SYNC 时阻断
standards/collaboration.md 并行/同步节点 enforced(本地):pre-commit 拒绝集成分支直提与坏分支名(负例:hook-main/badbranch 拒绝输出);节点同步由 task-sync 落卡
提交格式(主题行/四段 body) 全部提交 enforced(本地):commit-msg 拒绝 >100 列与句点结尾(负例:longsubject 拒绝输出);受保护分支经 Gitea PR 合入(本记录 3 个 PR 为正例)
standards/verification.md 验收 manual:make test(12 ok 行)+ scratch 19/19 为证
standards/multi-repo.md 跨仓/gitlink manual;受控历史迁移通道已于 2026-09-30 行使一次(documents/records/2026-09-30-history-migration.md)
工作区回收 交付终点 advisory(task-finish);负例:合入前 finish 拒绝输出
standards/tool-adaptation.md(draft.8) 为工具创建规则/钩子实例 本组合 CLI/git 级实例已登记:policy/tool-adaptation-matrix.md(A1–A7 逐行定级+正负例证据)
同上(zcode 实例) zcode 客户端写路径 policy/tool-adaptation-zcode.md:PreToolUse 写守卫(.zcode/config.json + scripts/zcode/write-guard.sh),A1/A3 落笔前 enforced

项目差异

  • Gitea 分支保护尚未配置(main 直推现由本地 hook 拦截,平台层暂 manual)——配置后本表升级登记。