yam-flow 2.2.0 → 2.3.0
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 +23 -0
- package/COMMANDS.md +8 -1
- package/README.md +12 -0
- package/ROADMAP.md +25 -0
- package/dist/bin/yam.js +237 -62
- package/dist/lib/trust-kernel.d.ts +54 -0
- package/dist/lib/trust-kernel.js +194 -0
- package/dist/lib/ueye-artifacts.d.ts +98 -0
- package/dist/lib/ueye-artifacts.js +317 -0
- package/package.json +1 -1
- package/references/final-report.md +2 -0
- package/references/honest-completion.md +1 -0
- package/references/mission.md +16 -0
- package/references/scout-wide-scan.md +150 -0
- package/references/scout.md +9 -0
- package/references/tool-trust-layer.md +3 -0
- package/references/trust-kernel.md +3 -0
- package/references/truth-matrix.md +2 -0
- package/references/ueye-proof.md +6 -0
- package/references/ueye.md +12 -0
- package/references/verification-levels.md +2 -1
- package/skills/mission/SKILL.md +19 -4
- package/skills/scout/SKILL.md +18 -5
- package/skills/ueye/SKILL.md +11 -0
- package/src/bin/yam.ts +227 -56
- package/src/lib/trust-kernel.ts +239 -0
- package/src/lib/ueye-artifacts.ts +354 -0
- package/templates/mission-plan.md +25 -2
- package/templates/ueye-comparison.md +12 -0
- package/templates/ueye-review.md +26 -0
- package/yam.manifest.json +7 -7
package/references/mission.md
CHANGED
|
@@ -27,6 +27,13 @@ Role model:
|
|
|
27
27
|
- UX/browser verifier: checks UI behavior, browser state, screenshots, or flows when relevant.
|
|
28
28
|
- Doctor/scanner: checks direction fit, scope control, command output, stale instructions, runtime/cleanup evidence, false-completion risk, and remaining fix-first items.
|
|
29
29
|
|
|
30
|
+
Read-only role contract:
|
|
31
|
+
|
|
32
|
+
- Reviewer and Doctor default to `access_mode: read_only`.
|
|
33
|
+
- They may read files, search, inspect diffs, and run non-mutating diagnostics.
|
|
34
|
+
- They must not claim `changed_files` or use write access.
|
|
35
|
+
- When review finds a needed fix, return a patch request to an Implementer lane instead of silently changing the implementation.
|
|
36
|
+
|
|
30
37
|
Subagent policy:
|
|
31
38
|
|
|
32
39
|
- Mission requires real subagent/team orchestration to be considered a full mission.
|
|
@@ -36,6 +43,15 @@ Subagent policy:
|
|
|
36
43
|
- If the user explicitly insists on mission despite missing subagents, mark the result `partial` or `blocked`; do not treat self-review as team execution.
|
|
37
44
|
- The final proof must record the subagent decision: `used`, `downgraded_to_deep`, `unavailable_partial`, or `blocked`, with the reason.
|
|
38
45
|
|
|
46
|
+
Subagent completion receipts:
|
|
47
|
+
|
|
48
|
+
- Record one `yam.mission-subagent-receipt.v1` for every expected thread.
|
|
49
|
+
- Lifecycle and outcome are separate: `stopped` only means the thread ended.
|
|
50
|
+
- A passed receipt requires an explicit `outcome: passed`, bounded scope, and verification evidence.
|
|
51
|
+
- Failed, blocked, ambiguous, missing, duplicated, unexpected, or read-only-violating receipts block the aggregate gate.
|
|
52
|
+
- `yam mission gate` compares receipt files with the expected thread inventory and produces `yam.mission-completion-gate.v1`.
|
|
53
|
+
- A Mission proof requesting `verified` or `proven` is capped when this gate is missing or blocked.
|
|
54
|
+
|
|
39
55
|
Patch envelope:
|
|
40
56
|
|
|
41
57
|
Use a small envelope when a real mission lane changes code:
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# Scout Wide Scan
|
|
2
|
+
|
|
3
|
+
Use this reference when `$scout` needs broad search, powerful outside patterns, ecosystem comparison, agent/harness discovery, or source-heavy direction setting.
|
|
4
|
+
|
|
5
|
+
## Activation
|
|
6
|
+
|
|
7
|
+
Use wide scan when the user asks for:
|
|
8
|
+
|
|
9
|
+
- Broad search or "find powerful patterns".
|
|
10
|
+
- Tool, library, agent, harness, protocol, or market landscape comparison.
|
|
11
|
+
- Third-party perspective before committing to a direction.
|
|
12
|
+
- Evidence from multiple source classes.
|
|
13
|
+
- Ideas worth reworking into yam style.
|
|
14
|
+
|
|
15
|
+
Do not use wide scan for:
|
|
16
|
+
|
|
17
|
+
- Stable direct answers.
|
|
18
|
+
- Small implementation tasks.
|
|
19
|
+
- Local code questions that a focused file read answers.
|
|
20
|
+
- Heavy verification; use `$deep`.
|
|
21
|
+
- Real subagent/team execution; use `$mission` unless the user explicitly asks for parallel agent work inside the current route and the environment supports it.
|
|
22
|
+
|
|
23
|
+
## Scan Lanes
|
|
24
|
+
|
|
25
|
+
1. Decision frame: name the decision, audience, constraints, and what would change the recommendation.
|
|
26
|
+
2. Source map: decide which source classes are needed before reading deeply.
|
|
27
|
+
3. Acquisition: gather enough sources; recover blocked high-signal sources only when needed.
|
|
28
|
+
4. Triage: rank sources by authority, freshness, relevance, bias, and directness.
|
|
29
|
+
5. Comparison: compare by fit, risk, cost, implementation effort, durability, and evidence quality.
|
|
30
|
+
6. Opposition pass: name the strongest argument against the preferred direction.
|
|
31
|
+
7. Synthesis: compress into a practical recommendation and yam-style rework ideas.
|
|
32
|
+
8. Evidence ledger: record the important claims, evidence, confidence, and uncertainty.
|
|
33
|
+
|
|
34
|
+
## Source Map
|
|
35
|
+
|
|
36
|
+
Prefer a small balanced map over a large pile:
|
|
37
|
+
|
|
38
|
+
- Official or primary source: docs, specs, vendor pages, source repos, standards.
|
|
39
|
+
- Implementation evidence: source code, examples, package metadata, changelogs, local files.
|
|
40
|
+
- Third-party analysis: credible writeups, benchmarks, incident reports, adoption notes.
|
|
41
|
+
- Community evidence: issues, forum posts, social reports, user complaints; useful but lower trust.
|
|
42
|
+
- Contrarian source: the best reason the attractive option may be wrong.
|
|
43
|
+
- Local evidence: project constraints, existing route boundaries, installed tools, package scripts.
|
|
44
|
+
|
|
45
|
+
Default focused scout remains 3-7 high-signal sources. Wide scan may use more, but stop once the decision is supported and marginal sources repeat what is already known.
|
|
46
|
+
|
|
47
|
+
## Acquisition Ladder
|
|
48
|
+
|
|
49
|
+
1. Use local project context packs and relevant local files first when the decision is project-specific.
|
|
50
|
+
2. Use official or primary docs for current SDK/API/cloud-service behavior.
|
|
51
|
+
3. Use ordinary web search or documentation search for accessible external sources.
|
|
52
|
+
4. Use platform-specific public APIs or feeds when they are cleaner than rendered pages.
|
|
53
|
+
5. Use blocked-source fallback only for high-signal sources that ordinary access cannot read.
|
|
54
|
+
|
|
55
|
+
Blocked-source fallback:
|
|
56
|
+
|
|
57
|
+
- Treat `insane-search` as a source acquisition subroutine.
|
|
58
|
+
- Use it for blocked/WAF/platform-protected sources such as X, Reddit, YouTube, Naver, LinkedIn, Medium, Substack, or similar pages when they matter to the decision.
|
|
59
|
+
- Preserve provenance: original URL, access path, trace or fallback note, and whether the content came from API, cache, feed, rendered HTML, or archive.
|
|
60
|
+
- Do not use it for ordinary searches that normal web search can handle.
|
|
61
|
+
- Do not treat authentication, paywall, private data, or rate-limit boundaries as something to force through.
|
|
62
|
+
|
|
63
|
+
## Evidence Ledger
|
|
64
|
+
|
|
65
|
+
Use a compact ledger for broad scans:
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
Claim:
|
|
69
|
+
Evidence:
|
|
70
|
+
Source class:
|
|
71
|
+
Confidence: high / medium / low
|
|
72
|
+
Uncertainty:
|
|
73
|
+
Decision impact:
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Keep the ledger short. Include only claims that materially shape the recommendation.
|
|
77
|
+
|
|
78
|
+
## Parallel Research
|
|
79
|
+
|
|
80
|
+
Scout stays single-agent by default.
|
|
81
|
+
|
|
82
|
+
Use real subagents or parallel agent lanes only when all are true:
|
|
83
|
+
|
|
84
|
+
- The user explicitly asked for subagents, delegation, or parallel agent work.
|
|
85
|
+
- The available environment provides real subagent tools.
|
|
86
|
+
- The questions are independent and self-contained.
|
|
87
|
+
- The results can be summarized without flooding the main context.
|
|
88
|
+
|
|
89
|
+
Good lanes:
|
|
90
|
+
|
|
91
|
+
- Official/docs lane.
|
|
92
|
+
- Implementation/source lane.
|
|
93
|
+
- Community/contrarian lane.
|
|
94
|
+
- Security/risk lane.
|
|
95
|
+
|
|
96
|
+
Bad lanes:
|
|
97
|
+
|
|
98
|
+
- Multiple agents reading the same sources.
|
|
99
|
+
- Delegating the immediate blocking question.
|
|
100
|
+
- Role-playing subagents when no real subagent tool is available.
|
|
101
|
+
- Turning a normal scout into `$mission`.
|
|
102
|
+
|
|
103
|
+
## Opposition Pass
|
|
104
|
+
|
|
105
|
+
Before the recommendation, ask:
|
|
106
|
+
|
|
107
|
+
- What would make the best pick fail in this project?
|
|
108
|
+
- Which source is least trustworthy or most stale?
|
|
109
|
+
- What is the strongest cheaper/simpler alternative?
|
|
110
|
+
- What security or operational risk is easy to miss?
|
|
111
|
+
- What would we need to verify before implementation?
|
|
112
|
+
|
|
113
|
+
Report the opposition pass briefly. It should sharpen the recommendation, not bury it.
|
|
114
|
+
|
|
115
|
+
## Output
|
|
116
|
+
|
|
117
|
+
Use the normal Scout shape, adding only the sections that help:
|
|
118
|
+
|
|
119
|
+
- Best pick.
|
|
120
|
+
- Objective judgment.
|
|
121
|
+
- Subjective judgment.
|
|
122
|
+
- Macro / realistic / future view.
|
|
123
|
+
- Alternatives.
|
|
124
|
+
- Risks.
|
|
125
|
+
- Security lens.
|
|
126
|
+
- Opposition pass.
|
|
127
|
+
- Evidence ledger.
|
|
128
|
+
- Ideas to rework into yam style.
|
|
129
|
+
- Sources or local evidence.
|
|
130
|
+
- Remaining tasks.
|
|
131
|
+
|
|
132
|
+
## Source Clarity
|
|
133
|
+
|
|
134
|
+
When outside systems shape the answer, preserve boundaries:
|
|
135
|
+
|
|
136
|
+
- Fact: what the source says or what local files show.
|
|
137
|
+
- Inference: what follows from comparing sources.
|
|
138
|
+
- Opinion: taste, product instinct, or likely user perception.
|
|
139
|
+
- Recommendation: the action Scout would take.
|
|
140
|
+
|
|
141
|
+
Useful outside patterns to rework, not copy wholesale:
|
|
142
|
+
|
|
143
|
+
- Agent Skills: progressive disclosure through `SKILL.md` plus optional references/scripts/assets.
|
|
144
|
+
- Deep Research: multi-step search, backtracking, citations, and synthesis.
|
|
145
|
+
- Coding-agent subagents: isolated read-only research lanes for context-heavy side tasks.
|
|
146
|
+
- Agents SDK-style guardrails and tracing: lightweight checks and evidence records around runs.
|
|
147
|
+
- Deep Agents-style harnesses: planning, context offloading, subagents, memory, and human checkpoints.
|
|
148
|
+
- MCP/ACP-style protocols: standard tool/resource discovery and agent-client boundaries.
|
|
149
|
+
|
|
150
|
+
Keep yam's bias: start with momentum, deepen deliberately, stay security-first, and avoid always-on orchestration.
|
package/references/scout.md
CHANGED
|
@@ -14,15 +14,20 @@ Use for:
|
|
|
14
14
|
- Macro, realistic, and future-facing direction checks.
|
|
15
15
|
- Security-centered direction checks.
|
|
16
16
|
- Reference scans that find useful patterns to rework into yam style.
|
|
17
|
+
- Wide scans across tools, agent systems, protocols, harnesses, markets, or third-party ecosystems.
|
|
17
18
|
|
|
18
19
|
Default behavior:
|
|
19
20
|
|
|
20
21
|
- Define the decision clearly.
|
|
21
22
|
- Prefer official or primary sources.
|
|
22
23
|
- Gather 3-7 high-signal references for focused scouting, or more when the user asks for a wide scan.
|
|
24
|
+
- For wide scans, build a source map before deep reading: official/primary, implementation evidence, third-party analysis, community evidence, contrarian sources, and local evidence.
|
|
23
25
|
- Use current docs proof only for modern SDK/API/cloud-service behavior where stale knowledge is plausible.
|
|
26
|
+
- Use blocked-source fallback only when a high-signal source is blocked or platform-protected; treat `insane-search` as source acquisition, not as the default search path.
|
|
24
27
|
- Summarize options and recommendation.
|
|
25
28
|
- Separate fact, inference, opinion, and recommendation.
|
|
29
|
+
- Use a compact evidence ledger for broad recommendations.
|
|
30
|
+
- Run an opposition pass when false confidence would make the recommendation brittle.
|
|
26
31
|
- Keep source boundaries clear: cite what was read and do not present reference-derived judgment as direct verification.
|
|
27
32
|
- Put security before convenience: auth, payment, DB, secrets, permissions, deployment, supply chain, and public release get called out early.
|
|
28
33
|
- Do not change code unless the user asks.
|
|
@@ -36,9 +41,13 @@ Judgment format:
|
|
|
36
41
|
- Future view: second-order effects, durability, and what may age well or badly.
|
|
37
42
|
- Security view: sensitive surfaces, safer defaults, failure modes, and what a non-specialist might miss.
|
|
38
43
|
- Rework view: what ideas should be adapted into yam style and what should be rejected.
|
|
44
|
+
- Evidence view: important claim, source class, confidence, uncertainty, and decision impact.
|
|
45
|
+
- Opposition view: the strongest reason the preferred direction could be wrong.
|
|
39
46
|
|
|
40
47
|
Escalate:
|
|
41
48
|
|
|
42
49
|
- Use `question` for direct answers that do not need sources.
|
|
43
50
|
- Use `deep` only when the user asks for heavy verification.
|
|
44
51
|
- Use implementation routes only after the user asks to change code.
|
|
52
|
+
|
|
53
|
+
For broad scan mechanics, use `references/scout-wide-scan.md`.
|
|
@@ -138,6 +138,7 @@ Tool intent labels stay advisory and route-scoped:
|
|
|
138
138
|
- browser/screenshot evidence
|
|
139
139
|
- visual provenance for reference-based UI work
|
|
140
140
|
- mission patch envelopes for real team lanes
|
|
141
|
+
- per-thread Mission receipts and aggregate completion gate
|
|
141
142
|
- runtime evidence mini for route-level runtime claims
|
|
142
143
|
- patch queue lite when mission lane apply/verify order matters
|
|
143
144
|
- rollback hints for risky changes
|
|
@@ -146,6 +147,8 @@ Tool intent labels stay advisory and route-scoped:
|
|
|
146
147
|
- truth status
|
|
147
148
|
- skipped/blocked/assumed items
|
|
148
149
|
|
|
150
|
+
Reviewer and doctor Mission lanes use `read_only` intent by default. A receipt that claims write access or changed files for those roles is a contract violation, and a stopped thread without an explicit outcome is not success evidence.
|
|
151
|
+
|
|
149
152
|
`yam release report --json` should collect release readiness into a machine-readable artifact:
|
|
150
153
|
|
|
151
154
|
- typecheck
|
|
@@ -40,6 +40,8 @@ The module provides:
|
|
|
40
40
|
- runtime truth matrix
|
|
41
41
|
- completion proof object creation
|
|
42
42
|
- Ueye design completion gate creation
|
|
43
|
+
- Mission subagent receipt and aggregate completion gate creation
|
|
44
|
+
- Ueye asset/revision integrity helpers through the CLI
|
|
43
45
|
|
|
44
46
|
## Policy
|
|
45
47
|
|
|
@@ -54,5 +56,6 @@ For example:
|
|
|
54
56
|
- Required runtime evidence that is missing becomes `real_required_missing`.
|
|
55
57
|
- Cleanup claims require cleanup evidence.
|
|
56
58
|
- Ueye `done` claims require a passing design completion gate or stay capped at `partial` or `blocked`.
|
|
59
|
+
- Mission `verified` or `proven` claims require a passing completion gate built from the expected thread inventory and explicit receipts.
|
|
57
60
|
|
|
58
61
|
This keeps the trust layer progressive and route-scoped.
|
|
@@ -42,6 +42,8 @@ Never say cleanup is `proven` from a cleanup intention alone. Cleanup needs obse
|
|
|
42
42
|
|
|
43
43
|
Never say full visual `verified` when the only evidence is a reference image, generated image, code reading, or text-only critique.
|
|
44
44
|
|
|
45
|
+
Never say a Mission is `verified` or `proven` because every thread emitted a stop event. Every expected thread needs one unambiguous receipt with outcome and evidence, and the aggregate completion gate must pass.
|
|
46
|
+
|
|
45
47
|
Ueye preflight is `partial` by design. It can identify design risks before work starts, but it cannot prove visual quality without implementation screenshot/comparison evidence.
|
|
46
48
|
|
|
47
49
|
For ordinary routes, prefer `verified`, `partial`, `skipped`, `blocked`, or `assumed`.
|
package/references/ueye-proof.md
CHANGED
|
@@ -26,6 +26,10 @@ 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 asset add --manifest .yam/ueye/assets.json --id official-logo --file ./assets/logo.png --source-page-url https://example.com/brand --license-note "official brand asset; local review use" --do-not-replace --json
|
|
30
|
+
yam ueye asset verify --manifest .yam/ueye/assets.json --json
|
|
31
|
+
yam ueye revision archive --file .yam/screens/home.png --round 1 --artifact-id home --root .yam/ueye/revisions --json
|
|
32
|
+
yam ueye revision verify --manifest .yam/ueye/revisions/manifest.json --json
|
|
29
33
|
yam ueye report --reference ./reference.png --actual .yam/screens/home.png --acceptance-criterion "primary CTA remains visible on mobile" --design-system-evidence "uses existing button token" --implementation-evidence "browser screenshot reviewed" --state-check default:pass --state-check mobile:partial --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
|
|
30
34
|
```
|
|
31
35
|
|
|
@@ -34,6 +38,8 @@ yam ueye report --reference ./reference.png --actual .yam/screens/home.png --acc
|
|
|
34
38
|
- `report` records the Ueye run as reference sources, implementation sources, comparison result, surface context, design quality, blocked reason, next action, and truth status.
|
|
35
39
|
- `report` can also record a deep visual review with acceptance criteria, touched/read/verified files, skipped checks, residual risks, stop condition, resume hint, design-system evidence, implementation evidence, and state matrix.
|
|
36
40
|
- `report` may include continuity fields when a previous review or screenshot is being rechecked.
|
|
41
|
+
- `asset` records and verifies local reference provenance, protection/edit flags, dimensions, bytes, and hashes without downloading remote content.
|
|
42
|
+
- `revision` copies a live artifact into a non-overwriting round archive and verifies the revision history before it supports a done claim.
|
|
37
43
|
- Without capture or user-provided screenshots, report implementation/source review separately from visual verification and cap the visual claim.
|
|
38
44
|
|
|
39
45
|
### Media Generation Proof
|
package/references/ueye.md
CHANGED
|
@@ -68,6 +68,8 @@ Use these when the task depends on visual truth, reference matching, or design q
|
|
|
68
68
|
5. Review Continuity and Comparison Report.
|
|
69
69
|
6. Design Completion Gate.
|
|
70
70
|
7. Deep Visual Review, when Ueye needs Deep-grade verification.
|
|
71
|
+
8. Asset Manifest, when local reference media affects the design.
|
|
72
|
+
9. Revision History, when an iterative visual artifact is about to be replaced.
|
|
71
73
|
|
|
72
74
|
Default bound:
|
|
73
75
|
|
|
@@ -77,6 +79,16 @@ Default bound:
|
|
|
77
79
|
- Do not require voxel grids, exhaustive callouts, or generated annotations.
|
|
78
80
|
- Do not let proof artifacts turn Ueye into always-on heavy orchestration.
|
|
79
81
|
|
|
82
|
+
### Asset Manifest
|
|
83
|
+
|
|
84
|
+
Use `yam ueye asset add|verify` for important local references such as official identity files, supplied photos, and editable visual sources.
|
|
85
|
+
|
|
86
|
+
Record source URL/page when known, a license or usage note, operator-provided status, `do_not_replace`, `allowed_for_edit`, dimensions, bytes, and SHA-256. Missing licensing stays visible as a warning. The helper does not fetch URLs or infer usage rights.
|
|
87
|
+
|
|
88
|
+
### Revision History
|
|
89
|
+
|
|
90
|
+
Use `yam ueye revision archive` before replacing an artifact during an iterative design pass. Archives are written to numbered round folders with exclusive-copy behavior, so a different payload cannot silently overwrite an existing round. `yam ueye revision verify` recomputes hashes before the history supports a done claim.
|
|
91
|
+
|
|
80
92
|
### Visual Evidence Inventory
|
|
81
93
|
|
|
82
94
|
Record the real screens and image sources behind the review.
|
|
@@ -143,7 +143,7 @@ Stop condition:
|
|
|
143
143
|
- `$quick`: L1-L2 by default; L3 only when the claim needs it.
|
|
144
144
|
- `$ueye`: L1-L3 for ordinary UI work; L4 when claiming visual done.
|
|
145
145
|
- `$deep`: L3-L5 when risk or user intent calls for strong verification.
|
|
146
|
-
- `$mission`: L4-L5 when real subagents/team lanes are used, with cross-verification.
|
|
146
|
+
- `$mission`: L4-L5 when real subagents/team lanes are used, with cross-verification, per-thread receipts, and a passing aggregate completion gate.
|
|
147
147
|
|
|
148
148
|
## Completion Claim Rule
|
|
149
149
|
|
|
@@ -154,5 +154,6 @@ Completion claims require evidence at or above the level implied by the claim:
|
|
|
154
154
|
- UI done claim: L3-L4 with visual evidence when feasible.
|
|
155
155
|
- Runtime/cleanup claim: L4.
|
|
156
156
|
- Release/auth/DB/security claim: L4-L5.
|
|
157
|
+
- Mission verified/proven claim: L4-L5 plus expected-thread receipt coverage and completion gate.
|
|
157
158
|
|
|
158
159
|
If the evidence level is lower than the claim, lower the truth status and report the gap.
|
package/skills/mission/SKILL.md
CHANGED
|
@@ -35,6 +35,8 @@ Do not use for:
|
|
|
35
35
|
- If the user explicitly insists on `$mission` despite unavailable subagents, mark the mission `partial` or `blocked` instead of pretending role-play is team execution.
|
|
36
36
|
- Use tmux/dev server/browser QA only when the mission needs runtime evidence.
|
|
37
37
|
- Cross-verify before claiming completion.
|
|
38
|
+
- Reviewer and doctor lanes are read-only by default: they may inspect and run non-mutating checks, but they must not claim changed files or write access.
|
|
39
|
+
- A subagent stop event is lifecycle evidence, not success evidence. Every spawned thread needs an explicit outcome and verification evidence.
|
|
38
40
|
- Do not claim verified, cleaned up, or visually checked without evidence.
|
|
39
41
|
- Doctor scan is mandatory for mission finalization, but it should stay concise.
|
|
40
42
|
|
|
@@ -48,15 +50,18 @@ Do not use for:
|
|
|
48
50
|
- Reviewer: checks code, risk, and project direction.
|
|
49
51
|
- UX/browser verifier: checks screen behavior when relevant.
|
|
50
52
|
- Doctor/scanner: checks direction fit, scope control, verification, cleanup, stale context, and false-completion risk.
|
|
53
|
+
- Keep Reviewer and Doctor read-only; if either must implement a fix, hand it back to an Implementer lane or create a new bounded write lane.
|
|
51
54
|
5. Execute the implementation in bounded steps.
|
|
52
55
|
6. Record a compact patch envelope for each real lane that changes code.
|
|
53
56
|
7. Add rollback hints for touched files, generated files, before checks, and safe revert notes.
|
|
54
57
|
8. Use `$deep`-style runtime verification when the mission needs dev server, tmux, test watcher, browser QA, cleanup, or before/after evidence.
|
|
55
58
|
9. Cross-check findings and resolve contradictions.
|
|
56
|
-
10.
|
|
57
|
-
11. Run
|
|
58
|
-
12.
|
|
59
|
-
13.
|
|
59
|
+
10. Record one `yam mission receipt` for every spawned thread. `stopped` without `passed|failed|blocked` remains ambiguous and cannot support completion.
|
|
60
|
+
11. Run `yam mission gate` against the expected thread inventory and receipts.
|
|
61
|
+
12. Run the smallest honest final verification set.
|
|
62
|
+
13. Run doctor scan with `references/doctor-scan.md`.
|
|
63
|
+
14. Confirm cleanup or explicitly report intentionally running processes.
|
|
64
|
+
15. Produce final proof summary, truth status, remaining tasks, and fix-first items.
|
|
60
65
|
|
|
61
66
|
Mission stop condition:
|
|
62
67
|
|
|
@@ -73,6 +78,8 @@ Include:
|
|
|
73
78
|
- Subagent decision: used / downgraded_to_deep / unavailable_partial / blocked, with reason.
|
|
74
79
|
- Files or surfaces changed.
|
|
75
80
|
- Patch envelope for each real code-changing lane.
|
|
81
|
+
- Subagent receipt for every expected thread.
|
|
82
|
+
- Passing Mission completion gate before a `verified` or `proven` Mission claim.
|
|
76
83
|
- Rollback hint for risky or multi-file changes.
|
|
77
84
|
- Runtime/tmux/browser evidence when used.
|
|
78
85
|
- Cross-verification result.
|
|
@@ -91,6 +98,14 @@ Use `references/study-note.md` for every lane that changes code, config, docs, r
|
|
|
91
98
|
Use `references/final-report.md` to close with remaining tasks and fix-first items.
|
|
92
99
|
Use `references/token-budget-reporter.md` when budget drift matters.
|
|
93
100
|
|
|
101
|
+
Useful CLI artifacts:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
yam mission receipt --thread-id reviewer-1 --role reviewer --lifecycle stopped --outcome passed --scope "read-only review" --evidence "review findings recorded" --out .yam/mission/reviewer-1.json --json
|
|
105
|
+
yam mission gate --expected-thread reviewer-1 --receipt .yam/mission/reviewer-1.json --out .yam/mission/completion.json --json
|
|
106
|
+
yam proof --route mission --truth verified --mission-completion "$(<.yam/mission/completion.json)" --json
|
|
107
|
+
```
|
|
108
|
+
|
|
94
109
|
## Prompt Pattern
|
|
95
110
|
|
|
96
111
|
Good mission prompts include:
|
package/skills/scout/SKILL.md
CHANGED
|
@@ -16,6 +16,7 @@ Use for:
|
|
|
16
16
|
- Objective and subjective evaluation together.
|
|
17
17
|
- Macro, realistic, and future-facing judgment.
|
|
18
18
|
- Broad reference scans when the user needs wider perspective.
|
|
19
|
+
- Wide search across source classes, markets, tools, harnesses, agent patterns, or third-party ecosystems.
|
|
19
20
|
- Security-centered direction checks before implementation.
|
|
20
21
|
- Finding patterns worth reworking into yam style.
|
|
21
22
|
|
|
@@ -31,6 +32,11 @@ Use for:
|
|
|
31
32
|
- Do not change code unless the user asks.
|
|
32
33
|
- Return a practical recommendation.
|
|
33
34
|
- Separate fact, inference, opinion, and recommendation.
|
|
35
|
+
- Use an evidence ledger for wide scans: claim, source or local evidence, confidence, and uncertainty.
|
|
36
|
+
- Run an opposition pass for broad recommendations: name the strongest reason the preferred direction may be wrong.
|
|
37
|
+
- Use blocked-source acquisition only when a high-signal source is blocked, protected by WAF, or hosted on a platform that ordinary fetch cannot read.
|
|
38
|
+
- Treat `insane-search` as a source acquisition subroutine, not as Scout's default search path.
|
|
39
|
+
- Use real subagents or parallel agent lanes only when the user explicitly asks for delegation, subagents, or parallel agent work and the environment supports it.
|
|
34
40
|
- Treat "objective" as evidence plus constraints, not certainty theater.
|
|
35
41
|
- Treat "subjective" as named taste, product instinct, and likely user perception.
|
|
36
42
|
- Security is the first lens: call out auth, payment, DB, secrets, permission, deployment, supply-chain, and public-release risks early.
|
|
@@ -46,13 +52,17 @@ Use for:
|
|
|
46
52
|
- design/reference scan
|
|
47
53
|
- product/technical direction memo
|
|
48
54
|
- risk discovery
|
|
55
|
+
- wide scan
|
|
49
56
|
3. Read `yam.project.md` first when project direction matters.
|
|
50
57
|
4. Gather enough high-signal sources to support the decision; keep source quality higher than source volume.
|
|
51
|
-
5.
|
|
52
|
-
6.
|
|
53
|
-
7.
|
|
54
|
-
8.
|
|
55
|
-
9.
|
|
58
|
+
5. For wide scans, build a source map before deep reading: official/primary, implementation evidence, third-party analysis, community reports, contrarian sources, and local evidence.
|
|
59
|
+
6. Recover blocked high-signal sources through the blocked-source fallback only when ordinary access fails or is predictably blocked.
|
|
60
|
+
7. Compare options by fit, risk, cost, implementation effort, durability, and evidence quality.
|
|
61
|
+
8. Identify security and trust implications before convenience or aesthetics.
|
|
62
|
+
9. Give both objective and subjective judgment when useful.
|
|
63
|
+
10. Run an opposition pass when making a broad recommendation.
|
|
64
|
+
11. Recommend a direction and which ideas are worth reworking into yam style.
|
|
65
|
+
12. State uncertainty and what would change the recommendation.
|
|
56
66
|
|
|
57
67
|
## Output
|
|
58
68
|
|
|
@@ -65,6 +75,8 @@ Use concise sections:
|
|
|
65
75
|
- Alternatives.
|
|
66
76
|
- Risks.
|
|
67
77
|
- Security lens.
|
|
78
|
+
- Evidence ledger.
|
|
79
|
+
- Opposition pass.
|
|
68
80
|
- Ideas to rework into yam style.
|
|
69
81
|
- Sources or local evidence.
|
|
70
82
|
- Remaining tasks or useful next improvements.
|
|
@@ -72,6 +84,7 @@ Use concise sections:
|
|
|
72
84
|
Use `references/token-economy.md`; default to 3-7 high-signal sources unless the user asks for a broad research scan.
|
|
73
85
|
Use `references/current-docs.md` for current SDK/API/cloud-service questions.
|
|
74
86
|
Use `references/context-reuse.md`; do not rescout known decisions unless they may be stale.
|
|
87
|
+
Use `references/scout-wide-scan.md` when the user asks for broad search, powerful outside patterns, harness/agent comparisons, or ecosystem scans.
|
|
75
88
|
Use `references/markdown-management.md` before creating or updating project packs.
|
|
76
89
|
Use `references/final-report.md` to close with remaining tasks and fix-first items when useful.
|
|
77
90
|
Use `references/token-budget-reporter.md` when a run needs measured budget feedback.
|
package/skills/ueye/SKILL.md
CHANGED
|
@@ -60,6 +60,9 @@ Do not use for:
|
|
|
60
60
|
- Mark any ambiguous or unobservable detail instead of inventing it.
|
|
61
61
|
5. Inspect nearby UI patterns, tokens, styles, and state handling.
|
|
62
62
|
6. Implement the smallest coherent design improvement when implementation is requested.
|
|
63
|
+
- When local reference assets materially shape the design, record them with `yam ueye asset add` before editing.
|
|
64
|
+
- Use `do_not_replace` for protected identity assets and enable `allowed_for_edit` only when usage rights and task scope support editing.
|
|
65
|
+
- Before overwriting an iterative visual artifact, preserve the current file with `yam ueye revision archive`.
|
|
63
66
|
7. Check default, loading, error, empty, disabled, hover/focus, and mobile states when relevant.
|
|
64
67
|
8. Run browser/screenshot verification when feasible.
|
|
65
68
|
- Prefer the in-app browser for local pages, localhost, file URLs, and ordinary visual QA.
|
|
@@ -127,6 +130,13 @@ Use these artifacts for reference-led implementation or serious visual review. K
|
|
|
127
130
|
- record whether generation was requested, attempted, blocked, or produced an output.
|
|
128
131
|
- use `yam media proof --requested --attempted --output path.png --wait-loop --json` when a generated image materially affects the design direction.
|
|
129
132
|
- never use generated media proof as a substitute for implemented screen evidence.
|
|
133
|
+
10. Asset Manifest, when logos, photos, illustrations, or other local reference files materially affect the work:
|
|
134
|
+
- record local file path, source URL/page when known, retrieval time, license note, operator-provided status, `do_not_replace`, `allowed_for_edit`, dimensions, bytes, and SHA-256.
|
|
135
|
+
- `yam ueye asset` records local files only; it does not download remote content.
|
|
136
|
+
11. Revision History, when an artifact will be regenerated or overwritten:
|
|
137
|
+
- archive the current file under a numbered round before editing it.
|
|
138
|
+
- never overwrite a different archived payload for the same artifact and round.
|
|
139
|
+
- verify the revision manifest before using it in a visual `done` claim.
|
|
130
140
|
|
|
131
141
|
## Visual Truth Caps
|
|
132
142
|
|
|
@@ -177,3 +187,4 @@ Report:
|
|
|
177
187
|
- Architecture hygiene when relevant: flag if the change risks dumping unrelated UI logic into `page.tsx`, one-off component styling into `global.css`, or structured product data into broad DB `jsonb` blobs.
|
|
178
188
|
- Truth status and visual verification cap.
|
|
179
189
|
- Handoff when useful: fix-first visual issues, remaining tasks, recommended direction, why that next step matters, blocker kind, safe retry, evidence level/stamp, and owner scope when another route or person may continue.
|
|
190
|
+
- Asset manifest and revision history status when reference media or iterative artifact replacement materially affected the work.
|