@iasiv5/dsh-skills 1.3.6 → 1.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/package.json +1 -1
  2. package/skills/answer-me-with-html/SKILL.md +11 -7
  3. package/skills/answer-me-with-html/references/codebase.md +38 -0
  4. package/skills/answer-me-with-html/scripts/am.mjs +2529 -1766
  5. package/skills/darwin-skill/SKILL.md +6 -2
  6. package/skills/darwin-skill/references/about-author.md +1 -0
  7. package/skills/darwin-skill/scripts/darwin.py +23 -8
  8. package/skills/domain-modeling/GLOSSARY-FORMAT.md +3 -2
  9. package/skills/impeccable/SKILL.md +5 -5
  10. package/skills/impeccable/reference/audit.md +8 -1
  11. package/skills/impeccable/reference/audit.native.md +8 -1
  12. package/skills/impeccable/reference/craft-floor.md +3 -3
  13. package/skills/impeccable/reference/critique.md +10 -8
  14. package/skills/impeccable/reference/degraded/finish-reviewer.md +2 -2
  15. package/skills/impeccable/reference/doctor.md +5 -1
  16. package/skills/impeccable/reference/generate.md +1 -1
  17. package/skills/impeccable/reference/live.md +5 -3
  18. package/skills/impeccable/reference/new-work-comp.md +1 -1
  19. package/skills/impeccable/reference/new-work-world.md +1 -1
  20. package/skills/impeccable/reference/new-work.md +8 -9
  21. package/skills/impeccable/reference/polish.md +1 -1
  22. package/skills/impeccable/scripts/VERSION +1 -1
  23. package/skills/impeccable/scripts/engine-checksums.txt +5 -5
  24. package/skills/impeccable/scripts/impeccable +28 -5
  25. package/skills/impeccable/scripts/impeccable.cmd +11 -2
  26. package/skills/impeccable/scripts/live-browser.js +62 -38
  27. package/skills/writing-plans/SKILL.md +1 -0
  28. package/skills/writing-plans/references/plan-self-review.md +4 -0
@@ -87,15 +87,12 @@ Build the assigned direction, not a safer interpretation of it. The form supplie
87
87
 
88
88
  On a comp-led build, read [new-work-comp.md](new-work-comp.md) before writing the spec or any code, and follow it: the measured contract, the spec, and the build-phase gates live there.
89
89
 
90
- ### Code-led
91
-
92
- No comp and no apology for it: the ambition lives in the direction contract's FIRST VIEWPORT block and the named signature interaction, and the finish reviewer audits those promises in behavior. The chosen decision comp rides to the finish review as the critique reference.
93
-
94
90
  ### Both paths
95
91
 
96
92
  - **The first viewport is a thesis, not a header.** Demonstrate the mechanism immediately, at the scale the form has in life; do not trap the concept inside a standard hero or card shell. The memory test: if someone left after one viewport, what would they describe an hour later? If the honest answer is a mood, the concept has not committed yet.
97
93
  - **Prove, don't claim.** Show the subject doing its job: the interface at work, the mechanism dramatized, specifics a competitor could not copy-paste. Demonstration data is design material: author it at full fidelity and label it synthetic; claims stay uninventable.
98
94
  - **Author the assets; never substitute chrome.** Great surfaces live on carefully made content: names, entries, copy, covers, thumbnails, textures. In greenfield work every blank the ask round left open is yours to author at production fidelity; content is authorable, claims are labelable, no section is omittable. Gradients, glass, generic icon tiles, and many-vertex `clip-path` polygons where an authored asset belongs are the gap wearing chrome; the detector flags the last two.
95
+ - **Draw a print material in its own technique.** On a code-led build, a world whose illustration is engraved, etched, or pen-and-ink is drawn as line: strokes carry the form, hatching (SVG patterns clipped to each shape) carries the tone, and colour sits inside the lines as a translucent wash. Flat fills under a thin outline read as clip-art, which the finish reviewer sends back for a rebuild. Use the world's own assets or one drawn subject per plate; never write a drawing engine.
99
96
  - **Build the form's web leverage.** When the chosen world names a technique (canvas, WebGL, view transitions, generative motion), build the technique itself, not a static imitation of it.
100
97
  - **Pace the scroll like a studio.** Vary density, scale, image, motion, and quiet inside one grammar; a dense passage earns a quiet one, and the page ends anchored by a real close. One spacing rhythm throughout, with more space above a heading than below it.
101
98
  - **Use real, verified imagery when the brief implies it.** Search for the subject's physical object rather than the category; one decisive photo beats five mediocre ones. Verify stock URLs resolve.
@@ -105,20 +102,22 @@ Preserve semantics, accessibility, performance, responsiveness, project conventi
105
102
 
106
103
  ## 7. Inspect and finish
107
104
 
108
- Inspect the surface's target sizes in one batched screenshot round: desktop and mobile on the web; on a native platform (`ios` / `android` / `adaptive`), the shipped device classes per OS, captured from the simulator or emulator the way the platform reference's Verifying the build section describes. When the harness reports the user's actual viewport (an in-app browser's size, a named resolution), add that width to the set: the width that breaks is the one the user sees first. On anything interactive, the round drives every interaction and reachable state (open, closed, hover, focus, error, empty, overlong content) and checks each for overlap and clipping, not only the resting screen. Critique the render against the user's request and the direction contract, fix material gaps, and confirm with one final round; two rounds is the ceiling, and fixes batch between them rather than earning per-tweak screenshots. The ceiling bounds inspection and never closes an open build-phase gate: a gate stays open until it passes or the route it names is taken. On a comp-led build, run `.dsh/skills/impeccable/scripts/impeccable comp-diff --comp <approved comp> --build .impeccable/review/desktop.png --spec .impeccable/build/spec.json --out-dir .impeccable/review/diff/final` and read its region rows and paired crops as the critique: the side-by-side is the view the build thread never has on its own, and a region it scores missing or contradicted is a fix whatever the page looks like from memory. Never judge fidelity from one full-page thumbnail; it hides exactly the failures that matter. On a Persuade surface, verify the mode did its job: a first-time visitor should know what this is, why it matters, and what to do within seconds, in the form's own vocabulary.
105
+ Inspect the surface's target sizes in one capture pass per breakpoint. On the web, `.dsh/skills/impeccable/scripts/impeccable first-viewport <page> --thesis <FIRST VIEWPORT's selector> --action <primary action's selector> --capture .impeccable/review` is that pass: it writes `desktop.png` and `mobile.png` and checks the fold, gaps, sample labels (`--figures-supplied` for figures the user gave) and a dead action; build no screenshot harness of your own. On a native platform (`ios` / `android` / `adaptive`), the shipped device classes per OS, captured from the simulator or emulator the way the platform reference's Verifying the build section describes. When the harness reports the user's actual viewport (an in-app browser's size, a named resolution), add that width to the set: the width that breaks is the one the user sees first. On anything interactive, one more pass drives every interaction and reachable state (open, closed, hover, focus, error, empty, overlong content) and checks each for overlap and clipping, not only the resting screen. Critique the render against the user's request, then walk the direction contract over the captures, as the finish reviewer will: first-viewport passes; every action STORY promises has a working element; every subject drawn in code reads at a glance, at its shipped size, as what it depicts. Fix material gaps in one batch, then confirm once: rerun first-viewport on the web, recapture once on native; no per-tweak captures. No inspection limit closes an open build-phase gate: it stays open until it passes or the route it names is taken. On a comp-led build, run `.dsh/skills/impeccable/scripts/impeccable comp-diff --comp <approved comp> --build .impeccable/review/desktop.png --spec .impeccable/build/spec.json --out-dir .impeccable/review/diff/final` and read its region rows and paired crops as the critique: a region it scores missing or contradicted is a fix whatever the page looks like from memory. Never judge fidelity from one full-page thumbnail; it hides exactly the failures that matter. On a Persuade surface, verify the mode did its job: a first-time visitor should know what this is, why it matters, and what to do within seconds, in the form's own vocabulary.
109
106
 
