Keep registry key validation local to workflowdef with composition-root injection, adapt FlatCatalog for projectworkflow, and drive the orchestrator through LiveInstancePort views instead of projectinstance.
2.3 KiB
2.3 KiB
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 |
|
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;不操作共享环境。
本批完成
workflowdef本地 registry key 校验集(registry_keys.go);cmd/server注入真实workflow.Validate*。- FlatCatalog +
bizdev适配器,避免 catalog 反向依赖projectworkflow类型。 projectinstance.VersionResolver端口(ports.go);实例仍可读已发布定义类型。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。