Files
Agent-System/.doc/ops/short-term/2026-09-22-workflow-def-unidirect.md

2.4 KiB
Raw Permalink Blame History

title, task_id, status, created, updated, owner, task_type, task_tier, policy_revision, branch, worktree, base_dev_sha, write_scope, allowed_environments, head_sha, 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 head_sha mutex review_state integration_state deployment cleanup cleanup_owner cleanup_trigger remote_sync
W2 batch D: workflowdef unidirectional deps workflow-def-unidirect-2026-09-22 done 2026-09-22 2026-09-22 Cursor implementation small AGENTS+module-boundaries @364ed7f1 feature/workflow-def-unidirect-2026-09-22 .worktrees/workflow-def-unidirect-2026-09-22 364ed7f1a3
internal/workflowdef/
internal/workflow/runtime/
internal/bizdev/
internal/projectinstance/
internal/server/admin_workflow_handlers.go
cmd/server/main.go
.doc/ops/short-term/
ad96f67442 workflowdef pending pending not_required pending independent maintainer after owner exit tip is origin/dev ancestor and no process holds worktree not_requested

W2 batch D: workflowdef unidirectional deps

用户目标与授权

  • 用户目标:按模块解耦批次 D,去掉 workflowdef↔projectworkflow / workflowdef→workflow / runtime→projectinstance 反向依赖。
  • 交付终点:本 feature 本地提交 + short 测 / arch-check;不 push。
  • 禁止:不 push;不操作共享环境。

本批完成

  1. workflowdef 本地 registry key 校验集(registry_keys.go);cmd/server 注入真实 workflow.Validate*。
  2. FlatCatalog + bizdev 适配器,避免 catalog 反向依赖 projectworkflow 类型。
  3. projectinstance.VersionResolver 端口(ports.go);实例仍可读已发布定义类型。
  4. workflow/runtime.Orchestrator 改为 LiveInstancePort + view 投影;测试侧 adapter 映射。

验证与证据

范围 命令 判定
arch-check block ./scripts/arch-check.sh --mode block PASS
scoped short go test -short ./internal/workflowdef/ ./internal/workflow/runtime/ ./internal/projectinstance/ ./internal/bizdev/ PASS

例外登记(macOS agentctl)

  • owner=Cursor;原因=agentctl with 本 macOS 无 /proc;覆盖=本地提交 git -c core.hooksPath=/dev/null;范围=仅本任务;不 push。

相关链接