@pennixrv/trellis 0.7.2-beta.2 → 0.7.2-beta.20
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/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +105 -107
- 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 +1 -0
- package/dist/commands/teamwork/artifact.d.ts.map +1 -1
- package/dist/commands/teamwork/artifact.js +1 -1
- 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 +277 -22
- 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 +46 -4
- 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/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 +109 -55
- 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 +2 -99
- 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 +2 -0
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +72 -56
- 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.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/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 +2 -19
- package/dist/templates/codex/hooks/session-start.py +25 -30
- package/dist/templates/codex/hooks.json +0 -12
- 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 +7 -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 +2 -0
- package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/SKILL.md +2 -0
- 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/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 +14 -5
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/SKILL.md +6 -4
- 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 +1 -1
- 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 +17 -0
- package/dist/templates/common/commands/continue.md +8 -0
- 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 +5 -3
- 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/agents/trellis.json +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 +15 -3
- 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 +11 -51
- 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 +4 -10
- package/dist/templates/opencode/plugins/session-start.js +2 -6
- package/dist/templates/pi/extensions/trellis/index.ts.txt +8 -1432
- 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 +3 -70
- package/dist/templates/shared-hooks/index.js.map +1 -1
- package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
- package/dist/templates/shared-hooks/inject-workflow-state.py +18 -77
- 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 +20 -22
- package/dist/templates/trellis/agents/teammate.md +6 -2
- package/dist/templates/trellis/agents/worktree-delegation-node.md +24 -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 +3 -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 +1 -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/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 +42 -9
- package/dist/templates/trellis/scripts/common/task_move.py +2 -2
- package/dist/templates/trellis/scripts/common/task_runtime.py +211 -0
- package/dist/templates/trellis/scripts/common/task_store.py +8 -78
- package/dist/templates/trellis/scripts/common/task_workflow.py +9 -26
- package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
- package/dist/templates/trellis/scripts/common/workflow_selection.py +12 -2
- package/dist/templates/trellis/scripts/common/worktree_delegation.py +570 -0
- package/dist/templates/trellis/scripts/task.py +41 -2
- package/dist/templates/trellis/workflow.md +25 -10
- 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 +24 -0
- package/dist/utils/ablation-store.js.map +1 -1
- package/dist/utils/asset-backup.d.ts.map +1 -1
- package/dist/utils/asset-backup.js +25 -20
- package/dist/utils/asset-backup.js.map +1 -1
- 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 +26 -2
- 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/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 +235 -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
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
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
比较适用方案,说明选择依据、重要后果、行为边界、责任、必要依赖、验证方式、停止与恢复条件及实质风险。对新颖核心机制、重大重构、跨组件边界变化或关键不确定性缺少可信本地先例的方案,在结果接受前完成有界 `prior-art review`,记录适用性、采纳或排除理由,或说明没有适用先例。外部材料改变候选、标准或依赖时回到决策空间构造与归并阶段。
|
|
6
6
|
|
|
7
|
+
用户答复、新证据、方案修订或复核发现后,重新筛选受影响的重要选择:是否出现新分支、前置是否满足、原决定是否仍有效。先保存真实答案及其影响,只重开受影响项;可查事实继续补证,用户取舍按依赖提问,不把问完原有列表或当前无就绪问题等同于方案完整。关键未知须有补证、用户决定、明确接受的剩余风险、延期或不继续等处置,不能静默排除。
|
|
8
|
+
|
|
7
9
|
判断当前结果:分析交付形成 `analysis_conclusion`;不继续形成 `no_go`;延期形成带责任方、触发条件和恢复位置的 `deferred`,留在解决方案设计与收敛阶段;实施路线形成 `implementation_contract`,明确目标、范围和接受条件,并按路线需要补足实施与核验信息。只有交付物具有独立实施或集成边界时才拆分工作包,并说明推进和协作所需的依赖、顺序、责任或集成信息;单一交付不人为拆分工作包。解决方案设计与收敛阶段的结果接受与实施授权分开记录;只有合同及明确批准均有效时,Trellis CLI 才允许进入任务实施与测试验证阶段。
|
|
8
10
|
|
|
9
11
|
合同结果已接受、实施尚未授权时,发现需要返修,应通过 `task.py phase return` 回到本阶段或更早受影响阶段,记录理由和证据。受影响的接受与授权随之失效;修订后重新接受当前产物,再核验实施授权。
|
|
@@ -14,22 +16,29 @@
|
|
|
14
16
|
|
|
15
17
|
研究、原型和协作证据写回现有阶段产物、research 或 execution 自然落点,注明来源与版本、事实和假设、适用性、限制及决定影响。证据足够即停止扩搜;工具、报告或模板不能替代用户决定和 Trellis 原生接受事实。
|
|
16
18
|
|
|
19
|
+
请求整体批准前,落实已有独立复核,在现有产物简短说明关键反例、发现及处置。以当前任务的具体行为或交付物检验端到端可执行性与验收依据;涉及发布安装时,核对本地验证、发布产物和实际运行身份的关系,不能只凭版本字符串认定同一产物。发现未决重要选择就回到筛选,不为没有新发现的情况追加轮次;充分的整体接受和实施授权不重复索取。
|
|
20
|
+
|
|
17
21
|
```mermaid
|
|
18
22
|
flowchart TD
|
|
19
|
-
input["核对需求基线与已接受的 DecisionSpace"] -->
|
|
23
|
+
input["核对需求基线与已接受的 DecisionSpace"] --> rescreen["复用已定事项,重新筛选重要分支、前置与未知处置"]
|
|
24
|
+
rescreen --> decisions{"存在尚待用户决定的实质取舍?"}
|
|
20
25
|
decisions -->|"是"| grill["pennix-decision-grill 同步询问;留在解决方案设计与收敛阶段"]
|
|
21
26
|
grill --> impact{"答复影响哪个范围?"}
|
|
22
27
|
impact -->|"目标或范围"| goal_exploration_and_requirements["回到目标探索与需求核对阶段"]
|
|
23
28
|
impact -->|"候选、标准或依赖"| decision_space_construction_and_merging["回到决策空间构造与归并阶段"]
|
|
24
|
-
impact -->|"
|
|
25
|
-
decisions -->|"
|
|
29
|
+
impact -->|"当前候选中的选择;保存答复后重算"| rescreen
|
|
30
|
+
decisions -->|"否;必要证据和未知已有处置"| compare["比较方案和重要后果"]
|
|
31
|
+
decisions -->|"前置或证据尚缺"| repair["补证或修订受影响方案"]
|
|
32
|
+
repair --> rescreen
|
|
26
33
|
compare --> prior{"触发 prior-art review?"}
|
|
27
34
|
prior -->|"是"| review["核验相关开源实现或公开提案并记录适用性"]
|
|
28
35
|
review --> changed{"外部证据改变候选、标准或依赖?"}
|
|
29
36
|
changed -->|"是"| decision_space_construction_and_merging
|
|
30
|
-
changed -->|"否"|
|
|
37
|
+
changed -->|"否"| newDecisions{"新证据出现未决重要分支?"}
|
|
38
|
+
newDecisions -->|"是"| rescreen
|
|
39
|
+
newDecisions -->|"否"| assess["独立复核完整性、风险、验证、恢复与关键发现处置"]
|
|
31
40
|
prior -->|"否"| assess
|
|
32
|
-
assess -->|"
|
|
41
|
+
assess -->|"有实质缺口;补证或修订后重算"| repair
|
|
33
42
|
assess -->|"analysis_conclusion 或 no_go"| reviewResult["Trellis CLI 接受解决方案设计与收敛阶段结果"]
|
|
34
43
|
assess -->|"deferred"| defer["记录恢复条件并留在解决方案设计与收敛阶段"]
|
|
35
44
|
assess -->|"implementation_contract"| contract["冻结必要实施合同"]
|
|
@@ -9,11 +9,11 @@ Use this skill to create or refresh `.trellis/spec/` guidelines from the real co
|
|
|
9
9
|
|
|
10
10
|
## Workflow
|
|
11
11
|
|
|
12
|
-
1.
|
|
12
|
+
1. Reuse the current task and authorization. Inspect the current `.trellis/spec/` tree, configured package keys and spec source before changing anything. This skill does not authorize initialization, installation or indexing.
|
|
13
13
|
2. Analyze the repository architecture with the best available tools: GitNexus, ABCoder, language tooling, and direct source reads.
|
|
14
14
|
3. Decompose the spec work by package and layer only when that reflects the actual codebase.
|
|
15
|
-
4. Fill or reshape the
|
|
16
|
-
5. Verify
|
|
15
|
+
4. Classify pure placeholders, real conventions mixed into templates, and historical examples. Fill or reshape the authorized files with concrete project evidence; preserve real rules and historical task records.
|
|
16
|
+
5. Verify root/package navigation, active references, applicable checks and placeholder removal. Report file preparation separately from verified conventions and remaining evidence gaps.
|
|
17
17
|
|
|
18
18
|
## Reference Routing
|
|
19
19
|
|
|
@@ -28,7 +28,8 @@ Use this skill to create or refresh `.trellis/spec/` guidelines from the real co
|
|
|
28
28
|
|
|
29
29
|
- Treat templates as starting points, not contracts. Delete, rename, split, or add spec files when the repository calls for it.
|
|
30
30
|
- Prefer source-backed rules over generic advice. Every important recommendation should point at a real file or repeated local pattern.
|
|
31
|
-
-
|
|
31
|
+
- The main session owns this loop. This skill does not dispatch native helper agents or establish a collaboration route.
|
|
32
|
+
- Native `init` prepares missing navigation; it does not prove that spec content is useful. Ordinary existing-project reentry only repairs the missing root index, without recreating topics, guides or package mappings. An authorized source-backed refresh may still be required.
|
|
32
33
|
- Do not write platform-specific instructions unless the target project already standardizes on that platform.
|
|
33
34
|
- Do not leave placeholder text, empty headings, or copied boilerplate in `.trellis/spec/`.
|
|
34
35
|
|
|
@@ -38,4 +39,5 @@ Use this skill to create or refresh `.trellis/spec/` guidelines from the real co
|
|
|
38
39
|
- Each relevant package or layer has practical coding guidance with real examples.
|
|
39
40
|
- Non-applicable template sections are removed.
|
|
40
41
|
- `index.md` files match the final spec file set.
|
|
42
|
+
- Active task references remain valid; historical records and acceptance evidence retain their original bytes. Record deleted paths and their source commit instead of creating empty compatibility files.
|
|
41
43
|
- Any required setup or analysis assumptions are documented in the relevant spec or task notes.
|
package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-task-planning.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Spec Task Planning
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The main session performs this work under the current task's authorization. Reuse that task when applicable; this method does not start another task system or dispatch workers.
|
|
4
4
|
|
|
5
5
|
## Decomposition
|
|
6
6
|
|
|
@@ -48,14 +48,10 @@ Summarize the concrete findings from repository analysis.
|
|
|
48
48
|
- [ ] Claims are backed by source files, tests, or project docs.
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
##
|
|
51
|
+
## Existing Project Refresh
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
Inventory the actual files before selecting changes. An old index marked `To fill` does not prove that its topic files are empty. Keep source-backed rules and their conditions, including rules mixed into placeholder headings.
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
Use existing package keys, `default_package` and `spec_scope`; do not infer a new map from directory names. Keep valid legacy layers when they fit. Remove pure placeholders only after checking active references and explicit authorization. Preserve archived tasks and receipts; record the source commit and exact removed paths for historical lookup.
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
- Native helper write tasks require explicit project authorization and disjoint spec directories. Trellis Teamwork teammates remain in their research, review, or verification role and return findings in the assigned format; the coordinator applies accepted spec edits.
|
|
59
|
-
- Verification tasks should check placeholder removal, broken links, and consistency.
|
|
60
|
-
|
|
61
|
-
Do not encode helper-agent names, vendor-specific commands, or platform-specific routing in the skill. Put only the required work and acceptance criteria in the task.
|
|
57
|
+
Verify navigation and real content after edits. Missing analysis tools or source evidence must remain explicit limitations, not invented conventions. A native init/update success alone is not spec completion.
|
package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-writing.md
CHANGED
|
@@ -18,6 +18,8 @@ Use short snippets only when they make the rule clearer. Prefer linking to the f
|
|
|
18
18
|
Keep the spec tree aligned with the project:
|
|
19
19
|
|
|
20
20
|
- Keep `index.md` as the navigation file for the spec directory.
|
|
21
|
+
- Keep the root index and configured package indexes connected to the real
|
|
22
|
+
topic files. Do not assume frontend/backend layers or recreate deleted layers.
|
|
21
23
|
- Split topics when developers would look for them independently.
|
|
22
24
|
- Merge topics when separate files would repeat the same rule.
|
|
23
25
|
- Delete template files that do not apply.
|
|
@@ -25,6 +27,10 @@ Keep the spec tree aligned with the project:
|
|
|
25
27
|
|
|
26
28
|
## Content Standards
|
|
27
29
|
|
|
30
|
+
Use a minimal topic structure: scope, project conventions with source evidence,
|
|
31
|
+
and verification. For an empty project, record confirmed boundaries and pending
|
|
32
|
+
evidence; do not invent conventions or generate empty domain documents.
|
|
33
|
+
|
|
28
34
|
Good spec sections include:
|
|
29
35
|
|
|
30
36
|
- When the rule applies.
|
|
@@ -68,3 +74,5 @@ grep -R "To be filled\\|TODO: fill\\|placeholder" .trellis/spec
|
|
|
68
74
|
```
|
|
69
75
|
|
|
70
76
|
Also check links, index files, and whether any spec still describes a template rather than this repository.
|
|
77
|
+
|
|
78
|
+
Check active task bindings before moving or deleting a topic. Preserve archived examples as history, clearly distinguish them from current instructions, and do not rewrite historical acceptance evidence to make a current link check pass. Report which conventions were verified from which sources and what remains unverified.
|
|
@@ -5,6 +5,8 @@ description: 当前任务处于任务实施与测试验证阶段时,按已授
|
|
|
5
5
|
|
|
6
6
|
# 任务实施与测试验证阶段
|
|
7
7
|
|
|
8
|
+
按实际问题选用宿主已声明的诊断、检索或设计辅助方法;执行摩擦确需解释时可有界复盘,不能因此自动改环境。方法明确时直接使用,组合不清时按需读取可用总路由;完成证据后继续已授权工作,不增加可选集合依赖或重问已定选择。
|
|
9
|
+
|
|
8
10
|
当 `current_phase_id` 为 `task_implementation` 时使用。先阅读本 Skill 同目录的 `workflow.md`,再加载目标仓库适用的 `AGENTS.md`、Trellis spec 和实现合同。
|
|
9
11
|
|
|
10
12
|
按合同依赖和优先级逐项实施;主工作树主代理负责阶段接受和集成。只在执行路线获准时使用 Paseo 委派写入;Trellis Teamwork teammate 只提供只读证据。默认在当前阶段修复和验证,只有合同、授权、依赖、基线或接受条件实质失效且无法安全恢复时,才回到最早受影响的阶段。
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
实施阶段为 `blocked` 或 `waiting_user` 时,先解决阻塞并经原生 `phase resume` 恢复,再重新核验准入。`delegate-start` 核验父任务已有的 ownership 围栏和子任务状态;存在未消费交接、当前会话不符合已有 ownership 记录,或子任务已完成、取消时,不启动或复用委派执行。没有 ownership 记录的任务不具备默认会话独占保护。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
父授权有效且本轮允许委派写入时,先加载 `trellis-worktree-delegation`,通过其原生新协议入口冻结明确目标、设置与能力要求,再准备、核验 ready、执行和观察。委派节点沿 `TRELLIS_DELEGATION_CONTEXT` 与共享节点方法执行本包,不进入主控阶段或新建任务。输入漂移先保全并核对授权;未知创建或发送只做原生 inspect 和显式 recover,不覆盖映射或重放。结果由 owner 审查并在目标分支 merge/FF,验证 ancestry 后再显式核销;idle/cancel 不替代 writer 停止证据。
|
|
8
8
|
|
|
9
9
|
按合同的依赖和优先级选取当前工作包,实施满足目标的最小变更,并运行与风险和影响相称的局部验证。主工作树主代理核对来源、revision、Git 基线、差异和结果后接受工作包。多包任务按合同集成;单一交付不人为拆分。Trellis Teamwork 仅用于冻结计划下的只读比较或评议,不能改写任务状态或接受实施结果。实际写入委派依父任务规定使用 Trellis 受控入口与 Paseo;各组件源码仍在 owner 仓库内修改。
|
|
10
10
|
|
|
@@ -5,6 +5,12 @@ description: Use Trellis Teamwork for live multi-agent collaboration, Teamwork S
|
|
|
5
5
|
|
|
6
6
|
# trellis-teamwork
|
|
7
7
|
|
|
8
|
+
Mechanism: **Trellis Teamwork** (Trellis 团队协作). One executor is a
|
|
9
|
+
**Trellis teammate**; plural **Trellis teammates** (Trellis 团队成员).
|
|
10
|
+
**Paseo-based-parallelism** (Paseo 并行协作) and its **Paseo delegated-agent**
|
|
11
|
+
(Paseo 委派 Agent) are a separate implementation mechanism and executor role.
|
|
12
|
+
Sessions, worktrees, nodes and attempts retain their own object names.
|
|
13
|
+
|
|
8
14
|
`trellis teamwork` is the local multi-agent collaboration runtime. A
|
|
9
15
|
Teamwork Session is the persistent chat or forum object used by the runtime;
|
|
10
16
|
it is independent from the Trellis task lifecycle and does not own business-phase progress.
|
|
@@ -52,9 +58,10 @@ trellis teamwork context list <session> --scope global --thread <thread>
|
|
|
52
58
|
## Core Rules
|
|
53
59
|
|
|
54
60
|
- Teammates provide research, review, verification, evidence, and advice under a role contract; they do not implement product code. Coding tools or provider permission modes do not grant that role authority. Return results in the assigned format and let the coordinator review them.
|
|
61
|
+
- Trellis teammates do not ask the user directly or require a user-question tool. Return missing input, limitations, unresolved choices or contract-valid blocked reports to the main agent; the main agent first resolves evidence and allocation before deciding whether a user choice is needed.
|
|
55
62
|
- `general`, `advisor`, and `committee` are coordination modes, independent from profiles, providers, `run`, batch execution, and forum sessions. Read project defaults with `teamwork config`; construct a frozen plan with `teamwork plan` and execute it with `teamwork batch --task <task-dir>`.
|
|
56
63
|
- For a managed batch, invoke one foreground `teamwork batch --json` command and wait for its receipt. The CLI owns FIFO admission, capacity, provider waits, retries, cancellation, report validation, and settlement; the main agent must not schedule per-assignment waits or retries.
|
|
57
|
-
- If the host yields that call, silently continue its original handle. Do not emit repetitive progress, query status, start unrelated work, or create another batch.
|
|
64
|
+
- If the host yields that call, silently continue its original handle. Do not emit repetitive progress, query unrelated status, start unrelated work, or create another batch. If the handle is unavailable, use `teamwork reconcile <original-plan> --task <task-dir> --wait 30` to observe that same batch read-only. A pending snapshot permits another bounded observation; a yielded observation continues its own handle. Neither path redispatches, extends the original deadline, releases capacity, or accepts reports. Codex's native projection and supported PreToolUse guard provide the recovery locator; they do not prevent model wake-ups or ordinary messages. After coordinator loss, use explicit native reconciliation and retain reservations until provider exit is proven.
|
|
58
65
|
- Agent/program callers must use `run --json`, `batch --json`, or `wait --json --from <worker>` for final results. Default run text and default wait events are compatibility/operator views. Read `execution`, every `reports[].validation` and content status, then perform semantic review; `done`, exit zero, `complete`, and `ALL_ACCEPTED` alone do not accept a task result. `semanticValidation: not_run` explicitly leaves that decision to the main agent.
|
|
59
66
|
- Tool permissions are automatically allowed; the default Codex launch has no sandbox. Source/Git, memory, and delegation boundaries are prompt obligations. Do not add tool/path permission gates or describe the role as technical isolation.
|
|
60
67
|
- Initialization carries common/professional rules and the mode-specific result contract. Task messages carry task data, acceptance and exact identity/path references. Context manifests may choose inline, required full reading, or on-demand references; reference text never becomes system instructions. ACP has user content only and cannot claim system priority.
|
package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md
CHANGED
|
@@ -125,12 +125,32 @@ with `--confirm <preview-digest>` deletes those files; a changed preview or an
|
|
|
125
125
|
unresolved reservation is rejected. Read and accept needed evidence before
|
|
126
126
|
cleanup. Session removal alone does not delete task-owned attempt evidence.
|
|
127
127
|
|
|
128
|
+
For a managed batch whose original host handle is unavailable, use
|
|
129
|
+
`teamwork reconcile <original-plan> --task <task-dir> --wait 30`. The observation
|
|
130
|
+
budget is an integer from 1 to 60 seconds, not an extension of the batch deadline.
|
|
131
|
+
The JSON `mode: observe` result binds the original identity and deadline.
|
|
132
|
+
`outcome: pending` permits another bounded observation; `settled` contains the
|
|
133
|
+
durable receipt and the ordinary batch `result`, including report artifacts and
|
|
134
|
+
pending semantic review. A terminal transition without its receipt stays pending.
|
|
135
|
+
`reconciliation_required` directs explicit recovery; `blocked` describes missing
|
|
136
|
+
proof. Observation never launches a provider, acquires execution capacity, writes
|
|
137
|
+
coordination events, cancels the batch or accepts a report. Interrupting the
|
|
138
|
+
observer only ends observation. Resume its own continuation if the host yields;
|
|
139
|
+
if that handle is also lost, repeat the read-only observation. Do not search
|
|
140
|
+
private host histories, disable hooks, replay batch or manually edit projections
|
|
141
|
+
as the default recovery path. Old projections without locators still require the
|
|
142
|
+
original plan/task; unknown identities cannot be reconstructed automatically.
|
|
143
|
+
|
|
128
144
|
Use `teamwork reconcile <original-plan> --task <task-dir>` to preview recovery
|
|
129
145
|
after coordinator loss. `--execute --reason <disposition>` only settles when
|
|
130
146
|
native process-exit facts or process birth identity prove termination. A missing
|
|
131
147
|
PID, absent report, or dead coordinator alone is insufficient. This command
|
|
132
148
|
preserves accepted assignments and releases only the original batch's leases.
|
|
133
|
-
It does not restart providers or accept task results.
|
|
149
|
+
It does not restart providers or accept task results. When the original
|
|
150
|
+
reservation proves the coordinator has exited, preview can describe recovery
|
|
151
|
+
from RUNNING without writing a transition; explicit execute reuses the existing
|
|
152
|
+
reconciliation bridge. A live or unverifiable owner cannot be taken over.
|
|
153
|
+
`--wait` cannot be combined with execute, reason or unknown-exit confirmation.
|
|
134
154
|
|
|
135
155
|
After a durable failed settlement and explicit bounded retry approval, construct
|
|
136
156
|
`teamwork retry <original-plan> --task <task-dir> --output <new-plan> --batch <new-id>
|
|
@@ -96,6 +96,13 @@ closes admission, marks undispatched FIFO work `FINAL_FAILED`, then cancels and
|
|
|
96
96
|
drains active attempts. Confirmed outcomes settle as `SETTLED_WITH_FAILURE`;
|
|
97
97
|
unconfirmed process exit requires reconciliation.
|
|
98
98
|
|
|
99
|
+
If the host handle becomes unavailable, observe only that original frozen plan
|
|
100
|
+
with `trellis teamwork reconcile <plan> --task <task-dir> --wait 30`. This is
|
|
101
|
+
bounded read-only recovery, not another batch or a new execution deadline.
|
|
102
|
+
Only a verified durable receipt exposes a settled result; reports still need
|
|
103
|
+
main-agent review. Coordinator loss follows explicit reconciliation and never
|
|
104
|
+
proves provider termination by itself.
|
|
105
|
+
|
|
99
106
|
A valid `blocked` report with evidence ends only that assignment as
|
|
100
107
|
`FINAL_FAILED`; the CLI continues with the remaining FIFO work and preserves
|
|
101
108
|
the blocker report. Missing reports may use the assignment's declared retry
|
|
@@ -197,8 +204,12 @@ answer. Retention may remove failed-attempt artifacts. Main-agent semantic
|
|
|
197
204
|
review checks the answer and evidence against the acceptance criteria; shape
|
|
198
205
|
validation does not perform that review or change native task acceptance.
|
|
199
206
|
|
|
200
|
-
The coordinator returns `ALL_ACCEPTED`, `SETTLED_WITH_FAILURE`, or
|
|
201
|
-
`RECONCILIATION_REQUIRED`. For `
|
|
207
|
+
The coordinator returns `AWAITING_REVIEW`, `ALL_ACCEPTED`, `SETTLED_WITH_FAILURE`, or
|
|
208
|
+
`RECONCILIATION_REQUIRED`. For `AWAITING_REVIEW`, read every report and its
|
|
209
|
+
evidence, limitations and unresolved items, then use `trellis teamwork review`
|
|
210
|
+
with the exact task, batch and assignment identity (see `review --help`).
|
|
211
|
+
Accept or request rework through that native interface; do not edit receipts.
|
|
212
|
+
For `ALL_ACCEPTED`, review every accepted report
|
|
202
213
|
against the phase contract, record the evidence in the task-owned artifact, and
|
|
203
214
|
use the native task acceptance gate before advancing. For
|
|
204
215
|
`SETTLED_WITH_FAILURE`, review the failure reports and blockers, do not accept
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: trellis-worktree-delegation
|
|
3
|
+
description: 在 Trellis 已授权实施阶段,把完整结果包交由同机 Paseo 独立工作树执行,管理绑定、准备、返工、恢复及 owner 集成;不用于 Teamwork 只读审查或普通研究。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Paseo 并行协作(Paseo-based-parallelism)
|
|
7
|
+
|
|
8
|
+
执行者称为 Paseo 委派 Agent(Paseo delegated-agent;复数 Paseo delegated-agents)。Trellis 团队协作(Trellis Teamwork)的执行者称为 Trellis 团队成员(Trellis teammate;复数 Trellis teammates)。两类机制、执行者和运行对象分别命名;本 Skill 的原生命名与 `task.py delegate-*` 命令保持不变。
|
|
9
|
+
|
|
10
|
+
先读取 [操作合同](workflow.md)。此入口只编排已批准的完整工作包;任务阶段、授权和接受由主控 Trellis 维护,workspace、agent 和 provider thread 由 Paseo 维护。Teamwork 用于有界只读研究或审查,不获得源码实施权。
|
|
11
|
+
|
|
12
|
+
主控按依赖与包大小选择可同时推进的结果包;不为每个普通实现步骤另建委派。目标可为独立仓库、submodule 或 linked worktree,可没有 Trellis。不要复制全局 AGENTS、安装目录或主控整个上下文。必要方法通过明确只读引用提供;没有目标项目资产不构成自动初始化许可。
|
|
13
|
+
|
|
14
|
+
原生 `task.py delegate-*` 负责校验绑定与当前父授权;可选 `trellis-paseo-adapter` 只通过公开 SDK 操作同机 daemon。缺包、版本、身份或必需能力不符时停止相应动作,沿 Lifecycle 修复;不调用旧 start、不换 host/provider、不把弱角色提示词当兼容模式。创建/发送结果不明时 inspect 并核验原生资源,使用显式 recover 接回,不能重放未知操作。
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# 主控操作合同
|
|
2
|
+
|
|
3
|
+
使用项目原生 `python3 .trellis/scripts/task.py <command> --help` 核对参数。先核对父任务有效实施合同、父子链接、owner、当前路线的 Lifecycle/Paseo/Git 准入及证据。一个 controller task 是控制权威;节点不创建第二套阶段状态。
|
|
4
|
+
|
|
5
|
+
1. 读取 adapter 的 capability(有界 stdin JSON `version=1, operation=capability, daemon_selector={}, payload={cwd:目标绝对路径}`),从实际可用 Codex 模型解析默认值并固定显式 model/effort。使用 mode `full-access`,sandbox/approval/reviewer/context 保留 `native_default`。固定角色为 `.trellis/agents/delegated-worktree-primary-agent.md`,节点方法为 `.trellis/agents/worktree-delegation-node.md`;两包共用同版正文。
|
|
6
|
+
2. 在子任务记录 PRD、`settings.json`、`requirements.json`,通过原生 `task.py set-branch` 设置不存在的执行分支。settings 含 version=1、provider=codex、model、effort、mode=full-access;可指定同机 daemon_home。requirements 含 version=1、非空 allowed_paths、forbidden_paths、required_rules/required_skills/required_tools/checks/resources 字符串数组、可选 setup_ref、teamwork_permission(none/read_only)。声明准确来源、工具真实探测、测试端口/数据库等资源;setup_ref 指向已授权的原生准备动作。禁止副作用隐藏在 setup 中。
|
|
7
|
+
3. `delegate-bind <child> --target-repo <确切 checkout> --integration-branch <owner 分支> --settings-ref settings.json --requirements-ref requirements.json` 使用 binding format 2 冻结 PRD、角色、节点方法、可选 setup 正文、设置与能力哈希、base、目标 Git 身份及父授权。派发与节点读取同时检查当前批准输入和 attempt 冻结快照;投影的正文引用不再指向主控实时文件。旧不完整绑定只能核验、取消及保全,核销后重新绑定,不静默升级。target 与 controller 可不同;integration 是该目标 owner 分支。主控在启动前检查项目原生 workspace setup/teardown,不允许未经批准的脚本;原生 autoArchiveAfterMerge 必须为 false。CLI 不修改 daemon 配置。
|
|
8
|
+
4. `delegate-start <child>` 先持久化创建 intent,再创建 workspace 和 prepare agent。只授予准备许可;观察 native resources 与 bounded ready,核对当前源码 HEAD、完整必需能力、实际模型/effort/mode;不能只凭节点自报或 idle 就接受。主控检查 `delegate-inspect` 后,`delegate-execute` 发送实施指令。有并行包时分别准备、执行,按真实依赖集成后再派下游。
|
|
9
|
+
5. `delegate-wait <child> --timeout-ms 3600000` 使用原生等待;主控还有独立工作就先推进。没有其他工作时持续原生等待,timeout 不是完成或批准。observe/inspect 不改结果接受;`delegate-followup --instructions-ref <子任务内文件>` 返工前重核当前绑定与实际设置。interrupt 仅请求取消,不证明 writer 已停止。
|
|
10
|
+
6. 压缩/新主控恢复先 inspect,沿当前 task/binding/attempt/native ID 续接。未知创建使用 `delegate-reconcile --recover --workspace-id <完整ID> [--agent-id <完整ID>]` 预览,核验准确原生 workspace、cwd、Git common/branch/base、agent 标签后,显式 `--execute --reason ... --approval-ref ...` 接回。未知发送/取消还需要 `--delivery-evidence-ref`,引用主控实际检查的原生 timeline/turn 证据;不得把 idle 当交付证明。workspace 已映射而尚未发起 agent 时,恢复后 `delegate-start` 仅创建尚未发起的 agent。未知 agent 创建必须先找到准确 ID,不能再创建一个。
|
|
11
|
+
若原生验证明确在创建前拒绝 agent,且包含后台/归档的全量检查确认没有当前 attempt agent,可使用 `--delivery-evidence-ref` 提交主控核验的原生拒绝与未创建证据,显式恢复到 workspace_created。仅“当前列表没看到”不充分;发现匹配 agent 时必须映射准确 ID,未知结果保留现场。
|
|
12
|
+
7. owner 审查 result 的真实 commits/diff/checks、范围和控制面未被改动,依赖结果只能在集成后作为当前树事实。通过目标 owner 原生 merge/FF 集成,验证 accepted HEAD 是目标 integration branch 的祖先;禁止默认 cherry-pick。根侧 gitlink 集成单独记录。
|
|
13
|
+
8. `delegate-reconcile --disposition integrated` 预览;确认原生 agent 无 active turn、结果和接受证据、源码保全、后台 writer 与测试服务已停后,使用 `--execute --reason ... --approval-ref ... --writer-evidence-ref <子任务内证据>` 核销。取消可用 retained,保留实际 checkout/HEAD/status 和候选;没有结果时也必须保留源码,不销毁未知 writer。核销仅结束控制记录,不自动 archive/delete。资源删除由原生 owner 另按已批准处置执行。
|
|
14
|
+
|
|
15
|
+
退休尝试不能 execute/followup。父授权失效或输入漂移后,禁止准备、执行、返工、重新接管和 integrated 接受;已绑定身份下的 inspect/observe/interrupt 与 `reconcile --disposition retained` 仍可核验和保全旧资源,不刷新写许可。未知创建或发送保持现场,原生紧急取消不替代停止证据。正常先核销再离开第四阶段;第五阶段需要实施返工时由主控返回有效授权的第四阶段。
|
|
16
|
+
|
|
17
|
+
新协议记录在 ignored `.trellis/.runtime/delegation/<child>/`;任务 PRD 和实施/接受证据仍在原生任务中。不要手写 record、映射或许可。旧 meta 记录只供旧 reconciliation/闭合,不能作为新协议启动成功证据。完成、取消、转移、解绑、移动及重命名前应核销活动委派;遇未知状态保留资源并报告。
|
|
@@ -12,8 +12,16 @@ Resume from the active Trellis task and its current phase. The task record and p
|
|
|
12
12
|
|
|
13
13
|
Follow the active phase breadcrumb to the matching bundled phase Skill and its workflow.md. Use the task CLI to inspect or change phase state. A resume does not itself accept an artifact, grant authorization, or move the task.
|
|
14
14
|
|
|
15
|
+
Without hook context, use `{{PYTHON_CMD}} ./.trellis/scripts/task.py phase show <task>`
|
|
16
|
+
and explicitly read the applicable spec indexes and guidelines. If the route is
|
|
17
|
+
missing, inspect recorded requirements and authorization, choose the ordered
|
|
18
|
+
phases with evidence for omissions, then initialize through the native CLI.
|
|
19
|
+
Reuse existing confirmations; resume only the known unfinished action.
|
|
20
|
+
|
|
15
21
|
Task lifecycle status and business phase are separate. A planning task may remain in Goal Exploration and Requirements Confirmation Phase, Decision Space Construction and Consolidation Phase, or Solution Design and Convergence Phase. `in_progress` marks authorized Task Implementation and Test Verification Phase; `completed` and `cancelled` are terminal lifecycle states. Delivery Review and On-Site Closeout Phase remains explicit.
|
|
16
22
|
|
|
17
23
|
## Phase operations
|
|
18
24
|
|
|
25
|
+
Resume the known unfinished action first. Reassess auxiliary methods only when the problem, phase, or available capabilities have changed; reuse still-valid Skill bodies and decisions. Select relevant host-declared methods directly, or use an available workflow router for unclear combinations. Do not restart discovery, preload a collection, infer paths from old summaries, or repeat settled questions. Auxiliary methods do not change task state or action permissions.
|
|
26
|
+
|
|
19
27
|
Use the native task CLI for phase artifact revisions, acceptance, evidence-backed skips, waiting, blocking, resuming, returning to an earlier phase, route changes, implementation authorization, completion, and cancellation. Read task.py help for current arguments. Do not create a second status record or use formal session handoff to resume task work.
|
|
@@ -12,6 +12,8 @@ Read the applicable spec indexes before editing code. The active phase breadcrum
|
|
|
12
12
|
|
|
13
13
|
## Route the current request
|
|
14
14
|
|
|
15
|
+
After identifying the request and native phase, select only host-declared auxiliary Skills that fit the current problem. Direct matches need no router; unclear combinations or responsibilities may use an available workflow router. Do not preload all methods or require a particular optional collection. Reuse valid decisions and authorization, and return method results to the current request or phase.
|
|
16
|
+
|
|
15
17
|
- New request: use `trellis-request-intake` to determine whether it changes the current goal, is independent work, or qualifies for the taskless route. Reuse existing authorization and evidence.
|
|
16
18
|
- Task with no initialized route: inspect its current requirements, choose the applicable ordered phases with evidence for omissions, then initialize the route through task.py phase init.
|
|
17
19
|
- Goal Exploration and Requirements Confirmation Phase: load `trellis-goal-exploration-and-requirements`. Do not leave until the user confirms the current requirements artifact revision.
|
|
@@ -14,7 +14,9 @@ Execute these steps:
|
|
|
14
14
|
- What type of work (backend, frontend, unit-test, docs, etc.)
|
|
15
15
|
- Any spec/research paths referenced by the task artifacts
|
|
16
16
|
|
|
17
|
-
4. **Read the spec index
|
|
17
|
+
4. **Read the available spec indexes**: `.trellis/spec/index.md`, then
|
|
18
|
+
`.trellis/spec/<package>/index.md` for the affected configured packages,
|
|
19
|
+
and existing layer indexes where applicable. Older projects need no migration:
|
|
18
20
|
```bash
|
|
19
21
|
cat .trellis/spec/<package>/<layer>/index.md
|
|
20
22
|
```
|
|
@@ -19,7 +19,9 @@ Read the current native phase, accepted contract and its actual artifact referen
|
|
|
19
19
|
python3 ./.trellis/scripts/get_context.py --mode packages
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Read the available `.trellis/spec/index.md`, affected configured package
|
|
23
|
+
indexes (`.trellis/spec/<package>/index.md`), and existing layer indexes.
|
|
24
|
+
Follow their **Quality Check** sections; older projects need no migration:
|
|
23
25
|
|
|
24
26
|
```bash
|
|
25
27
|
cat .trellis/spec/<package>/<layer>/index.md
|
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Use this entry skill to route a new request. First check its relationship to the active task: a change to the same goal returns to the earliest affected phase; independent work needs its own intake. Do not put unrelated work into the active task or bypass its ownership and acceptance gates. To resume existing work, use trellis-continue and the current native task facts.
|
|
4
4
|
|
|
5
|
-
Reuse verified evidence and existing authorization.
|
|
5
|
+
Reuse verified evidence and existing authorization. Follow the taskless route in workflow.md only when all of these are true: the goal is clear; the scope and owner are bounded; risk is controlled; the user has authorized the actual action; success can be verified in the current session; and the work needs no persistent route, coordination, design, review, release, installation, migration, external delivery, or dedicated rollback plan. A bounded irreversible action additionally needs exact target verification, an acceptable recovery or loss boundary, and a stop condition. User authorization alone is not sufficient. Read-only inspection, bounded diagnosis, low-impact native-owner maintenance or cleanup, small single-surface edits, and rerunning existing checks are examples, not an allowlist. Intake ends when the request reaches its appropriate phase; do not repeat session initialization or conduct a second requirements or planning workflow here.
|
|
6
6
|
|
|
7
7
|
## Start the task
|
|
8
8
|
|
|
9
|
+
Choose auxiliary methods from the host's available Skills according to the actual business problem, including taskless requests. A clear match goes directly to that Skill; combinations or unclear ownership may use an available workflow router. Do not require the user to name a method, preload a collection, or create a task merely to use one. Method output returns to this intake or the current phase; it does not grant action permissions or replace Trellis acceptance and authorization.
|
|
10
|
+
|
|
9
11
|
1. Inspect only evidence that can change the goal, scope, acceptance criteria, constraints, or route. Ask the user only for missing intent or a material user choice; use the project's decision method when needed.
|
|
10
|
-
2.
|
|
12
|
+
2. When the work needs a persistent route, coordination, design, review, release, installation, migration, external delivery, or a durable record, treat it as task-based. If the user did not explicitly ask to create a task, stop before the create command and ask for creation approval. State which taskless condition is not met, the proposed owner/scope/route, and the risk of proceeding without a task. An explicit user request to create or resume a task is already authorization for that lifecycle action only; it does not authorize implementation or delivery:
|
|
11
13
|
|
|
12
14
|
{{PYTHON_CMD}} ./.trellis/scripts/task.py create "<title>" --description "<summary>"
|
|
13
15
|
|
|
14
|
-
3.
|
|
16
|
+
3. After creation approval, initialize an ordered phase route that includes Goal Exploration and Requirements Confirmation Phase, then only the later phases the task needs:
|
|
15
17
|
|
|
16
18
|
{{PYTHON_CMD}} ./.trellis/scripts/task.py phase init <task> --task-kind <analysis|implementation|combined> --complexity <simple|standard|complex> --project-context <new|existing> --phase-ids <ordered-phase-ids>
|
|
17
19
|
|