feat(pm): unify agent-native work management through org2-pm - #737
Conversation
|
真机升级 cell 实测通过(沙箱化真实 home 副本 + dev 构建,CLI↔GUI 跨进程):
|
|
S0 地基批已并入本 PR(6 个新提交,per 设计稿 agent-cli-unification-design §11/§13):
验证:project_management 568 + agent_core 3150 + orgtrack-pm-cli 10(含 2 个新 conformance)= 3728 全绿;clippy 零警告。 |
全线进度收口(S0–S3 完成,S4 准备就绪)按
S4 工具删除为何未在本 PR
建议合并策略本 PR 已相当大(19 提交,跨 Rust/TS/docs/e2e)。S0 的事务原语是 PM Graph Commit 的地基,S2/S3 是 agent-CLI 统一的核心。可整体 review 合并,也可按 batch0/S0 与 S1–S3 拆两批——commit 边界清晰,每片独立绿、可回滚。 |
|
双机实测 (S4) 完成 — 报告: docs/orgtrack-pm-protocol/dual-instance-s4-2026-08-07.md。Cell A filler-via-CLI 真 LLM GREEN;Cell B 双机 CLI→云→inst-2 闭环;Cell C 子代理 root-walk 过;boot-2 确定性 0 epoch 变。实测另修 4 个真 bug(exec-mode pin / org 注线 / 分配器全局碰撞 / patch actor 审计)。 |
1c58103 to
713be0b
Compare
Builds canonical application boundaries for Work Items, Projects, and Routines. Creation, claiming, lifecycle writes, audit records, change watermarks, graph materialization, OCC, and idempotency now commit with consistent atomicity. Expands org2-pm work/project commands and schema conformance while aligning product-mode launch contracts.
Establishes org2-pm as the sole agent-facing work-management carrier. Injects session identity and scope through environment and workspace markers, bundles the matching sidecar, enforces claim-holder authority, supports project and standalone stores, renders command envelopes, and retires the legacy typed management tools.
Connects Work Items to ordinary agent sessions and makes Discussion the durable delivery surface. Adds linked-session creation and status mirroring, exact-one receipt fallback, human comment forwarding, shell-safe bodies, creator and quick-add flows, unified Chat Panel navigation, execution-state refresh, and inline sub-item presentation.
Completes the sub-item execution loop with standalone claim and transition support, parent barrier wakeups across app and CLI writes, ordered stage groups, inline failed-run retry, per-item usage rollups, and stable Work Item/session navigation.
4154fce to
f1b0f13
Compare
Pre-commit hook ran. Total eslint: 5, total circular: 0
Pre-commit hook ran. Total eslint: 0, total circular: 0
Pre-commit hook ran. Total eslint: 0, total circular: 0
feat(routines): add timezone-aware runs and result navigation
Problem
Work management was split across legacy typed tools, direct persistence writes, frontend-only session flows, and partially integrated CLI paths. Agents could observe one Work Item model while mutating another; project and standalone scopes behaved differently; and writes did not consistently share audit, optimistic-concurrency, idempotency, or wake semantics.
As a result, Work Items, linked Sessions, Discussion, sub-items, and Routines did not form one reliable execution loop. The previous audit-batch framing no longer described the actual scope of this branch.
Solution
This PR makes
org2-pmthe canonical agent-facing work-management surface and connects it to the existing Work Item, Session, Routine, Discussion, and Agent Org systems.1. Canonical PM application services
2. Agent-facing
org2-pmintegrationorg2-pmthe sole agent-facing carrier for work-management operations and retires the overlapping legacy typed tools.3. Linked Work Item sessions and Discussion
4. Staged sub-item execution and feedback
No stage, existing stages, and the next sequential stage directly in sub-item quick-add while preserving the title-plus-Enter path.5. Created Work Item cards in ordinary Sessions
org2-pm work createprotocol envelopes from both live shell results and durable Session replay.Potential risks
orgtrack/v1work.createenvelope; malformed or noncanonical shell output intentionally falls back to the existing command rendering.Commit map
58fe57a— harden work, routine, and project service boundaries6036649— makeorg2-pmthe agent work-management surface59203cc— unify Work Item sessions, Discussion, and detail UIf1b0f13— complete staged sub-item execution and feedback7d9923a— stabilize linked-session completion and CI56be338— choose stages when adding sub-items5ec3d9b— link created Work Items from Session outputVerification
pnpm lint— passedpnpm typecheck— passedTZ=UTC pnpm vitest run --reporter=dot --silent— 1,009 files / 8,223 tests passedcargo test -p project_management -p orgtrack-pm-cli -p agent_core --quiet— passedcargo clippy --workspace --all-targets -- -D warnings— passednode scripts/tauri/prepare-sidecars.cjs --profile debug— passedpnpm tauri:build:fast:local— production frontend and local macOS app bundle built successfullyWI-0067rendered as a persistent clickable card; switched to Agent's Station, clicked the card, and landed on its My Station detail pageWI-0068from the same ordinary Session, observed the card immediately, switched to Agent's Station, clicked it, and landed onWI-0068 / CU Live Session Card Jump 0808WI-0064and childWI-0065, observed theSTAGE 1group and0/1count, then confirmed Stage 2 became available for the next childWI-0065—parent: WI-0064,stage: 1,status: plannedWI-0062/WI-0063— parent Done, child 1/1 completed, exactly one linked Session in Completed state, and no residual execution lockgit diff --check— passed