@warpgogol/forge 10.8.1 → 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 +161 -161
  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
@@ -6,7 +6,7 @@
6
6
  per agentTools.front entry; command_run validates args against the
7
7
  generated schema (AGENT-TOOL-01 unknown argument, with the RFC-1514
8
8
  nearest-flag suggestion; AGENT-TOOL-02 denied command) and only then spawns
9
- the workshop host — `pnpm exec werkstatt run` where the bin resolves,
9
+ the workshop host — `pnpm exec forge`,
10
10
  `pnpm exec forge` otherwise — so every existing guard and hook applies.
11
11
  Detachable commands run with --detach and return the gate-run id.
12
12
  </purpose>
@@ -20,8 +20,6 @@
20
20
  */
21
21
 
22
22
  import { spawn } from "node:child_process";
23
- import { existsSync } from "node:fs";
24
- import { join } from "node:path";
25
23
 
26
24
  import type { AgentToolInputSchema, AgentToolDefinition, AgentToolsFile } from "./types.ts";
27
25
  import { toolNameFor } from "./types.ts";
@@ -220,10 +218,8 @@ function validateArgs(
220
218
  // existing hook and guard applies.
221
219
  // ---------------------------------------------------------------------------
222
220
 
223
- function resolveRunnerPrefix(workspaceRoot: string): string[] {
224
- return existsSync(join(workspaceRoot, "node_modules", ".bin", "werkstatt"))
225
- ? ["pnpm", "exec", "werkstatt", "run"]
226
- : ["pnpm", "exec", "forge"];
221
+ function resolveRunnerPrefix(_workspaceRoot: string): string[] {
222
+ return ["pnpm", "exec", "forge"];
227
223
  }
228
224
 
229
225
  /** Real runner: spawn the runner prefix, capture streams, parse the --json envelope. */
@@ -227,7 +227,7 @@ export async function runAuditArchive(
227
227
  : `Moved ${moved.length} file(s), skipped ${skipped.length}`,
228
228
  nextSteps: [
229
229
  {
230
- action: "Run: pnpm exec werkstatt run audit.list --json to verify archive status",
230
+ action: "Run: pnpm exec forge audit.list --json to verify archive status",
231
231
  kind: "optional",
232
232
  },
233
233
  ],
@@ -446,13 +446,13 @@ describe("forge.conformance.validate — CONF rules (AC-6)", () => {
446
446
  writeForgeYaml(`contractProducers:
447
447
  - id: intake
448
448
  emit:
449
- argv: ["pnpm", "exec", "werkstatt", "run", "emit.golden", "{bundle}"]
449
+ argv: ["pnpm", "exec", "forge", "emit.golden", "{bundle}"]
450
450
  mirror:
451
- argv: ["pnpm", "exec", "werkstatt", "run", "check.golden", "{bundle}"]
451
+ argv: ["pnpm", "exec", "forge", "check.golden", "{bundle}"]
452
452
  consumer:
453
453
  root: "./no-such-checkout"
454
454
  validator:
455
- argv: ["pnpm", "exec", "werkstatt", "run", "x.validate", "--bundle", "{bundle}"]
455
+ argv: ["pnpm", "exec", "forge", "x.validate", "--bundle", "{bundle}"]
456
456
  test: "tests/c.test.ts"
457
457
  `);
458
458
  mkdirSync(join(ws, "tests"), { recursive: true });
@@ -170,7 +170,7 @@ export async function runContextAssemble(
170
170
  skipped: 0,
171
171
  },
172
172
  summary:
173
- "CONTEXT-01 index missing — run `werkstatt run context.index.build` or --auto-index",
173
+ "CONTEXT-01 index missing — run `forge context.index.build` or --auto-index",
174
174
  exitCode: 1,
175
175
  };
176
176
  }
@@ -414,7 +414,7 @@ describe("docs.archive runArchiveRegen (RFC-1528 AC-1/AC-7)", () => {
414
414
  expect(outcome.regenerated).toEqual(["docs/rfcs/index.yaml", "docs/ecosystem.generated.yaml"]);
415
415
  });
416
416
 
417
- it("werkstatt run host shape — no commandRegistry, manifest-derived inventory still regens", async () => {
417
+ it("forge host shape — no commandRegistry, manifest-derived inventory still regens", async () => {
418
418
  const root = mkdtempSync(path.join(tmpdir(), "archive-regen-"));
419
419
  mkdirSync(path.join(root, "docs"), { recursive: true });
420
420
  writeFileSync(
@@ -476,7 +476,7 @@ export function deriveModulePackageMap(workspaceRoot: string): {
476
476
  * command.manifest.generate consumes) UNION docs/command-manifest.generated.yaml
477
477
  * — the getLiveCommands merge pattern from os/rfc/handlers/lifecycle.ts.
478
478
  * Registry entries win on collision; the manifest covers commands whose modules
479
- * are not loaded in the current dispatch (werkstatt run injects no registry;
479
+ * are not loaded in the current dispatch (forge injects no registry;
480
480
  * site-scope modules live outside the forge registry).
481
481
  */
482
482
  export function loadCommandInventory(
@@ -1167,7 +1167,7 @@ export async function runPackageHealth(
1167
1167
  "no command inventory available — docs-drift gate skipped (context.commandRegistry unset and docs/command-manifest.generated.yaml absent or unparsable)",
1168
1168
  file: workspaceRoot,
1169
1169
  fixHint:
1170
- "Run `werkstatt run command.manifest.generate`, or dispatch through a host that injects commandRegistry.",
1170
+ "Run `forge command.manifest.generate`, or dispatch through a host that injects commandRegistry.",
1171
1171
  });
1172
1172
  } else if (packagesChecked > 0 && commandInfos.length > 0 && attributed === 0) {
1173
1173
  // Inventory exists but no command resolved to a package — module→package
@@ -27,7 +27,7 @@ READ_ONLY_GIT_QUERIES / isReadOnlyGitQuery replace the recording adapter's
27
27
  first-argument allowlist; the read-only adapter and the static scan use the same
28
28
  table. The kernel forwards --dry-run into commands that declare a dry-run flag,
29
29
  and flow.push / flow.hold dry-runs no longer fetch. The switch-over runbook goes
30
- back to werkstatt run flow.install --dry-run.</item>
30
+ back to forge flow.install --dry-run.</item>
31
31
  <item>RFC-1515: harden forge flow worktree lifecycle against vanished paths, forge-local state, dead-holder locks and generated drift</item>
32
32
  <item>RFC-1515: close rfc-1515 review findings — delete tolerated paths before worktree remove, prune vanished registrations, verified branch -D, shared held-lock render, gated e2e throw, journal toleratedState, edge tests</item>
33
33
  <history>RFC-1491</history>
@@ -1009,11 +1009,11 @@ async function integrateFlowBranchAttempt(
1009
1009
  ...owners.map((o) => o.command),
1010
1010
  "ecosystem.manifest.validate",
1011
1011
  ]);
1012
- // RFC-1574: the standalone fallback spawns `pnpm exec werkstatt run`
1013
- // in the worktree — without an engine build there it cannot run, and
1014
- // the owners are skipped rather than refused.
1012
+ // RFC-1574: the standalone fallback spawns `pnpm exec forge <owner>` in
1013
+ // the worktree — without an installed forge there it cannot run, and the
1014
+ // owners are skipped rather than refused.
1015
1015
  const notRunnable =
1016
- !kernelBoundHere && !(await io.exists(join(worktree, "node_modules", ".bin", "werkstatt")))
1016
+ !kernelBoundHere && !(await io.exists(join(worktree, "node_modules", ".bin", "forge")))
1017
1017
  ? new Set(owners.map((o) => o.command))
1018
1018
  : undefined;
1019
1019
  const regen = await regenerateAfterRebase({
@@ -891,7 +891,7 @@ export async function runIntegratePreflight(
891
891
  const skipped: PreflightSkip[] = [];
892
892
  const tolerated: ToleratedEntry[] = [];
893
893
  const { io } = opts;
894
- // D-001 union: werkstatt run supplies invoke but no commandRegistry — the
894
+ // D-001 union: forge supplies invoke but no commandRegistry — the
895
895
  // generated manifest (in the primary checkout) covers resolvability.
896
896
  const commands = opts.commands ?? loadLiveCommandInventory(opts.primary, opts.commandRegistry);
897
897
  const commandNames = new Set(commands.map((c) => c.name));
@@ -1302,7 +1302,7 @@ export async function runIntegratePreflight(
1302
1302
  ruleId: "FLOW-INT-12",
1303
1303
  message: `preflight: ecosystem.manifest.validate refused — ${manifestDrift.summary ?? `exit ${manifestDrift.exitCode}`}`,
1304
1304
  fixHint:
1305
- "regenerate the manifest via `pnpm exec werkstatt run ecosystem.manifest.generate`, commit, then re-run flow.integrate",
1305
+ "regenerate the manifest via `pnpm exec forge ecosystem.manifest.generate`, commit, then re-run flow.integrate",
1306
1306
  data: { command: "ecosystem.manifest.validate", summary: manifestDrift.summary },
1307
1307
  },
1308
1308
  };
@@ -2,7 +2,7 @@
2
2
  <MODULE_CONTRACT>
3
3
  <purpose>Standalone invoke adapter for flow handlers (RFC-1545) — when no
4
4
  kernel invoke port is present, generated-owner regeneration commands still
5
- run by spawning `pnpm exec werkstatt run <command>` inside the session
5
+ run by spawning `pnpm exec forge <command>` inside the session
6
6
  worktree, allowlisted to the declared generated-path owners only.</purpose>
7
7
  <non-goals>
8
8
  <item>No in-process dispatch — forge's standalone registry builder lives in bin/cli.ts and is not an os/ seam; the spawn contract keeps the adapter kernel-free (FORGE-AUTONOMY-01).</item>
@@ -10,7 +10,7 @@ worktree, allowlisted to the declared generated-path owners only.</purpose>
10
10
  </non-goals>
11
11
  </MODULE_CONTRACT>
12
12
  <KEY_DECISIONS>
13
- <item>Spawn over in-process dispatch — the standalone CLI has no registry surface; `pnpm exec werkstatt run` resolves the worktree's engine.</item>
13
+ <item>Spawn over in-process dispatch — the standalone CLI has no registry surface; `pnpm exec forge` resolves the worktree's own forge and plugins.</item>
14
14
  <item>The allowlist is caller-derived (verdict.owners) — classifyRebaseConflicts names only recovered/generated-marker owners.</item>
15
15
  </KEY_DECISIONS>
16
16
  <CHANGE_SUMMARY>
@@ -40,9 +40,9 @@ function flagArgs(flags?: Record<string, ForgeFlagValue>): string[] {
40
40
 
41
41
  /**
42
42
  * RFC-1545 AC-2: `ForgeInvokeCommand` for the standalone `forge` CLI —
43
- * resolves each allowlisted owner command through `pnpm exec werkstatt run`
43
+ * resolves each allowlisted owner command through `pnpm exec forge`
44
44
  * spawned in the session worktree (the worktree's own dependency graph
45
- * decides which werkstatt build answers). Non-allowlisted commands fail
45
+ * decides which forge build and plugins answer). Non-allowlisted commands fail
46
46
  * closed; a spawn failure or non-zero exit surfaces as a ForgeInvokeResult
47
47
  * the caller escalates to FLOW-INT-02.
48
48
  */
@@ -64,7 +64,7 @@ export function standaloneInvoke(
64
64
  try {
65
65
  result = await io.exec(
66
66
  "pnpm",
67
- ["exec", "werkstatt", "run", commandName, ...flagArgs(flags)],
67
+ ["exec", "forge", commandName, ...flagArgs(flags)],
68
68
  { cwd: worktreePath },
69
69
  );
70
70
  } catch (error) {
@@ -25,7 +25,7 @@ READ_ONLY_GIT_QUERIES / isReadOnlyGitQuery replace the recording adapter's
25
25
  first-argument allowlist; the read-only adapter and the static scan use the same
26
26
  table. The kernel forwards --dry-run into commands that declare a dry-run flag,
27
27
  and flow.push / flow.hold dry-runs no longer fetch. The switch-over runbook goes
28
- back to werkstatt run flow.install --dry-run.</item>
28
+ back to forge flow.install --dry-run.</item>
29
29
  <item>RFC-1616: close RFC-1616 r11 trust-boundary counterexamples
30
30
 
31
31
  Independent clean-context verification (round 11, candidate 029219ca9)
@@ -357,7 +357,7 @@ describe("runIntegratePreflight (RFC-1528 AC-2/AC-4)", () => {
357
357
  expect(result.checked).toContain("rfc.validate:RFC-1528");
358
358
  });
359
359
 
360
- it("manifest-only inventory (werkstatt run host shape) still resolves validators", async () => {
360
+ it("manifest-only inventory (forge host shape) still resolves validators", async () => {
361
361
  const commands = ALL_VALIDATORS.map(
362
362
  (name) =>
363
363
  ({
@@ -613,7 +613,7 @@ describe("flow.integrate — RFC-1538 post-lock revalidation, session engine, au
613
613
  "command: rfc.index.generate\ngeneratedAt: 2026-11-08\ncount: 9\n",
614
614
  );
615
615
 
616
- // No invoke port — the adapter spawns `pnpm exec werkstatt run …` in the
616
+ // No invoke port — the adapter spawns `pnpm exec forge …` in the
617
617
  // bare fixture worktree where no werkstatt binary resolves; the failure
618
618
  // escalates as FLOW-INT-02, proving the standalone path engaged.
619
619
  const data = await integrateFlowBranch(repo, ambientIo, {
@@ -20,7 +20,7 @@ READ_ONLY_GIT_QUERIES / isReadOnlyGitQuery replace the recording adapter's
20
20
  first-argument allowlist; the read-only adapter and the static scan use the same
21
21
  table. The kernel forwards --dry-run into commands that declare a dry-run flag,
22
22
  and flow.push / flow.hold dry-runs no longer fetch. The switch-over runbook goes
23
- back to werkstatt run flow.install --dry-run.</item>
23
+ back to forge flow.install --dry-run.</item>
24
24
  <item>RFC-1616: close RFC-1616 r12 trust-boundary counterexamples</item>
25
25
  </CHANGE_SUMMARY>
26
26
  */
@@ -102,7 +102,7 @@ describe("detachSelf", () => {
102
102
  const lines = detachPointerLines(
103
103
  { pid: 1, runId: "gr-x", logPath: join(gateRunsDir(common), "gr-x.log") },
104
104
  common,
105
- "pnpm exec werkstatt run gate.run.status",
105
+ "pnpm exec forge gate.run.status",
106
106
  );
107
107
  expect(lines[0]).toContain("gr-x");
108
108
  expect(lines[1]).toContain(".git/forge/gate-runs/gr-x.log");
@@ -226,7 +226,7 @@ export async function runPlanArchive(
226
226
  : `Moved ${moved.length} file(s), skipped ${skipped.length}`,
227
227
  nextSteps: [
228
228
  {
229
- action: "Run: pnpm exec werkstatt run plan.list --json to verify archive status",
229
+ action: "Run: pnpm exec forge plan.list --json to verify archive status",
230
230
  kind: "optional",
231
231
  },
232
232
  ],
@@ -28,7 +28,7 @@ scope:
28
28
  ### 2.1 Code and commands
29
29
 
30
30
  <!-- packages/*, services/*, apps/* files.
31
- Site OS commands (pnpm exec werkstatt run ...).
31
+ Site OS commands (pnpm exec forge ...).
32
32
  Registry entries, module registrations, pipeline wiring. -->
33
33
 
34
34
  ### 2.2 Configuration and data
@@ -88,16 +88,16 @@ scope:
88
88
  - Update affected `docs/*.xml` Compass files (requirements, technology, development-plan, knowledge-graph, verification-plan, source-markup, styling) when repository-wide semantics changed.
89
89
  - Update `docs/architecture-dna.md` if a new DNA invariant was introduced.
90
90
  - **Verify every file listed in `scope.docs` is updated** — check each path against `git diff`; if a scope doc was not modified, document why.
91
- - Run `pnpm exec werkstatt run ecosystem.manifest.generate` if command surfaces or pipeline topology changed (do not hand-edit `docs/ecosystem.generated.yaml`).
91
+ - Run `pnpm exec forge ecosystem.manifest.generate` if command surfaces or pipeline topology changed (do not hand-edit `docs/ecosystem.generated.yaml`).
92
92
  - **Run code review:** invoke `fo-review` via the `skill` tool on all session code changes (`git diff <merge-base-of-session>...HEAD`). Wait for the review report in `docs/reviews/code/`.
93
93
  - **Run fix if needed:** if `fo-review` reported findings, invoke `fo-fix` via the `skill` tool. Re-run `fo-review` to confirm all findings are resolved. Maximum 3 iterations.
94
94
  - **Check off acceptance criteria:** verify each criterion in the RFC against the implemented code. Mark `[x]` for verified criteria. For unchecked `[ ]` criteria, document why (e.g. "requires runtime command blocked by environment").
95
- - **Stamp the RFC as implemented:** run `pnpm exec werkstatt run rfc.implement.stamp --id RFC-XXXX --implementation-commit <sha>` to atomically transition `accepted → implemented` (RFC-0476). The command validates all preconditions (status, criteria, clean tree, commit reachability). Do NOT hand-edit `status`, `implementedAt`, or `closedAt` fields — use the command.
95
+ - **Stamp the RFC as implemented:** run `pnpm exec forge rfc.implement.stamp --id RFC-XXXX --implementation-commit <sha>` to atomically transition `accepted → implemented` (RFC-0476). The command validates all preconditions (status, criteria, clean tree, commit reachability). Do NOT hand-edit `status`, `implementedAt`, or `closedAt` fields — use the command.
96
96
 
97
97
  **Validation:**
98
98
 
99
99
  - `git status` — no uncommitted changes from the current session.
100
- - `pnpm exec werkstatt run rfc.validate --id RFC-XXXX`
100
+ - `pnpm exec forge rfc.validate --id RFC-XXXX`
101
101
  - Every file in `scope.docs` is either updated or documented as not-applicable.
102
102
  - Review report exists in `docs/reviews/code/` for this session.
103
103
 
@@ -111,10 +111,10 @@ scope:
111
111
 
112
112
  <!-- Commands that must pass before stamping implemented (RFC-0224). -->
113
113
 
114
- - `pnpm exec werkstatt run rfc.validate --id RFC-XXXX`
114
+ - `pnpm exec forge rfc.validate --id RFC-XXXX`
115
115
  - `pnpm --filter <package> run build:check`
116
- - `pnpm exec werkstatt run rfc.acceptance.run --id RFC-XXXX` (if acceptance probes declared)
117
- - `pnpm exec werkstatt run rfc.verification.emit --id RFC-XXXX` (RFC-0330, for probe-bearing RFCs created on or after 2026-07-07)
116
+ - `pnpm exec forge rfc.acceptance.run --id RFC-XXXX` (if acceptance probes declared)
117
+ - `pnpm exec forge rfc.verification.emit --id RFC-XXXX` (RFC-0330, for probe-bearing RFCs created on or after 2026-07-07)
118
118
 
119
119
  ### 4.2 Evidence artifacts
120
120
 
@@ -137,7 +137,7 @@ scope:
137
137
  <!-- Conditions that should trigger rfc.supersede.propose (RFC-0334)
138
138
  instead of working around an invariant conflict. -->
139
139
 
140
- - If implementation reveals an invariant conflict with DNA-N, run `pnpm exec werkstatt run rfc.supersede.propose --id RFC-XXXX --reason "..." --invariant "DNA-N"` instead of working around it.
140
+ - If implementation reveals an invariant conflict with DNA-N, run `pnpm exec forge rfc.supersede.propose --id RFC-XXXX --reason "..." --invariant "DNA-N"` instead of working around it.
141
141
 
142
142
  ## Falsified routes
143
143
 
@@ -150,7 +150,7 @@ describe("reachable probe (RFC-1334)", () => {
150
150
  await repo({
151
151
  "docs/command-manifest.generated.yaml":
152
152
  "commands:\n - name: lonely.run\n reachableVia: []\n",
153
- "AGENTS.md": "# Guide\n\nRun: `werkstatt run lonely.run --json` before shipping.\n",
153
+ "AGENTS.md": "# Guide\n\nRun: `forge lonely.run --json` before shipping.\n",
154
154
  });
155
155
  const res = await probeReachableCommand({ workspaceRoot: root, command: "lonely.run" });
156
156
  expect(res.ok, "AGENTS.md mention must count as a doc edge").toBe(true);
@@ -161,7 +161,7 @@ describe("reachable probe (RFC-1334)", () => {
161
161
  await repo({
162
162
  "docs/command-manifest.generated.yaml":
163
163
  "commands:\n - name: lonely.run\n reachableVia: []\n",
164
- "docs/rfcs/rfc-9999-x.md": "Mentioned: `werkstatt run lonely.run` — historical.\n",
164
+ "docs/rfcs/rfc-9999-x.md": "Mentioned: `forge lonely.run` — historical.\n",
165
165
  });
166
166
  expect(
167
167
  (await probeReachableCommand({ workspaceRoot: root, command: "lonely.run" })).ok,
@@ -184,7 +184,7 @@ describe("reachable probe (RFC-1334)", () => {
184
184
  await repo({
185
185
  "docs/command-manifest.generated.yaml":
186
186
  "commands:\n - name: ci.gate\n reachableVia: []\n",
187
- ".github/workflows/ci.yml": "steps:\n - run: pnpm exec werkstatt run ci.gate\n",
187
+ ".github/workflows/ci.yml": "steps:\n - run: pnpm exec forge ci.gate\n",
188
188
  });
189
189
  expect((await probeReachableCommand({ workspaceRoot: root, command: "ci.gate" })).ok).toBe(
190
190
  true,
@@ -199,7 +199,7 @@ describe("reachable probe (RFC-1334)", () => {
199
199
  // Written after `git add -A` — untracked on disk, still a live doc mention.
200
200
  await fs.writeFile(
201
201
  path.join(root, "AGENTS.md"),
202
- "# Guide\n\nRun: `werkstatt run lonely.run` before shipping.\n",
202
+ "# Guide\n\nRun: `forge lonely.run` before shipping.\n",
203
203
  );
204
204
  expect((await probeReachableCommand({ workspaceRoot: root, command: "lonely.run" })).ok).toBe(
205
205
  true,
@@ -9,7 +9,7 @@ prose checklist.
9
9
  </purpose>
10
10
  <non-goals>
11
11
  <item>Do not run automatically inside rfc.validate — probes may run builds; on-demand only.</item>
12
- <item>Do not allow arbitrary shell in `run` probes — the command string must start with "werkstatt ".</item>
12
+ <item>Do not allow arbitrary shell in `run` probes — the command string must start with "forge " and runs through the forge CLI.</item>
13
13
  </non-goals>
14
14
  </MODULE_CONTRACT>
15
15
  <CHANGE_SUMMARY>
@@ -55,7 +55,7 @@ import { evaluateAcceptanceCriteria, computeProbeCoverage } from "./handlers/val
55
55
  // with `const io = resolveIo(context.io)` inside their own scope.
56
56
  const io = ambientIo;
57
57
 
58
- const RUN_PROBE_ALLOWED_PREFIX = "werkstatt ";
58
+ const RUN_PROBE_ALLOWED_PREFIX = "forge ";
59
59
 
60
60
  async function loadManifestCommandNames(workspaceRoot: string): Promise<Set<string>> {
61
61
  const manifestPath = path.join(workspaceRoot, "docs", "command-manifest.generated.yaml");
@@ -285,7 +285,7 @@ export function validateAcceptanceShape(value: unknown): AcceptanceShapeIssue[]
285
285
  return issues;
286
286
  }
287
287
 
288
- async function spawnSiteKernel(
288
+ async function spawnForgeCli(
289
289
  workspaceRoot: string,
290
290
  commandLine: string,
291
291
  timeoutMs?: number,
@@ -295,10 +295,11 @@ async function spawnSiteKernel(
295
295
  .trim()
296
296
  .split(/\s+/)
297
297
  .filter(Boolean);
298
- const binPath = path.join(workspaceRoot, "packages", "werkstatt-engine", "bin", "werkstatt.mjs");
298
+ // The probe runs the consumer's own forge CLI — the same surface operators use.
299
+ const binPath = path.join(workspaceRoot, "node_modules", ".bin", "forge");
299
300
 
300
301
  return new Promise((resolve) => {
301
- const child = spawn(process.execPath, [binPath, ...args], {
302
+ const child = spawn(binPath, args, {
302
303
  cwd: workspaceRoot,
303
304
  stdio: "ignore",
304
305
  });
@@ -384,7 +385,7 @@ export async function runProbe(
384
385
  detail: `rejected: command must start with "${RUN_PROBE_ALLOWED_PREFIX}"`,
385
386
  };
386
387
  }
387
- const { exitCode, timedOut } = await spawnSiteKernel(
388
+ const { exitCode, timedOut } = await spawnForgeCli(
388
389
  workspaceRoot,
389
390
  probe.command,
390
391
  probe.timeoutMs,
@@ -273,7 +273,7 @@ export async function runRfcArchive(
273
273
  } catch (refreshErr) {
274
274
  if (outputFormat === "pretty") {
275
275
  logger.warn(
276
- `rfc.archive: index refresh failed — run 'pnpm exec werkstatt run rfc.index.generate --write' manually: ${refreshErr instanceof Error ? refreshErr.message : String(refreshErr)}`,
276
+ `rfc.archive: index refresh failed — run 'pnpm exec forge rfc.index.generate --write' manually: ${refreshErr instanceof Error ? refreshErr.message : String(refreshErr)}`,
277
277
  );
278
278
  }
279
279
  }
@@ -293,7 +293,7 @@ export async function runRfcArchive(
293
293
  : `Moved ${moved.length} file(s), skipped ${skipped.length}`,
294
294
  nextSteps: [
295
295
  {
296
- action: "Run: pnpm exec werkstatt run rfc.list --json to verify archive status",
296
+ action: "Run: pnpm exec forge rfc.list --json to verify archive status",
297
297
  kind: "optional",
298
298
  },
299
299
  ],
@@ -38,7 +38,7 @@ const pageProbe: AcceptanceProbe = {
38
38
 
39
39
  const runProbe: AcceptanceProbe = {
40
40
  probe: "run",
41
- command: "werkstatt run mission.validate --site site-a --json",
41
+ command: "forge mission.validate --site site-a --json",
42
42
  expect: { exitCode: 0 },
43
43
  criterion: "AC-2",
44
44
  };
@@ -76,7 +76,7 @@ const gate = (over: Partial<Parameters<typeof evaluateOutcomeGate>[0]> = {}) =>
76
76
  rfcRelPath: "docs/rfcs/rfc-9001-x.md",
77
77
  implementationCommit: "implsha",
78
78
  outcomeSurfaces: SURFACES,
79
- outcomeBuild: "pnpm exec werkstatt run mission.validate --site {target} --json",
79
+ outcomeBuild: "pnpm exec forge mission.validate --site {target} --json",
80
80
  ...over,
81
81
  });
82
82
 
@@ -112,7 +112,7 @@ describe("RFC-IMP-14 outcome gate (AC-5)", () => {
112
112
  it("a `run` probe that is not the outcomeBuild binding does not satisfy the gate", async () => {
113
113
  const otherRun: AcceptanceProbe = {
114
114
  probe: "run",
115
- command: "werkstatt run some.other --site site-a",
115
+ command: "forge some.other --site site-a",
116
116
  expect: { exitCode: 0 },
117
117
  criterion: "AC-2",
118
118
  };
@@ -164,29 +164,29 @@ describe("RFC-IMP-14 outcome gate (AC-7)", () => {
164
164
  });
165
165
 
166
166
  describe("runProbeMatchesOutcomeBuild / normalizeOutcomeBuildCommand", () => {
167
- const binding = "pnpm exec werkstatt run mission.validate --site {target} --json";
167
+ const binding = "pnpm exec forge mission.validate --site {target} --json";
168
168
 
169
169
  it("strips the pnpm exec prefix and substitutes {target}", () => {
170
170
  expect(normalizeOutcomeBuildCommand(binding)).toBe(
171
- "werkstatt run mission.validate --site {target} --json",
171
+ "forge mission.validate --site {target} --json",
172
172
  );
173
- expect(runProbeMatchesOutcomeBuild("werkstatt run mission.validate --site dp7 --json", binding)).toBe(
173
+ expect(runProbeMatchesOutcomeBuild("forge mission.validate --site dp7 --json", binding)).toBe(
174
174
  true,
175
175
  );
176
176
  });
177
177
 
178
178
  it("collapses whitespace differences", () => {
179
179
  expect(
180
- runProbeMatchesOutcomeBuild("werkstatt run mission.validate --site dp7 --json", binding),
180
+ runProbeMatchesOutcomeBuild("forge mission.validate --site dp7 --json", binding),
181
181
  ).toBe(true);
182
182
  });
183
183
 
184
184
  it("rejects a different command", () => {
185
- expect(runProbeMatchesOutcomeBuild("werkstatt run other.cmd --site dp7", binding)).toBe(false);
185
+ expect(runProbeMatchesOutcomeBuild("forge other.cmd --site dp7", binding)).toBe(false);
186
186
  });
187
187
 
188
188
  it("rejects when the binding is absent", () => {
189
- expect(runProbeMatchesOutcomeBuild("werkstatt run mission.validate --site dp7 --json", null)).toBe(
189
+ expect(runProbeMatchesOutcomeBuild("forge mission.validate --site dp7 --json", null)).toBe(
190
190
  false,
191
191
  );
192
192
  });
@@ -925,7 +925,7 @@ export async function runRfcImplementStamp(
925
925
  violations.push({
926
926
  rule: "EVIDENCE-SYNC-01",
927
927
  message:
928
- "--sync requires the werkstatt kernel host (context.invoke is absent). Run via `pnpm exec werkstatt run rfc.implement.stamp --id <id> --sync`, or resync manually.",
928
+ "--sync requires the werkstatt kernel host (context.invoke is absent). Run via `pnpm exec forge rfc.implement.stamp --id <id> --sync`, or resync manually.",
929
929
  });
930
930
  return stampFailResult(violations, isDryRun, outputFormat, logger);
931
931
  }
@@ -248,7 +248,7 @@ export async function runRfcIndexValidate(
248
248
  violations.push({
249
249
  rule: "RFC-IDX-01",
250
250
  message:
251
- "docs/rfcs/index.yaml not found. Run `pnpm exec werkstatt run rfc.index.generate --write` to generate it.",
251
+ "docs/rfcs/index.yaml not found. Run `pnpm exec forge rfc.index.generate --write` to generate it.",
252
252
  });
253
253
  const result = { command: "rfc.index.validate", status: "fail", violations };
254
254
  if (outputFormat === "pretty") {
@@ -290,7 +290,7 @@ export async function runRfcIndexValidate(
290
290
  if (indexCount !== fileCount) {
291
291
  violations.push({
292
292
  rule: "RFC-IDX-03",
293
- message: `Index entry count (${indexCount}) does not match RFC file count (${fileCount}). Run \`pnpm exec werkstatt run rfc.index.generate --write\` to refresh.`,
293
+ message: `Index entry count (${indexCount}) does not match RFC file count (${fileCount}). Run \`pnpm exec forge rfc.index.generate --write\` to refresh.`,
294
294
  });
295
295
  }
296
296
 
@@ -156,7 +156,7 @@ export async function runRfcList(
156
156
  entries.length === 0
157
157
  ? [
158
158
  {
159
- action: `Create a new RFC: pnpm exec werkstatt run rfc.create --title "..."`,
159
+ action: `Create a new RFC: pnpm exec forge rfc.create --title "..."`,
160
160
  kind: "optional",
161
161
  },
162
162
  ]
@@ -603,7 +603,7 @@ export async function runRfcCreate(
603
603
  summary: `Created ${nextId}: ${title}`,
604
604
  nextSteps: [
605
605
  {
606
- action: `Validate the RFC: pnpm exec werkstatt run rfc.validate --id ${nextId}`,
606
+ action: `Validate the RFC: pnpm exec forge rfc.validate --id ${nextId}`,
607
607
  kind: "optional",
608
608
  },
609
609
  ],
@@ -323,7 +323,7 @@ export async function runRfcEvidenceSync(
323
323
  {
324
324
  rule: "EVIDENCE-SYNC-01",
325
325
  message:
326
- "rfc.evidence.sync requires the werkstatt kernel host (context.invoke is absent). Run it via `pnpm exec werkstatt run rfc.evidence.sync`.",
326
+ "rfc.evidence.sync requires the werkstatt kernel host (context.invoke is absent). Run it via `pnpm exec forge rfc.evidence.sync`.",
327
327
  },
328
328
  ];
329
329
  if (outputFormat === "pretty") {
@@ -81,8 +81,8 @@ paths: {}
81
81
  bindings:
82
82
  schema: forge/bindings@1
83
83
  commands:
84
- outcomeBuild: pnpm exec werkstatt run mission.validate --site {target} --json
85
- outcomeServe: pnpm exec werkstatt run outcome.serve --site {target}
84
+ outcomeBuild: pnpm exec forge mission.validate --site {target} --json
85
+ outcomeServe: pnpm exec forge outcome.serve --site {target}
86
86
  paths: {}
87
87
  outcomeSurfaces:
88
88
  - packages/werkstatt-site/src/domain/ui/**
@@ -25,7 +25,7 @@ beforeAll(() => {
25
25
  mkdirSync(join(testWorkspace, "docs"), { recursive: true });
26
26
  writeFileSync(
27
27
  join(testWorkspace, "forge.yaml"),
28
- 'bindings:\n commands:\n outcomeBuild: "werkstatt run leitstand.build --id {target}"\n',
28
+ 'bindings:\n commands:\n outcomeBuild: "forge leitstand.build --id {target}"\n',
29
29
  );
30
30
  writeFileSync(
31
31
  join(testWorkspace, "docs", "command-manifest.generated.yaml"),
@@ -172,7 +172,7 @@ describe("V-54: transient probe targets (RFC-1569)", () => {
172
172
  {
173
173
  probe: "run",
174
174
  criterion: "AC-1",
175
- command: "werkstatt run mission.validate --mission m000219 --json",
175
+ command: "forge mission.validate --mission m000219 --json",
176
176
  },
177
177
  ]),
178
178
  );
@@ -186,7 +186,7 @@ describe("V-54: transient probe targets (RFC-1569)", () => {
186
186
  {
187
187
  probe: "run",
188
188
  criterion: "AC-1",
189
- command: "pnpm exec werkstatt run agent.api-catalog.validate --app warpgogol",
189
+ command: "pnpm exec forge agent.api-catalog.validate --app warpgogol",
190
190
  },
191
191
  ]),
192
192
  );
@@ -200,7 +200,7 @@ describe("V-54: transient probe targets (RFC-1569)", () => {
200
200
  {
201
201
  probe: "run",
202
202
  criterion: "AC-1",
203
- command: "werkstatt run leitstand.build --id warpgogol",
203
+ command: "forge leitstand.build --id warpgogol",
204
204
  },
205
205
  ]),
206
206
  );
@@ -213,7 +213,7 @@ describe("V-54: transient probe targets (RFC-1569)", () => {
213
213
  {
214
214
  probe: "run",
215
215
  criterion: "AC-1",
216
- command: "pnpm exec werkstatt run rfc.validate --id RFC-9999",
216
+ command: "pnpm exec forge rfc.validate --id RFC-9999",
217
217
  },
218
218
  ]),
219
219
  );
@@ -80,7 +80,7 @@ nonGoals: []
80
80
  # acceptance:
81
81
  # - probe: run
82
82
  # criterion: AC-1
83
- # command: "werkstatt run some.command.validate"
83
+ # command: "forge some.command.validate"
84
84
  # expect:
85
85
  # exitCode: 0
86
86
  # expectationSource: independent
@@ -72,7 +72,7 @@ describe("rfc.create — RFC-1139 next-steps hint accuracy", () => {
72
72
  await fs.rm(root, { recursive: true, force: true });
73
73
  });
74
74
 
75
- it("AC-1: next-steps hint is an executable werkstatt command with --id", async () => {
75
+ it("AC-1: next-steps hint is an executable forge command with --id", async () => {
76
76
  const result = await runRfcCreate(
77
77
  makeInput({ title: "Hint Test", kind: "command", scope: "workspace" }),
78
78
  makeContext(root),
@@ -82,11 +82,9 @@ describe("rfc.create — RFC-1139 next-steps hint accuracy", () => {
82
82
  expect(steps.length).toBeGreaterThan(0);
83
83
 
84
84
  for (const step of steps) {
85
- const match = step.action.match(/pnpm exec (\S+) run ([\w.]+)/);
85
+ const match = step.action.match(/pnpm exec forge ([\w.]+)/);
86
86
  expect(match, `hint "${step.action}" must contain a runnable command`).not.toBeNull();
87
- const [, binary, command] = match!;
88
- // forge has no `run` subcommand — werkstatt does
89
- expect(binary).toBe("werkstatt");
87
+ const [, command] = match!;
90
88
  expect(command).toBe("rfc.validate");
91
89
  // rfc.validate takes --id, not --file
92
90
  expect(step.action).toContain("--id RFC-");
@@ -66,7 +66,7 @@ const PROBE_BLOCK = {
66
66
  fileExistsManifest: ` - probe: file-exists\n path: ${MANIFEST}\n criterion: AC-1`,
67
67
  fileContainsManifest: ` - probe: file-contains\n path: ${MANIFEST}\n pattern: "command-manifest"\n criterion: AC-1`,
68
68
  commandRegistered: ` - probe: command-registered\n name: checks.commands.generate\n criterion: AC-1`,
69
- runOnly: ` - probe: run\n command: "werkstatt run rfc.validate --id RFC-0100"\n expect:\n exitCode: 0\n criterion: AC-1`,
69
+ runOnly: ` - probe: run\n command: "forge rfc.validate --id RFC-0100"\n expect:\n exitCode: 0\n criterion: AC-1`,
70
70
  emitOwned: ` - probe: file-exists\n path: docs/rfcs/verification/rfc-0099.generated.yaml\n criterion: AC-1`,
71
71
  unknownKind: ` - probe: teleport\n path: anywhere\n criterion: AC-1`,
72
72
  };