Files
Agent-System/.doc/ops/short-term/2026-09-23-agent-governance-config.md
T
WeiCHEN 33c7b9a260 feat(agentctl): externalize governance policy to JSON
Load configs/agent-governance.json from the main worktree with fail-closed
POLICY_* codes, and keep test fixtures writing the same contract file.
2026-09-23 14:50:56 +08:00

1.5 KiB
Raw Blame History

title, task_id, status, created, updated, owner, task_type, task_tier, policy_revision, branch, worktree, base_dev_sha, write_scope, allowed_environments, mutex, review_state, integration_state, deployment, cleanup, cleanup_owner, cleanup_trigger, remote_sync
title task_id status created updated owner task_type task_tier policy_revision branch worktree base_dev_sha write_scope allowed_environments mutex review_state integration_state deployment cleanup cleanup_owner cleanup_trigger remote_sync
W1-U2:治理策略外部化为 agent-governance.json agent-governance-config-2026-09-23 in_progress 2026-09-23 2026-09-23 Cursor implementation single agent-governance-2026-09-21-r1 @ 1cb8c6f4b3 feature/agent-governance-config-2026-09-23 .worktrees/agent-governance-config-2026-09-23 1cb8c6f4b3
scripts
configs
.doc
agent-governance-config pending pending not_required pending 独立维护者 合入 local_dev 且无进程占用后复查 not_requested

W1-U2:治理策略外部化

用户目标与授权

  • 用户目标:configs/agent-governance.json(stdlib JSON)外部化 SHARED_DOCS / JOB_KINDS / doc_rules 等;load_policy fail-closed。
  • 授权:W1 波次 U2;不 push。
  • 交付终点:合入 local_dev;负例三类拒绝码可测。

步骤

  1. worktree + register + CURRENT 认领
  2. 新建 configs/agent-governance.json
  3. load_policy + 写路径前置校验;只读不创建
  4. 测试 fixture 写入策略文件
  5. 负例测试 + unittest 全绿 + integrate

相关链接