@seanyao/roll 3.627.1 → 4.629.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 +14 -0
- package/README.md +74 -13
- package/dist/roll.mjs +20026 -18879
- package/package.json +1 -1
- package/skills/roll-.qa/SKILL.md +4 -0
- package/skills/roll-.review/SKILL.md +4 -0
- package/skills/roll-build/SKILL.md +6 -1
- package/skills/roll-build/references/full-contract.md +79 -8
- package/skills/roll-design/SKILL.md +6 -1
- package/skills/roll-design/references/full-contract.md +56 -0
- package/skills/roll-fix/SKILL.md +4 -0
- package/skills/roll-fix/references/full-contract.md +6 -5
- package/skills/roll-peer/SKILL.md +4 -0
- package/skills/roll-propose/SKILL.md +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## v4.629.1 — 2026-06-29
|
|
6
|
+
|
|
7
|
+
### 自动化流水线
|
|
8
|
+
|
|
9
|
+
- **V4 Supervisor 执行架构上线**:Story 现在按 standard、verified、planned 剖面交付,Supervisor 负责项目级观察与建议,验收证据按 Story 收口,不再依赖全局档案刷新。(US-V4-001, US-V4-002, US-V4-003, US-V4-004, US-V4-005, US-V4-006, US-V4-007, US-V4-008, US-V4-009, US-V4-010, US-V4-012) `[autonomous-evolution]`
|
|
10
|
+
<!-- evidence: .roll/features/autonomous-evolution/US-V4-008/latest/US-V4-008-report.html -->
|
|
11
|
+
<!-- evidence: .roll/features/autonomous-evolution/US-V4-012/latest/US-V4-012-report.html -->
|
|
12
|
+
|
|
13
|
+
## v3.628.1 — 2026-06-28
|
|
14
|
+
|
|
15
|
+
### 上手引导
|
|
16
|
+
|
|
17
|
+
- **`roll init` 给出的 PRD 下一步现在能直接运行**:`roll design --from-file <path>` 会校验输入文件并把 PRD/brief 绑定到 `$roll-design`,不再落到 usage。(#1065) `[legacy-onboard]`
|
|
18
|
+
|
|
5
19
|
## v3.627.1 — 2026-06-27
|
|
6
20
|
|
|
7
21
|
### 上手引导
|
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
[](https://www.npmjs.com/package/@seanyao/roll)
|
|
15
15
|
[](https://github.com/seanyao/roll/actions/workflows/ci.yml)
|
|
16
16
|
|
|
17
|
-
Roll — a CLI that
|
|
17
|
+
Roll — a Supervisor-led CLI harness that routes AI agents through story-scoped planning, building, evaluation, git, CI, and acceptance evidence. Works with Claude, Cursor, Codex, Kimi, Pi, Reasonix, and other local rigs when they are available.
|
|
18
18
|
|
|
19
19
|
## Install
|
|
20
20
|
|
|
@@ -41,7 +41,8 @@ roll loop on # let AI work through the backlog (optional)
|
|
|
41
41
|
`Already initialized` and `Next: roll status`; partial Roll projects get
|
|
42
42
|
`roll init --repair`, while pre-2.0 layouts get migration guidance without writing files. Existing codebases route to
|
|
43
43
|
`$roll-onboard`. PRD/docs-only workspaces are treated as new projects: Roll writes
|
|
44
|
-
`.roll/brief.md` from the detected document and points to
|
|
44
|
+
`.roll/brief.md` from the detected document and points to
|
|
45
|
+
`roll design --from-file <detected-doc>`.
|
|
45
46
|
Empty directories ask what you are building in an interactive terminal; in scripts
|
|
46
47
|
and CI, plain `roll init` is read-only and `roll init --auto` writes a placeholder
|
|
47
48
|
brief before pointing to `roll design`.
|
|
@@ -54,6 +55,61 @@ brief, onboard plan, backlog, and Roll markers, then prints one best next
|
|
|
54
55
|
command instead of a menu.
|
|
55
56
|
First time through? Start with [Getting started](guide/en/getting-started.md).
|
|
56
57
|
|
|
58
|
+
## V4 Supervisor Execution
|
|
59
|
+
|
|
60
|
+
Roll V4 separates project coordination from story delivery:
|
|
61
|
+
|
|
62
|
+
- **Supervisor Agent** coordinates at project level: backlog order, cross-Story context, route advice, repeated failures, release readiness, budget, and owner escalation. It observes and advises; it does not implement a Story or override evidence gates.
|
|
63
|
+
- **Story Execution Unit** delivers one Story through an execution profile: `standard` = Builder, `verified` = Builder -> Evaluator, `planned` = Planner -> Builder -> Evaluator.
|
|
64
|
+
- **Planner / Builder / Evaluator roles** are stable contracts. The concrete `agent`, `model`, and `rig` can vary per Story through route profiles.
|
|
65
|
+
- **Skills remain** the capability layer. Roles invoke `$roll-design`, `$roll-build`, `$roll-fix`, `$roll-peer`, `$roll-.qa`, and related skills instead of rewriting those contracts into TypeScript.
|
|
66
|
+
- **Fallback is fail-loud**. If a requested agent or rig is unavailable, Roll records that unavailability and pauses or asks for owner action; it does not silently pretend another agent was used.
|
|
67
|
+
- **Attest and evidence are story-scoped**. A Story is accepted through its own `latest/<id>-report.html`, AC map, and screenshots/test artifacts.
|
|
68
|
+
|
|
69
|
+
Role routing can be declared per Story:
|
|
70
|
+
|
|
71
|
+
```yaml
|
|
72
|
+
story: US-V4-012
|
|
73
|
+
execution_profile: verified
|
|
74
|
+
roles:
|
|
75
|
+
builder:
|
|
76
|
+
agent: kimi
|
|
77
|
+
responsibility: update README, docs, guides, website, and samples
|
|
78
|
+
evaluator:
|
|
79
|
+
agent: pi
|
|
80
|
+
responsibility: evaluate new-user clarity and product narrative
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Runtime availability is explicit: if `kimi` or `pi` is not callable on the current machine, the delivery records that limitation instead of hiding it behind a silent fallback.
|
|
84
|
+
|
|
85
|
+
## Onboarding Samples
|
|
86
|
+
|
|
87
|
+
**Zero-start project**
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
mkdir my-product && cd my-product
|
|
91
|
+
roll init
|
|
92
|
+
# In an interactive terminal, describe the requirement, point to a PRD,
|
|
93
|
+
# or let Roll write .roll/brief.md from detected notes.
|
|
94
|
+
roll next
|
|
95
|
+
roll design --from-file .roll/brief.md
|
|
96
|
+
roll loop on
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Roll explains the next design step instead of inventing fake work. The Planner turns the requirement into Stories, the Supervisor selects `standard`, `verified`, or `planned` per Story, Builder/Evaluator roles execute, and the owner reviews story-scoped attest evidence.
|
|
100
|
+
|
|
101
|
+
**Existing project**
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
cd existing-codebase
|
|
105
|
+
roll init
|
|
106
|
+
roll next
|
|
107
|
+
roll init --apply # after reviewing the generated onboard plan
|
|
108
|
+
roll loop on
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Roll diagnoses the repository without destructive migration, writes or updates Roll metadata only after review, and then lets the Supervisor reason over existing backlog, docs, context, open PRs, and route profiles. Current state is visible through CLI-first observability: `roll status`, `roll loop watch`, `roll loop runs`, `roll cycle <id>`, `roll loop alert`, and story reports.
|
|
112
|
+
|
|
57
113
|
## Quick start for new projects
|
|
58
114
|
|
|
59
115
|
A new project needs a remote before the loop can push branches and open PRs:
|
|
@@ -85,9 +141,10 @@ with `roll loop resume` when ready.
|
|
|
85
141
|
| `roll backlog [sync\|block\|defer\|lint\|…]` | View, manage, and sync (from GitHub Issues) pending tasks |
|
|
86
142
|
| `roll loop alert [list\|ack\|resolve\|log]` | View / clear loop alerts |
|
|
87
143
|
| `roll status` | Verdict-first truth summary read from the ONE snapshot — LOOP · CYCLE · RELEASE · STORY, with the STORY line's attest-coverage % (`done ≡ merged ∧ attested`) — then convention/AI-client sync health |
|
|
144
|
+
| `roll supervisor [observe\|advise\|next\|why] [--json]` | Project-level Supervisor Agent (v0 observe/advise): reads backlog, merge truth, open PRs, route config, repeated failures, and release readiness, then emits advisory decisions. Cross-Story coordination only — never implements a Story; persistent policy changes need owner confirmation |
|
|
88
145
|
| `roll pulse [--json]` | Today's delivery pulse: cycles in window, merged count, attested count, plus an ASCII sparkline from the story spectrum. Bilingual EN/中. `--json` for machine-readable output |
|
|
89
146
|
| `roll doctor [skills\|--tools]` | Environment + install diagnosis; `roll doctor --tools` shows focused tool and screenshot readiness, including Terminal.app Screen Recording |
|
|
90
|
-
| `roll daemon <start\|stop\|status>` |
|
|
147
|
+
| `roll daemon <start\|stop\|status>` | Experimental read-only event broadcaster for future browser observability; defaults to `127.0.0.1:7077`, records `.roll/loop/daemon.pid`, and is never auto-started by the loop |
|
|
91
148
|
| `roll tune [reset]` | Suggest-only self-tuning from loop trends — read-only, never auto-applies |
|
|
92
149
|
| **Cards & evidence** | |
|
|
93
150
|
| `roll idea "<one-sentence description>"` | Capture a card: auto-classify, number, lint, infer epic, mint the full story folder — the one user entry for adding cards |
|
|
@@ -95,24 +152,23 @@ with `roll loop resume` when ready.
|
|
|
95
152
|
| **Project · per repo** | |
|
|
96
153
|
| `roll init` | Diagnose this directory and route to fresh scaffold, PRD/design handoff, existing-codebase onboard, repair, migration, or `roll status` |
|
|
97
154
|
| `roll next` | Continue the init/onboard journey with one best next command: design, apply, repair, migrate, loop, or status |
|
|
98
|
-
| `roll design [--agent <name>]` | Launch `$roll-design` interactively
|
|
155
|
+
| `roll design [--from-file <path>] [--agent <name>]` | Launch `$roll-design` interactively; `--from-file` binds a PRD/brief as the design input |
|
|
99
156
|
| `roll offboard` | Remove Roll from this project |
|
|
100
157
|
| `roll test [--where] [--reset]` | Run the test suite (routes through the isolation adapter; unknown types fail loud) |
|
|
101
|
-
| `roll daemon <start\|stop\|status>` | Manage the read-only observability daemon (
|
|
158
|
+
| `roll daemon <start\|stop\|status>` | Manage the experimental read-only observability daemon (opt-in only; never auto-started) |
|
|
102
159
|
| `roll ci [--wait]` | Show or wait for current commit's CI status |
|
|
103
160
|
| `roll release [--dry-run]` | The ONE release flow: bump → changelog fold → package gate → commit-push → consistency gate → PR → auto-merge → tag push (gate runs before merge; drives the merge via GitHub auto-merge) |
|
|
104
161
|
| `roll showcase [--card <ID>]` | The golden-path standard E2E in an isolated sandbox: reset the card, cast a heterogeneous real-agent trio (kimi/claude/pi), deliver via the loop, capture CLI+web screenshots, assemble the evidence chain, emit a pass/fail verdict |
|
|
105
162
|
| `roll dream run-once` | Run the nightly Dream scan now; code-structure findings are seeded by a deterministic TS/AST pre-scan artifact before the agent writes the report |
|
|
106
163
|
| `roll pair [init\|status\|score]` | Cross-agent pairing: heterogeneous peer re-checks and scores deliveries |
|
|
107
164
|
| `roll cycles [--since 1d\|3d\|7d\|all]` | The cycle ledger — one line per cycle, failures never swallowed |
|
|
108
|
-
| `roll cycle <id>` | One cycle's full trace tape (cycle→story→build→peer→ci→pr→end) |
|
|
109
|
-
| web `#loop` cycle rows | The same ledger expands to the shared ActivitySignal stream and writes `.roll/loop/cycle-<id>.signals.jsonl` for replay |
|
|
165
|
+
| `roll cycle <id>` | One cycle's full trace tape (cycle→story→build→peer→ci→pr→end); the same trace is persisted as `.roll/loop/cycle-<id>.signals.jsonl` for replay |
|
|
110
166
|
| `roll peer [--reviewer <agent>] (--prompt <text>\|--file <path>)` | One-shot structured external-provider review; records `.roll/peer/runs.jsonl` |
|
|
111
167
|
| **Config & machine** | |
|
|
112
168
|
| `roll ls [--json] [--stale-days <n>]` | List the cross-project registry (`~/.roll/projects.json`): name · tag · verdict · path; missing/stale rows flagged, never dropped |
|
|
113
169
|
| `roll config [lang <zh\|en\|--reset>\|…]` | Read/write roll config (language, loop window, dream time) |
|
|
114
170
|
| `roll agent [set <slot> <agent>\|use <name>\|list]` | Per-machine complexity-slot routing (easy/default/hard/fallback) |
|
|
115
|
-
| `roll cast [--json]` | Print the complexity-ladder
|
|
171
|
+
| `roll cast [--json]` | Print the complexity-ladder -> role Casting table (`--json` for the machine view) |
|
|
116
172
|
| `roll doctor skills [--strict] [--json]` | Strict skills audit (skills · violations · hub lines + the four invocation groups — the SAME yardstick the web Skills page reads) |
|
|
117
173
|
| `roll setup skills` | Sync the `guide/skills.md` skill catalog |
|
|
118
174
|
| `roll doc [--lang en\|zh] [name]` | View the Charter / language guide markdown in the terminal (`--lang` falls back to the configured language) |
|
|
@@ -122,12 +178,14 @@ with `roll loop resume` when ready.
|
|
|
122
178
|
| `roll update` | Upgrade to latest + re-sync |
|
|
123
179
|
| `roll --version` / `roll -v` | Print installed roll version |
|
|
124
180
|
|
|
125
|
-
##
|
|
181
|
+
## Observability Now
|
|
126
182
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
183
|
+
Roll's current observability is CLI-first. Persistent facts flow through one
|
|
184
|
+
read path: anchors -> selectors -> adapter -> projections. `roll status`,
|
|
185
|
+
`roll loop watch`, `roll loop runs`, `roll cycle <id>`, `roll pulse`, and
|
|
186
|
+
story-scoped attest reports are the current user-facing truth surfaces.
|
|
187
|
+
`roll index` is an on-demand archive and repair renderer for static HTML pages;
|
|
188
|
+
it is not the active delivery truth surface.
|
|
131
189
|
|
|
132
190
|
- A backlog row is a claim; merge evidence on `main` and recorded acceptance
|
|
133
191
|
evidence are truth. A premature `✅ Done` claim is shown as drift.
|
|
@@ -135,6 +193,9 @@ Story, Cycle, and Release.
|
|
|
135
193
|
free-form summary text.
|
|
136
194
|
- Missing facts render as `?`. A visible `0` means a known zero, not unknown.
|
|
137
195
|
|
|
196
|
+
The full Supervisor Live Console and multi-role board are next work, not
|
|
197
|
+
something this README claims as shipped.
|
|
198
|
+
|
|
138
199
|
## Repository layout
|
|
139
200
|
|
|
140
201
|
Dev side — a pnpm monorepo. Publish side — one npm package.
|