@mindfoldhq/trellis 0.6.0 → 0.6.2

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.
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.6.1",
3
+ "description": "Workflow simplification — Phase 3.1 Quality verification removed (folded into 2.2 + 3.4). Phase Index 1.3 label normalized.",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Refactor:**\n- workflow.md: Phase 3.1 Quality verification removed. Its two unique value points (full-scope final check + spec-sync trigger) folded into Phase 2.2 (last 2.2 must run full-scope via `--mode packages`) and Phase 3.4 (commit preamble asking if spec sync is needed). Step numbering kept stable (3.1 left as a numbered gap) to avoid breaking external references.\n- workflow.md: Phase Index 1.3 `Configure context` label normalized from non-standard `[conditional · once]` to `[required · once]` with `sub-agent-dispatch-platforms-only` annotation, matching step body. The `[conditional]` tag was a single-use label that no other step used.\n- marketplace workflows `native`, `tdd`, `channel-driven-subagent-dispatch` updated in lockstep with the main workflow template.\n- Bundled `trellis-meta` skill `change-workflow.md` status transition example updated to reflect new Phase 3 numbering.\n- Copilot `finish-work.prompt.md` Phase 3 ASCII flow refreshed.\n\nNo source code changed. This is a docs-only refactor that propagates through `trellis update` template refresh.",
7
+ "migrations": [],
8
+ "notes": "Docs-only refactor. Run `trellis update` to refresh `.trellis/workflow.md`, the trellis-meta bundled skill, and (for Copilot users) the finish-work prompt. No `--migrate` needed; no breaking change.\n\nInstall: `npm install -g @mindfoldhq/trellis`"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.6.2",
3
+ "description": "Fix stale Phase 3.1 routing in /continue command left over from 0.6.1 workflow simplification.",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Bug Fixes:**\n- `/continue` command (`commands/continue.md`): the resume-routing table still pointed `status=in_progress + check passed` at the deleted Phase **3.1**. Now routes to **3.3** (spec update) → **3.4** (commit), matching the 0.6.1 workflow simplification. The 0.6.1 cleanup updated `workflow.md`, the marketplace variants, the trellis-meta skill, and the Copilot prompt, but missed `continue.md` because its routing uses a bare-number syntax (`→ **3.1**`) that the `Phase 3.1` grep did not catch.\n\n**Internal:**\n- `.trellis/spec/docs-site/docs/sync-on-change.md` Trigger 1 now lists every in-template file that carries step-routing references and adds a bare-number grep pattern, so a future step delete/renumber audits all routing sites — not just `workflow.md`.\n\nNo source code changed. Run `trellis update` to refresh `.trellis/.../commands/trellis/continue.md`.",
7
+ "migrations": [],
8
+ "notes": "Docs-only fix. Run `trellis update` to refresh the `/continue` command routing. No `--migrate` needed.\n\nInstall: `npm install -g @mindfoldhq/trellis`"
9
+ }
@@ -55,7 +55,7 @@ If the user wants only one platform to avoid sub-agents, first confirm whether t
55
55
  | `planning` | complex task has `prd.md`, `design.md`, and `implement.md` | ask for start review, then run `task.py start` |
56
56
  | `in_progress` | no implementation in conversation history | Phase 2.1 (`trellis-implement`) |
57
57
  | `in_progress` | implementation done, no `trellis-check` run | Phase 2.2 (`trellis-check`) |
58
- | `in_progress` | check passed | Phase 3.1 (verify quality + spec update) |
58
+ | `in_progress` | check passed | Phase 3.3 (spec update) 3.4 (commit) |
59
59
  | `completed` | task is still in active tree | Phase 3.5 (run `/trellis:finish-work` to archive) |
60
60
 
61
61
  When you add a custom status (e.g. `in-review`), add a `[workflow-state:in-review]` block in `.trellis/workflow.md` for the per-turn breadcrumb AND extend this route table — usually by editing the `/trellis:continue` command file (`.{platform}/commands/trellis/continue.md` or equivalent) to add a row that decides where to resume from. Without the route entry, `/trellis:continue` will fall through to a default branch and the user will not land on the step you intended.
