@t275005746/gse 0.1.0 → 0.1.2

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 (228) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.yml +42 -42
  2. package/.github/ISSUE_TEMPLATE/change_request.yml +50 -50
  3. package/.github/ISSUE_TEMPLATE/config.yml +5 -5
  4. package/.github/PULL_REQUEST_TEMPLATE.md +38 -38
  5. package/.github/workflows/validate-gse.yml +33 -33
  6. package/.gse/README.md +18 -18
  7. package/.gse/gse-development-protocol.md +50 -50
  8. package/.gse/project-profile.md +29 -29
  9. package/.gse/quality-gates.md +25 -25
  10. package/.gse/releases/public-registry-publication-npm.md +49 -0
  11. package/.gse/releases/public-release-owner-required.md +65 -65
  12. package/.gse/releases/public-security-contact-owner-required.md +45 -45
  13. package/.gse/state.json +147 -27
  14. package/CHANGELOG.md +31 -15
  15. package/CONTRIBUTING.md +64 -64
  16. package/LICENSE +21 -21
  17. package/README.md +14 -7
  18. package/README.zh-CN.md +14 -7
  19. package/SECURITY.md +41 -41
  20. package/SKILL.md +32 -12
  21. package/SUPPORT.md +38 -38
  22. package/assets/marketplace/README.md +7 -7
  23. package/assets/marketplace/gse-listing.json +75 -75
  24. package/assets/templates/acceptance-execution-packet.md +73 -73
  25. package/assets/templates/adr.md +14 -14
  26. package/assets/templates/change-brief.md +16 -16
  27. package/assets/templates/design.md +18 -18
  28. package/assets/templates/dispatch-packet.md +100 -92
  29. package/assets/templates/evidence.md +15 -9
  30. package/assets/templates/execution-quality-pack.md +65 -65
  31. package/assets/templates/goal-map.md +21 -21
  32. package/assets/templates/host-adapter.md +48 -48
  33. package/assets/templates/host-ui-invocation-record.md +42 -42
  34. package/assets/templates/incident-review.md +60 -60
  35. package/assets/templates/public-channel-publication-record.md +49 -49
  36. package/assets/templates/public-ci-run-record.md +53 -53
  37. package/assets/templates/public-release-record.md +65 -65
  38. package/assets/templates/public-repository-settings-record.md +59 -59
  39. package/assets/templates/public-security-contact-record.md +45 -45
  40. package/assets/templates/release-trust-record.md +32 -32
  41. package/assets/templates/review.md +18 -18
  42. package/assets/templates/role-fallback-packet.md +49 -0
  43. package/assets/templates/spec.md +16 -16
  44. package/assets/templates/target-adoption-evidence.md +29 -29
  45. package/assets/templates/tasks.md +17 -17
  46. package/assets/templates/update-release-acceptance-record.md +58 -58
  47. package/examples/README.md +22 -22
  48. package/examples/agent-runtime-host/.claude/gse-adapter.md +6 -6
  49. package/examples/agent-runtime-host/.codex/gse-adapter.md +7 -7
  50. package/examples/agent-runtime-host/.gse/goal-map.md +7 -7
  51. package/examples/agent-runtime-host/.gse/project-profile.md +27 -27
  52. package/examples/agent-runtime-host/.gse/tooling.md +5 -5
  53. package/examples/agent-runtime-host/.mcp.json +9 -9
  54. package/examples/agent-runtime-host/AGENTS.md +5 -5
  55. package/examples/agent-runtime-host/README.md +10 -10
  56. package/examples/agent-runtime-host/docs/model-routing.md +5 -5
  57. package/examples/cli-tool/.gse/project-profile.md +21 -21
  58. package/examples/cli-tool/AGENTS.md +5 -5
  59. package/examples/cli-tool/README.md +12 -12
  60. package/examples/cli-tool/package.json +21 -21
  61. package/examples/small-app/.env.example +2 -2
  62. package/examples/small-app/.github/workflows/ci.yml +8 -8
  63. package/examples/small-app/AGENTS.md +5 -5
  64. package/examples/small-app/README.md +12 -12
  65. package/examples/small-app/package.json +26 -26
  66. package/examples/small-app/playwright.config.ts +4 -4
  67. package/package.json +52 -44
  68. package/references/adoption-recipes.md +171 -171
  69. package/references/agent-roles.md +42 -21
  70. package/references/architecture-health.md +101 -101
  71. package/references/benchmark-audit.md +73 -73
  72. package/references/commands.md +74 -45
  73. package/references/community-channels.md +46 -46
  74. package/references/compatibility.md +70 -70
  75. package/references/design-basis.md +38 -38
  76. package/references/domain-model.md +129 -129
  77. package/references/domain-quality-gates.md +75 -75
  78. package/references/drift-audit.md +81 -80
  79. package/references/evidence-taxonomy.md +145 -108
  80. package/references/file-ownership.md +97 -93
  81. package/references/final-form-roadmap.md +201 -0
  82. package/references/final-readiness.md +84 -84
  83. package/references/forward-test.md +133 -133
  84. package/references/goal-map.md +36 -36
  85. package/references/host-adapters.md +129 -101
  86. package/references/learning-system.md +42 -26
  87. package/references/maintenance-cadence.md +51 -0
  88. package/references/marketplace-discovery.md +46 -46
  89. package/references/model-routing.md +103 -103
  90. package/references/open-source-defaults.md +39 -39
  91. package/references/operating-model.md +52 -52
  92. package/references/packaging.md +277 -277
  93. package/references/project-agent-workspace.md +89 -89
  94. package/references/project-bootstrap.md +122 -122
  95. package/references/project-guards.md +52 -0
  96. package/references/project-profile.md +57 -57
  97. package/references/public-release.md +174 -174
  98. package/references/quality-gates.md +96 -89
  99. package/references/recovery.md +176 -176
  100. package/references/release-trust.md +43 -43
  101. package/references/release.md +126 -126
  102. package/references/review.md +141 -141
  103. package/references/role-dispatch-fallback.md +54 -0
  104. package/references/router.md +90 -90
  105. package/references/spec-workflow.md +66 -66
  106. package/references/task-levels.md +81 -81
  107. package/references/tool-adapters.md +80 -70
  108. package/scripts/audit-acceptance-execution-packet.mjs +133 -133
  109. package/scripts/audit-adoption-recipes.mjs +99 -99
  110. package/scripts/audit-change-lifecycle.mjs +77 -77
  111. package/scripts/audit-change-system.mjs +134 -134
  112. package/scripts/audit-ci-readiness.mjs +107 -107
  113. package/scripts/audit-close-gate-hardening.mjs +188 -0
  114. package/scripts/audit-close-gate.mjs +448 -262
  115. package/scripts/audit-command-adapters.mjs +91 -91
  116. package/scripts/audit-command-execution.mjs +212 -199
  117. package/scripts/audit-commands.mjs +7 -5
  118. package/scripts/audit-compatibility.mjs +149 -149
  119. package/scripts/audit-completion-plan-drill.mjs +230 -0
  120. package/scripts/audit-completion-readiness.mjs +290 -287
  121. package/scripts/audit-continue-preflight.mjs +234 -0
  122. package/scripts/audit-distribution.mjs +251 -251
  123. package/scripts/audit-domain-quality-gates.mjs +108 -108
  124. package/scripts/audit-evidence-levels.mjs +217 -0
  125. package/scripts/audit-evidence-placeholders.mjs +126 -126
  126. package/scripts/audit-evidence-review-queue.mjs +206 -0
  127. package/scripts/audit-final-acceptance-packet.mjs +9 -9
  128. package/scripts/audit-final-form-progress-report.mjs +19 -18
  129. package/scripts/audit-final-form-roadmap.mjs +157 -0
  130. package/scripts/audit-final-form-stale-copy.mjs +2 -2
  131. package/scripts/audit-final-readiness-promotion.mjs +255 -255
  132. package/scripts/audit-final-readiness.mjs +226 -226
  133. package/scripts/audit-fixtures.mjs +154 -154
  134. package/scripts/audit-fresh-session-readiness.mjs +177 -177
  135. package/scripts/audit-host-capabilities.mjs +237 -0
  136. package/scripts/audit-host-runtime-evidence-handoff.mjs +159 -159
  137. package/scripts/audit-host-runtime-invocation-drill.mjs +240 -240
  138. package/scripts/audit-host-runtime-invocations.mjs +254 -254
  139. package/scripts/audit-host-ui-invocation.mjs +132 -132
  140. package/scripts/audit-installed-sync.mjs +203 -0
  141. package/scripts/audit-learning-drift.mjs +292 -0
  142. package/scripts/audit-learning-promotion.mjs +351 -0
  143. package/scripts/audit-learning-system.mjs +24 -14
  144. package/scripts/audit-local-final-form-completion.mjs +11 -10
  145. package/scripts/audit-maintenance-cadence.mjs +139 -0
  146. package/scripts/audit-maintenance-snapshot.mjs +181 -0
  147. package/scripts/audit-marketplace-discovery.mjs +122 -122
  148. package/scripts/audit-npm-package-metadata.mjs +160 -154
  149. package/scripts/audit-npm-publish-dry-run.mjs +194 -166
  150. package/scripts/audit-npm-tarball-install.mjs +195 -189
  151. package/scripts/audit-open-source-defaults.mjs +92 -92
  152. package/scripts/audit-open-source-readiness.mjs +97 -97
  153. package/scripts/audit-owner-external-gate-kit.mjs +12 -11
  154. package/scripts/audit-project-guards.mjs +189 -0
  155. package/scripts/audit-project.mjs +144 -141
  156. package/scripts/audit-public-acceptance-command-dry-run-drill.mjs +203 -203
  157. package/scripts/audit-public-acceptance-handoff.mjs +10 -10
  158. package/scripts/audit-public-acceptance-readiness.mjs +222 -222
  159. package/scripts/audit-public-channel-publication.mjs +248 -248
  160. package/scripts/audit-public-ci-run.mjs +184 -184
  161. package/scripts/audit-public-collaboration-templates.mjs +98 -98
  162. package/scripts/audit-public-external-gate-probe.mjs +206 -206
  163. package/scripts/audit-public-release-checklist.mjs +17 -15
  164. package/scripts/audit-public-release-decision.mjs +201 -201
  165. package/scripts/audit-public-release-metadata.mjs +176 -176
  166. package/scripts/audit-public-repository-settings.mjs +237 -237
  167. package/scripts/audit-public-security-contact.mjs +171 -171
  168. package/scripts/audit-readme-docs.mjs +6 -4
  169. package/scripts/audit-recovery-readiness.mjs +98 -98
  170. package/scripts/audit-release-bundle.mjs +13 -11
  171. package/scripts/audit-release-owner-action-plan-drill.mjs +5 -4
  172. package/scripts/audit-release-owner-action-plan.mjs +10 -10
  173. package/scripts/audit-release-readiness.mjs +106 -106
  174. package/scripts/audit-release-status-manifest.mjs +4 -4
  175. package/scripts/audit-release-trust.mjs +62 -62
  176. package/scripts/audit-remote-distribution.mjs +266 -266
  177. package/scripts/audit-roadmap-consistency.mjs +234 -230
  178. package/scripts/audit-role-dispatch-fallback.mjs +212 -0
  179. package/scripts/audit-session-sync.mjs +127 -0
  180. package/scripts/audit-signing.mjs +147 -147
  181. package/scripts/audit-state-freshness.mjs +20 -14
  182. package/scripts/audit-state-repair.mjs +360 -0
  183. package/scripts/audit-target-adoption-evidence.mjs +117 -117
  184. package/scripts/audit-target-hardening-drills.mjs +267 -0
  185. package/scripts/audit-target-project.mjs +507 -507
  186. package/scripts/audit-tool-fallback-policy.mjs +180 -0
  187. package/scripts/audit-ui-browser-evidence-policy.mjs +191 -0
  188. package/scripts/audit-update-release-acceptance.mjs +136 -136
  189. package/scripts/audit-v1-target-validation.mjs +269 -269
  190. package/scripts/audit-validation-profiles.mjs +125 -123
  191. package/scripts/backfill-evidence-levels.mjs +98 -0
  192. package/scripts/check-encoding.mjs +72 -0
  193. package/scripts/close-change.mjs +116 -116
  194. package/scripts/discover-project-profile.mjs +307 -307
  195. package/scripts/generate-command-adapter.mjs +231 -231
  196. package/scripts/generate-continue-packet.mjs +1214 -0
  197. package/scripts/generate-final-acceptance-packet.mjs +188 -173
  198. package/scripts/generate-final-form-progress-report.mjs +191 -189
  199. package/scripts/generate-host-runtime-evidence-handoff.mjs +198 -191
  200. package/scripts/generate-maintenance-snapshot.mjs +216 -0
  201. package/scripts/generate-owner-external-gate-kit.mjs +295 -295
  202. package/scripts/generate-public-acceptance-handoff.mjs +168 -156
  203. package/scripts/generate-public-release-checklist.mjs +207 -207
  204. package/scripts/generate-release-bundle.mjs +505 -505
  205. package/scripts/generate-release-owner-action-plan.mjs +172 -171
  206. package/scripts/generate-release-status-manifest.mjs +199 -198
  207. package/scripts/generate-session-prompt.mjs +188 -188
  208. package/scripts/gse.mjs +67 -67
  209. package/scripts/init-change.mjs +265 -265
  210. package/scripts/init-project.mjs +793 -712
  211. package/scripts/install-gse.mjs +234 -234
  212. package/scripts/lib/evidence-placeholders.mjs +28 -28
  213. package/scripts/package-gse.mjs +174 -174
  214. package/scripts/probe-public-external-gates.mjs +167 -167
  215. package/scripts/record-host-invocation.mjs +151 -151
  216. package/scripts/record-learning.mjs +37 -8
  217. package/scripts/record-public-channel-publication.mjs +178 -178
  218. package/scripts/record-public-ci-run.mjs +180 -180
  219. package/scripts/record-public-release.mjs +175 -175
  220. package/scripts/record-public-repository-settings.mjs +209 -209
  221. package/scripts/record-public-security-contact.mjs +157 -157
  222. package/scripts/record-session-sync.mjs +87 -0
  223. package/scripts/run-gse-command.mjs +79 -47
  224. package/scripts/run-validation-profile.mjs +24 -5
  225. package/scripts/sign-gse-package.mjs +83 -83
  226. package/scripts/update-project-state.mjs +223 -223
  227. package/scripts/validate-gse.mjs +216 -0
  228. package/scripts/verify-gse-package.mjs +85 -85
