@pennixrv/trellis 0.7.2-beta.3 → 0.7.2-beta.30
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.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 +67 -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 +5 -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 +82 -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 +27 -1
- package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
- package/dist/templates/shared-hooks/inject-workflow-state.py +62 -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 +30 -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 +8 -78
- package/dist/templates/trellis/scripts/common/task_turn.py +514 -0
- package/dist/templates/trellis/scripts/common/task_workflow.py +380 -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 +48 -9
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: trellis-spec-bootstrap
|
|
3
|
-
description: "Bootstrap project-specific Trellis coding specs with a platform-neutral single-agent workflow. Use when creating or refreshing .trellis/spec guidelines, analyzing a codebase with
|
|
3
|
+
description: "Bootstrap project-specific Trellis coding specs with a platform-neutral single-agent workflow. Use when creating or refreshing .trellis/spec guidelines, analyzing a codebase with approved available tools or source inspection, decomposing package/layer spec work, and writing real codebase-backed spec docs without placeholder text."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Trellis Spec Bootstrap
|
|
@@ -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.
|
|
13
|
-
2. Analyze the repository
|
|
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
|
+
2. Analyze the repository with its approved, available code tools and usable indexes, language tooling, and direct source reads. Follow the host's current tool instructions; a tool name or existing index does not authorize installation or indexing.
|
|
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
|
|
|
@@ -22,13 +22,14 @@ Use this skill to create or refresh `.trellis/spec/` guidelines from the real co
|
|
|
22
22
|
| Repository architecture analysis | [references/repository-analysis.md](references/repository-analysis.md) |
|
|
23
23
|
| Spec work decomposition and task planning | [references/spec-task-planning.md](references/spec-task-planning.md) |
|
|
24
24
|
| Writing high-signal Trellis spec files | [references/spec-writing.md](references/spec-writing.md) |
|
|
25
|
-
|
|
|
25
|
+
| Approved analysis tool selection and setup boundaries | [references/mcp-setup.md](references/mcp-setup.md) |
|
|
26
26
|
|
|
27
27
|
## Operating Rules
|
|
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.
|
|
@@ -1,92 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Analysis Tool Setup Boundaries
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Spec bootstrapping uses the tools already approved and available for the target project. It does not require a particular graph, AST, MCP server, or host.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Select Existing Capabilities
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
1. Confirm the project root, current checkout, host-exposed tools, and any existing indexes.
|
|
8
|
+
2. For an approved project with a usable CodeGraph index, follow its native MCP instructions or CLI help for source and call-path exploration. Use other approved graph, AST, or language tools when they fit the question.
|
|
9
|
+
3. Verify the selected tool's project binding and freshness. An ancestor index, another worktree, or a known tool name does not establish permission or coverage for this checkout.
|
|
10
|
+
4. Use current source and tests directly when suitable analysis tooling is unavailable; state the limitation without blocking source-backed spec work.
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
## Setup Requires Separate Authorization
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
This skill does not authorize downloading executables, installing packages, changing MCP configuration, or creating or refreshing indexes. When preparation is explicitly authorized, use the component's existing native owner and the host's supported configuration interface. Do not add a second installer or copy tool protocols into project instructions.
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
# Run from the repository root.
|
|
15
|
-
npx gitnexus analyze
|
|
16
|
+
## Verify the Selected Surface
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
npx gitnexus status
|
|
18
|
+
After an authorized setup change, confirm the actual host can discover and use the selected interface and that results identify the expected project. File existence or a successful setup command alone does not prove MCP connectivity, current indexing, or host loading.
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
npx gitnexus analyze
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
The index is written to `.gitnexus/`. Keep embeddings only if the project already uses them; otherwise a normal index is enough for spec bootstrapping.
|
|
25
|
-
|
|
26
|
-
### MCP Server Command
|
|
27
|
-
|
|
28
|
-
Use this server command in the host's MCP configuration:
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
npx -y gitnexus mcp
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Useful Tools
|
|
35
|
-
|
|
36
|
-
| Tool | Purpose |
|
|
37
|
-
|------|---------|
|
|
38
|
-
| `gitnexus_query` | Find execution flows and functional areas by concept |
|
|
39
|
-
| `gitnexus_context` | Inspect callers, callees, references, and process participation for a symbol |
|
|
40
|
-
| `gitnexus_impact` | Understand blast radius before changing a symbol |
|
|
41
|
-
| `gitnexus_detect_changes` | Check changed symbols and affected flows before finishing |
|
|
42
|
-
| `gitnexus_cypher` | Run direct graph queries |
|
|
43
|
-
| `gitnexus_list_repos` | List indexed repositories |
|
|
44
|
-
|
|
45
|
-
## ABCoder
|
|
46
|
-
|
|
47
|
-
ABCoder parses code into UniAST and gives precise package, file, and node-level structure. Use it for signatures, type shapes, implementations, dependencies, and reverse references.
|
|
48
|
-
|
|
49
|
-
### Install
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
go install github.com/cloudwego/abcoder@latest
|
|
53
|
-
abcoder --help
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### Parse Repositories
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
abcoder parse /absolute/path/to/package \
|
|
60
|
-
--lang typescript \
|
|
61
|
-
--name package-name \
|
|
62
|
-
--output ~/abcoder-asts
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
For monorepos, parse each package with a stable `--name` so task notes can reference the same repository names.
|
|
66
|
-
|
|
67
|
-
### MCP Server Command
|
|
68
|
-
|
|
69
|
-
Use this server command in the host's MCP configuration:
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
abcoder mcp ~/abcoder-asts
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Useful Tools
|
|
76
|
-
|
|
77
|
-
| Tool | Layer | Purpose |
|
|
78
|
-
|------|-------|---------|
|
|
79
|
-
| `list_repos` | 1 | List parsed repositories |
|
|
80
|
-
| `get_repo_structure` | 2 | Inspect packages and files |
|
|
81
|
-
| `get_package_structure` | 3 | Inspect nodes within a package |
|
|
82
|
-
| `get_file_structure` | 3 | Inspect functions, classes, types, and signatures in a file |
|
|
83
|
-
| `get_ast_node` | 4 | Retrieve code, dependencies, references, and implementations |
|
|
84
|
-
|
|
85
|
-
## Verification
|
|
86
|
-
|
|
87
|
-
After an authorized configuration change, verify the selected MCP server from the agent host and run a simple query. Neither server is mandatory; unavailable tooling does not block a source-backed spec pass.
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
ls .gitnexus/meta.json
|
|
91
|
-
ls ~/abcoder-asts/*.json
|
|
92
|
-
```
|
|
20
|
+
Keep setup evidence separate from architectural conclusions. Record missing capabilities and continue with bounded source inspection when the task permits it.
|
|
@@ -6,8 +6,8 @@ The goal is to discover the project's real architecture before writing rules. Do
|
|
|
6
6
|
|
|
7
7
|
1. Read the existing `.trellis/spec/` tree and note which files are templates, outdated, or already project-specific.
|
|
8
8
|
2. Inspect package manifests, build scripts, workspace config, and top-level documentation to identify packages and runtime layers.
|
|
9
|
-
3. Use
|
|
10
|
-
4. Use
|
|
9
|
+
3. Use the project's approved code intelligence tools and usable indexes for execution flows, dependency hubs, and impact-sensitive areas. Check the returned project, checkout, and freshness before relying on relationships.
|
|
10
|
+
4. Use available language tooling and current source for exact signatures, types, class boundaries, and implementation examples.
|
|
11
11
|
5. Read representative source and test files directly before turning any finding into a spec rule.
|
|
12
12
|
|
|
13
13
|
## What To Capture
|
|
@@ -22,31 +22,11 @@ The goal is to discover the project's real architecture before writing rules. Do
|
|
|
22
22
|
| Configuration | Where do defaults, environment config, generated files, and templates live? |
|
|
23
23
|
| Tests | Which test styles are trusted examples for new work? |
|
|
24
24
|
|
|
25
|
-
##
|
|
25
|
+
## Tool and Source Evidence
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Use the host's native discovery, MCP instructions, and CLI help for the selected tool's protocol. For an approved project with a usable CodeGraph index, its native exploration can identify source spans and call paths; other approved tools may serve the same purpose. No particular tool is required by this workflow.
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
gitnexus_query({query: "CLI command execution flow"})
|
|
31
|
-
gitnexus_query({query: "template generation and migration"})
|
|
32
|
-
gitnexus_context({name: "SymbolName"})
|
|
33
|
-
gitnexus_cypher({query: "MATCH (n)-[r]->(m) RETURN n.name, type(r), m.name LIMIT 30"})
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Use GitNexus results to find important files and flows. Do not quote graph output as the final authority until you have checked the relevant source files.
|
|
37
|
-
|
|
38
|
-
## ABCoder Usage
|
|
39
|
-
|
|
40
|
-
Use ABCoder when the spec needs exact code shapes:
|
|
41
|
-
|
|
42
|
-
```text
|
|
43
|
-
list_repos()
|
|
44
|
-
get_repo_structure({repo_name: "package-name"})
|
|
45
|
-
get_file_structure({repo_name: "package-name", file_path: "src/example.ts"})
|
|
46
|
-
get_ast_node({repo_name: "package-name", node_ids: [{mod_path: "...", pkg_path: "...", name: "SymbolName"}]})
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
ABCoder is most valuable for documenting constructor patterns, function signatures, type contracts, and reference chains.
|
|
29
|
+
Start with package or symbol names, then inspect the relevant source and tests. Reuse current source spans already returned by a tool; verify omitted or stale material before making a rule. If an index is missing, stale, or bound to another checkout, record the limitation and use bounded source evidence. Do not install tools, create indexes, or query another project as a substitute for missing authorization.
|
|
50
30
|
|
|
51
31
|
## Analysis Notes
|
|
52
32
|
|
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 只提供只读证据。默认在当前阶段修复和验证,只有合同、授权、依赖、基线或接受条件实质失效且无法安全恢复时,才回到最早受影响的阶段。
|
|
@@ -2,18 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
开始前核验当前 `implementation_contract`、实施授权、路线 revision、必要依赖和执行基线。使用 `trellis-before-dev` 读取目标仓库实际适用的规范;按组件 owner 合同选择主工作树或已批准的独立写入路线。调用项目任务 `start` 只在实施授权有效时将任务置为 `in_progress`。
|
|
4
4
|
|
|
5
|
-
实施阶段为 `blocked` 或 `waiting_user`
|
|
5
|
+
实施阶段为 `blocked` 或 `waiting_user` 时,先记录真实答复或解除证据并经原生 `phase resume` 恢复,再重新核验准入与 revision,不在等待态直接接受结果。答案返回、单项验证通过或进度汇报不等于本轮结束;继续合同内独立且已授权的工作,只暂停依赖未决输入或失败前置的动作。宿主要求普通文本取得必要输入时,直接提出明确问题,不用等待声明代替提问。`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
|
|
|
11
|
+
在 `execution.md` 引用已批准步骤的编号。只有取得完成证据才勾选;失败、未运行或等待原生确认的步骤保留为未选,并记录原因及恢复条件。不要为登记执行进度修改合同。预览后的目标、内容或权限发生变化时停受影响的动作并核验,独立且仍获授权的步骤继续。
|
|
12
|
+
|
|
11
13
|
局部失败、暂时不可用或当前状态已满足接受条件时,先在任务实施与测试验证阶段中处理。依赖或资源暂不可用且现场安全时记录恢复条件;未授权不产生外部副作用;未知现场先停止并核验。合同允许未运行验证且风险可接受时,记录原因、影响和替代证据。替代路线若改变授权、成本、隐私或接受条件,回到解决方案设计与收敛阶段;目标、范围变化按影响回到目标探索与需求核对阶段或决策空间构造与归并阶段。只有合同范围内工作包均已接受、适用必需验证完成或有有效未运行处置、按范围和风险需要的集成验证通过,才将交付候选交由交付审查与现场收尾阶段;仅当路线实际创建或委派资源时,才核验其处置事实。
|
|
12
14
|
|
|
13
15
|
```mermaid
|
|
14
16
|
flowchart TD
|
|
15
17
|
contract["核验 implementation_contract、授权、revision 和依赖"] --> ready{"准入与实施授权有效?"}
|
|
16
|
-
ready -->|"否,待用户决定或依赖"| wait["
|
|
18
|
+
ready -->|"否,待用户决定或依赖"| wait["直接问必要决定或记录具体阻断;只暂停依赖动作"]
|
|
17
19
|
wait -->|"恢复后重新核验"| contract
|
|
18
20
|
ready -->|"是"| work["按合同依赖和优先级选取当前工作包"]
|
|
19
21
|
work --> implement["读取适用规范并实施最小变更"]
|
|
@@ -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 在现有 checkout 或独立 worktree 执行,管理输入、持续语境、恢复及 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,82 @@
|
|
|
1
|
+
# 主控操作合同
|
|
2
|
+
|
|
3
|
+
在父任务已授权的实施阶段委派完整工作包。使用项目原生 `task.py delegate-* --help` 核对参数;不手改 record、映射、输入或许可。Paseo 拥有原生 Agent、workspace、队列和 turn;Trellis 拥有批准包、目标、Git 校验和成果接受。一个 controller task 是控制权威,节点不创建第二套阶段状态。
|
|
4
|
+
|
|
5
|
+
## 先批准工作包,再绑定目标
|
|
6
|
+
|
|
7
|
+
读取 adapter 的 capability,固定实际支持的 Codex model、effort 和 `full-access` mode。sandbox、approval、reviewer、context 保留 `native_default`。固定角色为 `.trellis/agents/delegated-worktree-primary-agent.md`,节点方法为 `.trellis/agents/worktree-delegation-node.md`。可选 adapter 需要 Node >=22.16.0 和原生 SQLite 能力,基础 Trellis 不因此增加依赖。已安装 Lifecycle 时,写入准入使用 `pennix config paseo --json` 的唯一配置 home;不匹配或配置不可读时走 owner 原生修复,不绕过政策。
|
|
8
|
+
|
|
9
|
+
子任务维护 PRD、settings 和 requirements,通过原生 `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 不表示可以初始化、安装或索引。
|
|
10
|
+
|
|
11
|
+
在父合同的 artifact 中同时绑定 `delegation-packages.json`,再由原生阶段接受和授权。有据省略设计时,可将附件纳入已接受的需求 artifact;仍须取得原生实施授权。它是合同附件,不是第二套审批:
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"version": 1,
|
|
16
|
+
"packages": [{
|
|
17
|
+
"id": "component-fix",
|
|
18
|
+
"child_task_id": "子任务 task.json 的准确 id",
|
|
19
|
+
"target_mode": "directory",
|
|
20
|
+
"target_repo": "/absolute/component-checkout",
|
|
21
|
+
"execution_branch": "main",
|
|
22
|
+
"integration_branch": "main",
|
|
23
|
+
"contract_sha256": "子任务 prd.md 准确正文的 SHA-256",
|
|
24
|
+
"requirements_sha256": "子任务 requirements.json 准确正文的 SHA-256",
|
|
25
|
+
"dependencies": [],
|
|
26
|
+
"exclusive_resources": ["明确需要互斥的资源键"]
|
|
27
|
+
}]
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
dependencies 引用同附件中的稳定包 ID,形成无环依赖;只有确切 owner 接受的交付才能满足依赖。可选正整数 max_active 限制本父任务的活动 Agent 数量;不声明则不擅设数值。exclusive_resources 只表达显式互斥,不改释 requirements.resources,也不创建常驻调度器。
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
python3 .trellis/scripts/task.py delegate-bind <child> \
|
|
35
|
+
--target-mode directory --target-repo /absolute/component-checkout \
|
|
36
|
+
--integration-branch main --settings-ref settings.json \
|
|
37
|
+
--requirements-ref requirements.json --package-ref delegation-packages.json
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
省略 target-mode 时仍是 worktree;执行分支须尚不存在且不同于 integration。directory 复用准确现有 checkout,执行分支必须已经检出,可以等于 integration;不得额外创建源码树、切分支、reset 或 stash。第一次写入要求准确批准 HEAD 和干净源码,只排除已映射的合格候选报告。同一实际 git-dir 的实施 claim 跨控制根互斥,idle 或进程死亡都不自动释放。
|
|
41
|
+
|
|
42
|
+
binding format 3 固定包、父合同、子 PRD、设置、能力、角色、节点方法、setup、Git 身份与基线。资产或批准漂移后先停止新写入,不静默刷新 base。启动前核对项目原生 workspace setup/teardown,native autoArchiveAfterMerge 必须为 false,CLI 不代改配置。
|
|
43
|
+
|
|
44
|
+
## 建立身份、准备和持续实施
|
|
45
|
+
|
|
46
|
+
`delegate-start <child>` 先保存创建意图和预分配 Agent UUID,以不带 prompt 的公开接口创建身份;完整映射和稳定 locator 保存后才发送准备输入。恢复已映射但未发准备消息的 Agent 时仍用同一身份,不创建第二个实施者。
|
|
47
|
+
|
|
48
|
+
`delegate-wait <child> --timeout-ms 3600000` 使用原生等待;有独立工作时先推进。ready 与公开 timeline 的消费证据一致、必需能力无缺项时,wait 可自动发送已授权实施输入,无需用户接力。`delegate-start` 可继续同一准备现场;`delegate-execute` 是显式首轮入口,不能重复发送首轮。timeout、queued、idle 和旧 HEAD 都不表示本轮完成。
|
|
49
|
+
|
|
50
|
+
`delegate-followup <child> --instructions-ref <子任务内文件>` 在同一未变包内续接。同 Agent 正在运行时使用原生 queue,不默认 steer/interrupt;每次输入持久保存准确 prompt、messageId、冻结 context 和候选路径。input ID 就是原生 messageId。节点结果 version 2 按输入/实际批次保留,主控从完整公开 timeline 关联多输入到一个 turn;外部输入污染、缺页、epoch 不可恢复、未知发送和旧结果都阻止接受。no-op 仍需本轮证据。
|
|
51
|
+
|
|
52
|
+
超范围的新需求走独立批准任务或包。父合同整体冻结;修改父合同会撤销其旧绑定,不新增可变的包级权限。
|
|
53
|
+
|
|
54
|
+
正常包关闭后,同一控制根可在新绑定显式使用 `--reuse-task <旧子任务>` 复用语境。旧包须正常 owner 接受、原生运行关闭、输入全部已消费、队列与后台工作为空,并具有准确稳定 locator;checkout、运行设置、角色和节点方法必须匹配。新包仍重新准备,历史输入不覆盖。旧格式、配置不符或 quarantined Agent 不复用,也不私改 launchEnv。
|
|
55
|
+
|
|
56
|
+
## 未知结果和安全停止
|
|
57
|
+
|
|
58
|
+
`delegate-inspect` / `delegate-observe` 查准确现场。未知创建、发送或实例变化时,用 `delegate-reconcile --recover --workspace-id <完整 ID> --agent-id <预分配完整 UUID>` 预览;核对准确 labels、workspace、cwd 与 Git 后,显式 `--execute --reason ... --approval-ref ...` 保存重识证据。新格式未知发送只由准确队列/timeline 事实收敛,不接受自由文本声称已投递,不重放请求。旧格式的 delivery-evidence-ref 只服务原版本收尾,不补造新消息身份。
|
|
59
|
+
|
|
60
|
+
安全观察、映射恢复、停止和保全可在父授权撤销或 ownership/quiesce 后由准确原 owner/接手 owner 执行;它们不恢复实施许可。新实例必须重识同一 home 中的旧资源,不自动更新写入身份。历史其他 home 只能安全收尾。
|
|
61
|
+
|
|
62
|
+
`delegate-interrupt <child>` 停止准确 Agent,撤回本控制方准确排队 ID,按 item/token 停止可停止的 provider background work,再通过公开原生 MCP `kill_agent` 关闭运行态,保留未归档历史。already_dispatching 按已派发核对,not_found 不等于撤回成功;未知结果保留意图和 claim。不得撤回他人输入、delete 历史、按进程名清理或用 cancel 返回代替关闭证明。取消时有未消费/未知输入则隔离旧 Agent,即使后来撤回成功也不再复用。
|
|
63
|
+
|
|
64
|
+
创建仍在途时 interrupt 只登记取消要求,迟到映射不得触发准备或业务消息;随后按保存的准确资源恢复和关闭。从未创建的 bound 记录可直接 retained,无需为取消创建 Agent。
|
|
65
|
+
|
|
66
|
+
## 接受源码与核销
|
|
67
|
+
|
|
68
|
+
审查每个 Agent 提交、净差、准确 HEAD、dirty、检查和剩余事项。中途越界再还原仍拒绝;已批准依赖按准确提交及 owner 接受识别,不按作者猜测,不宽泛跳过 merge。directory 的源码已在批准分支,不假造 merge;worktree 先通过 owner 原生 merge/FF 集成,验证准确提交 ancestry,不默认 cherry-pick。根 gitlink 独立接受。
|
|
69
|
+
|
|
70
|
+
对新格式正常结果,在子任务写入准确接受文件,通过 acceptance-ref 引用:
|
|
71
|
+
|
|
72
|
+
```json
|
|
73
|
+
{"version":1,"attempt_id":"当前 attempt","binding_revision":"当前绑定","head_commit":"当前交付 HEAD","result_revision":"规范化排序 JSON 候选的 SHA-256"}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
预览的 evidence.acceptance_candidate 已给出这些准确字段;审查当前源码与候选后再保存为接受文件,不自行重算或把预览当作接受。
|
|
77
|
+
|
|
78
|
+
`delegate-reconcile --disposition integrated` 先预览,再用 `--execute --reason ... --approval-ref ... --writer-evidence-ref <当前外部 writer 证据> --acceptance-ref <准确接受文件>` 核销。所有应完成输入都须消费并有对应候选;队列、原生运行和后台 writer 必须关闭。执行核销通过原生 `kill_agent` 关闭运行态,保留未归档的历史和 checkout,不 delete。实施阶段接受前必须完成资源核销,idle 不足。
|
|
79
|
+
|
|
80
|
+
dirty 或半成品使用 `--disposition retained` 保全实际 HEAD/status,不要求合格 result;retained 不是成果接受。owner 后续接手完成源码时,可在有效授权内以 owner-result-ref 登记 version 1、kind=owner_result 的独立结果,包含准确 attempt、binding、base、head、changed_paths、source_commits、checks 和空 remaining,再显式请求 integrated;它不冒充旧 Agent 的消费/自检证据。
|
|
81
|
+
|
|
82
|
+
记录位于 ignored `.trellis/.runtime/delegation/<child>/`,冻结输入和稳定 Agent locator 也在 runtime;PRD、设计和 owner 接受证据仍在原生任务中。旧 binding/candidate 与 meta 记录保留原合同读取、核验和安全收尾,不用于新创建或猜造投递证明。完成、取消、转移、解绑、移动及重命名前收口资源;未知状态保留现场。第五阶段需要实施返工时,主控先返回有效授权的第四阶段。
|
|
@@ -12,8 +12,23 @@ 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
|
-
|
|
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 the Goal Exploration and Requirements Confirmation Phase baseline and recorded 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
|
+
|
|
21
|
+
Task lifecycle status, business phase and current implementation admission are separate. `in_progress` does not prove the current phase is implementation or that authorization survived a return. `task.py start` can bind the session without starting implementation. Read `phase show` and the lifecycle when the breadcrumb is absent or conflicts with the known task; an accepted closeout with no active phase still needs native `complete` or `cancel`. Resume from verified references without reloading unaffected history. `completed` and `cancelled` are terminal lifecycle states.
|
|
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.
|
|
28
|
+
|
|
29
|
+
When a real answer arrives or a blocker clears, record that evidence first. If
|
|
30
|
+
the current phase is `waiting_user` or `blocked`, run native `phase resume`
|
|
31
|
+
before refreshing artifacts or accepting results; then recheck the current
|
|
32
|
+
revision and authorization. An answered question, a passing local test or a
|
|
33
|
+
progress update is not a request-completion boundary. Continue independent
|
|
34
|
+
authorized work; pause only actions that depend on the unresolved input.
|
|
@@ -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
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
# Trellis Request Intake
|
|
2
2
|
|
|
3
|
-
Use this entry skill to route
|
|
3
|
+
Use this entry skill to route new input. Check it against the active task and its accepted artifacts:
|
|
4
|
+
|
|
5
|
+
- Supporting evidence that leaves the goal, constraints, acceptance criteria, basis for comparing candidates, and authorization intact belongs in the current phase's evidence records. Preserve accepted artifacts and continue the phase; do not stop at acknowledging the evidence.
|
|
6
|
+
- An explicit same-scope supplement is already an instruction to incorporate it, not a question about whether to include it. Update the current proposal, relevant verification and evidence, then continue. Do not ask for a new baseline just because text or supporting files changed. Revise an unaccepted candidate directly; keep accepted core contracts separate from mutable supporting records.
|
|
7
|
+
- A material change to any of those facts returns to the earliest affected phase. Pause only actions that depend on what changed. If the user also requests work whose scope is still clear and authorized, complete it before waiting for clarification about the change, unless workflow dependencies or explicit user instructions require waiting. Do not infer a pause from new evidence.
|
|
8
|
+
- Independent work needs its own intake. Do not put it into the active task, abandon that task, or bypass its ownership and acceptance gates.
|
|
9
|
+
|
|
10
|
+
To resume without new input, use trellis-continue and the current native task facts.
|
|
4
11
|
|
|
5
12
|
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
13
|
|
|
14
|
+
When an accepted contract already exists and the user now explicitly authorizes its implementation, record that actual approval and use the native authorization/start route. Do not reopen requirements or ask them to approve the same plan again. Genuine scope changes and native execution approvals remain separate.
|
|
15
|
+
|
|
16
|
+
Routine self-review and verification do not by themselves require a task. Where Codex turn evidence is active, record a verified bounded maintenance or edit as `bounded_reply --scope maintenance`, with references to the actual action and its verification, not as inspection or task completion. An unrelated active task keeps its own state.
|
|
17
|
+
|
|
7
18
|
## Start the task
|
|
8
19
|
|
|
20
|
+
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.
|
|
21
|
+
|
|
9
22
|
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
23
|
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
24
|
|