110
107
  A capture is evidence only when it is valid, and you validate before you send. Settle or disable entrance motion first: an element hidden by animation timing reads as a missing element and gets fixed into a regression. Capture full-page shots from the document top. Capture the comp comparison at the comp's own pixel dimensions. Then open every file once and confirm it shows what its name claims: no black or blank regions, no wrong section behind a right filename, no half-loaded state. A malformed capture sent onward costs the whole round; the reviewer answers it with `disposition: recapture` and nothing it reviewed binds.
111
108
 
112
- After the second inspection round the build thread's polishing is over: no further defect hunts, micro-edit scripts, or rebuilds here (an open build-phase gate is not a defect hunt; it closes as above); whatever remains ships through the handoffs, where a fresh context does the finding better and cheaper. On the web, where this harness runs no design hook, run `.dsh/skills/impeccable/scripts/impeccable detect --json` on the changed targets once here, fix what is mechanical, and pass the remaining findings to the reviewer; a hookless web build that skips this ships every tell the hook exists to catch. A native platform skips the detector entirely: it reads HTML and CSS and has no verdict on native code, so the reviewer's floor check is the only slop gate and the input packet says so. Capture the screenshots into `.impeccable/review/`, one file per captured viewport (on the web, `desktop.png` and `mobile.png`, plus `user-<width>.png` whenever the user's viewport joined the inspected set; on native, one per device class, such as `phone.png` and `tablet.png`, suffixed per OS on adaptive), creating that directory when the harness does not; the paths you pass the reviewer are its spec, every viewport you inspected is named required in the packet, and that directory is where it looks when a passed path is missing.
109
+ After that confirmation the build thread's polishing is over: no further defect hunts, micro-edit scripts, or rebuilds here (an open build-phase gate is not a defect hunt; it closes as above); whatever remains ships through the handoffs, where a fresh context does the finding better and cheaper. On the web, where this harness runs no design hook, run `.dsh/skills/impeccable/scripts/impeccable detect --json` on the changed targets once here, fix what is mechanical, and pass the remaining findings to the reviewer; a hookless web build that skips this ships every tell the hook exists to catch. A native platform skips the detector entirely: it reads HTML and CSS and has no verdict on native code, so the reviewer's floor check is the only slop gate and the input packet says so. Capture the screenshots into `.impeccable/review/`, one file per captured viewport (on the web, `desktop.png` and `mobile.png`, plus `user-<width>.png` whenever the user's viewport joined the inspected set; on native, one per device class, such as `phone.png` and `tablet.png`, suffixed per OS on adaptive), creating that directory when the harness does not; the paths you pass the reviewer are its spec, every viewport you inspected is named required in the packet, and that directory is where it looks when a passed path is missing.
113
110
 
114
- Then spawn the shipped finish reviewer, `impeccable-finish-reviewer` (`impeccable_finish_reviewer` in codex; `/impeccable-finish-reviewer` in Cursor; on GitHub Copilot say "Use the impeccable-finish-reviewer agent"), with the original request, confirmed answers, the artifact path, the screenshot paths, the direction contract, existing hook findings, the QUALITY BAR card and approved comp paths (a code-led build has no approved comp; the chosen decision comp rides in that slot as the critique reference, named as such), on a comp-led build the build state (`.impeccable/build/state.json`), the spec, and the diff directories (`.impeccable/review/diff/hero/` and `.impeccable/review/diff/final/`, whose side-by-side, heatmap, region pairs, and `report.json` are the fidelity evidence), the craft-floor reference path, and on a native platform the platform reference path(s), [ios.md](ios.md) / [android.md](android.md), both on adaptive, plus one line saying no detector ran, so the reviewer judges in the platform's conventions rather than the web's. The reviewer has no browser; screenshots you fail to pass are checks it cannot run. Never read the shipped agents' definition files before spawning; the harness loads them at spawn, and you owe only the input packet. Wait on any agent with one long timeout rather than a loop of short polls, and spend the wait on the next independent step. Verify the return carries the five contract sections (a recapture return carries one, its recapture list); on an empty or thrashed return, respawn once with the same inputs. This review never runs inside the build thread and never inherits it: spawn the reviewer fresh, with no forked conversation history (`fork_turns: 0` in codex); a reviewer that inherits your transcript inherits your framing, your optimism, and your abstractions, and everything it needs travels in the inputs above. Only a harness with no subagent capability at all substitutes a fresh in-thread pass after stepping fully out of the build context, run from [degraded/finish-reviewer.md](degraded/finish-reviewer.md), and a substituted or failed-and-replaced review is disclosed in one line at finish, never silently.
111
+ Then spawn the shipped finish reviewer, `impeccable-finish-reviewer` (`impeccable_finish_reviewer` in codex; `/impeccable-finish-reviewer` in Cursor; on GitHub Copilot say "Use the impeccable-finish-reviewer agent"), with the original request, confirmed answers, the artifact path, the screenshot paths, the direction contract, existing hook findings, the QUALITY BAR card and approved comp paths (a code-led build has no approved comp; the chosen decision comp rides in that slot as the critique reference, named as such), on a comp-led build the build state (`.impeccable/build/state.json`), the spec, and the diff directories (`.impeccable/review/diff/hero/` and `.impeccable/review/diff/final/`, whose side-by-side, heatmap, region pairs, and `report.json` are the fidelity evidence), the craft-floor reference path, one line saying whether the build was code-led and whether image generation existed, and on a native platform the platform reference path(s), [ios.md](ios.md) / [android.md](android.md), both on adaptive, plus one line saying no detector ran, so the reviewer judges in the platform's conventions rather than the web's. The reviewer has no browser; screenshots you fail to pass are checks it cannot run. Never read the shipped agents' definition files before spawning; the harness loads them at spawn, and you owe only the input packet. Wait on any agent with one long timeout rather than a loop of short polls, and spend the wait on the next independent step. Verify the return carries the five contract sections (a recapture return carries one, its recapture list); on an empty or thrashed return, respawn once with the same inputs. This review never runs inside the build thread and never inherits it: spawn the reviewer fresh, with no forked conversation history (`fork_turns: 0` in codex); a reviewer that inherits your transcript inherits your framing, your optimism, and your abstractions, and everything it needs travels in the inputs above. Only a harness with no subagent capability at all substitutes a fresh in-thread pass after stepping fully out of the build context, run from [degraded/finish-reviewer.md](degraded/finish-reviewer.md), and a substituted or failed-and-replaced review is disclosed in one line at finish, never silently.
115
112
 
116
- Act on the disposition word; there are exactly four. **recapture**: the evidence failed, not the build. Recapture what the return names under the capture-validity rules, then run a full review over the new evidence. A review conducted on invalid evidence binds nothing, and a verdict pass may never follow it. **rebuild**: fidelity failed wholesale, not in patches. Skip the fix batch and execute the rebuild immediately: re-derive the named regions, produce the named assets, and send the result back for a fresh full review, never a verdict pass; a rebuild replaces regions wholesale, so the whole matrix runs again over the recaptures. Tell the user what is happening rather than asking permission to fix a failure. Consult the user only on a second rebuild directive, both verdicts on the table, or when rebuilding would discard content the user approved. **ship**: nothing is owed; report the verdict at its scope and continue to the documenter. **fix**: apply the material fixes in one batch, rebuild once, and recapture the same viewports over the same files. On a comp-led build the batch keeps its gates passing: while a phase is open, rerun `.dsh/skills/impeccable/scripts/impeccable build-phase advance` after it. Once all are closed, the final `finish --disposition ship`, recorded only on the reviewer's ship verdict, rechecks the page and reopens responsive when it no longer holds. A recapture measures positions, loading, and overflow; it cannot measure whether a fix reached the quality the finding named, so send the recaptured screenshots back to the same reviewer for a verdict scoring every material fix resolved, partial, or unresolved (through the harness's agent continuation; without one, run the scoring fresh from [degraded/finish-reviewer.md](degraded/finish-reviewer.md)'s Verdict Pass). Fixes scored partial or unresolved get another batch, recapture, and verdict. Two rounds is the budget an unattended run ends at; an attended session's ceiling belongs to the user, so when the second verdict still lists open items, put the table in front of them and let them choose between shipping as it stands and funding another round. Whoever decides, stop the moment a round resolves nothing, and the reviewer's findings are the only list you work from, never your own re-opened hunt. Do not run a second detector.
113
+ Act on the disposition word; there are exactly four. **recapture**: the evidence failed, not the build. Recapture what the return names under the capture-validity rules, then run a full review over the new evidence. A review conducted on invalid evidence binds nothing, and a verdict pass may never follow it. **rebuild**: fidelity failed wholesale, not in patches. Skip the fix batch and execute the rebuild immediately: re-derive the named regions, produce the named assets, and send the result back for a fresh full review, never a verdict pass; a rebuild replaces regions wholesale, so the whole matrix runs again over the recaptures. Tell the user what is happening rather than asking permission to fix a failure. Consult the user only on a second rebuild directive, both verdicts on the table, or when rebuilding would discard content the user approved. **ship**: nothing is owed; report the verdict at its scope and continue to the documenter. **fix**: apply the material fixes in one batch, rebuild once, and recapture the same viewports over the same files. On a comp-led build the batch keeps its gates passing: while a phase is open, rerun `.dsh/skills/impeccable/scripts/impeccable build-phase advance` after it. Once all are closed, the final `finish --disposition ship`, recorded only on the reviewer's ship verdict, rechecks the page and reopens responsive when it no longer holds. A recapture measures positions, loading, and overflow; it cannot measure whether a fix reached the quality the finding named, so send the recaptured screenshots back to the same reviewer for a verdict scoring every material fix resolved, partial, or unresolved (through the harness's agent continuation; without one, run the scoring fresh from [degraded/finish-reviewer.md](degraded/finish-reviewer.md)'s Verdict Pass). An unattended run (headless, or no question tool, so nobody can fund another round) gets one correction round, a fix batch or a rebuild, and the review that follows it is final whatever its word, a second rebuild included: report what the verdict leaves open instead of starting a second round: a verdict scoring fixes partial ends the run as surely as a ship. In an attended session the ceiling belongs to the user: fixes scored partial or unresolved get another batch, recapture, and verdict, and when the second verdict still lists open items, put the table in front of them and let them choose between shipping as it stands and funding another round. Whoever decides, stop the moment a round resolves nothing, and the reviewer's findings are the only list you work from, never your own re-opened hunt. Do not run a second detector.
117
114
 
118
115
  A rebuild and a fix round share one asset rule: a raster either round creates or replaces is still asset work under [visualize.md](visualize.md)'s Produce section and keeps its **provenance** like every build raster, and a raster the round abandons is deleted in the same batch. Before either round's result goes back for review or verdict, run `.dsh/skills/impeccable/scripts/impeccable embed-prompt --scan <asset-dir...>` over the directories the artifact's rasters ship from and clear every file it reports by embedding what it is missing: the exact generation prompt for a produced raster, the origin for a sourced, stock, or pre-existing one. The scan only reads; deletion is reserved for rasters the round abandoned, never for a file the scan flagged.
119
116
 
120
117
  Report the final verdict under the reviewer's own disposition word and at its actual scope. A verdict pass scores the listed fixes and nothing else: "the reviewer scored all three fixes resolved" is a claim it supports, "no material issues remain" is not. A table with open material findings is never announced as a pass, never softened, and never dressed as whole-surface approval when only a fix list was scored. When the user answers a ship with evidence against it, their own screenshot, a named mismatch with the comp, that evidence outranks every capture you made: put their material in the packet and spawn a fresh reviewer for a new full review. Patching inline and self-certifying is how a rejected page ships twice.
121
118
 
122
- After the last correction, on a new or replacement world or an approved system change where a DESIGN.md already exists at the write boundary, collect the choice [document.md](document.md) requires: show the user the existing file. Ask with the ask_user_question tool and wait for the answer before continuing. Offer refresh, overwrite, or merge. A seeded world's first build asks nothing: a seed exists to be replaced by the system the build resolved, so the choice is refresh, keeping the frontmatter's `world:` line and the `seededFrom` key in the sidecar. Then spawn the shipped documenter, `impeccable-documenter` (`impeccable_documenter` in codex), with the project root, artifact path, direction contract, PRODUCT.md, [document.md](document.md), write boundary, and that choice; the documenter cannot ask and writes nothing over an existing DESIGN.md without it. Without subagents, load [degraded/documenter.md](degraded/documenter.md) and [document.md](document.md) before writing. Verify the outcome: new worlds, a seeded world's first build, and approved system changes require token-bearing DESIGN.md **and** `.impeccable/design.json`, not prose alone. Ordinary extensions compare the finished build against the incumbent system, preserve its files, and report the evidence checked; report pre-existing drift without repairing it unasked. Recheck after later edits. Finish only when review and documentation are complete.
119
+ After the last correction, on a new or replacement world or an approved system change where a DESIGN.md already exists at the write boundary, collect the choice [document.md](document.md) requires: show the user the existing file. Ask with the ask_user_question tool and wait for the answer before continuing. Offer refresh, overwrite, or merge. A seeded world's first build asks nothing: a seed exists to be replaced by the system the build resolved, so the choice is refresh, keeping the frontmatter's `world:` line and the `seededFrom` key in the sidecar. Then spawn the shipped documenter, `impeccable-documenter` (`impeccable_documenter` in codex); spawn it in the same message as the verdict or full-review request that follows the correction round rather than waiting for that return (if the request already went out alone, spawn it at once), and spawn it again after any later correction batch, once the earlier documenter has returned so its write never lands last, with the project root, artifact path, direction contract, PRODUCT.md, [document.md](document.md), write boundary, and that choice; the documenter cannot ask and writes nothing over an existing DESIGN.md without it. Without subagents, load [degraded/documenter.md](degraded/documenter.md) and [document.md](document.md) before writing. Verify the outcome: new worlds, a seeded world's first build, and approved system changes require token-bearing DESIGN.md **and** `.impeccable/design.json`, not prose alone. Ordinary extensions compare the finished build against the incumbent system, preserve its files, and report the evidence checked; report pre-existing drift without repairing it unasked. Recheck after later edits. Finish only when review and documentation are complete.
123
120
 
124
121
  On a comp-led build, record the final review disposition with `.dsh/skills/impeccable/scripts/impeccable build-phase finish --disposition <ship|fix|rebuild|recapture>` before the final response. A refused `ship` is an unfinished build; report the outstanding phase with the verdict. Any edit after the last captured gate, a fix for a hook finding after `ship` included, voids that capture: run `finish --disposition ship` again before you stop, which rechecks the current files against the gate and names any recapture it needs. Never record `fix` to end a run over an open gate: take the route the gate names, and when the user leaves it open, report that phase as open.
122
+
123
+ The final response opens with the result, not the process: when the build finished, one line saying the page is ready and exactly how to open it (the running dev server's URL, else the command that serves it, else the file path), then the verdict at its scope; when it did not, that line says what is left and still how to open what exists. Report only findings on files that ship; comps, mocks and snapshots under `.impeccable/` are working material and never carry findings.
@@ -19,7 +19,7 @@ Fix the cause at the narrowest correct level. Ask when a binding system principl
19
19
 
20
20
  ## 2. Gather the evidence
21
21
 
22
- Use the feature yourself at the surface's representative sizes: desktop and mobile on the web; on a native platform (`ios` / `android` / `adaptive`), the shipped device classes on the simulator, emulator, or hardware, captured per the platform reference's Verifying the build section. Determine:
22
+ Use the feature yourself at the surface's representative sizes: desktop and mobile on the web (`.dsh/skills/impeccable/scripts/impeccable shot <page or url>` captures both); on a native platform (`ios` / `android` / `adaptive`), the shipped device classes on the simulator, emulator, or hardware, captured per the platform reference's Verifying the build section. Determine:
23
23
 
24
24
  - whether the path is functionally complete;
25
25
  - the intended quality bar and time available;
@@ -1 +1 @@
1
- 0.1.25
1
+ 0.1.31
@@ -2,8 +2,8 @@
2
2
  # The launchers, the npm shim, `impeccable install` and scripts/fetch-engine.mjs verify
3
3
  # every engine download against this file. Written by
4
4
  # `node scripts/check-engine-release.mjs --record` after each engine release.
5
- 0.1.25 impeccable-darwin-arm64 a91bc3ef3aefc8099475841565e4108b9c62b0302b7e7b61a457d5212d7abc3c
6
- 0.1.25 impeccable-darwin-x64 e8ffbee520674f371dfab3cb936ab66c543bf23e5b9f09a4efa696b1780ce2bc
7
- 0.1.25 impeccable-linux-x64 f48aca43294a9ba1ea3eb7b1d0a0b2d595c480e8c65003e410247b9884820ddd
8
- 0.1.25 impeccable-linux-arm64 2b4713a029bb6c56f95a5477e269e174053b74ef2133bf5250403a49db68b917
9
- 0.1.25 impeccable-windows-x64.exe ef4ef9df8871eff2b219cede89ca7e7086eed9531aafdc9a8afbc74b0be5fbba
5
+ 0.1.31 impeccable-darwin-arm64 0d96cf802af6c52f3ed0925a409c7f4a1eda6a4c4b8274ff545b1d23e8dd6ae6
6
+ 0.1.31 impeccable-darwin-x64 af28d77242fc345f11ade5075c304beef2e938a3df70905a95f9864708ee0a2a
7
+ 0.1.31 impeccable-linux-x64 01c642862b0e505277bb8810b1a74aacc42b2b38eb24bc69bc0bcf324089be77
8
+ 0.1.31 impeccable-linux-arm64 fd488471ae6df728e260bb54c26d0f7fa9235765777f8ee2ff28e9d3dba0dc6b
9
+ 0.1.31 impeccable-windows-x64.exe f6606bbf6bd8993e2b0dab98261c27659a865e7dcbc775986d40e8808527ff47
@@ -81,9 +81,10 @@ hash_file() {
81
81
  }
82
82
 
83
83
  # This script's directory without dirname or a subshell: what dirname "$0"
84
- # gives, made absolute by a cd there and back.
84
+ # gives, made absolute by a cd there and back. A backslash separates too:
85
+ # Windows hook commands spell the launcher C:\...\scripts\impeccable (#1462).
85
86
  case $0 in
86
- */*) dir=${0%/*} ;;
87
+ */*|*\\*) dir=${0%[/\\]*} ;;
87
88
  *) dir=. ;;
88
89
  esac
89
90
  [ -n "$dir" ] || dir=/
@@ -190,11 +191,15 @@ setup_help() {
190
191
  fetch_url() {
191
192
  http_status=""
192
193
  download_host=""
194
+ fetch_error=""
193
195
  if command -v curl >/dev/null 2>&1; then
194
196
  fetch_result=0
195
- metadata=$(curl -fsSL --retry 2 -w '%{http_code} %{url_effective}' -o "$tmp" "$1" 2>/dev/null) || fetch_result=$?
197
+ metadata=$(curl -fsSL --retry 2 -w '%{http_code} %{url_effective} %{errormsg}' -o "$tmp" "$1" 2>/dev/null) || fetch_result=$?
196
198
  http_status=${metadata%% *}
197
199
  effective_url=${metadata#* }
200
+ curl_msg=${effective_url#* }
201
+ effective_url=${effective_url%% *}
202
+ fetch_error="curl exit $fetch_result${curl_msg:+: $curl_msg}"
198
203
  # Only the authority is needed, never the signed storage URL's query.
199
204
  download_host=${effective_url#*://}
200
205
  download_host=${download_host%%/*}
@@ -206,11 +211,28 @@ fetch_url() {
206
211
  download_host=$(printf '%s' "$download_host" | tr '[:upper:]' '[:lower:]')
207
212
  return "$fetch_result"
208
213
  elif command -v wget >/dev/null 2>&1; then
209
- wget -q -O "$tmp" "$1" 2>/dev/null
214
+ fetch_result=0
215
+ wget_out=$(wget -O "$tmp" "$1" 2>&1) || fetch_result=$?
216
+ newline='
217
+ '
218
+ fetch_error="wget exit $fetch_result: ${wget_out##*$newline}"
219
+ return "$fetch_result"
210
220
  else
211
221
  return 1
212
222
  fi
213
223
  }
224
+ # SIGKILL or a crash skips the traps below and strands the staging file, so
225
+ # each download first removes parts in any version's cache that are an hour
226
+ # idle and whose owner PID is gone (the age covers a curl outliving its
227
+ # launcher). A cache it cannot write is reported later, never here.
228
+ sweep_stale_parts() {
229
+ find "$cache_root/bin" -mindepth 2 -maxdepth 2 -type f -name '.impeccable.part.*' -mmin +60 2>/dev/null |
230
+ while IFS= read -r part; do
231
+ owner=${part##*.part.}
232
+ case "$owner" in ''|*[!0-9]*) continue ;; esac
233
+ kill -0 "$owner" 2>/dev/null || rm -f "$part" 2>/dev/null || :
234
+ done
235
+ }
214
236
  check_download() {
215
237
  download_file=${1:-$tmp}
216
238
  if [ ! -f "$download_file" ]; then
@@ -236,6 +258,7 @@ if [ -n "$version" ] && [ "$os" != unknown ] && [ "$arch" != unknown ]; then
236
258
  echo "impeccable: no checksum for engine $version ($asset) in $manifest; refusing the unverified download" >&2
237
259
  exit 127
238
260
  fi
261
+ sweep_stale_parts
239
262
  tmp="$cache_root/bin/$version/.impeccable.part.$$"
240
263
  # An interrupted download (Ctrl-C, a hook timeout) would otherwise leave the
241
264
  # PID-named staging file behind for good. The handlers must exit explicitly.
@@ -309,7 +332,7 @@ if [ -n "$version" ] && [ "$os" != unknown ] && [ "$arch" != unknown ]; then
309
332
  esac
310
333
  exit 127 ;;
311
334
  esac
312
- echo "impeccable: could not download engine $version from $url; check network access, the release URL, and curl or wget availability." >&2
335
+ echo "impeccable: could not download engine $version from $url${fetch_error:+ ($fetch_error)}; check network access, the release URL, and curl or wget availability." >&2
313
336
  setup_help
314
337
  exit 127
315
338
  fi
@@ -130,6 +130,9 @@ if exist "%IMPECCABLE_HOME%\bin\%version%\" goto cache_ready
130
130
  mkdir "%IMPECCABLE_HOME%\bin\%version%" >nul 2>nul
131
131
  if errorlevel 1 goto cache_directory_failed
132
132
  :cache_ready
133
+ rem Remove staging directories killed runs left in any version's cache, once
134
+ rem two days idle (forfiles /d counts days; a live curl's open file stays).
135
+ forfiles /p "%IMPECCABLE_HOME%\bin" /s /m .impeccable.part.* /d -2 /c "cmd /c if @isdir==TRUE rd /s /q @path" >nul 2>nul
133
136
  rem Stage the download in a directory only this run owns, as the sh launcher
134
137
  rem does with .impeccable.part.$$: concurrent first runs (parallel hooks, two
135
138
  rem agents) must never write, hash or move each other's files. mkdir fails
@@ -191,10 +194,12 @@ exit /b 127
191
194
  set "http_status="
192
195
  set "effective_url="
193
196
  set "download_host="
194
- curl.exe -fsSL --retry 2 -w "%%{http_code} %%{url_effective}" -o "%part%" "%url%" >"%staging%\http.txt" 2>nul
197
+ set "curl_error="
198
+ curl.exe -fsSL --retry 2 -w "%%{http_code} %%{url_effective} %%{errormsg}" -o "%part%" "%url%" >"%staging%\http.txt" 2>nul
195
199
  set "fetch_result=%errorlevel%"
196
200
  for /f "usebackq tokens=1" %%a in ("%staging%\http.txt") do set "http_status=%%a"
197
201
  for /f "usebackq tokens=2" %%a in ("%staging%\http.txt") do set "effective_url=%%a"
202
+ for /f "usebackq tokens=2,*" %%a in ("%staging%\http.txt") do set "curl_error=%%b"
198
203
  rem Token 2 is the authority after scheme://. Drop userinfo and the port.
199
204
  for /f "tokens=2 delims=/" %%h in ("%effective_url%") do set "download_host=%%h"
200
205
  for /f "tokens=1,* delims=@" %%h in ("%download_host%") do if not "%%i"=="" set "download_host=%%i"
@@ -340,7 +345,11 @@ exit /b 127
340
345
  echo impeccable: could not download engine %version%: GitHub's downloads are failing right now (HTTP %http_status% from %download_host%). This is an outage on GitHub's side, not a problem with your setup or the CLI, so updating won't help. Check https://www.githubstatus.com and run the same command again once GitHub has recovered. 1>&2
341
346
  exit /b 127
342
347
  :download_generic
343
- echo impeccable: could not download engine %version% from %url%; check network access and the release URL. 1>&2
348
+ rem Delayed expansion keeps cmd metacharacters in curl's message literal.
349
+ setlocal EnableDelayedExpansion
350
+ if defined curl_error set "curl_error=: !curl_error!"
351
+ echo impeccable: could not download engine %version% from !url! (curl exit %fetch_result%!curl_error!); check network access and the release URL. 1>&2
352
+ endlocal
344
353
 
345
354
  :setup_failed
346
355
  echo Engine %version% setup needs network access and write permission to "%IMPECCABLE_HOME%\bin\%version%". 1>&2
@@ -30,6 +30,14 @@
30
30
  window.__IMPECCABLE_LIVE_INIT__ = false; // reset so the real load can init
31
31
  return;
32
32
  }
33
+ // The user just exited this helper's session: a reload in the next minute,
34
+ // before the agent removes the script tag (a carbonize edit reloads the
35
+ // page), must not bring Live back.
36
+ const EXITED_KEY = 'impeccable-live-exited';
37
+ try {
38
+ const [t, at] = (sessionStorage.getItem(EXITED_KEY) || '').split(' ');
39
+ if (t === TOKEN && Date.now() - Number(at) < 60_000) return;
40
+ } catch { /* storage blocked */ }
33
41
 
34
42
  //
35
43
  // Design tokens
@@ -2709,7 +2717,7 @@
2709
2717
  return el('div', { display: 'none' });
2710
2718
  }
2711
2719
  const row = el('div', {
2712
- display: 'flex', alignItems: 'center', gap: '6px',
2720
+ display: 'flex', alignItems: 'center', gap: touchPrimary() ? '2px' : '6px',
2713
2721
  padding: '1px 2px',
2714
2722
  });
2715
2723
 
@@ -2824,6 +2832,7 @@
2824
2832
  cursor: 'pointer', transition: 'filter 0.12s ease, transform 0.1s ease',
2825
2833
  whiteSpace: 'nowrap',
2826
2834
  });
2835
+ touchTarget(accept);
2827
2836
  accept.textContent = '\u2713 Accept';
2828
2837
  accept.addEventListener('mouseenter', () => accept.style.filter = 'brightness(1.08)');
2829
2838
  accept.addEventListener('mouseleave', () => accept.style.filter = 'none');
@@ -2844,6 +2853,7 @@
2844
2853
  fontFamily: FONT, fontSize: '11px', color: BP.textDim,
2845
2854
  cursor: 'pointer', transition: 'color 0.12s ease, border-color 0.12s ease',
2846
2855
  });
2856
+ touchTarget(discard);
2847
2857
  discard.textContent = '\u2715';
2848
2858
  discard.title = 'Discard all variants';
2849
2859
  discard.addEventListener('mouseenter', () => { discard.style.color = BP.text; discard.style.borderColor = BP.text; });
@@ -2944,6 +2954,12 @@
2944
2954
  return container;
2945
2955
  }