@@ -1,73 +1,73 @@
1
- # Benchmark Audit
2
-
3
- Use this when improving GSE itself: changing the GSE skill, its scripts, templates, references, project scaffold, or development goals.
4
-
5
- ## Purpose
6
-
7
- GSE development must proactively find workflow gaps. Do not wait for the user to discover missing requirements through manual testing.
8
-
9
- Run this audit against verified local skills, project files, tool help, official docs when available, and focused experiments. Label design judgments separately from verified facts.
10
-
11
- ## Benchmark Sources
12
-
13
- Use the best available sources for the current host:
14
-
15
- - Local GSE files under `.gse/` or the skill folder.
16
- - Installed workflow skills: Comet, OpenSpec, Superpowers-style skills, agentic-engineering, subagent-driven-development, TDD, code review, self-improvement, QA, CI/CD.
17
- - Public or local skill repositories when explicitly referenced or already cloned, such as `mattpocock/skills`.
18
- - Project rules only when GSE is being tested inside a real project: `AGENTS.md`, `CLAUDE.md`, `CONTEXT.md`, ADRs, issue tracker docs, CI config, test scripts.
19
- - Official tool docs only when needed for a drift-prone claim.
20
-
21
- ## GSE Development Audit Matrix
22
-
23
- Score each area as `missing`, `thin`, `usable`, or `strong`.
24
-
25
- | Area | Questions |
26
- |---|---|
27
- | Setup | Can a new agent install or initialize GSE without guessing? |
28
- | Router | Is there a clear map from user intent to GSE references, scripts, and modes? |
29
- | Goal Map | Are GSE's north star, current priority, risks, and next slice visible? |
30
- | Domain Model | Is shared language captured, challenged, and updated? |
31
- | Specs | Are GSE change outcome, scope, non-goals, contracts, and acceptance explicit? |
32
- | Task Slicing | Are tasks vertical, independently verifiable, and sized by risk? |
33
- | Tool Acceleration | Are search, LSP/index, browser, API, MCP, and CI tools recorded with fallbacks? |
34
- | Multi-Agent | Are roles, dispatch packets, file ownership, review gates, and no-fake-delegation rules clear? |
35
- | Implementation | Does GSE development preserve skill patterns and avoid unrelated expansion? |
36
- | Testing | Are focused tests, TDD, smoke, regression, and UI verification rules present? |
37
- | Review | Are spec compliance and code quality reviewed separately? |
38
- | Evidence | Is GSE change evidence recorded with commands and residual risk? |
39
- | Release | Are migration, rollout, rollback, smoke, and known-risk steps defined? |
40
- | Incident | Is there a path for failures, postmortems, and prevention gates? |
41
- | Learning | Are reusable lessons promoted into rules, gates, or templates? |
42
- | Context Hygiene | Are handoff, compaction, stale-context, and token-budget rules defined? |
43
- | Adapter Drift | Are host-specific GSE adapters prevented from diverging from the portable source of truth? |
44
- | Security | Are secrets, permissions, destructive tools, and external services bounded? |
45
- | Observability | Are traces, cost, retries, failures, and long-running state captured when relevant? |
46
-
47
- ## Required Output
48
-
49
- ```text
50
- Outcome:
51
- Benchmark sources:
52
- Strong areas:
53
- Gaps:
54
- Design goal updates:
55
- Next action:
56
- Evidence:
57
- ```
58
-
59
- ## Design Goal Update Rules
60
-
61
- - Add a goal only when it prevents a real failure mode or improves repeatable quality.
62
- - Prefer a small artifact or script over a large prose rule.
63
- - Keep hard prerequisites minimal; record optional adapters separately.
64
- - Turn recurring user corrections into audits, gates, or templates.
65
- - If a benchmark is tool-specific, extract the portable principle before adding it to GSE.
66
- - For non-trivial GSE changes, use `references/forward-test.md` to decide whether structural smoke, fixture forward test, or fresh-session forward test is required.
67
-
68
- ## Current Known GSE Gaps
69
-
70
- - GSE has project scoring, bootstrap smoke, target doctor, command adapters, release gates, evidence taxonomy, quality gates, and final-form progress audits. Keep this section current when a gap is closed so future agents do not chase stale work.
71
- - Host adapter pointer templates are verified through `scripts/generate-command-adapter.mjs` and `scripts/audit-command-adapters.mjs`; older `generate-host-adapter.mjs` coverage is legacy fixture compatibility, not the preferred adoption route.
72
- - Remaining final-form gaps are owner/external evidence gates: public repository settings, public CI run, public security contact, registry publication, marketplace approval, native slash-command evidence, and other host runtime invocation.
73
- - Local future-hardening candidates should come from fresh benchmark evidence, not from this historical list.
1
+ # Benchmark Audit
2
+
3
+ Use this when improving GSE itself: changing the GSE skill, its scripts, templates, references, project scaffold, or development goals.
4
+
5
+ ## Purpose
6
+
7
+ GSE development must proactively find workflow gaps. Do not wait for the user to discover missing requirements through manual testing.
8
+
9
+ Run this audit against verified local skills, project files, tool help, official docs when available, and focused experiments. Label design judgments separately from verified facts.
10
+
11
+ ## Benchmark Sources
12
+
13
+ Use the best available sources for the current host:
14
+
15
+ - Local GSE files under `.gse/` or the skill folder.
16
+ - Installed workflow skills: Comet, OpenSpec, Superpowers-style skills, agentic-engineering, subagent-driven-development, TDD, code review, self-improvement, QA, CI/CD.
17
+ - Public or local skill repositories when explicitly referenced or already cloned, such as `mattpocock/skills`.
18
+ - Project rules only when GSE is being tested inside a real project: `AGENTS.md`, `CLAUDE.md`, `CONTEXT.md`, ADRs, issue tracker docs, CI config, test scripts.
19
+ - Official tool docs only when needed for a drift-prone claim.
20
+
21
+ ## GSE Development Audit Matrix
22
+
23
+ Score each area as `missing`, `thin`, `usable`, or `strong`.
24
+
25
+ | Area | Questions |
26
+ |---|---|
27
+ | Setup | Can a new agent install or initialize GSE without guessing? |
28
+ | Router | Is there a clear map from user intent to GSE references, scripts, and modes? |
29
+ | Goal Map | Are GSE's north star, current priority, risks, and next slice visible? |
30
+ | Domain Model | Is shared language captured, challenged, and updated? |
31
+ | Specs | Are GSE change outcome, scope, non-goals, contracts, and acceptance explicit? |
32
+ | Task Slicing | Are tasks vertical, independently verifiable, and sized by risk? |
33
+ | Tool Acceleration | Are search, LSP/index, browser, API, MCP, and CI tools recorded with fallbacks? |
34
+ | Multi-Agent | Are roles, dispatch packets, file ownership, review gates, and no-fake-delegation rules clear? |
35
+ | Implementation | Does GSE development preserve skill patterns and avoid unrelated expansion? |
36
+ | Testing | Are focused tests, TDD, smoke, regression, and UI verification rules present? |
37
+ | Review | Are spec compliance and code quality reviewed separately? |
38
+ | Evidence | Is GSE change evidence recorded with commands and residual risk? |
39
+ | Release | Are migration, rollout, rollback, smoke, and known-risk steps defined? |
40
+ | Incident | Is there a path for failures, postmortems, and prevention gates? |
41
+ | Learning | Are reusable lessons promoted into rules, gates, or templates? |
42
+ | Context Hygiene | Are handoff, compaction, stale-context, and token-budget rules defined? |
43
+ | Adapter Drift | Are host-specific GSE adapters prevented from diverging from the portable source of truth? |
44
+ | Security | Are secrets, permissions, destructive tools, and external services bounded? |
45
+ | Observability | Are traces, cost, retries, failures, and long-running state captured when relevant? |
46
+
47
+ ## Required Output
48
+
49
+ ```text
50
+ Outcome:
51
+ Benchmark sources:
52
+ Strong areas:
53
+ Gaps:
54
+ Design goal updates:
55
+ Next action:
56
+ Evidence:
57
+ ```
58
+
59
+ ## Design Goal Update Rules
60
+
61
+ - Add a goal only when it prevents a real failure mode or improves repeatable quality.
62
+ - Prefer a small artifact or script over a large prose rule.
63
+ - Keep hard prerequisites minimal; record optional adapters separately.
64
+ - Turn recurring user corrections into audits, gates, or templates.
65
+ - If a benchmark is tool-specific, extract the portable principle before adding it to GSE.
66
+ - For non-trivial GSE changes, use `references/forward-test.md` to decide whether structural smoke, fixture forward test, or fresh-session forward test is required.
67
+
68
+ ## Current Known GSE Gaps
69
+
70
+ - GSE has project scoring, bootstrap smoke, target doctor, command adapters, release gates, evidence taxonomy, quality gates, and final-form progress audits. Keep this section current when a gap is closed so future agents do not chase stale work.
71
+ - Host adapter pointer templates are verified through `scripts/generate-command-adapter.mjs` and `scripts/audit-command-adapters.mjs`; older `generate-host-adapter.mjs` coverage is legacy fixture compatibility, not the preferred adoption route.
72
+ - Remaining final-form gaps are owner/external evidence gates: public repository settings, public CI run, public security contact, registry publication, marketplace approval, native slash-command evidence, and other host runtime invocation.
73
+ - Local future-hardening candidates should come from fresh benchmark evidence, not from this historical list.
@@ -19,9 +19,10 @@ node <gse-skill>/scripts/run-gse-command.mjs --target <gse-skill> --command "/gs
19
19
  node <gse-skill>/scripts/run-gse-command.mjs --target <gse-skill> --command "/gse probe --public-repo-url __PUBLIC_REPO_URL__" --json
