@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.
- package/AGENTS.md +5 -5
- package/CHANGELOG.md +9 -0
- package/bin/cli.ts +2 -2
- package/dist/bin/cli.js +2 -2
- package/dist/bin/cli.js.map +1 -1
- package/dist/os/adr/handlers/archive.js +1 -1
- package/dist/os/adr/handlers/archive.js.map +1 -1
- package/dist/os/agent-tools/agent-tools.module.js +1 -1
- package/dist/os/agent-tools/handlers/tools-generate.js +1 -1
- package/dist/os/agent-tools/handlers/tools-generate.js.map +1 -1
- package/dist/os/agent-tools/serve.js +2 -2
- package/dist/os/agent-tools/serve.js.map +1 -1
- package/dist/os/agent-tools/server.d.ts.map +1 -1
- package/dist/os/agent-tools/server.js +3 -7
- package/dist/os/agent-tools/server.js.map +1 -1
- package/dist/os/audit/handlers/archive.js +1 -1
- package/dist/os/audit/handlers/archive.js.map +1 -1
- package/dist/os/context/handlers/context-assemble.js +1 -1
- package/dist/os/context/handlers/context-assemble.js.map +1 -1
- package/dist/os/core/handlers/package-health.d.ts +1 -1
- package/dist/os/core/handlers/package-health.js +2 -2
- package/dist/os/core/handlers/package-health.js.map +1 -1
- package/dist/os/flow/handlers/flow-hold.js +1 -1
- package/dist/os/flow/handlers/flow-integrate.js +4 -4
- package/dist/os/flow/handlers/flow-integrate.js.map +1 -1
- package/dist/os/flow/preflight.js +2 -2
- package/dist/os/flow/preflight.js.map +1 -1
- package/dist/os/flow/standalone-invoke.d.ts +2 -2
- package/dist/os/flow/standalone-invoke.js +5 -5
- package/dist/os/flow/standalone-invoke.js.map +1 -1
- package/dist/os/plan/handlers/archive.js +1 -1
- package/dist/os/plan/handlers/archive.js.map +1 -1
- package/dist/os/rfc/acceptance.d.ts.map +1 -1
- package/dist/os/rfc/acceptance.js +7 -6
- package/dist/os/rfc/acceptance.js.map +1 -1
- package/dist/os/rfc/handlers/archive.js +2 -2
- package/dist/os/rfc/handlers/archive.js.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp.js +1 -1
- package/dist/os/rfc/handlers/implement-stamp.js.map +1 -1
- package/dist/os/rfc/handlers/index-graph.js +2 -2
- package/dist/os/rfc/handlers/index-graph.js.map +1 -1
- package/dist/os/rfc/handlers/list-create.js +2 -2
- package/dist/os/rfc/handlers/list-create.js.map +1 -1
- package/dist/os/rfc/handlers/rfc-evidence-sync.js +1 -1
- package/dist/os/rfc/handlers/rfc-evidence-sync.js.map +1 -1
- package/dist/os/rfc/verification-evidence.js +3 -3
- package/dist/os/rfc/verification-evidence.js.map +1 -1
- package/dist/os/rfc/verification-origin.js +1 -1
- package/dist/os/rfc/verification-origin.js.map +1 -1
- package/dist/os/session/handlers/archive.js +1 -1
- package/dist/os/session/handlers/archive.js.map +1 -1
- package/dist/os/spec/live-spec-merge.js +1 -1
- package/dist/os/spec/live-spec-merge.js.map +1 -1
- package/dist/os/spec/live-spec-rebuild.js +1 -1
- package/dist/os/spec/live-spec-rebuild.js.map +1 -1
- package/dist/src/onboarding/agents-generate.js +1 -1
- package/dist/src/reachability/command-mentions.d.ts +2 -1
- package/dist/src/reachability/command-mentions.d.ts.map +1 -1
- package/dist/src/reachability/command-mentions.js +4 -3
- package/dist/src/reachability/command-mentions.js.map +1 -1
- package/dist/src/utils/command-inventory.js +1 -1
- package/dist/src/utils/generated-marker.d.ts +1 -1
- package/dist/src/validators/skill-validate.js +1 -1
- package/dist/src/validators/skill-validate.js.map +1 -1
- package/docs/maintainers/publishing.md +3 -3
- package/docs/reference/cli.md +3 -3
- package/docs/reference/system-hub.md +5 -5
- package/os/adr/handlers/archive.ts +1 -1
- package/os/agent-tools/agent-tools.module.ts +1 -1
- package/os/agent-tools/handlers/tools-generate.ts +1 -1
- package/os/agent-tools/serve.ts +2 -2
- package/os/agent-tools/server.ts +3 -7
- package/os/audit/handlers/archive.ts +1 -1
- package/os/conformance/handlers/tests/conformance.test.ts +3 -3
- package/os/context/handlers/context-assemble.ts +1 -1
- package/os/core/docs-archive.test.ts +1 -1
- package/os/core/handlers/package-health.ts +2 -2
- package/os/flow/handlers/flow-hold.ts +1 -1
- package/os/flow/handlers/flow-integrate.ts +4 -4
- package/os/flow/preflight.ts +2 -2
- package/os/flow/standalone-invoke.ts +5 -5
- package/os/flow/tests/flow-hold.test.ts +1 -1
- package/os/flow/tests/flow-integrate.preflight.test.ts +1 -1
- package/os/flow/tests/flow-integrate.test.ts +1 -1
- package/os/flow/tests/flow-push.test.ts +1 -1
- package/os/gate-run/tests/gate-run-detach.test.ts +1 -1
- package/os/plan/handlers/archive.ts +1 -1
- package/os/plan/plan-0000-template.md +8 -8
- package/os/rfc/acceptance-reachable.test.ts +4 -4
- package/os/rfc/acceptance.ts +7 -6
- package/os/rfc/handlers/archive.ts +2 -2
- package/os/rfc/handlers/implement-stamp-outcome.test.ts +9 -9
- package/os/rfc/handlers/implement-stamp.ts +1 -1
- package/os/rfc/handlers/index-graph.ts +2 -2
- package/os/rfc/handlers/list-create.ts +2 -2
- package/os/rfc/handlers/rfc-evidence-sync.ts +1 -1
- package/os/rfc/handlers/validate-rules-rfc1453.test.ts +2 -2
- package/os/rfc/handlers/validate-transient-probes.test.ts +5 -5
- package/os/rfc/rfc-0000-template.md +1 -1
- package/os/rfc/rfc-create-hint.test.ts +3 -5
- package/os/rfc/verification-emit-freshness.test.ts +1 -1
- package/os/rfc/verification-emit.test.ts +1 -1
- package/os/rfc/verification-evidence.ts +3 -3
- package/os/rfc/verification-normalize.test.ts +2 -2
- package/os/rfc/verification-origin.test.ts +1 -1
- package/os/rfc/verification-origin.ts +1 -1
- package/os/rfc/verification-refresh.test.ts +1 -1
- package/os/session/fixtures/audit/clean.md +1 -1
- package/os/session/fixtures/audit/denied-retry.md +2 -2
- package/os/session/handlers/archive.ts +1 -1
- package/os/session/handlers/session-audit-detectors.test.ts +8 -8
- package/os/session/handlers/session-audit-report.test.ts +1 -1
- package/os/session/handlers/session-audit.test.ts +2 -2
- package/os/spec/live-spec-merge.test.ts +2 -2
- package/os/spec/live-spec-merge.ts +1 -1
- package/os/spec/live-spec-rebuild.ts +1 -1
- package/package.json +161 -161
- package/profiles/godot-game.yaml +4 -4
- package/profiles/phaser-game.yaml +4 -4
- package/profiles/site-workshop.yaml +6 -6
- package/skills/fo/fo-doctor/SKILL.md +1 -1
- package/skills/fo/fo-idea-create-adr/SKILL.md +1 -1
- package/skills/fo/fo-idea-create-rfc/SKILL.md +1 -1
- package/skills/fo/fo-idea-i-just-want-to-see-the-result/SKILL.md +1 -1
- package/skills/fo/fo-outbox/SKILL.md +1 -1
- package/skills/fo/fo-session-retro/SKILL.md +6 -6
- package/skills/fo/fo-step-commit/SKILL.md +1 -1
- package/src/onboarding/agents-generate.ts +1 -1
- package/src/reachability/command-mentions.ts +4 -4
- package/src/tests/acceptance-probe-kinds.test.ts +1 -1
- package/src/tests/forge-config.test.ts +5 -5
- package/src/tests/generated-marker.test.ts +2 -2
- package/src/utils/command-inventory.ts +1 -1
- package/src/utils/generated-marker.ts +1 -1
- package/src/validators/skill-validate.ts +1 -1
|
@@ -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
|
|
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 `
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 `
|
|
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 `
|
|
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
|
-
|
|
63
|
-
|
|
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: "
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
163
|
+
commandPrefix: "pnpm exec forge",
|
|
164
164
|
});
|
|
165
|
-
expect(header).toContain("pnpm exec
|
|
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
|
-
|
|
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
|
-
*
|
|
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
|
|
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.
|