yam-flow 0.1.2 → 0.1.4

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 ADDED
@@ -0,0 +1,36 @@
1
+ # Changelog
2
+
3
+ All notable changes to yam-flow are documented here.
4
+
5
+ ## v0.1.4 - 2026-06-03
6
+
7
+ ### Added
8
+
9
+ - Added `yam runtime evidence` details for pid, port, URL, exit code, screenshot id, and runtime timing metadata.
10
+ - Added `yam mission queue` patch queue items with lane id, status, dependencies, tool intent, patch envelope, rollback hint, optional JSON output, and queue depth.
11
+ - Added Ueye review continuity fields for resolved findings, new findings, still-open items, regressions, viewport, state, previous screenshot id, and current screenshot id.
12
+ - Added release tarball provenance and release freshness summaries to `yam release report`.
13
+ - Added structured diagnostic next-action metadata with priority, owner route, tool intent, fix-first, and release-blocking signals.
14
+ - Added `yam benchmark report` for compact before/after performance notes.
15
+
16
+ ### Improved
17
+
18
+ - Expanded CLI smoke coverage for Ueye report continuity, runtime evidence, mission queue, and benchmark report commands.
19
+ - Strengthened docs, skill guidance, and templates for visual provenance, mission lane handoff, runtime proof, and final report evidence.
20
+ - Kept advanced scheduler, persistent queue, and attachment-gate ideas deferred so the default flow stays fast.
21
+
22
+ ## v0.1.3 - 2026-05-31
23
+
24
+ ### Added
25
+
26
+ - Added `yam ueye report` for compact visual run reports with reference sources, implementation screenshots, comparison result, design quality, next action, and truth status.
27
+ - Added `yam media proof` to record media generation attempts, outputs, blocked states, and proof caps without treating generated media as implemented UI evidence.
28
+ - Added runtime backend evidence fields to `yam proof`, including backend, claim, evidence id, command, cleanup check, and truth status.
29
+ - Added `yam doctor --json` with machine-readable issues and next-action hints.
30
+ - Added framework mini checklist output to `yam detect` and `yam tools doctor`.
31
+
32
+ ### Improved
33
+
34
+ - Expanded Ueye proof guidance for reference evidence, implementation screenshots, comparison reports, and generated media limits.
35
+ - Extended CLI smoke checks to cover the new Ueye report and media proof commands.
36
+ - Kept visual and media proof helpers opt-in so fast routes remain lightweight.
package/COMMANDS.md CHANGED
@@ -44,6 +44,8 @@ Opt-in visual evidence helpers:
44
44
  ```bash
45
45
  yam ueye capture --url http://localhost:3000 --out .yam/screens/home.png
46
46
  yam ueye compare --reference ./reference.png --actual .yam/screens/home.png
47
+ yam ueye report --reference ./reference.png --actual .yam/screens/home.png --review-session-id pricing-card-v1 --similar "overall hierarchy" --different "button glow intensity" --missing "mobile state" --design-quality needs-polish --json
48
+ yam media proof --requested --attempted --output ./generated.png --wait-loop --json
47
49
  yam proof --route ueye --truth partial --visual "browser/local screenshot comparison executed" --require-visual
48
50
  ```
49
51
 
@@ -131,6 +133,7 @@ yam memory summary /path/to/project
131
133
  ```bash
132
134
  yam budget quick
133
135
  yam measure quick --files 3 --commands 1 --report-lines 5 --seconds 40
136
+ yam template tuning
134
137
  ```
135
138
 
136
139
  ## Tool Doctor / Proof / Safety
@@ -146,6 +149,11 @@ yam proof --route ueye --truth verified --visual "reference image only"
146
149
  yam proof --route ueye --truth partial --visual-provenance '{"source_kind":"reference","source_hash":"unknown","comparison_result":"not-verified","truth_status":"partial"}'
147
150
  yam ueye capture --url http://localhost:3000 --out .yam/screens/home.png
148
151
  yam ueye compare --reference ./reference.png --actual .yam/screens/home.png --json
152
+ yam ueye report --reference ./reference.png --actual .yam/screens/home.png --design-quality pass --json
153
+ yam media proof --requested --attempted --output ./generated.png --wait-loop --json
154
+ yam runtime evidence --backend terminal --claim observed --evidence-id dev-server-1 --command "npm run dev" --json
155
+ yam mission queue --agent-id implementer --scope "checkout form" --changed src/checkout.tsx --verification-hint "npm run typecheck" --rollback-hint "revert checkout form patch if typecheck or smoke fails" --json
156
+ yam benchmark report --label "render time" --baseline 100 --current 86 --unit ms --target lower --json
149
157
  yam proof --route mission --mission-envelope '{"agent_id":"implementer","assigned_scope":"target component","changed_files":["src/file.ts"],"verification_hint":"npm run typecheck","truth_status":"partial"}'