20
20
  node <gse-skill>/scripts/run-gse-command.mjs --target <gse-skill> --command "/gse package" --json
21
21
  node <gse-skill>/scripts/run-gse-command.mjs --target <gse-skill> --command "/gse install --source __PACKAGE_DIR__ --install-target __INSTALL_SKILL_DIR__" --json
22
- node <gse-skill>/scripts/run-gse-command.mjs --target <gse-skill> --command "/gse public-release" --json
23
- node <gse-skill>/scripts/run-gse-command.mjs --target <project-root> --command "/gse learn --summary __LESSON__" --execute --json
24
- ```
22
+ node <gse-skill>/scripts/run-gse-command.mjs --target <gse-skill> --command "/gse public-release" --json
23
+ node <gse-skill>/scripts/run-gse-command.mjs --target <project-root> --command "/gse learn --summary __LESSON__" --execute --json
24
+ node <gse-skill>/scripts/run-gse-command.mjs --target <project-root> --command "/gse repair" --json
25
+ ```
25
26
 
26
27
  Validation profile helper:
27
28
 
@@ -44,22 +45,24 @@ The Claude adapter writes `.claude/commands/gse.md`, matching Claude Code's docu
44
45
  | `/gse help` | Show available GSE commands and the current project entry files | Command help | `SKILL.md`, `references/commands.md` | none or file inspection |