@@ -30,7 +30,7 @@ Shows the Phase Index (Plan / Execute / Finish) with routing + skill mapping.
30
30
  - `status=planning` + required artifacts complete + required jsonl curated or inline mode → **1.4** (ask for start review; only run `task.py start` after user confirms)
31
31
  - `status=in_progress` + implementation not started → **2.1**
32
32
  - `status=in_progress` + implementation done, not yet checked → **2.2**
33
- - `status=in_progress` + check passed → **3.1**
33
+ - `status=in_progress` + check passed → **3.3** (spec update) → **3.4** (commit)
34
34
  - `status=completed` (rare; usually archived immediately) → archive flow
35
35
 
36
36
  Phase rules (full detail in `.trellis/workflow.md`):
@@ -79,11 +79,11 @@ Final git log order: `<work commits from 3.4>` → `chore(task): archive ...` (o
79
79
 
80
80
  ```
81
81
  Development Flow (workflow.md Phase 3):
82
- 3.1 Quality verification
83
82
  3.2 Debug retrospective (on demand)
84
83
  3.3 Spec update
85
84
  3.4 Commit changes -> AI drafts batched commits, user confirms
86
85
  3.5 Wrap-up -> /finish-work (this prompt: survey + archive + journal)
86
+ (3.1 was folded into 2.2 + 3.4 — see workflow.md "Phase 3: Finish" note)
87
87
 
88
88
  Debug Flow:
89
89
  Hit bug -> Fix -> /break-loop -> Knowledge capture
@@ -121,7 +121,7 @@ python3 ./.trellis/scripts/get_context.py --mode phase --step <X.Y> # detailed
121
121
  [workflow-state:no_task] → no active task; before Phase 1
122
122
  [workflow-state:planning] → all of Phase 1 (status='planning')
123
123
  [workflow-state:planning-inline] → Codex inline variant of Phase 1
124
- [workflow-state:in_progress] → Phase 2 + Phase 3.1-3.4
124
+ [workflow-state:in_progress] → Phase 2 + Phase 3.2-3.4
125
125
  (status stays 'in_progress' from
126
126
  task.py start until task.py archive)
127
127
  [workflow-state:in_progress-inline] → Codex inline variant of Phase 2/3
@@ -183,7 +183,7 @@ Complex task: ask the user if you can create a Trellis task and enter the planni
183
183
  - 1.0 Create task `[required · once]` (only after task-creation consent)
184
184
  - 1.1 Requirement exploration `[required · repeatable]` (`prd.md`; complex tasks also need `design.md` + `implement.md`)
185
185
  - 1.2 Research `[optional · repeatable]`
186
- - 1.3 Configure context `[conditional · once]` — Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi
186
+ - 1.3 Configure context `[required · once]` — Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi (sub-agent-dispatch platforms only; inline platforms skip)
187
187
  - 1.4 Activate task `[required · once]` (review gate, then `task.py start`; status → in_progress)
188
188
  - 1.5 Completion criteria
189
189
 
@@ -215,7 +215,7 @@ Inline mode: skip jsonl curation; Phase 2 reads artifacts/specs via `trellis-bef
215
215
  - 2.3 Rollback `[on demand]`
216
216
 
217
217
  <!-- Per-turn breadcrumb: shown while status='in_progress'.
218
- Scope: all of Phase 2 + Phase 3.1-3.4 (status stays 'in_progress' from
218
+ Scope: all of Phase 2 + Phase 3.2-3.4 (status stays 'in_progress' from
219
219
  task.py start until task.py archive; only archive flips it). The body
220
220
  therefore must cover every required step from implementation through
221
221
  commit, including Phase 3.3 spec update and Phase 3.4 commit. -->
@@ -241,12 +241,13 @@ Read context: `prd.md` -> `design.md if present` -> `implement.md if present`, p
241
241
  [/workflow-state:in_progress-inline]
242
242
 
243
243
  ### Phase 3: Finish
244
- - 3.1 Quality verification `[required · repeatable]`
245
244
  - 3.2 Debug retrospective `[on demand]`
246
245
  - 3.3 Spec update `[required · once]`
247
246
  - 3.4 Commit changes `[required · once]`
248
247
  - 3.5 Wrap-up reminder
249
248
 
249
+ > Note: step 3.1 was folded into 2.2 (last-iteration full-scope check) and 3.4 (commit preamble). Numbering kept stable to avoid breaking external references.
250
+
250
251
  <!-- Per-turn breadcrumb: shown while status='completed'.
251
252
  Currently DEAD in normal flow: cmd_archive writes status='completed' in
252
253
  the same call that moves the task dir to archive/, so the active-task
@@ -550,6 +551,8 @@ If issues are found → fix → re-check, until green.
550
551
 
551
552
  [/codex-inline, Kilo, Antigravity, Windsurf]
552
553
 
554
+ **Final pass (before Phase 3.4 commit)**: the last 2.2 of a task must run full-scope, not just on the latest implement chunk. List all affected packages with `python3 ./.trellis/scripts/get_context.py --mode packages`, then load each package's spec index Quality Check section. This catches cross-layer / multi-package issues a mid-iteration local 2.2 cannot.
555
+
553
556
  #### 2.3 Rollback `[on demand]`
554
557
 
555
558
  - `check` reveals a prd defect → return to Phase 1, fix `prd.md`, then redo 2.1
@@ -562,15 +565,6 @@ If issues are found → fix → re-check, until green.
562
565
 
563
566
  Goal: ensure code quality, capture lessons, record the work.
564
567
 
565
- #### 3.1 Quality verification `[required · repeatable]`
566
-
567
- Load the `trellis-check` skill and do a final verification:
568
- - Spec compliance
569
- - lint / type-check / tests
570
- - Cross-layer consistency (when changes span layers)
571
-
572
- If issues are found → fix → re-check, until green.
573
-
574
568
  #### 3.2 Debug retrospective `[on demand]`
575
569
 
576
570
  If this task involved repeated debugging (the same issue was fixed multiple times), load the `trellis-break-loop` skill to:
@@ -591,6 +585,8 @@ Update the docs under `.trellis/spec/` accordingly. Even if the conclusion is "n
591
585
 
592
586
  #### 3.4 Commit changes `[required · once]`
593
587
 
588
+ **Spec-sync preamble**: before drafting commits, ask: did this task fix a bug or surface non-obvious knowledge that should land in `.trellis/spec/` so future-you (or future-AI) doesn't repeat the mistake? If yes, return to Phase 3.3 first — spec writes belong in the same task's commit batch, not as a forgotten follow-up.
589
+
594
590
  The AI drives a batched commit of this task's code changes so `/finish-work` can run cleanly afterwards. Goal: produce work commits FIRST, then bookkeeping (archive + journal) commits land after — never interleaved.
595
591
 
596
592
  **Step-by-step**:
@@ -663,8 +659,8 @@ All tag blocks live in the `## Phase Index` section above, immediately after eac
663
659
  | No active task (before Phase 1) | `[workflow-state:no_task]` (after the Phase Index ASCII art) |
664
660
  | All of Phase 1 (task created → ready for implementation) | `[workflow-state:planning]` (after Phase 1 summary) |
665
661
  | Codex inline Phase 1 | `[workflow-state:planning-inline]` |
666
- | Phase 2 + Phase 3.1–3.4 (implementation + check + wrap-up) | `[workflow-state:in_progress]` (after Phase 2 summary) |
667
- | Codex inline Phase 2 + Phase 3.1–3.4 | `[workflow-state:in_progress-inline]` |
662
+ | Phase 2 + Phase 3.2–3.4 (implementation + check + wrap-up) | `[workflow-state:in_progress]` (after Phase 2 summary) |
663
+ | Codex inline Phase 2 + Phase 3.2–3.4 | `[workflow-state:in_progress-inline]` |
668
664
  | After Phase 3.5 (archived) | `[workflow-state:completed]` (after Phase 3 summary; **currently DEAD**) |
669
665
 
670
666
  ### Changing the per-turn prompt text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindfoldhq/trellis",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "AI capabilities grow like ivy — Trellis provides the structure to guide them along a disciplined path",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -34,7 +34,7 @@
34
34
  "inquirer": "^9.3.7",
35
35
  "undici": "^6.21.0",
36
36
  "zod": "^4.4.2",
37
- "@mindfoldhq/trellis-core": "0.6.0"
37
+ "@mindfoldhq/trellis-core": "0.6.2"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@eslint/js": "^9.18.0",