gm-qwen 2.0.793 → 2.0.795

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.
@@ -1,6 +1,6 @@
1
- 882cf8f24ae1755f1e503dca8b6010f3f53bf9325c0e58e059b0d9834066a151 plugkit-win32-x64.exe
2
- d440cd5d3e24c08325c8b7cd45b68abe3f2fcd7195f7ee25e1eaa01c610e2971 plugkit-win32-arm64.exe
3
- b30b0f6ad8d516283402e8f06a2ae1dae70fb4381ed9e1993751fb1baa7dff6e plugkit-darwin-x64
4
- 2f451f3783af406ba060f06d2ae34653f68b3731f30a0a6e269cf5f8c37372d5 plugkit-darwin-arm64
5
- 6ea361e856a42d69e21cc2037bbe949f3e96fdf5b00412f526b1a09d08bf104f plugkit-linux-x64
6
- 2caa17f4c162ad8fbd2f92ca9432344449313ffc8f75983210ada7ed481cbc03 plugkit-linux-arm64
1
+ e418e70b28ab73aaf15ab3cdfb0c7e6ffd4419471da912d23eedb1720ccbc30b plugkit-win32-x64.exe
2
+ 57f972a2fcb711093a2882b17113d8febabaed225b92b433e0b28ea2ce16f62f plugkit-win32-arm64.exe
3
+ a69a62c9ba6375ba0f205c6b08d68a3575dd8a95f7fed4f76eae2c6a5ee44efe plugkit-darwin-x64
4
+ 561b4d3a962d8627e66bf1ebfcc122f274a06ca987584f2763853e06bbb61a35 plugkit-darwin-arm64
5
+ 9df5110a1a983e1ac26c30dfc5a226493fc2f87cd5979aa441ee7e4fafa48e59 plugkit-linux-x64
6
+ d45b59e1a3144ed54d7f6e2fa3f3c4f8b6c8927c4f9d4ec7187a95ae973c6ae6 plugkit-linux-arm64
@@ -1 +1 @@
1
- 0.1.256
1
+ 0.1.257
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.793",
3
+ "version": "2.0.795",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
@@ -23,5 +23,5 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "plugkitVersion": "0.1.256"
26
+ "plugkitVersion": "0.1.257"
27
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-qwen",
3
- "version": "2.0.793",
3
+ "version": "2.0.795",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
@@ -71,6 +71,12 @@ Surface → diagnose → fix at root cause → re-witness → continue. If the f
71
71
 
72
72
  A skill chain that ships while ignoring a known-bad signal is forced closure (see MAXIMAL COVER).
73
73
 
74
+ **Auto-PRD on incidental error — HARD RULE.** Any reasonably-fixable error that surfaces mid-task — pre-existing build break, lockfile drift, broken dep feature, lint failure on neighboring code, missing cargo/npm artifact, type error in adjacent module, stale generated file, dead import, anything the agent can resolve from this session — is added to `.gm/prd.yml` as a new item the same turn it surfaces, and executed before COMPLETE. The user does not have to ask. The user did not cause it; surfacing it during their task is the agent's discovery, and the agent owns the fix. Genuinely out-of-reach errors (require the user's credentials, depend on external services down, demand product decisions) are name-and-stop with the residual recorded in PRD with `blockedBy: external` so it is visible — never silently dropped, never narrated past. The forcing function is delivery: closing a turn with a known-bad signal still emitting is forced closure regardless of whether the signal was "from a different task."
75
+
76
+ **Auto-PRD on re-architecting opportunities — HARD RULE.** The same rule applies to *obvious* refactor wins surfaced while doing the user's task: a hand-rolled implementation that an existing well-known library does cleaner; a multi-file ad-hoc system that a single import would replace; duplicated logic crying out for one helper; a naming/layout cleanup that would shrink the surface noticeably; a boilerplate pattern repeated in N places when one upstream tool covers it. These are not separate sessions — they're items the agent regresses to `planning` to add, and finishes before COMPLETE. The bar is "obvious + reachable from this session", not "any conceivable refactor"; speculative or aesthetic changes stay out. Library-replacement is a specific case: before keeping a local reimplementation of something a published package already provides, add a PRD item to swap to the import. Local code competes with upstream maintenance and loses.
77
+
78
+ **Cross-session PRD continuity — HARD RULE.** `.gm/prd.yml` is durable across sessions. Items left over from a previous session are *this* session's work the moment they're discovered. The agent finishes every item in the file before declaring complete — including ones the current user message did not mention. The PRD is the contract; sessions are scheduling. "From another session" is never a reason to skip an item.
79
+
74
80
  ## BROWSER WITNESS — HARD RULE