45
46
  | `/gse init` | Initialize `.gse/` in a new project | Project bootstrap | project rules, `project-bootstrap.md` | scaffold file check |
46
47
  | `/gse adopt` | Adopt GSE in an existing project without overwriting local rules | Project adoption | project rules, `adoption-recipes.md`, `project-profile.md` | discovery or adoption smoke |
47
- | `/gse continue` | Continue the current project from its goal map or canonical plan | Execute workflow | project rules, `.gse/project-profile.md`, goal map or canonical plan | focused test/smoke for the slice |
48
- | `/gse status` | Show current project state; for the GSE skill, show final-form progress and remaining public/host blockers | Status workflow | `.gse/state.json`; for GSE skill, final readiness audits | state/report inspection |
49
- | `/gse doctor` | Diagnose public/host acceptance blockers for the GSE skill, or target-project GSE readiness for normal projects | Final acceptance or project doctor | final readiness matrix, `.gse/state.json`, project profile | public acceptance doctor or target project doctor |
50
- | `/gse acceptance` | Alias for `/gse doctor` when the user wants final acceptance boundaries | Final acceptance doctor | final readiness matrix and owner/external evidence records | public acceptance doctor |
48
+ | `/gse continue` | Continue the current project through a hard preflight and compact state packet | Execute workflow | project rules, `.gse/state.json`, evidence index, `.gse/project-profile.md`, quality gates, goal map or canonical plan | continue preflight plus focused test/smoke for the slice |
49
+ | `/gse status` | Show current project state; for the GSE skill, show final-form progress and pending public/host claim evidence | Status workflow | `.gse/state.json`; for GSE skill, final readiness audits | state/report inspection |
50
+ | `/gse doctor` | Diagnose public/host claim evidence for the GSE skill, or target-project GSE readiness for normal projects | Final acceptance or project doctor | final readiness matrix, `.gse/state.json`, project profile | public acceptance doctor or target project doctor |
51
+ | `/gse repair` | Diagnose or repair stale state, broken evidence JSONL, and overlong residual risks | State/evidence repair workflow | `.gse/state.json`, `.gse/evidence/index.jsonl`, latest evidence files | state repair audit; optional execute-gated residual risk compaction |
52
+ | `/gse acceptance` | Alias for `/gse doctor` when the user wants final acceptance boundaries | Final acceptance doctor | final readiness matrix and owner/external evidence records | public acceptance doctor |
51
53
  | `/gse owner-actions` | Show the remaining owner/external actions required before the GSE skill can claim public acceptance | Owner/external action packet | final readiness matrix and public acceptance doctor | owner action command smoke |
52
54
  | `/gse probe` | Probe supplied owner/external evidence locations before accepted records are written | Public external gate probe | public repo/security/CI/registry/marketplace/host evidence inputs | public external gate probe audit |
53
55
  | `/gse release` | Dry-run or generate the GSE release bundle for open-source/package handoff | Release bundle workflow | release metadata, package snapshot, acceptance handoff, owner/external kit | release bundle audit |
54
56
  | `/gse package` | Dry-run or generate a local installable GSE package | Package workflow | package label and output directory | package manifest or distribution audit |