150
158
  yam proof --route deep --truth proven --require-runtime --runtime "mock server fixture"
151
159
  yam proof write /path/to/project --route deep --truth partial --command "npm run build: pass"
@@ -159,6 +167,29 @@ Release reporting intentionally runs the release checks and returns a machine-re
159
167
  yam release report --json
160
168
  ```
161
169
 
170
+ ## Flow Artifact Shapes
171
+
172
+ Use existing templates and JSON outputs for compact support records:
173
+
174
+ ```bash
175
+ yam template proof
176
+ yam template mission
177
+ yam template tuning
178
+ yam tools doctor /path/to/project --json
179
+ yam release report --json
180
+ yam runtime evidence --backend terminal --claim cleanup-verified --cleanup-checked --json
181
+ yam mission queue --agent-id reviewer --scope "changed files review" --changed src/bin/yam.ts --verification-hint "npm run typecheck" --json
182
+ yam benchmark report --label "bundle size" --baseline 120 --current 118 --unit kB --target lower --json
183
+ ```
184
+
185
+ Supported report shapes:
186
+
187
+ - Runtime evidence mini: command/process, observation, cleanup, truth status, next action.
188
+ - Patch queue lite: mission lane status, changed files, verification hint, rollback hint, truth status.
189
+ - Benchmark optimization loop lite: baseline, one change, rerun, keep/revert decision.
190
+ - Structured diagnostic next action: severity, evidence, owner route, next action, truth status.
191
+ - Ueye continuity/comparison: previous report, current report, comparison delta, design quality, next action.
192
+
162
193
  ## Lite Hook
163
194
 
164
195
  Advisory-only hook. It does not run checks or force routes.
package/README.md CHANGED
@@ -19,7 +19,7 @@ End with remaining tasks and fix-first items.
19
19
  - `$quick`: fast scoped implementation, small fixes, and quick error scans.
20
20
  - `$ueye`: tight UI/UX/design implementation and visual review with reference-read proof, comparison, and quality judgment.
21
21
  - `$question`: direct Q&A without turning simple questions into research projects.
22
- - `$scout`: bounded investigation and recommendation.
22
+ - `$scout`: conduct broad investigations, gather evidence, analyze options, and provide recommendations.
23
23
  - `$deep`: single-agent heavy verification by request, including runtime/tmux/browser/process proof when needed.
24
24
  - `$mission`: approved-plan execution with real subagent/team lanes, cross-verification, doctor scan, and final proof.
25
25
 
@@ -129,6 +129,8 @@ yam proof --route ueye --truth verified --visual "reference image only"
129
129
  yam proof --route ueye --truth partial --visual-provenance '{"source_kind":"reference","source_hash":"unknown","comparison_result":"not-verified","truth_status":"partial"}'
130
130
  yam ueye capture --url http://localhost:3000 --out .yam/screens/home.png
131
131
  yam ueye compare --reference ./reference.png --actual .yam/screens/home.png
132
+ yam ueye report --reference ./reference.png --actual .yam/screens/home.png --design-quality needs-polish --json
133
+ yam media proof --requested --attempted --output ./generated.png --wait-loop --json
132
134
  yam proof --route mission --mission-envelope '{"agent_id":"implementer","assigned_scope":"target component","changed_files":["src/file.ts"],"verification_hint":"npm run typecheck","truth_status":"partial"}'
133
135
  yam release report --json
134
136
  yam safety "supabase db reset"
@@ -174,10 +176,28 @@ Publishing still requires confirming the final npm package name and account acce
174
176
  - fake versus real distinction
175
177
  - runtime truth matrix
176
178
  - visual evidence caps
179
+ - Ueye visual run reports
180
+ - runtime backend evidence
181
+ - runtime evidence mini summaries
182
+ - mission patch queue lite records
183
+ - release report JSON
184
+ - structured diagnostic next actions
185
+ - media generation proof caps
177
186
  - DB/Supabase safety signals
178
187
 
179
188
  It is implemented locally in `src/lib/trust-kernel.ts` and kept route-scoped. It is not an always-on release gate.
180
189
 
190
+ ## Flow Artifact Shapes
191
+
192
+ These shapes keep reports machine-readable without turning normal work into a heavy gate.
193
+
194
+ - Runtime evidence mini: compact route, command/process, observation, cleanup, truth status, and next action fields for `$deep` or `$mission` runtime claims.
195
+ - Patch queue lite: `$mission` lane records with pending/applied/verified/reverted/blocked state, changed files, verification hint, rollback hint, truth status, and next action.
196
+ - Release report JSON: `yam release report --json` summarizes typecheck, forbidden-name scan, package boundary, registry status, CLI smoke, dist freshness, diagnostics, and final truth status.
197
+ - Benchmark optimization loop lite: use `yam measure <route>` and `yam template tuning` to record baseline, one route wording change, rerun result, keep/revert decision, and stop condition.
198
+ - Structured diagnostic next action: every doctor/release diagnostic should say what was observed, what evidence supports it, what to do next, owner route, severity, and truth status.
199
+ - Ueye review continuity/comparison report: `$ueye` run reports can link a previous review, current evidence, comparison delta, design quality result, and next action.
200
+
181
201
  ## Ueye Capture And Compare
182
202
 
183
203
  `$ueye` stays one skill. It starts fast by default, then uses capture/compare only when a visual claim needs real evidence.
@@ -185,10 +205,19 @@ It is implemented locally in `src/lib/trust-kernel.ts` and kept route-scoped. It
185
205
  ```bash
