yam-flow 0.1.6 → 0.1.8
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/AGENTS.md +7 -4
- package/CHANGELOG.md +57 -0
- package/COMMANDS.md +15 -3
- package/DECISIONS.md +28 -5
- package/README.md +33 -4
- package/ROADMAP.md +2 -2
- package/dist/bin/yam.js +827 -19
- package/dist/lib/trust-kernel.d.ts +50 -0
- package/dist/lib/trust-kernel.js +187 -4
- package/package.json +1 -1
- package/references/cleanup-scan.md +33 -0
- package/references/final-report.md +6 -1
- package/references/risk-escalation.md +4 -0
- package/references/runtime-orchestration.md +7 -0
- package/references/scout.md +9 -3
- package/references/tool-trust-layer.md +14 -2
- package/references/truth-matrix.md +4 -0
- package/skills/scout/SKILL.md +19 -9
- package/src/bin/yam.ts +835 -19
- package/src/lib/trust-kernel.ts +235 -3
- package/templates/yam.project.md +14 -0
- package/yam.manifest.json +3 -2
package/AGENTS.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# yam Core Rules
|
|
2
2
|
|
|
3
3
|
1. Direction before execution.
|
|
4
|
-
2. Start
|
|
4
|
+
2. Start with clear momentum, then deepen deliberately when scope, risk, learning value, or user intent calls for it.
|
|
5
5
|
3. Treat token economy as part of quality.
|
|
6
6
|
4. Reuse project context packs before broad reading.
|
|
7
7
|
5. Read only the context needed for the requested change.
|
|
@@ -10,9 +10,12 @@
|
|
|
10
10
|
8. Make the smallest useful change.
|
|
11
11
|
9. Verify at the lightest level that honestly supports the claim, then escalate verification when the claim is larger.
|
|
12
12
|
10. Report skipped, partial, blocked, or assumed verification plainly.
|
|
13
|
-
11. Do not run broad tests for tiny changes, but do not under-verify risky
|
|
14
|
-
12. Do not use teams, orchestration, structured proof, or tmux unless risk, user intent, or an approved route justifies it.
|
|
13
|
+
11. Do not run broad tests for tiny changes, but do not under-verify risky, security-sensitive, or public work.
|
|
14
|
+
12. Do not use teams, orchestration, structured proof, or tmux unless risk, user intent, learning value, or an approved route justifies it.
|
|
15
15
|
13. Escalate risky work by asking or recommending, not by silently switching modes.
|
|
16
16
|
14. For UI work, inspect real states and responsive behavior when feasible.
|
|
17
17
|
15. For long-running processes, do not claim cleanup unless process exit is checked.
|
|
18
|
-
16.
|
|
18
|
+
16. Explain useful change insight for non-specialists: what the touched code does, what changed, and why it matters.
|
|
19
|
+
17. Use external references deliberately, preserve source clarity in research/proof notes, and rework good ideas into yam style.
|
|
20
|
+
18. Treat security as the first project lens: identify sensitive surfaces early and guide safer defaults before convenience.
|
|
21
|
+
19. Keep final reports short and concrete, but always include remaining tasks or state that none are meaningful.
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,63 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to yam-flow are documented here.
|
|
4
4
|
|
|
5
|
+
## v0.1.8 - 2026-06-16
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Added `yam loop report [--json]` as a read-only loop artifact for intent, stages, evidence, blockers, next action, remaining tasks, tool intent, truth status, and study note.
|
|
10
|
+
- Added `yam.study-note.v1` so reports can carry short non-specialist explanations of the failing code, its role, observed symptom, changed code, why it matters, and learning note without guessing missing details.
|
|
11
|
+
- Added `publish_readiness` and `study_note` to `yam release report --json` with read-only npm registry/auth/version probes and redacted account/token details.
|
|
12
|
+
- Added Ueye `design_brief` and `anti_slop_review` fields with `--brief-dimension`, `--constraint`, `--anti-slop`, `--invented-metric`, `--placeholder-copy`, and `--generic-visual`.
|
|
13
|
+
|
|
14
|
+
### Improved
|
|
15
|
+
|
|
16
|
+
- Ueye anti-slop P0 findings now feed the design completion gate so `done` claims are blocked until fix-first issues are resolved.
|
|
17
|
+
- Release reports now separate publish readiness evidence from the publish action; `npm publish` remains outside the report.
|
|
18
|
+
- CLI smoke coverage now asserts loop report, study note limits, and Ueye design brief/anti-slop blocked paths.
|
|
19
|
+
|
|
20
|
+
### Verification
|
|
21
|
+
|
|
22
|
+
- `npm run typecheck`
|
|
23
|
+
- `npm run build`
|
|
24
|
+
- `npm run cli-smoke`
|
|
25
|
+
- `npm run verify:self`
|
|
26
|
+
- `npm run forbidden-names:check`
|
|
27
|
+
- `npm run package-boundary:check`
|
|
28
|
+
- `npm run dist:freshness`
|
|
29
|
+
- `node ./dist/bin/yam.js release report --json` (blocked as expected by npm auth readiness and dirty git)
|
|
30
|
+
- `npm whoami --registry https://registry.npmjs.org/` (E401, confirms auth/token blocker)
|
|
31
|
+
|
|
32
|
+
## v0.1.7 - 2026-06-12
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- Added `yam context pressure [dir] [--json]` to explain when project context is becoming stale, broad, or confusing enough to summarize, refresh the project pack, narrow scope, or deepen the route.
|
|
37
|
+
- Added `yam cleanup scan [dir] [--json]` as a read-only advisory cleanup report for active hooks, project-local skill folders, competing instruction surfaces, old install traces, and stale proof/runtime artifacts.
|
|
38
|
+
- Added `contextPressure` and `realProbe` sections to `yam tools doctor --json` so readiness reports show local availability without starting browsers, servers, databases, or long-running processes.
|
|
39
|
+
- Added `publishBlockerEvidence` to `yam release report --json` to classify common npm auth, permission, OTP, immutable-version, cache, registry, and tarball/package-boundary failures into beginner-readable next actions.
|
|
40
|
+
- Added `yam ueye preflight [dir] [--json]` for pre-work UI/design quality checks before screenshots are available.
|
|
41
|
+
- Added optional Ueye report fields: `--preflight-id`, `--p0-risk`, and `--quality-gate-note`.
|
|
42
|
+
- Added stronger runtime cleanup evidence fields for `started_at`, `stopped_at`, `exit_code`, `pid`, `port`, `cleanup_method`, `cleanup_observed`, and `left_running_intentionally`.
|
|
43
|
+
|
|
44
|
+
### Improved
|
|
45
|
+
|
|
46
|
+
- Runtime cleanup claims no longer become `proven` from `--cleanup-checked` alone; observed cleanup plus exit/closure evidence is required.
|
|
47
|
+
- Ueye preflight can identify likely P0/P1 design risks while keeping completion truth capped until real implementation screenshot/comparison evidence exists.
|
|
48
|
+
- Release reports now turn likely npm publish blockers into safe next actions instead of leaving beginners with only raw npm logs.
|
|
49
|
+
- CLI smoke coverage now asserts JSON schemas and truth caps for context pressure, cleanup scan, tools doctor, Ueye preflight/report, and runtime cleanup evidence.
|
|
50
|
+
|
|
51
|
+
### Verification
|
|
52
|
+
|
|
53
|
+
- `npm run typecheck`
|
|
54
|
+
- `npm run forbidden-names:check`
|
|
55
|
+
- `npm run verify:self`
|
|
56
|
+
- `npm run cli-smoke`
|
|
57
|
+
- `npm run dist:freshness`
|
|
58
|
+
- `npm run package-boundary:check`
|
|
59
|
+
- `npm_config_cache=/private/tmp/yam-npm-cache npm pack --dry-run`
|
|
60
|
+
- `node ./dist/bin/yam.js release report --json`
|
|
61
|
+
|
|
5
62
|
## v0.1.6 - 2026-06-07
|
|
6
63
|
|
|
7
64
|
### Added
|
package/COMMANDS.md
CHANGED
|
@@ -42,9 +42,10 @@ yam template ueye-comparison
|
|
|
42
42
|
Opt-in visual evidence helpers:
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
|
+
yam ueye preflight /path/to/project --json
|
|
45
46
|
yam ueye capture --url http://localhost:3000 --out .yam/screens/home.png
|
|
46
47
|
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 --provider-context local --execution-surface in-app-browser --browser-surface in-app-browser --similar "overall hierarchy" --different "button glow intensity" --missing "mobile state" --design-quality needs-polish --json
|
|
48
|
+
yam ueye report --reference ./reference.png --actual .yam/screens/home.png --preflight-id ueye-preflight-123 --p0-risk "mobile CTA may clip" --quality-gate-note "check CTA contrast before done" --brief-dimension "primary CTA clarity" --constraint "mobile first" --review-session-id pricing-card-v1 --provider-context local --execution-surface in-app-browser --browser-surface in-app-browser --similar "overall hierarchy" --different "button glow intensity" --missing "mobile state" --design-quality needs-polish --json
|
|
48
49
|
yam ueye report --reference ./reference.png --actual .yam/screens/home.png --completion-claim done --design-quality pass --direction-locked --reference-read --states-checked --mobile-checked --contrast-checked --cta-checked --json
|
|
49
50
|
yam media proof --requested --attempted --output ./generated.png --wait-loop --json
|
|
50
51
|
yam proof --route ueye --truth partial --visual "browser/local screenshot comparison executed" --require-visual
|
|
@@ -116,6 +117,7 @@ Use the CLI to create and inspect the small project direction file.
|
|
|
116
117
|
```bash
|
|
117
118
|
yam init-project /path/to/project
|
|
118
119
|
yam pack /path/to/project
|
|
120
|
+
yam context pressure /path/to/project
|
|
119
121
|
yam template mission
|
|
120
122
|
```
|
|
121
123
|
|
|
@@ -144,6 +146,9 @@ Read-only readiness and evidence helpers. These do not install, deploy, query da
|
|
|
144
146
|
```bash
|
|
145
147
|
yam tools doctor /path/to/project
|
|
146
148
|
yam tools doctor /path/to/project --json
|
|
149
|
+
yam context pressure /path/to/project --json
|
|
150
|
+
yam cleanup scan /path/to/project --json
|
|
151
|
+
yam loop report --route quick --intent "fix release readiness" --stage "inspect:passed:read release report" --evidence "typecheck passed" --issue-code "src/bin/yam.ts release report" --issue-role "summarizes release readiness without publishing" --issue-symptom "npm auth failure needs clearer next action" --changed-code "yam loop report" --changed-role "records loop evidence and learning note" --change-summary "added a read-only loop artifact" --why-important "it helps users learn what changed without overclaiming verification" --learning-note "fix blockers before claiming done" --json
|
|
147
152
|
yam proof /path/to/project
|
|
148
153
|
yam proof --route deep --truth verified --command "npm run build: pass"
|
|
149
154
|
yam proof --route ueye --truth verified --visual "reference image only"
|
|
@@ -153,7 +158,8 @@ yam ueye compare --reference ./reference.png --actual .yam/screens/home.png --js
|
|
|
153
158
|
yam ueye report --reference ./reference.png --actual .yam/screens/home.png --design-quality pass --provider-context local --execution-surface in-app-browser --browser-surface in-app-browser --json
|
|
154
159
|
yam proof --route ueye --truth verified --visual "implementation screenshot evidence recorded" --design-completion '{"completion_claim":"done","has_implementation_screenshot":true,"design_quality":"pass","states_checked":true,"mobile_checked":true,"contrast_checked":true,"cta_checked":true,"direction_locked":true,"truth_status":"verified"}'
|
|
155
160
|
yam media proof --requested --attempted --output ./generated.png --wait-loop --json
|
|
156
|
-
yam runtime evidence --backend terminal --claim observed --evidence-id dev-server-1 --command "npm run dev" --json
|
|
161
|
+
yam runtime evidence --backend terminal --claim observed --evidence-id dev-server-1 --command "npm run dev" --pid 123 --port 3000 --json
|
|
162
|
+
yam runtime evidence --backend terminal --claim cleanup-verified --cleanup-observed --exit-code 0 --cleanup-method "process exit checked" --json
|
|
157
163
|
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
|
|
158
164
|
yam benchmark report --label "render time" --baseline 100 --current 86 --unit ms --target lower --json
|
|
159
165
|
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"}'
|
|
@@ -179,18 +185,24 @@ yam template mission
|
|
|
179
185
|
yam template tuning
|
|
180
186
|
yam tools doctor /path/to/project --json
|
|
181
187
|
yam release report --json
|
|
182
|
-
yam runtime evidence --backend terminal --claim cleanup-verified --cleanup-
|
|
188
|
+
yam runtime evidence --backend terminal --claim cleanup-verified --cleanup-observed --exit-code 0 --cleanup-method "exit observed" --json
|
|
183
189
|
yam mission queue --agent-id reviewer --scope "changed files review" --changed src/bin/yam.ts --verification-hint "npm run typecheck" --json
|
|
184
190
|
yam benchmark report --label "bundle size" --baseline 120 --current 118 --unit kB --target lower --json
|
|
191
|
+
yam loop report --route deep --intent "verify release readiness" --blocked "npm auth not verified" --next-action "refresh npm token, then rerun npm whoami" --json
|
|
185
192
|
```
|
|
186
193
|
|
|
187
194
|
Supported report shapes:
|
|
188
195
|
|
|
189
196
|
- Runtime evidence mini: command/process, observation, cleanup, truth status, next action.
|
|
190
197
|
- Patch queue lite: mission lane status, changed files, verification hint, rollback hint, truth status.
|
|
198
|
+
- Loop report: intent, stage outcomes, evidence, blockers, next action, remaining tasks, and study note.
|
|
199
|
+
- Study note: short non-specialist explanation of the failing code, its role, observed symptom, changed code, and why it matters.
|
|
191
200
|
- Benchmark optimization loop lite: baseline, one change, rerun, keep/revert decision.
|
|
192
201
|
- Structured diagnostic next action: severity, evidence, owner route, next action, truth status.
|
|
193
202
|
- Ueye continuity/comparison: previous report, current report, comparison delta, design quality, next action.
|
|
203
|
+
- Ueye design brief/anti-slop: brief dimensions, constraints, invented metrics, placeholder copy, generic visuals, and custom P0 blockers.
|
|
204
|
+
- Context pressure: project pack age/size, memory summary, dirty scope, scripts, instruction surfaces, and route hint.
|
|
205
|
+
- Cleanup scan: advisory-only list of confusing surfaces with destructive=false.
|
|
194
206
|
|
|
195
207
|
## Lite Hook
|
|
196
208
|
|
package/DECISIONS.md
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
# yam Decision Baseline
|
|
2
2
|
|
|
3
|
-
Every `yam` change is evaluated against
|
|
3
|
+
Every `yam` change is evaluated against honest proof, progressive depth, security-first guidance, modular skills, and useful non-specialist insight.
|
|
4
4
|
|
|
5
5
|
## Fixed Questions
|
|
6
6
|
|
|
7
7
|
1. What needs concrete evidence before completion?
|
|
8
8
|
2. What should stay selective or low-context?
|
|
9
9
|
3. What can be removed to keep the core obeyable?
|
|
10
|
-
4. What should `yam` keep
|
|
10
|
+
4. What should `yam` keep fast by default, and what should deepen deliberately?
|
|
11
|
+
5. What security surface could a non-specialist miss?
|
|
12
|
+
6. What should the user learn from this change?
|
|
13
|
+
7. Which external references informed the judgment, and how were those ideas reworked into yam style?
|
|
11
14
|
|
|
12
15
|
## Keep
|
|
13
16
|
|
|
@@ -27,12 +30,28 @@ Every `yam` change is evaluated against strict proof, modular skill, and minimal
|
|
|
27
30
|
- Token optimization.
|
|
28
31
|
- Project-specific rules instead of global bloat.
|
|
29
32
|
|
|
30
|
-
###
|
|
33
|
+
### Progressive Core
|
|
31
34
|
|
|
32
35
|
- Short core.
|
|
33
36
|
- Few route names.
|
|
34
37
|
- Minimal context.
|
|
35
38
|
- Rules the model can actually follow.
|
|
39
|
+
- Fast momentum without pretending simple work is always enough.
|
|
40
|
+
- Depth growth when the user's understanding, project risk, or product quality benefits from it.
|
|
41
|
+
|
|
42
|
+
### Beginner Insight
|
|
43
|
+
|
|
44
|
+
- Explain changed behavior in plain language.
|
|
45
|
+
- Name the code area touched and what it is responsible for.
|
|
46
|
+
- Separate implementation facts from judgment.
|
|
47
|
+
- Always close with remaining tasks or useful improvements.
|
|
48
|
+
|
|
49
|
+
### Security First
|
|
50
|
+
|
|
51
|
+
- Treat auth, payment, DB, secrets, permissions, deployment, and public release as first-class risk surfaces.
|
|
52
|
+
- Prefer read-only inspection before sensitive writes.
|
|
53
|
+
- Do not hide destructive or production-like risk behind convenience.
|
|
54
|
+
- Make safer defaults visible to the user.
|
|
36
55
|
|
|
37
56
|
## Reject
|
|
38
57
|
|
|
@@ -50,11 +69,13 @@ Every `yam` change is evaluated against strict proof, modular skill, and minimal
|
|
|
50
69
|
- Hook runtime by default.
|
|
51
70
|
- Too many always-on rules.
|
|
52
71
|
|
|
53
|
-
### From
|
|
72
|
+
### From Progressive Core
|
|
54
73
|
|
|
55
74
|
- Under-verification.
|
|
56
75
|
- Vague quality rules.
|
|
57
76
|
- No route structure for risky work.
|
|
77
|
+
- Lightweight-only posture that prevents the harness from teaching or protecting the user.
|
|
78
|
+
- Broad ceremony that does not produce insight, security, or evidence.
|
|
58
79
|
|
|
59
80
|
## yam Standard
|
|
60
81
|
|
|
@@ -62,9 +83,11 @@ Every `yam` change is evaluated against strict proof, modular skill, and minimal
|
|
|
62
83
|
Direction before execution.
|
|
63
84
|
Context-reuse first.
|
|
64
85
|
Token-aware by default.
|
|
65
|
-
Start
|
|
86
|
+
Start with momentum.
|
|
66
87
|
Deepen deliberately.
|
|
67
88
|
Basic direction fit and honest verification always.
|
|
89
|
+
Security first.
|
|
90
|
+
Explain what changed.
|
|
68
91
|
Honest by design.
|
|
69
92
|
Heavy proof when risk or user intent calls for it.
|
|
70
93
|
```
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
```text
|
|
6
6
|
Direction before execution.
|
|
7
|
-
Start
|
|
7
|
+
Start with momentum.
|
|
8
8
|
Deepen deliberately.
|
|
9
9
|
Basic direction fit and honest verification always.
|
|
10
10
|
Honest by design.
|
|
@@ -12,6 +12,9 @@ Heavy proof when risk or user intent calls for it.
|
|
|
12
12
|
Token-aware by default.
|
|
13
13
|
Context-reuse first.
|
|
14
14
|
End with remaining tasks and fix-first items.
|
|
15
|
+
Security-first project guidance.
|
|
16
|
+
Useful change insight for non-specialists.
|
|
17
|
+
Reference-led judgment with clear source boundaries.
|
|
15
18
|
```
|
|
16
19
|
|
|
17
20
|
## Routes
|
|
@@ -34,9 +37,12 @@ See `ROADMAP.md` for remaining implementation stages.
|
|
|
34
37
|
- No automatic proof loops.
|
|
35
38
|
- No automatic tmux.
|
|
36
39
|
- No false completion claims: verification, cleanup, and visual checks must match actual evidence.
|
|
37
|
-
- `yam` is not lightweight-only; it is progressive:
|
|
40
|
+
- `yam` is not lightweight-only; it is progressive: fast direction, broader judgment when useful, stronger proof as scope/risk grows.
|
|
38
41
|
- Every route should check project direction and use an honest verification level.
|
|
39
42
|
- Small work stays small, but serious work is allowed to become serious.
|
|
43
|
+
- Security-sensitive work is never treated as ordinary polish.
|
|
44
|
+
- Useful reports explain what the changed code does, how it changed, and why the change matters.
|
|
45
|
+
- Research and reference scans should keep source boundaries clear, then rework good ideas into yam style.
|
|
40
46
|
- Token economy is part of quality.
|
|
41
47
|
- Project packs prevent re-reading and re-planning from scratch.
|
|
42
48
|
- Memory is opt-in, project-local, and sparse.
|
|
@@ -123,16 +129,20 @@ yam verify
|
|
|
123
129
|
yam doctor
|
|
124
130
|
yam tools doctor /path/to/project
|
|
125
131
|
yam tools doctor /path/to/project --json
|
|
132
|
+
yam context pressure /path/to/project --json
|
|
133
|
+
yam cleanup scan /path/to/project --json
|
|
126
134
|
yam proof /path/to/project
|
|
127
135
|
yam proof write /path/to/project --route quick --truth verified --command "npm run verify:self: pass"
|
|
128
136
|
yam proof --route ueye --truth verified --visual "reference image only"
|
|
129
137
|
yam proof --route ueye --truth partial --visual-provenance '{"source_kind":"reference","source_hash":"unknown","comparison_result":"not-verified","truth_status":"partial"}'
|
|
130
138
|
yam ueye capture --url http://localhost:3000 --out .yam/screens/home.png
|
|
131
139
|
yam ueye compare --reference ./reference.png --actual .yam/screens/home.png
|
|
132
|
-
yam ueye
|
|
140
|
+
yam ueye preflight /path/to/project --json
|
|
141
|
+
yam ueye report --reference ./reference.png --actual .yam/screens/home.png --preflight-id ueye-preflight-123 --p0-risk "mobile CTA may clip" --quality-gate-note "check CTA contrast before done" --completion-claim done --design-quality pass --direction-locked --reference-read --states-checked --mobile-checked --contrast-checked --cta-checked --provider-context local --execution-surface in-app-browser --app-surface codex-app --browser-surface in-app-browser --preserved-state --json
|
|
133
142
|
yam proof --route ueye --truth verified --visual "implementation screenshot evidence recorded" --design-completion '{"completion_claim":"done","has_implementation_screenshot":true,"design_quality":"pass","states_checked":true,"mobile_checked":true,"contrast_checked":true,"cta_checked":true,"direction_locked":true,"truth_status":"verified"}'
|
|
134
143
|
yam media proof --requested --attempted --output ./generated.png --wait-loop --json
|
|
135
144
|
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"}'
|
|
145
|
+
yam loop report --route quick --intent "fix release readiness" --stage "inspect:passed:read release report" --evidence "typecheck passed" --issue-code "src/bin/yam.ts release report" --issue-role "summarizes release readiness without publishing" --issue-symptom "npm auth failure needs clearer next action" --changed-code "yam loop report" --changed-role "records loop evidence and learning note" --change-summary "added a read-only loop artifact" --why-important "it helps users learn what changed without overclaiming verification" --learning-note "fix blockers before claiming done" --json
|
|
136
146
|
yam release report --json
|
|
137
147
|
yam safety "supabase db reset"
|
|
138
148
|
yam detect /path/to/project
|
|
@@ -175,6 +185,7 @@ Publishing still requires confirming the final npm package name and account acce
|
|
|
175
185
|
- completion proof shape
|
|
176
186
|
- truth caps
|
|
177
187
|
- fake versus real distinction
|
|
188
|
+
- security-first risk signals
|
|
178
189
|
- runtime truth matrix
|
|
179
190
|
- visual evidence caps
|
|
180
191
|
- Ueye visual run reports
|
|
@@ -184,7 +195,15 @@ Publishing still requires confirming the final npm package name and account acce
|
|
|
184
195
|
- runtime evidence mini summaries
|
|
185
196
|
- mission patch queue lite records
|
|
186
197
|
- release report JSON
|
|
198
|
+
- loop report JSON
|
|
199
|
+
- study note JSON
|
|
187
200
|
- structured diagnostic next actions
|
|
201
|
+
- context pressure summaries
|
|
202
|
+
- advisory cleanup scans
|
|
203
|
+
- publish blocker evidence
|
|
204
|
+
- publish readiness evidence
|
|
205
|
+
- change insight reporting
|
|
206
|
+
- reference source boundary notes
|
|
188
207
|
- media generation proof caps
|
|
189
208
|
- DB/Supabase safety signals
|
|
190
209
|
|
|
@@ -197,11 +216,18 @@ These shapes keep reports machine-readable without turning normal work into a he
|
|
|
197
216
|
- Runtime evidence mini: compact route, command/process, observation, cleanup, truth status, and next action fields for `$deep` or `$mission` runtime claims.
|
|
198
217
|
- Patch queue lite: `$mission` lane records with pending/applied/verified/reverted/blocked state, changed files, verification hint, rollback hint, truth status, and next action.
|
|
199
218
|
- 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.
|
|
219
|
+
- Loop report JSON: `yam loop report --json` records a read-only loop artifact: intent, stages, evidence, blockers, next action, remaining tasks, tool intent, truth status, and study note.
|
|
220
|
+
- Study note: `yam.study-note.v1` keeps short non-specialist explanations for what code was failing, what role it plays, how the symptom showed up, what changed, and why it matters. Missing details stay in `limits` instead of being guessed.
|
|
221
|
+
- Publish blocker evidence: release reports classify common npm auth, permission, OTP, immutable-version, cache, registry, and tarball failures into safe next actions.
|
|
222
|
+
- Publish readiness evidence: release reports run read-only registry/auth/version probes, redact account/token details, and keep npm publish outside the report.
|
|
223
|
+
- Context pressure: `yam context pressure` explains when project context is getting stale, broad, or confusing enough to summarize, refresh, narrow scope, or deepen route.
|
|
224
|
+
- Cleanup scan: `yam cleanup scan` is read-only and advisory; it reports confusing hooks, local skill folders, stale traces, or old proof artifacts without deleting anything.
|
|
200
225
|
- 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.
|
|
201
226
|
- 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.
|
|
202
227
|
- Ueye review continuity/comparison report: `$ueye` run reports can link a previous review, current evidence, comparison delta, design quality result, and next action.
|
|
203
228
|
- Ueye surface context: `$ueye` run reports can record provider context, provider badge, execution surface, app surface, browser surface, control mode, preserved URL/state, and evidence id.
|
|
204
229
|
- Ueye design completion gate: `$ueye` can stay fast for draft work, but a `done` claim is capped until implementation evidence, comparison/design-quality status, P0/P1 status, key states, mobile/responsive behavior, contrast/accessibility visuals, CTA affordance, and direction/reference-read proof are recorded when relevant.
|
|
230
|
+
- Ueye design brief and anti-slop review: `$ueye` reports can record operator-provided brief dimensions, constraints, invented metrics, placeholder copy, generic visuals, and custom anti-slop blockers. P0 anti-slop findings block `done` claims.
|
|
205
231
|
|
|
206
232
|
## Ueye Capture And Compare
|
|
207
233
|
|
|
@@ -210,7 +236,8 @@ These shapes keep reports machine-readable without turning normal work into a he
|
|
|
210
236
|
```bash
|
|
211
237
|
yam ueye capture --url http://localhost:3000 --out .yam/screens/home.png
|
|
212
238
|
yam ueye compare --reference ./reference.png --actual .yam/screens/home.png --json
|
|
213
|
-
yam ueye
|
|
239
|
+
yam ueye preflight . --json
|
|
240
|
+
yam ueye report --reference ./reference.png --actual .yam/screens/home.png --brief-dimension "primary CTA clarity" --constraint "mobile first" --anti-slop "placeholder copy remains" --completion-claim done --design-quality pass --direction-locked --reference-read --states-checked --mobile-checked --contrast-checked --cta-checked --provider-context local --execution-surface in-app-browser --browser-surface in-app-browser --preserved-state --json
|
|
214
241
|
```
|
|
215
242
|
|
|
216
243
|
`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.
|
|
@@ -219,6 +246,8 @@ yam ueye report --reference ./reference.png --actual .yam/screens/home.png --com
|
|
|
219
246
|
|
|
220
247
|
`report` gathers reference sources, implementation screenshots, comparison result, continuity fields, design quality judgment, design completion gate, surface context, and next action into one compact proof-ready JSON object. Draft and needs-polish work can stay fast; `--completion-claim done` turns on the stricter design gate.
|
|
221
248
|
|
|
249
|
+
`preflight` does not claim visual verification. It is a pre-work checklist for reference source, target states, mobile/responsive needs, CTA/contrast/accessibility risk, screenshot availability, and likely P0/P1 candidates.
|
|
250
|
+
|
|
222
251
|
Generated media can guide visual direction, but it cannot prove the implemented UI by itself:
|
|
223
252
|
|
|
224
253
|
```bash
|
package/ROADMAP.md
CHANGED
|
@@ -97,7 +97,7 @@ Tasks:
|
|
|
97
97
|
|
|
98
98
|
### 8. Scout / Research Workflow
|
|
99
99
|
|
|
100
|
-
Goal: give yam a research lane that is evidence-bound
|
|
100
|
+
Goal: give yam a research lane that is broad enough to create better judgment, evidence-bound enough to stay honest, and compressed enough to remain usable.
|
|
101
101
|
|
|
102
102
|
Research reference points:
|
|
103
103
|
|
|
@@ -115,7 +115,7 @@ Tasks:
|
|
|
115
115
|
- macro view: broad direction and category movement
|
|
116
116
|
- realistic view: near-term feasibility and cost
|
|
117
117
|
- future view: second-order effects and durable bets
|
|
118
|
-
-
|
|
118
|
+
- Match source count to the decision: focused scouts use a few high-signal sources, broad scouts may use more. Done.
|
|
119
119
|
- Avoid making research a default gate for implementation. Done.
|
|
120
120
|
|
|
121
121
|
### 9. Question Workflow
|