55
- | `/gse install` | Dry-run or install GSE from a local package path or URL-shaped package source | Install workflow | package source and install target | install dry-run or installed CLI smoke |
56
- | `/gse public-release` | Dry-run or generate the ordered public release checklist for owner execution | Public release checklist workflow | release status manifest and pending owner/external gates | public release checklist audit |
57
- | `/gse change` | Create or normalize a GSE change spec pack | Spec workflow | change id, task level, goal map | change folder structure check |
57
+ | `/gse install` | Dry-run or install GSE from a local package path or URL-shaped package source | Install workflow | package source and install target | install dry-run or installed CLI smoke |
58
+ | `/gse public-release` | Dry-run or generate the ordered public release checklist for owner execution | Public release checklist workflow | release status manifest and pending owner/external gates | public release checklist audit |
59
+ | `/gse maintenance` | Audit recurring maintenance coverage for benchmark, drift, security, forward-test, target drills, public acceptance, and installed sync | Maintenance workflow | `maintenance-cadence.md`, validation profile, current final-form state | maintenance cadence audit |
60
+ | `/gse change` | Create or normalize a GSE change spec pack | Spec workflow | change id, task level, goal map | change folder structure check |
58
61
  | `/gse slice` | Define or normalize outcome, scope, acceptance, evidence, risk, and next action | Spec workflow | `goal-map.md`, `spec-workflow.md`, `quality-gates.md` | structural check |
59
62
  | `/gse verify` | Run the smallest verification that proves the current slice | Verification gate | `quality-gates.md`, project profile, evidence taxonomy | focused test/API/browser smoke |
60
- | `/gse learn` | Record a reusable lesson in `.gse/learnings.md` | Learning workflow | summary, trigger, source, optional impact | learning command audit |
63
+ | `/gse learn` | Record a reusable lesson in `.gse/learnings.md`; with `--promote`, classify repeated lessons into promotion candidates | Learning workflow | summary, trigger, source, optional impact, optional `--promote` | learning command and promotion audits |
61
64
  | `/gse audit` | Check workflow drift, stale claims, missing evidence, or too-heavy process | Audit workflow | `benchmark-audit.md`, `drift-audit.md`, project profile | audit script or checklist |
62
- | `/gse close` | Check whether the current slice is ready to close | Close readiness check | `.gse/state.json`, evidence index, quality gates | close gate audit |
65
+ | `/gse close` | Check whether the current slice is ready to close | Close readiness check | `.gse/state.json`, evidence index, quality gates, role fallback packets, git status | close gate audit |
63
66
 
64
67
  ## Aliases
65
68
 
@@ -68,17 +71,19 @@ The Claude adapter writes `.claude/commands/gse.md`, matching Claude Code's docu
68
71
  - `gse adopt` -> `/gse adopt`
69
72
  - `gse continue` -> `/gse continue`
70
73
  - `gse next` -> `/gse continue`
71
- - `gse status` -> `/gse status`
72
- - `gse doctor` -> `/gse doctor`
73
- - `gse acceptance` -> `/gse acceptance`
74
+ - `gse status` -> `/gse status`
75
+ - `gse doctor` -> `/gse doctor`
76
+ - `gse repair` -> `/gse repair`
77
+ - `gse acceptance` -> `/gse acceptance`
74
78
  - `gse owner-actions` -> `/gse owner-actions`
75
79
  - `gse owner` -> `/gse owner-actions`
76
80
  - `gse probe` -> `/gse probe`
77
81
  - `gse release` -> `/gse release`
78
82
  - `gse package` -> `/gse package`
79
- - `gse install` -> `/gse install`
80
- - `gse public-release` -> `/gse public-release`
81
- - `gse change` -> `/gse change`
83
+ - `gse install` -> `/gse install`
84
+ - `gse public-release` -> `/gse public-release`
85
+ - `gse maintenance` -> `/gse maintenance`
86
+ - `gse change` -> `/gse change`
82
87
  - `gse spec` -> `/gse change`
83
88
  - `gse slice` -> `/gse slice`
84
89
  - `gse verify` -> `/gse verify`
@@ -92,19 +97,28 @@ The Claude adapter writes `.claude/commands/gse.md`, matching Claude Code's docu
92
97
  /gse continue AION
93
98
  ```
94
99
 
95
- Expected behavior:
96
-
97
- 1. Enter the project root.
98
- 2. Read project rules, `.gse/state.json`, and `.gse/project-profile.md`.
99
- 3. Read the project's canonical plan when one is declared.
100
- 4. Pick the next verifiable slice from the machine-readable state plus goal map.
101
- 5. Execute, verify, record evidence, update `.gse/state.json` and `.gse/evidence/index.jsonl`, and close only when accepted by the applicable gate.
102
-
103
- Portable helper:
104
-
105
- ```text
106
- node <gse-skill>/scripts/generate-session-prompt.mjs --target <project-root>
107
- ```
100
+ Expected behavior:
101
+
102
+ 1. Enter the project root.
103
+ 2. Run the hard preflight: `.gse/state.json`, `.gse/evidence/index.jsonl`, `.gse/project-profile.md`, `.gse/goal-map.md`, `.gse/quality-gates.md`, canonical plan, current slice, residual risks, and owner/external gates when the target exposes them.
104
+ 3. Return a compact state packet with project identity, phase, current slice, next action, top risks, blocked gates, gate taxonomy, tool statuses, latest evidence, active project guards, next checks, and `completionPlan`.
105
+ 4. Fail before implementation when local state or evidence index is broken.
106
+ 5. Keep owner/external evidence visible as public/release/host-specific claim requirements without converting it into GSE core workflow debt.
107
+ 6. Use `completionPlan.requiredSteps`, `completionPlan.requiredCloseCommands`, and active `completionPlan.conditionalCloseCommands` as the exact close checklist before claiming a slice is done.
108
+ 7. Use `gateTaxonomy` to distinguish default core blockers from release gates and host-adapter claim gates. Release and host-adapter gates block only the specific claim unless project policy promotes them.
109
+ 8. Execute, verify, record evidence, update `.gse/state.json` and `.gse/evidence/index.jsonl`, and close only when accepted by the applicable gate.
110
+
111
+ Portable helper:
112
+
113
+ ```text
114
+ node <gse-skill>/scripts/generate-continue-packet.mjs --target <project-root>
115
+ ```
116
+
117
+ Project guard helper:
118
+
119
+ ```text
120
+ node <gse-skill>/scripts/audit-project-guards.mjs --target <project-root> --json
121
+ ```
108
122
 
109
123
  For existing projects that have `.gse/` but do not yet have machine-readable continuation files:
110
124
 
@@ -163,7 +177,8 @@ Expected behavior:
163
177
  3. Do not fix unrelated project code unless explicitly asked.
164
178
 
165
179
  ```text
166
- /gse learn --summary "Prefer UTF-8 safe readers for Chinese docs before judging mojibake" --trigger "encoding review" --source "project slice"
180
+ /gse learn --summary "Prefer UTF-8 safe readers for Chinese docs before judging mojibake" --trigger "encoding review" --source "project slice"
181
+ /gse learn --promote
167
182
  ```
168
183
 
169
184
  Expected behavior:
@@ -172,7 +187,8 @@ Expected behavior:
172
187
  2. Require `--summary`; accept optional `--trigger`, `--source`, `--impact`, and `--promotion`.
173
188
  3. Append the entry only when `--execute` is supplied.
174
189
  4. Skip duplicate summaries instead of appending repeated lessons.
175
- 5. Keep raw chain-of-thought, long logs, and temporary attempts out of learnings.
190
+ 5. Keep raw chain-of-thought, long logs, and temporary attempts out of learnings.
191
+ 6. With `--promote`, run learning promotion analysis. Add `--execute` only to write candidate-only `.gse/learning-promotions.md`; do not mutate guards, gates, templates, scripts, or skill files automatically.
176
192
 
177
193
  ```text
178
194
  /gse status
@@ -181,22 +197,34 @@ Expected behavior:
181
197
  Expected behavior:
182
198
 
183
199
  1. For normal projects, read `.gse/state.json` and show phase, current slice, next action, and declared project files.
184
- 2. For the GSE skill package itself, run the final-form progress report in dry-run mode and show local engineering readiness, full final-form readiness, pending owner/external gates, and `publicAccepted`.
200
+ 2. For the GSE skill package itself, run the final-form progress report in dry-run mode and show local engineering readiness, full final-form readiness, pending owner/external release evidence, and `publicAccepted`.
185
201
  3. Do not treat status output as completion evidence unless the relevant gate audit is also recorded.
186
202
 
187
- ```text
188
- /gse doctor
189
- ```
203
+ ```text
204
+ /gse doctor
205
+ ```
190
206
 
191
207
  Expected behavior:
192
208
 
193
- 1. For the GSE skill package, run the public acceptance doctor and list remaining owner/external blockers with concrete record commands.
209
+ 1. For the GSE skill package, run the public acceptance doctor and list pending owner/external claim evidence with concrete record commands.
194
210
  2. For normal target projects, run the target project doctor and report `.gse/` readiness, canonical plan visibility, evidence state, and host adapter drift.
195
- 3. Keep owner-required and external-required gates explicit. Do not convert local mechanics into public acceptance.
196
-
197
- ```text
198
- /gse owner-actions
199
- ```
211
+ 3. Keep owner-required and external-required gates explicit. Do not convert local mechanics into public acceptance.
212
+
213
+ ```text
214
+ /gse repair
215
+ ```
216
+
217
+ Expected behavior:
218
+
219
+ 1. Read `.gse/state.json` and `.gse/evidence/index.jsonl`.
220
+ 2. Return concrete repair actions for invalid state JSON, invalid evidence JSONL, missing latest evidence files, stale state/evidence next actions, and overlong residual risks.
221
+ 3. Stay read-only by default.
222
+ 4. Automatic writes are limited to reversible residual-risk compaction with a backup, and require `--execute`.
223
+ 5. Do not guess or overwrite broken JSON/JSONL; report the file and line/error so the owner or agent can repair deliberately.
224
+
225
+ ```text
226
+ /gse owner-actions
227
+ ```
200
228
 
201
229
  Expected behavior:
202
230
 
@@ -278,7 +306,7 @@ Expected behavior:
278
306
  ## Completion Rules
279
307
 
280
308
  - `/gse continue`, `/gse verify`, and `/gse close` must preserve the result -> verified -> accepted distinction.
281
- - `/gse close` is read-only in the portable command runner. It cannot mark a slice complete, archive a change, or write evidence by itself.
309
+ - `/gse close` is read-only in the portable command runner. It checks state, evidence, role dispatch honesty, worktree ownership, staged generated artifacts, and `.gse` git state. It cannot mark a slice complete, archive a change, or write evidence by itself.
282
310
  - Portable close check:
283
311
 
284
312
  ```text
@@ -291,5 +319,6 @@ node <gse-skill>/scripts/audit-close-gate.mjs --target <project-root>
291
319
  node <gse-skill>/scripts/close-change.mjs --target <project-root> --change-id <change-id> --status result|verified|accepted --json
292
320
  ```
293
321
 
294
- - `/gse audit` cannot certify arbitrary repositories unless project-specific checks ran.
322
+ - `/gse maintenance` verifies recurring upkeep coverage and command wiring; it does not replace real external host, CI, marketplace, or owner evidence.
323
+ - `/gse audit` cannot certify arbitrary repositories unless project-specific checks ran.
295
324
  - `/gse init` and `/gse adopt` cannot overwrite existing project workflow files without explicit owner approval or `--force` with a recorded reason.