186
206
  yam ueye capture --url http://localhost:3000 --out .yam/screens/home.png
187
207
  yam ueye compare --reference ./reference.png --actual .yam/screens/home.png --json
208
+ yam ueye report --reference ./reference.png --actual .yam/screens/home.png --design-quality pass --json
188
209
  ```
189
210
 
190
211
  `capture` uses a Playwright install from the current project when present, then falls back to the package context. It does not install browsers or add runtime dependencies by itself. If capture is unavailable, the visual claim stays `partial` or `blocked` until a real screenshot is supplied.
191
212
 
192
213
  `compare` is local-only and dependency-free. It records file hashes, dimensions, comparison result, and proof-ready visual provenance. Exact image matches can be `verified`; different screenshots stay `partial` so visual parity is not overclaimed.
193
214
 
215
+ `report` gathers reference sources, implementation screenshots, comparison result, continuity fields, design quality judgment, and next action into one compact proof-ready JSON object.
216
+
217
+ Generated media can guide visual direction, but it cannot prove the implemented UI by itself:
218
+
219
+ ```bash
220
+ yam media proof --requested --attempted --output ./generated.png --wait-loop --json
221
+ ```
222
+
194
223
  For agent-driven visual QA, prefer the Codex in-app Browser plugin. Use the user's Chrome browser only when explicitly requested or when Chrome-only session/profile state is required.
package/ROADMAP.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Implemented:
6
6
 
7
- - Skills-first harness.
7
+ - Skills-first workflow.
8
8
  - Six routes: quick, ueye, question, scout, deep, mission.
9
9
  - Shared references.
10
10
  - Local CLI: list, status, verify, doctor, examples, path, install, uninstall.
@@ -54,7 +54,7 @@ Tasks:
54
54
 
55
55
  ### 4. Token Budget Reporter
56
56
 
57
- Goal: keep the harness honest about context usage.
57
+ Goal: keep the workflow honest about context usage.
58
58
 
59
59
  Tasks:
60
60
 
@@ -275,7 +275,7 @@ Tasks:
275
275
  ### 15. Lite Hook / Progressive Tool Trust Layer
276
276
 
277
277
  Goal: keep beginner momentum while creating a path toward professional proof-first work.
278
- The hook stays light, but the harness direction does not. `yam` should support a depth ladder: direction fit first, focused proof for ordinary work, strong proof for risky work, and real team proof for `$mission`.
278
+ The hook stays light, but the `yam` direction does not. `yam` should support a depth ladder: direction fit first, focused proof for ordinary work, strong proof for risky work, and real team proof for `$mission`.
279
279
 
280
280
  Kept:
281
281
 
@@ -325,7 +325,7 @@ Rules:
325
325
 
326
326
  #### Mission Patch Queue Lite
327
327
 
328
- Status: next candidate for `$mission` only.
328
+ Status: documented lite shape for `$mission` only; implementation remains route-scoped.
329
329
 
330
330
  Trigger:
331
331
 
@@ -381,7 +381,7 @@ Status: later.
381
381
  Trigger:
382
382
 
383
383
  - Tool intent labels are no longer enough.
384
- - The harness starts coordinating multiple external tools inside one route.
384
+ - The workflow starts coordinating multiple external tools inside one route.
385
385
  - Write or destructive actions could run near read-only checks.
386
386
  - Parallel tool execution becomes common and needs ordering.
387
387
  - A mission needs deterministic tool sequence proof.