2946
2956
 
2957
+ /** A finger needs 44px; a mouse keeps the compact bar. */
2958
+ function touchTarget(b) {
2959
+ if (touchPrimary()) Object.assign(b.style, { minWidth: '44px', minHeight: '44px' });
2960
+ return b;
2961
+ }
2962
+
2947
2963
  function navBtn(text) {
2948
2964
  const b = el('button', {
2949
2965
  width: '26px', height: '26px', borderRadius: '5px',
@@ -2956,7 +2972,7 @@
2956
2972
  b.textContent = text;
2957
2973
  b.addEventListener('mouseenter', () => { b.style.borderColor = BP.text; });
2958
2974
  b.addEventListener('mouseleave', () => { b.style.borderColor = BP.hairline; });
2959
- return b;
2975
+ return touchTarget(b);
2960
2976
  }
2961
2977
 
2962
2978
  function actionLabel() {
@@ -7843,7 +7859,7 @@
7843
7859
  saveInteractionPrefs();
7844
7860
  updateGlobalBarState();
7845
7861
  showToast('Click anything on the page to restyle it.', 8000);
7846
- } else if (!hasProjectContext && !liveBarHiddenByHelper) showToast(`No PRODUCT.md found. Variants will be brand-agnostic. Run ${IMPECCABLE_COMMAND} init to generate one.`, 7000);
7862
+ } else if (!hasProjectContext && !liveBarHiddenByHelper && takeContextNotice()) showToast(`No PRODUCT.md found. Variants will be brand-agnostic. Run ${IMPECCABLE_COMMAND} init to generate one.`, 7000);
7847
7863
  console.log('[impeccable] Live mode connected.');
7848
7864
  syncAgentPollingUi(!!msg.agentPolling);
7849
7865
  startAgentStatusPoll();
@@ -10574,6 +10590,20 @@ void main() {
10574
10590
  return { pickActive: false, insertActive: false, firstRun: true };
10575
10591
  }
10576
10592
 
10593
+ // The missing-PRODUCT.md notice shows once per browser: a reconnect, a
10594
+ // reload or the variants arriving would otherwise bring it back each time.
10595
+ const CONTEXT_NOTICE_KEY = 'impeccable-live-context-notice';
10596
+ let contextNoticeShown = false;
10597
+ function takeContextNotice() {
10598
+ if (contextNoticeShown) return false;
10599
+ contextNoticeShown = true;
10600
+ try {
10601
+ if (localStorage.getItem(CONTEXT_NOTICE_KEY)) return false;
10602
+ localStorage.setItem(CONTEXT_NOTICE_KEY, '1');
10603
+ } catch { /* ignore */ }
10604
+ return true;
10605
+ }
10606
+
10577
10607
  function saveInteractionPrefs() {
10578
10608
  try {
10579
10609
  localStorage.setItem(INTERACTION_PREFS_KEY, JSON.stringify({ pickActive, insertActive }));
@@ -10627,6 +10657,7 @@ void main() {
10627
10657
  let steerLocked = false;
10628
10658
  let steerRequestId = null;
10629
10659
  let steerPendingMessage = '';
10660
+ const steerTimedOutIds = new Set();
10630
10661
  let steerInputWasFocused = false;
10631
10662
  let pageChatDotsEl = null;
10632
10663
  let steerAwaitTimer = null;
@@ -10755,13 +10786,11 @@ void main() {
10755
10786
  });
10756
10787
  }
10757
10788
 
10758
- function syncGlobalBarExpandedLabels(expanded = globalBarEl?.matches(':hover')) {
10759
- const expandInactive = !!(expanded && !pageChatExpanded);
10760
- applyGlobalBarLabelState(expandInactive, pageChatExpanded);
10761
-
10762
- if (expandInactive && globalBarEl && globalBarEl.scrollWidth > window.innerWidth - 16) {
10763
- applyGlobalBarLabelState(false);
10764
- }
10789
+ // Only active modes show their label. Hover never widens the bar: it sits
10790
+ // centred, so growing labels slid the icons out from under the pointer and a
10791
+ // click meant for Pick landed on Insert. The title tooltip names the rest.
10792
+ function syncGlobalBarExpandedLabels() {
10793
+ applyGlobalBarLabelState(false, pageChatExpanded);
10765
10794
  }
10766
10795
 
10767
10796
  function pageChatCollapsedWidthPx() {
@@ -11167,7 +11196,7 @@ void main() {
11167
11196
  if (!pageChatEl || !pageChatInput) return false;
11168
11197
  pageChatExpanded = true;
11169
11198
  pageChatEl.dataset.expanded = 'true';
11170
- syncGlobalBarExpandedLabels(false);
11199
+ syncGlobalBarExpandedLabels();
11171
11200
  pageChatEl.style.width = pageChatExpandedWidth();
11172
11201
  pageChatEl.style.cursor = steerLocked ? 'default' : 'text';
11173
11202
  pageChatInput.placeholder = PAGE_CHAT_PLACEHOLDER_EXPANDED;
@@ -11216,10 +11245,9 @@ void main() {
11216
11245
  clearSteerAwaitTimer();
11217
11246
  steerAwaitTimer = setTimeout(() => {
11218
11247
  if (!steerLocked || steerRequestId !== id) return;
11219
- unlockSteerChat({
11220
- error: steerTimeoutMessage(),
11221
- restoreMessage: steerPendingMessage,
11222
- });
11248
+ // The steer stays queued on the server until steer_done, so refilling the input would invite a duplicate.
11249
+ steerTimedOutIds.add(id);
11250
+ unlockSteerChat({ error: steerTimeoutMessage() });
11223
11251
  }, STEER_AWAIT_TIMEOUT_MS);
11224
11252
  }
11225
11253
 
@@ -11231,10 +11259,10 @@ void main() {
11231
11259
  function steerTimeoutMessage() {
11232
11260
  const head = 'Steer timed out after 2 minutes. ';
11233
11261
  if (steerQueuedBehindGeneration()) {
11234
- return head + 'The agent is still busy with the current generation - your message was not lost, but it never got picked up. Send it again once the variants land.';
11262
+ return head + 'The agent is still busy with the current generation. Your message is queued and the agent picks it up once the variants land.';
11235
11263
  }
11236
11264
  if (!agentPollingConnected) {
11237
- return head + 'No agent is polling right now. Run impeccable live-poll, then send it again.';
11265
+ return head + 'No agent is polling right now. Your message is queued: run impeccable live-poll and the agent picks it up.';
11238
11266
  }
11239
11267
  return head + 'The agent picked it up but never replied with steer_done. Check the agent session for a stalled or failed steer.';
11240
11268
  }
@@ -11310,6 +11338,7 @@ void main() {
11310
11338
  }
11311
11339
  steerPendingMessage = keepExpanded ? restoreMessage : '';
11312
11340
  steerInputWasFocused = false;
11341
+ syncGlobalBarExpandedLabels();
11313
11342
  syncPageChatChrome();
11314
11343
  syncPageChatFocusRing();
11315
11344
  if (opts?.error) showToast(String(opts.error), 5000);
@@ -11568,6 +11597,10 @@ void main() {
11568
11597
  }
11569
11598
 
11570
11599
  function maybeCompleteSteer(msg) {
11600
+ if (msg.type === 'steer_done' && steerTimedOutIds.delete(msg.id)) {
11601
+ showToast(msg.message || 'Queued steer applied', 4000);
11602
+ return true;
11603
+ }
11571
11604
  if (!steerRequestId || msg.id !== steerRequestId) return false;
11572
11605
  if (msg.type === 'steer_done') {
11573
11606
  unlockSteerChat({ message: msg.message, file: msg.file });
@@ -11602,7 +11635,7 @@ void main() {
11602
11635
  pageChatEl.dataset.expanded = 'false';
11603
11636
  pageChatEl.style.width = PAGE_CHAT_COLLAPSED_W;
11604
11637
  pageChatEl.style.cursor = 'pointer';
11605
- syncGlobalBarExpandedLabels(globalBarEl?.matches(':hover'));
11638
+ syncGlobalBarExpandedLabels();
11606
11639
  if (blur) {
11607
11640
  pageChatInput.blur();
11608
11641
  pageChatInput.style.pointerEvents = 'none';
@@ -12048,7 +12081,7 @@ void main() {
12048
12081
  inner.id = PREFIX + '-global-bar-inner';
12049
12082
  globalBarEl.appendChild(inner);
12050
12083
 
12051
- // Button factory: icon-only at rest, label slides in on hover/active.
12084
+ // Button factory: icon-only at rest, label slides in while active.
12052
12085
  function makeIconBtn({ id, svg, label, ariaLabel, labelFont, onClick }) {
12053
12086
  const b = el('button', {
12054
12087
  position: 'relative',
@@ -12078,10 +12111,8 @@ void main() {
12078
12111
  if (!labelEl || (!force && b.dataset.active === 'true')) return;
12079
12112
  labelEl.style.maxWidth = '0'; labelEl.style.opacity = '0'; labelEl.style.marginLeft = '0'; labelEl.style.transform = 'translateX(-4px)';
12080
12113
  };
12081
- // Per-button hover only changes color (no layout). The label expand/
12082
- // collapse is driven by the bar-level mouseenter/mouseleave so moving
12083
- // the mouse between adjacent buttons doesn't trigger per-button width
12084
- // thrashing - the whole bar grows once and shrinks once.
12114
+ // Hover only changes color, never layout: the label shows while the
12115
+ // mode is active (see syncGlobalBarExpandedLabels).
12085
12116
  b.addEventListener('mouseenter', () => { if (b.dataset.active !== 'true') b.style.color = P.text; });
12086
12117
  b.addEventListener('mouseleave', () => { if (b.dataset.active !== 'true') b.style.color = P.textDim; });
12087
12118
  b.addEventListener('click', onClick);
@@ -12348,27 +12379,20 @@ void main() {
12348
12379
  color: P.textDim, fontFamily: FONT, fontSize: '0', lineHeight: '0',
12349
12380
  cursor: 'pointer', transition: 'color 0.12s ease, background 0.12s ease',
12350
12381
  });
12382
+ touchTarget(exitBtn);
12351
12383
  exitBtn.id = PREFIX + '-exit';
12352
12384
  exitBtn.innerHTML = '<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><line x1="3" y1="3" x2="11" y2="11"/><line x1="11" y1="3" x2="3" y2="11"/></svg>';
12353
12385
  exitBtn.title = 'Exit live mode';
12354
12386
  exitBtn.addEventListener('mouseenter', () => { exitBtn.style.color = 'oklch(58% 0.15 35)'; exitBtn.style.background = P.exitHover; });
12355
12387
  exitBtn.addEventListener('mouseleave', () => { exitBtn.style.color = P.textDim; exitBtn.style.background = 'transparent'; });
12356
- exitBtn.addEventListener('click', () => { sendEvent({ type: 'exit' }); teardown(); });
12388
+ // source: 'user' keeps a reconnect (the reload a carbonize edit triggers) from cancelling it.
12389
+ exitBtn.addEventListener('click', () => {
12390
+ try { sessionStorage.setItem(EXITED_KEY, TOKEN + ' ' + Date.now()); } catch { /* storage blocked */ }
12391
+ sendEvent({ type: 'exit', source: 'user' });
12392
+ teardown();
12393
+ });
12357
12394
  inner.appendChild(exitBtn);
12358
12395
 
12359
- // Bar-level hover: expand mode labels unless Steer is using the space.
12360
- // Buttons with dataset.active="true" ignore collapse (their label stays).
12361
- globalBarEl.addEventListener('mouseenter', () => {
12362
- syncGlobalBarExpandedLabels(true);
12363
- syncPageChatExpandedWidth();
12364
- schedulePendingDockPosition();
12365
- setTimeout(schedulePendingDockPosition, 260);
12366
- });
12367
- globalBarEl.addEventListener('mouseleave', () => {
12368
- syncGlobalBarExpandedLabels(false);
12369
- schedulePendingDockPosition();
12370
- setTimeout(schedulePendingDockPosition, 260);
12371
- });
12372
12396
  globalBarEl.addEventListener('pointerdown', () => {
12373
12397
  try { window.focus(); } catch { /* in-app preview may block */ }
12374
12398
  }, true);
@@ -12433,7 +12457,7 @@ void main() {
12433
12457
  // If the bar is currently under the cursor, keep all labels expanded -
12434
12458
  // otherwise clicking a toggle that deactivates (e.g. closing DESIGN.md)
12435
12459
  // would collapse its label while the user's mouse is still on the bar.
12436
- syncGlobalBarExpandedLabels(globalBarEl && globalBarEl.matches(':hover'));
12460
+ syncGlobalBarExpandedLabels();
12437
12461
 
12438
12462
  if (detectBadge) {
12439
12463
  detectBadge.style.display = (detectActive && detectCount > 0) ? 'inline' : 'none';
@@ -140,6 +140,7 @@ argument-hint: 提供已批准的设计文档、需求摘要、目标功能或
140
140
  - 命令与当前执行环境一致
141
141
  - 预期结果明确
142
142
  - 每个 Step 都写真实动作;不要只列动作标题,不写运行方式和通过信号
143
+ - 落进仓库的代码块自成完整单元:追加类的块以完整语句收尾(一整条 `test(...)`、一个完整方法);替换类的块紧挨着给出被替换的原文。块里依赖的夹具(固定时钟、注入、导入)写进块内——执行者只抄代码块就该跑通,说明文字只解释为什么
143
144
 
144
145
  如需固定骨架,先读取 [references/task-skeleton.md](references/task-skeleton.md)。
145
146
 
@@ -44,6 +44,8 @@
44
44
  - 命令是否具体
45
45
  - 预期结果是否具体
46
46
  - 任务粒度是否过大
47
+ - **仓库现状断言是否附核实证据**:涉及文件/行号/HEAD 锚/脚本与选项存在性/仓内惯例的声明,逐条附核实来源(命令输出或文件:行);无证据的现状断言按未核实处理,先跑命令再写计划(实录:三份连续计划的 BLOCKING 首条均为「现状断言与仓库现实不符」——HEAD 锚过时、构建产物惯例、已存在的引擎选项)
48
+ - **代码块只抄代码能否跑通**:逐块看「执行者不读说明、只抄这个块」会缺什么——块里引用的夹具(固定时钟、注入、导入)在块内吗;替换类的块,被替换的原文就在紧邻处吗、在写计划当时的仓库里恰好命中一次吗(执行后再核对会误红——原文已被换掉);追加类的块,收尾是完整语句吗(末行缺逗号、缺闭合括号即语法错)。说明文字与代码块不一致时,执行的是代码块(实录:一份计划四轮评审的 3 个阻断全属此类——期望值写了 `.000Z` 而测试块里没传固定时钟、词典片段不带逗号也没写插入位置、`const` 用在定义之前;三轮都是评审在副本里真跑才抓到,静态自检全过)
47
49
 
48
50
  如果某一步会让执行者卡住,就继续拆小。
49
51
 
@@ -61,4 +63,6 @@
61
63
  - 全局约束已经进入计划
62
64
  - 没有占位符
63
65
  - 路径、命名、接口契约和命令一致
66
+ - 仓库现状断言都有核实证据
67
+ - 每个落进仓库的代码块,只抄代码就能跑通
64
68
  - 每个任务都能执行并验证