@@ -1,46 +1,46 @@
1
- # Community Channels
2
-
3
- Use this when a public GSE release needs owner-approved contribution, support, sponsorship, or service links.
4
-
5
- Community channels are release metadata. They help people find the right place to ask questions, support the maintainer, or discover related services. They do not prove package publication, marketplace approval, security disclosure readiness, or host-native command support.
6
-
7
- ## Current Owner Candidate
8
-
9
- GateHub can be listed as an optional maintainer support and service link after owner approval:
10
-
11
- - Name: GateHub
12
- - URL: https://gatehub.top/
13
- - Public page title observed on 2026-07-07: `GateHub - AI API Gateway`
14
- - Public subtitle observed on 2026-07-07: `AI大模型代理平台`
15
- - Public contact observed on 2026-07-07: `QQ:275005746`
16
- - Recommended use in GSE docs: optional support, sponsorship, affiliate, or maintainer-service link.
17
-
18
- Do not describe GateHub as:
19
-
20
- - the official GSE package registry,
21
- - a marketplace approval channel,
22
- - a vulnerability disclosure channel,
23
- - proof of public CI, release, or host runtime support,
24
- - a required dependency for using GSE.
25
-
26
- ## Placement
27
-
28
- Recommended locations:
29
-
30
- - `SUPPORT.md`: optional maintainer/community support channel.
31
- - Public repository sidebar or GitHub profile: project support or service link.
32
- - Release notes: optional "Support the maintainer" link when the release owner approves it.
33
- - Marketplace/catalog listing: support URL or related service URL, if the marketplace allows it.
34
-
35
- Avoid putting the link into the core workflow explanation, command reference, quality gates, or installation steps unless GateHub becomes a verified part of that workflow.
36
-
37
- ## Acceptance
38
-
39
- A community channel can be called:
40
-
41
- - `result`: the link and intended use are documented.
42
- - `verified`: the link resolves and the docs preserve claim boundaries.
43
- - `accepted`: the owner approves the public placement and the target public page, repository, or listing contains the link.
44
-
45
- Keep security contact separate. A support or service contact is not a vulnerability disclosure policy unless the owner explicitly accepts it as such and `SECURITY.md` is updated.
46
-
1
+ # Community Channels
2
+
3
+ Use this when a public GSE release needs owner-approved contribution, support, sponsorship, or service links.
4
+
5
+ Community channels are release metadata. They help people find the right place to ask questions, support the maintainer, or discover related services. They do not prove package publication, marketplace approval, security disclosure readiness, or host-native command support.
6
+
7
+ ## Current Owner Candidate
8
+
9
+ GateHub can be listed as an optional maintainer support and service link after owner approval:
10
+
11
+ - Name: GateHub
12
+ - URL: https://gatehub.top/
13
+ - Public page title observed on 2026-07-07: `GateHub - AI API Gateway`
14
+ - Public subtitle observed on 2026-07-07: `AI大模型代理平台`
15
+ - Public contact observed on 2026-07-07: `QQ:275005746`
16
+ - Recommended use in GSE docs: optional support, sponsorship, affiliate, or maintainer-service link.
17
+
18
+ Do not describe GateHub as:
19
+
20
+ - the official GSE package registry,
21
+ - a marketplace approval channel,
22
+ - a vulnerability disclosure channel,
23
+ - proof of public CI, release, or host runtime support,
24
+ - a required dependency for using GSE.
25
+
26
+ ## Placement
27
+
28
+ Recommended locations:
29
+
30
+ - `SUPPORT.md`: optional maintainer/community support channel.
31
+ - Public repository sidebar or GitHub profile: project support or service link.
32
+ - Release notes: optional "Support the maintainer" link when the release owner approves it.
33
+ - Marketplace/catalog listing: support URL or related service URL, if the marketplace allows it.
34
+
35
+ Avoid putting the link into the core workflow explanation, command reference, quality gates, or installation steps unless GateHub becomes a verified part of that workflow.
36
+
37
+ ## Acceptance
38
+
39
+ A community channel can be called:
40
+
41
+ - `result`: the link and intended use are documented.
42
+ - `verified`: the link resolves and the docs preserve claim boundaries.
43
+ - `accepted`: the owner approves the public placement and the target public page, repository, or listing contains the link.
44
+
45
+ Keep security contact separate. A support or service contact is not a vulnerability disclosure policy unless the owner explicitly accepts it as such and `SECURITY.md` is updated.
46
+
@@ -1,70 +1,70 @@
1
- # Compatibility And Adoption Matrix
2
-
3
- Use this to record what GSE can honestly claim across agent hosts. This matrix is about GSE portability, not proof that every host-specific tool is installed in a project.
4
-
5
- ## Status Vocabulary
6
-
7
- - `verified`: backed by a local file, script, fixture, command, or trusted project-specific evidence in the current GSE skill or target project.
8
- - `documented`: described by GSE references, examples, or project files, but not exercised in the current evidence set.
9
- - `unknown`: no reliable evidence yet.
10
- - `unavailable`: expected capability is missing or failed when checked.
11
-
12
- Never upgrade a host capability from `documented` to `verified` just because another host has a similar capability.
13
-
14
- ## Portable Source Of Truth
15
-
16
- `.gse/` is the portable source of truth for goals, profile, quality gates, evidence, learning, and project-specific workflow rules.
17
-
18
- Host-specific folders are adapters. They may contain commands, hooks, skills, MCP notes, UI metadata, or short pointers, but they should point back to `.gse/` instead of copying the whole workflow.
19
-
20
- ## Host Matrix
21
-
22
- | Host family | Adapter location | Source-of-truth pointer | Current status | Evidence | Fallback |
23
- |---|---|---|---|---|---|
24
- | Codex-style | `.codex/`, Codex skills, MCP config | Must point to `.gse/` | `verified` for fixture pointer; host tools are project-specific | `examples/agent-runtime-host/.codex/gse-adapter.md`, `scripts/forward-test-gse.mjs`, `scripts/audit-fixtures.mjs` | Use `SKILL.md`, `.gse/project-profile.md`, and markdown workflow when Codex host tools are absent |
25
- | Claude Code-style | `.claude/commands/`, `.claude/agents/`, `.claude/hooks/` | Must point to `.gse/` | `verified` for fixture pointer; commands/agents/hooks remain project-specific | `examples/agent-runtime-host/.claude/gse-adapter.md`, `scripts/forward-test-gse.mjs`, `scripts/audit-fixtures.mjs` | Use `.gse/` docs directly; do not duplicate goal maps into `.claude/` |
26
- | Hermes/AION-style runtime | `.gse/host-adapters/hermes-runtime.md`, runtime skills, worker adapters, memory/tool substrate docs | Must keep AION/product policy in `.gse/` or project docs; runtime details are adapters | `verified` for generated pointer; runtime tools remain project-specific | `scripts/generate-command-adapter.mjs`, `scripts/audit-command-adapters.mjs`, `references/host-adapters.md`, `references/model-routing.md`, `examples/agent-runtime-host/docs/model-routing.md` | Treat runtime capabilities as `unknown` until project evidence verifies workers, memory, tools, or model routing |
27
- | WorkBuddy/other IDE agents | `.gse/host-adapters/workbuddy.md`, local docs, plugin settings, task templates | Must point to `.gse/` | `verified` for generated pointer; IDE tools remain project-specific | `scripts/generate-command-adapter.mjs`, `scripts/audit-command-adapters.mjs`, `SKILL.md`, `references/host-adapters.md` | Use `.gse/README.md`, `.gse/project-profile.md`, and `references/router.md` when no host adapter exists |
28
- | Copilot/Gemini-style assistants | repository instructions, workspace docs | Short instruction to read `.gse/project-profile.md` and relevant gates | `documented` | `references/host-adapters.md` | Use repository instructions plus `.gse/` files; keep advanced tool claims `unknown` |
29
- | Unknown or custom host | `.gse/host-adapters/generic-agent.md`, host-specific docs decided by the project | Must link back to `.gse/` | `verified` for generated generic pointer; host runtime remains unknown | `scripts/generate-command-adapter.mjs`, `scripts/audit-command-adapters.mjs` | Create a fuller adapter from `assets/templates/host-adapter.md` only when the project has a real host mechanism |
30
-
31
- ## Capability Matrix
32
-
33
- | Capability | Portable GSE layer | Codex-style | Claude Code-style | Hermes/AION-style | WorkBuddy/other | Notes |
34
- |---|---|---|---|---|---|---|
35
- | Goal map and evidence | `verified` | `documented` | `documented` | `documented` | `documented` | Portable files live under `.gse/`; host adapters should point there |
36
- | Project bootstrap | `verified` | `documented` | `documented` | `documented` | `documented` | Verified by `scripts/audit-project.mjs` and `scripts/validate-gse.mjs` |
37
- | Project profile discovery | `verified` | `documented` | `documented` | `documented` | `documented` | Verified by `scripts/audit-adoption.mjs`; host use still depends on project files |
38
- | Host adapter pointer | `verified` for generated pointers | `verified` | `verified` | `verified` for generated pointer | `verified` for generated pointer | Generated pointers are verified by `scripts/audit-command-adapters.mjs`; runtime invocation still needs host records |
39
- | Subagents | `documented` fallback rules | `unknown` | `unknown` | `unknown` | `unknown` | Real subagent availability must be checked per host/session |
40
- | MCP | `documented` status vocabulary | `unknown` | `unknown` | `unknown` | `unknown` | Config presence is documented, not tool availability |
41
- | LSP/index | `documented` recommendation | `unknown` | `unknown` | `unknown` | `unknown` | Verify per project before relying on symbol navigation |
42
- | Browser/Playwright | `documented` evidence rules | `unknown` | `unknown` | `unknown` | `unknown` | Fixture config can document Playwright; running browser tests is separate evidence |
43
- | Model routing | `documented` reference | `unknown` | `unknown` | `documented` | `unknown` | Provider/model behavior needs provider-specific evidence |
44
- | Hooks/plugins | `documented` adapter rule | `unknown` | `unknown` | `unknown` | `unknown` | Do not enable hooks or plugins without project approval and evidence |
45
-
46
- ## Adoption Rules
47
-
48
- 1. Start from `.gse/README.md`, `.gse/project-profile.md`, and `.gse/goal-map.md` when they exist.
49
- 2. If a host folder exists, read only the short host adapter first, then return to `.gse/` for policy and evidence.
50
- 3. Record host-specific commands, hooks, MCP servers, subagents, models, browser tools, and indexes as `unknown` until checked in that project/session.
51
- 4. Use `documented` for config or docs that exist but have not been executed.
52
- 5. Use `verified` only when current evidence proves the claim.
53
- 6. Use `unavailable` when an expected host feature is missing or failing.
54
- 7. Use `references/drift-audit.md` when host folders and `.gse/` disagree.
55
-
56
- ## Minimum Host Adapter
57
-
58
- A host adapter should be short:
59
-
60
- ```text
61
- # <Host> Adapter
62
-
63
- Source of truth: `.gse/`.
64
-
65
- - Read `.gse/project-profile.md` before using host-specific tools.
66
- - Mark host capabilities verified only after current-session evidence.
67
- - Use `references/drift-audit.md` when adapter claims and current tools disagree.
68
- ```
69
-
70
- Use `assets/templates/host-adapter.md` when a fuller adapter record is needed.
1
+ # Compatibility And Adoption Matrix
2
+
3
+ Use this to record what GSE can honestly claim across agent hosts. This matrix is about GSE portability, not proof that every host-specific tool is installed in a project.
4
+
5
+ ## Status Vocabulary
6
+
7
+ - `verified`: backed by a local file, script, fixture, command, or trusted project-specific evidence in the current GSE skill or target project.
8
+ - `documented`: described by GSE references, examples, or project files, but not exercised in the current evidence set.
9
+ - `unknown`: no reliable evidence yet.
10
+ - `unavailable`: expected capability is missing or failed when checked.
11
+
12
+ Never upgrade a host capability from `documented` to `verified` just because another host has a similar capability.
13
+
14
+ ## Portable Source Of Truth
15
+
16
+ `.gse/` is the portable source of truth for goals, profile, quality gates, evidence, learning, and project-specific workflow rules.
17
+
18
+ Host-specific folders are adapters. They may contain commands, hooks, skills, MCP notes, UI metadata, or short pointers, but they should point back to `.gse/` instead of copying the whole workflow.
19
+
20
+ ## Host Matrix
21
+
22
+ | Host family | Adapter location | Source-of-truth pointer | Current status | Evidence | Fallback |
23
+ |---|---|---|---|---|---|
24
+ | Codex-style | `.codex/`, Codex skills, MCP config | Must point to `.gse/` | `verified` for fixture pointer; host tools are project-specific | `examples/agent-runtime-host/.codex/gse-adapter.md`, `scripts/forward-test-gse.mjs`, `scripts/audit-fixtures.mjs` | Use `SKILL.md`, `.gse/project-profile.md`, and markdown workflow when Codex host tools are absent |
25
+ | Claude Code-style | `.claude/commands/`, `.claude/agents/`, `.claude/hooks/` | Must point to `.gse/` | `verified` for fixture pointer; commands/agents/hooks remain project-specific | `examples/agent-runtime-host/.claude/gse-adapter.md`, `scripts/forward-test-gse.mjs`, `scripts/audit-fixtures.mjs` | Use `.gse/` docs directly; do not duplicate goal maps into `.claude/` |
26
+ | Hermes/AION-style runtime | `.gse/host-adapters/hermes-runtime.md`, runtime skills, worker adapters, memory/tool substrate docs | Must keep AION/product policy in `.gse/` or project docs; runtime details are adapters | `verified` for generated pointer; runtime tools remain project-specific | `scripts/generate-command-adapter.mjs`, `scripts/audit-command-adapters.mjs`, `references/host-adapters.md`, `references/model-routing.md`, `examples/agent-runtime-host/docs/model-routing.md` | Treat runtime capabilities as `unknown` until project evidence verifies workers, memory, tools, or model routing |
27
+ | WorkBuddy/other IDE agents | `.gse/host-adapters/workbuddy.md`, local docs, plugin settings, task templates | Must point to `.gse/` | `verified` for generated pointer; IDE tools remain project-specific | `scripts/generate-command-adapter.mjs`, `scripts/audit-command-adapters.mjs`, `SKILL.md`, `references/host-adapters.md` | Use `.gse/README.md`, `.gse/project-profile.md`, and `references/router.md` when no host adapter exists |
28
+ | Copilot/Gemini-style assistants | repository instructions, workspace docs | Short instruction to read `.gse/project-profile.md` and relevant gates | `documented` | `references/host-adapters.md` | Use repository instructions plus `.gse/` files; keep advanced tool claims `unknown` |
29
+ | Unknown or custom host | `.gse/host-adapters/generic-agent.md`, host-specific docs decided by the project | Must link back to `.gse/` | `verified` for generated generic pointer; host runtime remains unknown | `scripts/generate-command-adapter.mjs`, `scripts/audit-command-adapters.mjs` | Create a fuller adapter from `assets/templates/host-adapter.md` only when the project has a real host mechanism |
30
+
31
+ ## Capability Matrix
32
+
33
+ | Capability | Portable GSE layer | Codex-style | Claude Code-style | Hermes/AION-style | WorkBuddy/other | Notes |
34
+ |---|---|---|---|---|---|---|
35
+ | Goal map and evidence | `verified` | `documented` | `documented` | `documented` | `documented` | Portable files live under `.gse/`; host adapters should point there |
36
+ | Project bootstrap | `verified` | `documented` | `documented` | `documented` | `documented` | Verified by `scripts/audit-project.mjs` and `scripts/validate-gse.mjs` |
37
+ | Project profile discovery | `verified` | `documented` | `documented` | `documented` | `documented` | Verified by `scripts/audit-adoption.mjs`; host use still depends on project files |
38
+ | Host adapter pointer | `verified` for generated pointers | `verified` | `verified` | `verified` for generated pointer | `verified` for generated pointer | Generated pointers are verified by `scripts/audit-command-adapters.mjs`; runtime invocation still needs host records |
39
+ | Subagents | `documented` fallback rules | `unknown` | `unknown` | `unknown` | `unknown` | Real subagent availability must be checked per host/session |
40
+ | MCP | `documented` status vocabulary | `unknown` | `unknown` | `unknown` | `unknown` | Config presence is documented, not tool availability |
41
+ | LSP/index | `documented` recommendation | `unknown` | `unknown` | `unknown` | `unknown` | Verify per project before relying on symbol navigation |
42
+ | Browser/Playwright | `documented` evidence rules | `unknown` | `unknown` | `unknown` | `unknown` | Fixture config can document Playwright; running browser tests is separate evidence |
43
+ | Model routing | `documented` reference | `unknown` | `unknown` | `documented` | `unknown` | Provider/model behavior needs provider-specific evidence |
44
+ | Hooks/plugins | `documented` adapter rule | `unknown` | `unknown` | `unknown` | `unknown` | Do not enable hooks or plugins without project approval and evidence |
45
+
46
+ ## Adoption Rules
47
+
48
+ 1. Start from `.gse/README.md`, `.gse/project-profile.md`, and `.gse/goal-map.md` when they exist.
49
+ 2. If a host folder exists, read only the short host adapter first, then return to `.gse/` for policy and evidence.
50
+ 3. Record host-specific commands, hooks, MCP servers, subagents, models, browser tools, and indexes as `unknown` until checked in that project/session.
51
+ 4. Use `documented` for config or docs that exist but have not been executed.
52
+ 5. Use `verified` only when current evidence proves the claim.
53
+ 6. Use `unavailable` when an expected host feature is missing or failing.
54
+ 7. Use `references/drift-audit.md` when host folders and `.gse/` disagree.
55
+
56
+ ## Minimum Host Adapter
57
+
58
+ A host adapter should be short:
59
+
60
+ ```text
61
+ # <Host> Adapter
62
+
63
+ Source of truth: `.gse/`.
64
+
65
+ - Read `.gse/project-profile.md` before using host-specific tools.
66
+ - Mark host capabilities verified only after current-session evidence.
67
+ - Use `references/drift-audit.md` when adapter claims and current tools disagree.
68
+ ```
69
+
70
+ Use `assets/templates/host-adapter.md` when a fuller adapter record is needed.