@pennixrv/trellis 0.7.1 → 0.7.2-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -7
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +6 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/ablate.d.ts.map +1 -1
- package/dist/commands/ablate.js +2 -0
- package/dist/commands/ablate.js.map +1 -1
- package/dist/commands/backup.d.ts +4 -0
- package/dist/commands/backup.d.ts.map +1 -0
- package/dist/commands/backup.js +75 -0
- package/dist/commands/backup.js.map +1 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +705 -681
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/mem.d.ts.map +1 -1
- package/dist/commands/mem.js +49 -7
- package/dist/commands/mem.js.map +1 -1
- package/dist/commands/task-progress.d.ts +1 -0
- package/dist/commands/task-progress.d.ts.map +1 -1
- package/dist/commands/task-progress.js +67 -25
- package/dist/commands/task-progress.js.map +1 -1
- package/dist/commands/teamwork/adapters/acp.d.ts +20 -0
- package/dist/commands/teamwork/adapters/acp.d.ts.map +1 -0
- package/dist/commands/teamwork/adapters/acp.js +271 -0
- package/dist/commands/teamwork/adapters/acp.js.map +1 -0
- package/dist/commands/teamwork/adapters/claude.d.ts +1 -0
- package/dist/commands/teamwork/adapters/claude.d.ts.map +1 -1
- package/dist/commands/teamwork/adapters/claude.js +5 -0
- package/dist/commands/teamwork/adapters/claude.js.map +1 -1
- package/dist/commands/teamwork/adapters/codex.d.ts +3 -2
- package/dist/commands/teamwork/adapters/codex.d.ts.map +1 -1
- package/dist/commands/teamwork/adapters/codex.js +14 -15
- package/dist/commands/teamwork/adapters/codex.js.map +1 -1
- package/dist/commands/teamwork/adapters/index.d.ts +24 -2
- package/dist/commands/teamwork/adapters/index.d.ts.map +1 -1
- package/dist/commands/teamwork/adapters/index.js +163 -24
- package/dist/commands/teamwork/adapters/index.js.map +1 -1
- package/dist/commands/teamwork/agent-loader.d.ts +2 -1
- package/dist/commands/teamwork/agent-loader.d.ts.map +1 -1
- package/dist/commands/teamwork/agent-loader.js +2 -1
- package/dist/commands/teamwork/agent-loader.js.map +1 -1
- package/dist/commands/teamwork/artifact.d.ts +42 -14
- package/dist/commands/teamwork/artifact.d.ts.map +1 -1
- package/dist/commands/teamwork/artifact.js +188 -85
- package/dist/commands/teamwork/artifact.js.map +1 -1
- package/dist/commands/teamwork/batch-reservation.d.ts +16 -0
- package/dist/commands/teamwork/batch-reservation.d.ts.map +1 -0
- package/dist/commands/teamwork/batch-reservation.js +43 -0
- package/dist/commands/teamwork/batch-reservation.js.map +1 -0
- package/dist/commands/teamwork/batch.d.ts +23 -0
- package/dist/commands/teamwork/batch.d.ts.map +1 -0
- package/dist/commands/teamwork/batch.js +415 -0
- package/dist/commands/teamwork/batch.js.map +1 -0
- package/dist/commands/teamwork/context-loader.d.ts +1 -1
- package/dist/commands/teamwork/context-loader.d.ts.map +1 -1
- package/dist/commands/teamwork/context-loader.js +19 -6
- package/dist/commands/teamwork/context-loader.js.map +1 -1
- package/dist/commands/teamwork/coordination.d.ts +88 -0
- package/dist/commands/teamwork/coordination.d.ts.map +1 -0
- package/dist/commands/teamwork/coordination.js +153 -0
- package/dist/commands/teamwork/coordination.js.map +1 -0
- package/dist/commands/teamwork/coordinator.d.ts +33 -6
- package/dist/commands/teamwork/coordinator.d.ts.map +1 -1
- package/dist/commands/teamwork/coordinator.js +948 -342
- package/dist/commands/teamwork/coordinator.js.map +1 -1
- package/dist/commands/teamwork/create.d.ts +1 -0
- package/dist/commands/teamwork/create.d.ts.map +1 -1
- package/dist/commands/teamwork/create.js +2 -1
- package/dist/commands/teamwork/create.js.map +1 -1
- package/dist/commands/teamwork/dev-parse-trace.d.ts +2 -1
- package/dist/commands/teamwork/dev-parse-trace.d.ts.map +1 -1
- package/dist/commands/teamwork/dev-parse-trace.js +2 -0
- package/dist/commands/teamwork/dev-parse-trace.js.map +1 -1
- package/dist/commands/teamwork/foreground-wait.d.ts +6 -0
- package/dist/commands/teamwork/foreground-wait.d.ts.map +1 -0
- package/dist/commands/teamwork/foreground-wait.js +65 -0
- package/dist/commands/teamwork/foreground-wait.js.map +1 -0
- package/dist/commands/teamwork/guard.d.ts +2 -2
- package/dist/commands/teamwork/guard.d.ts.map +1 -1
- package/dist/commands/teamwork/guard.js +25 -7
- package/dist/commands/teamwork/guard.js.map +1 -1
- package/dist/commands/teamwork/index.d.ts.map +1 -1
- package/dist/commands/teamwork/index.js +164 -11
- package/dist/commands/teamwork/index.js.map +1 -1
- package/dist/commands/teamwork/kill.d.ts +2 -0
- package/dist/commands/teamwork/kill.d.ts.map +1 -1
- package/dist/commands/teamwork/kill.js +79 -38
- package/dist/commands/teamwork/kill.js.map +1 -1
- package/dist/commands/teamwork/messages.d.ts.map +1 -1
- package/dist/commands/teamwork/messages.js +3 -0
- package/dist/commands/teamwork/messages.js.map +1 -1
- package/dist/commands/teamwork/plan.d.ts +22 -0
- package/dist/commands/teamwork/plan.d.ts.map +1 -0
- package/dist/commands/teamwork/plan.js +288 -0
- package/dist/commands/teamwork/plan.js.map +1 -0
- package/dist/commands/teamwork/process-identity.d.ts +3 -0
- package/dist/commands/teamwork/process-identity.d.ts.map +1 -0
- package/dist/commands/teamwork/process-identity.js +24 -0
- package/dist/commands/teamwork/process-identity.js.map +1 -0
- package/dist/commands/teamwork/profiles.d.ts +43 -6
- package/dist/commands/teamwork/profiles.d.ts.map +1 -1
- package/dist/commands/teamwork/profiles.js +138 -110
- package/dist/commands/teamwork/profiles.js.map +1 -1
- package/dist/commands/teamwork/prompt.d.ts +4 -0
- package/dist/commands/teamwork/prompt.d.ts.map +1 -0
- package/dist/commands/teamwork/prompt.js +33 -0
- package/dist/commands/teamwork/prompt.js.map +1 -0
- package/dist/commands/teamwork/result.d.ts +55 -0
- package/dist/commands/teamwork/result.d.ts.map +1 -0
- package/dist/commands/teamwork/result.js +94 -0
- package/dist/commands/teamwork/result.js.map +1 -0
- package/dist/commands/teamwork/rm.d.ts.map +1 -1
- package/dist/commands/teamwork/rm.js +64 -64
- package/dist/commands/teamwork/rm.js.map +1 -1
- package/dist/commands/teamwork/run.d.ts +5 -0
- package/dist/commands/teamwork/run.d.ts.map +1 -1
- package/dist/commands/teamwork/run.js +120 -24
- package/dist/commands/teamwork/run.js.map +1 -1
- package/dist/commands/teamwork/runtime.d.ts +9 -0
- package/dist/commands/teamwork/runtime.d.ts.map +1 -0
- package/dist/commands/teamwork/runtime.js +402 -0
- package/dist/commands/teamwork/runtime.js.map +1 -0
- package/dist/commands/teamwork/send.d.ts +1 -0
- package/dist/commands/teamwork/send.d.ts.map +1 -1
- package/dist/commands/teamwork/send.js +2 -1
- package/dist/commands/teamwork/send.js.map +1 -1
- package/dist/commands/teamwork/spawn.d.ts +10 -3
- package/dist/commands/teamwork/spawn.d.ts.map +1 -1
- package/dist/commands/teamwork/spawn.js +44 -27
- package/dist/commands/teamwork/spawn.js.map +1 -1
- package/dist/commands/teamwork/store/lock.js +28 -4
- package/dist/commands/teamwork/store/lock.js.map +1 -1
- package/dist/commands/teamwork/supervisor/inbox.d.ts +1 -0
- package/dist/commands/teamwork/supervisor/inbox.d.ts.map +1 -1
- package/dist/commands/teamwork/supervisor/inbox.js +28 -9
- package/dist/commands/teamwork/supervisor/inbox.js.map +1 -1
- package/dist/commands/teamwork/supervisor/stdout.d.ts.map +1 -1
- package/dist/commands/teamwork/supervisor/stdout.js +2 -3
- package/dist/commands/teamwork/supervisor/stdout.js.map +1 -1
- package/dist/commands/teamwork/supervisor/warning.d.ts.map +1 -1
- package/dist/commands/teamwork/supervisor/warning.js +2 -3
- package/dist/commands/teamwork/supervisor/warning.js.map +1 -1
- package/dist/commands/teamwork/supervisor.d.ts +6 -1
- package/dist/commands/teamwork/supervisor.d.ts.map +1 -1
- package/dist/commands/teamwork/supervisor.js +21 -12
- package/dist/commands/teamwork/supervisor.js.map +1 -1
- package/dist/commands/teamwork/teammate-adapters.d.ts +3 -5
- package/dist/commands/teamwork/teammate-adapters.d.ts.map +1 -1
- package/dist/commands/teamwork/teammate-adapters.js +23 -61
- package/dist/commands/teamwork/teammate-adapters.js.map +1 -1
- package/dist/commands/teamwork/teammate-config.d.ts +5 -1
- package/dist/commands/teamwork/teammate-config.d.ts.map +1 -1
- package/dist/commands/teamwork/teammate-config.js +62 -19
- package/dist/commands/teamwork/teammate-config.js.map +1 -1
- package/dist/commands/teamwork/teammate-launch.d.ts +15 -6
- package/dist/commands/teamwork/teammate-launch.d.ts.map +1 -1
- package/dist/commands/teamwork/teammate-launch.js +129 -22
- package/dist/commands/teamwork/teammate-launch.js.map +1 -1
- package/dist/commands/teamwork/wait.d.ts +2 -0
- package/dist/commands/teamwork/wait.d.ts.map +1 -1
- package/dist/commands/teamwork/wait.js +44 -3
- package/dist/commands/teamwork/wait.js.map +1 -1
- package/dist/commands/uninstall.d.ts.map +1 -1
- package/dist/commands/uninstall.js +92 -84
- package/dist/commands/uninstall.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +635 -592
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +94 -89
- package/dist/commands/workflow.js.map +1 -1
- package/dist/configurators/shared.js +2 -2
- package/dist/configurators/shared.js.map +1 -1
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +14 -32
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/constants/paths.d.ts +3 -10
- package/dist/constants/paths.d.ts.map +1 -1
- package/dist/constants/paths.js +4 -13
- package/dist/constants/paths.js.map +1 -1
- package/dist/migrations/manifests/0.7.1-beta.0.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.1.json +186 -0
- package/dist/migrations/manifests/0.7.1-beta.10.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.11.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.12.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.13.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.14.json +11 -0
- package/dist/migrations/manifests/0.7.1-beta.15.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.16.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.17.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.18.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.19.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.2.json +522 -0
- package/dist/migrations/manifests/0.7.1-beta.3.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.4.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.5.json +9 -0
- package/dist/migrations/manifests/0.7.1-beta.6.json +10 -0
- package/dist/migrations/manifests/0.7.1-beta.7.json +8 -0
- package/dist/migrations/manifests/0.7.1-beta.8.json +481 -0
- package/dist/migrations/manifests/0.7.1-beta.9.json +191 -0
- package/dist/migrations/manifests/0.7.2-beta.0.json +11 -0
- package/dist/migrations/manifests/0.7.2-beta.1.json +11 -0
- package/dist/migrations/manifests/0.7.2-beta.10.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.2.json +11 -0
- package/dist/migrations/manifests/0.7.2-beta.3.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.4.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.5.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.6.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.7.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.8.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.9.json +9 -0
- package/dist/templates/claude/hooks/statusline.py +9 -4
- package/dist/templates/codex/hooks/session-start.py +28 -11
- package/dist/templates/codex/hooks.json +10 -0
- package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/workflow.md +8 -2
- package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/workflow.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/add-project-local-conventions.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +5 -5
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-task-lifecycle.md +3 -2
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/overview.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/multi-agent-teamwork.md +20 -2
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/task-system.md +8 -2
- package/dist/templates/common/bundled-skills/trellis-session-insight/references/cli-quick-reference.md +2 -1
- package/dist/templates/common/bundled-skills/trellis-session-insight/references/triggering-patterns.md +2 -2
- package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/workflow.md +22 -5
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/mcp-setup.md +4 -2
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-task-planning.md +2 -2
- package/dist/templates/common/bundled-skills/trellis-task-implementation/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-task-implementation/workflow.md +6 -0
- package/dist/templates/common/bundled-skills/trellis-teamwork/SKILL.md +25 -3
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/coordination-modes.md +34 -3
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-configuration-matrix.md +37 -26
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md +128 -14
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teamwork-plan-construction.md +152 -20
- package/dist/templates/common/bundled-skills/trellis-worktree-delegation/SKILL.md +14 -0
- package/dist/templates/common/bundled-skills/trellis-worktree-delegation/workflow.md +17 -0
- package/dist/templates/common/commands/continue.md +2 -0
- package/dist/templates/common/commands/start.md +4 -2
- package/dist/templates/common/skills/before-dev.md +1 -4
- package/dist/templates/common/skills/break-loop.md +7 -18
- package/dist/templates/common/skills/check.md +7 -11
- package/dist/templates/common/skills/request-intake.md +25 -0
- package/dist/templates/common/skills/update-spec.md +5 -7
- package/dist/templates/copilot/hooks/session-start.py +14 -11
- package/dist/templates/copilot/index.d.ts +1 -6
- package/dist/templates/copilot/index.d.ts.map +1 -1
- package/dist/templates/copilot/index.js +1 -14
- package/dist/templates/copilot/index.js.map +1 -1
- package/dist/templates/extract.js +4 -0
- package/dist/templates/extract.js.map +1 -1
- package/dist/templates/kiro/agents/trellis.json +1 -1
- package/dist/templates/markdown/spec/backend/index.md.txt +4 -35
- package/dist/templates/markdown/spec/frontend/index.md.txt +4 -36
- package/dist/templates/omp/extensions/trellis/index.ts.txt +2 -2
- package/dist/templates/opencode/lib/session-utils.js +301 -209
- package/dist/templates/pi/extensions/trellis/index.ts.txt +17 -1
- package/dist/templates/shared-hooks/guard-teamwork-wait.py +58 -0
- package/dist/templates/shared-hooks/index.d.ts +1 -1
- package/dist/templates/shared-hooks/index.d.ts.map +1 -1
- package/dist/templates/shared-hooks/index.js +1 -0
- package/dist/templates/shared-hooks/index.js.map +1 -1
- package/dist/templates/shared-hooks/inject-workflow-state.py +23 -3
- package/dist/templates/shared-hooks/session-start.py +16 -12
- package/dist/templates/snow/SNOW.md +1 -1
- package/dist/templates/trellis/agents/delegated-worktree-primary-agent.md +18 -11
- package/dist/templates/trellis/agents/profiles/architecture.md +9 -0
- package/dist/templates/trellis/agents/profiles/diagnosis.md +9 -0
- package/dist/templates/trellis/agents/profiles/exploration.md +9 -0
- package/dist/templates/trellis/agents/profiles/research.md +9 -0
- package/dist/templates/trellis/agents/profiles/review.md +9 -0
- package/dist/templates/trellis/agents/profiles/verification.md +9 -0
- package/dist/templates/trellis/agents/teammate-profiles.json +56 -4
- package/dist/templates/trellis/agents/teammate.md +6 -52
- package/dist/templates/trellis/agents/worktree-delegation-node.md +24 -0
- package/dist/templates/trellis/config.yaml +2 -5
- package/dist/templates/trellis/index.d.ts +4 -0
- package/dist/templates/trellis/index.d.ts.map +1 -1
- package/dist/templates/trellis/index.js +23 -4
- package/dist/templates/trellis/index.js.map +1 -1
- package/dist/templates/trellis/scripts/add_session.py +1 -1
- package/dist/templates/trellis/scripts/common/active_task.py +3 -47
- package/dist/templates/trellis/scripts/common/config.py +5 -0
- package/dist/templates/trellis/scripts/common/git_context.py +10 -0
- package/dist/templates/trellis/scripts/common/io.py +2 -2
- package/dist/templates/trellis/scripts/common/paths.py +9 -25
- package/dist/templates/trellis/scripts/common/safe_commit.py +8 -8
- package/dist/templates/trellis/scripts/common/task_context.py +11 -51
- package/dist/templates/trellis/scripts/common/task_continuity.py +202 -60
- package/dist/templates/trellis/scripts/common/task_layout.py +80 -0
- package/dist/templates/trellis/scripts/common/task_move.py +345 -0
- package/dist/templates/trellis/scripts/common/task_store.py +57 -57
- package/dist/templates/trellis/scripts/common/task_utils.py +23 -19
- package/dist/templates/trellis/scripts/common/task_workflow.py +400 -50
- package/dist/templates/trellis/scripts/common/tasks.py +6 -5
- package/dist/templates/trellis/scripts/common/worktree_delegation.py +561 -0
- package/dist/templates/trellis/scripts/hooks/linear_sync.py +13 -3
- package/dist/templates/trellis/scripts/task.py +109 -24
- package/dist/templates/trellis/teamwork.json +10 -0
- package/dist/templates/trellis/workflow.md +31 -5
- package/dist/utils/ablation-store.d.ts +1 -1
- package/dist/utils/ablation-store.d.ts.map +1 -1
- package/dist/utils/ablation-store.js +58 -24
- package/dist/utils/ablation-store.js.map +1 -1
- package/dist/utils/asset-backup.d.ts +138 -0
- package/dist/utils/asset-backup.d.ts.map +1 -0
- package/dist/utils/asset-backup.js +525 -0
- package/dist/utils/asset-backup.js.map +1 -0
- package/dist/utils/atomic-write.d.ts +1 -1
- package/dist/utils/atomic-write.d.ts.map +1 -1
- package/dist/utils/atomic-write.js +6 -3
- package/dist/utils/atomic-write.js.map +1 -1
- package/dist/utils/manifest-prune.d.ts +4 -1
- package/dist/utils/manifest-prune.d.ts.map +1 -1
- package/dist/utils/manifest-prune.js +17 -6
- package/dist/utils/manifest-prune.js.map +1 -1
- package/dist/utils/template-fetcher.d.ts +4 -19
- package/dist/utils/template-fetcher.d.ts.map +1 -1
- package/dist/utils/template-fetcher.js +9 -45
- package/dist/utils/template-fetcher.js.map +1 -1
- package/dist/utils/template-hash.d.ts +5 -4
- package/dist/utils/template-hash.d.ts.map +1 -1
- package/dist/utils/template-hash.js +24 -17
- package/dist/utils/template-hash.js.map +1 -1
- package/package.json +3 -2
- package/dist/templates/common/skills/brainstorm.md +0 -21
- package/dist/templates/copilot/prompts/before-dev.prompt.md +0 -39
- package/dist/templates/copilot/prompts/brainstorm.prompt.md +0 -13
- package/dist/templates/copilot/prompts/break-loop.prompt.md +0 -129
- package/dist/templates/copilot/prompts/check-cross-layer.prompt.md +0 -170
- package/dist/templates/copilot/prompts/check.prompt.md +0 -110
- package/dist/templates/copilot/prompts/create-command.prompt.md +0 -116
- package/dist/templates/copilot/prompts/finish-work.prompt.md +0 -22
- package/dist/templates/copilot/prompts/integrate-skill.prompt.md +0 -223
- package/dist/templates/copilot/prompts/onboard.prompt.md +0 -362
- package/dist/templates/copilot/prompts/record-session.prompt.md +0 -58
- package/dist/templates/copilot/prompts/start.prompt.md +0 -65
- package/dist/templates/copilot/prompts/update-spec.prompt.md +0 -358
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.7.2-beta.0",
|
|
3
|
+
"description": "收敛 fork 全面审查:Teamwork 恢复、证据、容量、委派与多宿主资产",
|
|
4
|
+
"breaking": true,
|
|
5
|
+
"recommendMigrate": true,
|
|
6
|
+
"changelog": "保留全部尝试证据并提供显式清理;修复实际容量和冻结配置核验;增加证据驱动 reconcile 与失败子集 retry;增加 Codex 等待护栏;补齐委派合同绑定、退役和 ownership recover;修复多宿主阶段提示、受管文件备份及跨生命周期初始化;退休隐式 Marketplace spec 来源,保留显式 registry;修复 npm 异步重试。",
|
|
7
|
+
"migrationGuide": "使用 beta 渠道精确升级到 0.7.2-beta.0,并运行 trellis update。保持用户自定义 spec 和 config;schema-2 项目忽略退休 YAML 容量键,需按实际冲突合并。默认初始化仅提供规范索引、指南和基于源码的 bootstrap;预制规范必须明确指定 --registry。原计划和旧 schema 报告兼容读取;需要本轮冻结配置和重试合同的新批次请通过 plan 构造器生成。保留全部 attempt 报告和 worklog,清理须使用 cleanup-artifacts 的预览摘要。",
|
|
8
|
+
"aiInstructions": "不要覆盖自定义规范或重开旧终态批次。使用原生 reconcile/retry/cleanup-artifacts/delegate-bind/delegate-reconcile/transfer recover;未知进程保持围栏。CLI 控制 FIFO,主代理静默续接同一等待句柄;Hook 不保证阻止普通模型消息或宿主唤醒。",
|
|
9
|
+
"migrations": [],
|
|
10
|
+
"notes": "保持 beta 渠道,0.7.2-beta.0 高于 stable 0.7.1;latest 标签保持不变。"
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.7.2-beta.1",
|
|
3
|
+
"description": "Teamwork acceptance, recovery boundaries, and lifecycle revision integrity",
|
|
4
|
+
"breaking": true,
|
|
5
|
+
"recommendMigrate": true,
|
|
6
|
+
"changelog": "Separate teammate report submission from main-agent acceptance; retain complete attempt evidence until explicit cleanup; isolate member-level provider failures; tighten task lifecycle revision and metadata validation; preserve safe in-project asset symlinks; and correct release staging boundaries.",
|
|
7
|
+
"migrationGuide": "Upgrade through the beta channel to 0.7.2-beta.1, then run the native trellis update command. Existing customized project files remain subject to the normal preview and conflict review. Teamwork batches completed under this version now remain pending coordinator review until each report receives an explicit accepted or final_failed disposition; do not treat an AWAITING_REVIEW receipt as final acceptance. Attempt evidence remains until explicit cleanup-artifacts preview and confirmation.",
|
|
8
|
+
"aiInstructions": "The CLI owns FIFO dispatch, retries, background monitoring, and batch recovery. Teammates submit conclusions and evidence only. After the full batch returns, the main agent reviews each report and records a disposition bound to its digest and frozen acceptance contract. Preserve attempt evidence and use native reconcile, review, retry, and cleanup-artifacts commands. Unknown process identity remains fail closed unless explicitly confirmed through the auditable native reconciliation entry point.",
|
|
9
|
+
"migrations": [],
|
|
10
|
+
"notes": "Keep the beta npm channel. 0.7.2-beta.1 is above stable 0.7.1; do not move the latest tag."
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.7.2-beta.10",
|
|
3
|
+
"description": "规范协作角色与宿主能力,冻结委派输入并保留安全控制",
|
|
4
|
+
"breaking": false,
|
|
5
|
+
"recommendMigrate": false,
|
|
6
|
+
"changelog": "Trellis Teamwork 与 Paseo-based-parallelism 使用一致的机制和执行者名称;委派绑定冻结准备、角色及节点方法,使用不可变 attempt 快照并拒绝输入漂移;退休后拒绝继续派发,授权失效仍允许受限安全控制;交互与 batch 共用 provider options 校验。",
|
|
7
|
+
"migrations": [],
|
|
8
|
+
"notes": "升级 CLI 后通过原生 trellis update 更新生成资产。已有不完整委派绑定不能静默续跑,须由 owner 处理旧 attempt 后重新绑定;不自动迁移运行态。角色只读义务不代表技术沙箱。"
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.7.2-beta.2",
|
|
3
|
+
"description": "Teamwork acceptance and release parity correction",
|
|
4
|
+
"breaking": true,
|
|
5
|
+
"recommendMigrate": true,
|
|
6
|
+
"changelog": "Preserve beta.1 teamwork and lifecycle changes; include the canonical workflow scripts in the source commit so released scripts match bundled templates.",
|
|
7
|
+
"migrationGuide": "Upgrade through the beta channel to 0.7.2-beta.2, then run the native trellis update command. Existing customized project files remain subject to the normal preview and conflict review. Teamwork batches remain pending coordinator review until each report receives an explicit accepted or final_failed disposition; attempt evidence remains until explicit cleanup.",
|
|
8
|
+
"aiInstructions": "The CLI owns FIFO dispatch, retries, background monitoring, and batch recovery. Teammates submit conclusions and evidence only. After the full batch returns, the main agent reviews each report and records a disposition bound to its digest and frozen acceptance contract. Preserve attempt evidence and use native reconcile, review, retry, and cleanup-artifacts commands. Unknown process identity remains fail closed unless explicitly confirmed through the auditable native reconciliation entry point.",
|
|
9
|
+
"migrations": [],
|
|
10
|
+
"notes": "Keep the beta npm channel. 0.7.2-beta.2 is above stable 0.7.1; do not move the latest tag."
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.7.2-beta.3",
|
|
3
|
+
"description": "Taskless routing gate and explicit task-creation approval",
|
|
4
|
+
"breaking": false,
|
|
5
|
+
"recommendMigrate": false,
|
|
6
|
+
"changelog": "Clarify the taskless workflow contract for bounded, immediately verifiable work and require approval before inferred task creation when the user did not explicitly request a task.",
|
|
7
|
+
"migrations": [],
|
|
8
|
+
"notes": "The release updates bundled workflow templates and agent guidance only; no project file migration is required."
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.7.2-beta.4",
|
|
3
|
+
"description": "Bounded decision discovery and solution re-evaluation before convergence",
|
|
4
|
+
"breaking": false,
|
|
5
|
+
"recommendMigrate": false,
|
|
6
|
+
"changelog": "Challenge material defaults before decision handoff, reconsider affected choices after answers and evidence, and record completion evidence before requesting overall approval without adding fixed interview rounds.",
|
|
7
|
+
"migrations": [],
|
|
8
|
+
"notes": "Updates the two bundled phase workflow documents and diagrams. Use native trellis update to refresh project skills; no project file migration is required."
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.7.2-beta.5",
|
|
3
|
+
"description": "同机 Paseo 工作树委派与公开 SDK 可选适配",
|
|
4
|
+
"breaking": true,
|
|
5
|
+
"recommendMigrate": false,
|
|
6
|
+
"changelog": "引入显式目标和能力绑定、准备/实施两步许可、固定角色与按次投影、未知创建/发送恢复,以及目标 owner 集成后核销。新增独立 Node >=22 适配包,基础 CLI/core 仍支持 Node >=18.17。",
|
|
7
|
+
"migrations": [],
|
|
8
|
+
"notes": "通过原生 trellis update 更新角色、脚本、Hook 和协作 Skill。旧运行记录先沿原生 reconciliation 保全闭合;新启动必须传入目标、设置和能力要求,不能退回旧的一步启动。"
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.7.2-beta.6",
|
|
3
|
+
"description": "修复真实 Paseo 委派创建及后台节点对账",
|
|
4
|
+
"breaking": false,
|
|
5
|
+
"recommendMigrate": false,
|
|
6
|
+
"changelog": "已有 workspace 内创建 agent 不再重复传入 background;完整检查后台与已归档节点。经明确原生拒绝及全量资源核验的未创建 agent,可凭主控证据显式恢复到 workspace_created,不重放未知创建。",
|
|
7
|
+
"migrations": [],
|
|
8
|
+
"notes": "同步升级 CLI 与可选 adapter,并通过原生 trellis update 更新控制脚本及协作方法;既有绑定和源码保留。"
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.7.2-beta.7",
|
|
3
|
+
"description": "修复 daemon PATH 差异和已拒绝请求的幂等键冲突",
|
|
4
|
+
"breaking": false,
|
|
5
|
+
"recommendMigrate": false,
|
|
6
|
+
"changelog": "必需 CodeGraph 由主控解析并核验绝对入口,避免 daemon PATH 不含用户安装目录导致 MCP 缺失;agent 创建幂等键包含实际请求指纹,相同请求保持稳定,经显式核验未创建后修正的请求不再撞旧指纹。",
|
|
7
|
+
"migrations": [],
|
|
8
|
+
"notes": "同步更新 CLI、可选 adapter 和原生项目资产;准备缺项仍阻断 execute,未知创建仍须原生对账,不能自动重试。"
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.7.2-beta.8",
|
|
3
|
+
"description": "原生委派长等待不再阻塞主控操作",
|
|
4
|
+
"breaking": false,
|
|
5
|
+
"recommendMigrate": false,
|
|
6
|
+
"changelog": "delegate-wait 只在等待前后持有布局和任务锁;原生等待期间主控可检查其他工作包或中断当前节点。返回后重新核对当前授权、绑定、attempt与原生映射,拒绝已替换或核销的陈旧观察。",
|
|
7
|
+
"migrations": [],
|
|
8
|
+
"notes": "更新CLI并通过原生trellis update刷新task.py和委派模块;adapter协议及固定角色不变。"
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.7.2-beta.9",
|
|
3
|
+
"description": "按业务问题连接可选辅助Skill并保留五阶段职责",
|
|
4
|
+
"breaking": false,
|
|
5
|
+
"recommendMigrate": false,
|
|
6
|
+
"changelog": "原生workflow、intake、start/continue及五阶段Skill按需选择宿主方法,完成产物后返回当前阶段;可选集合缺席不阻断原生流程,不预读全集或重复已定问题。",
|
|
7
|
+
"migrations": [],
|
|
8
|
+
"notes": "升级CLI后由原生trellis update更新生成资产;Pennix集合与全局规则分别由其owner管理。三包同版本,运行时协议不变。"
|
|
9
|
+
}
|
|
@@ -136,14 +136,19 @@ def _get_current_task_for_input(trellis_dir: Path, cc_data: dict) -> dict | None
|
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
def _count_active_tasks(trellis_dir: Path) -> int:
|
|
139
|
-
"""Count
|
|
139
|
+
"""Count planning and in_progress tasks using the native bounded reader."""
|
|
140
140
|
tasks_dir = trellis_dir / "tasks"
|
|
141
141
|
if not tasks_dir.is_dir():
|
|
142
142
|
return 0
|
|
143
143
|
count = 0
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
scripts_dir = trellis_dir / "scripts"
|
|
145
|
+
if str(scripts_dir) not in sys.path:
|
|
146
|
+
sys.path.insert(0, str(scripts_dir))
|
|
147
|
+
from common.tasks import iter_active_tasks # type: ignore[import-not-found]
|
|
148
|
+
try:
|
|
149
|
+
count = sum(1 for task in iter_active_tasks(tasks_dir) if task.status in {"planning", "in_progress"})
|
|
150
|
+
except (ValueError, OSError):
|
|
151
|
+
return 0
|
|
147
152
|
return count
|
|
148
153
|
|
|
149
154
|
|
|
@@ -232,8 +232,7 @@ def _get_task_status(trellis_dir: Path, hook_input: dict) -> str:
|
|
|
232
232
|
if not active.task_path:
|
|
233
233
|
return (
|
|
234
234
|
"Status: NO ACTIVE TASK\n"
|
|
235
|
-
"Next:
|
|
236
|
-
"before creating any Trellis task."
|
|
235
|
+
"Next: Route through trellis-request-intake using the existing authorization and taskless contract."
|
|
237
236
|
)
|
|
238
237
|
|
|
239
238
|
task_ref = active.task_path
|
|
@@ -245,12 +244,10 @@ def _get_task_status(trellis_dir: Path, hook_input: dict) -> str:
|
|
|
245
244
|
)
|
|
246
245
|
|
|
247
246
|
task_json_path = task_dir / "task.json"
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
except (json.JSONDecodeError, PermissionError):
|
|
253
|
-
pass # Optional task metadata; fall back to generic status.
|
|
247
|
+
from common.io import read_json_checked # type: ignore[import-not-found]
|
|
248
|
+
task_data, _reason = read_json_checked(task_json_path)
|
|
249
|
+
if task_data is None or task_data.get("status") not in ("planning", "in_progress", "completed", "cancelled"):
|
|
250
|
+
return f"Status: TASK_ERROR\nTask: {task_ref}\nNext: Repair the existing task record through its owner before continuing; do not create a replacement task."
|
|
254
251
|
|
|
255
252
|
task_title = task_data.get("title", task_ref)
|
|
256
253
|
task_status = task_data.get("status", "unknown")
|
|
@@ -380,13 +377,15 @@ def _build_compact_current_state(
|
|
|
380
377
|
active = _resolve_active_task(trellis_dir, hook_input)
|
|
381
378
|
if active.task_path:
|
|
382
379
|
task_dir = _resolve_task_dir(trellis_dir, active.task_path)
|
|
383
|
-
status = "
|
|
380
|
+
status = "task_error"
|
|
384
381
|
task_json = task_dir / "task.json"
|
|
385
382
|
if task_json.is_file():
|
|
386
383
|
try:
|
|
387
384
|
data = json.loads(task_json.read_text(encoding="utf-8"))
|
|
388
385
|
if isinstance(data, dict):
|
|
389
|
-
|
|
386
|
+
value = data.get("status")
|
|
387
|
+
if value in ("planning", "in_progress", "completed", "cancelled"):
|
|
388
|
+
status = value
|
|
390
389
|
except (json.JSONDecodeError, OSError):
|
|
391
390
|
pass # Optional task metadata; fall back to generic status.
|
|
392
391
|
lines.append(f"Current task: {_repo_relative(repo_root, task_dir)}; status={status}.")
|
|
@@ -496,6 +495,20 @@ def _build_workflow_toc(workflow_path: Path) -> str:
|
|
|
496
495
|
|
|
497
496
|
|
|
498
497
|
def main() -> None:
|
|
498
|
+
if os.environ.get("TRELLIS_DELEGATION_CONTEXT"):
|
|
499
|
+
try:
|
|
500
|
+
locator = Path(os.environ["TRELLIS_DELEGATION_CONTEXT"])
|
|
501
|
+
if locator.is_symlink() or locator.stat().st_size > 256 * 1024:
|
|
502
|
+
raise ValueError("invalid delegation context")
|
|
503
|
+
context = json.loads(locator.read_text(encoding="utf8"))
|
|
504
|
+
result = subprocess.run([sys.executable, str(Path(context["control_root"]) / ".trellis/scripts/get_context.py")], capture_output=True, text=True, timeout=15)
|
|
505
|
+
message = result.stdout.strip() if result.returncode == 0 else "Delegated node blocked: invalid/stale context; preserve resources and report to controller."
|
|
506
|
+
if len(message.encode()) > 256 * 1024:
|
|
507
|
+
raise ValueError("oversized delegation context")
|
|
508
|
+
except (OSError, ValueError, KeyError, subprocess.TimeoutExpired):
|
|
509
|
+
message = "Delegated node blocked: missing/invalid execution context; do not enter controller workflow."
|
|
510
|
+
print(json.dumps({"hookSpecificOutput": {"hookEventName": "SessionStart", "additionalContext": message}}))
|
|
511
|
+
return
|
|
499
512
|
if should_skip_injection():
|
|
500
513
|
sys.exit(0)
|
|
501
514
|
|
|
@@ -504,11 +517,15 @@ def main() -> None:
|
|
|
504
517
|
hook_input = json.loads(sys.stdin.read())
|
|
505
518
|
if not isinstance(hook_input, dict):
|
|
506
519
|
hook_input = {}
|
|
507
|
-
|
|
520
|
+
raw_cwd = hook_input.get("cwd")
|
|
521
|
+
project_dir = Path(_normalize_windows_shell_path(raw_cwd if isinstance(raw_cwd, str) and raw_cwd else ".")).resolve()
|
|
508
522
|
except (json.JSONDecodeError, KeyError):
|
|
509
523
|
hook_input = {}
|
|
510
524
|
project_dir = Path(".").resolve()
|
|
511
525
|
|
|
526
|
+
project_dir = next((candidate for candidate in (project_dir, *project_dir.parents) if (candidate / ".trellis").is_dir()), None)
|
|
527
|
+
if project_dir is None or not (project_dir / ".trellis" / "scripts" / "common" / "active_task.py").is_file():
|
|
528
|
+
return
|
|
512
529
|
configure_project_encoding(project_dir)
|
|
513
530
|
|
|
514
531
|
trellis_dir = project_dir / ".trellis"
|
|
@@ -36,6 +36,16 @@
|
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
38
|
"PreToolUse": [
|
|
39
|
+
{
|
|
40
|
+
"matcher": ".*",
|
|
41
|
+
"hooks": [
|
|
42
|
+
{
|
|
43
|
+
"type": "command",
|
|
44
|
+
"command": "{{PYTHON_CMD}} -X utf8 .codex/hooks/guard-teamwork-wait.py",
|
|
45
|
+
"timeout": 15
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
39
49
|
{
|
|
40
50
|
"matcher": "Edit|Write",
|
|
41
51
|
"hooks": [
|
|
@@ -5,6 +5,8 @@ description: 当前任务进入决策空间构造与归并阶段时,整理实
|
|
|
5
5
|
|
|
6
6
|
# 决策空间构造与归并阶段
|
|
7
7
|
|
|
8
|
+
有证据的架构摩擦、具体接口权衡或重复过程设计,可采用宿主已声明的相应方法;跨方法组合不清时按需使用可用总路由。候选足够即返回本阶段,不扩成无关审计,不以方法替代用户决定或阶段接受。
|
|
9
|
+
|
|
8
10
|
当 `current_phase_id` 为 `decision_space_construction_and_merging` 时使用。阅读本 Skill 同目录的 `workflow.md`,并基于已确认且仍有效的需求基线工作。
|
|
9
11
|
|
|
10
12
|
决策空间构造与归并阶段负责展示和归并决策空间,不代替用户锁定保留决定。简单问题使用清单或比较表;只有前置选择或条件会改变后续选项时才建立决策树。阶段结果由 Trellis CLI 接受;无实质候选差异时可按证据跳过本阶段。
|
|
@@ -4,8 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
需要构造时,梳理决策项及其权限、候选、重要排除项与理由;按需补齐证据、适用约束、标准、阈值、依赖、影响和优先级。证据足够时给出推荐;证据不足则保留未知或待决项,不伪造结论。仅当选择之间存在条件依赖时使用决策树,并标明分支条件、来源、未知路径及其下游影响。互斥、共享依赖或汇合关系可用依赖图;独立候选用比较表或清单即可。
|
|
6
6
|
|
|
7
|
+
候选尚未覆盖实质选择时,从不同机制、责任边界或运作方式拓宽,而非只列同一做法的参数变体;适用时纳入维持现状或不做。再以已确认约束、当前实现、外部先例及必要的有界探针筛选,区分不可行、代价较高与证据不足,保留排除理由及依赖后果。移交前还应完成下述重要默认与遗漏分支核对;不凑候选数量,不在没有新证据时追加轮次。目标变化回第一阶段,用户保留决定整理给第三阶段,不由辅助 Skill 提前锁定。
|
|
8
|
+
|
|
7
9
|
新颖机制、重大重构、跨组件边界变化或关键取舍缺少可信本地先例时,进行有界的 `prior-art review`,记录适用性与采纳或排除理由。只读 Teamwork 可按需补充证据;主代理核验报告后归并。将 `DecisionSpace` 或有据跳过记录交由 Trellis CLI 接受,待用户决定交由解决方案设计与收敛阶段处理。
|
|
8
10
|
|
|
11
|
+
移交前,从当前目标的实际使用、失败或交付场景挑战重要默认假设,检查候选之外是否仍有会改变行为、责任或验收的分支。可查事实由代理补证,真实用户取舍交第三阶段处理;尚未满足前置或暂不能精确表述的未知,说明影响哪个决定及后续处理,不能因当前无就绪问题就当作已解决。在现有产物简短保留关键发现、排除依据和未决项的移交方式;重要选择可比较且未知已有处置路径时停止,不穷举理论分支,也不把每个默认都变成用户问题。
|
|
12
|
+
|
|
9
13
|
```mermaid
|
|
10
14
|
flowchart TD
|
|
11
15
|
input["核对已确认且仍有效的需求基线"] --> material{"差异或条件分支会改变交付、验收、风险或下游选择?"}
|
|
@@ -24,8 +28,9 @@ flowchart TD
|
|
|
24
28
|
merge --> representation{"候选关系需要条件分支吗?"}
|
|
25
29
|
representation -->|"是"| tree["建立可追溯决策树并标明相关未知路径"]
|
|
26
30
|
representation -->|"否"| simple["使用清单、比较表或适用的依赖图"]
|
|
27
|
-
tree -->
|
|
28
|
-
simple -->
|
|
31
|
+
tree --> challenge["用当前任务场景挑战重要默认,检查遗漏分支与未知处置"]
|
|
32
|
+
simple --> challenge
|
|
33
|
+
challenge --> assess["核对证据、覆盖范围、关系与当前 revision"]
|
|
29
34
|
assess -->|"目标或范围变化"| goal_exploration_and_requirements["回到目标探索与需求核对阶段,更新基线"]
|
|
30
35
|
assess -->|"证据或候选仍有缺口"| items
|
|
31
36
|
assess -->|"可供方案收敛"| output["Trellis CLI 接受 DecisionSpace"]
|
|
@@ -38,3 +43,4 @@ flowchart TD
|
|
|
38
43
|
- 有实质决策空间时,候选、关键证据、关系、未知项和推荐均能支持下一阶段比较;不要求固定字段数量或同时使用多种图表。
|
|
39
44
|
- 无实质差异时,跳过记录须能说明当前基线、判断依据和重新进入条件。
|
|
40
45
|
- 保留用户决定不在本阶段锁定;外部参考不替代项目事实或用户选择。
|
|
46
|
+
- 已检查影响当前目标的重要默认和遗漏分支,关键未知有受影响决定及移交路径;没有就绪问题不单独构成退出依据。
|
|
@@ -5,6 +5,8 @@ description: 当前任务进入交付审查与现场收尾阶段时,核对当
|
|
|
5
5
|
|
|
6
6
|
# 交付审查与现场收尾阶段
|
|
7
7
|
|
|
8
|
+
按交付风险采用宿主已声明的质量与语言检查方法;只有实际执行摩擦或优化目标才复盘。清理、知识保存及正式交接分别核对真实意图、授权与 owner,不因收尾自动执行。方法产物返回本阶段,不替代交付接受或任务完成。
|
|
9
|
+
|
|
8
10
|
当 `current_phase_id` 为 `delivery_review_and_closeout` 时使用。阅读本 Skill 同目录的 `workflow.md`,只审查当前路线和 revision 下的交付,不在本阶段重新设计或实施。
|
|
9
11
|
|
|
10
12
|
本阶段核验交付与合同、接受条件、工作包、集成、验证、未结发现和资源事实。当前合同内缺口按最早受影响阶段回流或暂停;合同外遗留应记录责任方、触发条件、影响和后续引用。满足交付条件后由 Trellis CLI 接受;只有明确撤回才进入取消处置。会话交接包是独立附加操作,不是阶段或任务收尾的前置条件。
|
package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/SKILL.md
CHANGED
|
@@ -5,6 +5,8 @@ description: 当前任务处于目标探索与需求核对阶段时,核对目
|
|
|
5
5
|
|
|
6
6
|
# 目标探索与需求核对阶段
|
|
7
7
|
|
|
8
|
+
根据当前问题选择宿主可用方法:重要用户取舍、零散素材、学习目标或理解障碍分别采用适用方法,不要求用户点名。只加载相关入口,产物返回本阶段;可选方法缺席不阻断原生流程,也不替代需求确认。
|
|
9
|
+
|
|
8
10
|
当 Trellis 任务的 `current_phase_id` 为 `goal_exploration_and_requirements` 时使用。先阅读本 Skill 同目录的 `workflow.md`,再按当前项目事实选择必要的探索深度和证据来源。
|
|
9
11
|
|
|
10
12
|
阶段产物和用户确认通过 Trellis CLI 记录。离开本阶段前,必须由用户明确确认绑定当前 `artifact_revision` 的目标与需求基线;只要求修订或尚未确认时,继续停留在本阶段。确认不等于最终方案批准或实施授权。
|
package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/workflow.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
整理目标、范围、成功条件、关键约束和责任方。区分已知事实、假设、证据冲突和未知事项;缺少会改变目标或路线的用户事实时,通过 `pennix-decision-grill` 同步询问。记录会阻断推进的问题及恢复条件;不影响当前路线的事项可明确责任方和后续处理。
|
|
6
6
|
|
|
7
|
+
当请求只描述症状、先给出解法或目标含糊时,先对照实际使用情境、当前行为与期望结果,必要时回述问题,检验是否过早限定了解法。区分硬约束与可挑战的惯例、未经证实的假设;只追查会改变本轮目标、范围或成功条件的信息。明确本轮要改变什么、怎样观察成功、哪些不做及哪些未知仍有实际影响后即可收敛,不强制访谈轮数或将开放问题缩成 MVP。已知目标直接复用,没有价值或不宜继续也可形成适用的分析路线。
|
|
8
|
+
|
|
7
9
|
形成 `phase_output`,至少包含当前目标与需求基线、必要证据、不确定性、`phase_result` 和非约束性的 `route_advice`。`route_advice` 简要说明任务类型、复杂度画像和项目背景如何影响阶段选择,并记录复杂度判断的实际触发维度与理由;不机械计分或套用固定路由矩阵,也不要求固定字段或篇幅。路线发生变化时,使用 Trellis CLI 更新受影响的分类和阶段,并按影响范围重新核验。阶段可等待用户补充或因依赖阻塞;只有用户确认当前基线且阶段产物有效时,才以 `accepted` 离开本阶段。将阶段产物及引用提交 Trellis CLI 核验后,向用户展示简明基线并请求确认或修订。
|
|
8
10
|
|
|
9
11
|
```mermaid
|
|
@@ -66,7 +66,7 @@ Do not assume the user has the Trellis source repository. Do not default to modi
|
|
|
66
66
|
- `.trellis/workflow.md` is the local workflow source of truth. By default, `trellis init` writes the bundled `native` workflow; a custom workflow is available only when its source is explicitly supplied, and can be re-selected via `trellis workflow --template <id> --workflow-source <source>`. Missing `.trellis/agents/<name>.md` files referenced by the active template trigger a non-blocking stderr warning pointing at `trellis update`.
|
|
67
67
|
- `.trellis/config.yaml` is the project-level Trellis configuration entry point. It hosts task lifecycle hooks (`hooks.after_create` / `after_start` / `after_finish`), journal shape (`session_commit_message` / `max_journal_lines` / `session_auto_commit`), Teamwork teammate guard (`teamwork.teammate_guard.idle_timeout` / `max_live_teammates`), Codex dispatch mode (`codex.dispatch_mode: inline | sub-agent`), and the spec registry block (`registry.spec.source` + `registry.spec.template`).
|
|
68
68
|
- `.trellis/spec/` stores the user's project-specific coding conventions and design constraints. When `registry.spec` is set, files are refreshed by `trellis update`; local edits surface as `modified by user` conflicts in `.trellis/.template-hashes.json`.
|
|
69
|
-
- `.trellis/tasks/` stores task records, planning artifacts, research, and JSONL context. Tasks
|
|
69
|
+
- `.trellis/tasks/` stores task records, planning artifacts, research, and JSONL context. Tasks follow their status directory: planning, in_progress, completed/YYYY-MM, or cancelled. Native relocation preserves identity and history and updates machine references transactionally. Tasks form parent/child trees through `task.py create --parent`, `add-subtask`, `remove-subtask`, and `list-context`.
|
|
70
70
|
- `.trellis/workspace/` stores **deliberately written** developer journals. Raw cross-session dialogue is **not** stored here — it lives on disk under `~/.claude/projects/`, `~/.codex/sessions/`, and `~/.pi/agent/sessions/` and is recovered via `trellis mem search|extract|context`. The bundled `trellis-session-insight` skill teaches when to reach for `mem`.
|
|
71
71
|
- `.trellis/agents/teammate.md` is the bundled, platform-agnostic instruction card loaded for a teammate by `trellis teamwork spawn --agent teammate`. Editable; `trellis update` backfills it if missing. Editing the per-platform `trellis-implement.md` / `trellis-check.md` does **not** change Teamwork teammate behavior.
|
|
72
72
|
- `~/.trellis/teamwork/<project>/<session>/events.jsonl` is the Teamwork Session event log. User-owned, file-locked sequence numbering, durable `idempotencyKey` support; never under `.trellis/`.
|
|
@@ -9,7 +9,7 @@ Often the user does not need to change Trellis mechanics; they need local AI to
|
|
|
9
9
|
| Rules code must follow | `.trellis/spec/<layer>/` |
|
|
10
10
|
| Cross-layer thinking methods | `.trellis/spec/guides/` |
|
|
11
11
|
| AI capability for a project-specific flow | Platform-local skill |
|
|
12
|
-
| One-off task material | `.trellis/tasks/<task>/` |
|
|
12
|
+
| One-off task material | `.trellis/tasks/<task-dir>/` |
|
|
13
13
|
| Session summary | `.trellis/workspace/<developer>/journal-N.md` |
|
|
14
14
|
|
|
15
15
|
## Create A Project-Local Skill
|
|
@@ -17,11 +17,11 @@ Context loading determines when AI reads workflow, task, spec, research, workspa
|
|
|
17
17
|
| Source | Purpose |
|
|
18
18
|
| --- | --- |
|
|
19
19
|
| `.trellis/workflow.md` | Workflow and next-action hints. |
|
|
20
|
-
| `.trellis/tasks/<task>/prd.md` | Current task requirements. |
|
|
21
|
-
| `.trellis/tasks/<task>/design.md` | Complex task technical design. |
|
|
22
|
-
| `.trellis/tasks/<task>/implement.md` | Complex task execution plan. |
|
|
23
|
-
| `.trellis/tasks/<task>/implement.jsonl` | Spec/research to read before implementation. |
|
|
24
|
-
| `.trellis/tasks/<task>/check.jsonl` | Spec/research to read during checking. |
|
|
20
|
+
| `.trellis/tasks/<task-dir>/prd.md` | Current task requirements. |
|
|
21
|
+
| `.trellis/tasks/<task-dir>/design.md` | Complex task technical design. |
|
|
22
|
+
| `.trellis/tasks/<task-dir>/implement.md` | Complex task execution plan. |
|
|
23
|
+
| `.trellis/tasks/<task-dir>/implement.jsonl` | Spec/research to read before implementation. |
|
|
24
|
+
| `.trellis/tasks/<task-dir>/check.jsonl` | Spec/research to read during checking. |
|
|
25
25
|
| `.trellis/spec/` | Project specs. |
|
|
26
26
|
| `.trellis/workspace/` | Session records. |
|
|
27
27
|
| git status | Current working tree changes. |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Local Task Lifecycle
|
|
2
2
|
|
|
3
|
-
Read the installed project's workflow and task record before changing task creation or lifecycle behavior.
|
|
3
|
+
Read the installed project's workflow and task record before changing task creation or lifecycle behavior. 任务目录由 status 投影到 planning、in_progress、completed/YYYY-MM、cancelled;完成或取消必须通过原生事务同步移动、引用与会话清理,不能只改字段或手工移动目录。
|
|
4
4
|
|
|
5
5
|
## Read these files first
|
|
6
6
|
|
|
@@ -9,7 +9,8 @@ Read the installed project's workflow and task record before changing task creat
|
|
|
9
9
|
3. .trellis/scripts/task.py
|
|
10
10
|
4. .trellis/scripts/common/task_store.py
|
|
11
11
|
5. .trellis/scripts/common/task_workflow.py
|
|
12
|
-
6.
|
|
12
|
+
6. .trellis/scripts/common/task_layout.py and task_move.py
|
|
13
|
+
7. The current task's task.json
|
|
13
14
|
|
|
14
15
|
## Common edit points
|
|
15
16
|
|
package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/overview.md
CHANGED
|
@@ -29,7 +29,7 @@ This directory is for local AI working in a user project where Trellis was insta
|
|
|
29
29
|
| --- | --- |
|
|
30
30
|
| Workflow | `.trellis/workflow.md` |
|
|
31
31
|
| Project configuration | `.trellis/config.yaml` |
|
|
32
|
-
| Task material | `.trellis/tasks/<task>/` |
|
|
32
|
+
| Task material | `.trellis/tasks/<task-dir>/` |
|
|
33
33
|
| Project specs | `.trellis/spec/` |
|
|
34
34
|
| Runtime scripts | `.trellis/scripts/` |
|
|
35
35
|
| Platform integration | `.claude/`, `.codex/`, `.cursor/`, `.opencode/`, `.zcode/`, and similar directories |
|
|
@@ -9,7 +9,7 @@ Trellis context injection aims to make AI read the right files at the right time
|
|
|
9
9
|
| session context | `.trellis/scripts/get_context.py` | Current developer, git status, active task, active tasks, journal, packages. |
|
|
10
10
|
| workflow context | `.trellis/workflow.md` | Current Trellis flow and next action. |
|
|
11
11
|
| spec context | `.trellis/spec/` + task JSONL | Specs that must be followed during implementation/checking. |
|
|
12
|
-
| task context | `.trellis/tasks/<task>/prd.md`, `design.md`, `implement.md`, `research/` | Current task requirements, design, execution plan, and research. |
|
|
12
|
+
| task context | `.trellis/tasks/<task-dir>/prd.md`, `design.md`, `implement.md`, `research/` | Current task requirements, design, execution plan, and research. |
|
|
13
13
|
| platform context | Platform hooks/settings/agents | Lets different AI tools read the files above through their own mechanisms. |
|
|
14
14
|
|
|
15
15
|
## session-start
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Teamwork Runtime
|
|
2
2
|
|
|
3
|
+
The mechanism is Trellis Teamwork (Trellis 团队协作); an executor is a Trellis
|
|
4
|
+
teammate, plural Trellis teammates (Trellis 团队成员). Paseo-based-parallelism
|
|
5
|
+
(Paseo 并行协作) and its Paseo delegated-agent (Paseo 委派 Agent) are separate.
|
|
6
|
+
Sessions, worktrees, nodes, attempts and work packages keep their own meanings.
|
|
7
|
+
Native commands, paths and protocol fields retain their exact identifiers.
|
|
8
|
+
|
|
3
9
|
`trellis teamwork` provides durable coordination sessions and teammate processes. Its session lifecycle is independent of the Trellis task lifecycle and phase route. A session may be associated with a task, but it never owns task status, phase state, or phase acceptance.
|
|
4
10
|
|
|
5
11
|
## Local surfaces
|
|
@@ -8,7 +14,9 @@
|
|
|
8
14
|
| --- | --- |
|
|
9
15
|
| `~/.trellis/teamwork/<project>/<session>/events.jsonl` | Durable Teamwork Session event log. |
|
|
10
16
|
| `.trellis/agents/teammate.md` | Generic behavior card loaded for a teammate. |
|
|
11
|
-
| `.trellis/agents/teammate-profiles.json` |
|
|
17
|
+
| `.trellis/agents/teammate-profiles.json` | Schema-2 professional profiles and named execution candidates. |
|
|
18
|
+
| `.trellis/agents/profiles/*.md` | Six professional role cards combined with the common card. |
|
|
19
|
+
| `.trellis/teamwork.json` | Coordination mode and member-count defaults. |
|
|
12
20
|
| `.trellis/config.yaml` (`teamwork.*`) | Teammate concurrency and process guard settings. |
|
|
13
21
|
| `packages/core/src/teamwork/` | Reusable Teamwork Session event and storage APIs. |
|
|
14
22
|
| `packages/cli/src/commands/teamwork/` | CLI commands, provider adapters, and process supervision. |
|
|
@@ -25,7 +33,17 @@ The storage root defaults to `~/.trellis/teamwork`; `TRELLIS_TEAMWORK_ROOT` over
|
|
|
25
33
|
|
|
26
34
|
## Configuration
|
|
27
35
|
|
|
28
|
-
The
|
|
36
|
+
The schema-2 `.trellis/teamwork.json` owns mode member defaults, mode concurrency limits, and the shared live-process budget and reservation. Defaults are members 1/3/3, concurrency 8/3/3, live budget 8, and reservation 0. YAML retains `teamwork.teammate_guard.idle_timeout`; legacy YAML capacity applies only before schema-2 migration and is otherwise ignored with diagnostics. Runtime `maxConcurrency` is a resolved value, not an independent configuration. Read `coordination.ts` and `teammate-config.ts` before changing this policy.
|
|
37
|
+
|
|
38
|
+
`teamwork config` resolves project defaults. `teamwork plan` freezes profile,
|
|
39
|
+
configuration, instructions and evidence into schema-2 plan/brief artifacts;
|
|
40
|
+
`teamwork batch --task` connects the foreground coordinator to Codex app-server,
|
|
41
|
+
Claude CLI, Copilot ACP or DSH ACP. Claims and content reports are schema 2.
|
|
42
|
+
An unresolved batch keeps a durable project capacity reservation, including
|
|
43
|
+
after coordinator exit. The guard and session cleanup preserve that evidence.
|
|
44
|
+
Role read-only and history-use requirements are behavioral contracts; runtime
|
|
45
|
+
capabilities do not claim filesystem or memory isolation. Teamwork is independent
|
|
46
|
+
of Paseo workspaces, Git worktrees and source-writing delegated agents.
|
|
29
47
|
|
|
30
48
|
## Related entry points
|
|
31
49
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Local Task System
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
任务按状态存放于 `.trellis/tasks/planning/<task>`、`in_progress/<task>`、`completed/YYYY-MM/<task>`、`cancelled/<task>`。`task.json.status` 是唯一状态事实;目录只投影状态,不增加第五种状态。创建进入 planning,获准实施的 start 进入 in_progress,complete 进入当月 completed,cancel 进入 cancelled。任务身份和父子关系不因移动改变。
|
|
4
4
|
|
|
5
5
|
## Task records
|
|
6
6
|
|
|
@@ -27,7 +27,13 @@ The active task pointer is scoped to an AI session under .trellis/.runtime/sessi
|
|
|
27
27
|
|
|
28
28
|
Use phase operations through task.py phase for artifact revisions, acceptance, evidence-backed skips, waits, blocks, resume, return, route, and authorization. Consult task.py help for current arguments. Completion and cancellation occur only after Delivery Review and On-Site Closeout Phase.
|
|
29
29
|
|
|
30
|
-
The read-only trellis task progress command summarizes planning, in_progress, and
|
|
30
|
+
The read-only trellis task progress command summarizes planning, in_progress, completed, and cancelled lifecycle records, with a partial flag for unreadable or inconsistent input. It does not change task state.
|
|
31
|
+
|
|
32
|
+
## 布局迁移与恢复
|
|
33
|
+
|
|
34
|
+
旧平铺目录和 `archive/YYYY-MM` 只能作为显式迁移输入。先运行 `task.py migrate-layout` 预览,再使用 `--apply`;已完成 archive 任务保留原月份,非终态任务按真实状态归位,不伪造完成。`--recover` 恢复未完成事务。重复名称、无效 JSON、符号链接、未知执行资源或交接所有权冲突会阻止迁移;不跳过记录。
|
|
35
|
+
|
|
36
|
+
移动同步 JSON/JSONL 机器引用、会话指针及 runtime 哈希索引;终态操作在同一事务中清除本任务 runtime。历史正文和正式交接包保留。内容绑定的接受证据或 continuity digest 失效后,通过原生重新接受和 capture 核对,不静默重授历史授权。handoff ownership 在 `consume` 后完成转移;后续普通任务修改不更新交接代次,需要查看现场时使用只读 `transfer status --include-current`。文档中的 `<task-dir>` 指包含状态及必要月份的真实任务相对路径。
|
|
31
37
|
|
|
32
38
|
## Context manifests
|
|
33
39
|
|
|
@@ -55,9 +55,10 @@ trellis mem projects
|
|
|
55
55
|
|
|
56
56
|
## Caveats
|
|
57
57
|
|
|
58
|
-
- **OpenCode
|
|
58
|
+
- **OpenCode reads its local SQLite database.** `--include-children` merges supported child-session dialogue for search/context. Historical `--phase` slicing is unavailable for OpenCode: it warns and returns all dialogue. Report unreadable stores or unsupported slices from the actual command result.
|
|
59
59
|
- **`--platform devin` is Cognition Devin CLI** (`~/.local/share/devin/cli/sessions.db`). It is not `trellis init --devin` (Devin Desktop / Cascade) and not Factory Droid.
|
|
60
60
|
- **`--phase` slicing depends on `task.py create` / `task.py start` invocations appearing in the recorded bash calls of the session.** Sessions where the user ran `task.py` from a different terminal — outside the recorded AI loop — will not have phase boundaries. `--phase all` is the safe fallback.
|
|
61
|
+
- **Historical slice names are not native workflow state.** `brainstorm` and `implement` remain valid retrieval flags; they do not identify any of the current five phases, prove acceptance or implementation authorization, or grant task ownership. There is no `--task` filter. Unknown, inapplicable, duplicate, or incomplete flags fail with exit code 2.
|
|
61
62
|
- **`mem` indexes platform JSONL files directly.** If the user has cleared their Claude / Codex / Pi session storage, `mem` cannot recover what is no longer on disk.
|
|
62
63
|
- **`mem` is read-only.** No remote sync, no edits to platform JSONL. Any write you do based on `mem` findings is your own follow-up call into the editing tools available to you.
|
|
63
64
|
|
|
@@ -41,7 +41,7 @@ The user resumed work after a gap and the context is implicit.
|
|
|
41
41
|
- "我们上次做到哪了"
|
|
42
42
|
- "接着昨天那个任务"
|
|
43
43
|
|
|
44
|
-
Reach: `trellis mem list --
|
|
44
|
+
Reach: first read the current task's native phase, ownership, and recorded progress. Use `trellis mem list --cwd <project-root>` and `search "<task-id or distinctive topic>" --cwd <project-root>` to find candidate sessions, then inspect them with `context` or `extract`. The CLI has no `--task` filter; project membership and recency do not prove that a session owns the task. History supplements current task state and does not transfer ownership.
|
|
45
45
|
|
|
46
46
|
## Familiar-bug debugging
|
|
47
47
|
|
|
@@ -80,7 +80,7 @@ The user explicitly wants to look back at this task — not as a forced step, on
|
|
|
80
80
|
- "记一下这次踩的坑"
|
|
81
81
|
- "复盘下这个任务"
|
|
82
82
|
|
|
83
|
-
Reach:
|
|
83
|
+
Reach: use the task's recorded host session identifier as a candidate, or search its distinctive topic within `--cwd <project-root>`, then verify the session content. `extract <id> --phase brainstorm` and `--phase implement` are historical dialogue slices based on recorded create/start calls, not the current five workflow phases; use `--phase all` when those boundaries do not apply. Present concrete citations where possible. Write findings only to an authorized natural task or knowledge location.
|
|
84
84
|
|
|
85
85
|
## Anti-patterns: do NOT reach for `mem` here
|
|
86
86
|
|
package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/SKILL.md
CHANGED
|
@@ -5,6 +5,8 @@ description: 当前任务处于解决方案设计与收敛阶段时,处理用
|
|
|
5
5
|
|
|
6
6
|
# 解决方案设计与收敛阶段
|
|
7
7
|
|
|
8
|
+
实际接口权衡、可由原型验证的具体未知、已有材料成文及批准前输出复核,可采用宿主已声明的相关方法。方法明确就直接使用,组合不清时按需使用可用总路由;只完成当前所需产物后返回,方法不替代整体方案接受和实施授权。
|
|
9
|
+
|
|
8
10
|
当 `current_phase_id` 为 `solution_design_and_convergence` 时使用。阅读本 Skill 同目录的 `workflow.md`,核对当前有效的需求基线和决策空间构造与归并阶段结果或跳过记录。
|
|
9
11
|
|
|
10
12
|
本阶段锁定当前路线所依据的决定和方案,不代表实施已获授权。需用户决定时,使用 `pennix-decision-grill` 同步询问并留在解决方案设计与收敛阶段;实施路线须形成 `implementation_contract`,再单独取得实施批准后才能进入任务实施与测试验证阶段。触发 prior-art review 的方案须在阶段结果接受前完成该审查。
|
package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/workflow.md
CHANGED
|
@@ -4,24 +4,41 @@
|
|
|
4
4
|
|
|
5
5
|
比较适用方案,说明选择依据、重要后果、行为边界、责任、必要依赖、验证方式、停止与恢复条件及实质风险。对新颖核心机制、重大重构、跨组件边界变化或关键不确定性缺少可信本地先例的方案,在结果接受前完成有界 `prior-art review`,记录适用性、采纳或排除理由,或说明没有适用先例。外部材料改变候选、标准或依赖时回到决策空间构造与归并阶段。
|
|
6
6
|
|
|
7
|
+
用户答复、新证据、方案修订或复核发现后,重新筛选受影响的重要选择:是否出现新分支、前置是否满足、原决定是否仍有效。先保存真实答案及其影响,只重开受影响项;可查事实继续补证,用户取舍按依赖提问,不把问完原有列表或当前无就绪问题等同于方案完整。关键未知须有补证、用户决定、明确接受的剩余风险、延期或不继续等处置,不能静默排除。
|
|
8
|
+
|
|
7
9
|
判断当前结果:分析交付形成 `analysis_conclusion`;不继续形成 `no_go`;延期形成带责任方、触发条件和恢复位置的 `deferred`,留在解决方案设计与收敛阶段;实施路线形成 `implementation_contract`,明确目标、范围和接受条件,并按路线需要补足实施与核验信息。只有交付物具有独立实施或集成边界时才拆分工作包,并说明推进和协作所需的依赖、顺序、责任或集成信息;单一交付不人为拆分工作包。解决方案设计与收敛阶段的结果接受与实施授权分开记录;只有合同及明确批准均有效时,Trellis CLI 才允许进入任务实施与测试验证阶段。
|
|
8
10
|
|
|
11
|
+
合同结果已接受、实施尚未授权时,发现需要返修,应通过 `task.py phase return` 回到本阶段或更早受影响阶段,记录理由和证据。受影响的接受与授权随之失效;修订后重新接受当前产物,再核验实施授权。
|
|
12
|
+
|
|
13
|
+
接受 `implementation_contract` 前,在合同中建立 `## 验收覆盖` 表,表头为 `接受条件 | 工作包 | Owner | 验证入口 | 交付证据 | 停止条件`。逐条映射已接受条件,核对实际源码 owner、可运行验证、证据落点和停止条件;单一工作包可以覆盖多条条件。CLI 仅检查表结构及非空内容,不能代替语义审查。目标、合同、决策与执行记录分别使用明确的文件引用,执行细节追加到 execution 或 research,避免修改已接受的上游合同。
|
|
14
|
+
|
|
15
|
+
逐项决定回答后,将已决目标、候选依据、接口与数据流、owner、依赖顺序、实施和验证,以及适用的迁移、发布、资源和失败恢复安排组织为一个完整方案。核对需求覆盖、跨产物一致性、可实施性和可验收性;有净收益时使用有界反例或压力测试,先修复可查缺口。向用户展示可识别的整体方案和实质剩余取舍后,再记录当前 revision 的接受及实施授权。逐项答复不自动等于整体批准;用户已充分明确批准整体方案时不重复索取。目标或候选问题回最早受影响阶段,局部方案问题在本阶段解决,不增设外部封口状态。
|
|
16
|
+
|
|
17
|
+
研究、原型和协作证据写回现有阶段产物、research 或 execution 自然落点,注明来源与版本、事实和假设、适用性、限制及决定影响。证据足够即停止扩搜;工具、报告或模板不能替代用户决定和 Trellis 原生接受事实。
|
|
18
|
+
|
|
19
|
+
请求整体批准前,落实已有独立复核,在现有产物简短说明关键反例、发现及处置。以当前任务的具体行为或交付物检验端到端可执行性与验收依据;涉及发布安装时,核对本地验证、发布产物和实际运行身份的关系,不能只凭版本字符串认定同一产物。发现未决重要选择就回到筛选,不为没有新发现的情况追加轮次;充分的整体接受和实施授权不重复索取。
|
|
20
|
+
|
|
9
21
|
```mermaid
|
|
10
22
|
flowchart TD
|
|
11
|
-
input["核对需求基线与已接受的 DecisionSpace"] -->
|
|
23
|
+
input["核对需求基线与已接受的 DecisionSpace"] --> rescreen["复用已定事项,重新筛选重要分支、前置与未知处置"]
|
|
24
|
+
rescreen --> decisions{"存在尚待用户决定的实质取舍?"}
|
|
12
25
|
decisions -->|"是"| grill["pennix-decision-grill 同步询问;留在解决方案设计与收敛阶段"]
|
|
13
26
|
grill --> impact{"答复影响哪个范围?"}
|
|
14
27
|
impact -->|"目标或范围"| goal_exploration_and_requirements["回到目标探索与需求核对阶段"]
|
|
15
28
|
impact -->|"候选、标准或依赖"| decision_space_construction_and_merging["回到决策空间构造与归并阶段"]
|
|
16
|
-
impact -->|"
|
|
17
|
-
decisions -->|"
|
|
29
|
+
impact -->|"当前候选中的选择;保存答复后重算"| rescreen
|
|
30
|
+
decisions -->|"否;必要证据和未知已有处置"| compare["比较方案和重要后果"]
|
|
31
|
+
decisions -->|"前置或证据尚缺"| repair["补证或修订受影响方案"]
|
|
32
|
+
repair --> rescreen
|
|
18
33
|
compare --> prior{"触发 prior-art review?"}
|
|
19
34
|
prior -->|"是"| review["核验相关开源实现或公开提案并记录适用性"]
|
|
20
35
|
review --> changed{"外部证据改变候选、标准或依赖?"}
|
|
21
36
|
changed -->|"是"| decision_space_construction_and_merging
|
|
22
|
-
changed -->|"否"|
|
|
37
|
+
changed -->|"否"| newDecisions{"新证据出现未决重要分支?"}
|
|
38
|
+
newDecisions -->|"是"| rescreen
|
|
39
|
+
newDecisions -->|"否"| assess["独立复核完整性、风险、验证、恢复与关键发现处置"]
|
|
23
40
|
prior -->|"否"| assess
|
|
24
|
-
assess -->|"
|
|
41
|
+
assess -->|"有实质缺口;补证或修订后重算"| repair
|
|
25
42
|
assess -->|"analysis_conclusion 或 no_go"| reviewResult["Trellis CLI 接受解决方案设计与收敛阶段结果"]
|
|
26
43
|
assess -->|"deferred"| defer["记录恢复条件并留在解决方案设计与收敛阶段"]
|
|
27
44
|
assess -->|"implementation_contract"| contract["冻结必要实施合同"]
|