yam-flow 0.1.3 → 0.1.5

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.
@@ -38,12 +38,36 @@ export interface UeyeVisualProvenance {
38
38
  source_hash: string;
39
39
  reference_id: string;
40
40
  screenshot_id: string;
41
+ provider_context: string;
42
+ provider_badge: string;
43
+ execution_surface: string;
44
+ app_surface: string;
45
+ browser_surface: string;
41
46
  local_only: boolean;
42
47
  redacted: boolean;
43
48
  operator_provided: boolean;
44
49
  comparison_result: string;
45
50
  truth_status: TruthStatus;
46
51
  }
52
+ export interface UeyeSurfaceContext {
53
+ schema: 'yam.ueye-surface-context.v1';
54
+ provider_context: string;
55
+ provider_badge: string;
56
+ execution_surface: string;
57
+ app_surface: string;
58
+ browser_surface: string;
59
+ control_mode: string;
60
+ route: string;
61
+ mode: string;
62
+ url: string;
63
+ viewport: string;
64
+ screenshot_id: string;
65
+ evidence_id: string;
66
+ preserved_state: boolean;
67
+ preserved_url: string;
68
+ local_only: boolean;
69
+ truth_status: TruthStatus;
70
+ }
47
71
  export interface RollbackHint {
48
72
  schema: 'yam.rollback-hint.v1';
49
73
  touched_files: string[];
@@ -74,6 +98,7 @@ export interface UeyeRunReport {
74
98
  schema: 'yam.ueye-run-report.v1';
75
99
  reference_sources: UeyeVisualProvenance[];
76
100
  implementation_sources: UeyeVisualProvenance[];
101
+ surface_context: UeyeSurfaceContext;
77
102
  comparison_result: string;
78
103
  design_quality: string;
79
104
  blocked_reason: string;
@@ -164,6 +189,7 @@ export interface YamCompletionProof {
164
189
  runtimeTruth: RuntimeTruthMatrix;
165
190
  }
166
191
  export declare function buildUeyeVisualProvenance(input?: Partial<UeyeVisualProvenance>): UeyeVisualProvenance;
192
+ export declare function buildUeyeSurfaceContext(input?: Partial<UeyeSurfaceContext>): UeyeSurfaceContext;
167
193
  export declare function buildRollbackHint(input?: Partial<RollbackHint>): RollbackHint;
168
194
  export declare function buildMissionPatchEnvelope(input?: Partial<MissionPatchEnvelope>): MissionPatchEnvelope;
169
195
  export declare function buildRuntimeBackendEvidence(input?: Partial<RuntimeBackendEvidence>): RuntimeBackendEvidence;
@@ -19,6 +19,11 @@ export function buildUeyeVisualProvenance(input = {}) {
19
19
  source_hash: String(input.source_hash || 'unknown'),
20
20
  reference_id: String(input.reference_id || ''),
21
21
  screenshot_id: String(input.screenshot_id || ''),
22
+ provider_context: String(input.provider_context || 'not-recorded'),
23
+ provider_badge: String(input.provider_badge || 'not-recorded'),
24
+ execution_surface: String(input.execution_surface || 'not-recorded'),
25
+ app_surface: String(input.app_surface || 'not-recorded'),
26
+ browser_surface: String(input.browser_surface || 'not-recorded'),
22
27
  local_only: Boolean(input.local_only),
23
28
  redacted: Boolean(input.redacted),
24
29
  operator_provided: Boolean(input.operator_provided),
@@ -26,6 +31,27 @@ export function buildUeyeVisualProvenance(input = {}) {
26
31
  truth_status: truth
27
32
  };
28
33
  }
34
+ export function buildUeyeSurfaceContext(input = {}) {
35
+ return {
36
+ schema: 'yam.ueye-surface-context.v1',
37
+ provider_context: String(input.provider_context || 'not-recorded'),
38
+ provider_badge: String(input.provider_badge || input.provider_context || 'not-recorded'),
39
+ execution_surface: String(input.execution_surface || 'not-recorded'),
40
+ app_surface: String(input.app_surface || 'not-recorded'),
41
+ browser_surface: String(input.browser_surface || 'not-recorded'),
42
+ control_mode: String(input.control_mode || 'not-recorded'),
43
+ route: String(input.route || 'ueye'),
44
+ mode: String(input.mode || 'report'),
45
+ url: String(input.url || ''),
46
+ viewport: String(input.viewport || ''),
47
+ screenshot_id: String(input.screenshot_id || ''),
48
+ evidence_id: String(input.evidence_id || ''),
49
+ preserved_state: Boolean(input.preserved_state),
50
+ preserved_url: String(input.preserved_url || ''),
51
+ local_only: input.local_only !== undefined ? Boolean(input.local_only) : true,
52
+ truth_status: isTruthStatus(input.truth_status) ? input.truth_status : 'partial'
53
+ };
54
+ }
29
55
  export function buildRollbackHint(input = {}) {
30
56
  return {
31
57
  schema: 'yam.rollback-hint.v1',
@@ -82,6 +108,10 @@ export function buildUeyeRunReport(input = {}) {
82
108
  schema: 'yam.ueye-run-report.v1',
83
109
  reference_sources: references,
84
110
  implementation_sources: implementations,
111
+ surface_context: buildUeyeSurfaceContext({
112
+ ...input.surface_context,
113
+ truth_status: isTruthStatus(input.surface_context?.truth_status) ? input.surface_context?.truth_status : derivedTruth
114
+ }),
85
115
  comparison_result: comparisonResult,
86
116
  design_quality: String(input.design_quality || 'not-checked'),
87
117
  blocked_reason: blockedReason,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yam-flow",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Progressive proof-first agent flow: start fast, deepen deliberately, stay honest by design.",
5
5
  "type": "module",
6
6
  "author": "0kim0bos",
@@ -16,7 +16,7 @@
16
16
  "node": ">=18"
17
17
  },
18
18
  "bin": {
19
- "yam": "dist/bin/yam.js"
19
+ "yam": "./dist/bin/yam.js"
20
20
  },
21
21
  "types": "dist/lib/trust-kernel.d.ts",
22
22
  "exports": {
@@ -27,6 +27,7 @@
27
27
  },
28
28
  "files": [
29
29
  "AGENTS.md",
30
+ "CHANGELOG.md",
30
31
  "COMMANDS.md",
31
32
  "DECISIONS.md",
32
33
  "LICENSE",
@@ -4,10 +4,10 @@ Use current docs proof only when stale knowledge is a realistic risk.
4
4
 
5
5
  ## Require Current Docs Proof
6
6
 
7
- Use Context7, official docs, or primary sources when the task depends on current behavior for:
7
+ Use official docs or primary sources when the task depends on current behavior for:
8
8
 
9
9
  - modern SDK/API syntax
10
- - cloud services such as Supabase, Vercel, OpenAI, Stripe, or auth providers
10
+ - cloud services, model APIs, payment providers, or auth providers
11
11
  - framework version behavior, migration, deprecation, or breaking changes
12
12
  - CLI flags, deployment behavior, pricing/limits, security rules, or platform integrations
13
13
  - user wording such as latest, current, recently changed, new version, official docs, migration, or upgrade
@@ -27,7 +27,7 @@ Do not force current-docs proof for:
27
27
  Use one concise line:
28
28
 
29
29
  ```text
30
- Current-docs proof: Context7/official docs checked for <SDK/service>; result applied to <decision>.
30
+ Current-docs proof: official docs checked for <SDK/service>; result applied to <decision>.
31
31
  ```
32
32
 
33
33
  Or:
@@ -53,4 +53,23 @@ Doctor scan:
53
53
  - Runtime/cleanup:
54
54
  - Truth status:
55
55
  - Fix-first:
56
+ - Diagnostic next action:
56
57
  ```
58
+
59
+ ## Structured Diagnostic Next Action
60
+
61
+ Use this shape for doctor or release diagnostics that need a concrete follow-up:
62
+
63
+ - `status`: pass / needs_action / blocked / skipped
64
+ - `severity`: P0 / P1 / P2 / P3
65
+ - `owner_route`: quick / ueye / question / scout / deep / mission
66
+ - `priority`: fix_first / next / later / none
67
+ - `fix_first`: true / false
68
+ - `blocks_release`: true / false
69
+ - `observation`
70
+ - `evidence`
71
+ - `next_action.kind`: read_file / run_command / inspect_ui / update_docs / ask_user / none
72
+ - `next_action.command` or `next_action.files`, when relevant
73
+ - `truth_status`
74
+
75
+ Keep it singular. If there are several issues, list the fix-first item that most affects the next run.
@@ -10,6 +10,7 @@ Include these when they are useful and keep them short:
10
10
  - What verification ran.
11
11
  - What was not checked.
12
12
  - Truth status, when verification or runtime claims matter.
13
+ - Structured diagnostic next action, when a check found a concrete next step.
13
14
  - Remaining tasks.
14
15
  - Fix-first items before planned tasks.
15
16
 
@@ -59,3 +60,23 @@ For `$deep` and `$mission`, include evidence, remaining risks, remaining tasks,
59
60
  Do not pad the final answer when there are no meaningful remaining tasks or fix-first items.
60
61
 
61
62
  When budget drift matters, include or run `yam measure <route>` with approximate files, commands, report lines, and seconds.
63
+
64
+ ## Diagnostic Next Action
65
+
66
+ When a report says something needs attention, include one concrete next action instead of a vague warning.
67
+
68
+ Compact shape:
69
+
70
+ ```text
71
+ Diagnostic next action:
72
+ - severity:
73
+ - owner route:
74
+ - priority:
75
+ - fix first:
76
+ - blocks release:
77
+ - evidence:
78
+ - next action:
79
+ - truth status:
80
+ ```
81
+
82
+ Use `none` when there is no meaningful next action.
@@ -14,7 +14,7 @@ Allowed:
14
14
  - Remind the agent not to overclaim verification, cleanup, or visual evidence.
15
15
  - Suggest `$quick`, `$ueye`, `$question`, `$scout`, `$deep`, or `$mission` based on obvious prompt signals.
16
16
  - Mention a project pack or memory summary when present.
17
- - Warn when conflicting proof-harness surfaces are active in the current project.
17
+ - Warn when conflicting proof surfaces are active in the current project.
18
18
 
19
19
  Not allowed:
20
20
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  `yam memory` is an opt-in, project-local memory layer.
4
4
 
5
- It keeps only the lightest useful parts from heavier harness patterns:
5
+ It keeps only the lightest useful parts from heavier workflow patterns:
6
6
 
7
7
  - Sparse records, one file per durable claim, and deliberate forgetting instead of injecting every old claim.
8
8
  - Wrongness memory for repeated mistakes, wrong decisions, stale assumptions, and overconfident claims.
@@ -49,6 +49,31 @@ Use a small envelope when a real mission lane changes code:
49
49
 
50
50
  This is only a record shape. It is not a queue, lock manager, or parallel apply engine.
51
51
 
52
+ Patch queue lite:
53
+
54
+ Use this only when two or more real mission lanes produce patches, apply order matters, or rollback needs a clearer handoff.
55
+ Persist it with `--out` only when a later run needs to resume or audit the queue. Otherwise keep it in the report.
56
+
57
+ Each item records:
58
+
59
+ - `status`: pending / applied / verified / reverted / blocked
60
+ - `lane_id`
61
+ - `depends_on`: lane ids that must land first, or empty
62
+ - `assigned_scope`
63
+ - `changed_files`
64
+ - `verification_hint`
65
+ - `rollback_hint`
66
+ - `truth_status`
67
+ - `next_action`
68
+
69
+ Keep it lite:
70
+
71
+ - No automatic merge engine.
72
+ - No persistent locks.
73
+ - No required queue file for single-pass missions.
74
+ - No parallel apply worker.
75
+ - No broad runtime orchestration unless mission evidence already needs it.
76
+
52
77
  Rollback hint:
53
78
 
54
79
  Record:
@@ -41,11 +41,35 @@ Runtime proof should include:
41
41
  - Goal.
42
42
  - Steps run.
43
43
  - Commands/processes started.
44
- - PIDs, ports, sessions, or panes when available.
44
+ - PID, port, URL, session, pane, screenshot id, started_at, stopped_at, and exit_code when available.
45
45
  - Checks before and after.
46
46
  - Cleanup result.
47
47
  - Truth status: proven, verified, partial, fixture_only, fixture_instrumented_real, integration_optional, real_required_missing, skipped, blocked, assumed.
48
48
 
49
+ ## Runtime Evidence Mini
50
+
51
+ Use the mini shape when a final report, release report, or doctor scan needs runtime evidence without a full runtime proof artifact.
52
+
53
+ Minimum fields:
54
+
55
+ - `kind`: `runtime_evidence_mini`
56
+ - `route`: `deep` or `mission`
57
+ - `required`: true / false
58
+ - `command` or check name
59
+ - `target`: URL, port, process, or service
60
+ - `pid`, `port`, `url`, `exit_code`, `screenshot_id`, `started_at`, `stopped_at`
61
+ - `process`: session, pane, or `unknown` when process detail is unavailable
62
+ - `observation`: before and after notes
63
+ - `cleanup`: status and evidence
64
+ - `truth_status`
65
+ - `next_action`: one concrete follow-up when status is not fully proven
66
+
67
+ Truth caps:
68
+
69
+ - Missing process/target evidence cannot support `proven`.
70
+ - Missing cleanup evidence cannot support a cleanup-complete claim.
71
+ - Optional runtime checks may be `integration_optional`; required but unavailable runtime checks should be `real_required_missing`, `blocked`, or `partial`.
72
+
49
73
  ## Cleanup Rule
50
74
 
51
75
  Do not claim cleanup succeeded unless one of these is true:
@@ -25,13 +25,13 @@ Then depth increases by route:
25
25
 
26
26
  ## Surfaces To Wrap
27
27
 
28
- - Codex CLI/App readiness.
29
- - Browser and Computer Use availability.
28
+ - Local CLI/app readiness.
29
+ - Browser and screen-control availability.
30
30
  - tmux and long-running process lifecycle.
31
31
  - Subagent/team availability for `$mission`.
32
32
  - imagegen or screenshot evidence for `$ueye`.
33
- - Context7 or official docs for current package/API questions.
34
- - codex-lb or provider routing health when configured.
33
+ - Current official docs for package/API questions.
34
+ - provider routing health when configured.
35
35
  - DB/Supabase safety for destructive or migration work.
36
36
  - Research, QA, wiki/context, proof, and release-gate workflows.
37
37
 
@@ -66,7 +66,7 @@ On demand:
66
66
  - Tool readiness checks.
67
67
  - Hook status and trust reporting.
68
68
  - DB/Supabase destructive-operation gate thinking.
69
- - Computer Use and screenshot evidence caps.
69
+ - Screen-control and screenshot evidence caps.
70
70
  - tmux/process cleanup truth.
71
71
  - Source-intelligence proof for current docs.
72
72
  - Destructive DB/Supabase command detection and production-write caution.
@@ -92,7 +92,7 @@ On demand:
92
92
  - Always-on hook enforcement.
93
93
  - Release gates for normal coding.
94
94
  - Mandatory generated image review for every UI task.
95
- - Broad MCP/tool scans before small work.
95
+ - Broad connector/tool scans before small work.
96
96
  - Provider config mutation without explicit user approval.
97
97
 
98
98
  ## Implemented Shape
@@ -106,14 +106,26 @@ On demand:
106
106
  - suggest route and proof level
107
107
  - do not install, configure, or mutate
108
108
 
109
+ Tool intent labels stay advisory and route-scoped:
110
+
111
+ - `read_only`: inspect, list, or report.
112
+ - `write`: edit workspace files or local generated artifacts.
113
+ - `destructive`: delete, reset, overwrite, publish irreversible data, or mutate production-like state.
114
+ - `runtime`: start, stop, probe, or depend on a live process.
115
+ - `visual`: capture, compare, or inspect screen evidence.
116
+ - `publish`: package, release, push, deploy, or expose artifacts.
117
+
109
118
  `yam proof` should summarize what actually ran:
110
119
 
111
120
  - command evidence
112
121
  - browser/screenshot evidence
113
122
  - visual provenance for reference-based UI work
114
123
  - mission patch envelopes for real team lanes
124
+ - runtime evidence mini for route-level runtime claims
125
+ - patch queue lite when mission lane apply/verify order matters
115
126
  - rollback hints for risky changes
116
127
  - runtime/tmux/process cleanup evidence
128
+ - structured diagnostic next action
117
129
  - truth status
118
130
  - skipped/blocked/assumed items
119
131
 
@@ -125,4 +137,86 @@ On demand:
125
137
  - registry status
126
138
  - CLI smoke
127
139
  - dist freshness
140
+ - release tarball provenance: package name/version, tarball path, sha256, generated_at, source commit/tree state, included files summary
141
+ - diagnostics with structured next action
128
142
  - final truth status
143
+
144
+ ## Compact Artifact Contracts
145
+
146
+ Runtime evidence mini:
147
+
148
+ ```json
149
+ {
150
+ "kind": "runtime_evidence_mini",
151
+ "route": "deep",
152
+ "required": true,
153
+ "command": "npm run dev",
154
+ "target": "http://localhost:3000",
155
+ "pid": "unknown",
156
+ "port": "3000",
157
+ "url": "http://localhost:3000",
158
+ "exit_code": null,
159
+ "screenshot_id": "",
160
+ "started_at": "",
161
+ "stopped_at": "",
162
+ "process": {
163
+ "session": "",
164
+ "pane": ""
165
+ },
166
+ "observation": {
167
+ "before": "",
168
+ "after": ""
169
+ },
170
+ "cleanup": {
171
+ "status": "checked_stopped",
172
+ "evidence": ""
173
+ },
174
+ "truth_status": "partial",
175
+ "next_action": {
176
+ "kind": "run_check",
177
+ "summary": ""
178
+ }
179
+ }
180
+ ```
181
+
182
+ Patch queue lite:
183
+
184
+ ```json
185
+ {
186
+ "kind": "patch_queue_lite",
187
+ "items": [
188
+ {
189
+ "status": "pending",
190
+ "lane_id": "",
191
+ "depends_on": [],
192
+ "assigned_scope": "",
193
+ "changed_files": [],
194
+ "verification_hint": "",
195
+ "rollback_hint": "",
196
+ "truth_status": "partial",
197
+ "next_action": ""
198
+ }
199
+ ]
200
+ }
201
+ ```
202
+
203
+ Structured diagnostic next action:
204
+
205
+ ```json
206
+ {
207
+ "status": "needs_action",
208
+ "severity": "P2",
209
+ "owner_route": "quick",
210
+ "priority": "fix_first",
211
+ "fix_first": true,
212
+ "blocks_release": false,
213
+ "observation": "",
214
+ "evidence": "",
215
+ "next_action": {
216
+ "kind": "run_command",
217
+ "command": "",
218
+ "reason": ""
219
+ },
220
+ "truth_status": "partial"
221
+ }
222
+ ```
@@ -26,12 +26,13 @@ Ueye is one route. It should not split into separate lite/deep skills. Use these
26
26
  ```bash
27
27
  yam ueye capture --url http://localhost:3000 --out .yam/screens/home.png
28
28
  yam ueye compare --reference ./reference.png --actual .yam/screens/home.png --json
29
- yam ueye report --reference ./reference.png --actual .yam/screens/home.png --design-quality needs-polish --json
29
+ yam ueye report --reference ./reference.png --actual .yam/screens/home.png --design-quality needs-polish --provider-context local --execution-surface in-app-browser --browser-surface in-app-browser --preserved-state --json
30
30
  ```
31
31
 
32
- - `capture` uses a Playwright install from the current project when present, then reports `blocked` instead of installing dependencies or pretending a screenshot exists.
32
+ - `capture` uses a project-local capture backend when present, then reports `blocked` instead of installing dependencies or pretending a screenshot exists.
33
33
  - `compare` is local-only and dependency-free. It records hashes, dimensions, comparison result, and visual provenance. Different screenshots stay `partial`; exact file matches can be `verified`.
34
- - `report` records the Ueye run as reference sources, implementation sources, comparison result, design quality, blocked reason, next action, and truth status.
34
+ - `report` records the Ueye run as reference sources, implementation sources, comparison result, surface context, design quality, blocked reason, next action, and truth status.
35
+ - `report` may include continuity fields when a previous review or screenshot is being rechecked.
35
36
  - Without capture or user-provided screenshots, report implementation/source review separately from visual verification and cap the visual claim.
36
37
 
37
38
  ### Media Generation Proof
@@ -54,10 +55,10 @@ Record:
54
55
 
55
56
  ### Browser Preference
56
57
 
57
- - Prefer the Codex in-app Browser plugin for local pages, localhost, file URLs, and ordinary visual QA.
58
- - Do not silently switch to the user's Chrome browser when the in-app Browser cannot capture or inspect.
59
- - Use Chrome only when the user explicitly asks for it, or when the task requires existing Chrome cookies, sessions, extensions, or profile state.
60
- - If the in-app Browser is unavailable and Chrome was not explicitly requested or required, cap the visual claim at `partial` or `blocked`.
58
+ - Prefer the in-app browser for local pages, localhost, file URLs, and ordinary visual QA.
59
+ - Do not silently switch to a profile-dependent browser when the in-app browser cannot capture or inspect.
60
+ - Use a profile-dependent browser only when the user explicitly asks for it, or when the task requires existing cookies, sessions, extensions, or profile state.
61
+ - If the in-app browser is unavailable and a profile-dependent browser was not explicitly requested or required, cap the visual claim at `partial` or `blocked`.
61
62
 
62
63
  ### Visual Evidence Inventory
63
64
 
@@ -92,6 +93,13 @@ Record these fields when a reference or screenshot materially affects the claim:
92
93
  - `source_hash`
93
94
  - `reference_id`
94
95
  - `screenshot_id`
96
+ - `provider_context`
97
+ - `provider_badge`
98
+ - `execution_surface`
99
+ - `app_surface`
100
+ - `browser_surface`
101
+ - `viewport`
102
+ - `state`
95
103
  - `local_only`
96
104
  - `redacted`
97
105
  - `operator_provided`
@@ -100,6 +108,28 @@ Record these fields when a reference or screenshot materially affects the claim:
100
108
 
101
109
  Use `unknown` for missing hashes and `not-verified` for comparisons that were not actually rechecked. Do not upgrade a visual claim only because a reference was supplied.
102
110
 
111
+ ### Surface Context
112
+
113
+ Purpose: preserve where and how a visual claim was observed without turning Ueye into an always-on capture gate.
114
+
115
+ Record these fields when they affect the visual claim:
116
+
117
+ - `provider_context`
118
+ - `provider_badge`
119
+ - `execution_surface`
120
+ - `app_surface`
121
+ - `browser_surface`
122
+ - `control_mode`
123
+ - `url`
124
+ - `viewport`
125
+ - `screenshot_id`
126
+ - `evidence_id`
127
+ - `preserved_state`
128
+ - `preserved_url`
129
+ - `truth_status`
130
+
131
+ Use `not-recorded` when the field was not observed. Prefer `partial` over `verified` when surface context exists but no actual implementation screenshot was captured or supplied.
132
+
103
133
  ### Reference Read Proof
104
134
 
105
135
  Purpose: separate reading the reference from judging the implementation.
@@ -160,6 +190,32 @@ Dimensions:
160
190
  Report findings as P0-P3. Keep P2/P3 short unless the user requested a full polish pass.
161
191
  For each relevant design dimension, use `pass`, `needs-polish`, or `fails`.
162
192
 
193
+ ### Review Continuity And Comparison Report
194
+
195
+ Use this when a Ueye task continues a previous visual review, rechecks a fix, or compares two review runs.
196
+
197
+ Minimum fields:
198
+
199
+ - `previous_report_id` or `previous_report_path`
200
+ - `previous_screenshot_id`, when available
201
+ - `previous_source_hash`, when available
202
+ - `current_report_id` or `current_source_path`
203
+ - `current_screenshot_id`, when available
204
+ - `current_source_hash`, when available
205
+ - `viewport`
206
+ - `state`
207
+ - `changed_surface`
208
+ - `comparison_result`: improved / regressed / unchanged / not-verified
209
+ - `regression`: true / false / not-verified
210
+ - `resolved_findings`
211
+ - `new_findings`
212
+ - `still_open_findings`
213
+ - `design_quality`
214
+ - `truth_status`
215
+ - `next_action`
216
+
217
+ Do not claim continuity from memory alone. Link it to a previous report, screenshot, source path/hash, or an explicit user-provided prior finding.
218
+
163
219
  ## Truth Caps
164
220
 
165
221
  - Full visual verification requires real implementation evidence and relevant recheck.
@@ -65,6 +65,7 @@ Use these when the task depends on visual truth, reference matching, or design q
65
65
  2. Reference Read Proof.
66
66
  3. Reference vs Implementation Matrix.
67
67
  4. Design Quality Review.
68
+ 5. Review Continuity and Comparison Report.
68
69
 
69
70
  Default bound:
70
71
 
@@ -145,6 +146,42 @@ Review dimensions:
145
146
  For each relevant dimension, record `pass`, `needs-polish`, or `fails`.
146
147
  Keep actionable findings in P0-P3 order. Prefer fixing P0/P1 and cheap local P2 issues before broad polish.
147
148
 
149
+ ### Review Continuity and Comparison Report
150
+
151
+ Use when a screen has more than one visual pass, a reference needs follow-up, or a previous Ueye report should stay connected to the next one.
152
+
153
+ Record:
154
+
155
+ - `review_session_id` for the current pass.
156
+ - previous report path or previous session id when available.
157
+ - reference sources and implementation screenshot sources.
158
+ - comparison result.
159
+ - previous and current screenshot ids when available.
160
+ - viewport and state.
161
+ - similar, different, and missing items.
162
+ - resolved findings, new findings, still-open findings, and regression status.
163
+ - design quality result.
164
+ - next visual action.
165
+ - truth status.
166
+
167
+ Use `yam ueye report --previous-report previous.json --review-session-id current-pass --provider-context local --execution-surface in-app-browser --browser-surface in-app-browser --similar "..." --different "..." --missing "..." --json` when you need a compact continuity record.
168
+
169
+ ### Surface Context
170
+
171
+ Use surface context when a Ueye claim depends on preserving the current app/browser state or explaining where visual evidence came from.
172
+
173
+ Fields:
174
+
175
+ - provider context and badge.
176
+ - execution surface.
177
+ - app surface.
178
+ - browser surface.
179
+ - control mode.
180
+ - preserved URL/state.
181
+ - evidence id.
182
+
183
+ Keep this metadata descriptive. It should support honest visual claims, not force a heavy browser workflow for every Ueye run.
184
+
148
185
  ## P0-P3 Ledger
149
186
 
150
187
  - P0: blocker, unusable, impossible to complete primary workflow, severe accessibility or responsive failure.
@@ -162,8 +199,9 @@ Keep actionable findings in P0-P3 order. Prefer fixing P0/P1 and cheap local P2
162
199
  6. Screenshot/browser recheck when feasible.
163
200
  7. Reference vs Implementation Matrix when reference fidelity matters.
164
201
  8. Design Quality Review.
165
- 9. P0/P1 closeout.
166
- 10. Truth status.
202
+ 9. Review Continuity and Comparison Report when the work spans multiple passes.
203
+ 10. P0/P1 closeout.
204
+ 11. Truth status.
167
205
 
168
206
  ## Truth Caps
169
207
 
@@ -8,7 +8,7 @@ description: Very-light Q&A route. Use when the user invokes $question or asks a
8
8
  Use for:
9
9
  - Simple conceptual explanations.
10
10
  - "What is X?" or "Can I do Y?" questions.
11
- - Local harness/project usage questions.
11
+ - Local workflow/project usage questions.
12
12
  - Clarifying a decision that does not need fresh source gathering.
13
13
 
14
14
  Do not use for: