@pennixrv/trellis 0.7.2-beta.3 → 0.7.2-beta.31
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 +14 -0
- package/dist/cli/index.js +4 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/ablate.d.ts.map +1 -1
- package/dist/commands/ablate.js +13 -0
- package/dist/commands/ablate.js.map +1 -1
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +138 -120
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/teamwork/adapters/acp.d.ts.map +1 -1
- package/dist/commands/teamwork/adapters/acp.js +3 -0
- package/dist/commands/teamwork/adapters/acp.js.map +1 -1
- package/dist/commands/teamwork/adapters/index.d.ts +1 -1
- package/dist/commands/teamwork/adapters/index.d.ts.map +1 -1
- package/dist/commands/teamwork/artifact.d.ts +2 -0
- package/dist/commands/teamwork/artifact.d.ts.map +1 -1
- package/dist/commands/teamwork/artifact.js +4 -2
- package/dist/commands/teamwork/artifact.js.map +1 -1
- package/dist/commands/teamwork/batch-reservation.d.ts.map +1 -1
- package/dist/commands/teamwork/batch-reservation.js +16 -8
- package/dist/commands/teamwork/batch-reservation.js.map +1 -1
- package/dist/commands/teamwork/batch.d.ts +15 -1
- package/dist/commands/teamwork/batch.d.ts.map +1 -1
- package/dist/commands/teamwork/batch.js +279 -24
- package/dist/commands/teamwork/batch.js.map +1 -1
- package/dist/commands/teamwork/coordinator.d.ts +3 -0
- package/dist/commands/teamwork/coordinator.d.ts.map +1 -1
- package/dist/commands/teamwork/coordinator.js +22 -3
- 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 +4 -0
- package/dist/commands/teamwork/create.js.map +1 -1
- package/dist/commands/teamwork/evidence-references.d.ts +19 -0
- package/dist/commands/teamwork/evidence-references.d.ts.map +1 -0
- package/dist/commands/teamwork/evidence-references.js +249 -0
- package/dist/commands/teamwork/evidence-references.js.map +1 -0
- package/dist/commands/teamwork/foreground-wait.d.ts +4 -1
- package/dist/commands/teamwork/foreground-wait.d.ts.map +1 -1
- package/dist/commands/teamwork/foreground-wait.js +15 -1
- package/dist/commands/teamwork/foreground-wait.js.map +1 -1
- package/dist/commands/teamwork/index.d.ts.map +1 -1
- package/dist/commands/teamwork/index.js +47 -5
- package/dist/commands/teamwork/index.js.map +1 -1
- package/dist/commands/teamwork/list.d.ts +1 -0
- package/dist/commands/teamwork/list.d.ts.map +1 -1
- package/dist/commands/teamwork/list.js +4 -1
- package/dist/commands/teamwork/list.js.map +1 -1
- package/dist/commands/teamwork/prompt.js +1 -1
- package/dist/commands/teamwork/prompt.js.map +1 -1
- package/dist/commands/teamwork/rm.d.ts +27 -4
- package/dist/commands/teamwork/rm.d.ts.map +1 -1
- package/dist/commands/teamwork/rm.js +155 -51
- package/dist/commands/teamwork/rm.js.map +1 -1
- package/dist/commands/teamwork/run.d.ts.map +1 -1
- package/dist/commands/teamwork/run.js +10 -1
- package/dist/commands/teamwork/run.js.map +1 -1
- package/dist/commands/teamwork/runtime.d.ts +1 -1
- package/dist/commands/teamwork/runtime.d.ts.map +1 -1
- package/dist/commands/teamwork/runtime.js +14 -4
- package/dist/commands/teamwork/runtime.js.map +1 -1
- package/dist/commands/teamwork/spawn.d.ts.map +1 -1
- package/dist/commands/teamwork/spawn.js +4 -1
- package/dist/commands/teamwork/spawn.js.map +1 -1
- package/dist/commands/teamwork/supervisor/stdout.d.ts.map +1 -1
- package/dist/commands/teamwork/supervisor/stdout.js +7 -0
- package/dist/commands/teamwork/supervisor/stdout.js.map +1 -1
- package/dist/commands/teamwork/supervisor.d.ts +1 -1
- package/dist/commands/teamwork/supervisor.d.ts.map +1 -1
- package/dist/commands/teamwork/teammate-adapters.d.ts +3 -0
- package/dist/commands/teamwork/teammate-adapters.d.ts.map +1 -1
- package/dist/commands/teamwork/teammate-adapters.js +14 -5
- package/dist/commands/teamwork/teammate-adapters.js.map +1 -1
- package/dist/commands/teamwork/teammate-launch.d.ts +3 -1
- package/dist/commands/teamwork/teammate-launch.d.ts.map +1 -1
- package/dist/commands/teamwork/teammate-launch.js +7 -5
- package/dist/commands/teamwork/teammate-launch.js.map +1 -1
- package/dist/commands/teamwork/workers.d.ts +8 -0
- package/dist/commands/teamwork/workers.d.ts.map +1 -0
- package/dist/commands/teamwork/workers.js +67 -0
- package/dist/commands/teamwork/workers.js.map +1 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +188 -59
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +5 -7
- package/dist/commands/workflow.js.map +1 -1
- package/dist/configurators/codebuddy.d.ts +1 -8
- package/dist/configurators/codebuddy.d.ts.map +1 -1
- package/dist/configurators/codebuddy.js +2 -12
- package/dist/configurators/codebuddy.js.map +1 -1
- package/dist/configurators/codex.d.ts +0 -36
- package/dist/configurators/codex.d.ts.map +1 -1
- package/dist/configurators/codex.js +13 -106
- package/dist/configurators/codex.js.map +1 -1
- package/dist/configurators/copilot.d.ts +1 -12
- package/dist/configurators/copilot.d.ts.map +1 -1
- package/dist/configurators/copilot.js +2 -20
- package/dist/configurators/copilot.js.map +1 -1
- package/dist/configurators/cursor.d.ts +1 -8
- package/dist/configurators/cursor.d.ts.map +1 -1
- package/dist/configurators/cursor.js +2 -12
- package/dist/configurators/cursor.js.map +1 -1
- package/dist/configurators/droid.d.ts +1 -8
- package/dist/configurators/droid.d.ts.map +1 -1
- package/dist/configurators/droid.js +2 -12
- package/dist/configurators/droid.js.map +1 -1
- package/dist/configurators/dsh.d.ts +1 -21
- package/dist/configurators/dsh.d.ts.map +1 -1
- package/dist/configurators/dsh.js +4 -37
- package/dist/configurators/dsh.js.map +1 -1
- package/dist/configurators/gemini.d.ts +1 -16
- package/dist/configurators/gemini.d.ts.map +1 -1
- package/dist/configurators/gemini.js +3 -21
- package/dist/configurators/gemini.js.map +1 -1
- package/dist/configurators/grok.d.ts +1 -12
- package/dist/configurators/grok.d.ts.map +1 -1
- package/dist/configurators/grok.js +2 -18
- package/dist/configurators/grok.js.map +1 -1
- package/dist/configurators/kimi.d.ts +1 -21
- package/dist/configurators/kimi.d.ts.map +1 -1
- package/dist/configurators/kimi.js +2 -38
- package/dist/configurators/kimi.js.map +1 -1
- package/dist/configurators/kiro.d.ts +1 -9
- package/dist/configurators/kiro.d.ts.map +1 -1
- package/dist/configurators/kiro.js +1 -9
- package/dist/configurators/kiro.js.map +1 -1
- package/dist/configurators/omp.d.ts.map +1 -1
- package/dist/configurators/omp.js +1 -5
- package/dist/configurators/omp.js.map +1 -1
- package/dist/configurators/pi.d.ts.map +1 -1
- package/dist/configurators/pi.js +2 -5
- package/dist/configurators/pi.js.map +1 -1
- package/dist/configurators/qoder.d.ts +1 -10
- package/dist/configurators/qoder.d.ts.map +1 -1
- package/dist/configurators/qoder.js +3 -15
- package/dist/configurators/qoder.js.map +1 -1
- package/dist/configurators/reasonix.d.ts +1 -12
- package/dist/configurators/reasonix.d.ts.map +1 -1
- package/dist/configurators/reasonix.js +3 -22
- package/dist/configurators/reasonix.js.map +1 -1
- package/dist/configurators/shared.d.ts +1 -24
- package/dist/configurators/shared.d.ts.map +1 -1
- package/dist/configurators/shared.js +5 -184
- package/dist/configurators/shared.js.map +1 -1
- package/dist/configurators/snow.d.ts +1 -20
- package/dist/configurators/snow.d.ts.map +1 -1
- package/dist/configurators/snow.js +2 -25
- package/dist/configurators/snow.js.map +1 -1
- package/dist/configurators/trae.d.ts +1 -14
- package/dist/configurators/trae.d.ts.map +1 -1
- package/dist/configurators/trae.js +3 -19
- package/dist/configurators/trae.js.map +1 -1
- package/dist/configurators/workflow.d.ts +5 -0
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +85 -57
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/configurators/zcode.d.ts +1 -13
- package/dist/configurators/zcode.d.ts.map +1 -1
- package/dist/configurators/zcode.js +2 -18
- package/dist/configurators/zcode.js.map +1 -1
- package/dist/migrations/manifests/0.5.0-beta.5.json +1 -212
- package/dist/migrations/manifests/0.7.2-beta.10.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.11.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.12.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.13.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.14.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.15.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.16.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.17.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.18.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.19.json +11 -0
- package/dist/migrations/manifests/0.7.2-beta.20.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.21.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.22.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.23.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.24.json +8 -0
- package/dist/migrations/manifests/0.7.2-beta.25.json +8 -0
- package/dist/migrations/manifests/0.7.2-beta.26.json +8 -0
- package/dist/migrations/manifests/0.7.2-beta.27.json +8 -0
- package/dist/migrations/manifests/0.7.2-beta.28.json +8 -0
- package/dist/migrations/manifests/0.7.2-beta.29.json +8 -0
- package/dist/migrations/manifests/0.7.2-beta.30.json +10 -0
- package/dist/migrations/manifests/0.7.2-beta.31.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/migrations/retired-native-paths.d.ts +109 -0
- package/dist/migrations/retired-native-paths.d.ts.map +1 -0
- package/dist/migrations/retired-native-paths.js +263 -0
- package/dist/migrations/retired-native-paths.js.map +1 -0
- package/dist/templates/claude/index.d.ts +1 -16
- package/dist/templates/claude/index.d.ts.map +1 -1
- package/dist/templates/claude/index.js +5 -32
- package/dist/templates/claude/index.js.map +1 -1
- package/dist/templates/claude/settings.json +0 -22
- package/dist/templates/codebuddy/index.d.ts +2 -3
- package/dist/templates/codebuddy/index.d.ts.map +1 -1
- package/dist/templates/codebuddy/index.js +2 -3
- package/dist/templates/codebuddy/index.js.map +1 -1
- package/dist/templates/codebuddy/settings.json +0 -10
- package/dist/templates/codex/config.toml +4 -19
- package/dist/templates/codex/hooks/session-start.py +25 -30
- package/dist/templates/codex/hooks/turn-guard.py +74 -0
- package/dist/templates/codex/hooks.json +57 -6
- package/dist/templates/codex/index.d.ts +0 -5
- package/dist/templates/codex/index.d.ts.map +1 -1
- package/dist/templates/codex/index.js +0 -13
- package/dist/templates/codex/index.js.map +1 -1
- 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 +13 -3
- package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/workflow.md +17 -9
- 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 +7 -3
- package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +7 -7
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +9 -51
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +3 -15
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +1 -2
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/bundled-skills.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +4 -9
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +2 -2
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/multi-agent-teamwork.md +6 -0
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +10 -8
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +9 -79
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +2 -4
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +3 -6
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +24 -103
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
- 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 +27 -6
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/SKILL.md +9 -7
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/mcp-setup.md +12 -84
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/repository-analysis.md +5 -25
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-task-planning.md +5 -9
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-writing.md +8 -0
- package/dist/templates/common/bundled-skills/trellis-task-implementation/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-task-implementation/workflow.md +7 -3
- package/dist/templates/common/bundled-skills/trellis-teamwork/SKILL.md +8 -1
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md +21 -1
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teamwork-plan-construction.md +13 -2
- package/dist/templates/common/bundled-skills/trellis-worktree-delegation/SKILL.md +14 -0
- package/dist/templates/common/bundled-skills/trellis-worktree-delegation/workflow.md +86 -0
- package/dist/templates/common/commands/continue.md +16 -1
- package/dist/templates/common/commands/start.md +2 -0
- package/dist/templates/common/skills/before-dev.md +3 -1
- package/dist/templates/common/skills/check.md +3 -1
- package/dist/templates/common/skills/request-intake.md +14 -1
- package/dist/templates/copilot/hooks/session-start.py +11 -30
- package/dist/templates/cursor/hooks.json +0 -7
- package/dist/templates/cursor/index.d.ts +1 -11
- package/dist/templates/cursor/index.d.ts.map +1 -1
- package/dist/templates/cursor/index.js +2 -10
- package/dist/templates/cursor/index.js.map +1 -1
- package/dist/templates/droid/index.d.ts +2 -3
- package/dist/templates/droid/index.d.ts.map +1 -1
- package/dist/templates/droid/index.js +2 -3
- package/dist/templates/droid/index.js.map +1 -1
- package/dist/templates/droid/settings.json +0 -10
- package/dist/templates/dsh/DSH.md +2 -33
- package/dist/templates/dsh/index.d.ts +1 -19
- package/dist/templates/dsh/index.d.ts.map +1 -1
- package/dist/templates/dsh/index.js +2 -21
- package/dist/templates/dsh/index.js.map +1 -1
- package/dist/templates/gemini/index.d.ts +1 -11
- package/dist/templates/gemini/index.d.ts.map +1 -1
- package/dist/templates/gemini/index.js +2 -10
- package/dist/templates/gemini/index.js.map +1 -1
- package/dist/templates/kiro/index.d.ts +1 -13
- package/dist/templates/kiro/index.d.ts.map +1 -1
- package/dist/templates/kiro/index.js +1 -13
- package/dist/templates/kiro/index.js.map +1 -1
- package/dist/templates/markdown/agents.md +9 -14
- package/dist/templates/markdown/index.d.ts +1 -0
- package/dist/templates/markdown/index.d.ts.map +1 -1
- package/dist/templates/markdown/index.js +1 -0
- package/dist/templates/markdown/index.js.map +1 -1
- package/dist/templates/markdown/spec/index.md.txt +20 -0
- package/dist/templates/omp/extensions/trellis/index.ts.txt +27 -60
- package/dist/templates/omp/index.d.ts +0 -2
- package/dist/templates/omp/index.d.ts.map +1 -1
- package/dist/templates/omp/index.js +1 -4
- package/dist/templates/omp/index.js.map +1 -1
- package/dist/templates/opencode/lib/session-utils.js +17 -5
- package/dist/templates/opencode/lib/trellis-context.js +12 -321
- package/dist/templates/opencode/plugins/inject-shell-session-context.js +93 -0
- package/dist/templates/opencode/plugins/inject-workflow-state.js +19 -17
- package/dist/templates/opencode/plugins/session-start.js +2 -6
- package/dist/templates/pi/extensions/trellis/index.ts.txt +17 -1436
- package/dist/templates/pi/index.d.ts +1 -2
- package/dist/templates/pi/index.d.ts.map +1 -1
- package/dist/templates/pi/index.js +2 -5
- package/dist/templates/pi/index.js.map +1 -1
- package/dist/templates/qoder/index.d.ts +2 -3
- package/dist/templates/qoder/index.d.ts.map +1 -1
- package/dist/templates/qoder/index.js +2 -3
- package/dist/templates/qoder/index.js.map +1 -1
- package/dist/templates/shared-hooks/guard-teamwork-wait.py +118 -12
- package/dist/templates/shared-hooks/index.d.ts +2 -56
- package/dist/templates/shared-hooks/index.d.ts.map +1 -1
- package/dist/templates/shared-hooks/index.js +4 -70
- package/dist/templates/shared-hooks/index.js.map +1 -1
- package/dist/templates/shared-hooks/inject-shell-session-context.py +46 -1
- package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
- package/dist/templates/shared-hooks/inject-workflow-state.py +66 -104
- package/dist/templates/shared-hooks/session-start.py +8 -6
- package/dist/templates/snow/SNOW.md +6 -18
- package/dist/templates/snow/hooks/write-trellis-context.py +51 -133
- package/dist/templates/snow/index.d.ts +2 -21
- package/dist/templates/snow/index.d.ts.map +1 -1
- package/dist/templates/snow/index.js +3 -24
- package/dist/templates/snow/index.js.map +1 -1
- package/dist/templates/template-utils.d.ts +1 -2
- package/dist/templates/template-utils.d.ts.map +1 -1
- package/dist/templates/template-utils.js +1 -11
- package/dist/templates/template-utils.js.map +1 -1
- package/dist/templates/trae/index.d.ts +2 -3
- package/dist/templates/trae/index.d.ts.map +1 -1
- package/dist/templates/trae/index.js +2 -3
- package/dist/templates/trae/index.js.map +1 -1
- package/dist/templates/trellis/agents/delegated-worktree-primary-agent.md +22 -22
- package/dist/templates/trellis/agents/teammate.md +6 -2
- package/dist/templates/trellis/agents/worktree-delegation-node.md +32 -0
- package/dist/templates/trellis/config.yaml +7 -36
- package/dist/templates/trellis/gitignore.txt +4 -0
- package/dist/templates/trellis/index.d.ts +1 -0
- package/dist/templates/trellis/index.d.ts.map +1 -1
- package/dist/templates/trellis/index.js +9 -0
- package/dist/templates/trellis/index.js.map +1 -1
- package/dist/templates/trellis/scripts/common/active_task.py +23 -31
- package/dist/templates/trellis/scripts/common/config.py +16 -36
- package/dist/templates/trellis/scripts/common/git_context.py +13 -4
- package/dist/templates/trellis/scripts/common/io.py +2 -2
- package/dist/templates/trellis/scripts/common/markdown_format.py +107 -0
- package/dist/templates/trellis/scripts/common/packages_context.py +29 -1
- package/dist/templates/trellis/scripts/common/session_context.py +25 -50
- package/dist/templates/trellis/scripts/common/task_context.py +5 -3
- package/dist/templates/trellis/scripts/common/task_continuity.py +66 -9
- package/dist/templates/trellis/scripts/common/task_move.py +11 -5
- package/dist/templates/trellis/scripts/common/task_runtime.py +211 -0
- package/dist/templates/trellis/scripts/common/task_store.py +12 -82
- package/dist/templates/trellis/scripts/common/task_turn.py +518 -0
- package/dist/templates/trellis/scripts/common/task_workflow.py +383 -395
- package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
- package/dist/templates/trellis/scripts/common/workflow_selection.py +35 -40
- package/dist/templates/trellis/scripts/common/worktree_delegation.py +690 -0
- package/dist/templates/trellis/scripts/common/worktree_delegation_contract.py +446 -0
- package/dist/templates/trellis/scripts/common/worktree_delegation_messages.py +376 -0
- package/dist/templates/trellis/scripts/common/worktree_delegation_transport.py +57 -0
- package/dist/templates/trellis/scripts/markdown_format.py +40 -0
- package/dist/templates/trellis/scripts/task.py +73 -10
- package/dist/templates/trellis/workflow.md +52 -11
- package/dist/templates/zcode/config.json +0 -10
- package/dist/templates/zcode/index.d.ts +3 -22
- package/dist/templates/zcode/index.d.ts.map +1 -1
- package/dist/templates/zcode/index.js +3 -24
- package/dist/templates/zcode/index.js.map +1 -1
- package/dist/types/ai-tools.d.ts +0 -4
- package/dist/types/ai-tools.d.ts.map +1 -1
- package/dist/types/ai-tools.js +4 -109
- package/dist/types/ai-tools.js.map +1 -1
- package/dist/utils/ablation-store.d.ts.map +1 -1
- package/dist/utils/ablation-store.js +41 -1
- package/dist/utils/ablation-store.js.map +1 -1
- package/dist/utils/asset-backup.d.ts +1 -0
- package/dist/utils/asset-backup.d.ts.map +1 -1
- package/dist/utils/asset-backup.js +131 -31
- package/dist/utils/asset-backup.js.map +1 -1
- 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 +8 -2
- package/dist/utils/atomic-write.js.map +1 -1
- package/dist/utils/codex-config-ownership.d.ts +13 -0
- package/dist/utils/codex-config-ownership.d.ts.map +1 -0
- package/dist/utils/codex-config-ownership.js +64 -0
- package/dist/utils/codex-config-ownership.js.map +1 -0
- package/dist/utils/file-writer.d.ts +2 -0
- package/dist/utils/file-writer.d.ts.map +1 -1
- package/dist/utils/file-writer.js +1 -1
- package/dist/utils/file-writer.js.map +1 -1
- package/dist/utils/managed-markdown.d.ts +5 -0
- package/dist/utils/managed-markdown.d.ts.map +1 -0
- package/dist/utils/managed-markdown.js +64 -0
- package/dist/utils/managed-markdown.js.map +1 -0
- package/dist/utils/managed-removal.d.ts +2 -0
- package/dist/utils/managed-removal.d.ts.map +1 -1
- package/dist/utils/managed-removal.js +62 -8
- package/dist/utils/managed-removal.js.map +1 -1
- package/dist/utils/manifest-prune.d.ts.map +1 -1
- package/dist/utils/manifest-prune.js +5 -12
- package/dist/utils/manifest-prune.js.map +1 -1
- package/dist/utils/project-init.d.ts +26 -0
- package/dist/utils/project-init.d.ts.map +1 -0
- package/dist/utils/project-init.js +484 -0
- package/dist/utils/project-init.js.map +1 -0
- package/dist/utils/retired-native-assets.d.ts +17 -0
- package/dist/utils/retired-native-assets.d.ts.map +1 -0
- package/dist/utils/retired-native-assets.js +221 -0
- package/dist/utils/retired-native-assets.js.map +1 -0
- package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
- package/dist/utils/uninstall-scrubbers.js +6 -12
- package/dist/utils/uninstall-scrubbers.js.map +1 -1
- package/package.json +2 -2
- package/dist/templates/claude/agents/trellis-check.md +0 -115
- package/dist/templates/claude/agents/trellis-implement.md +0 -110
- package/dist/templates/claude/agents/trellis-research.md +0 -137
- package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
- package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
- package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
- package/dist/templates/codex/agents/trellis-check.toml +0 -56
- package/dist/templates/codex/agents/trellis-implement.toml +0 -37
- package/dist/templates/codex/agents/trellis-research.toml +0 -78
- package/dist/templates/cursor/agents/trellis-check.md +0 -114
- package/dist/templates/cursor/agents/trellis-implement.md +0 -109
- package/dist/templates/cursor/agents/trellis-research.md +0 -136
- package/dist/templates/droid/droids/trellis-check.md +0 -107
- package/dist/templates/droid/droids/trellis-implement.md +0 -102
- package/dist/templates/droid/droids/trellis-research.md +0 -137
- package/dist/templates/dsh/agents/trellis-check.md +0 -99
- package/dist/templates/dsh/agents/trellis-implement.md +0 -106
- package/dist/templates/dsh/agents/trellis-research.md +0 -134
- package/dist/templates/gemini/agents/trellis-check.md +0 -107
- package/dist/templates/gemini/agents/trellis-implement.md +0 -102
- package/dist/templates/gemini/agents/trellis-research.md +0 -136
- package/dist/templates/grok/agents/trellis-check.md +0 -105
- package/dist/templates/grok/agents/trellis-implement.md +0 -116
- package/dist/templates/grok/agents/trellis-research.md +0 -146
- package/dist/templates/grok/index.d.ts +0 -16
- package/dist/templates/grok/index.d.ts.map +0 -1
- package/dist/templates/grok/index.js +0 -19
- package/dist/templates/grok/index.js.map +0 -1
- package/dist/templates/kimi/agents/trellis-check.md +0 -103
- package/dist/templates/kimi/agents/trellis-implement.md +0 -115
- package/dist/templates/kimi/agents/trellis-research.md +0 -144
- package/dist/templates/kimi/index.d.ts +0 -20
- package/dist/templates/kimi/index.d.ts.map +0 -1
- package/dist/templates/kimi/index.js +0 -23
- package/dist/templates/kimi/index.js.map +0 -1
- package/dist/templates/kiro/agents/trellis-check.json +0 -26
- package/dist/templates/kiro/agents/trellis-implement.json +0 -26
- package/dist/templates/kiro/agents/trellis-research.json +0 -30
- package/dist/templates/omp/agents/trellis-check.md +0 -41
- package/dist/templates/omp/agents/trellis-implement.md +0 -45
- package/dist/templates/omp/agents/trellis-research.md +0 -30
- package/dist/templates/opencode/agents/trellis-check.md +0 -122
- package/dist/templates/opencode/agents/trellis-implement.md +0 -118
- package/dist/templates/opencode/agents/trellis-research.md +0 -145
- package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -569
- package/dist/templates/pi/agents/trellis-check.md +0 -37
- package/dist/templates/pi/agents/trellis-implement.md +0 -42
- package/dist/templates/pi/agents/trellis-research.md +0 -25
- package/dist/templates/qoder/agents/trellis-check.md +0 -108
- package/dist/templates/qoder/agents/trellis-implement.md +0 -103
- package/dist/templates/qoder/agents/trellis-research.md +0 -137
- package/dist/templates/reasonix/agents/trellis-check.md +0 -36
- package/dist/templates/reasonix/agents/trellis-implement.md +0 -41
- package/dist/templates/reasonix/index.d.ts +0 -13
- package/dist/templates/reasonix/index.d.ts.map +0 -1
- package/dist/templates/reasonix/index.js +0 -16
- package/dist/templates/reasonix/index.js.map +0 -1
- package/dist/templates/shared-hooks/inject-subagent-context.py +0 -1217
- package/dist/templates/snow/agents/trellis-check.md +0 -135
- package/dist/templates/snow/agents/trellis-implement.md +0 -153
- package/dist/templates/snow/agents/trellis-research.md +0 -114
- package/dist/templates/snow/hooks/beforeSubAgentStart.json +0 -15
- package/dist/templates/trae/agents/trellis-check.md +0 -108
- package/dist/templates/trae/agents/trellis-implement.md +0 -103
- package/dist/templates/trae/agents/trellis-research.md +0 -137
- package/dist/templates/zcode/agents/trellis-check.md +0 -109
- package/dist/templates/zcode/agents/trellis-implement.md +0 -111
- package/dist/templates/zcode/agents/trellis-research.md +0 -133
|
@@ -32,7 +32,7 @@ Context loading determines when AI reads workflow, task, spec, research, workspa
|
|
|
32
32
|
| --- | --- |
|
|
33
33
|
| Inject more/less information in new sessions | `session_context.py` or the platform `session-start` hook. |
|
|
34
34
|
| Change hints on each user input | `[workflow-state:STATUS]` block in `.trellis/workflow.md`. The `inject-workflow-state` hook is parser-only and reads the block verbatim. |
|
|
35
|
-
|
|
|
35
|
+
| 会话没有读取规范 | 适用 spec 索引、当前阶段和可选任务 JSONL。 |
|
|
36
36
|
| Active task is lost | `active_task.py` and platform session identity propagation. |
|
|
37
37
|
| Change JSONL validation rules | `task_context.py`. |
|
|
38
38
|
|
|
@@ -56,21 +56,9 @@ If the user wants every new session to see more project state, edit:
|
|
|
56
56
|
|
|
57
57
|
Context cannot grow without bound. Prefer injecting indexes and paths so the AI can read detailed files on demand.
|
|
58
58
|
|
|
59
|
-
##
|
|
59
|
+
## 调整协作上下文
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
- hook push: edit the `inject-subagent-context` hook.
|
|
64
|
-
- agent pull: edit the read steps in the corresponding `trellis-implement` / `trellis-check` agent file.
|
|
65
|
-
|
|
66
|
-
In both modes, make sure the agent ultimately reads:
|
|
67
|
-
|
|
68
|
-
1. active task
|
|
69
|
-
2. the corresponding JSONL
|
|
70
|
-
3. spec/research referenced by the JSONL
|
|
71
|
-
4. `prd.md`
|
|
72
|
-
5. `design.md` if present
|
|
73
|
-
6. `implement.md` if present
|
|
61
|
+
按 `change-agents.md` 核对机制和职责。Teamwork 修改明确工作包及原生上下文输入;Paseo 修改已授权结果包及节点合同。不要新增宿主派发入口。
|
|
74
62
|
|
|
75
63
|
## Troubleshooting Order
|
|
76
64
|
|
package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md
CHANGED
|
@@ -16,7 +16,6 @@ Hooks are the automation layer that connects a platform to Trellis. When the use
|
|
|
16
16
|
| --- | --- |
|
|
17
17
|
| session-start | Injects a Trellis overview when a session starts, clears, or compacts. |
|
|
18
18
|
| workflow-state | Injects a state hint on each user input. |
|
|
19
|
-
| sub-agent context | Injects PRD/spec/research before an agent starts. |
|
|
20
19
|
| shell session bridge | Lets `task.py` commands in shell see the same session identity. |
|
|
21
20
|
|
|
22
21
|
## Modification Steps
|
|
@@ -47,7 +46,7 @@ python3 ./.trellis/scripts/task.py current --source
|
|
|
47
46
|
python3 ./.trellis/scripts/task.py validate <task>
|
|
48
47
|
```
|
|
49
48
|
|
|
50
|
-
|
|
49
|
+
任务和可选 JSONL 正确时,继续检查当前会话身份及对应机制的原生工作包输入。Hook 负责主会话接入;协作角色由 `change-agents.md` 所列 owner 管理。
|
|
51
50
|
|
|
52
51
|
## Notes
|
|
53
52
|
|
|
@@ -29,7 +29,7 @@ The set is discovered at runtime by listing directories under `templates/common/
|
|
|
29
29
|
| `trellis-delivery-review-and-closeout` | Reviews the delivery candidate, unresolved items, acceptance conditions, and resource disposition. |
|
|
30
30
|
| `trellis-meta` | This skill. Explains the local Trellis architecture and customization entry points to an AI working inside a user project. |
|
|
31
31
|
| `trellis-session-insight` | Wraps the `trellis mem` CLI so an AI knows when and how to reach into past Claude Code / Codex / Pi Agent conversation logs. |
|
|
32
|
-
| `trellis-spec-bootstrap` | Platform-neutral workflow for creating or refreshing `.trellis/spec/` from
|
|
32
|
+
| `trellis-spec-bootstrap` | Platform-neutral workflow for creating or refreshing `.trellis/spec/` from current source, tests, and approved available analysis tools. |
|
|
33
33
|
| `trellis-teamwork` | Capability skill teaching an AI when to reach for `trellis teamwork` for multi-agent collaboration, forum/thread persistent boards, and dispatcher-wait patterns. |
|
|
34
34
|
|
|
35
35
|
This inventory reflects the directories currently in the source tree. The CLI discovers them at runtime, so adding a directory under `bundled-skills/` makes it available to the shared loader (see "Adding a New Bundled Skill" below).
|
|
@@ -30,14 +30,9 @@ workflow-state is a lightweight hint injected around each user turn. Based on cu
|
|
|
30
30
|
|
|
31
31
|
If the user wants to change "what the AI should do next in a given state," edit the corresponding state block in `.trellis/workflow.md` first.
|
|
32
32
|
|
|
33
|
-
##
|
|
33
|
+
## 任务与协作上下文
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
1. **hook push**: a platform hook injects jsonl-referenced files plus `prd.md`, `design.md` if present, and `implement.md` if present before the agent starts.
|
|
38
|
-
2. **agent pull**: the agent definition instructs the agent to read the active task, jsonl context, and task artifacts after startup.
|
|
39
|
-
|
|
40
|
-
In both modes, JSONL files in the task directory are the manifest for spec/research context. Task artifacts are read separately in this order: `prd.md` -> `design.md if present` -> `implement.md if present`.
|
|
35
|
+
主会话按当前阶段读取任务资产和适用规范。`implement.jsonl`、`check.jsonl` 是按需创建的可选上下文清单,不表示执行者类型或派发许可。Teamwork 通过明确工作包和原生上下文输入消费所需内容;Paseo 节点按实施合同和节点绑定读取上下文。角色卡和 Skill 由各自 owner 维护。
|
|
41
36
|
|
|
42
37
|
## JSONL Reading Rules
|
|
43
38
|
|
|
@@ -61,8 +56,8 @@ If shell commands cannot see the same context key, `task.py current --source` ma
|
|
|
61
56
|
| --- | --- |
|
|
62
57
|
| Change session-start injected content | The platform's `session-start` hook or plugin file. |
|
|
63
58
|
| Change per-turn workflow-state rules | `[workflow-state:STATUS]` block in `.trellis/workflow.md`. The platform workflow-state hook parses these blocks verbatim and embeds no fallback text. |
|
|
64
|
-
|
|
|
59
|
+
| 调整协作上下文 | 对应工作包、原生 Teamwork 输入或 Paseo 节点合同。 |
|
|
65
60
|
| Change JSONL validation/display | `.trellis/scripts/common/task_context.py`. |
|
|
66
61
|
| Change active task resolution | `.trellis/scripts/common/active_task.py`. |
|
|
67
62
|
|
|
68
|
-
When modifying context injection, verify two things: new sessions can see the correct task, and
|
|
63
|
+
When modifying context injection, verify two things: new sessions can see the correct task, and the current session or collaboration node sees its own task artifacts/spec/research.
|
|
@@ -39,9 +39,9 @@ Different platforms generate different directories. Common categories:
|
|
|
39
39
|
|
|
40
40
|
| Category | Example paths | Purpose |
|
|
41
41
|
| --- | --- | --- |
|
|
42
|
-
| hooks | `.claude/hooks/`, `.codex/hooks/`, `.cursor/hooks/` | Inject session context, workflow-state, and
|
|
42
|
+
| hooks | `.claude/hooks/`, `.codex/hooks/`, `.cursor/hooks/` | Inject session context, workflow-state, and path-scoped specs. |
|
|
43
43
|
| settings | `.claude/settings.json`, `.codex/hooks.json`, `.qoder/settings.json`, `.trae/hooks.json` | Tell the platform when to run hooks or plugins. |
|
|
44
|
-
|
|
|
44
|
+
| 协作角色 | `.trellis/agents/` | Teamwork 只读角色和 Paseo 实施节点;平台目录不生成旧分发角色。 |
|
|
45
45
|
| skills | `.claude/skills/`, `.agents/skills/`, `.qoder/skills/`, `.zcode/skills/` | Skills that auto-trigger or can be read by AI. |
|
|
46
46
|
| commands/prompts/workflows | `.cursor/commands/`, `.github/prompts/`, `.devin/workflows/`, `.zcode/commands/` | Explicit user-invoked command or workflow entry points. |
|
|
47
47
|
|
|
@@ -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
|
package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md
CHANGED
|
@@ -48,4 +48,4 @@ All three layers live inside the user project, so an AI can read and modify them
|
|
|
48
48
|
- To change the task model, JSONL context, or active task behavior, read `task-system.md`.
|
|
49
49
|
- To change coding convention injection, read `spec-system.md`.
|
|
50
50
|
- To understand journals and cross-session memory, read `workspace-memory.md`.
|
|
51
|
-
- To change hooks or
|
|
51
|
+
- To change hooks or collaboration context loading, read `context-injection.md`.
|
|
@@ -8,12 +8,8 @@ A common single-repository structure:
|
|
|
8
8
|
|
|
9
9
|
```text
|
|
10
10
|
.trellis/spec/
|
|
11
|
-
├──
|
|
12
|
-
|
|
13
|
-
│ └── ...
|
|
14
|
-
├── frontend/
|
|
15
|
-
│ ├── index.md
|
|
16
|
-
│ └── ...
|
|
11
|
+
├── index.md
|
|
12
|
+
├── <actual-topic>.md
|
|
17
13
|
└── guides/
|
|
18
14
|
├── index.md
|
|
19
15
|
└── ...
|
|
@@ -23,7 +19,9 @@ A common monorepo structure:
|
|
|
23
19
|
|
|
24
20
|
```text
|
|
25
21
|
.trellis/spec/
|
|
22
|
+
├── index.md
|
|
26
23
|
├── cli/
|
|
24
|
+
│ ├── index.md
|
|
27
25
|
│ ├── backend/
|
|
28
26
|
│ │ ├── index.md
|
|
29
27
|
│ │ └── ...
|
|
@@ -39,7 +37,7 @@ A common monorepo structure:
|
|
|
39
37
|
└── ...
|
|
40
38
|
```
|
|
41
39
|
|
|
42
|
-
`index.md` is the entry
|
|
40
|
+
The root `index.md` is the common entry, followed by configured package and actual topic/layer indexes. Keep the Pre-Development Checklist and Quality Check. Existing frontend/backend or other layers remain valid when they match the project; the examples do not require those layers.
|
|
43
41
|
|
|
44
42
|
## Package Configuration
|
|
45
43
|
|
|
@@ -72,7 +70,7 @@ Before a task enters implementation, planning may write relevant specs into `imp
|
|
|
72
70
|
{"file": ".trellis/spec/cli/unit-test/conventions.md", "reason": "Test expectations"}
|
|
73
71
|
```
|
|
74
72
|
|
|
75
|
-
|
|
73
|
+
主会话按工作流读取适用规范;可选 JSONL 提供上下文引用,Teamwork 也可通过原生显式输入消费。清单不决定执行者或授权。
|
|
76
74
|
|
|
77
75
|
## What Specs Should Contain
|
|
78
76
|
|
|
@@ -100,3 +98,7 @@ When the AI learns a new rule during implementation or debugging, it should upda
|
|
|
100
98
|
## Boundaries
|
|
101
99
|
|
|
102
100
|
`.trellis/spec/` is the user's project specification, not a permanent copy of Trellis built-in templates. The AI should encourage the user to update it according to the actual project code instead of treating Trellis default templates as immutable documents.
|
|
101
|
+
|
|
102
|
+
New-project `init` prepares neutral navigation. Ordinary existing-project `init` repairs only a missing local root index, preserving existing files, package mappings and deleted topics/guides. An explicitly repeated default init also recreates a deliberately deleted root index; no deletion intent is stored. External registry sources retain their owner, and unrecognized declarations stop local preparation. Ordinary update and session startup do not trigger this repair or semantic migration.
|
|
103
|
+
|
|
104
|
+
Use the available `trellis-spec-bootstrap` to establish or refresh source-backed conventions within the authorized task. Native file preparation and unchanged fingerprints do not establish semantic readiness. Do not add a second spec state ledger.
|
package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md
CHANGED
|
@@ -1,84 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 协作角色
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
主会话负责需求、决策、授权、集成和结果接受。协作只有两类,各自由原生 owner 管理:
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
- `trellis-
|
|
5
|
+
| 机制与实例 | 适用工作 | 项目资产与入口 |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| trellis teamwork / trellis teammates | 明确工作包的只读研究、审查与验证 | `.trellis/agents/teammate.md`、`teammate-profiles.json`、`profiles/`;使用 `trellis-teamwork` |
|
|
8
|
+
| paseo-based-parallelism / paseo delegated-agent | 已授权实施阶段的完整实施结果包 | `.trellis/agents/delegated-worktree-primary-agent.md`、`worktree-delegation-node.md`;使用 `trellis-worktree-delegation` |
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
修改前读取当前任务合同、目标角色文件和对应 Skill 的原生说明。角色卡描述职责、输入、写入边界和报告格式;任务状态、接受与授权仍由 Task CLI 管理。节点收到明确工作包后执行,遇到缺失输入或权限冲突向主会话报告,由主会话处理用户决策。
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
工程规范写入 `.trellis/spec/`;可复用方法写入 Skills。可选 JSONL 只是上下文清单,存在清单不授权协作。禁止通过宿主角色文件、裸 CLI 进程或历史启动记录另建派发路线。
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
| --- | --- |
|
|
15
|
-
| `trellis-research` | Investigate the question and write findings into the current task's `research/`. |
|
|
16
|
-
| `trellis-implement` | Implement against `prd.md`, optional `design.md` / `implement.md`, `implement.jsonl`, and related spec/research. |
|
|
17
|
-
| `trellis-check` | Review changes, fix discovered issues, and run necessary checks. |
|
|
18
|
-
|
|
19
|
-
Agent files should not become generic chat prompts. They should define input sources, write boundaries, whether code may be changed, and how results are reported.
|
|
20
|
-
|
|
21
|
-
## Common Paths
|
|
22
|
-
|
|
23
|
-
| Platform | Agent path |
|
|
24
|
-
| --- | --- |
|
|
25
|
-
| Claude Code | `.claude/agents/trellis-*.md` |
|
|
26
|
-
| Cursor | `.cursor/agents/trellis-*.md` |
|
|
27
|
-
| OpenCode | `.opencode/agents/trellis-*.md` |
|
|
28
|
-
| Codex | `.codex/agents/trellis-*.toml` |
|
|
29
|
-
| Kiro | `.kiro/agents/trellis-*.json` |
|
|
30
|
-
| Gemini CLI | `.gemini/agents/trellis-*.md` |
|
|
31
|
-
| Qoder | `.qoder/agents/trellis-*.md` |
|
|
32
|
-
| CodeBuddy | `.codebuddy/agents/trellis-*.md` |
|
|
33
|
-
| Factory Droid | `.factory/droids/trellis-*.md` |
|
|
34
|
-
| Pi Agent | `.pi/agents/trellis-*.md` |
|
|
35
|
-
| Reasonix | `.reasonix/skills/trellis-*/SKILL.md` (subagent frontmatter) |
|
|
36
|
-
| ZCode | `.zcode/agents/trellis-*.md` |
|
|
37
|
-
| Kimi Code | `.kimi-code/skills/trellis-*/SKILL.md` (agent prompts as skills, dispatched to the built-in `coder`; research needs its file-editing tools to persist findings) |
|
|
38
|
-
| DeepSeek Harness | `.dsh/skills/trellis-agent-*/SKILL.md` (role prompts as child-only skills; optional `trellis_wait` enables continuable background settlement; without it, dispatch every child with `run_in_background: false` from the outset) |
|
|
39
|
-
|
|
40
|
-
GitHub Copilot agent/prompt support is provided by a combination of directories such as `.github/agents/`, `.github/prompts/`, and `.github/skills/`; inspect the files actually generated in the user project.
|
|
41
|
-
|
|
42
|
-
Main-session workflow platforms such as Kilo, Antigravity, and Devin may not have Trellis sub-agent files. They usually rely on workflows/skills to guide the main session.
|
|
43
|
-
|
|
44
|
-
## Two Context Loading Modes
|
|
45
|
-
|
|
46
|
-
### hook push
|
|
47
|
-
|
|
48
|
-
The platform hook injects task context before the agent starts. The agent file itself can focus more on responsibilities and boundaries.
|
|
49
|
-
|
|
50
|
-
Common on platforms that support agent hooks.
|
|
51
|
-
|
|
52
|
-
### agent pull
|
|
53
|
-
|
|
54
|
-
The agent file instructs the agent to read after startup:
|
|
55
|
-
|
|
56
|
-
- `python3 ./.trellis/scripts/task.py current --source`
|
|
57
|
-
- `implement.jsonl` or `check.jsonl`
|
|
58
|
-
- spec/research files referenced by JSONL
|
|
59
|
-
- current task `prd.md`
|
|
60
|
-
- `design.md` if present
|
|
61
|
-
- `implement.md` if present
|
|
62
|
-
|
|
63
|
-
This mode fits platforms whose hooks cannot reliably rewrite sub-agent prompts.
|
|
64
|
-
|
|
65
|
-
## Local Change Scenarios
|
|
66
|
-
|
|
67
|
-
| User need | Edit location |
|
|
68
|
-
| --- | --- |
|
|
69
|
-
| Implement agent must follow extra restrictions | The platform's `trellis-implement` agent file. |
|
|
70
|
-
| Check agent must run project-specific commands | `trellis-check` agent file, and `.trellis/spec/` if needed. |
|
|
71
|
-
| Research agent must output a fixed format | `trellis-research` agent file. |
|
|
72
|
-
| Agent cannot read task context | Agent prelude or `inject-subagent-context` hook. |
|
|
73
|
-
| Add a project-specific agent | Platform agent directory + related workflow/command/skill entry point. |
|
|
74
|
-
|
|
75
|
-
## Modification Principles
|
|
76
|
-
|
|
77
|
-
1. **Keep responsibilities single-purpose**. Do not mix research, implement, and check responsibilities into one agent.
|
|
78
|
-
2. **Specify the read order**. Agents must know to start from the active task, read jsonl/spec context, then read `prd.md`, `design.md` if present, and `implement.md` if present.
|
|
79
|
-
3. **Specify write boundaries**. Research usually only writes `research/`; implement can write code; check can fix issues.
|
|
80
|
-
4. **Keep semantics synchronized in multi-platform projects**. If the user configured Claude, Codex, and Cursor together, decide whether changes to one platform's agent also need to be applied to others.
|
|
81
|
-
|
|
82
|
-
## Do Not Default To Editing Upstream Templates
|
|
83
|
-
|
|
84
|
-
Local AI should default to modifying platform agent files inside the user project. Discuss upstream template source only when the user explicitly wants to contribute the change back to Trellis.
|
|
14
|
+
Kiro 的 `.kiro/agents/trellis.json` 是主会话入口;普通 `trellis-check` 是检查方法 Skill。两者都不承担旧角色分发。修改安装资产必须沿所属组件的原生更新入口;只修改源模板不会更新既有项目。
|
|
@@ -8,7 +8,6 @@ settings/config files usually register:
|
|
|
8
8
|
|
|
9
9
|
- session-start hook: injects a Trellis overview when a new session starts or context resets.
|
|
10
10
|
- workflow-state hook: parses `[workflow-state:STATUS]` blocks from `.trellis/workflow.md` and emits the body matching the current task `status` on each user input. Parser-only; the script does not embed fallback content.
|
|
11
|
-
- sub-agent context hook: injects task context when implementation/check/research agents start.
|
|
12
11
|
- shell/session bridge: lets shell commands see the same Trellis session identity.
|
|
13
12
|
- platform plugin or extension entry points.
|
|
14
13
|
|
|
@@ -29,7 +28,7 @@ Common files:
|
|
|
29
28
|
| Pi Agent | `.pi/settings.json`, `.pi/extensions/trellis/` |
|
|
30
29
|
| Trae IDE | `.trae/hooks.json` |
|
|
31
30
|
|
|
32
|
-
Reasonix
|
|
31
|
+
Reasonix、Kimi Code 和 DeepSeek Harness 通过项目 Skills 提供主会话方法入口;ZCode 通过主会话 Hook 注入阶段和 shell 身份。Trellis 不部署宿主实施、检查或研究角色。
|
|
33
32
|
|
|
34
33
|
Whether these files exist in a project depends on which `trellis init --<platform>` flags the user ran.
|
|
35
34
|
|
|
@@ -39,7 +38,6 @@ Whether these files exist in a project depends on which `trellis init --<platfor
|
|
|
39
38
|
| --- | --- |
|
|
40
39
|
| `session-start.py` | Generates session-start context. |
|
|
41
40
|
| `inject-workflow-state.py` | Parses `[workflow-state:STATUS]` blocks in `.trellis/workflow.md` and emits the body matching the current task status. Falls back to `Refer to workflow.md for current step.` when no matching block exists. |
|
|
42
|
-
| `inject-subagent-context.py` | Injects PRD, JSONL context, and related spec/research into sub-agents. |
|
|
43
41
|
| `inject-spec-context.py` | Matches path-scoped specs and manages budgeted delivery state. |
|
|
44
42
|
| `inject-shell-session-context.py` | Lets shell commands inherit Trellis session identity. |
|
|
45
43
|
|
|
@@ -51,7 +49,7 @@ Not every platform has every hook. Do not copy files from another platform just
|
|
|
51
49
|
| --- | --- |
|
|
52
50
|
| AI should see more/less context in a new session | Platform `session-start` hook. |
|
|
53
51
|
| Per-turn hint policy should change | `[workflow-state:STATUS]` block in `.trellis/workflow.md`. The hook parses workflow.md verbatim — no script edit required. |
|
|
54
|
-
|
|
|
52
|
+
| 协作节点缺少 PRD/spec | 原生工作包输入与节点合同。 |
|
|
55
53
|
| `task.py current` in shell has no active task | Shell/session bridge hook or platform environment variable configuration. |
|
|
56
54
|
| Disable an automatic injection | The corresponding hook registration in settings/config. |
|
|
57
55
|
|
package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md
CHANGED
|
@@ -15,7 +15,7 @@ Platform files do not store business state. They let the corresponding AI tool r
|
|
|
15
15
|
| --- | --- | --- |
|
|
16
16
|
| settings/config | `.claude/settings.json`, `.codex/hooks.json`, `.qoder/settings.json`, `.trae/hooks.json` | Register hooks, plugins, extensions, or platform behavior. |
|
|
17
17
|
| hooks/plugins/extensions | `.claude/hooks/`, `.opencode/plugins/`, `.pi/extensions/` | Inject context at session start, user input, agent startup, shell execution, and similar events. |
|
|
18
|
-
|
|
|
18
|
+
| 协作角色 | `.trellis/agents/` | Teamwork 只读角色与 Paseo 实施节点;Kiro 另有主会话入口。 |
|
|
19
19
|
| skills | `.claude/skills/`, `.agents/skills/`, `.qoder/skills/`, `.zcode/skills/` | Capability descriptions that auto-trigger or can be read on demand. |
|
|
20
20
|
| commands/prompts/workflows | `.cursor/commands/`, `.github/prompts/`, `.devin/workflows/`, `.zcode/commands/` | Entry points explicitly invoked by the user. |
|
|
21
21
|
|
|
@@ -29,20 +29,17 @@ Common capabilities:
|
|
|
29
29
|
|
|
30
30
|
- session-start injection of a `.trellis/` overview.
|
|
31
31
|
- workflow-state hints for each user turn.
|
|
32
|
-
- PRD/spec/research injection when sub-agents start.
|
|
33
32
|
- Shell commands inheriting session identity.
|
|
34
33
|
|
|
35
34
|
To change "when the AI knows what," inspect hooks/plugins/extensions and settings first.
|
|
36
35
|
|
|
37
36
|
### 2. Agent Prelude / Pull-Based
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
To change how sub-agents load context, inspect the agent files themselves.
|
|
38
|
+
协作上下文由原生工作包或节点合同提供,职责见 `agents.md`。
|
|
42
39
|
|
|
43
40
|
### 3. Main-Session Workflow
|
|
44
41
|
|
|
45
|
-
|
|
42
|
+
没有启动 Hook 的平台通过 workflow、Skills 和命令引导主会话读取文件、运行脚本并推进任务。
|
|
46
43
|
|
|
47
44
|
To change behavior, inspect platform workflows/skills/commands and `.trellis/workflow.md`.
|
|
48
45
|
|
package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md
CHANGED
|
@@ -4,110 +4,31 @@ This page lists common Trellis file locations in a user project by platform. Whe
|
|
|
4
4
|
|
|
5
5
|
## Matrix
|
|
6
6
|
|
|
7
|
-
| Platform | CLI flag | Main directory | Skill directory |
|
|
8
|
-
| --- | --- | --- | --- | --- |
|
|
9
|
-
| Claude Code | `--claude` | `.claude/` | `.claude/skills/` | `.claude/
|
|
10
|
-
| Cursor | `--cursor` | `.cursor/` | `.cursor/skills/` | `.cursor/
|
|
11
|
-
| OpenCode | `--opencode` | `.opencode/` | `.opencode/skills/` | `.opencode/
|
|
12
|
-
| Codex | `--codex` | `.codex/` | `.agents/skills/` | `.codex/
|
|
13
|
-
| Kilo | `--kilo` | `.kilocode/` | `.kilocode/skills/` |
|
|
14
|
-
| Kiro | `--kiro` | `.kiro/` | `.kiro/skills/` | `.kiro/
|
|
15
|
-
| Gemini CLI | `--gemini` | `.gemini/` | `.agents/skills/` | `.gemini/
|
|
16
|
-
| Antigravity | `--antigravity` | `.agent/` | `.agent/skills/` |
|
|
17
|
-
| Devin | `--devin` | `.devin/` | `.devin/skills/` |
|
|
18
|
-
| Qoder | `--qoder` | `.qoder/` | `.qoder/skills/` | `.qoder/
|
|
19
|
-
| CodeBuddy | `--codebuddy` | `.codebuddy/` | `.codebuddy/skills/` | `.codebuddy/
|
|
20
|
-
| GitHub Copilot | `--copilot` | `.github/` | `.github/skills/` | `.github/
|
|
21
|
-
| Factory Droid | `--droid` | `.factory/` | `.factory/skills/` | `.factory/
|
|
22
|
-
| Pi Agent | `--pi` | `.pi/` | `.agents/skills/` | `.pi/
|
|
23
|
-
| Trae IDE | `--trae` | `.trae/` | `.trae/skills/` | `.trae/
|
|
24
|
-
| Reasonix | `--reasonix` | `.reasonix/` | `.reasonix/skills/` | None
|
|
25
|
-
| ZCode | `--zcode` | `.zcode/` | `.zcode/skills/` |
|
|
26
|
-
| Grok Build | `--grok` | `.grok/` | `.grok/skills/` |
|
|
27
|
-
| Kimi Code | `--kimi` | `.kimi-code/` | `.agents/skills/` (shared) + `.kimi-code/skills/` | None
|
|
28
|
-
| Snow CLI | `--snow` | `.snow/` | `.snow/skills/` |
|
|
29
|
-
| DeepSeek Harness | `--dsh` | `.dsh/` | `.agents/skills/` (shared) + `.dsh/skills/` | None
|
|
7
|
+
| Platform | CLI flag | Main directory | Skill directory | Hooks/extensions |
|
|
8
|
+
| --- | --- | --- | --- | --- |
|
|
9
|
+
| Claude Code | `--claude` | `.claude/` | `.claude/skills/` | `.claude/hooks/` + `.claude/settings.json` |
|
|
10
|
+
| Cursor | `--cursor` | `.cursor/` | `.cursor/skills/` | `.cursor/hooks.json` + `.cursor/hooks/` |
|
|
11
|
+
| OpenCode | `--opencode` | `.opencode/` | `.opencode/skills/` | `.opencode/plugins/` |
|
|
12
|
+
| Codex | `--codex` | `.codex/` | `.agents/skills/` | `.codex/hooks/` + `.codex/hooks.json` |
|
|
13
|
+
| Kilo | `--kilo` | `.kilocode/` | `.kilocode/skills/` | `.kilocode/workflows/` |
|
|
14
|
+
| Kiro | `--kiro` | `.kiro/` | `.kiro/skills/` | `.kiro/hooks/` |
|
|
15
|
+
| Gemini CLI | `--gemini` | `.gemini/` | `.agents/skills/` | `.gemini/settings.json` + `.gemini/hooks/` |
|
|
16
|
+
| Antigravity | `--antigravity` | `.agent/` | `.agent/skills/` | `.agent/workflows/` |
|
|
17
|
+
| Devin | `--devin` | `.devin/` | `.devin/skills/` | `.devin/workflows/` |
|
|
18
|
+
| Qoder | `--qoder` | `.qoder/` | `.qoder/skills/` | `.qoder/hooks/` + `.qoder/settings.json` |
|
|
19
|
+
| CodeBuddy | `--codebuddy` | `.codebuddy/` | `.codebuddy/skills/` | `.codebuddy/hooks/` + `.codebuddy/settings.json` |
|
|
20
|
+
| GitHub Copilot | `--copilot` | `.github/` | `.github/skills/` | `.github/copilot/hooks/` + prompts |
|
|
21
|
+
| Factory Droid | `--droid` | `.factory/` | `.factory/skills/` | `.factory/hooks/` + settings |
|
|
22
|
+
| Pi Agent | `--pi` | `.pi/` | `.agents/skills/` | `.pi/extensions/trellis/` (native `trellis_subagent` tool) + `.pi/settings.json` |
|
|
23
|
+
| Trae IDE | `--trae` | `.trae/` | `.trae/skills/` | `.trae/hooks/` + `.trae/hooks.json` |
|
|
24
|
+
| Reasonix | `--reasonix` | `.reasonix/` | `.reasonix/skills/` | None |
|
|
25
|
+
| ZCode | `--zcode` | `.zcode/` | `.zcode/skills/` | 主会话原生接入;以当前 configurator 输出为准 |
|
|
26
|
+
| Grok Build | `--grok` | `.grok/` | `.grok/skills/` | pull-based prelude (no hooks; flat `.grok/commands/trellis-*.md`) |
|
|
27
|
+
| Kimi Code | `--kimi` | `.kimi-code/` | `.agents/skills/` (shared) + `.kimi-code/skills/` | None (pull-based prelude; no project hooks/settings) |
|
|
28
|
+
| Snow CLI | `--snow` | `.snow/` | `.snow/skills/` | 主会话原生接入;以当前 configurator 输出为准 |
|
|
29
|
+
| DeepSeek Harness | `--dsh` | `.dsh/` | `.agents/skills/` (shared) + `.dsh/skills/` | None installed by Trellis (pull-based roles; optional `dsh-trellis` adds event-driven wait, otherwise foreground dispatch) |
|
|
30
30
|
|
|
31
31
|
## Capability Groups
|
|
32
32
|
|
|
33
|
-
### Trellis Sub-Agent Support
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
- Claude Code
|
|
38
|
-
- Cursor
|
|
39
|
-
- OpenCode
|
|
40
|
-
- Codex
|
|
41
|
-
- Kiro
|
|
42
|
-
- Gemini CLI
|
|
43
|
-
- Qoder
|
|
44
|
-
- CodeBuddy
|
|
45
|
-
- GitHub Copilot
|
|
46
|
-
- Factory Droid
|
|
47
|
-
- Pi Agent
|
|
48
|
-
- Trae IDE
|
|
49
|
-
- Reasonix (delivered as skills with `runAs: subagent` under `.reasonix/skills/`, not as a separate `agents/` directory)
|
|
50
|
-
- ZCode
|
|
51
|
-
- Grok Build (`.grok/agents/`; dispatch via `spawn_subagent` with `subagent_type`)
|
|
52
|
-
- Kimi Code (delivered as skills under `.kimi-code/skills/`; dispatched to the built-in `coder`, including research because it must persist files)
|
|
53
|
-
- Snow CLI (`.snow/agents/`; auto-discovered project agents + class-1 hooks)
|
|
54
|
-
- DeepSeek Harness (role prompts delivered as `.dsh/skills/trellis-agent-*/SKILL.md`; dispatched through the continuable `subagent` tool)
|
|
55
|
-
|
|
56
|
-
When changing implementation/check/research behavior, look for the corresponding platform agent files first.
|
|
57
|
-
|
|
58
|
-
### Native Trellis Sub-Agent Tool
|
|
59
|
-
|
|
60
|
-
Some platforms expose a first-class tool that the host runtime understands. The model calls it like any other tool and the host renders progress cards, validates the agent name against `.<platform>/agents/`, and enforces dispatch modes.
|
|
61
|
-
|
|
62
|
-
- Pi Agent — `trellis_subagent` tool, defined in `.pi/extensions/trellis/index.ts`. Supports `single` / `parallel` / `chain` dispatch modes and emits live `trellis-subagent-progress` events.
|
|
63
|
-
|
|
64
|
-
When changing sub-agent dispatch behavior on these platforms, edit the extension file, **not** the agent markdown — the agent markdown defines responsibilities, but the host extension owns dispatch, validation, and progress rendering.
|
|
65
|
-
|
|
66
|
-
### Main-Session Workflow Platforms
|
|
67
|
-
|
|
68
|
-
These platforms rely more on workflows/skills to guide the main session:
|
|
69
|
-
|
|
70
|
-
- Kilo
|
|
71
|
-
- Antigravity
|
|
72
|
-
- Devin
|
|
73
|
-
|
|
74
|
-
When changing behavior, inspect workflows and skills first. Do not assume Trellis sub-agents exist.
|
|
75
|
-
|
|
76
|
-
### Shared `.agents/skills/`
|
|
77
|
-
|
|
78
|
-
Codex, Gemini CLI, Pi Agent, Kimi Code, and DeepSeek Harness write the shared `.agents/skills/` layer. Some tools that support agentskills.io can also read this directory. If the user wants multiple compatible tools to share one skill, consider `.agents/skills/` first, but do not assume every platform reads it. ZCode keeps Trellis-managed skills under `.zcode/skills/`.
|
|
79
|
-
|
|
80
|
-
## Decision Rules When Modifying Platform Files
|
|
81
|
-
|
|
82
|
-
1. User specified a platform: modify only that platform directory unless shared workflow/spec files must also change.
|
|
83
|
-
2. User says "all platforms should do this": synchronize equivalent entry points platform by platform; do not modify only one directory.
|
|
84
|
-
3. User only says "my AI": inspect the configuration directories that actually exist in the project and infer the current AI platform.
|
|
85
|
-
4. User wants project rules: prefer `.trellis/spec/` or a project-local skill.
|
|
86
|
-
5. User wants Trellis behavior: edit `.trellis/workflow.md` plus platform hooks/agents/skills/commands.
|
|
87
|
-
|
|
88
|
-
## When Paths Differ
|
|
89
|
-
|
|
90
|
-
Platform ecosystems change, and user projects may already be customized. If this table disagrees with local files, use the actual settings/config in the user project as authoritative:
|
|
91
|
-
|
|
92
|
-
- Check the hook that settings registers.
|
|
93
|
-
- Check the script that a command/prompt/workflow points to.
|
|
94
|
-
- Judge behavior by the read rules currently written in the agent file.
|
|
95
|
-
|
|
96
|
-
Do not delete a custom file just because it is not listed in this path table.
|
|
97
|
-
|
|
98
|
-
### `.omp/` — Oh My Pi (OMP)
|
|
99
|
-
|
|
100
|
-
Extension-backed platform. OMP native provider auto-discovers all subdirectories.
|
|
101
|
-
|
|
102
|
-
```text
|
|
103
|
-
.omp/
|
|
104
|
-
├── commands/ # Slash commands (flat .md)
|
|
105
|
-
├── skills/ # Auto-triggered skills (SKILL.md per dir)
|
|
106
|
-
├── agents/ # Agent definitions (.md)
|
|
107
|
-
└── extensions/
|
|
108
|
-
└── trellis/
|
|
109
|
-
└── index.ts # Trellis extension (context injection)
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
No `settings.json` — OMP scans `.omp/` subdirectories automatically.
|
|
113
|
-
No Python hooks — hook-equivalent behavior lives in the TypeScript extension.
|
|
34
|
+
协作使用 `trellis teamwork` 或 `paseo-based-parallelism`。平台资产仅提供主会话接入,具体角色与节点见 `agents.md`。
|
|
@@ -9,7 +9,7 @@ Skills and commands are textual entry points for user interaction with Trellis.
|
|
|
9
9
|
| skill | AI auto-match or explicit user mention | Long-term capabilities, workflow rules, modification guides. |
|
|
10
10
|
| command | Explicit user invocation | Clear operation entry points such as continue and finish-work. |
|
|
11
11
|
| prompt | Explicit user invocation or platform selection | Similar to command, but in a platform prompt format. |
|
|
12
|
-
| workflow | Explicit user selection or platform auto-match | Guides the main session when no
|
|
12
|
+
| workflow | Explicit user selection or platform auto-match | Guides the main session when no startup hook exists. |
|
|
13
13
|
|
|
14
14
|
Trellis skills can cover reusable capabilities or dedicated workflow areas. Multi-file bundled skills such as `trellis-meta` keep supporting material in layered references.
|
|
15
15
|
|
|
@@ -32,7 +32,7 @@ If none of these apply, don't call `mem`. It is a tool, not a ceremony.
|
|
|
32
32
|
|
|
33
33
|
- The relevant context is already in the current turn, `prd.md`, `design.md`, recent `git log`, or the open files. `mem` is for stuff that has fallen out of immediate reach.
|
|
34
34
|
- The user is asking about a fact in the code, not a fact from a past conversation. `git log -p` / `grep` / reading the file directly is faster and more authoritative.
|
|
35
|
-
-
|
|
35
|
+
- An authorized teammate or delegated-agent work package already contains the relevant evidence and context. Read history only if the assigned question requires it; history does not expand the assignment or authorization.
|
|
36
36
|
- The user has explicitly said "don't dig through history, just answer what I asked".
|
|
37
37
|
|
|
38
38
|
## What to do with what `mem` returns
|
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
|
@@ -1,40 +1,61 @@
|
|
|
1
1
|
# 解决方案设计与收敛阶段流程
|
|
2
2
|
|
|
3
|
+
按所选方案尚未处置的交付风险确定深度,不沿用决策空间构造与归并阶段的篇幅。局部、可逆且可直接验收的任务只保留最短合同;共享契约、数据、权限、发布、回退或不可逆后果确有影响时,只展开受影响部分,即使只有一个可行机制。问实施者还须猜什么、哪一步删去后约束、验收和恢复仍成立,据此增删。证据确实排除了原风险可缩短;仅重开受影响阶段。
|
|
4
|
+
|
|
5
|
+
已启用覆盖校验的复杂路线,验收覆盖表逐项使用目标探索与需求核对阶段已接受的编号。`analysis_conclusion` 或 `no_go` 仍使用 `## 验收覆盖`,但只写 `接受条件 | 结论 | 证据`,证据指向任务内文件,不造实施工作包。整体请批前运行 `task.py phase preflight <task> --outcome-kind <结果> --result-ref <当前产物>`。该检查只读,不是接受或批准;另从未用于支持方案的实际失败或边界反查验证对象、预期、失败动作及关键子约束。区分当前论据和实施后才会有的回执,不要求提前执行。
|
|
6
|
+
|
|
7
|
+
若宿主要求在普通文本请求整体批准,且已做完独立工作,可在原生回合记录中声明 `waiting_authorization`,以 `--approval-result-ref`、`--approval-artifact-revision` 和适用的 `--approval-outcome` 显式绑定刚核验的候选;这不是普通设计提问的要求。已经接受实施合同但只差实施批准时保留接受事实,不为等待而回流。若内容、路线或上游证据改变,旧批准不能授权新候选。
|
|
8
|
+
|
|
3
9
|
核对有效的目标基线、决策空间构造与归并阶段结果或跳过记录及其 revision。按依赖筛选影响目标、范围、成功条件、用户偏好、风险承受或重要取舍的保留决定;使用 `pennix-decision-grill` 同步提问。答复到达后,核对其权限、当前 revision 和影响范围:影响目标或范围时回到目标探索与需求核对阶段,影响候选、标准或依赖时回到决策空间构造与归并阶段,仅改变当前候选中的方案时继续本阶段评估。待决定事项使解决方案设计与收敛阶段保持待决。
|
|
4
10
|
|
|
11
|
+
真实答复或解除证据先写回;当前阶段为 `waiting_user` 或 `blocked` 时,先原生 `phase resume`,再核对 revision、修订产物及接受。不能在等待态直接 accept/authorize,不能把普通设计答复当成实施批准;已有整体批准仍有效时沿原生接口继续,不重复索取。需要宿主规定的普通文本批准时,直接提出绑定当前合同的明确问题,而非只报告“等待确认”;独立且已授权的步骤继续。
|
|
12
|
+
|
|
5
13
|
比较适用方案,说明选择依据、重要后果、行为边界、责任、必要依赖、验证方式、停止与恢复条件及实质风险。对新颖核心机制、重大重构、跨组件边界变化或关键不确定性缺少可信本地先例的方案,在结果接受前完成有界 `prior-art review`,记录适用性、采纳或排除理由,或说明没有适用先例。外部材料改变候选、标准或依赖时回到决策空间构造与归并阶段。
|
|
6
14
|
|
|
15
|
+
用户答复、新证据、方案修订或复核发现后,重新筛选受影响的重要选择:是否出现新分支、前置是否满足、原决定是否仍有效。先保存真实答案及其影响,只重开受影响项;可查事实继续补证,用户取舍按依赖提问,不把问完原有列表或当前无就绪问题等同于方案完整。关键未知须有补证、用户决定、明确接受的剩余风险、延期或不继续等处置,不能静默排除。
|
|
16
|
+
|
|
7
17
|
判断当前结果:分析交付形成 `analysis_conclusion`;不继续形成 `no_go`;延期形成带责任方、触发条件和恢复位置的 `deferred`,留在解决方案设计与收敛阶段;实施路线形成 `implementation_contract`,明确目标、范围和接受条件,并按路线需要补足实施与核验信息。只有交付物具有独立实施或集成边界时才拆分工作包,并说明推进和协作所需的依赖、顺序、责任或集成信息;单一交付不人为拆分工作包。解决方案设计与收敛阶段的结果接受与实施授权分开记录;只有合同及明确批准均有效时,Trellis CLI 才允许进入任务实施与测试验证阶段。
|
|
8
18
|
|
|
9
19
|
合同结果已接受、实施尚未授权时,发现需要返修,应通过 `task.py phase return` 回到本阶段或更早受影响阶段,记录理由和证据。受影响的接受与授权随之失效;修订后重新接受当前产物,再核验实施授权。
|
|
10
20
|
|
|
11
21
|
接受 `implementation_contract` 前,在合同中建立 `## 验收覆盖` 表,表头为 `接受条件 | 工作包 | Owner | 验证入口 | 交付证据 | 停止条件`。逐条映射已接受条件,核对实际源码 owner、可运行验证、证据落点和停止条件;单一工作包可以覆盖多条条件。CLI 仅检查表结构及非空内容,不能代替语义审查。目标、合同、决策与执行记录分别使用明确的文件引用,执行细节追加到 execution 或 research,避免修改已接受的上游合同。
|
|
12
22
|
|
|
23
|
+
在新合同的 `## 实施步骤` 中用编号复选框表达顺序。统一写法:`- [ ] 1.1 动作|前置|完成证据|停止点`。按工作包分组,标清可独立推进的步骤;无前置时不虚构依赖。核对实际写入入口是否还需要原生确认、确认针对哪个目标及候选、何时需重新审阅。方案批准不授权越过原生保护。
|
|
24
|
+
|
|
13
25
|
逐项决定回答后,将已决目标、候选依据、接口与数据流、owner、依赖顺序、实施和验证,以及适用的迁移、发布、资源和失败恢复安排组织为一个完整方案。核对需求覆盖、跨产物一致性、可实施性和可验收性;有净收益时使用有界反例或压力测试,先修复可查缺口。向用户展示可识别的整体方案和实质剩余取舍后,再记录当前 revision 的接受及实施授权。逐项答复不自动等于整体批准;用户已充分明确批准整体方案时不重复索取。目标或候选问题回最早受影响阶段,局部方案问题在本阶段解决,不增设外部封口状态。
|
|
14
26
|
|
|
15
27
|
研究、原型和协作证据写回现有阶段产物、research 或 execution 自然落点,注明来源与版本、事实和假设、适用性、限制及决定影响。证据足够即停止扩搜;工具、报告或模板不能替代用户决定和 Trellis 原生接受事实。
|
|
16
28
|
|
|
29
|
+
草案可以用于讨论,但不能作为完整方案请求批准。候选不足或比较标准失效时,回决策空间构造与归并阶段;可查事实由代理补齐;仍有影响方案或验收的用户取舍时,留在本阶段按宿主允许的方式逐项提问,并依据回答更新方案。
|
|
30
|
+
|
|
31
|
+
请求整体批准前,落实已有独立复核:沿当前任务的一条实际失败或边界路径,核对负责人、可用资源、执行步骤、验收证据和停止条件,简短记录发现及处置。涉及发布安装时,核对本地验证、发布产物和实际运行身份的关系,不能只凭版本字符串认定同一产物。充分的整体接受和实施授权不重复索取;没有新发现时不追加轮次。
|
|
32
|
+
|
|
17
33
|
```mermaid
|
|
18
34
|
flowchart TD
|
|
19
|
-
input["核对需求基线与已接受的 DecisionSpace"] -->
|
|
35
|
+
input["核对需求基线与已接受的 DecisionSpace"] --> rescreen["复用已定事项,重新筛选重要分支、前置与未知处置"]
|
|
36
|
+
rescreen --> decisions{"存在尚待用户决定的实质取舍?"}
|
|
20
37
|
decisions -->|"是"| grill["pennix-decision-grill 同步询问;留在解决方案设计与收敛阶段"]
|
|
21
38
|
grill --> impact{"答复影响哪个范围?"}
|
|
22
39
|
impact -->|"目标或范围"| goal_exploration_and_requirements["回到目标探索与需求核对阶段"]
|
|
23
40
|
impact -->|"候选、标准或依赖"| decision_space_construction_and_merging["回到决策空间构造与归并阶段"]
|
|
24
|
-
impact -->|"
|
|
25
|
-
decisions -->|"
|
|
41
|
+
impact -->|"当前候选中的选择;保存答复后重算"| rescreen
|
|
42
|
+
decisions -->|"否;必要证据和未知已有处置"| compare["比较方案和重要后果"]
|
|
43
|
+
decisions -->|"前置或证据尚缺"| repair["补证或修订受影响方案"]
|
|
44
|
+
repair --> rescreen
|
|
26
45
|
compare --> prior{"触发 prior-art review?"}
|
|
27
46
|
prior -->|"是"| review["核验相关开源实现或公开提案并记录适用性"]
|
|
28
47
|
review --> changed{"外部证据改变候选、标准或依赖?"}
|
|
29
48
|
changed -->|"是"| decision_space_construction_and_merging
|
|
30
|
-
changed -->|"否"|
|
|
49
|
+
changed -->|"否"| newDecisions{"新证据出现未决重要分支?"}
|
|
50
|
+
newDecisions -->|"是"| rescreen
|
|
51
|
+
newDecisions -->|"否"| assess["独立复核完整性、风险、验证、恢复与关键发现处置"]
|
|
31
52
|
prior -->|"否"| assess
|
|
32
|
-
assess -->|"
|
|
53
|
+
assess -->|"有实质缺口;补证或修订后重算"| repair
|
|
33
54
|
assess -->|"analysis_conclusion 或 no_go"| reviewResult["Trellis CLI 接受解决方案设计与收敛阶段结果"]
|
|
34
55
|
assess -->|"deferred"| defer["记录恢复条件并留在解决方案设计与收敛阶段"]
|
|
35
56
|
assess -->|"implementation_contract"| contract["冻结必要实施合同"]
|
|
36
57
|
contract --> approval{"合同获接受且实施批准有效?"}
|
|
37
|
-
approval -->|"否"| wait["
|
|
58
|
+
approval -->|"否"| wait["直接问剩余必要决定或授权;仅暂停依赖动作,不进入实施"]
|
|
38
59
|
approval -->|"是"| task_implementation["Trellis CLI 核验并进入任务实施与测试验证阶段"]
|
|
39
60
|
reviewResult --> delivery_review_and_closeout["交付审查与现场收尾阶段"]
|
|
40
61
|
```
|