75
81
 
76
82
  Editing code that runs in a browser requires a live `exec:browser` witness in the same turn as the edit. The witness does not defer to a later phase; later phases re-witness on top, they do not replace this one.
@@ -122,6 +122,12 @@ N facts → N parallel Agent calls in ONE message. End-of-turn self-check mandat
122
122
 
123
123
  Issue surfaced mid-execution (failing test, exec stderr, broken import, runtime exception, lint/type error, deprecation warning, unexpected output) is fixed THIS turn, at root cause, in-band. Never `// TODO`, never `try/catch`-to-swallow, never `2>/dev/null`, never `.skip`, never "out of scope" inside the same file. Re-witness after fix. New unknown surfaced by the fix → regress to `planning`. Genuine out-of-scope → write a `.gm/prd.yml` item before continuing.
124
124
 
125
+ **Incidental errors auto-plan**: a reasonably-fixable issue that is *not* what the user asked about — pre-existing build break, lockfile drift, broken dep feature, dead import in adjacent module, missing artifact, neighboring lint failure — still belongs to the agent. Add it to `.gm/prd.yml` the same turn it surfaces and execute it before COMPLETE. Do not ask the user; do not narrate past it; do not file it as "next session." Only errors that genuinely need user credentials, decisions, or external services that are down are name-and-stop, recorded with `blockedBy: external`.
126
+
127
+ **Obvious re-architecting auto-plans**: same discipline for clear refactor wins surfaced mid-task — code competing with an existing library/package that does the same thing, multi-file ad-hoc logic one import would replace, duplicated logic asking for one helper. Regress to `planning`, add the item, execute. Bar is *obvious + reachable from this session*; speculative refactors stay out.
128
+
129
+ **Cross-session PRD**: items in `.gm/prd.yml` from prior sessions are this session's work the moment they're discovered. Finish every item in the file before COMPLETE — including ones the current user message did not mention. "From another session" is not an exemption.
130
+
125
131
  ## BROWSER WITNESS — HARD RULE
126
132
 
127
133
  Editing browser-facing code (under `client/`, `docs/`, `*.html`, shaders, page-bundle imports, served JS/CSS, gh-pages assets, anything imported by a browser entry, anything visible in DOM/canvas/WebGL) → live `exec:browser` witness in THIS phase, same turn as the edit. Not deferred to EMIT, not deferred to VERIFY — those layers re-witness on top, they don't replace this one.
@@ -67,6 +67,12 @@ Every issue surfaced during planning, execution, or verification is fixed in-ban
67
67
 
68
68
  Surface → diagnose → fix → re-witness → continue. New unknown surfaced by the fix → regress here. Genuinely out-of-scope-irreversible → the residual goes into `.gm/prd.yml` *before* moving on; narration is not a substitute for an item.
69
69
 
70
+ **Auto-plan incidental errors**: any fixable error encountered while working on the user's task — even one unrelated to the original ask (pre-existing build break, neighboring lint failure, lockfile drift, broken dep, stale generated file) — is added to `.gm/prd.yml` as a new item the same turn it surfaces and executed before COMPLETE. The user does not have to notice it or ask. Closing a turn with a known-bad signal still emitting is forced closure. Only errors needing external credentials, product decisions, or down services are name-and-stop with `blockedBy: external`.
71
+
72
+ **Auto-plan obvious re-architecting**: same rule for clear refactor wins surfaced mid-task — hand-rolled code competing with a known library that does the same thing cleaner, multi-file ad-hoc system one import would replace, duplicated logic crying out for one helper. Re-enter PLAN, add the item, execute. Bar is *obvious + reachable from this session*; speculative or aesthetic changes stay out.
73
+
74
+ **Cross-session PRD continuity**: `.gm/prd.yml` is durable. Items left over from previous sessions are this session's work as soon as they're seen. Finish every item before COMPLETE — including ones the current user message did not mention. "From another session" is never a reason to skip.
75
+
70
76
  ## BROWSER WITNESS — HARD RULE
71
77
 
72
78
  A `.prd` item that touches browser-facing code is not plan-complete unless its acceptance criteria include a live `exec:browser` witness with a `page.evaluate` assertion against the specific invariant the change establishes. "Manual verification", "test.js passes", and "browser test optional" are all unwitnessed and therefore unacceptable.