@warpgogol/forge 9.6.1 → 9.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +42 -18
- package/README.uk.md +60 -36
- package/dist/os/core/core.module.d.ts.map +1 -1
- package/dist/os/core/core.module.js +58 -5
- package/dist/os/core/core.module.js.map +1 -1
- package/dist/os/core/handlers/package-health.d.ts.map +1 -1
- package/dist/os/core/handlers/package-health.js +95 -8
- package/dist/os/core/handlers/package-health.js.map +1 -1
- package/dist/os/flow/handlers/flow-cut.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-cut.js +27 -6
- package/dist/os/flow/handlers/flow-cut.js.map +1 -1
- package/dist/src/onboarding/scaffold-project.d.ts.map +1 -1
- package/dist/src/onboarding/scaffold-project.js +21 -2
- package/dist/src/onboarding/scaffold-project.js.map +1 -1
- package/dist/src/validators/skill-doc-sync.d.ts +76 -0
- package/dist/src/validators/skill-doc-sync.d.ts.map +1 -0
- package/dist/src/validators/skill-doc-sync.js +333 -0
- package/dist/src/validators/skill-doc-sync.js.map +1 -0
- package/docs/concepts/governance-model.md +9 -1
- package/docs/concepts/verification-model.md +31 -0
- package/docs/guides/existing-project.md +12 -0
- package/docs/guides/skills.md +27 -8
- package/docs/guides/upgrading.md +6 -2
- package/docs/guides/verification-and-evidence.md +45 -0
- package/docs/integrations/devin.md +49 -0
- package/docs/reference/cli.md +12 -1
- package/docs/reference/fleet-measurement.md +52 -0
- package/docs/reference/programmatic-api.md +62 -33
- package/os/core/core.module.ts +70 -11
- package/os/core/handlers/package-health.test.ts +104 -23
- package/os/core/handlers/package-health.ts +133 -19
- package/os/flow/handlers/flow-cut.ts +27 -6
- package/os/flow/tests/flow-cut.rerun.test.ts +54 -4
- package/package.json +1 -1
- package/profiles/forge-shell.yaml +1 -0
- package/profiles/godot-game.yaml +1 -0
- package/profiles/phaser-game.yaml +1 -0
- package/profiles/site-workshop.yaml +1 -0
- package/profiles/system.yaml +1 -0
- package/profiles/typescript.yaml +1 -0
- package/src/onboarding/scaffold-project.ts +19 -2
- package/src/tests/skill-doc-sync.test.ts +233 -0
- package/src/validators/skill-doc-sync.ts +449 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
|
|
7
7
|
For the full commit history, see the [GitHub releases page](https://github.com/syrokomskyi/forge/releases).
|
|
8
8
|
|
|
9
|
+
## [9.6.2] — 2026-11-14
|
|
10
|
+
|
|
11
|
+
_Documentation conformance pass — counts synced to the real registry, the programmatic API rewritten against the verified surface, new integration and verification docs._
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **`docs/concepts/verification-model.md`** — the Instructions / Validation / Enforcement model and what Forge does not guarantee.
|
|
16
|
+
- **`docs/guides/verification-and-evidence.md`** — scenario guide for session audit, trajectory memory, context assembly, gate probes, conformance, and the agent operating model.
|
|
17
|
+
- **`docs/integrations/devin.md`** — Devin CLI/Cloud integration: install order, one-task walkthrough, responsibility split, honest boundaries.
|
|
18
|
+
- **`docs/reference/fleet-measurement.md`** — methodology behind the README fleet table, a worked `codebase.measure` example, and limitations.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- **Docs consistency**: skill counts corrected to 41 (34 fo + 4 shared + 3 meta) across README/guides; `upgrading.md` now documents the manifest-based stale-dir prune instead of claiming upgrade never deletes; `cli.md` gains `codebase.measure`; `existing-project.md` gains a safety checklist; the live-preview claim and fleet table are scoped to what they actually guarantee.
|
|
23
|
+
- **`programmatic-api.md` rewritten** — module table synced to the exported modules; the registry placeholder replaced by a compiling example verified against `createForgeRfcModule`/`ForgeRuntimeContext`.
|
|
24
|
+
- **README claim scoping** — "same governance" → "one project contract, multiple agents"; "safe to trust at scale" → "easier to inspect and verify"; "every commit" → "every change merged to main"; bootstrap requirements stated; the embedded API example replaced by the verified compiling snippet.
|
|
25
|
+
- **"One task. One contract. One verified result."** — the v9.6.1 release itself as the public end-to-end case study (agent-authored, gate-verified, CI-published).
|
|
26
|
+
- **`AGENTS.md` skill count synced** to the real `skills/` registry (34 fo + 4 shared + 3 meta).
|
|
27
|
+
- **Ukrainian README edited for idiomatic phrasing** per external review.
|
|
28
|
+
|
|
9
29
|
## [9.6.1] — 2026-11-14
|
|
10
30
|
|
|
11
31
|
_READMEs lead with the agent-native proof: Forge governs its own development, the supported-agent list names Devin, and the fleet table's line accounting is explicit._
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
A repository-native control layer for AI-assisted development. Decisions, rules, skills and verification live with the repository — independent of the agent, model or IDE doing the work.
|
|
8
8
|
|
|
9
|
-
**Proven on itself first.** The monorepo that builds Forge is governed by Forge: 1,500+ RFCs, 130+ ADRs and 41 agent skills
|
|
9
|
+
**Proven on itself first.** The monorepo that builds Forge is governed by Forge: 1,500+ RFCs, 130+ ADRs and 41 agent skills — every change merged to main passes deterministic verification gates, not "the agent says it's done". The same layer already governs a ~5.9M-line engineering fleet across 8 repositories. [The measured fleet ↓](#forged-in-production)
|
|
10
10
|
|
|
11
11
|
> Engineered at [Warpgogol](https://warpgogol.com) · Released as open source. <!-- pkg-health-12: domain name, not a command -->
|
|
12
12
|
|
|
@@ -49,11 +49,11 @@ YOUR REPOSITORY
|
|
|
49
49
|
|
|
50
50
|
Agents can change. Models can change. IDEs can change. Engineering rules stay with the project.
|
|
51
51
|
|
|
52
|
-
##
|
|
52
|
+
## One project contract. Multiple agents.
|
|
53
53
|
|
|
54
|
-
Forge
|
|
54
|
+
Forge stores engineering rules in portable repository files — `forge.yaml`, `AGENTS.md`, RFCs, skills. Compatible agents can consume the same instructions, decisions, and workflows: **Devin**, Windsurf, Cursor, Claude Code, Codex CLI — and whatever ships next. Deterministic checks remain independent of the agent and can be enforced through CI. No per-vendor plugin, no lock-in.
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
This makes autonomous development easier to inspect and verify: deterministic gates check declared invariants, while session audits identify potential policy violations and produce reviewable findings. For Devin CLI / Devin Cloud specifics — install order, a one-task walkthrough, and honest boundaries — see [docs/integrations/devin.md](docs/integrations/devin.md).
|
|
57
57
|
|
|
58
58
|
---
|
|
59
59
|
|
|
@@ -65,7 +65,9 @@ Create a new folder, open it in your AI IDE or point your coding agent at it, an
|
|
|
65
65
|
Install https://npmjs.com/package/@warpgogol/forge in this folder and set up my project. I want to build: [describe your project]
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
Replace `[describe your project]` with your idea — a game, a library, a knowledge base, anything. The AI agent installs Forge, scaffolds the project, and sets up a live preview. From there on, you just talk: describe what you want, and the agent builds it. No programming, no terminal, no commands.
|
|
68
|
+
Replace `[describe your project]` with your idea — a game, a library, a knowledge base, anything. The AI agent installs Forge, scaffolds the project, and — for profiles that ship a runnable surface — sets up a live preview. From there on, you just talk: describe what you want, and the agent builds it. No programming, no terminal, no commands.
|
|
69
|
+
|
|
70
|
+
This workflow requires an agent with filesystem and command-execution access, a compatible environment (Node.js 24+, pnpm), and permission to install dependencies.
|
|
69
71
|
|
|
70
72
|
### After the prompt completes — the Bootstrap skill
|
|
71
73
|
|
|
@@ -119,6 +121,8 @@ pnpm exec forge profile.validate
|
|
|
119
121
|
| **Verification** | Doctor, validators, contracts, deterministic gates |
|
|
120
122
|
| **Evolution** | Profiles, vendored specs, additive upgrades |
|
|
121
123
|
|
|
124
|
+
Instructions, validation and enforcement are distinct levels — see [the verification model](docs/concepts/verification-model.md) for what Forge does and does not guarantee.
|
|
125
|
+
|
|
122
126
|
---
|
|
123
127
|
|
|
124
128
|
## Without Forge / With Forge
|
|
@@ -252,7 +256,7 @@ Full CLI reference: [docs/reference/cli.md](docs/reference/cli.md)
|
|
|
252
256
|
|
|
253
257
|
## Forged in production
|
|
254
258
|
|
|
255
|
-
Forge does not govern toy projects — starting with itself. The werkstatt monorepo that builds Forge carries **1,563 RFCs and 131 ADRs** under Forge governance, and every
|
|
259
|
+
Forge does not govern toy projects — starting with itself. The werkstatt monorepo that builds Forge carries **1,563 RFCs and 131 ADRs** under Forge governance, and every change lands through the deterministic integration gate. The same control layer runs a working engineering fleet — measured 2026-11-13 by Forge's own `codebase.measure` over git-tracked files only (generated, vendored, and mirrored content is classified separately; export mirrors and deployment caches are excluded to avoid double counting).
|
|
256
260
|
|
|
257
261
|
| Repository | Role | Files | Total | code | tests | docs | generated | Top language |
|
|
258
262
|
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
|
@@ -278,6 +282,12 @@ Measure your own repository:
|
|
|
278
282
|
pnpm exec forge codebase.measure --json
|
|
279
283
|
```
|
|
280
284
|
|
|
285
|
+
Methodology, a worked example, and limitations: [docs/reference/fleet-measurement.md](docs/reference/fleet-measurement.md). These are self-reported numbers from Forge's own instrument — an instrument reading, not an independent audit.
|
|
286
|
+
|
|
287
|
+
### One task. One contract. One verified result.
|
|
288
|
+
|
|
289
|
+
This README is the case study. Version 9.6.1 — including this file — was authored end-to-end by an AI agent under operator direction: the agent rewrote the README, Forge's own commit gate ran scoped checks, the integration gate ran the heavyweight suite, and CI ran lint/typecheck/build/test before `npm publish --provenance`. Every transition produced a verifiable artifact — [release v9.6.1](https://github.com/syrokomskyi/forge/releases/tag/v9.6.1) · [CI runs](https://github.com/syrokomskyi/forge/actions).
|
|
290
|
+
|
|
281
291
|
---
|
|
282
292
|
|
|
283
293
|
## Where Forge is going
|
|
@@ -292,19 +302,29 @@ pnpm exec forge codebase.measure --json
|
|
|
292
302
|
|
|
293
303
|
```ts
|
|
294
304
|
import {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
resolveBinding,
|
|
299
|
-
FORGE_SKILLS,
|
|
305
|
+
createForgeRfcModule,
|
|
306
|
+
type ForgeLogger,
|
|
307
|
+
type ForgeRuntimeContext,
|
|
300
308
|
} from "@warpgogol/forge";
|
|
301
309
|
|
|
302
|
-
const
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
310
|
+
const logger: ForgeLogger = {
|
|
311
|
+
section: console.log,
|
|
312
|
+
info: console.log,
|
|
313
|
+
warn: console.warn,
|
|
314
|
+
error: console.error,
|
|
315
|
+
success: console.log,
|
|
316
|
+
};
|
|
317
|
+
const context: ForgeRuntimeContext = {
|
|
318
|
+
workspaceRoot: process.cwd(),
|
|
319
|
+
logger,
|
|
320
|
+
dryRun: false,
|
|
321
|
+
outputFormat: "json",
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
const rfcModule = await createForgeRfcModule();
|
|
325
|
+
const rfcValidate = rfcModule.commands.find((c) => c.name === "rfc.validate");
|
|
326
|
+
const result = await rfcValidate?.execute({ argv: [], flags: {} }, context);
|
|
327
|
+
console.log(result?.exitCode); // 0 = pass, 1 = fail
|
|
308
328
|
```
|
|
309
329
|
|
|
310
330
|
Full API reference: [docs/reference/programmatic-api.md](docs/reference/programmatic-api.md)
|
|
@@ -318,7 +338,7 @@ Full API reference: [docs/reference/programmatic-api.md](docs/reference/programm
|
|
|
318
338
|
| `src/` | Portable core — types, config, skills registry, validators, onboarding. Zero `@warpgogol/*` imports. |
|
|
319
339
|
| `os/` | ForgeModule registrations. All `os/` modules are autonomous except `werkstatt` — the only adapter importing `@warpgogol/werkstatt-engine`. |
|
|
320
340
|
| `bin/` | CLI entrypoint (`forge` command). |
|
|
321
|
-
| `skills/` | 41
|
|
341
|
+
| `skills/` | <!-- forge:skills-count -->41 skills (34 fo + 4 shared + 3 meta)<!-- /forge:skills-count --> with SKILL.md frontmatter. |
|
|
322
342
|
| `profiles/` | Stack profiles for `scaffold`. |
|
|
323
343
|
|
|
324
344
|
---
|
|
@@ -341,14 +361,18 @@ pnpm exec forge doctor
|
|
|
341
361
|
- [Why Forge?](docs/concepts/why-forge.md)
|
|
342
362
|
- [Project contract](docs/concepts/project-contract.md)
|
|
343
363
|
- [Governance model](docs/concepts/governance-model.md)
|
|
364
|
+
- [The verification model](docs/concepts/verification-model.md)
|
|
344
365
|
- [Bring an existing project](docs/guides/existing-project.md)
|
|
345
366
|
- [Upgrading](docs/guides/upgrading.md)
|
|
346
367
|
- [Skills](docs/guides/skills.md)
|
|
347
368
|
- [RFC and ADR workflows](docs/guides/rfc-adr.md)
|
|
369
|
+
- [Verification & evidence scenarios](docs/guides/verification-and-evidence.md)
|
|
370
|
+
- [Devin integration](docs/integrations/devin.md)
|
|
348
371
|
- [CLI reference](docs/reference/cli.md)
|
|
349
372
|
- [forge.yaml reference](docs/reference/forge-yaml.md)
|
|
350
373
|
- [Profiles](docs/reference/profiles.md)
|
|
351
374
|
- [Programmatic API](docs/reference/programmatic-api.md)
|
|
375
|
+
- [Fleet measurement methodology](docs/reference/fleet-measurement.md)
|
|
352
376
|
- [Publishing](docs/maintainers/publishing.md)
|
|
353
377
|
|
|
354
378
|
---
|
package/README.uk.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
**ШІ-агенти пишуть код. Forge тримає проєкт інженерним.**
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Шар інженерного керування, вбудований у репозиторій, для розробки за допомогою ШІ. Рішення, правила, навички та перевірки залишаються з репозиторієм — незалежно від агента, моделі чи IDE, що виконує роботу.
|
|
8
8
|
|
|
9
|
-
**Спочатку перевірено на собі.** Монорепозиторій, що будує Forge, управляється Forge: 1 500+ RFC, 130+ ADR і 41 навичка агентів,
|
|
9
|
+
**Спочатку перевірено на собі.** Монорепозиторій, що будує Forge, управляється Forge: 1 500+ RFC, 130+ ADR і 41 навичка агентів, кожна зміна, злита в main, проходить детерміновані гейти верифікації — а не «агент так каже». Той самий шар уже управляє сукупністю інженерних репозиторіїв — ~5,9 млн рядків у 8 репозиторіях. [Виміряні репозиторії ↓](#перевірено-на-реальних-проєктах)
|
|
10
10
|
|
|
11
11
|
> Розроблено в [Warpgogol](https://warpgogol.com) · Опубліковано як open source.
|
|
12
12
|
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
|
|
19
19
|
## Проблема
|
|
20
20
|
|
|
21
|
-
ШІ-агенти зробили написання коду дешевим — а збереження
|
|
21
|
+
ШІ-агенти зробили написання коду дешевим — а збереження цілісності та узгодженості проєкту дорогим.
|
|
22
22
|
|
|
23
23
|
- Правила живуть у промптах, що зникають між сесіями.
|
|
24
24
|
- Архітектурні рішення лишаються неявними — кодова база не може пояснити, _чому_ вона виглядає так.
|
|
25
25
|
- «Готово» означає, що агент так каже.
|
|
26
26
|
- Зміна агента, моделі чи IDE обнуляє пам'ять проєкту.
|
|
27
27
|
|
|
28
|
-
Кожен додатковий агент
|
|
28
|
+
Кожен додатковий агент підвищує ризик розходження з правилами проєкту. Швидкість без контролю — це технічний борг, що накопичується зі швидкістю роботи ШІ-агентів.
|
|
29
29
|
|
|
30
30
|
## Шар, якого бракує
|
|
31
31
|
|
|
@@ -49,11 +49,11 @@ IDE / АГЕНТ / МОДЕЛЬ
|
|
|
49
49
|
|
|
50
50
|
Агенти можуть змінюватися. Моделі можуть змінюватися. IDE можуть змінюватися. Інженерні правила залишаються з проєктом.
|
|
51
51
|
|
|
52
|
-
##
|
|
52
|
+
## Один контракт проєкту. Кілька агентів.
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
Forge зберігає інженерні правила у переносних файлах репозиторію — `forge.yaml`, `AGENTS.md`, RFC, навички. Сумісні агенти можуть споживати ті самі інструкції, рішення та робочі процеси: **Devin**, Windsurf, Cursor, Claude Code, Codex CLI — і будь-який наступний. Детерміновані перевірки залишаються незалежними від агента і можуть бути примусовими через CI. Жодних плагінів під вендора, жодного lock-in.
|
|
55
55
|
|
|
56
|
-
Це
|
|
56
|
+
Це робить автономну розробку простішою для інспекції та верифікації: детерміновані гейти перевіряють задекларовані інваріанти, а аудит сесій виявляє потенційні порушення правил і видає результати, придатні для ревью. Специфіка Devin CLI / Devin Cloud — порядок встановлення, прохід однієї задачі та чесні межі — у [docs/integrations/devin.md](docs/integrations/devin.md).
|
|
57
57
|
|
|
58
58
|
---
|
|
59
59
|
|
|
@@ -65,7 +65,9 @@ IDE / АГЕНТ / МОДЕЛЬ
|
|
|
65
65
|
Install https://npmjs.com/package/@warpgogol/forge in this folder and set up my project. I want to build: [describe your project]
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
Замініть `[describe your project]` своєю ідеєю — гра, бібліотека, база знань, будь-що. ШІ-агент встановить Forge, створить структуру проєкту і налаштує
|
|
68
|
+
Замініть `[describe your project]` своєю ідеєю — гра, бібліотека, база знань, будь-що. ШІ-агент встановить Forge, створить структуру проєкту і — для профілів із запускаємою поверхнею — налаштує попередній перегляд працюючого застосунку. Далі ви просто говорите: описуєте, що хочете, і агент будує. Без програмування, без терміналу, без команд.
|
|
69
|
+
|
|
70
|
+
Цей робочий процес потребує агента з доступом до файлової системи та виконання команд, сумісного середовища (Node.js 24+, pnpm) і дозволу на встановлення залежностей.
|
|
69
71
|
|
|
70
72
|
### Після завершення промпту — Bootstrap skill
|
|
71
73
|
|
|
@@ -93,14 +95,14 @@ pnpm dlx @warpgogol/forge@latest create --in-place --profile typescript
|
|
|
93
95
|
|
|
94
96
|
Forge не залежить від типу проєкту. Профілі стеку — готові стартові точки.
|
|
95
97
|
|
|
96
|
-
| Профіль | Призначення
|
|
97
|
-
| --------------- |
|
|
98
|
-
| `forge-shell` | Лише управління, бібліотеки, не-веб проєкти
|
|
99
|
-
| `typescript` | TypeScript монорепозиторій з валідаторами
|
|
100
|
-
| `phaser-game` | Браузерні ігри, інтерактивні досвіди
|
|
101
|
-
| `godot-game` | Десктопні/мобільні ігри на Godot 4.x + C#
|
|
102
|
-
| `knowledge` | Бази знань з підтримкою доказів
|
|
103
|
-
| `site-workshop` |
|
|
98
|
+
| Профіль | Призначення |
|
|
99
|
+
| --------------- | ------------------------------------------------ |
|
|
100
|
+
| `forge-shell` | Лише управління, бібліотеки, не-веб проєкти |
|
|
101
|
+
| `typescript` | TypeScript монорепозиторій з валідаторами |
|
|
102
|
+
| `phaser-game` | Браузерні ігри, інтерактивні досвіди |
|
|
103
|
+
| `godot-game` | Десктопні/мобільні ігри на Godot 4.x + C# |
|
|
104
|
+
| `knowledge` | Бази знань з підтримкою доказів |
|
|
105
|
+
| `site-workshop` | Робочі середовища Werkstatt для окремих клієнтів |
|
|
104
106
|
|
|
105
107
|
```sh
|
|
106
108
|
# Перелічити доступні профілі
|
|
@@ -119,6 +121,8 @@ pnpm exec forge profile.validate
|
|
|
119
121
|
| **Перевірка** | Doctor, валідатори, контракти, детерміновані гейти |
|
|
120
122
|
| **Еволюція** | Профілі, вендоринг специфікацій, адитивні оновлення |
|
|
121
123
|
|
|
124
|
+
Інструкції, валідація та примус — різні рівні; що гарантує кожен з них, див. [модель верифікації](docs/concepts/verification-model.md).
|
|
125
|
+
|
|
122
126
|
---
|
|
123
127
|
|
|
124
128
|
## Без Forge / З Forge
|
|
@@ -129,7 +133,7 @@ pnpm exec forge profile.validate
|
|
|
129
133
|
| Архітектура неявна | Рішення стають RFC та ADR |
|
|
130
134
|
| Поведінка агента залежить від сесії | Локальні навички визначають відтворювані процеси |
|
|
131
135
|
| «Готово» означає, що агент так каже | Валідатори дають детерміновані перевірки |
|
|
132
|
-
| Новий агент починає з нуля | Контракт проєкту
|
|
136
|
+
| Новий агент починає з нуля | Контракт проєкту зберігається разом із кодом |
|
|
133
137
|
| Оновлення ризикує перезаписати рішення | Оновлення адитивне та ідемпотентне |
|
|
134
138
|
| Конвенції специфічні для інструменту | Агент- та IDE-незалежний шар проєкту |
|
|
135
139
|
|
|
@@ -139,7 +143,7 @@ pnpm exec forge profile.validate
|
|
|
139
143
|
|
|
140
144
|
**Forge Є**
|
|
141
145
|
|
|
142
|
-
-
|
|
146
|
+
- Шар інженерного керування, вбудований у репозиторій
|
|
143
147
|
- Агент-незалежна інфраструктура проєкту
|
|
144
148
|
- Детерміноване доповнення до ймовірнісних ШІ-агентів
|
|
145
149
|
- Портативний контракт проєкту
|
|
@@ -176,7 +180,7 @@ pnpm exec forge profile.validate
|
|
|
176
180
|
- **Doctor** — перевірка здоров'я проєкту
|
|
177
181
|
- **Валідатори** — lint найменувань, lint frontmatter робочих процесів, lint скалярів YAML, консистентність публічної поверхні
|
|
178
182
|
- **Проби гейтів** — доведення, що гейти управління досі спрацьовують на засіяних порушеннях
|
|
179
|
-
-
|
|
183
|
+
- **Еталонна перевірка відповідності** — прогін відповідності контракту виробник→споживач по задекларованих поверхнях
|
|
180
184
|
- **Upgrade** — адитивна, ідемпотентна синхронізація навичок та конфігурації
|
|
181
185
|
- **Скаффолдинг стеку** — pnpm + Turborepo монорепозиторій з профілю
|
|
182
186
|
- **Контракт прив'язок** — деконкретизація команд проєкту через `forge.yaml`
|
|
@@ -250,9 +254,9 @@ pnpm exec forge public-surface.validate
|
|
|
250
254
|
|
|
251
255
|
---
|
|
252
256
|
|
|
253
|
-
##
|
|
257
|
+
## Перевірено на реальних проєктах
|
|
254
258
|
|
|
255
|
-
Forge управляє не іграшковими проєктами — починаючи з себе. Монорепозиторій werkstatt, що будує Forge, несе **1 563 RFC і 131 ADR** під управлінням Forge, і
|
|
259
|
+
Forge управляє не іграшковими проєктами — починаючи з себе. Монорепозиторій werkstatt, що будує Forge, несе **1 563 RFC і 131 ADR** під управлінням Forge, і кожна зміна проходить детермінований інтеграційний гейт. Той самий шар інженерного контролю керує робочою сукупністю інженерних репозиторіїв — виміряно 2026-11-13 власною командою `codebase.measure` лише за git-tracked файлами (згенерований, вендорений і дзеркальний вміст класифікується окремо; експортні дзеркала та деплой-кеші виключено, щоб уникнути подвійного підрахунку).
|
|
256
260
|
|
|
257
261
|
| Репозиторій | Роль | Файли | Разом | code | tests | docs | generated | Топ-мова |
|
|
258
262
|
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
|
@@ -268,7 +272,7 @@ Forge управляє не іграшковими проєктами — поч
|
|
|
268
272
|
|
|
269
273
|
`Разом` розкладається точно на `code + tests + docs + generated` — кожен відстежуваний рядок класифіковано, жоден не пораховано двічі.
|
|
270
274
|
|
|
271
|
-
Зведення мов по
|
|
275
|
+
Зведення мов по репозиторіях: Markdown 34.1%, TypeScript 25.3%, JSON 19.1%, YAML 15.3%, XML 3.2% — сукупність, у якій третина маси — це письмове знання, і саме для цього існує шар управління, що тримає її узгодженою.
|
|
272
276
|
|
|
273
277
|
Кількість символів походить зі справжнього TypeScript AST-проходу — виміряно 98 494 символи (1 721 клас, 90 761 функція, 6 012 методів), а не оцінки регулярними виразами. Там, де workspace резолвить компілятор, який аналізатор не може використати, команда звітує `symbolsSkipped` замість вигаданих чисел.
|
|
274
278
|
|
|
@@ -278,6 +282,12 @@ Forge управляє не іграшковими проєктами — поч
|
|
|
278
282
|
pnpm exec forge codebase.measure --json
|
|
279
283
|
```
|
|
280
284
|
|
|
285
|
+
Методологія, робочий приклад та обмеження: [docs/reference/fleet-measurement.md](docs/reference/fleet-measurement.md). Це самозаявлені числа власного інструменту Forge — показник приладу, а не незалежний аудит.
|
|
286
|
+
|
|
287
|
+
### Одна задача. Один контракт. Один перевірений результат.
|
|
288
|
+
|
|
289
|
+
Цей README і є тематичним дослідженням. Версію 9.6.1 — включно з цим файлом — написано наскрізь ШІ-агентом під керівництвом оператора: агент переписав README, власний гейт коміту Forge виконав скоуплені перевірки, інтеграційний гейт запустив важкий набір тестів, а CI виконав lint/typecheck/build/test перед `npm publish --provenance`. Кожен перехід дав артефакт, який можна перевірити — [реліз v9.6.1](https://github.com/syrokomskyi/forge/releases/tag/v9.6.1) · [запуски CI](https://github.com/syrokomskyi/forge/actions).
|
|
290
|
+
|
|
281
291
|
---
|
|
282
292
|
|
|
283
293
|
## Куди рухається Forge
|
|
@@ -288,23 +298,33 @@ pnpm exec forge codebase.measure --json
|
|
|
288
298
|
|
|
289
299
|
---
|
|
290
300
|
|
|
291
|
-
## Програмний API
|
|
301
|
+
## Програмний інтерфейс (API)
|
|
292
302
|
|
|
293
303
|
```ts
|
|
294
304
|
import {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
resolveBinding,
|
|
299
|
-
FORGE_SKILLS,
|
|
305
|
+
createForgeRfcModule,
|
|
306
|
+
type ForgeLogger,
|
|
307
|
+
type ForgeRuntimeContext,
|
|
300
308
|
} from "@warpgogol/forge";
|
|
301
309
|
|
|
302
|
-
const
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
310
|
+
const logger: ForgeLogger = {
|
|
311
|
+
section: console.log,
|
|
312
|
+
info: console.log,
|
|
313
|
+
warn: console.warn,
|
|
314
|
+
error: console.error,
|
|
315
|
+
success: console.log,
|
|
316
|
+
};
|
|
317
|
+
const context: ForgeRuntimeContext = {
|
|
318
|
+
workspaceRoot: process.cwd(),
|
|
319
|
+
logger,
|
|
320
|
+
dryRun: false,
|
|
321
|
+
outputFormat: "json",
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
const rfcModule = await createForgeRfcModule();
|
|
325
|
+
const rfcValidate = rfcModule.commands.find((c) => c.name === "rfc.validate");
|
|
326
|
+
const result = await rfcValidate?.execute({ argv: [], flags: {} }, context);
|
|
327
|
+
console.log(result?.exitCode); // 0 = pass, 1 = fail
|
|
308
328
|
```
|
|
309
329
|
|
|
310
330
|
Повний API: [docs/reference/programmatic-api.md](docs/reference/programmatic-api.md)
|
|
@@ -318,7 +338,7 @@ await forgeRfcModule.register(registry);
|
|
|
318
338
|
| `src/` | Портативне ядро — типи, конфіг, реєстр навичок, валідатори, онбординг. Нуль `@warpgogol/*` імпортів. |
|
|
319
339
|
| `os/` | Реєстрації ForgeModule. Усі модулі `os/` автономні, крім `werkstatt` — єдиного адаптера, що імпортує `@warpgogol/werkstatt-engine`. |
|
|
320
340
|
| `bin/` | Точка входу CLI (команда `forge`). |
|
|
321
|
-
| `skills/` | 41
|
|
341
|
+
| `skills/` | <!-- forge:skills-count -->41 skills (34 fo + 4 shared + 3 meta)<!-- /forge:skills-count --> з SKILL.md frontmatter. |
|
|
322
342
|
| `profiles/` | Профілі стеку для `scaffold`. |
|
|
323
343
|
|
|
324
344
|
---
|
|
@@ -341,14 +361,18 @@ pnpm exec forge doctor
|
|
|
341
361
|
- [Чому Forge?](docs/concepts/why-forge.md)
|
|
342
362
|
- [Контракт проєкту](docs/concepts/project-contract.md)
|
|
343
363
|
- [Модель управління](docs/concepts/governance-model.md)
|
|
364
|
+
- [Модель верифікації](docs/concepts/verification-model.md)
|
|
344
365
|
- [Перенесення наявного проєкту](docs/guides/existing-project.md)
|
|
345
366
|
- [Оновлення](docs/guides/upgrading.md)
|
|
346
367
|
- [Навички](docs/guides/skills.md)
|
|
347
368
|
- [RFC та ADR робочі процеси](docs/guides/rfc-adr.md)
|
|
369
|
+
- [Сценарії верифікації та доказів](docs/guides/verification-and-evidence.md)
|
|
370
|
+
- [Інтеграція Devin](docs/integrations/devin.md)
|
|
348
371
|
- [Довідник CLI](docs/reference/cli.md)
|
|
349
372
|
- [Довідник forge.yaml](docs/reference/forge-yaml.md)
|
|
350
373
|
- [Профілі](docs/reference/profiles.md)
|
|
351
|
-
- [Програмний API](docs/reference/programmatic-api.md)
|
|
374
|
+
- [Програмний інтерфейс (API)](docs/reference/programmatic-api.md)
|
|
375
|
+
- [Методологія вимірювання репозиторіїв](docs/reference/fleet-measurement.md)
|
|
352
376
|
- [Публікація](docs/maintainers/publishing.md)
|
|
353
377
|
|
|
354
378
|
---
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.module.d.ts","sourceRoot":"","sources":["../../../os/core/core.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"core.module.d.ts","sourceRoot":"","sources":["../../../os/core/core.module.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAoB7D,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,WAAW,CAAC,CAmzClE"}
|
|
@@ -6,14 +6,24 @@
|
|
|
6
6
|
</non-goals>
|
|
7
7
|
</MODULE_CONTRACT>
|
|
8
8
|
<CHANGE_SUMMARY>
|
|
9
|
-
<item>RFC-1528: extract dry-run regen gate for AC-6 evidence
|
|
10
|
-
|
|
11
|
-
shouldRunArchiveRegen makes the report-only contract a tested unit instead of an inline closure check.</item>
|
|
12
|
-
<item>RFC-1528: close review findings — manifest-union command inventory for regen/preflight</item>
|
|
13
9
|
<item>RFC-1528: note moved[] under-count on archiver throw (review F-10)</item>
|
|
14
10
|
<item>RFC-1528: exclude non-generator commands from docs.archive owner regen (F-0126)</item>
|
|
15
11
|
<item>RFC-1536: owning-checkout routing, FLOW-OPEN-01 dirty-primary warning, shared governance-id allocation (RFC+ADR)</item>
|
|
16
12
|
<item>RFC-1535: docs.archive self-stages both sides of every move pair — no half-staged EC-31 pairs (F-0038)</item>
|
|
13
|
+
<item>RFC-1585: review wave — write-path corruptions, --check flag, scaffold hydration
|
|
14
|
+
|
|
15
|
+
Independent fo-review (isolation: subagent) found: empty marker pairs lost
|
|
16
|
+
their open tag on --write, multi-line regions collapsed line numbers, a
|
|
17
|
+
leading fence injected a phantom line, --check was undocumented-undeclared,
|
|
18
|
+
and --write exited 1 on a successful heal. Fixes: open-marker capture,
|
|
19
|
+
newline-preserving placeholder, empty-chunk skip, check flag, healedRegions
|
|
20
|
+
split (write always exits 0), dryRun/io threading, byte-exact inventory
|
|
21
|
+
compare on the prettier-stable canonical form, CHECK-13 delegated through
|
|
22
|
+
commandRegistry/invoke so the registry-integrity scan stays within its
|
|
23
|
+
slice cap (KNOWN_TRUNCATED_SCANS is shrink-only), record-tree exclusions
|
|
24
|
+
extended, two real stale claims corrected, profile templates ship empty
|
|
25
|
+
markers hydrated at scaffold write time. RFC amended to implemented
|
|
26
|
+
grammar/result/exclusions; command moved to commands.added.</item>
|
|
17
27
|
<history>ADR-0021, RFC-0374, RFC-0521, RFC-0539, RFC-0542, RFC-0543, RFC-0544, RFC-0546, RFC-0640, RFC-0662, RFC-0674, RFC-0678, RFC-0679, RFC-0680, RFC-0711, RFC-0733, RFC-0877, RFC-0940, RFC-1080, RFC-1088, RFC-1089, RFC-1097, RFC-1173, RFC-1230, RFC-1231, RFC-1235, RFC-1248, RFC-1251, RFC-1254, RFC-1255, RFC-1351, RFC-1354, RFC-1360, RFC-1366, RFC-1461, RFC-1500, RFC-1505, RFC-1508, RFC-1517, RFC-1518, RFC-1522, RFC-1528</history>
|
|
18
28
|
</CHANGE_SUMMARY>
|
|
19
29
|
*/
|
|
@@ -27,6 +37,7 @@ import { resolveOwningCheckout } from "../flow/session-checkout.js";
|
|
|
27
37
|
export async function createForgeCoreModule() {
|
|
28
38
|
const { runScaffold } = await import("../../src/onboarding/scaffold.js");
|
|
29
39
|
const { runSkillValidate } = await import("../../src/validators/skill-validate.js");
|
|
40
|
+
const { runSkillDocSync } = await import("../../src/validators/skill-doc-sync.js");
|
|
30
41
|
const { runPortValidate } = await import("../../src/validators/port-validate.js");
|
|
31
42
|
const { runDoctor } = await import("../../src/onboarding/doctor.js");
|
|
32
43
|
const { runAgentsGenerate } = await import("../../src/onboarding/agents-generate.js");
|
|
@@ -92,6 +103,16 @@ export async function createForgeCoreModule() {
|
|
|
92
103
|
summary: result.status === "pass" ? `[forge.skill.validate] OK — 0 violations` : undefined,
|
|
93
104
|
};
|
|
94
105
|
};
|
|
106
|
+
const skillDocSyncWrapper = async (input, context) => {
|
|
107
|
+
const result = await runSkillDocSync(input, context);
|
|
108
|
+
return {
|
|
109
|
+
data: result,
|
|
110
|
+
exitCode: result.status === "pass" ? 0 : 1,
|
|
111
|
+
summary: result.status === "pass"
|
|
112
|
+
? `[forge.skill.doc-sync] OK — ${result.filesScanned} files, ${result.markedRegions} marked regions${result.written.length > 0 ? `, rewrote ${result.written.length}` : ""}${result.drift.length > 0 ? `, ${result.drift.length} unhealable claim drift entries` : ""}`
|
|
113
|
+
: `[forge.skill.doc-sync] ${result.drift.length} drift entries — re-render marked regions with --write; stale claim literals need manual fixes`,
|
|
114
|
+
};
|
|
115
|
+
};
|
|
95
116
|
const portValidateWrapper = async (input, context) => {
|
|
96
117
|
const result = runPortValidate(input, context);
|
|
97
118
|
return {
|
|
@@ -229,6 +250,35 @@ export async function createForgeCoreModule() {
|
|
|
229
250
|
reads: ["packages/forge/src/registry.ts"],
|
|
230
251
|
execute: skillListWrapper,
|
|
231
252
|
},
|
|
253
|
+
{
|
|
254
|
+
name: "forge.skill.doc-sync",
|
|
255
|
+
mutatesState: true,
|
|
256
|
+
contract: "forge",
|
|
257
|
+
rules: [],
|
|
258
|
+
description: "Derive skill counts and inventory tables in docs from FORGE_SKILLS. --write re-renders <!-- forge:skills-* --> regions; default --check fails on marked-region drift and stale skill-count claims.",
|
|
259
|
+
scope: "workspace",
|
|
260
|
+
acceptsAllFlag: false,
|
|
261
|
+
flags: {
|
|
262
|
+
check: {
|
|
263
|
+
kind: "boolean",
|
|
264
|
+
description: "Explicit check mode (the default): fail on marked-region drift and stale skill-count claims.",
|
|
265
|
+
},
|
|
266
|
+
write: {
|
|
267
|
+
kind: "boolean",
|
|
268
|
+
description: "Re-render marked regions in place; exits 0 and reports claim drift it cannot heal.",
|
|
269
|
+
},
|
|
270
|
+
files: {
|
|
271
|
+
kind: "string",
|
|
272
|
+
description: "Comma-separated doc paths (default: README*.md, AGENTS.md, docs/**/*.md minus record trees).",
|
|
273
|
+
},
|
|
274
|
+
root: { kind: "string", description: "Package root to scan (default: workspace root)." },
|
|
275
|
+
},
|
|
276
|
+
reads: ["README*.md", "AGENTS.md", "docs/**/*.md", "src/registry.ts"],
|
|
277
|
+
writes: ["README*.md", "AGENTS.md", "docs/**/*.md"],
|
|
278
|
+
generates: [],
|
|
279
|
+
cacheable: false,
|
|
280
|
+
execute: skillDocSyncWrapper,
|
|
281
|
+
},
|
|
232
282
|
{
|
|
233
283
|
name: "forge.port.validate",
|
|
234
284
|
coverage: "operator",
|
|
@@ -1057,7 +1107,10 @@ export async function createForgeCoreModule() {
|
|
|
1057
1107
|
}
|
|
1058
1108
|
}
|
|
1059
1109
|
}
|
|
1060
|
-
const regen = await runArchiveRegen({
|
|
1110
|
+
const regen = await runArchiveRegen({
|
|
1111
|
+
movedPaths: [...movedPaths],
|
|
1112
|
+
context: routedContext,
|
|
1113
|
+
});
|
|
1061
1114
|
regenerated = regen.regenerated;
|
|
1062
1115
|
regenFailures = regen.failures;
|
|
1063
1116
|
regenSkipped = regen.skipped;
|