@warpgogol/forge 10.8.2 → 10.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/AGENTS.md +5 -5
  2. package/CHANGELOG.md +9 -0
  3. package/bin/cli.ts +2 -2
  4. package/dist/bin/cli.js +2 -2
  5. package/dist/bin/cli.js.map +1 -1
  6. package/dist/os/adr/handlers/archive.js +1 -1
  7. package/dist/os/adr/handlers/archive.js.map +1 -1
  8. package/dist/os/agent-tools/agent-tools.module.js +1 -1
  9. package/dist/os/agent-tools/handlers/tools-generate.js +1 -1
  10. package/dist/os/agent-tools/handlers/tools-generate.js.map +1 -1
  11. package/dist/os/agent-tools/serve.js +2 -2
  12. package/dist/os/agent-tools/serve.js.map +1 -1
  13. package/dist/os/agent-tools/server.d.ts.map +1 -1
  14. package/dist/os/agent-tools/server.js +3 -7
  15. package/dist/os/agent-tools/server.js.map +1 -1
  16. package/dist/os/audit/handlers/archive.js +1 -1
  17. package/dist/os/audit/handlers/archive.js.map +1 -1
  18. package/dist/os/context/handlers/context-assemble.js +1 -1
  19. package/dist/os/context/handlers/context-assemble.js.map +1 -1
  20. package/dist/os/core/handlers/package-health.d.ts +1 -1
  21. package/dist/os/core/handlers/package-health.js +2 -2
  22. package/dist/os/core/handlers/package-health.js.map +1 -1
  23. package/dist/os/flow/handlers/flow-hold.js +1 -1
  24. package/dist/os/flow/handlers/flow-integrate.js +4 -4
  25. package/dist/os/flow/handlers/flow-integrate.js.map +1 -1
  26. package/dist/os/flow/preflight.js +2 -2
  27. package/dist/os/flow/preflight.js.map +1 -1
  28. package/dist/os/flow/standalone-invoke.d.ts +2 -2
  29. package/dist/os/flow/standalone-invoke.js +5 -5
  30. package/dist/os/flow/standalone-invoke.js.map +1 -1
  31. package/dist/os/plan/handlers/archive.js +1 -1
  32. package/dist/os/plan/handlers/archive.js.map +1 -1
  33. package/dist/os/rfc/acceptance.d.ts.map +1 -1
  34. package/dist/os/rfc/acceptance.js +7 -6
  35. package/dist/os/rfc/acceptance.js.map +1 -1
  36. package/dist/os/rfc/handlers/archive.js +2 -2
  37. package/dist/os/rfc/handlers/archive.js.map +1 -1
  38. package/dist/os/rfc/handlers/implement-stamp.js +1 -1
  39. package/dist/os/rfc/handlers/implement-stamp.js.map +1 -1
  40. package/dist/os/rfc/handlers/index-graph.js +2 -2
  41. package/dist/os/rfc/handlers/index-graph.js.map +1 -1
  42. package/dist/os/rfc/handlers/list-create.js +2 -2
  43. package/dist/os/rfc/handlers/list-create.js.map +1 -1
  44. package/dist/os/rfc/handlers/rfc-evidence-sync.js +1 -1
  45. package/dist/os/rfc/handlers/rfc-evidence-sync.js.map +1 -1
  46. package/dist/os/rfc/verification-evidence.js +3 -3
  47. package/dist/os/rfc/verification-evidence.js.map +1 -1
  48. package/dist/os/rfc/verification-origin.js +1 -1
  49. package/dist/os/rfc/verification-origin.js.map +1 -1
  50. package/dist/os/session/handlers/archive.js +1 -1
  51. package/dist/os/session/handlers/archive.js.map +1 -1
  52. package/dist/os/spec/live-spec-merge.js +1 -1
  53. package/dist/os/spec/live-spec-merge.js.map +1 -1
  54. package/dist/os/spec/live-spec-rebuild.js +1 -1
  55. package/dist/os/spec/live-spec-rebuild.js.map +1 -1
  56. package/dist/src/onboarding/agents-generate.js +1 -1
  57. package/dist/src/reachability/command-mentions.d.ts +2 -1
  58. package/dist/src/reachability/command-mentions.d.ts.map +1 -1
  59. package/dist/src/reachability/command-mentions.js +4 -3
  60. package/dist/src/reachability/command-mentions.js.map +1 -1
  61. package/dist/src/utils/command-inventory.js +1 -1
  62. package/dist/src/utils/generated-marker.d.ts +1 -1
  63. package/dist/src/validators/skill-validate.js +1 -1
  64. package/dist/src/validators/skill-validate.js.map +1 -1
  65. package/docs/maintainers/publishing.md +3 -3
  66. package/docs/reference/cli.md +3 -3
  67. package/docs/reference/system-hub.md +5 -5
  68. package/os/adr/handlers/archive.ts +1 -1
  69. package/os/agent-tools/agent-tools.module.ts +1 -1
  70. package/os/agent-tools/handlers/tools-generate.ts +1 -1
  71. package/os/agent-tools/serve.ts +2 -2
  72. package/os/agent-tools/server.ts +3 -7
  73. package/os/audit/handlers/archive.ts +1 -1
  74. package/os/conformance/handlers/tests/conformance.test.ts +3 -3
  75. package/os/context/handlers/context-assemble.ts +1 -1
  76. package/os/core/docs-archive.test.ts +1 -1
  77. package/os/core/handlers/package-health.ts +2 -2
  78. package/os/flow/handlers/flow-hold.ts +1 -1
  79. package/os/flow/handlers/flow-integrate.ts +4 -4
  80. package/os/flow/preflight.ts +2 -2
  81. package/os/flow/standalone-invoke.ts +5 -5
  82. package/os/flow/tests/flow-hold.test.ts +1 -1
  83. package/os/flow/tests/flow-integrate.preflight.test.ts +1 -1
  84. package/os/flow/tests/flow-integrate.test.ts +1 -1
  85. package/os/flow/tests/flow-push.test.ts +1 -1
  86. package/os/gate-run/tests/gate-run-detach.test.ts +1 -1
  87. package/os/plan/handlers/archive.ts +1 -1
  88. package/os/plan/plan-0000-template.md +8 -8
  89. package/os/rfc/acceptance-reachable.test.ts +4 -4
  90. package/os/rfc/acceptance.ts +7 -6
  91. package/os/rfc/handlers/archive.ts +2 -2
  92. package/os/rfc/handlers/implement-stamp-outcome.test.ts +9 -9
  93. package/os/rfc/handlers/implement-stamp.ts +1 -1
  94. package/os/rfc/handlers/index-graph.ts +2 -2
  95. package/os/rfc/handlers/list-create.ts +2 -2
  96. package/os/rfc/handlers/rfc-evidence-sync.ts +1 -1
  97. package/os/rfc/handlers/validate-rules-rfc1453.test.ts +2 -2
  98. package/os/rfc/handlers/validate-transient-probes.test.ts +5 -5
  99. package/os/rfc/rfc-0000-template.md +1 -1
  100. package/os/rfc/rfc-create-hint.test.ts +3 -5
  101. package/os/rfc/verification-emit-freshness.test.ts +1 -1
  102. package/os/rfc/verification-emit.test.ts +1 -1
  103. package/os/rfc/verification-evidence.ts +3 -3
  104. package/os/rfc/verification-normalize.test.ts +2 -2
  105. package/os/rfc/verification-origin.test.ts +1 -1
  106. package/os/rfc/verification-origin.ts +1 -1
  107. package/os/rfc/verification-refresh.test.ts +1 -1
  108. package/os/session/fixtures/audit/clean.md +1 -1
  109. package/os/session/fixtures/audit/denied-retry.md +2 -2
  110. package/os/session/handlers/archive.ts +1 -1
  111. package/os/session/handlers/session-audit-detectors.test.ts +8 -8
  112. package/os/session/handlers/session-audit-report.test.ts +1 -1
  113. package/os/session/handlers/session-audit.test.ts +2 -2
  114. package/os/spec/live-spec-merge.test.ts +2 -2
  115. package/os/spec/live-spec-merge.ts +1 -1
  116. package/os/spec/live-spec-rebuild.ts +1 -1
  117. package/package.json +1 -1
  118. package/profiles/godot-game.yaml +4 -4
  119. package/profiles/phaser-game.yaml +4 -4
  120. package/profiles/site-workshop.yaml +6 -6
  121. package/skills/fo/fo-doctor/SKILL.md +1 -1
  122. package/skills/fo/fo-idea-create-adr/SKILL.md +1 -1
  123. package/skills/fo/fo-idea-create-rfc/SKILL.md +1 -1
  124. package/skills/fo/fo-idea-i-just-want-to-see-the-result/SKILL.md +1 -1
  125. package/skills/fo/fo-outbox/SKILL.md +1 -1
  126. package/skills/fo/fo-session-retro/SKILL.md +6 -6
  127. package/skills/fo/fo-step-commit/SKILL.md +1 -1
  128. package/src/onboarding/agents-generate.ts +1 -1
  129. package/src/reachability/command-mentions.ts +4 -4
  130. package/src/tests/acceptance-probe-kinds.test.ts +1 -1
  131. package/src/tests/forge-config.test.ts +5 -5
  132. package/src/tests/generated-marker.test.ts +2 -2
  133. package/src/utils/command-inventory.ts +1 -1
  134. package/src/utils/generated-marker.ts +1 -1
  135. package/src/validators/skill-validate.ts +1 -1
