gm-cc 2.0.548 → 2.0.550

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.
@@ -4,7 +4,7 @@
4
4
  "name": "AnEntrypoint"
5
5
  },
6
6
  "description": "State machine agent with hooks, skills, and automated git enforcement",
7
- "version": "2.0.548",
7
+ "version": "2.0.550",
8
8
  "metadata": {
9
9
  "description": "State machine agent with hooks, skills, and automated git enforcement"
10
10
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-cc",
3
- "version": "2.0.548",
3
+ "version": "2.0.550",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.548",
3
+ "version": "2.0.550",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": {
6
6
  "name": "AnEntrypoint",
@@ -59,6 +59,8 @@ All work coordination, planning, execution, and verification happens through the
59
59
 
60
60
  All code execution uses `exec:<lang>` via the Bash tool — never direct `Bash(node ...)` or `Bash(npm ...)`.
61
61
 
62
+ **Every `git push` is a remote code execution. Watch the triggered GitHub Actions runs immediately — `gh run list` to enumerate, `gh run watch <id> --exit-status` per run, `gh run view --log-failed` on failure. Silent pushes are contract violations. Full protocol in `gm-execute`.**
63
+
62
64
  Do not use `EnterPlanMode`. Do not run code directly via Bash. Invoke `planning` skill first.
63
65
 
64
66
  ## RESPONSE POLICY — ALWAYS ACTIVE
@@ -64,6 +64,39 @@ exec:runner
64
64
  start|stop|status
65
65
  ```
66
66
 
67
+ ## GIT PUSH = CI WATCH — MANDATORY EVERY TIME
68
+
69
+ A `git push` that is not immediately followed by a CI watch is an unwitnessed execution and a violation of this contract. The push triggers GitHub Actions workflows; those workflows are remote execution whose results are ground truth. Every push — intermediate commits during EXECUTE, doc pushes during UPDATE-DOCS, every push — triggers this same protocol:
70
+
71
+ 1. Immediately after `git push` succeeds, list the runs the push triggered:
72
+ ```
73
+ exec:bash
74
+ gh run list --limit 5 --json databaseId,name,status,conclusion,headBranch,event,createdAt
75
+ ```
76
+
77
+ 2. For every run with `status` = `queued` or `in_progress` (from this push), watch until terminal:
78
+ ```
79
+ exec:bash
80
+ gh run watch <run_id> --exit-status
81
+ ```
82
+
83
+ 3. On failure, inspect logs and decide:
84
+ ```
85
+ exec:bash
86
+ gh run view <run_id> --log-failed
87
+ ```
88
+ - Caused by your change → regress to the appropriate phase (emit for file issues, execute for logic, planning for new unknowns), fix, re-push, re-watch.
89
+ - Pre-existing (not introduced by this session) → document as a known issue in CLAUDE.md with the failing workflow name and reason, then continue. A pre-existing failure is still a KNOWN mutable, just resolved differently.
90
+
91
+ 4. Cascade: a push may trigger downstream repo workflows (see AGENTS.md pipeline notes). After local CI reaches terminal state, check downstream:
92
+ ```
93
+ exec:bash
94
+ gh run list --repo AnEntrypoint/<downstream> --limit 3 --json databaseId,name,status,conclusion
95
+ ```
96
+ Watch and triage the same way.
97
+
98
+ **Zero silent pushes.** Not watching a CI run you triggered = operating outside this contract. This rule supersedes any implicit assumption that CI can be "checked later in gm-complete" — if you are about to push, you are about to execute code remotely, so the watch happens now.
99
+
67
100
  ## CODEBASE EXPLORATION
68
101
 
69
102
  `exec:codesearch` is the preferred semantic search. **Glob, Explore, WebSearch are hook-blocked. Grep/Read ARE available — use them for exact-match or direct reads.**