yam-flow 2.0.0 → 2.1.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/AGENTS.md +6 -5
- package/CHANGELOG.md +12 -0
- package/COMMANDS.md +2 -1
- package/DECISIONS.md +3 -0
- package/README.md +8 -4
- package/dist/bin/yam.js +2 -1
- package/package.json +1 -1
- package/references/final-report.md +14 -10
- package/references/honest-completion.md +13 -0
- package/references/study-note.md +53 -0
- package/references/tool-trust-layer.md +6 -1
- package/references/verification-levels.md +130 -25
- package/skills/deep/SKILL.md +9 -2
- package/skills/mission/SKILL.md +9 -1
- package/skills/quick/SKILL.md +5 -2
- package/skills/ueye/SKILL.md +4 -1
- package/src/bin/yam.ts +2 -1
- package/templates/yam.project.md +4 -1
- package/yam.manifest.json +5 -3
package/AGENTS.md
CHANGED
|
@@ -8,14 +8,15 @@
|
|
|
8
8
|
6. Check local project fit before changing code, even for small work.
|
|
9
9
|
7. Prefer existing project patterns over new abstractions.
|
|
10
10
|
8. Make the smallest useful change.
|
|
11
|
-
9. Verify at the lightest level that honestly supports the claim, then escalate verification when the claim is larger.
|
|
11
|
+
9. Verify at the lightest level that honestly supports the claim, then escalate verification with the L0-L5 Verification Ladder when the claim, scope, risk, public release, runtime, UI completion, auth, DB, broad refactor, learning value, or user intent is larger.
|
|
12
12
|
10. Report skipped, partial, blocked, or assumed verification plainly.
|
|
13
13
|
11. Do not run broad tests for tiny changes, but do not under-verify risky, security-sensitive, or public work.
|
|
14
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.
|
|
19
|
-
17.
|
|
20
|
-
18.
|
|
21
|
-
19.
|
|
18
|
+
16. When code, config, release metadata, documentation, or project artifacts changed, include a Study Note even if no yam skill was explicitly invoked.
|
|
19
|
+
17. Explain useful change insight for non-specialists: what the touched code or artifact does, what role it has, what was wrong or missing, what changed, what behavior is expected, one useful syntax/structure insight, what was verified, and what remains uncertain.
|
|
20
|
+
18. Use external references deliberately, preserve source clarity in research/proof notes, and rework good ideas into yam style.
|
|
21
|
+
19. Treat security as the first project lens: identify sensitive surfaces early and guide safer defaults before convenience.
|
|
22
|
+
20. Keep final reports short and concrete, but always include remaining tasks or state that none are meaningful.
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to yam-flow are documented here.
|
|
4
4
|
|
|
5
|
+
## v2.1.0 - 2026-06-30
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Added `references/study-note.md` with required Study Note guidance for any changed code, config, release metadata, documentation, or project artifact.
|
|
10
|
+
- Reworked `references/verification-levels.md` into an L0-L5 Verification Ladder covering stated, inspected, local check, integrated, release/runtime/visual proof, and bounded deep verification.
|
|
11
|
+
|
|
12
|
+
### Improved
|
|
13
|
+
|
|
14
|
+
- Updated core, final-report, route skill, project-pack, and trust-layer guidance so serious claims can require heavier evidence while bounded stop conditions prevent endless proof loops.
|
|
15
|
+
- Strengthened `$quick`, `$deep`, `$mission`, and `$ueye` final report rules so changed artifacts include code/artifact role, expected behavior, syntax or structure insight, verification note, and uncertainty.
|
|
16
|
+
|
|
5
17
|
## v2.0.0 - 2026-06-24
|
|
6
18
|
|
|
7
19
|
### Added
|
package/COMMANDS.md
CHANGED
|
@@ -195,8 +195,9 @@ Supported report shapes:
|
|
|
195
195
|
|
|
196
196
|
- Runtime evidence mini: command/process, observation, cleanup, truth status, next action.
|
|
197
197
|
- Patch queue lite: mission lane status, changed files, verification hint, rollback hint, truth status.
|
|
198
|
+
- Verification Ladder: L0 stated, L1 inspected, L2 local check, L3 integrated, L4 release/runtime/visual proof, L5 bounded deep with stop condition and skipped/remaining work.
|
|
198
199
|
- Loop report: intent, guided stage outcomes, evidence level/stamp, blockers, blocker kind, safe retry, next action, fix-first items, remaining tasks, recommended direction, blocked-by notes, owner route/scope, side effects, and study note.
|
|
199
|
-
- Study note: short non-specialist explanation of the
|
|
200
|
+
- Study note: short non-specialist explanation of the changed code/artifact, its role, what was wrong or missing, expected behavior, one syntax/structure insight, verification, and uncertainty.
|
|
200
201
|
- Benchmark optimization loop lite: baseline, one change, rerun, keep/revert decision.
|
|
201
202
|
- Structured diagnostic next action: severity, evidence, owner route, next action, truth status.
|
|
202
203
|
- Ueye continuity/comparison: previous report, current report, comparison delta, design quality, next action.
|
package/DECISIONS.md
CHANGED
|
@@ -38,11 +38,14 @@ Every `yam` change is evaluated against honest proof, progressive depth, securit
|
|
|
38
38
|
- Rules the model can actually follow.
|
|
39
39
|
- Fast momentum without pretending simple work is always enough.
|
|
40
40
|
- Depth growth when the user's understanding, project risk, or product quality benefits from it.
|
|
41
|
+
- L0-L5 verification ladder with bounded heavy verification and explicit stop conditions.
|
|
41
42
|
|
|
42
43
|
### Beginner Insight
|
|
43
44
|
|
|
44
45
|
- Explain changed behavior in plain language.
|
|
45
46
|
- Name the code area touched and what it is responsible for.
|
|
47
|
+
- Include Study Note whenever code, config, release metadata, documentation, or project artifacts changed.
|
|
48
|
+
- Teach one useful syntax, schema, or structure insight without turning the final report into a long tutorial.
|
|
46
49
|
- Separate implementation facts from judgment.
|
|
47
50
|
- Always close with remaining tasks or useful improvements.
|
|
48
51
|
|
package/README.md
CHANGED
|
@@ -14,6 +14,8 @@ Context-reuse first.
|
|
|
14
14
|
End with remaining tasks and fix-first items.
|
|
15
15
|
Security-first project guidance.
|
|
16
16
|
Useful change insight for non-specialists.
|
|
17
|
+
Study Note for changed artifacts.
|
|
18
|
+
Verification Ladder for larger claims.
|
|
17
19
|
Reference-led judgment with clear source boundaries.
|
|
18
20
|
```
|
|
19
21
|
|
|
@@ -31,17 +33,18 @@ See `ROADMAP.md` for remaining implementation stages.
|
|
|
31
33
|
|
|
32
34
|
## Defaults
|
|
33
35
|
|
|
34
|
-
- No hooks.
|
|
36
|
+
- No required hooks.
|
|
35
37
|
- Optional `yam-lite` hook is advisory-only and off by default.
|
|
36
38
|
- No automatic Team routing.
|
|
37
39
|
- No automatic proof loops.
|
|
38
40
|
- No automatic tmux.
|
|
39
41
|
- No false completion claims: verification, cleanup, and visual checks must match actual evidence.
|
|
40
42
|
- `yam` is not lightweight-only; it is progressive: fast direction, broader judgment when useful, stronger proof as scope/risk grows.
|
|
41
|
-
- Every route should check project direction and use
|
|
43
|
+
- Every route should check project direction and use the L0-L5 Verification Ladder honestly.
|
|
42
44
|
- Small work stays small, but serious work is allowed to become serious.
|
|
43
45
|
- Security-sensitive work is never treated as ordinary polish.
|
|
44
|
-
-
|
|
46
|
+
- When code, config, release metadata, documentation, or project artifacts changed, final reports include a Study Note even if no yam skill was invoked.
|
|
47
|
+
- Useful Study Notes explain what the changed code or artifact does, what role it has, what was wrong or missing, what changed, what behavior is expected, one small syntax/structure insight, what was verified, and what remains uncertain.
|
|
45
48
|
- Research and reference scans should keep source boundaries clear, then rework good ideas into yam style.
|
|
46
49
|
- Token economy is part of quality.
|
|
47
50
|
- Project packs prevent re-reading and re-planning from scratch.
|
|
@@ -215,9 +218,10 @@ These shapes keep reports machine-readable without turning normal work into a he
|
|
|
215
218
|
|
|
216
219
|
- Runtime evidence mini: compact route, command/process, observation, cleanup, truth status, and next action fields for `$deep` or `$mission` runtime claims.
|
|
217
220
|
- Patch queue lite: `$mission` lane records with pending/applied/verified/reverted/blocked state, changed files, verification hint, rollback hint, truth status, and next action.
|
|
221
|
+
- Verification Ladder: L0 stated, L1 inspected, L2 local check, L3 integrated, L4 release/runtime/visual proof, and L5 bounded deep. Heavier claims require heavier evidence, but stop conditions prevent endless proof loops.
|
|
218
222
|
- Release report JSON: `yam release report --json` summarizes typecheck, forbidden-name scan, package boundary, registry status, CLI smoke, dist freshness, diagnostics, readiness receipt, and final truth status.
|
|
219
223
|
- Loop report JSON: `yam loop report --json` records a read-only handoff artifact: guided stages, requirement coverage, evidence level/stamp, blocker kind, failure cause, safe retry, recovery hint, owner route/scope, side effects, next action, fix-first items, remaining tasks, recommended direction, implementation notes, blocked-by notes, avoidance note, tool intent, truth status, and study note.
|
|
220
|
-
- Study note: `yam.study-note.v1`
|
|
224
|
+
- Study note: `yam.study-note.v1` and `references/study-note.md` keep non-specialist explanations for what code/artifact changed, what role it plays, what was wrong or missing, what behavior is expected, one syntax/structure insight, what was verified, and what remains uncertain. Missing details stay in `limits` instead of being guessed.
|
|
221
225
|
- Avoidance note: loop reports may include one short mistake-to-avoid note, but durable memory stays explicit through `yam memory add`; `yam loop report` does not write `.yam/memory`.
|
|
222
226
|
- Publish blocker evidence: release reports classify common npm auth, permission, OTP, immutable-version, cache, registry, and tarball failures into safe next actions.
|
|
223
227
|
- Publish readiness evidence: release reports run read-only registry/auth/version probes, redact account/token details, keep npm publish outside the report, and include a `yam.release-readiness-receipt.v1` basis for the readiness judgment.
|
package/dist/bin/yam.js
CHANGED
|
@@ -318,6 +318,7 @@ async function verify({ quiet = false } = {}) {
|
|
|
318
318
|
'token-economy.md',
|
|
319
319
|
'context-reuse.md',
|
|
320
320
|
'markdown-management.md',
|
|
321
|
+
'study-note.md',
|
|
321
322
|
'final-report.md',
|
|
322
323
|
'token-budget-reporter.md',
|
|
323
324
|
'memory.md'
|
|
@@ -3782,7 +3783,7 @@ function printDetection(result) {
|
|
|
3782
3783
|
}
|
|
3783
3784
|
console.log('');
|
|
3784
3785
|
console.log('Smallest useful checks:');
|
|
3785
|
-
console.log(`- $quick: ${result.commands.typecheck || result.commands.lint || result.commands.test || result.commands.build || '
|
|
3786
|
+
console.log(`- $quick: ${result.commands.typecheck || result.commands.lint || result.commands.test || result.commands.build || 'L1 inspected; no command detected'}`);
|
|
3786
3787
|
console.log(`- $ueye: ${result.commands.typecheck || result.commands.build || 'Browser/screenshot check; no command detected'}`);
|
|
3787
3788
|
console.log(`- $deep: ${[result.commands.typecheck, result.commands.lint, result.commands.test, result.commands.build].filter(Boolean).join(' && ') || `No command detected; define in ${PROJECT_PACK}`}`);
|
|
3788
3789
|
if (result.frameworkChecklist?.detected) {
|
package/package.json
CHANGED
|
@@ -4,10 +4,10 @@ Every `yam` route should end with a compact handoff that helps the next run avoi
|
|
|
4
4
|
|
|
5
5
|
## Required Closing Check
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Always keep final reports short. Include these when they apply:
|
|
8
8
|
|
|
9
9
|
- What changed or what was found.
|
|
10
|
-
- Change insight for non-specialists: what the touched code does,
|
|
10
|
+
- Change insight for non-specialists: what the touched code or artifact does, what role it has, what changed, what behavior is expected, and what remains uncertain.
|
|
11
11
|
- What verification ran.
|
|
12
12
|
- What was not checked.
|
|
13
13
|
- Truth status, when verification or runtime claims matter.
|
|
@@ -16,7 +16,7 @@ Include these when they are useful and keep them short:
|
|
|
16
16
|
- Context pressure or cleanup findings when they could affect the next run.
|
|
17
17
|
- Publish blocker evidence when npm/release work fails.
|
|
18
18
|
- Structured diagnostic next action, when a check found a concrete next step.
|
|
19
|
-
- Study Note
|
|
19
|
+
- Study Note whenever code, config, release metadata, documentation, or project artifacts changed, even if no yam skill was explicitly invoked. This item is required for changed artifacts, not optional.
|
|
20
20
|
- Remaining tasks.
|
|
21
21
|
- Fix-first items before planned tasks.
|
|
22
22
|
- Recommended direction and why that next step matters when the handoff would otherwise be ambiguous.
|
|
@@ -58,15 +58,19 @@ Examples:
|
|
|
58
58
|
|
|
59
59
|
## Study Note
|
|
60
60
|
|
|
61
|
-
Use this
|
|
61
|
+
Use this whenever implementation changed code or any project artifact changed:
|
|
62
62
|
|
|
63
|
-
- What code
|
|
64
|
-
- What role that code plays.
|
|
65
|
-
-
|
|
66
|
-
- What changed.
|
|
67
|
-
-
|
|
63
|
+
- What code or artifact changed.
|
|
64
|
+
- What role that code or artifact plays in the project.
|
|
65
|
+
- What was wrong, missing, unclear, or risky.
|
|
66
|
+
- What changed and what behavior the change should produce.
|
|
67
|
+
- One small syntax, API, schema, or structure insight for a non-specialist.
|
|
68
|
+
- What was verified, or why verification is partial/skipped/blocked.
|
|
69
|
+
- What remains uncertain.
|
|
68
70
|
|
|
69
|
-
Keep it short. If the information is not known, say so instead of inventing it.
|
|
71
|
+
Keep it short: 4-7 lines for ordinary work, longer only when risk, learning value, `$deep`, `$mission`, release, runtime, or DB work justifies it. If the information is not known, say so instead of inventing it.
|
|
72
|
+
|
|
73
|
+
Use `references/study-note.md`.
|
|
70
74
|
|
|
71
75
|
## Handoff Direction
|
|
72
76
|
|
|
@@ -35,6 +35,19 @@ Verification: not run; change was limited to copy/CSS and inspected locally.
|
|
|
35
35
|
|
|
36
36
|
For larger work, include proof summary and residual risk.
|
|
37
37
|
|
|
38
|
+
Use the L0-L5 Verification Ladder:
|
|
39
|
+
|
|
40
|
+
- L0 stated.
|
|
41
|
+
- L1 inspected.
|
|
42
|
+
- L2 local check.
|
|
43
|
+
- L3 integrated.
|
|
44
|
+
- L4 release/runtime/visual proof.
|
|
45
|
+
- L5 bounded deep.
|
|
46
|
+
|
|
47
|
+
Escalate when the claim touches public release, UI done, auth, payment, DB, runtime, deployment, broad refactor, security, high learning value, or explicit user intent.
|
|
48
|
+
|
|
49
|
+
Bounded heavy verification must stop after the smallest meaningful proof set passes, or after three relevant checks have run and remaining uncertainty is listed as blocked, skipped, or remaining work.
|
|
50
|
+
|
|
38
51
|
## Runtime Guard
|
|
39
52
|
|
|
40
53
|
Runtime work needs stronger evidence because long-running processes can create false success:
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Study Note
|
|
2
|
+
|
|
3
|
+
Study Note is required whenever code, config, release metadata, documentation, or project artifacts changed, even if no yam skill was explicitly invoked.
|
|
4
|
+
|
|
5
|
+
The goal is not to write a tutorial for every change. The goal is to help a non-specialist learn the meaning of the changed code a little at a time, without hiding uncertainty or padding the final report.
|
|
6
|
+
|
|
7
|
+
## Final Report Shape
|
|
8
|
+
|
|
9
|
+
This is final-report writing guidance, not a new CLI JSON schema. The current CLI artifact remains `yam.study-note.v1` with `problem`, `change`, `why_it_matters`, `learning_note`, `limits`, and `truth_status`. When using `yam loop report`, map the guidance below into the existing fields and put unknowns in `limits`.
|
|
10
|
+
|
|
11
|
+
Keep the default note short: 4-7 lines for ordinary work, longer only for `$deep`, `$mission`, release, DB, runtime, or learning-heavy work.
|
|
12
|
+
|
|
13
|
+
Include:
|
|
14
|
+
|
|
15
|
+
- Touched code/artifact: the file, function, component, config, or artifact that changed.
|
|
16
|
+
- Code/artifact role: what that code or artifact does in the project.
|
|
17
|
+
- Problem meaning: what was wrong, missing, unclear, or risky, and how the symptom appeared.
|
|
18
|
+
- Change meaning: what changed and what behavior the change should produce.
|
|
19
|
+
- Syntax or structure insight: one small language, API, schema, or structure insight for a non-specialist.
|
|
20
|
+
- Verification note: what was checked, or why verification is partial/skipped/blocked.
|
|
21
|
+
- Limits: what is not known; do not invent missing cause, behavior, or verification.
|
|
22
|
+
|
|
23
|
+
## Compact Example
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
Study Note:
|
|
27
|
+
- Touched code: `buildLoopReport`, the function that turns loop inputs into report JSON.
|
|
28
|
+
- Code role: it decides whether a loop can honestly say it is verified, partial, or blocked.
|
|
29
|
+
- Problem meaning: a report could include unfinished requirements without making the completion risk obvious.
|
|
30
|
+
- Change meaning: `uncovered_requirements` now lowers the truth status to blocked and points the next action at the missing requirement.
|
|
31
|
+
- Syntax/structure: the code uses an array length check plus a conditional default to choose safer report fields.
|
|
32
|
+
- Verification: typecheck and CLI smoke covered the JSON shape.
|
|
33
|
+
- Limits: this does not infer requirements from prose; the agent/user still has to provide them.
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## When Nothing Changed
|
|
37
|
+
|
|
38
|
+
For pure Q&A, planning, scouting, or review with no changed artifact, do not force a Study Note. Say `No code or project artifact changed` when that prevents ambiguity.
|
|
39
|
+
|
|
40
|
+
## Tone
|
|
41
|
+
|
|
42
|
+
- Use plain language before implementation jargon.
|
|
43
|
+
- Explain the code's responsibility before explaining the patch.
|
|
44
|
+
- Prefer one practical syntax or structure insight over broad teaching.
|
|
45
|
+
- Tie the note to evidence. If no check ran, say so.
|
|
46
|
+
- Keep remaining tasks separate from Study Note.
|
|
47
|
+
|
|
48
|
+
## What To Avoid
|
|
49
|
+
|
|
50
|
+
- Do not guess root cause when it was not verified.
|
|
51
|
+
- Do not over-explain common syntax when it distracts from the touched code.
|
|
52
|
+
- Do not turn every final report into a long lesson.
|
|
53
|
+
- Do not claim the user learned something; just leave a useful learning path.
|
|
@@ -13,7 +13,8 @@ Every route carries a basic contract:
|
|
|
13
13
|
- use context packs or memory before broad re-reading
|
|
14
14
|
- verify only what was actually checked
|
|
15
15
|
- report remaining tasks and fix-first issues when useful
|
|
16
|
-
-
|
|
16
|
+
- include a Study Note when code, config, release metadata, documentation, or project artifacts changed
|
|
17
|
+
- explain what changed, what role it has, what behavior is expected, and one useful syntax or structure insight in plain language
|
|
17
18
|
- treat security as the first project lens
|
|
18
19
|
- preserve source boundaries when outside references shaped the judgment
|
|
19
20
|
|
|
@@ -26,6 +27,8 @@ Then depth increases by route:
|
|
|
26
27
|
- `$deep`: prove risky single-agent work with stronger runtime/tool evidence.
|
|
27
28
|
- `$mission`: coordinate real subagents/team lanes with cross-verification.
|
|
28
29
|
|
|
30
|
+
Verification should follow the L0-L5 ladder: stated, inspected, local check, integrated, release/runtime/visual proof, bounded deep. Serious claims can require serious evidence, but stop after the smallest meaningful proof set passes or after remaining uncertainty is clearly handed off.
|
|
31
|
+
|
|
29
32
|
## Surfaces To Wrap
|
|
30
33
|
|
|
31
34
|
- Local CLI/app readiness.
|
|
@@ -94,6 +97,8 @@ On demand:
|
|
|
94
97
|
|
|
95
98
|
- What the touched code or artifact is responsible for.
|
|
96
99
|
- What changed in behavior, contract, UI, or safety posture.
|
|
100
|
+
- What syntax, schema, or structure insight helps a non-specialist understand the change.
|
|
101
|
+
- What verification level supports the claim.
|
|
97
102
|
- Why the change matters to the product or user.
|
|
98
103
|
- What remains uncertain or unverified.
|
|
99
104
|
- What should be fixed first before the next planned task.
|
|
@@ -1,53 +1,158 @@
|
|
|
1
|
-
# Verification
|
|
1
|
+
# Verification Ladder
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`yam` starts with momentum, but it is not lightweight-only. Verification should become heavier when scope, risk, public release, runtime state, UI completion, auth, DB, broad refactor, or user intent makes false completion costly.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Use the smallest level that honestly supports the claim, then escalate deliberately.
|
|
6
|
+
|
|
7
|
+
## L0: Stated
|
|
8
|
+
|
|
9
|
+
Explanation only. No code or artifact was inspected deeply enough to support an implementation claim.
|
|
10
|
+
|
|
11
|
+
Use for:
|
|
12
|
+
|
|
13
|
+
- Pure Q&A.
|
|
14
|
+
- Early plan or hypothesis.
|
|
15
|
+
- Scout recommendation before implementation.
|
|
16
|
+
|
|
17
|
+
Report:
|
|
18
|
+
|
|
19
|
+
- Truth status: `assumed` or `skipped`.
|
|
20
|
+
- Say no verification ran.
|
|
21
|
+
|
|
22
|
+
## L1: Inspected
|
|
23
|
+
|
|
24
|
+
Relevant file, snippet, error, screenshot, or project context was read.
|
|
25
|
+
|
|
26
|
+
Use for:
|
|
27
|
+
|
|
28
|
+
- Tiny docs/copy/config edits.
|
|
29
|
+
- Local explanation based on source reading.
|
|
30
|
+
- First pass on a small bug.
|
|
6
31
|
|
|
7
32
|
Expected:
|
|
8
33
|
|
|
9
|
-
- Re-read the changed
|
|
34
|
+
- Re-read the changed snippet.
|
|
10
35
|
- Check local project fit.
|
|
11
|
-
- Report that no command
|
|
36
|
+
- Report that no command ran if none did.
|
|
12
37
|
|
|
13
|
-
|
|
38
|
+
Truth cap:
|
|
14
39
|
|
|
15
|
-
|
|
40
|
+
- Usually `partial` or `assumed`, not `verified`.
|
|
41
|
+
|
|
42
|
+
## L2: Local Check
|
|
43
|
+
|
|
44
|
+
One focused local check supports the claim.
|
|
45
|
+
|
|
46
|
+
Use for:
|
|
47
|
+
|
|
48
|
+
- Small TS/JS/app logic changes.
|
|
49
|
+
- Narrow bug fixes.
|
|
50
|
+
- Focused build/type/lint/test failures.
|
|
16
51
|
|
|
17
52
|
Examples:
|
|
18
53
|
|
|
19
|
-
- One focused test.
|
|
20
54
|
- Typecheck.
|
|
21
55
|
- Lint for touched area.
|
|
56
|
+
- One focused test.
|
|
57
|
+
- Small CLI smoke for the touched command.
|
|
58
|
+
|
|
59
|
+
Truth cap:
|
|
60
|
+
|
|
61
|
+
- `verified` only for the checked surface.
|
|
62
|
+
|
|
63
|
+
## L3: Integrated
|
|
22
64
|
|
|
23
|
-
|
|
65
|
+
The change was checked through a broader local workflow or user-facing path.
|
|
24
66
|
|
|
25
|
-
|
|
67
|
+
Use for:
|
|
68
|
+
|
|
69
|
+
- Feature-sized work.
|
|
70
|
+
- Package-facing CLI changes.
|
|
71
|
+
- UI changes with visible behavior.
|
|
72
|
+
- Changes that affect multiple files or flows.
|
|
26
73
|
|
|
27
74
|
Examples:
|
|
28
75
|
|
|
29
|
-
-
|
|
30
|
-
-
|
|
76
|
+
- Build.
|
|
77
|
+
- CLI smoke.
|
|
78
|
+
- Relevant workflow command.
|
|
79
|
+
- Browser check or screenshot.
|
|
80
|
+
- UI state/responsive check.
|
|
31
81
|
|
|
32
|
-
|
|
82
|
+
Truth cap:
|
|
33
83
|
|
|
34
|
-
|
|
84
|
+
- `verified` for the exercised workflow.
|
|
85
|
+
- `partial` when important states, devices, or integrations remain untested.
|
|
35
86
|
|
|
36
|
-
|
|
87
|
+
## L4: Release / Runtime / Visual Proof
|
|
37
88
|
|
|
38
|
-
|
|
39
|
-
- Mobile viewport check.
|
|
40
|
-
- Check overflow, alignment, contrast, density, and core states.
|
|
89
|
+
Proof artifact or runtime/visual/release evidence supports the claim.
|
|
41
90
|
|
|
42
|
-
|
|
91
|
+
Use for:
|
|
43
92
|
|
|
44
|
-
|
|
93
|
+
- Public release readiness.
|
|
94
|
+
- Runtime process claims.
|
|
95
|
+
- Cleanup claims.
|
|
96
|
+
- Browser or screenshot visual verification.
|
|
97
|
+
- Auth/payment/DB/deployment/security-sensitive changes.
|
|
45
98
|
|
|
46
99
|
Examples:
|
|
47
100
|
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
101
|
+
- `yam release report --json`.
|
|
102
|
+
- Runtime evidence with process, port, URL, or cleanup observation.
|
|
103
|
+
- Ueye visual report with screenshot/provenance.
|
|
104
|
+
- DB/security readiness report.
|
|
105
|
+
- Readiness receipt or proof bundle.
|
|
106
|
+
|
|
107
|
+
Truth cap:
|
|
108
|
+
|
|
109
|
+
- `proven` only when runtime/process evidence exists.
|
|
110
|
+
- `verified` only when the relevant check actually passed.
|
|
111
|
+
- `blocked` when auth/tool/runtime evidence is required but unavailable.
|
|
112
|
+
|
|
113
|
+
## L5: Bounded Deep
|
|
114
|
+
|
|
115
|
+
Multiple relevant checks are combined, with a stop condition, skipped checks, residual risk, and handoff.
|
|
116
|
+
|
|
117
|
+
Use for:
|
|
118
|
+
|
|
119
|
+
- Broad refactors.
|
|
120
|
+
- Release candidates.
|
|
121
|
+
- Risky auth/payment/DB/runtime/deployment work.
|
|
122
|
+
- User-requested deep verification.
|
|
123
|
+
- Work with high learning value or high false-completion cost.
|
|
124
|
+
|
|
125
|
+
Expected:
|
|
126
|
+
|
|
127
|
+
- Define acceptance criteria.
|
|
128
|
+
- Run the relevant set of checks, not every possible check.
|
|
129
|
+
- Record proof summary or proof bundle lite.
|
|
130
|
+
- List skipped checks and why.
|
|
131
|
+
- List residual risks and remaining tasks.
|
|
132
|
+
|
|
133
|
+
Stop condition:
|
|
134
|
+
|
|
135
|
+
- Stop after the smallest meaningful verification set has passed, or after three relevant checks have run and any remaining uncertainty is clearly listed as blocked/remaining work.
|
|
136
|
+
- Stop earlier when the same blocker repeats, a required tool/auth/runtime is unavailable, or a user decision is needed.
|
|
137
|
+
- Do not keep retrying the same failure. Classify `failure_cause`, give `recovery_hint`, and hand off.
|
|
138
|
+
|
|
139
|
+
## Route Defaults
|
|
140
|
+
|
|
141
|
+
- `$question`: L0-L1.
|
|
142
|
+
- `$scout`: L0-L1 for judgment; source-backed but not implementation verification.
|
|
143
|
+
- `$quick`: L1-L2 by default; L3 only when the claim needs it.
|
|
144
|
+
- `$ueye`: L1-L3 for ordinary UI work; L4 when claiming visual done.
|
|
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.
|
|
147
|
+
|
|
148
|
+
## Completion Claim Rule
|
|
149
|
+
|
|
150
|
+
Completion claims require evidence at or above the level implied by the claim:
|
|
151
|
+
|
|
152
|
+
- Code changed: at least L1, preferably L2.
|
|
153
|
+
- User-facing behavior changed: L2-L3.
|
|
154
|
+
- UI done claim: L3-L4 with visual evidence when feasible.
|
|
155
|
+
- Runtime/cleanup claim: L4.
|
|
156
|
+
- Release/auth/DB/security claim: L4-L5.
|
|
53
157
|
|
|
158
|
+
If the evidence level is lower than the claim, lower the truth status and report the gap.
|
package/skills/deep/SKILL.md
CHANGED
|
@@ -43,7 +43,7 @@ Use for:
|
|
|
43
43
|
|
|
44
44
|
## Verification
|
|
45
45
|
|
|
46
|
-
Use
|
|
46
|
+
Use L3-L5 from `references/verification-levels.md`; pick the smallest bounded set that honestly supports the claim.
|
|
47
47
|
Use `references/token-economy.md`; wider context is allowed only when tied to the risk surface.
|
|
48
48
|
Use `references/context-reuse.md`; update stale project packs narrowly when needed.
|
|
49
49
|
Use `references/markdown-management.md` before writing broad proof or direction markdown.
|
|
@@ -52,6 +52,7 @@ Use `references/db-supabase-safety-lite.md` for destructive DB/Supabase, migrati
|
|
|
52
52
|
Use `references/current-docs.md` when SDK/API/cloud-service behavior may be current or version-sensitive.
|
|
53
53
|
Use `references/trust-kernel.md` when the task asks how yam prevents false completion or fake real proof claims.
|
|
54
54
|
Use `references/honest-completion.md`; do not overclaim verification, runtime, cleanup, or visual proof.
|
|
55
|
+
Use `references/study-note.md` when any code, config, docs, release metadata, or project artifact changed.
|
|
55
56
|
Use `references/final-report.md` to close with remaining tasks and fix-first items when useful.
|
|
56
57
|
Use `references/token-budget-reporter.md` when a run needs measured budget feedback.
|
|
57
58
|
|
|
@@ -65,12 +66,18 @@ Deep verification may include:
|
|
|
65
66
|
- Before/after screenshot.
|
|
66
67
|
- Risk-specific manual inspection.
|
|
67
68
|
|
|
69
|
+
Stop condition:
|
|
70
|
+
|
|
71
|
+
- Stop after the smallest meaningful verification set has passed, or after three relevant checks have run and the remaining uncertainty is clearly listed as blocked/remaining work.
|
|
72
|
+
- Stop earlier when the same blocker repeats, a required tool/auth/runtime is unavailable, or a user decision is needed.
|
|
73
|
+
- Do not keep retrying the same failure; classify the cause, give a recovery hint, and hand off.
|
|
74
|
+
|
|
68
75
|
## Final Response
|
|
69
76
|
|
|
70
77
|
Include:
|
|
71
78
|
|
|
72
79
|
- What was changed or reviewed.
|
|
73
|
-
- Study Note for
|
|
80
|
+
- Study Note for changed artifacts: what changed, what role it has, what was wrong or missing, what behavior is expected, one useful syntax/structure insight, what was verified, and what remains uncertain.
|
|
74
81
|
- Evidence gathered.
|
|
75
82
|
- Truth status.
|
|
76
83
|
- Blockers or remaining risk.
|
package/skills/mission/SKILL.md
CHANGED
|
@@ -58,6 +58,12 @@ Do not use for:
|
|
|
58
58
|
12. Confirm cleanup or explicitly report intentionally running processes.
|
|
59
59
|
13. Produce final proof summary, truth status, remaining tasks, and fix-first items.
|
|
60
60
|
|
|
61
|
+
Mission stop condition:
|
|
62
|
+
|
|
63
|
+
- Stop after cross-verification and the smallest meaningful L4-L5 proof set have passed, or after three relevant checks have run and remaining uncertainty is recorded as blocked/remaining work.
|
|
64
|
+
- Stop earlier when the same blocker repeats, a required tool/auth/runtime is unavailable, or a user decision is needed.
|
|
65
|
+
- Do not keep retrying the same failure; classify the cause, give a recovery hint, and hand off.
|
|
66
|
+
|
|
61
67
|
## Proof Summary
|
|
62
68
|
|
|
63
69
|
Include:
|
|
@@ -79,7 +85,9 @@ Use `references/runtime-orchestration.md` only when runtime evidence is needed.
|
|
|
79
85
|
Use `references/doctor-scan.md` before final mission completion.
|
|
80
86
|
Use `references/db-supabase-safety-lite.md` for destructive DB/Supabase, migration, production-write, or RLS/policy lanes.
|
|
81
87
|
Use `references/current-docs.md` when any lane depends on current SDK/API/cloud-service behavior.
|
|
88
|
+
Use `references/verification-levels.md` for L4-L5 mission proof boundaries.
|
|
82
89
|
Use `references/honest-completion.md`; do not overclaim.
|
|
90
|
+
Use `references/study-note.md` for every lane that changes code, config, docs, release metadata, or project artifacts.
|
|
83
91
|
Use `references/final-report.md` to close with remaining tasks and fix-first items.
|
|
84
92
|
Use `references/token-budget-reporter.md` when budget drift matters.
|
|
85
93
|
|
|
@@ -102,7 +110,7 @@ Report:
|
|
|
102
110
|
|
|
103
111
|
- What the mission changed.
|
|
104
112
|
- Role/cross-verification summary.
|
|
105
|
-
- Study Note for
|
|
113
|
+
- Study Note for any lane that changed code, config, docs, release metadata, or project artifacts: what changed, what role it has, what was wrong or missing, what behavior is expected, one useful syntax/structure insight, what was verified, and what remains uncertain.
|
|
106
114
|
- Evidence gathered.
|
|
107
115
|
- Truth status.
|
|
108
116
|
- Cleanup status.
|
package/skills/quick/SKILL.md
CHANGED
|
@@ -58,16 +58,19 @@ Scan lane:
|
|
|
58
58
|
|
|
59
59
|
## Verification
|
|
60
60
|
|
|
61
|
-
- Copy/CSS/docs:
|
|
61
|
+
- Copy/CSS/docs: L1 is often enough after re-reading the changed snippet.
|
|
62
62
|
- TS/JS or app logic: prefer typecheck, related test, lint, or build in that order when available.
|
|
63
63
|
- Build-fix: use a compact PASS/FAIL matrix for command results.
|
|
64
64
|
- If verification is skipped, partial, blocked, or assumed, say that plainly.
|
|
65
|
+
- Escalate beyond L2 only when the changed behavior, user-facing impact, or risk surface needs it.
|
|
65
66
|
|
|
66
67
|
Use `references/quick.md` for the merged fast/build rules.
|
|
68
|
+
Use `references/verification-levels.md` for the L0-L5 ladder.
|
|
67
69
|
Use `references/truth-matrix.md` for truth labels.
|
|
68
70
|
Use `references/db-supabase-safety-lite.md` when a command or prompt contains DB/Supabase mutation signals.
|
|
69
71
|
Use `references/token-economy.md` to keep context small.
|
|
70
72
|
Use `references/context-reuse.md` before broad project reading.
|
|
73
|
+
Use `references/study-note.md` when any code, config, docs, or project artifact changed.
|
|
71
74
|
Use `references/final-report.md` to close with remaining tasks and fix-first items when useful.
|
|
72
75
|
Use `references/token-budget-reporter.md` when a run needs measured budget feedback.
|
|
73
76
|
|
|
@@ -76,7 +79,7 @@ Use `references/token-budget-reporter.md` when a run needs measured budget feedb
|
|
|
76
79
|
Keep it compact:
|
|
77
80
|
|
|
78
81
|
- What changed or what the scan found.
|
|
79
|
-
- Study Note when
|
|
82
|
+
- Study Note when code, config, docs, or project artifacts changed: what changed, what role it has, what was wrong or missing, what behavior is expected, one useful syntax/structure insight, what was verified, and what remains uncertain.
|
|
80
83
|
- What was checked.
|
|
81
84
|
- What was skipped, blocked, or still risky.
|
|
82
85
|
- Handoff when useful: fix-first items, 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.
|
package/skills/ueye/SKILL.md
CHANGED
|
@@ -43,6 +43,7 @@ Do not use for:
|
|
|
43
43
|
- Prefer the in-app browser for interactive visual checks. Do not switch to a profile-dependent browser unless the user explicitly asks or the task requires existing cookies, sessions, extensions, or profile state.
|
|
44
44
|
- Ueye owns the design completion gate. Do not rely on a separate code-risk route to catch sloppy visual completion.
|
|
45
45
|
- Draft or needs-polish work may stay fast; a `done` claim requires recorded design gate evidence.
|
|
46
|
+
- Use the Verification Ladder: ordinary UI implementation can stay L1-L3, but a visual `done` claim needs L3-L4 evidence when feasible.
|
|
46
47
|
- Do not claim a Ueye result is done when implementation evidence, design quality, P0/P1 status, state coverage, mobile/responsive behavior, contrast/accessibility visuals, CTA affordance, or reference-read/comparison evidence is missing where relevant.
|
|
47
48
|
|
|
48
49
|
## Workflow
|
|
@@ -145,6 +146,8 @@ Use these artifacts for reference-led implementation or serious visual review. K
|
|
|
145
146
|
## Design Checks
|
|
146
147
|
|
|
147
148
|
Use `references/ueye.md` and `references/ui-quality.md`.
|
|
149
|
+
Use `references/verification-levels.md` for visual proof levels and done-claim truth caps.
|
|
150
|
+
Use `references/study-note.md` when UI code, design docs, config, or project artifacts changed.
|
|
148
151
|
Always consider:
|
|
149
152
|
|
|
150
153
|
- Direction fit.
|
|
@@ -170,6 +173,6 @@ Report:
|
|
|
170
173
|
- Review continuity/comparison result when this continues a prior Ueye run.
|
|
171
174
|
- P0-P3 issues or confirmation that no blockers were found.
|
|
172
175
|
- States/viewports checked.
|
|
173
|
-
- Study Note when UI
|
|
176
|
+
- Study Note when UI code, design docs, config, or project artifacts changed: what changed, what role it has, what was wrong or missing, what behavior is expected, one useful syntax/structure insight, what was verified, and what remains uncertain.
|
|
174
177
|
- Truth status and visual verification cap.
|
|
175
178
|
- 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.
|
package/src/bin/yam.ts
CHANGED
|
@@ -346,6 +346,7 @@ async function verify({ quiet = false } = {}) {
|
|
|
346
346
|
'token-economy.md',
|
|
347
347
|
'context-reuse.md',
|
|
348
348
|
'markdown-management.md',
|
|
349
|
+
'study-note.md',
|
|
349
350
|
'final-report.md',
|
|
350
351
|
'token-budget-reporter.md',
|
|
351
352
|
'memory.md'
|
|
@@ -3776,7 +3777,7 @@ function printDetection(result) {
|
|
|
3776
3777
|
}
|
|
3777
3778
|
console.log('');
|
|
3778
3779
|
console.log('Smallest useful checks:');
|
|
3779
|
-
console.log(`- $quick: ${result.commands.typecheck || result.commands.lint || result.commands.test || result.commands.build || '
|
|
3780
|
+
console.log(`- $quick: ${result.commands.typecheck || result.commands.lint || result.commands.test || result.commands.build || 'L1 inspected; no command detected'}`);
|
|
3780
3781
|
console.log(`- $ueye: ${result.commands.typecheck || result.commands.build || 'Browser/screenshot check; no command detected'}`);
|
|
3781
3782
|
console.log(`- $deep: ${[result.commands.typecheck, result.commands.lint, result.commands.test, result.commands.build].filter(Boolean).join(' && ') || `No command detected; define in ${PROJECT_PACK}`}`);
|
|
3782
3783
|
if (result.frameworkChecklist?.detected) {
|
package/templates/yam.project.md
CHANGED
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
- UI changes:
|
|
45
45
|
- Feature changes:
|
|
46
46
|
- Risky changes:
|
|
47
|
+
- Verification ladder: L0 stated, L1 inspected, L2 local check, L3 integrated, L4 release/runtime/visual proof, L5 bounded deep.
|
|
48
|
+
- Stop condition for heavy verification:
|
|
47
49
|
- Public/release changes: scan for external tool names, comparison wording, and attribution wording; remove those hits unless the user explicitly approves keeping them.
|
|
48
50
|
|
|
49
51
|
## Security Policy
|
|
@@ -56,7 +58,8 @@
|
|
|
56
58
|
|
|
57
59
|
## Report Policy
|
|
58
60
|
|
|
59
|
-
-
|
|
61
|
+
- Study Note requirement for changed code/config/release metadata/docs/artifacts:
|
|
62
|
+
- Explain touched code or artifact role, changed behavior, one syntax/structure insight, verification, and uncertainty:
|
|
60
63
|
- Always include remaining tasks or useful improvements:
|
|
61
64
|
- Preserve source boundaries for research/proof notes:
|
|
62
65
|
|
package/yam.manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yam",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"principles": [
|
|
5
5
|
"Direction before execution.",
|
|
6
6
|
"Start fast.",
|
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
"Token-aware by default.",
|
|
12
12
|
"Context-reuse first.",
|
|
13
13
|
"End with remaining tasks and fix-first items.",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
14
|
+
"When code, config, release metadata, documentation, or project artifacts changed, include a Study Note even if no yam skill was explicitly invoked.",
|
|
15
|
+
"Explain what changed, what role it has, what was wrong or missing when relevant, what behavior is expected, and one useful syntax or structure insight in short non-specialist language.",
|
|
16
|
+
"Use handoff notes for fix-first items, remaining tasks, recommended next direction, requirement coverage, blocker kind, failure cause, recovery hint, safe retry, evidence level, and owner scope when useful.",
|
|
17
|
+
"Use bounded heavy verification for serious claims, with explicit stop conditions instead of endless proof loops."
|
|
16
18
|
],
|
|
17
19
|
"defaultHooks": false,
|
|
18
20
|
"routes": [
|