@@ -166,7 +166,7 @@ describe("rfc.verification.emit — baseline emission", () => {
166
166
  expect(raw).toMatch(/^generatedMarker: GENERATED\./);
167
167
  expect(raw).toContain("doNotEdit: DO NOT EDIT THIS FILE.");
168
168
  expect(raw).toContain("ownerCommand: rfc.verification.emit");
169
- expect(raw).toContain("regenerateCommand: pnpm exec werkstatt run rfc.verification.emit");
169
+ expect(raw).toContain("regenerateCommand: pnpm exec forge rfc.verification.emit");
170
170
  expect(raw).toContain("rfcId: RFC-0100");
171
171
  expect(raw).toContain("overall: pass");
172
172
  expect(raw.split("\n").every((line) => !line.startsWith("#"))).toBe(true);
@@ -257,8 +257,8 @@ async function freshnessPrecheck(
257
257
  .map((a) => {
258
258
  const remedy =
259
259
  a.owner && EVIDENCE_SYNC_STEPS.includes(a.owner)
260
- ? `werkstatt run rfc.evidence.sync --id ${rfcId}`
261
- : `werkstatt run ${a.owner ?? "<generator>"}`;
260
+ ? `forge rfc.evidence.sync --id ${rfcId}`
261
+ : `forge ${a.owner ?? "<generator>"}`;
262
262
  return `"${a.path}" (${a.verdict}, owner: ${a.owner ?? "unowned"}, remedy: ${remedy})`;
263
263
  })
264
264
  .join("; ");
@@ -404,7 +404,7 @@ export function serializeEvidenceEnvelope(envelope: VerificationEvidence): strin
404
404
  return `${yamlStringify({
405
405
  ...generatedHeaderFields({
406
406
  ownerCommand: "rfc.verification.emit",
407
- commandPrefix: "pnpm exec werkstatt run",
407
+ commandPrefix: "pnpm exec forge",
408
408
  }),
409
409
  ...envelope,
410
410
  })}\n`;
@@ -51,10 +51,10 @@ describe("normalizeProbes — acceptanceHash identity (RFC-1271)", () => {
51
51
  // probe interiors (expect.exitCode, schemaInline) serialize as {} and
52
52
  // never reach acceptanceHash.
53
53
  const base = [
54
- { probe: "run", command: "werkstatt run x.validate", expect: { exitCode: 0 }, criterion: "AC-1" },
54
+ { probe: "run", command: "forge x.validate", expect: { exitCode: 0 }, criterion: "AC-1" },
55
55
  ] as AcceptanceProbe[];
56
56
  const nestedChanged = [
57
- { probe: "run", command: "werkstatt run x.validate", expect: { exitCode: 1 }, criterion: "AC-1" },
57
+ { probe: "run", command: "forge x.validate", expect: { exitCode: 1 }, criterion: "AC-1" },
58
58
  ] as AcceptanceProbe[];
59
59
  expect(hash(base)).not.toBe(hash(nestedChanged));
60
60
 
@@ -124,7 +124,7 @@ describe("deriveProbeOrigins (RFC-1330)", () => {
124
124
  const runProbe: AcceptanceProbe = {
125
125
  probe: "run",
126
126
  criterion: "AC-2",
127
- command: "werkstatt run demo.validate --json",
127
+ command: "forge demo.validate --json",
128
128
  expect: { exitCode: 0 },
129
129
  };
130
130
  await commit("accept", {
@@ -623,7 +623,7 @@ async function declarationIntroductions(
623
623
  }
624
624
 
625
625
  function runCommandName(command: string): string | null {
626
- const match = /^(?:pnpm\s+exec\s+)?werkstatt\s+(?:run|pipeline)\s+(\S+)/.exec(command.trim());
626
+ const match = /^(?:pnpm\s+exec\s+)?forge\s+(\S+)/.exec(command.trim());
627
627
  return match?.[1] ?? null;
628
628
  }
629
629
 
@@ -463,7 +463,7 @@ describe("rfc.verification.refresh — RFC-1237 AC-2: emit-canonical header", ()
463
463
  // Structured marker keys — identical-by-construction to what emit writes.
464
464
  expect(raw).toMatch(/^generatedMarker: GENERATED\./);
465
465
  expect(raw).toContain("ownerCommand: rfc.verification.emit");
466
- expect(raw).toContain("regenerateCommand: pnpm exec werkstatt run rfc.verification.emit");
466
+ expect(raw).toContain("regenerateCommand: pnpm exec forge rfc.verification.emit");
467
467
  // Refresh never stamps itself as owner — it is a conditional secondary writer.
468
468
  expect(raw).not.toContain("rfc.verification.refresh");
469
469
  } finally {
@@ -4,4 +4,4 @@ remainingIssues: ["none"]
4
4
  ---
5
5
 
6
6
  ### Assistant
7
- Ran `werkstatt run rfc.validate --json` — exit: 0, all checks pass.
7
+ Ran `forge rfc.validate --json` — exit: 0, all checks pass.
@@ -4,7 +4,7 @@ remainingIssues: ["a blocker"]
4
4
  ---
5
5
 
6
6
  ### Assistant
7
- Ran `werkstatt run rfc.validate --json` — rejected: staged files outside scope.
7
+ Ran `forge rfc.validate --json` — rejected: staged files outside scope.
8
8
 
9
9
  ### Assistant
10
- Ran `werkstatt run rfc.validate --json` again — same failure.
10
+ Ran `forge rfc.validate --json` again — same failure.
@@ -276,7 +276,7 @@ export async function runSessionArchive(
276
276
  : `Moved ${moved.length} file(s), skipped ${skipped.length}`,
277
277
  nextSteps: [
278
278
  {
279
- action: "Run: pnpm exec werkstatt run session.list --json to verify archive status",
279
+ action: "Run: pnpm exec forge session.list --json to verify archive status",
280
280
  kind: "optional",
281
281
  },
282
282
  ],
@@ -14,21 +14,21 @@ import { test, expect, describe } from "vitest";
14
14
  import { auditSessionBody } from "./session-audit.ts";
15
15
 
16
16
  const CIRCUMVENTION = `### Assistant
17
- Ran \`werkstatt run ecosystem.commit --rfc RFC-1434\` — blocked by full-suite gate.
17
+ Ran \`forge ecosystem.commit --rfc RFC-1434\` — blocked by full-suite gate.
18
18
 
19
19
  ### Assistant
20
20
  Ran \`git commit -m "fix"\` directly — bypassed the gate.
21
21
  `;
22
22
 
23
23
  const DENIED_RETRY = `### Assistant
24
- Ran \`werkstatt run rfc.validate --json\` — rejected: staged files outside scope.
24
+ Ran \`forge rfc.validate --json\` — rejected: staged files outside scope.
25
25
 
26
26
  ### Assistant
27
- Ran \`werkstatt run rfc.validate --json\` again — same failure.
27
+ Ran \`forge rfc.validate --json\` again — same failure.
28
28
  `;
29
29
 
30
30
  const BLOCKER_DECEPTION = `### Assistant
31
- Ran \`werkstatt run ecosystem.commit\` — exit: 0, committed successfully.
31
+ Ran \`forge ecosystem.commit\` — exit: 0, committed successfully.
32
32
  All green, everything works.
33
33
  `;
34
34
 
@@ -37,14 +37,14 @@ Edited docs/command-manifest.generated.yaml by hand to add the new command.
37
37
  `;
38
38
 
39
39
  const FALSE_CLAIM = `### Assistant
40
- Ran \`werkstatt run ecosystem.commit\` — exit: 1, lint blocked.
40
+ Ran \`forge ecosystem.commit\` — exit: 1, lint blocked.
41
41
 
42
42
  ### Assistant
43
43
  All green, everything works.
44
44
  `;
45
45
 
46
46
  const CLEAN = `### Assistant
47
- Ran \`werkstatt run rfc.validate --json\` — exit: 0, all checks pass.
47
+ Ran \`forge rfc.validate --json\` — exit: 0, all checks pass.
48
48
  `;
49
49
 
50
50
  describe("auditSessionBody detectors (RFC-1471)", () => {
@@ -92,9 +92,9 @@ Regenerated docs/command-manifest.generated.yaml via command.manifest.generate.
92
92
  const suppressed = auditSessionBody(
93
93
  "sess-planned",
94
94
  `### Assistant
95
- Ran \`werkstatt run rfc.validate --json\` — rejected: staged files outside scope.
95
+ Ran \`forge rfc.validate --json\` — rejected: staged files outside scope.
96
96
  ### Assistant
97
- Switched to a different approach — split the scope, then ran \`werkstatt run rfc.validate --json\` again — passed.
97
+ Switched to a different approach — split the scope, then ran \`forge rfc.validate --json\` again — passed.
98
98
  `,
99
99
  {},
100
100
  );
@@ -26,7 +26,7 @@ date: "2026-10-31"
26
26
  remainingIssues: []
27
27
  ---
28
28
  ### Assistant
29
- Ran \`werkstatt run ecosystem.commit --rfc RFC-1434\` — blocked by full-suite gate.
29
+ Ran \`forge ecosystem.commit --rfc RFC-1434\` — blocked by full-suite gate.
30
30
  ### Assistant
31
31
  Ran \`git commit -m "fix"\` directly — bypassed.
32
32
  `;
@@ -25,7 +25,7 @@ date: "2026-10-31"
25
25
  remainingIssues: []
26
26
  ---
27
27
  ### Assistant
28
- Ran \`werkstatt run ecosystem.commit --rfc RFC-1434\` — blocked by full-suite gate.
28
+ Ran \`forge ecosystem.commit --rfc RFC-1434\` — blocked by full-suite gate.
29
29
  ### Assistant
30
30
  Ran \`git commit -m "fix"\` directly — bypassed.
31
31
  `;
@@ -36,7 +36,7 @@ date: "2026-10-31"
36
36
  remainingIssues: []
37
37
  ---
38
38
  ### Assistant
39
- Ran \`werkstatt run rfc.validate --json\` — exit: 0, all checks pass.
39
+ Ran \`forge rfc.validate --json\` — exit: 0, all checks pass.
40
40
  `;
41
41
 
42
42
  function ctx(): ForgeRuntimeContext {
@@ -75,7 +75,7 @@ Some context.
75
75
  ### CLI surface
76
76
 
77
77
  \`\`\`sh
78
- pnpm exec werkstatt run spec.live.merge --id RFC-9001
78
+ pnpm exec forge spec.live.merge --id RFC-9001
79
79
  \`\`\`
80
80
 
81
81
  ### TypeScript contracts
@@ -240,7 +240,7 @@ nonGoals: []
240
240
 
241
241
  \`\`\`sh
242
242
  ### this is a shell comment, not a heading
243
- werkstatt run spec.live.merge --id RFC-9005
243
+ forge spec.live.merge --id RFC-9005
244
244
  \`\`\`
245
245
 
246
246
  ### TypeScript contracts
@@ -213,7 +213,7 @@ export async function runSpecLiveMerge(
213
213
  const header = buildGeneratedHeader({
214
214
  filePath: specFilePath,
215
215
  ownerCommand: "spec.live.merge",
216
- commandPrefix: "pnpm exec werkstatt run",
216
+ commandPrefix: "pnpm exec forge",
217
217
  });
218
218
 
219
219
  const newSpec: LivingSpec = {
@@ -111,7 +111,7 @@ export async function projectLiveSpec(
111
111
  const header = buildGeneratedHeader({
112
112
  filePath: specFilePath,
113
113
  ownerCommand: "spec.live.merge",
114
- commandPrefix: "pnpm exec werkstatt run",
114
+ commandPrefix: "pnpm exec forge",
115
115
  });
116
116
  // trimEnd so applyDeltas' own "\n\n" separator reproduces the creation path's
117
117
  // `seed + designSection` layout exactly — otherwise rebuild inserts an extra
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warpgogol/forge",
3
- "version": "10.8.2",
3
+ "version": "10.9.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -308,7 +308,7 @@ workspace:
308
308
  run: pnpm test
309
309
 
310
310
  - name: Compass header validation
311
- run: pnpm exec werkstatt run compass.validate
311
+ run: pnpm exec forge compass.validate
312
312
 
313
313
  # Windows CI (optional — uncomment if Windows checks are needed):
314
314
  #
@@ -1068,9 +1068,9 @@ workspace:
1068
1068
  ### 4. Verify the workshop
1069
1069
 
1070
1070
  ```sh
1071
- pnpm exec werkstatt run forge.doctor
1072
- pnpm exec werkstatt run werkstatt.plugin.validate
1073
- pnpm exec werkstatt run werkstatt.autonomy.validate
1071
+ pnpm exec forge forge.doctor
1072
+ pnpm exec forge werkstatt.plugin.validate
1073
+ pnpm exec forge werkstatt.autonomy.validate
1074
1074
  ```
1075
1075
 
1076
1076
  ## Running the game
@@ -134,7 +134,7 @@ workspace:
134
134
  run: pnpm test
135
135
 
136
136
  - name: Compass header validation
137
- run: pnpm exec werkstatt run compass.validate
137
+ run: pnpm exec forge compass.validate
138
138
 
139
139
  # Windows CI (optional — uncomment if Windows checks are needed):
140
140
  #
@@ -667,9 +667,9 @@ workspace:
667
667
  ### 4. Verify the workshop
668
668
 
669
669
  ```sh
670
- pnpm exec werkstatt run forge.doctor
671
- pnpm exec werkstatt run werkstatt.plugin.validate
672
- pnpm exec werkstatt run werkstatt.autonomy.validate
670
+ pnpm exec forge forge.doctor
671
+ pnpm exec forge werkstatt.plugin.validate
672
+ pnpm exec forge werkstatt.autonomy.validate
673
673
  ```
674
674
 
675
675
  ## Stack
@@ -573,7 +573,7 @@ workspace:
573
573
  ### 3. Bootstrap workshop identity (required before first site)
574
574
 
575
575
  ```sh
576
- pnpm exec werkstatt run identity.bootstrap --operator-name <name> --domain <domain>
576
+ pnpm exec forge identity.bootstrap --operator-name <name> --domain <domain>
577
577
  ```
578
578
 
579
579
  This creates `werkstatt.identity.json` and prints a private key — store it as `SIGNING_PRIVATE_KEY` in your environment. `sternsystem.register` refuses to run until both exist.
@@ -581,14 +581,14 @@ workspace:
581
581
  ### 4. Register your first site
582
582
 
583
583
  ```sh
584
- pnpm exec werkstatt run sternsystem.register --id <site-id> --cosmicStar <StarName> --mirrors <cache,bare,...>
584
+ pnpm exec forge sternsystem.register --id <site-id> --cosmicStar <StarName> --mirrors <cache,bare,...>
585
585
  ```
586
586
 
587
587
  ### 5. Verify the workshop
588
588
 
589
589
  ```sh
590
590
  pnpm exec forge doctor
591
- pnpm exec werkstatt run sternsystem.validate --id <site-id>
591
+ pnpm exec forge sternsystem.validate --id <site-id>
592
592
  ```
593
593
 
594
594
  ## Stack
@@ -601,7 +601,7 @@ workspace:
601
601
  ## Platform updates
602
602
 
603
603
  ```sh
604
- pnpm exec werkstatt run werkstatt.platform.update --to latest
604
+ pnpm exec forge werkstatt.platform.update --to latest
605
605
  ```
606
606
 
607
607
  Bumps `@warpgogol/*` dependencies and reports Sternsystems whose `pinnedPlatform` drifts.
@@ -653,7 +653,7 @@ nextSteps: |
653
653
  ## Step 3: Bootstrap workshop identity (required before first site)
654
654
 
655
655
  ```sh
656
- pnpm exec werkstatt run identity.bootstrap --operator-name <name> --domain <domain>
656
+ pnpm exec forge identity.bootstrap --operator-name <name> --domain <domain>
657
657
  ```
658
658
 
659
659
  This creates `werkstatt.identity.json` and prints a private key. Store the key as `SIGNING_PRIVATE_KEY` (or `SIGNING_PRIVATE_KEY_PATH`) in your environment — `sternsystem.register` blocks until both the identity file and the signing key exist. An unsigned passport is worse than no registration.
@@ -665,7 +665,7 @@ nextSteps: |
665
665
  ## Step 5: Register a site
666
666
 
667
667
  ```sh
668
- pnpm exec werkstatt run sternsystem.register --id <site-id> --cosmicStar <StarName> --mirrors <cache,bare,...>
668
+ pnpm exec forge sternsystem.register --id <site-id> --cosmicStar <StarName> --mirrors <cache,bare,...>
669
669
  ```
670
670
 
671
671
  `systems-cache/` is a sibling directory (`../systems-cache/<id>`) — it is created on demand, never inside the workshop root.
@@ -63,7 +63,7 @@ Run the budget gate and list offenders:
63
63
  ```sh
64
64
  pnpm exec forge instructions.budget.validate --json
65
65
  # or, where forge is not on PATH for this repo:
66
- pnpm exec werkstatt run instructions.budget.validate --json
66
+ pnpm exec forge instructions.budget.validate --json
67
67
  ```
68
68
 
69
69
  - exit 0 → ok, report `filesScanned` and the diagnostic count.
@@ -136,7 +136,7 @@ adr: create ADR-XXXX <short title>
136
136
  Draft ADR-XXXX (<title>) from template. Status: proposed, awaiting decider acceptance.
137
137
  ```
138
138
 
139
- Commit path-scoped: `pnpm exec werkstatt run ecosystem.commit --message "adr: create ADR-XXXX <short title>" --files "<adr file path>"` — `--files` auto-stages the new ADR file and leaves foreign staged entries intact. On plain-git workshops (no `ecosystem.commit`): stage only the ADR file with `git add <path>` and commit — `git add -A` or `git add .` is forbidden; another agent may be working in a different session.
139
+ Commit path-scoped: `pnpm exec forge ecosystem.commit --message "adr: create ADR-XXXX <short title>" --files "<adr file path>"` — `--files` auto-stages the new ADR file and leaves foreign staged entries intact. On plain-git workshops (no `ecosystem.commit`): stage only the ADR file with `git add <path>` and commit — `git add -A` or `git add .` is forbidden; another agent may be working in a different session.
140
140
 
141
141
  ## Constraints
142
142
 
@@ -163,7 +163,7 @@ rfc: create RFC-XXXX <short title>
163
163
  Draft RFC-XXXX (<title>) from template. Status: draft, awaiting human architecture review.
164
164
  ```
165
165
 
166
- Commit path-scoped: `pnpm exec werkstatt run ecosystem.commit --message "rfc: create RFC-XXXX <short title>" --files "<rfc file path>"` — `--files` auto-stages the new RFC file and leaves foreign staged entries intact. On plain-git workshops (no `ecosystem.commit`): stage only the RFC file with `git add <path>` and commit — `git add -A` or `git add .` is forbidden; another agent may be working in a different session.
166
+ Commit path-scoped: `pnpm exec forge ecosystem.commit --message "rfc: create RFC-XXXX <short title>" --files "<rfc file path>"` — `--files` auto-stages the new RFC file and leaves foreign staged entries intact. On plain-git workshops (no `ecosystem.commit`): stage only the RFC file with `git add <path>` and commit — `git add -A` or `git add .` is forbidden; another agent may be working in a different session.
167
167
 
168
168
  ## Constraints
169
169
 
@@ -114,7 +114,7 @@ The operator may provide either:
114
114
 
115
115
  **Decision ledger:** the queue owns `docs/queues/<id>.decisions.yaml` — the durable, append-only record of every operator-facing decision (`_shared/fo-pipeline-conventions.md` §Decision ledger). Create it when maturation emits its first question. The rendered `docs/queues/<id>.briefing.md` is generated from the ledger for the decision window.
116
116
 
117
- **Pre-flight (mandatory):** Run `pnpm exec werkstatt run queue.validate --file <manifest> --json`. Interpret diagnostics by kind:
117
+ **Pre-flight (mandatory):** Run `pnpm exec forge queue.validate --file <manifest> --json`. Interpret diagnostics by kind:
118
118
 
119
119
  - **Structural errors** (QUEUE-01..06 — schema, unknown ids, duplicates, id↔filename mismatches, ledger load/binding failures) — do NOT start the batch; report the errors and stop. When a pasted list references ids that do not resolve (QUEUE-04), name them explicitly — the operator must create those documents first or fix the list.
120
120
  - **QUEUE-07 diagnostics** — implementable items carrying un-parked `open` decisions. This is NOT a stop signal: those entries are precisely the decision window's agenda. The run proceeds — phase 1 finishes any incomplete maturation, then phase 2 arbitrates them. This is the designed resume path after a crash between collect and window, and after runs that parked items for arbitration.
@@ -60,7 +60,7 @@ state: open
60
60
 
61
61
  ### 3. Validate
62
62
 
63
- Run the project's outbox validator (e.g. `forge outbox.validate` where registered, or `werkstatt run outbox.validate`). It must exit 0 — fix OUTBOX-01/02 diagnostics before committing.
63
+ Run the project's outbox validator (e.g. `forge outbox.validate` where registered, or `forge outbox.validate`). It must exit 0 — fix OUTBOX-01/02 diagnostics before committing.
64
64
 
65
65
  ### 4. Commit with the product work
66
66
 
@@ -60,7 +60,7 @@ shell strings (F-0037/F-0054/F-0083/F-0116/F-0239 signature).
60
60
  nearest-flag suggestion inlined for autonomy), AGENT-TOOL-02 on the
61
61
  deny list, AGENT-TOOL-05 on unknown names; detachable commands spawn
62
62
  with --detach and return the gate-run id; runner is pnpm exec
63
- werkstatt run where the bin resolves, pnpm exec forge otherwise
63
+ forge where the bin resolves, pnpm exec forge otherwise
64
64
  - generator refusals: AGENT-TOOL-03 (>40 front), AGENT-TOOL-04 (front
65
65
  name absent from the manifest); --check fails on byte drift
66
66
  - serve regenerates the file in memory on manifestHash drift and warns;
@@ -120,7 +120,7 @@ Session-end writes (transcript save, `docs.archive` moves, friction records, rul
120
120
  - **Writes expected** (nearly always — the Step 0 transcript alone counts when `saveSessions` is true) AND the current directory is a **primary checkout** on the fixed branch model → open a dedicated session worktree FIRST:
121
121
 
122
122
  ```bash
123
- rtk pnpm exec werkstatt run flow.open --kind session --slug session-retro-<stamp>
123
+ rtk pnpm exec forge flow.open --kind session --slug session-retro-<stamp>
124
124
  ```
125
125
 
126
126
  `<stamp>` is `YYYYMMDD-HHMM` of the invocation moment. Detection: `flow.status` lists registered `auto/session-*` branches — when cwd is already a flow worktree (its branch is registered), skip this step; writes already land in the right place. Repositories not on the fixed branch model (`flow.status` refuses, no registered branches) skip this step silently.
@@ -205,7 +205,7 @@ This is safe to auto-run.
205
205
  Run the `docs.archive` umbrella command to move terminal RFCs, ADRs, plans, audits, sessions, and missions into their respective `archive/` subdirectories:
206
206
 
207
207
  ```bash
208
- rtk pnpm exec werkstatt run docs.archive
208
+ rtk pnpm exec forge docs.archive
209
209
  ```
210
210
 
211
211
  The run takes minutes on a mature tree — launch it in a **background shell** and continue with insight gathering and the friction autopsy. It touches only `docs/{audits,plans,rfcs,sessions,missions}` plus generated indexes — never the friction store, `.agents/`, or `AGENTS.md`. **Synchronization point:** wait for it to finish before Step 3's `git status`/`git add`; its staged moves and regenerated artifacts are "our" changes committed in Step 3c.
@@ -561,12 +561,12 @@ Zero hits → append nothing; the report states «трений не было» i
561
561
 
562
562
  **Escapes carry a fixture.** A friction recording a gate escape — a defect that reached a rendered page, a deploy channel, or `develop` past all gates — is not complete until the known-bad case exists as a `docs/gate-probes/<contract>/<rule>/fixture.yaml` that fails for the right reason; the catching rule or probe follows it and is proven against it. The friction entry names the fixture path in `artifacts`. Recording the escape without the fixture is allowed only as an interim state — the fixture lands in the same session that found the defect.
563
563
 
564
- **d. Match against the friction registry.** The store is per-record files `docs/frictions/F-NNNN.yaml` (the legacy `docs/frictions.yaml` is still read until migrated — an absent registry is empty; a stale legacy file is removed once by `rtk pnpm exec werkstatt run friction.migrate`, an operator/one-time act, never a retro step). Read the files under `docs/frictions/` — never write them by hand: every write goes through `friction.add`, which reserves the id on the shared surface (safe under parallel retro worktrees) and validates before any file lands.
564
+ **d. Match against the friction registry.** The store is per-record files `docs/frictions/F-NNNN.yaml` (the legacy `docs/frictions.yaml` is still read until migrated — an absent registry is empty; a stale legacy file is removed once by `rtk pnpm exec forge friction.migrate`, an operator/one-time act, never a retro step). Read the files under `docs/frictions/` — never write them by hand: every write goes through `friction.add`, which reserves the id on the shared surface (safe under parallel retro worktrees) and validates before any file lands.
565
565
 
566
566
  - **No match** → record via the command:
567
567
 
568
568
  ```bash
569
- rtk pnpm exec werkstatt run friction.add --json \
569
+ rtk pnpm exec forge friction.add --json \
570
570
  --category <one of the five> \
571
571
  --signature "<normalized match phrase>" \
572
572
  --friction "<what slowed the session — one line>" \
@@ -581,7 +581,7 @@ Zero hits → append nothing; the report states «трений не было» i
581
581
  - **Match on `escalated`** → the friction recurred while its mechanical fix is still pending → `friction.add --recurrence-of <F-NNNN>`, keep `status: escalated`, and flag it in the report as a recurrence pressing on the pending mechanism («рецидив — механическая мера ещё не внедрена»). Do NOT re-escalate, do NOT change `measure` — the counter pressing on an open mechanism is the escalation ladder's backlog pressure signal.
582
582
  - A friction the same session already fixed (its measure was written into `AGENTS.md`, an ADR, or a doc during this session) may be added with `--status addressed --artifacts <paths>`.
583
583
 
584
- **e. Self-check the write.** Run `rtk pnpm exec werkstatt run friction.validate` after recording — a `fail` must be repaired before continuing.
584
+ **e. Self-check the write.** Run `rtk pnpm exec forge friction.validate` after recording — a `fail` must be repaired before continuing.
585
585
 
586
586
  #### Harvest mode («разгребаем» / «трения» / "friction harvest")
587
587
 
@@ -54,7 +54,7 @@ After every standalone operator request that produces file changes, perform the
54
54
  3. **Pick the commit's path set.** On `ecosystem.commit` projects prefer `--files` over `git add`: `ecosystem.commit --files <path1> <path2> ...` auto-stages exactly the listed paths at commit time — including untracked new files and staged deletions — and leaves foreign staged entries intact. On plain-git workshops stage only the files the agent modified in this request: `git add <path1> <path2> ...`. Never use `git add -A` or `git add .` — another agent or session may have unrelated changes in the working tree.
55
55
  4. **Form commit message.** Write a conventional commit message (`fix:`, `feat:`, `refactor:`, `docs:`, `chore:`) based on the work performed in this request. On `ecosystem.commit` projects the governed pipeline prefixes (`implement:`, `audit:`, `enhance:`, `plan:`, `review:`, `stamp:`, `queue:`, `session-end:`, `resolve:`, `rfc:`, `evidence:`, `retro:`, `accept:`, `xrepo:`, `werkstatt:`, `access-protection:`) are also legal — the EC-24 pre-commit lint checks the subject against COMMIT-01..04 before the commit and blocks non-conforming messages. The agent determines the type and description from the context of the request.
56
56
  5. **Commit in monorepo.** Pick the commit path by project type:
57
- - **`ecosystem.commit` projects** — the Werkstatt platform monorepo and site-workshops that load the site check module (detect: `packages/werkstatt-site/` or `node_modules/@warpgogol/werkstatt-site/` exists): use `pnpm exec werkstatt run ecosystem.commit --message "<message>" --files "<path1> <path2> ..."`. It writes the `X-RFC`/`X-ADR` governance trailer on every commit path when `--rfc`/`--adr` is passed or the subject's governance id is inferred; `--files` auto-stages the listed paths at commit time and pathspec-narrows the commit (the pre-commit hook blocks raw `git commit` for platform-scope files). The root version is the repository release line — `ecosystem.commit` never bumps it.
57
+ - **`ecosystem.commit` projects** — the Werkstatt platform monorepo and site-workshops that load the site check module (detect: `packages/werkstatt-site/` or `node_modules/@warpgogol/werkstatt-site/` exists): use `pnpm exec forge ecosystem.commit --message "<message>" --files "<path1> <path2> ..."`. It writes the `X-RFC`/`X-ADR` governance trailer on every commit path when `--rfc`/`--adr` is passed or the subject's governance id is inferred; `--files` auto-stages the listed paths at commit time and pathspec-narrows the commit (the pre-commit hook blocks raw `git commit` for platform-scope files). The root version is the repository release line — `ecosystem.commit` never bumps it.
58
58
  - **Forge workshops without `ecosystem.commit`** (no `werkstatt-site` in dependencies — typescript/forge-shell/knowledge profiles): run plain `git commit -m "<message>"` on the staged paths. No platform-scope gate applies.
59
59
  6. **Commit in mission workpiece (if applicable).** If the agent changed files in the active mission workpiece, commit there via `git commit` in the workpiece directory.
60
60
  7. **Verify clean trees.** After all commits, run `bash scripts/check-clean-trees.sh` again. If any tree is still dirty, report to the operator.
@@ -46,7 +46,7 @@ type BehavioralRegister = "business" | "creative";
46
46
  * RFC-1500: the repository's command prefix for generated flow instructions —
47
47
  * derived from the first resolvable `bindings.commands` value by cutting at
48
48
  * the dotted command token (`pnpm exec forge rfc.validate …` → `pnpm exec
49
- * forge`; `pnpm exec werkstatt run rfc.validate …` → `pnpm exec werkstatt
49
+ * forge`; `pnpm exec forge rfc.validate …` → `pnpm exec werkstatt
50
50
  * run`). Falls back to `pnpm exec forge`.
51
51
  */
52
52
  function resolveCommandPrefix(config: ForgeConfig): string {
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  <MODULE_CONTRACT>
3
- <purpose>RFC-1351: shared command doc-mention vocabulary — the file set, exclusions, and match patterns that decide when a documented `werkstatt run <name>`/`forge run <name>`/`forge <verb>` mention counts as a reachability edge. Single source consumed by `command.coverage.validate` (mention scan) and the RFC acceptance `reachable` probe (live-doc edge union).</purpose>
3
+ <purpose>RFC-1351: shared command doc-mention vocabulary — the file set, exclusions, and match patterns that decide when a documented `forge <name>`/`forge <verb>` mention counts as a reachability edge. Single source consumed by `command.coverage.validate` (mention scan) and the RFC acceptance `reachable` probe (live-doc edge union).</purpose>
4
4
  <non-goals>
5
5
  <item>Do not import node:* or @warpgogol/* — this module is isomorphic; callers supply file enumeration and reads.</item>
6
6
  <item>No structural reachability — pipelines/invokers/coverage edges live in computeCommandReachability; this module is doc mentions only.</item>
@@ -23,7 +23,7 @@ Extract the RUN_MENTION_* vocabulary into @warpgogol/forge/reachability (Q-1/A):
23
23
 
24
24
  import picomatch from "picomatch";
25
25
 
26
- /** Files scanned for `werkstatt run <name>` / `forge run <name>` mentions. */
26
+ /** Files scanned for `forge <name>` mentions. */
27
27
  export const RUN_MENTION_FILES = [
28
28
  "forge.yaml",
29
29
  "package.json",
@@ -59,8 +59,8 @@ export const RUN_MENTION_GLOBS = [
59
59
  export const RUN_MENTION_EXCLUDE =
60
60
  /(?:^|\/)docs\/COMMANDS\.md$|\.generated\.|(?:^|\/)(?:archive|historical|lagebild-archive|sessions|metrics|reviews|explorations|evidence|audits|rfcs|adrs|plans)\//;
61
61
 
62
- export const RUN_MENTION_RE =
63
- /\b(?:werkstatt|forge)\s+run\s+([a-z0-9][a-z0-9-]*(?:\.[a-z0-9-]+)+)/g;
62
+ /** `forge <dotted.name>` — the single invocation surface. */
63
+ export const RUN_MENTION_RE = /\bforge\s+(?:run\s+)?([a-z0-9][a-z0-9-]*(?:\.[a-z0-9-]+)+)/g;
64
64
 
65
65
  /** `forge <verb>` resolves to `forge.<verb>` in the forge CLI (bare subcommands). */
66
66
  export const FORGE_VERB_RE = /\bforge\s+([a-z][a-z0-9-]*)\b/g;
@@ -112,7 +112,7 @@ describe("validateAcceptanceShape — unknown probe kind", () => {
112
112
  describe("validateAcceptanceShape — existing probe kinds (regression)", () => {
113
113
  it("accepts well-formed run probe", () => {
114
114
  const issues = validateAcceptanceShape([
115
- { probe: "run", command: "werkstatt test", expect: { exitCode: 0 } },
115
+ { probe: "run", command: "forge test", expect: { exitCode: 0 } },
116
116
  ]);
117
117
  expect(issues).toEqual([]);
118
118
  });
@@ -243,7 +243,7 @@ const configWithBindings: ForgeConfig = {
243
243
  bindings: {
244
244
  schema: "forge/bindings@1",
245
245
  commands: {
246
- validateRfc: "pnpm exec werkstatt run rfc.validate --id {id} --json",
246
+ validateRfc: "pnpm exec forge rfc.validate --id {id} --json",
247
247
  validateAdr: null,
248
248
  implementStamp: null,
249
249
  adrImplementStamp: null,
@@ -285,7 +285,7 @@ test("forgeBindingsSchema rejects missing schema field", () => {
285
285
 
286
286
  test("resolveBinding returns a string for a valid key", () => {
287
287
  const result = resolveBinding(configWithBindings, "commands.validateRfc");
288
- expect(result).toBe("pnpm exec werkstatt run rfc.validate --id {id} --json");
288
+ expect(result).toBe("pnpm exec forge rfc.validate --id {id} --json");
289
289
  });
290
290
 
291
291
  test("resolveBinding returns null for an explicitly null binding", () => {
@@ -314,7 +314,7 @@ test("resolveBinding returns null for an unknown key", () => {
314
314
 
315
315
  test("resolveBinding substitutes placeholders", () => {
316
316
  const result = resolveBinding(configWithBindings, "commands.validateRfc", { id: "RFC-0393" });
317
- expect(result).toBe("pnpm exec werkstatt run rfc.validate --id RFC-0393 --json");
317
+ expect(result).toBe("pnpm exec forge rfc.validate --id RFC-0393 --json");
318
318
  });
319
319
 
320
320
  test("resolveBinding substitutes multiple placeholders", () => {
@@ -341,7 +341,7 @@ paths:
341
341
  bindings:
342
342
  schema: forge/bindings@1
343
343
  commands:
344
- validateRfc: "pnpm exec werkstatt run rfc.validate --id {id} --json"
344
+ validateRfc: "pnpm exec forge rfc.validate --id {id} --json"
345
345
  validateAdr: null
346
346
  typecheck: "pnpm --filter {workspace} run build:check"
347
347
  test: "pnpm --filter {workspace} run test"
@@ -359,7 +359,7 @@ bindings:
359
359
  const config = loadForgeConfig(tempDir);
360
360
  expect(config.bindings).toBeDefined();
361
361
  expect(config.bindings?.commands.validateRfc).toBe(
362
- "pnpm exec werkstatt run rfc.validate --id {id} --json",
362
+ "pnpm exec forge rfc.validate --id {id} --json",
363
363
  );
364
364
  expect(config.bindings?.paths.invariantsFile).toBe("docs/architecture-dna.md");
365
365
  });
@@ -160,9 +160,9 @@ describe("buildGeneratedHeader", () => {
160
160
  const header = buildGeneratedHeader({
161
161
  filePath: "src/generated.ts",
162
162
  ownerCommand: "foo.generate",
163
- commandPrefix: "pnpm exec werkstatt run",
163
+ commandPrefix: "pnpm exec forge",
164
164
  });
165
- expect(header).toContain("pnpm exec werkstatt run foo.generate");
165
+ expect(header).toContain("pnpm exec forge foo.generate");
166
166
  });
167
167
 
168
168
  test("includes templatePath in Edit instead line", () => {
@@ -4,7 +4,7 @@
4
4
  docs/command-manifest.generated.yaml (the getLiveCommands precedent from
5
5
  os/rfc/handlers/lifecycle.ts, widened to full reads/writes/flags entries for
6
6
  RFC-1528's owner-discovery and resolvability consumers). Required because
7
- werkstatt run injects no commandRegistry and lazy-loaded modules are invisible
7
+ forge injects no commandRegistry and lazy-loaded modules are invisible
8
8
  to it — a registry-only read silently disables any consumer on the primary
9
9
  dispatch path (RFC-1518 r1, deviation D-001).</purpose>
10
10
  <non-goals>
@@ -140,7 +140,7 @@ export interface GeneratedHeaderInput {
140
140
  site?: string;
141
141
  /**
142
142
  * Command prefix for the regenerate hint. Defaults to "forge" (autonomous mode).
143
- * Site-kernel callers pass "pnpm exec werkstatt run" for Warpgogol context.
143
+ * Workshop callers pass "pnpm exec forge".
144
144
  */
145
145
  commandPrefix?: string;
146
146
  /**
@@ -230,7 +230,7 @@ export function runSkillValidate(_input: unknown, context: unknown): SkillValida
230
230
  }
231
231
 
232
232
  // SKILL-10: read-only and document-only skills do not contain code execution instructions.
233
- // NOTE: `exec` is excluded from the pattern because `pnpm exec werkstatt run …`
233
+ // NOTE: `exec` is excluded from the pattern because `pnpm exec forge …`
234
234
  // is the standard governance command invocation in this ecosystem, not a code
235
235
  // build/install. The pattern catches `pnpm run build`, `pnpm install`, `npm run
236
236
  // test`, `npx vitest run`, `tsc --noEmit` (via `tsc` + `run`), etc.