@srobroek/pi-user-journeys 0.0.0-stage → 0.6.1
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/CHANGELOG.md +70 -0
- package/LICENSE +202 -0
- package/README.md +106 -2
- package/agents/journey-scribe.md +30 -0
- package/agents/journey-validator.md +30 -0
- package/extensions/journeys.js +282 -0
- package/package.json +40 -4
- package/skills/journey-campaign/SKILL.md +152 -0
- package/skills/journey-consolidate/SKILL.md +62 -0
- package/skills/journey-init/SKILL.md +100 -0
- package/skills/journey-init/scripts/journeys.py +356 -0
- package/skills/journey-init/templates/FORMAT.md +243 -0
- package/skills/journey-init/templates/README.template.md +55 -0
- package/skills/journey-init/templates/journey.template.md +35 -0
- package/skills/journey-init/templates/run.template.md +18 -0
- package/skills/journey-verify/SKILL.md +87 -0
- package/skills/journey-verify/formulas/journey-step-agentic-verification.formula.toml +72 -0
- package/skills/journey-verify/formulas/journey-step-human-verification.formula.toml +82 -0
- package/skills/journey-verify-changed/SKILL.md +51 -0
- package/skills/journey-write/SKILL.md +144 -0
- package/skills/journeys-guide/SKILL.md +21 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
## journeys [0.6.1](https://github.com/srobroek/harness-plugins/compare/journeys--v0.6.0...journeys--v0.6.1) (2026-11-24)
|
|
2
|
+
|
|
3
|
+
## journeys [0.6.0](https://github.com/srobroek/harness-plugins/compare/journeys--v0.5.1...journeys--v0.6.0) (2026-11-23)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **journeys:** finish Pi tool adapter ([1ed7e5e](https://github.com/srobroek/harness-plugins/commit/1ed7e5ebf8b66036762dc28d62eaf29fc1a79aed))
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **journeys:** keep validator hidden in generated agents ([3b2dced](https://github.com/srobroek/harness-plugins/commit/3b2dcedc238f49a5e4ce3eb1449419124e8c0779))
|
|
12
|
+
* **journeys:** package Pi extension assets ([62ad390](https://github.com/srobroek/harness-plugins/commit/62ad3909c8d7f81029479154a4be35738f384c49))
|
|
13
|
+
* **journeys:** resolve bundled Pi assets ([0e43d23](https://github.com/srobroek/harness-plugins/commit/0e43d23a3cf079d3db8bd6f9528377719e836f5c))
|
|
14
|
+
* **journeys:** restore source agent descriptions ([4121f30](https://github.com/srobroek/harness-plugins/commit/4121f30f3c3c5810f04f85dd24631ea5ecda2c32))
|
|
15
|
+
|
|
16
|
+
## journeys [0.5.1](https://github.com/srobroek/harness-plugins/compare/journeys--v0.5.0...journeys--v0.5.1) (2026-11-23)
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* make every plugin agent's OMP form correct ([96b7bfe](https://github.com/srobroek/harness-plugins/commit/96b7bfea3c35017b34a28f59e81fb059f6c68a24))
|
|
21
|
+
|
|
22
|
+
# Changelog
|
|
23
|
+
|
|
24
|
+
## [0.5.0](https://github.com/srobroek/opencode-plugins/compare/journeys--v0.4.0...journeys--v0.5.0) (2026-11-20)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* plugin scan fixes, wider agent access and the plugin-audit plugin ([9c71525](https://github.com/srobroek/opencode-plugins/commit/9c7152559776aaf80cfed9626d78bafdd845fa9a))
|
|
30
|
+
|
|
31
|
+
## [0.4.0](https://github.com/srobroek/opencode-plugins/compare/journeys--v0.3.0...journeys--v0.4.0) (2026-11-19)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* beads, speckit and journeys in Claude Code; translated subagents instead of raw OpenCode agents ([e5fcc23](https://github.com/srobroek/opencode-plugins/commit/e5fcc2338e0846cbebc3370f65826cf2edf137bc))
|
|
37
|
+
* **toolchain:** prescriptive testing and quality concerns for every language ([2cbcb66](https://github.com/srobroek/opencode-plugins/commit/2cbcb66c2e4589eccf2553d324d83680744cd6d7))
|
|
38
|
+
|
|
39
|
+
## [0.3.0](https://github.com/srobroek/opencode-plugins/compare/journeys--v0.2.1...journeys--v0.3.0) (2026-11-11)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* cap every shipped agent with a step limit ([#123](https://github.com/srobroek/opencode-plugins/issues/123)) ([7b3b60f](https://github.com/srobroek/opencode-plugins/commit/7b3b60f84ac4aabcf8d5d649042e26054f79b0f4))
|
|
45
|
+
|
|
46
|
+
## [0.2.1](https://github.com/srobroek/opencode-plugins/compare/journeys--v0.2.0...journeys--v0.2.1) (2026-10-27)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Performance
|
|
50
|
+
|
|
51
|
+
* **journeys:** make the journey agents' allowlists hold and hide them ([d5d0929](https://github.com/srobroek/opencode-plugins/commit/d5d09297e678e394af5910e12c2029d7114a0355))
|
|
52
|
+
|
|
53
|
+
## [0.2.0](https://github.com/srobroek/opencode-plugins/compare/journeys--v0.1.0...journeys--v0.2.0) (2026-10-27)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Features
|
|
57
|
+
|
|
58
|
+
* **journeys:** give journey-validator a 400-step budget ([fae4055](https://github.com/srobroek/opencode-plugins/commit/fae4055cd480f8dd811737721fb031c23e62b9c6))
|
|
59
|
+
* **journeys:** port journeys tools, skills and scribe/validator subagents ([88b9fec](https://github.com/srobroek/opencode-plugins/commit/88b9fec97bde041f9894937e6d2c19f3364447b7))
|
|
60
|
+
* **lib:** honour metadata opencode/autoinvoke in shipped SKILL.md files ([881e7df](https://github.com/srobroek/opencode-plugins/commit/881e7df220095d0155b07437e733fdb795d9279b))
|
|
61
|
+
* **lib:** register shipped agent files and content-only plugins ([df7fa53](https://github.com/srobroek/opencode-plugins/commit/df7fa53ac93f0327a1735fcf1e5c6017d0216754))
|
|
62
|
+
* **model-roles:** tiers derived from the catalog, reviewer tier and one-time classification ([4265016](https://github.com/srobroek/opencode-plugins/commit/42650166140c1fada15bda5066d235fdf5fce327))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Performance
|
|
66
|
+
|
|
67
|
+
* give shipped subagents tool allowlists ([014fffb](https://github.com/srobroek/opencode-plugins/commit/014fffb403fd1363f494af84c63bf93074af6d20))
|
|
68
|
+
* **journeys:** route the six journey skills through one journeys-guide listing entry ([bf326a7](https://github.com/srobroek/opencode-plugins/commit/bf326a7b5676d098c9a0347d861863d00a8e81d7))
|
|
69
|
+
* lead every tool description with a first line under 120 characters ([74b65d9](https://github.com/srobroek/opencode-plugins/commit/74b65d9f446fcc535320b7c320ccaf8482d594df))
|
|
70
|
+
* shorten skill descriptions and hide pure reference skills from the listing ([51841bd](https://github.com/srobroek/opencode-plugins/commit/51841bd68ae7fe809711430fe3430b75b63e81c0))
|
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,107 @@
|
|
|
1
|
-
#
|
|
1
|
+
# journeys
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Author, validate and maintain user journeys: documents that describe what a user
|
|
4
|
+
does and observes end to end, validated against the running product.
|
|
5
|
+
|
|
6
|
+
Ported from the omp-plugins `journeys` plugin.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
Install the Pi package from npm:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
pi install npm:@srobroek/pi-user-journeys
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
opencode plugin add 'github:srobroek/harness-plugins::path:plugins/journeys/opencode'
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The plugin is also in this repository's Claude Code marketplaces
|
|
20
|
+
(`journeys@harness-plugins`). Both get the skills. Claude Code also gets the two
|
|
21
|
+
subagents as `journeys:journey-scribe` and `journeys:journey-validator`. Without the
|
|
22
|
+
tools, the skills run the copied `journeys.py` helper and copy the formulas by hand.
|
|
23
|
+
|
|
24
|
+
## Skills
|
|
25
|
+
|
|
26
|
+
Only `journeys-guide` is listed to the model in OpenCode: it is a router whose body maps each
|
|
27
|
+
situation to one of the skills below, which set `opencode/autoinvoke: false` and load by id. One listing
|
|
28
|
+
entry instead of one per skill keeps the per-request skills listing short.
|
|
29
|
+
|
|
30
|
+
The plugin registers these skills from `skills/`, unless a skill with the same id
|
|
31
|
+
already exists:
|
|
32
|
+
|
|
33
|
+
- `journey-init`: scaffold a `user-journeys` directory. Ships the templates
|
|
34
|
+
(`FORMAT.md`, `README.template.md`, `journey.template.md`, `run.template.md`)
|
|
35
|
+
and `scripts/journeys.py`, which it copies into the journeys directory.
|
|
36
|
+
- `journey-write`: author or amend journeys from feature evidence.
|
|
37
|
+
- `journey-verify`: validate journeys against the running product. Ships the two
|
|
38
|
+
Beads formulas under `formulas/`.
|
|
39
|
+
- `journey-verify-changed`: validate only the journeys a diff affects.
|
|
40
|
+
- `journey-campaign`: fleet-scale validation with a fix loop.
|
|
41
|
+
- `journey-consolidate`: flush delta logs, prune runs and regenerate the index,
|
|
42
|
+
with human approval.
|
|
43
|
+
|
|
44
|
+
## Journeys and E2E specs
|
|
45
|
+
|
|
46
|
+
Journeys stay the agent-validated source of truth. After a journey passes, its stable steps may
|
|
47
|
+
become a deterministic E2E spec tagged with the journey id; `journey-write` and `journey-verify`
|
|
48
|
+
describe the workflow. The tool for each surface is in the `e2e` row of `surfaces.md` in the
|
|
49
|
+
`toolchain-languages` skill.
|
|
50
|
+
|
|
51
|
+
## Agents
|
|
52
|
+
|
|
53
|
+
The plugin adds two subagents from `agents/`, converted from the omp agents with
|
|
54
|
+
`scripts/convert-agent.ts`:
|
|
55
|
+
|
|
56
|
+
- `journey-scribe` (steps 100): writes and amends journey documents; never drives the product.
|
|
57
|
+
Its permissions are a tool allowlist: read, grep, glob, edit, shell, the `journey*`
|
|
58
|
+
skills, Code Mode, the `lsp_*` tools and the journeys tools. Everything else, including web
|
|
59
|
+
access and subagents, is denied and left out of its requests.
|
|
60
|
+
- `journey-validator`: drives one journey end to end and records a run. Web fetch,
|
|
61
|
+
web search, skills and subagents are denied. It keeps a denylist rather than an
|
|
62
|
+
allowlist because it drives the product through whatever MCP server the
|
|
63
|
+
journey's profile names, and those tool names are not known in advance.
|
|
64
|
+
|
|
65
|
+
Both are hidden from the subagent catalog: the `journey-write`, `journey-verify` and
|
|
66
|
+
`journey-campaign` skills name them, so the parent spawns them by id.
|
|
67
|
+
|
|
68
|
+
Fields you configure for an agent with the same id win, and your permissions are
|
|
69
|
+
added after the shipped ones, so they take precedence. `journey-scribe` declares the
|
|
70
|
+
`standard` model tier and `journey-validator` the `reviewer` tier, in the
|
|
71
|
+
`x-opencode-model-role` request header. With the model-roles plugin, the tier picks
|
|
72
|
+
their model. Without it they inherit the caller's model. `journey-validator` runs at
|
|
73
|
+
most 400 steps.
|
|
74
|
+
|
|
75
|
+
## Tools
|
|
76
|
+
|
|
77
|
+
- `journeys_index` runs the bundled `journeys.py` with `command` `index`, `lint` or
|
|
78
|
+
`prune` on `journeysDir`, from the session directory. Lint checks structure, not
|
|
79
|
+
semantic readiness. `prune` takes a nonnegative `keep` (default 20), deletes only
|
|
80
|
+
with `yes=true`, and prunes one journey directory when `journey` is set (all of
|
|
81
|
+
them otherwise). A run that times out (10 minutes) or is cancelled reports
|
|
82
|
+
`complete: false` and its reason instead of an exit code.
|
|
83
|
+
- `journey_install_formulas` copies the bundled formulas into
|
|
84
|
+
`<repoRoot>/.beads/formulas/`. Both required formulas are checked first; symlinked
|
|
85
|
+
paths and divergent destinations are refused. `force=true` overwrites divergent
|
|
86
|
+
formula files only.
|
|
87
|
+
|
|
88
|
+
Calls that write ask permission through `permission.assert` first: `journeys_index`
|
|
89
|
+
for `index` and `prune` with `yes=true`, and every `journey_install_formulas` call.
|
|
90
|
+
Lint and a dry-run prune do not. The action is the tool name; the resource is
|
|
91
|
+
`index <dir>`, `prune <dir> <journey>` (`*all*` for a directory-wide prune) or the
|
|
92
|
+
repository root. OpenCode's default policy allows unknown actions, so add a rule to
|
|
93
|
+
be prompted:
|
|
94
|
+
|
|
95
|
+
```jsonc
|
|
96
|
+
{
|
|
97
|
+
"permissions": [
|
|
98
|
+
{ "action": "journeys_index", "resource": "prune *", "effect": "ask" },
|
|
99
|
+
{ "action": "journey_install_formulas", "resource": "*", "effect": "ask" }
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Each validator records its journey's run and findings. The coordinator alone
|
|
105
|
+
updates the shared `INDEX.md` and `TRACKER.md` and commits journeys-directory
|
|
106
|
+
changes per wave. The filesystem safety checks are preflight checks and give no
|
|
107
|
+
lock against concurrent writers.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: journey-scribe
|
|
3
|
+
description: "Authors and amends user journeys with evidence-gated changes and stable IDs. Never drives the product or edits product code."
|
|
4
|
+
tools: read, grep, find, ls, edit, bash, journeys_index, journey_install_formulas
|
|
5
|
+
skills: journey-init, journey-write, journey-verify, journey-consolidate, journeys-guide
|
|
6
|
+
inheritProjectContext: true
|
|
7
|
+
inheritSkills: true
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
You write and amend user-journey documents. The caller supplies the journeys directory, task (new journey, amendment, or migration), and authoring input (spec paths, PRs, diff, or legacy docs). Read `FORMAT.md` (normative), `README.md`, and `INDEX.md` before writing.
|
|
11
|
+
|
|
12
|
+
## Boundaries
|
|
13
|
+
|
|
14
|
+
- Journeys are spec-informed and independently owned. Change records are authoring input, never copied verbatim; describe the user journey end to end and link sources in `trace:`.
|
|
15
|
+
- Amend behavior only with cited intent evidence. Corrections edit the body without a version bump or delta entry. Without evidence, do not amend.
|
|
16
|
+
- Never drive the product or edit product code.
|
|
17
|
+
- Never renumber or reuse journey, step, precondition, or criteria IDs; insertions get letter suffixes.
|
|
18
|
+
- Do not invent missing success criteria. Return open questions to the caller.
|
|
19
|
+
- Keep journeys in `status: draft` when the definition-of-ready audit fails.
|
|
20
|
+
|
|
21
|
+
## Craft
|
|
22
|
+
|
|
23
|
+
- Use interface-agnostic `Do:` steps and observable `Expect:` assertions. Add negative expectations where trust depends on something not happening.
|
|
24
|
+
- `surfaces:` names product surfaces; `interfaces:` names profiles from `README.md`.
|
|
25
|
+
- Finish with `journeys_index` using `command: lint`, then `command: index` for the target `journeysDir`.
|
|
26
|
+
- Commit convention: `journey(J<id>): <create|amend|correct|migrate> ...`.
|
|
27
|
+
|
|
28
|
+
## Output contract
|
|
29
|
+
|
|
30
|
+
Return journeys created or amended, evidence references, corrections, README updates, lint/index results, definition-of-ready findings, and open questions. Never reprint journey bodies. Cap at 400 words.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: journey-validator
|
|
3
|
+
description: "Validates one user journey against the running product, recording evidence, intent-gated triage, and run results. Never edits product code."
|
|
4
|
+
tools: read, grep, find, ls, bash, journeys_index, journey_install_formulas
|
|
5
|
+
skills: journey-verify, journeys-guide
|
|
6
|
+
inheritProjectContext: true
|
|
7
|
+
inheritSkills: true
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
Validate exactly one user journey end to end. The caller supplies the journey path, journeys directory, run mode, and interface profile. Read `FORMAT.md` and `README.md` first; FORMAT.md is normative.
|
|
11
|
+
|
|
12
|
+
## Boundaries
|
|
13
|
+
|
|
14
|
+
- Never edit product code. Regressions become findings, not patches.
|
|
15
|
+
- Never amend a journey without intent evidence you can cite. Corrections and evidenced intended changes only; suspected regressions and product questions leave it untouched.
|
|
16
|
+
- Never consolidate or prune runs; that requires a separate human-gated workflow.
|
|
17
|
+
- State which interface you actually drove. Expectations you could not observe at the user's fidelity are `blocked`, never `pass`. Do not fake preconditions unless the profile documents stand-ins.
|
|
18
|
+
|
|
19
|
+
## Procedure
|
|
20
|
+
|
|
21
|
+
1. Resolve the driving strategy from the profile and project docs. Use only the named shell commands, configured MCP server, or browser interface.
|
|
22
|
+
2. Establish preconditions and record the Git commit. Unestablishable preconditions block dependent steps; continue independently reachable work.
|
|
23
|
+
3. Execute steps in order and observe every expectation. Record evidence proportionate to each claim.
|
|
24
|
+
4. Triage mismatches as exactly one of correction, intended-change, suspected-regression, product-question, or environment. Search intent evidence before concluding regression.
|
|
25
|
+
5. Amend only under the stated authority rules. Record each run at `runs/<UTC>.md` using FORMAT.md.
|
|
26
|
+
6. Return finding payloads with evidence, triage, and severity. The coordinator owns shared index/tracker updates, IDs, and commits.
|
|
27
|
+
|
|
28
|
+
## Output contract
|
|
29
|
+
|
|
30
|
+
Return per-step results, amendments with evidence references, findings or assigned IDs, triage/severity, and environment issues. Never reprint journey bodies, run files, or evidence. Cap at 400 words.
|