flower-trellis 0.6.12-beta.2 → 0.6.12-beta.3
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/enhancements/0.6/.agents/skills/trellis-route/SKILL.md +1 -1
- package/enhancements/0.6/.agents/skills/trellis-route/references/interaction.md +1 -1
- package/enhancements/0.6/.claude/skills/trellis-route/SKILL.md +1 -1
- package/enhancements/0.6/overrides/conflicts.json +17 -11
- package/enhancements/0.6/overrides/patches/hooks/session-start/context-trim/first-reply-head-content.txt +1 -0
- package/enhancements/0.6/overrides/patches/hooks/session-start/context-trim/first-reply-head-selector.txt +1 -0
- package/enhancements/0.6/overrides/patches/hooks/session-start/context-trim/first-reply-tail-content.txt +3 -0
- package/enhancements/0.6/overrides/patches/hooks/session-start/context-trim/first-reply-tail-selector.txt +8 -0
- package/enhancements/0.6/overrides/patches/hooks/session-start/context-trim/patch.json +38 -0
- package/enhancements/0.6/overrides/patches/skills/trellis-brainstorm/planning-authorization/content.md +2 -0
- package/enhancements/0.6/overrides/patches/skills/trellis-meta/managed-workflow-owners/owner-routing-content.md +26 -0
- package/enhancements/0.6/overrides/patches/workflow/hub/content.md +20 -24
- package/enhancements/0.6/overrides/patches/workflow/intent-routing/phase-summary/guardrail-content.md +1 -0
- package/enhancements/0.6/overrides/patches/workflow/intent-routing/phase-summary/guardrail-selector.md +1 -0
- package/enhancements/0.6/overrides/patches/workflow/intent-routing/phase-summary/patch.json +12 -0
- package/enhancements/0.6/overrides/patches/workflow/intent-routing/phase-summary/phase-two-content.md +1 -0
- package/enhancements/0.6/overrides/patches/workflow/intent-routing/phase-summary/phase-two-selector.md +1 -0
- package/enhancements/0.6/overrides/patches/workflow/sessionstart-context-trim/patch.json +14 -0
- package/enhancements/0.6/overrides/patches/workflow/sessionstart-context-trim/task-tree-content.md +3 -0
- package/enhancements/0.6/overrides/patches/workflow/sessionstart-context-trim/task-tree-detail-content.md +3 -0
- package/enhancements/0.6/overrides/patches/workflow/sessionstart-context-trim/task-tree-detail-selector.md +1 -0
- package/enhancements/0.6/overrides/patches/workflow/sessionstart-context-trim/task-tree-selector.md +7 -0
- package/enhancements/0.6/overrides/patches/workflow/state-no-task/content.md +4 -4
- package/enhancements/MANIFEST.json +14 -2
- package/package.json +3 -3
- package/src/assets/flower_session_start.py +5 -0
|
@@ -52,7 +52,7 @@ helper 的 hit/written 输出就是本轮结构化执行证据。task 临时选
|
|
|
52
52
|
|
|
53
53
|
## 同轮执行与展示
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
正常沿用已有决策、个人默认或内置缺省时静默执行,不例行展示模式、来源、路径、YAML、写入字段或固定职责说明。用户主动选择、改选或管理默认时一句话确认;异常或保存失败按异常 reference 说明影响与处理方式,用户要求诊断时再展开。随后主 agent 在同一回合实际调用对应能力,不等用户回复“继续”。
|
|
56
56
|
|
|
57
57
|
| 模式 | 同轮动作 |
|
|
58
58
|
| --- | --- |
|
|
@@ -43,4 +43,4 @@ python3 <skill-dir>/scripts/route_state.py clear-pref --target <implement|check>
|
|
|
43
43
|
|
|
44
44
|
helper 保留另一个 target 的个人偏好;task 写入还保留当前 session 的其它字段,并清理属于旧任务的 route 决策。不要手写 JSON 或直接删文件。失败先按入口的异常 reference 核对实际持久化结果;决定已明确但未持久化时简短提示可能在恢复时再次询问。
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
选择确定后回到入口,按入口的展示规则在同一回合实际执行。
|
|
@@ -52,7 +52,7 @@ helper 的 hit/written 输出就是本轮结构化执行证据。task 临时选
|
|
|
52
52
|
|
|
53
53
|
## 同轮执行与展示
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
正常沿用已有决策、个人默认或内置缺省时静默执行,不例行展示模式、来源、路径、YAML、写入字段或固定职责说明。用户主动选择、改选或管理默认时一句话确认;异常或保存失败按异常 reference 说明影响与处理方式,用户要求诊断时再展开。随后主 agent 在同一回合实际调用对应能力,不等用户回复“继续”。
|
|
56
56
|
|
|
57
57
|
| 模式 | 同轮动作 |
|
|
58
58
|
| --- | --- |
|
|
@@ -394,17 +394,23 @@
|
|
|
394
394
|
"type": "required-literal",
|
|
395
395
|
"values": [
|
|
396
396
|
"<!-- BEGIN skill-garden patch workflow-hub v0.6 -->\n### Skill-Garden Workflow Owner Index",
|
|
397
|
-
"| Request Intent Routing | `Request Triage` + `trellis-start` |
|
|
398
|
-
"|
|
|
399
|
-
"|
|
|
400
|
-
"|
|
|
401
|
-
"|
|
|
402
|
-
"|
|
|
403
|
-
"|
|
|
404
|
-
"|
|
|
405
|
-
"|
|
|
406
|
-
"|
|
|
407
|
-
"|
|
|
397
|
+
"| Request Intent Routing | `Request Triage` + `trellis-start` |",
|
|
398
|
+
"| Harness Plan Mode Ban | `workflow-state:no_task` + `workflow-state:planning*` + `workflow-state:in_progress*` |",
|
|
399
|
+
"| Brainstorm Gate | Phase 1.1 + `trellis-brainstorm` |",
|
|
400
|
+
"| Task Brief Handoff | Phase 1.4 + `trellis-task-brief` |",
|
|
401
|
+
"| Project Knowledge Discovery | `Request Triage` |",
|
|
402
|
+
"| Flower Update Confirmation | SessionStart update context + Flower CLI |",
|
|
403
|
+
"| Active Task Scope Guard | `Request Triage` |",
|
|
404
|
+
"| Untracked Work Completion Chain | `workflow-state:untracked*` + Phase 2/3 owners |",
|
|
405
|
+
"| Untracked Task Adoption | `workflow-state:untracked*` + `trellis-brainstorm` |",
|
|
406
|
+
"| Routing Gate | Phase 2 + `trellis-route` |",
|
|
407
|
+
"| Auto-Loop Return Gate | `trellis-check-all` + `trellis-auto-loop` |",
|
|
408
|
+
"| Interactive Post-Check Stop Gate | Phase 2.2 + `trellis-check-all` |",
|
|
409
|
+
"| Code Commit Confirmation Gate | Phase 3.4 + `trellis-push` |",
|
|
410
|
+
"| Auto-loop Commit-only Preauthorization | `trellis-auto-loop` |",
|
|
411
|
+
"| Deterministic Task Close | `trellis-push` + `trellis-auto-loop` |",
|
|
412
|
+
"| Deferred Physical GC | SessionStart |",
|
|
413
|
+
"| Task Progress Recovery | `trellis-continue` |",
|
|
408
414
|
"A validated auto-loop result returns through matching `record` + `next` before the interactive post-check stop applies.",
|
|
409
415
|
"Interactive completion proceeds Check-All -> `trellis-update-spec` -> `trellis-push`; successful delivery writes completion and deterministic Close"
|
|
410
416
|
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
On your first visible reply in this session, briefly acknowledge that Trellis SessionStart context loaded, then answer the user.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
On the first visible assistant reply in this session, briefly acknowledge that Trellis SessionStart context loaded.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Choose the acknowledgment language in this order:
|
|
2
|
+
1. Use the language of the user's current request (the user message that triggered this reply).
|
|
3
|
+
2. If that request has no clear natural language, use an explicitly established project communication language.
|
|
4
|
+
3. If neither provides a language, output the language-neutral fallback exactly: `Trellis SessionStart ✓`.
|
|
5
|
+
Continue directly with the user's request after the acknowledgment.
|
|
6
|
+
The acknowledgment must not alter the language used for the remainder of the response.
|
|
7
|
+
This notice is one-shot: do not repeat it after the first visible assistant reply in this session.
|
|
8
|
+
</first-reply-notice>
|
|
@@ -122,6 +122,44 @@
|
|
|
122
122
|
{ "kind": "hook", "path": ".zcode/hooks/session-start.py", "missing": "skip", "markerStyle": "none" }
|
|
123
123
|
],
|
|
124
124
|
"selector": { "type": "literal", "source": "ready-selector.py", "allowAbsent": true }
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "session-start-first-reply-head",
|
|
128
|
+
"operation": "replace",
|
|
129
|
+
"targetPolicy": "each-existing",
|
|
130
|
+
"targets": [
|
|
131
|
+
{ "kind": "hook", "path": ".codex/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
132
|
+
{ "kind": "hook", "path": ".claude/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
133
|
+
{ "kind": "hook", "path": ".codebuddy/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
134
|
+
{ "kind": "hook", "path": ".cursor/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
135
|
+
{ "kind": "hook", "path": ".factory/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
136
|
+
{ "kind": "hook", "path": ".gemini/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
137
|
+
{ "kind": "hook", "path": ".kiro/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
138
|
+
{ "kind": "hook", "path": ".qoder/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
139
|
+
{ "kind": "hook", "path": ".trae/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
140
|
+
{ "kind": "hook", "path": ".zcode/hooks/session-start.py", "missing": "skip", "markerStyle": "none" }
|
|
141
|
+
],
|
|
142
|
+
"selector": { "type": "literal", "source": "first-reply-head-selector.txt", "expectedMatches": 1 },
|
|
143
|
+
"content": { "source": "first-reply-head-content.txt" }
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "session-start-first-reply-tail",
|
|
147
|
+
"operation": "replace",
|
|
148
|
+
"targetPolicy": "each-existing",
|
|
149
|
+
"targets": [
|
|
150
|
+
{ "kind": "hook", "path": ".codex/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
151
|
+
{ "kind": "hook", "path": ".claude/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
152
|
+
{ "kind": "hook", "path": ".codebuddy/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
153
|
+
{ "kind": "hook", "path": ".cursor/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
154
|
+
{ "kind": "hook", "path": ".factory/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
155
|
+
{ "kind": "hook", "path": ".gemini/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
156
|
+
{ "kind": "hook", "path": ".kiro/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
157
|
+
{ "kind": "hook", "path": ".qoder/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
158
|
+
{ "kind": "hook", "path": ".trae/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
|
|
159
|
+
{ "kind": "hook", "path": ".zcode/hooks/session-start.py", "missing": "skip", "markerStyle": "none" }
|
|
160
|
+
],
|
|
161
|
+
"selector": { "type": "literal", "source": "first-reply-tail-selector.txt", "expectedMatches": 1 },
|
|
162
|
+
"content": { "source": "first-reply-tail-content.txt" }
|
|
125
163
|
}
|
|
126
164
|
]
|
|
127
165
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
Use this skill after the user explicitly requests task planning, or after clear complex implementation intent authorizes creating a planning workspace. This authorization covers planning only; it never authorizes `task.py start` or implementation.
|
|
2
2
|
|
|
3
3
|
Before choosing an approach for non-trivial project work, follow the workflow `Request Triage` Project Knowledge Discovery contract and return here with the matched project-local SOPs and specs.
|
|
4
|
+
|
|
5
|
+
Before creating or changing a parent/child task tree, load Phase 1.1 via `python3 ./.trellis/scripts/get_context.py --mode phase --step 1.1` and follow its task-tree guidance.
|
|
@@ -21,3 +21,29 @@ Stable owner categories are:
|
|
|
21
21
|
| Cross-session task progress discovery and recovery | `trellis-continue` owns the recovery decision, `task_progress.py` owns candidate evidence and completed-task reopen, and `task.py start` with `.trellis/scripts/common/active_task.py` owns explicit session binding |
|
|
22
22
|
|
|
23
23
|
This reference names owners; it does not copy their command schemas, interaction templates, state formats, or error matrices. Read `.trellis/workflow.md`, the local owner skill/helper, available `overrides/bundles/`, and `.flower/state.json` for the installed version. Do not maintain a fixed Skill-Garden skill count or exhaustive capability list here.
|
|
24
|
+
|
|
25
|
+
### Runtime Owner Details
|
|
26
|
+
|
|
27
|
+
The startup Workflow Owner Index names policy owners. Consult this runtime map when maintaining or debugging the workflow.
|
|
28
|
+
|
|
29
|
+
| Gate / Guard | Runtime owner |
|
|
30
|
+
| --- | --- |
|
|
31
|
+
| Request Intent Routing | `task_intent.py` |
|
|
32
|
+
| Harness Plan Mode Ban | injected state text (no runtime hook) |
|
|
33
|
+
| Brainstorm Gate | `task.py start` readiness |
|
|
34
|
+
| Task Brief Handoff | `task.py start` brief guard |
|
|
35
|
+
| Project Knowledge Discovery | `spec_router.py` |
|
|
36
|
+
| Flower Update Confirmation | update hook / `self-update` arguments |
|
|
37
|
+
| Active Task Scope Guard | `task_intent.py` scope safety |
|
|
38
|
+
| Untracked Work Completion Chain | `untracked_flow.py` |
|
|
39
|
+
| Untracked Task Adoption | `task_intent.py adopt` |
|
|
40
|
+
| Routing Gate | `route_state.py` |
|
|
41
|
+
| Auto-Loop Return Gate | `auto_loop.py record/next` |
|
|
42
|
+
| Interactive Post-Check Stop Gate | current Check-All evidence |
|
|
43
|
+
| Code Commit Confirmation Gate | exact Git safety checks |
|
|
44
|
+
| Auto-loop Commit-only Preauthorization | `auto_loop.py` + `trellis-push` internal commit-only |
|
|
45
|
+
| Deterministic Task Close | `task_progress.py` + `task_lifecycle.py` |
|
|
46
|
+
| Deferred Physical GC | `task_lifecycle.py session-start` |
|
|
47
|
+
| Task Progress Recovery | `task_progress.py` |
|
|
48
|
+
|
|
49
|
+
The Hub must not duplicate owner procedures, helper schemas, interaction templates, error matrices, or Git path rules.
|
|
@@ -1,33 +1,29 @@
|
|
|
1
1
|
### Skill-Garden Workflow Owner Index
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Follow each gate's policy owner; load its procedures and runtime details on demand.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
|
8
|
-
|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
| Deferred Physical GC | SessionStart | `task_lifecycle.py session-start` |
|
|
25
|
-
| Task Progress Recovery | `trellis-continue` | `task_progress.py` |
|
|
5
|
+
| Gate / Guard | Primary policy owner |
|
|
6
|
+
| --- | --- |
|
|
7
|
+
| Request Intent Routing | `Request Triage` + `trellis-start` |
|
|
8
|
+
| Harness Plan Mode Ban | `workflow-state:no_task` + `workflow-state:planning*` + `workflow-state:in_progress*` |
|
|
9
|
+
| Brainstorm Gate | Phase 1.1 + `trellis-brainstorm` |
|
|
10
|
+
| Task Brief Handoff | Phase 1.4 + `trellis-task-brief` |
|
|
11
|
+
| Project Knowledge Discovery | `Request Triage` |
|
|
12
|
+
| Flower Update Confirmation | SessionStart update context + Flower CLI |
|
|
13
|
+
| Active Task Scope Guard | `Request Triage` |
|
|
14
|
+
| Untracked Work Completion Chain | `workflow-state:untracked*` + Phase 2/3 owners |
|
|
15
|
+
| Untracked Task Adoption | `workflow-state:untracked*` + `trellis-brainstorm` |
|
|
16
|
+
| Routing Gate | Phase 2 + `trellis-route` |
|
|
17
|
+
| Auto-Loop Return Gate | `trellis-check-all` + `trellis-auto-loop` |
|
|
18
|
+
| Interactive Post-Check Stop Gate | Phase 2.2 + `trellis-check-all` |
|
|
19
|
+
| Code Commit Confirmation Gate | Phase 3.4 + `trellis-push` |
|
|
20
|
+
| Auto-loop Commit-only Preauthorization | `trellis-auto-loop` |
|
|
21
|
+
| Deterministic Task Close | `trellis-push` + `trellis-auto-loop` |
|
|
22
|
+
| Deferred Physical GC | SessionStart |
|
|
23
|
+
| Task Progress Recovery | `trellis-continue` |
|
|
26
24
|
|
|
27
25
|
Cross-stage ordering:
|
|
28
26
|
|
|
29
27
|
1. Request intent, active-task scope, and any current untracked work are resolved before task creation, task routing, or file edits.
|
|
30
28
|
2. A validated auto-loop result returns through matching `record` + `next` before the interactive post-check stop applies.
|
|
31
29
|
3. Interactive completion proceeds Check-All -> `trellis-update-spec` -> `trellis-push`; successful delivery writes completion and deterministic Close in one lifecycle update.
|
|
32
|
-
|
|
33
|
-
Mechanical rule: follow the owner named above. The Hub must not duplicate owner procedures, helper schemas, interaction templates, error matrices, or Git path rules.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
- Task creation approval is not implementation approval; task implementation waits for `task.py start` after artifact review.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
- Task creation approval is not implementation approval; implementation waits for `task.py start` after artifact review.
|
|
@@ -9,5 +9,17 @@
|
|
|
9
9
|
"selector": { "type": "literal", "source": "selector.md" },
|
|
10
10
|
"content": { "source": "content.md" },
|
|
11
11
|
"legacyMarkers": [{ "namespace": "transform", "id": "workflow-phase-summary" }]
|
|
12
|
+
}, {
|
|
13
|
+
"id": "workflow-phase-two-summary",
|
|
14
|
+
"operation": "replace",
|
|
15
|
+
"targets": [{ "kind": "workflow", "path": ".trellis/workflow.md", "missing": "error" }],
|
|
16
|
+
"selector": { "type": "literal", "source": "phase-two-selector.md" },
|
|
17
|
+
"content": { "source": "phase-two-content.md" }
|
|
18
|
+
}, {
|
|
19
|
+
"id": "workflow-task-implementation-guardrail",
|
|
20
|
+
"operation": "replace",
|
|
21
|
+
"targets": [{ "kind": "workflow", "path": ".trellis/workflow.md", "missing": "error" }],
|
|
22
|
+
"selector": { "type": "literal", "source": "guardrail-selector.md" },
|
|
23
|
+
"content": { "source": "guardrail-content.md" }
|
|
12
24
|
}]
|
|
13
25
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Phase 2: Execute → task implementation requires in_progress; no-task direct edits follow their workflow-state
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Phase 2: Execute → implement only after task status is in_progress
|
|
@@ -21,6 +21,20 @@
|
|
|
21
21
|
"operation": "remove",
|
|
22
22
|
"targets": [{ "kind": "workflow", "path": ".trellis/workflow.md", "missing": "error", "markerStyle": "none" }],
|
|
23
23
|
"selector": { "type": "literal", "source": "planning-rule-selector.md", "allowAbsent": true }
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "workflow-sessionstart-task-tree-summary",
|
|
27
|
+
"operation": "replace",
|
|
28
|
+
"targets": [{ "kind": "workflow", "path": ".trellis/workflow.md", "missing": "error" }],
|
|
29
|
+
"selector": { "type": "literal", "source": "task-tree-selector.md", "expectedMatches": 1 },
|
|
30
|
+
"content": { "source": "task-tree-content.md" }
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "workflow-task-tree-detail-entry",
|
|
34
|
+
"operation": "replace",
|
|
35
|
+
"targets": [{ "kind": "workflow", "path": ".trellis/workflow.md", "missing": "error" }],
|
|
36
|
+
"selector": { "type": "literal", "source": "task-tree-detail-selector.md", "expectedMatches": 1 },
|
|
37
|
+
"content": { "source": "task-tree-detail-content.md" }
|
|
24
38
|
}
|
|
25
39
|
]
|
|
26
40
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
When considering a parent/child split:
|
package/enhancements/0.6/overrides/patches/workflow/sessionstart-context-trim/task-tree-selector.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
### Parent / Child Task Trees
|
|
2
|
+
|
|
3
|
+
Use a parent task when one user request contains several independently verifiable deliverables. The parent task owns the source requirement set, the task map, cross-child acceptance criteria, and final integration review; it normally should not be the implementation target unless it also has direct work.
|
|
4
|
+
|
|
5
|
+
Use child tasks for deliverables that can be planned, implemented, checked, and archived independently. Parent/child structure is not a dependency system: if one child must wait for another, write that ordering in the child `prd.md` / `implement.md` and keep each child's acceptance criteria testable.
|
|
6
|
+
|
|
7
|
+
Create new children with `task.py create "<title>" --slug <name> --parent <parent-dir>`. Link existing tasks with `task.py add-subtask <parent> <child>`, and unlink mistakes with `task.py remove-subtask <parent> <child>`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
No active task. First resolve any Check-All repair continuation through `Request Triage`; otherwise infer the current request intent before acting.
|
|
2
|
-
For new work, repair intent alone is not a no-task switch
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
For new work, repair intent alone is not a no-task switch. Only an explicit current-request workflow instruction such as `直接做` / `不要任务` may override automatic `task_plan`.
|
|
3
|
+
Load a Trellis capability directly only when the user explicitly names it or the request exactly matches that capability; route project-specific workflow actions through the matched SOP instead of keyword-mapping a general release/publish request to `trellis-release`.
|
|
4
|
+
For quick direct edit, make the bounded edit, run focused validation, and report without creating `untracked_flow`; small wording/config tweaks, release dry-runs, version checks, local SOP steps, and other one-turn fixes stay in this path unless the current request explicitly asks future `下一步` / `继续` / check / push handoff to remember this no-task work. For tracked direct edit, state once that work will use the session-scoped untracked flow, then run `python3 ./.trellis/scripts/untracked_flow.py begin --summary "<bounded work summary>" --source <inferred|user-explicit> --mode tracked-direct-edit`.
|
|
5
5
|
Never create `untracked_flow` for `workflow_action` itself, including release/publish, commit, push, task operations, snapshot sync, auto-loop control, or read-only inspection. If a workflow action reveals a separate code/config fix, pause that workflow action, explain the separate fix, and only create tracked direct edit when the user wants later turns to remember that fix's check/spec/push handoff; otherwise keep it as quick direct edit.
|
|
6
6
|
A same-item hit resumes the existing state; `active-work-conflict` blocks unrelated code writes until the current item is completed, explicitly abandoned, or adopted into a task. Unrelated read-only requests may continue without mutating the state. A successful `begin` starts at `stage=implement`; the helper is a workflow cursor and does not gate edits on file scope, Git state, or owner evidence.
|
|
7
|
-
For high-confidence complex implementation, create an auto-routed planning task through `task_intent.py create`, show one non-blocking switch hint, and enter `trellis-brainstorm`.
|
|
7
|
+
For high-confidence complex implementation, create an auto-routed planning task through `task_intent.py create`, show one non-blocking switch hint, and enter `trellis-brainstorm`. Do NOT call the harness built-in plan mode (`EnterPlanMode` / `ExitPlanMode`) as a substitute; Trellis planning owns this routing.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"syncedAt": "2026-10-
|
|
2
|
+
"syncedAt": "2026-10-22T09:39:09.087Z",
|
|
3
3
|
"syncedFrom": "vendor/skill-garden",
|
|
4
|
-
"sourceCommit": "
|
|
4
|
+
"sourceCommit": "9cbf7989028e4ecfb64753d4616b9dbcb97a1730",
|
|
5
5
|
"common": {
|
|
6
6
|
"codexSkills": [
|
|
7
7
|
"aliyun-ops",
|
|
@@ -202,6 +202,10 @@
|
|
|
202
202
|
"hooks/session-start/context-trim/dispatch-filter-selector.py",
|
|
203
203
|
"hooks/session-start/context-trim/dispatch-helper-content.py",
|
|
204
204
|
"hooks/session-start/context-trim/dispatch-helper-selector.py",
|
|
205
|
+
"hooks/session-start/context-trim/first-reply-head-content.txt",
|
|
206
|
+
"hooks/session-start/context-trim/first-reply-head-selector.txt",
|
|
207
|
+
"hooks/session-start/context-trim/first-reply-tail-content.txt",
|
|
208
|
+
"hooks/session-start/context-trim/first-reply-tail-selector.txt",
|
|
205
209
|
"hooks/session-start/context-trim/patch.json",
|
|
206
210
|
"hooks/session-start/context-trim/ready-selector.py",
|
|
207
211
|
"hooks/session-start/context-trim/shared-builder-call-content.py",
|
|
@@ -522,7 +526,11 @@
|
|
|
522
526
|
"workflow/intent-routing/phase-one-goal/patch.json",
|
|
523
527
|
"workflow/intent-routing/phase-one-goal/selector.md",
|
|
524
528
|
"workflow/intent-routing/phase-summary/content.md",
|
|
529
|
+
"workflow/intent-routing/phase-summary/guardrail-content.md",
|
|
530
|
+
"workflow/intent-routing/phase-summary/guardrail-selector.md",
|
|
525
531
|
"workflow/intent-routing/phase-summary/patch.json",
|
|
532
|
+
"workflow/intent-routing/phase-summary/phase-two-content.md",
|
|
533
|
+
"workflow/intent-routing/phase-summary/phase-two-selector.md",
|
|
526
534
|
"workflow/intent-routing/phase-summary/selector.md",
|
|
527
535
|
"workflow/intent-routing/request-triage/content.md",
|
|
528
536
|
"workflow/intent-routing/request-triage/patch.json",
|
|
@@ -559,6 +567,10 @@
|
|
|
559
567
|
"workflow/sessionstart-context-trim/patch.json",
|
|
560
568
|
"workflow/sessionstart-context-trim/planning-rule-selector.md",
|
|
561
569
|
"workflow/sessionstart-context-trim/step-history-selector.md",
|
|
570
|
+
"workflow/sessionstart-context-trim/task-tree-content.md",
|
|
571
|
+
"workflow/sessionstart-context-trim/task-tree-detail-content.md",
|
|
572
|
+
"workflow/sessionstart-context-trim/task-tree-detail-selector.md",
|
|
573
|
+
"workflow/sessionstart-context-trim/task-tree-selector.md",
|
|
562
574
|
"workflow/state-missing-task/active-task-clear-fallback-content.py",
|
|
563
575
|
"workflow/state-missing-task/active-task-clear-fallback-selector.py",
|
|
564
576
|
"workflow/state-missing-task/active-task-read-result-content.py",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flower-trellis",
|
|
3
|
-
"version": "0.6.12-beta.
|
|
3
|
+
"version": "0.6.12-beta.3",
|
|
4
4
|
"description": "一键安装/升级 Trellis 并自动融合 skill-garden 强化包(默认 Claude + agents)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"commit-and-tag-version": "^12.7.3"
|
|
72
72
|
},
|
|
73
73
|
"flowerReleaseNotes": {
|
|
74
|
-
"version": "0.6.12-beta.
|
|
74
|
+
"version": "0.6.12-beta.3",
|
|
75
75
|
"source": "CHANGELOG.md",
|
|
76
|
-
"body": "### ✨ 新功能 Features\n\n* **
|
|
76
|
+
"body": "### ✨ 新功能 Features\n\n* **hooks:** 注入简洁设计原则并精简启动上下文 ([92fb5f0](https://github.com/SilentFlower/flower-trellis/commit/92fb5f06671e17cf41af753f5faa99ba68db183e))\n\n\n### ♻️ 重构 Refactor\n\n* **route:** 同步静默展示规则与快照 ([ff8659d](https://github.com/SilentFlower/flower-trellis/commit/ff8659dcc66789a3f77656167131c7a76b3dd0d0))",
|
|
77
77
|
"truncated": false
|
|
78
78
|
},
|
|
79
79
|
"optionalDependencies": {
|
|
@@ -23,6 +23,9 @@ SOL_MODEL = "gpt-6-sol"
|
|
|
23
23
|
SOL_6_1_MODEL = "gpt-6.1-sol"
|
|
24
24
|
MODEL_HINT_MAX_BYTES = 2048
|
|
25
25
|
WORKFLOW_STATE_REFRESH_ARG = "--trellis-session-start-refresh"
|
|
26
|
+
CODE_DESIGN_HINT = """<trellis-code-design>
|
|
27
|
+
Prefer simple, clear code for confirmed needs (KISS, YAGNI). Apply SOLID and DRY when they reduce complexity or duplicated business knowledge; favor clarity if these principles conflict. Reuse project patterns. Avoid premature abstractions, extra layers, excessive splitting, and speculative config or dependencies. Preserve behavior, compatibility, required verification, workflows, review gates, and templates.
|
|
28
|
+
</trellis-code-design>"""
|
|
26
29
|
CODEX_USER_INTERACTION_HINT = """<trellis-codex-user-interaction>
|
|
27
30
|
For questions, use synchronous request_user_input when allowed by the active tool instructions and schema; otherwise ask in the final reply and wait. Do not call request_user_input_async, send_user_message_async, or async equivalents. Show progress in commentary and results in final. Keep existing review/approval gates; never switch modes to unlock a tool or infer consent from silence.
|
|
28
31
|
</trellis-codex-user-interaction>"""
|
|
@@ -327,6 +330,8 @@ def render_part(root: Path, hook: str, part: str, hook_input: dict) -> dict | No
|
|
|
327
330
|
message = f"workflow-state 基线未刷新:{error}"
|
|
328
331
|
result["systemMessage"] = "\n".join(filter(None, [result.get("systemMessage"), message]))
|
|
329
332
|
print(message, file=sys.stderr)
|
|
333
|
+
if source in ("startup", "clear", "compact"):
|
|
334
|
+
context = f"{context}\n{CODE_DESIGN_HINT}"
|
|
330
335
|
if hook == HOOKS[0] and source in ("startup", "clear", "compact"):
|
|
331
336
|
# 交互方式属于 Codex 平台规则,不能因模型切换或关闭模型提示而消失。
|
|
332
337
|
context = f"{context}\n{CODEX_USER_INTERACTION_HINT}"
|