@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
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
RFC-1585: derive skill counts/inventory in docs from FORGE_SKILLS instead of
|
|
5
|
+
hand-maintained literals. `--write` re-renders marked regions
|
|
6
|
+
(`<!-- forge:skills-count -->` / `<!-- forge:skills-inventory -->`) in place;
|
|
7
|
+
`--check` (default) fails on marked-region drift and on skill-count claims
|
|
8
|
+
outside markers that contradict the registry.
|
|
9
|
+
</purpose>
|
|
10
|
+
<non-goals>
|
|
11
|
+
<item>Does not rewrite prose outside marked regions — claim drift is reported, never auto-fixed.</item>
|
|
12
|
+
<item>Does not count project skill packs (RFC-0539) — the rendered registry is FORGE_SKILLS; pack-specific count claims carry an exemption marker.</item>
|
|
13
|
+
</non-goals>
|
|
14
|
+
<KEY_DECISIONS>
|
|
15
|
+
<item>Paired open/close HTML markers (forge:custom discipline, RFC-1153) — content between markers is generated, everything outside is authored.</item>
|
|
16
|
+
<item>Claim grammar is intentionally narrow (three literal forms) — ambiguous prose is never flagged; authors exempt intentional claims with a same-line `<!-- forge-skill-count:ok: <reason> -->` marker.</item>
|
|
17
|
+
<item>Historical record trees (rfcs/adrs/audits/reviews/plans/queues, changelogs, generated docs) are excluded from the claim lint — dated statements quote the registry of their day.</item>
|
|
18
|
+
</KEY_DECISIONS>
|
|
19
|
+
<CHANGE_SUMMARY>
|
|
20
|
+
<item>RFC-1585: initial implementation — markers, render, drift check, claim lint, doc surface discovery.</item>
|
|
21
|
+
<item>RFC-1585: review wave — write-path corruptions, --check flag, scaffold hydration
|
|
22
|
+
|
|
23
|
+
Independent fo-review (isolation: subagent) found: empty marker pairs lost
|
|
24
|
+
their open tag on --write, multi-line regions collapsed line numbers, a
|
|
25
|
+
leading fence injected a phantom line, --check was undocumented-undeclared,
|
|
26
|
+
and --write exited 1 on a successful heal. Fixes: open-marker capture,
|
|
27
|
+
newline-preserving placeholder, empty-chunk skip, check flag, healedRegions
|
|
28
|
+
split (write always exits 0), dryRun/io threading, byte-exact inventory
|
|
29
|
+
compare on the prettier-stable canonical form, CHECK-13 delegated through
|
|
30
|
+
commandRegistry/invoke so the registry-integrity scan stays within its
|
|
31
|
+
slice cap (KNOWN_TRUNCATED_SCANS is shrink-only), record-tree exclusions
|
|
32
|
+
extended, two real stale claims corrected, profile templates ship empty
|
|
33
|
+
markers hydrated at scaffold write time. RFC amended to implemented
|
|
34
|
+
grammar/result/exclusions; command moved to commands.added.</item>
|
|
35
|
+
</CHANGE_SUMMARY>
|
|
36
|
+
*/
|
|
37
|
+
import path from "node:path";
|
|
38
|
+
import * as sfs from "../utils/sync-fs.js";
|
|
39
|
+
import { writeFileIfChanged } from "../utils/fs-idempotent.js";
|
|
40
|
+
import { FORGE_SKILLS } from "../registry.js";
|
|
41
|
+
// ─── Markers ────────────────────────────────────────────────────────────────
|
|
42
|
+
export const SKILL_DOC_MARKERS = {
|
|
43
|
+
inventory: "forge:skills-inventory",
|
|
44
|
+
count: "forge:skills-count",
|
|
45
|
+
};
|
|
46
|
+
/** `<!-- forge-skill-count:ok: <reason> -->` exempts one line from the claim lint. */
|
|
47
|
+
export const SKILL_CLAIM_EXEMPT_RE = /forge-skill-count:ok(?:\s*:\s*[^\n]*?)?\s*(?:-->\s*)?$/;
|
|
48
|
+
/** Paired `<!-- forge:X -->…<!-- /forge:X -->` region. */
|
|
49
|
+
const REGION_RE = /<!--\s*forge:(skills-inventory|skills-count)\s*-->([\s\S]*?)<!--\s*\/forge:\1\s*-->/g;
|
|
50
|
+
export function skillCounts(skills = FORGE_SKILLS) {
|
|
51
|
+
const by = (category) => skills.filter((s) => s.category === category).length;
|
|
52
|
+
return { total: skills.length, fo: by("fo"), shared: by("shared"), meta: by("meta") };
|
|
53
|
+
}
|
|
54
|
+
/** Canonical one-line literal used by the `skills-count` marker and the claim lint. */
|
|
55
|
+
export function renderCountLiteral(skills = FORGE_SKILLS) {
|
|
56
|
+
const c = skillCounts(skills);
|
|
57
|
+
return `${c.total} skills (${c.fo} fo + ${c.shared} shared + ${c.meta} meta)`;
|
|
58
|
+
}
|
|
59
|
+
/** Canonical inventory block for the `skills-inventory` marker. */
|
|
60
|
+
export function renderInventoryBlock(skills = FORGE_SKILLS) {
|
|
61
|
+
const c = skillCounts(skills);
|
|
62
|
+
const names = (category) => skills
|
|
63
|
+
.filter((s) => s.category === category)
|
|
64
|
+
.map((s) => s.name)
|
|
65
|
+
.sort()
|
|
66
|
+
.map((n) => `\`${n}\``)
|
|
67
|
+
.join(", ");
|
|
68
|
+
return [
|
|
69
|
+
`**${c.total} skills** — ${c.fo} fo, ${c.shared} shared, ${c.meta} meta.`,
|
|
70
|
+
``,
|
|
71
|
+
`- **fo (${c.fo}):** ${names("fo")}`,
|
|
72
|
+
`- **shared (${c.shared}):** ${names("shared")}`,
|
|
73
|
+
`- **meta (${c.meta}):** ${names("meta")}`,
|
|
74
|
+
].join("\n");
|
|
75
|
+
}
|
|
76
|
+
function renderRegion(kind, skills) {
|
|
77
|
+
return kind === "count" ? renderCountLiteral(skills) : renderInventoryBlock(skills);
|
|
78
|
+
}
|
|
79
|
+
// ─── Claim grammar (unmarked regions only) ──────────────────────────────────
|
|
80
|
+
/** `34 fo + 4 shared + 3 meta` — ordered decomposition, all three required. */
|
|
81
|
+
const CLAIM_DECOMPOSITION_RE = /(\d+)\s*fo\D{0,10}?\+\s*(\d+)\s*shared\D{0,10}?\+\s*(\d+)\s*meta/g;
|
|
82
|
+
/** `41 skills`, `41 skill definitions`, `41 built-in skills`, `41 forge skills`. */
|
|
83
|
+
const CLAIM_TOTAL_RE = /\b(\d+)\s+(?:built-in\s+|forge(?:-managed)?\s+)?skill\s*(?:definitions|s)?\b/gi;
|
|
84
|
+
/** `34 fo skills`, `4 shared skills`, `3 meta skills`. */
|
|
85
|
+
const CLAIM_CATEGORY_RE = /\b(\d+)\s+(fo|shared|meta)\s+skills?\b/g;
|
|
86
|
+
const FENCE_RE = /^```/;
|
|
87
|
+
/** Strip marked regions and fenced blocks, then lint remaining lines for stale skill-count claims. */
|
|
88
|
+
export function lintSkillDocContent(relFile, content, skills = FORGE_SKILLS, write = false) {
|
|
89
|
+
const counts = skillCounts(skills);
|
|
90
|
+
const drift = [];
|
|
91
|
+
let markedRegions = 0;
|
|
92
|
+
let healedRegions = [];
|
|
93
|
+
// 1. Marked regions — compare or rewrite. Fenced code blocks are doc
|
|
94
|
+
// examples, never live regions — regions are scanned per unfenced chunk.
|
|
95
|
+
const chunks = [];
|
|
96
|
+
{
|
|
97
|
+
let fenced = false;
|
|
98
|
+
let buf = [];
|
|
99
|
+
const flush = () => {
|
|
100
|
+
if (buf.length > 0)
|
|
101
|
+
chunks.push({ text: buf.join("\n"), fenced });
|
|
102
|
+
buf = [];
|
|
103
|
+
};
|
|
104
|
+
for (const l of content.split("\n")) {
|
|
105
|
+
if (FENCE_RE.test(l.trimStart())) {
|
|
106
|
+
flush();
|
|
107
|
+
buf.push(l);
|
|
108
|
+
fenced = !fenced;
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
buf.push(l);
|
|
112
|
+
}
|
|
113
|
+
flush();
|
|
114
|
+
}
|
|
115
|
+
const healed = [];
|
|
116
|
+
const processRegion = (whole, kind, inner, offset, chunkText, lineBase) => {
|
|
117
|
+
markedRegions++;
|
|
118
|
+
const line = lineBase + chunkText.slice(0, offset).split("\n").length - 1;
|
|
119
|
+
const marker = kind === "skills-inventory" ? "inventory" : "count";
|
|
120
|
+
const rendered = renderRegion(marker, skills);
|
|
121
|
+
if (marker === "inventory" && !whole.includes("\n")) {
|
|
122
|
+
// Inline inventory marker would corrupt layout — flag, never rewrite.
|
|
123
|
+
drift.push({
|
|
124
|
+
file: relFile,
|
|
125
|
+
line,
|
|
126
|
+
kind: "inline-inventory",
|
|
127
|
+
expected: "inventory markers on their own lines",
|
|
128
|
+
found: whole.slice(0, 80),
|
|
129
|
+
});
|
|
130
|
+
return whole;
|
|
131
|
+
}
|
|
132
|
+
// Inventory's canonical inner keeps the blank lines prettier inserts
|
|
133
|
+
// around HTML comment blocks — byte-exact AND format-stable.
|
|
134
|
+
const expectedInner = marker === "count" ? rendered : `\n\n${rendered}\n\n`;
|
|
135
|
+
// Count regions tolerate padding (prettier aligns table cells); inventory
|
|
136
|
+
// compares byte-exact — whitespace drift inside a generated block is real drift.
|
|
137
|
+
const stale = marker === "count" ? inner.trim() !== rendered : inner !== expectedInner;
|
|
138
|
+
if (stale) {
|
|
139
|
+
const entry = {
|
|
140
|
+
file: relFile,
|
|
141
|
+
line,
|
|
142
|
+
kind: "marked-region",
|
|
143
|
+
expected: rendered.split("\n")[0],
|
|
144
|
+
found: inner.trim().split("\n")[0].slice(0, 80) || "(empty)",
|
|
145
|
+
};
|
|
146
|
+
(write ? healed : drift).push(entry);
|
|
147
|
+
}
|
|
148
|
+
if (!write || !stale)
|
|
149
|
+
return whole;
|
|
150
|
+
const openEnd = whole.indexOf("-->");
|
|
151
|
+
const open = openEnd === -1 ? whole : whole.slice(0, openEnd + 3);
|
|
152
|
+
const close = `<!-- /forge:${kind} -->`;
|
|
153
|
+
return `${open}${expectedInner}${close}`;
|
|
154
|
+
};
|
|
155
|
+
const rewrittenParts = [];
|
|
156
|
+
let lineBase = 1;
|
|
157
|
+
for (const chunk of chunks) {
|
|
158
|
+
if (chunk.fenced) {
|
|
159
|
+
rewrittenParts.push(chunk.text);
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
rewrittenParts.push(chunk.text.replace(REGION_RE, (whole, kind, inner, offset) => processRegion(whole, kind, inner, offset, chunk.text, lineBase)));
|
|
163
|
+
}
|
|
164
|
+
lineBase += chunk.text.split("\n").length;
|
|
165
|
+
}
|
|
166
|
+
const rewritten = rewrittenParts.join("\n");
|
|
167
|
+
healedRegions = healed;
|
|
168
|
+
// 2. Claim lint — only outside marked regions and fenced blocks. Regions
|
|
169
|
+
// collapse to whitespace that preserves their newline count — a multi-line
|
|
170
|
+
// region must not shift the line numbers of claims that follow it.
|
|
171
|
+
const body = (write ? rewritten : content)
|
|
172
|
+
.replace(REGION_RE, (m) => m.replace(/[^\n]/g, " "))
|
|
173
|
+
.split("\n")
|
|
174
|
+
.map((l, i) => ({ line: i + 1, text: l }));
|
|
175
|
+
let inFence = false;
|
|
176
|
+
for (const { line, text } of body) {
|
|
177
|
+
if (FENCE_RE.test(text.trimStart())) {
|
|
178
|
+
inFence = !inFence;
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
if (inFence || SKILL_CLAIM_EXEMPT_RE.test(text))
|
|
182
|
+
continue;
|
|
183
|
+
for (const m of text.matchAll(CLAIM_DECOMPOSITION_RE)) {
|
|
184
|
+
const [fo, shared, meta] = [Number(m[1]), Number(m[2]), Number(m[3])];
|
|
185
|
+
if (fo !== counts.fo || shared !== counts.shared || meta !== counts.meta) {
|
|
186
|
+
drift.push({
|
|
187
|
+
file: relFile,
|
|
188
|
+
line,
|
|
189
|
+
kind: "claim-decomposition",
|
|
190
|
+
expected: `${counts.fo} fo + ${counts.shared} shared + ${counts.meta} meta`,
|
|
191
|
+
found: m[0].trim(),
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
for (const m of text.matchAll(CLAIM_CATEGORY_RE)) {
|
|
196
|
+
const cat = m[2];
|
|
197
|
+
if (Number(m[1]) !== counts[cat]) {
|
|
198
|
+
drift.push({
|
|
199
|
+
file: relFile,
|
|
200
|
+
line,
|
|
201
|
+
kind: "claim-category",
|
|
202
|
+
expected: `${counts[cat]} ${cat} skills`,
|
|
203
|
+
found: m[0].trim(),
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
for (const m of text.matchAll(CLAIM_TOTAL_RE)) {
|
|
208
|
+
if (Number(m[1]) !== counts.total) {
|
|
209
|
+
drift.push({
|
|
210
|
+
file: relFile,
|
|
211
|
+
line,
|
|
212
|
+
kind: "claim-total",
|
|
213
|
+
expected: `${counts.total} skills`,
|
|
214
|
+
found: m[0].trim(),
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return { drift, markedRegions, healedRegions, rewritten: write ? rewritten : undefined };
|
|
220
|
+
}
|
|
221
|
+
// ─── Doc surface ────────────────────────────────────────────────────────────
|
|
222
|
+
/** Historical record trees quote the registry of their day — never claim-linted. */
|
|
223
|
+
export const SKILL_DOC_SURFACE_EXCLUDE_RES = [
|
|
224
|
+
/(^|\/)CHANGELOG\.md$/,
|
|
225
|
+
/\.generated\.md$/,
|
|
226
|
+
/(^|\/)docs\/(rfcs|adrs|audits|reviews|plans|queues|archive|sessions|specs|historical|summits|metrics|explorations|evidence|outbox|frictions|decisions)\//,
|
|
227
|
+
/(^|\/)lagebild-archive\//,
|
|
228
|
+
];
|
|
229
|
+
/**
|
|
230
|
+
* Collect the claim-lint surface under a package root: README*.md, AGENTS.md,
|
|
231
|
+
* docs/**. Intentionally a different surface than package-health's
|
|
232
|
+
* DOCS_SURFACE — it adds README locale variants and drops the record trees
|
|
233
|
+
* (rfcs/audits/…) DOCS_SURFACE includes, since dated records quote old counts.
|
|
234
|
+
*/
|
|
235
|
+
export function collectSkillDocFiles(root) {
|
|
236
|
+
const files = [];
|
|
237
|
+
const walk = (dir) => {
|
|
238
|
+
let entries;
|
|
239
|
+
try {
|
|
240
|
+
entries = sfs.readdirSync(dir, { withFileTypes: true });
|
|
241
|
+
}
|
|
242
|
+
catch {
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
for (const e of entries) {
|
|
246
|
+
const abs = path.join(dir, e.name);
|
|
247
|
+
if (e.isDirectory())
|
|
248
|
+
walk(abs);
|
|
249
|
+
else if (e.isFile() && e.name.endsWith(".md"))
|
|
250
|
+
files.push(abs);
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
const docsDir = path.join(root, "docs");
|
|
254
|
+
if (sfs.existsSync(docsDir))
|
|
255
|
+
walk(docsDir);
|
|
256
|
+
for (const name of sfs.existsSync(root) ? sfs.readdirSync(root) : []) {
|
|
257
|
+
if (/^README.*\.md$/.test(name) || name === "AGENTS.md")
|
|
258
|
+
files.push(path.join(root, name));
|
|
259
|
+
}
|
|
260
|
+
return files
|
|
261
|
+
.filter((f) => {
|
|
262
|
+
const rel = path.relative(root, f).split(path.sep).join("/");
|
|
263
|
+
return !SKILL_DOC_SURFACE_EXCLUDE_RES.some((re) => re.test(rel));
|
|
264
|
+
})
|
|
265
|
+
.sort();
|
|
266
|
+
}
|
|
267
|
+
/** Lint a concrete file list — shared by the command and the package-health composition. */
|
|
268
|
+
export async function lintSkillDocFiles(root, files, skills = FORGE_SKILLS, write = false, opts = {}) {
|
|
269
|
+
const drift = [];
|
|
270
|
+
const healedRegions = [];
|
|
271
|
+
const written = [];
|
|
272
|
+
let markedRegions = 0;
|
|
273
|
+
for (const abs of files) {
|
|
274
|
+
let content;
|
|
275
|
+
try {
|
|
276
|
+
content = sfs.readFileSync(abs, "utf8");
|
|
277
|
+
}
|
|
278
|
+
catch {
|
|
279
|
+
continue;
|
|
280
|
+
}
|
|
281
|
+
const rel = path.relative(root, abs).split(path.sep).join("/");
|
|
282
|
+
const outcome = lintSkillDocContent(rel, content, skills, write);
|
|
283
|
+
drift.push(...outcome.drift);
|
|
284
|
+
healedRegions.push(...outcome.healedRegions);
|
|
285
|
+
markedRegions += outcome.markedRegions;
|
|
286
|
+
if (write && outcome.rewritten !== undefined && outcome.rewritten !== content) {
|
|
287
|
+
if (!opts.dryRun)
|
|
288
|
+
await writeFileIfChanged(abs, outcome.rewritten, opts.io);
|
|
289
|
+
written.push(rel);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
return { drift, healedRegions, markedRegions, written };
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Fill marked regions in scaffolded content at create time — the literals are
|
|
296
|
+
* rendered from the registry of the forge doing the scaffolding, so profile
|
|
297
|
+
* templates never carry a hand-bumped count (RFC-1585, review F-12).
|
|
298
|
+
*/
|
|
299
|
+
export function hydrateSkillDocMarkers(content, skills = FORGE_SKILLS) {
|
|
300
|
+
return content.replace(REGION_RE, (_whole, kind) => {
|
|
301
|
+
const marker = kind === "skills-inventory" ? "inventory" : "count";
|
|
302
|
+
const rendered = renderRegion(marker, skills);
|
|
303
|
+
const inner = marker === "count" ? rendered : `\n\n${rendered}\n\n`;
|
|
304
|
+
return `<!-- forge:${kind} -->${inner}<!-- /forge:${kind} -->`;
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
export async function runSkillDocSync(input, context) {
|
|
308
|
+
const flags = input?.flags ??
|
|
309
|
+
input ??
|
|
310
|
+
{};
|
|
311
|
+
const ctx = (context ?? {});
|
|
312
|
+
const root = flags.root
|
|
313
|
+
? path.resolve(ctx.workspaceRoot ?? process.cwd(), flags.root)
|
|
314
|
+
: (ctx.workspaceRoot ?? process.cwd());
|
|
315
|
+
const files = flags.files
|
|
316
|
+
? flags.files.split(",").map((f) => path.resolve(root, f.trim()))
|
|
317
|
+
: collectSkillDocFiles(root);
|
|
318
|
+
// --check is the explicit form of the default; --write renders and always
|
|
319
|
+
// exits 0 (claim drift it cannot heal is reported, never auto-fixed).
|
|
320
|
+
const write = flags.write === true && flags.check !== true;
|
|
321
|
+
const { drift, healedRegions, markedRegions, written } = await lintSkillDocFiles(root, files, FORGE_SKILLS, write, { io: ctx.io, dryRun: ctx.dryRun === true });
|
|
322
|
+
return {
|
|
323
|
+
command: "forge.skill.doc-sync",
|
|
324
|
+
status: !write && drift.length > 0 ? "fail" : "pass",
|
|
325
|
+
filesScanned: files.length,
|
|
326
|
+
markedRegions,
|
|
327
|
+
drift,
|
|
328
|
+
healedRegions,
|
|
329
|
+
written,
|
|
330
|
+
dryRun: ctx.dryRun === true,
|
|
331
|
+
};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AAE,CAC5C,CAAC;IACF,OAAO;QACL,OAAO,EAAE,sBAAsB;QAC/B,MAAM,EAAE,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;QACpD,YAAY,EAAE,KAAK,CAAC,MAAM;QAC1B,aAAa;QACb,KAAK;QACL,aAAa;QACb,OAAO;QACP,MAAM,EAAE,GAAG,CAAC,MAAM,KAAK,IAAI;KAC5B,CAAC;AACJ,CAAC"}
|
|
@@ -14,7 +14,7 @@ Every RFC and ADR is tracked. Decision logs are generated automatically. `forge
|
|
|
14
14
|
|
|
15
15
|
## Agent behavior
|
|
16
16
|
|
|
17
|
-
Repository-local skills define repeatable workflows. Forge ships
|
|
17
|
+
Repository-local skills define repeatable workflows. Forge ships 41 skills (34 `fo-` skills + 4 shared + 3 meta) plus the shared agent operating model — EXPLORE/ROUTINE/GOVERNED work modes with explicit authority boundaries and separated completion vocabulary (IMPLEMENTED / VERIFIED / ACCEPTED / RELEASED). Projects can declare their own skill packs with custom prefixes.
|
|
18
18
|
|
|
19
19
|
Skills are deployed to `.agents/skills/` by `forge create` and synced by `forge upgrade`. The agent discovers and invokes skills based on their descriptions.
|
|
20
20
|
|
|
@@ -25,6 +25,14 @@ Skills are deployed to `.agents/skills/` by `forge create` and synced by `forge
|
|
|
25
25
|
- `forge compass.validate` — validates source-file contract blocks (MODULE_CONTRACT, CHANGE_SUMMARY)
|
|
26
26
|
- `forge naming.convention.lint` — enforces kebab-case naming
|
|
27
27
|
- `forge public-surface.validate` — checks README/package.json consistency
|
|
28
|
+
- `forge session.audit` / `forge session.audit.report` — deterministic detectors over saved agent sessions (circumvention, blocker deception, false completion claims) and their frequency read-model
|
|
29
|
+
- `forge context.index.build` / `forge context.assemble` / `forge context.slate.eval` — budgeted context slates with a recall@budget quality metric
|
|
30
|
+
- `forge trajectory.index` / `forge trajectory.recall` / `forge trajectory.outcome.record` — procedure memory extracted from verified sessions only
|
|
31
|
+
- `forge gate.probe` / `forge gate.probe.catalog` — seeded-violation probes proving gates still fire on their real scan paths
|
|
32
|
+
- `forge conformance.run` / `forge conformance.validate` — producer→consumer contract conformance
|
|
33
|
+
- `forge codebase.measure` — repository-scale line and symbol measurement
|
|
34
|
+
|
|
35
|
+
Instructions, validation and enforcement are distinct levels — see [the verification model](verification-model.md) for what each level does and does not guarantee.
|
|
28
36
|
|
|
29
37
|
## Evolution
|
|
30
38
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# The verification model
|
|
2
|
+
|
|
3
|
+
Forge does not prove that code is correct. It carries declared engineering requirements and checks them deterministically. Three levels matter — and they are easy to conflate:
|
|
4
|
+
|
|
5
|
+
| Level | What Forge does | What it guarantees |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| **Instructions** | Delivers project rules to the agent — `AGENTS.md`, skills, `forge.yaml` bindings, the operating model | The agent can read the rules. Not that it followed them. |
|
|
8
|
+
| **Validation** | Runs formalized checks — validators, conformance, probes, audits | A declared condition was checked and its verdict recorded. Not that the condition was complete. |
|
|
9
|
+
| **Enforcement** | Blocks a transition when a check fails — only where a gate actually wires the check | A violation cannot pass _that gate_. Nothing more. |
|
|
10
|
+
|
|
11
|
+
## The chain, end to end
|
|
12
|
+
|
|
13
|
+
A rule only protects the project when the whole chain holds:
|
|
14
|
+
|
|
15
|
+
1. The requirement is **declared** — RFC, ADR, DNA invariant, binding, contract file.
|
|
16
|
+
2. A **validator** exists that can check it — a forge command, a test, a gate step.
|
|
17
|
+
3. The validator is **reachable** by whoever must run it — the agent reads `AGENTS.md`; CI runs the gate.
|
|
18
|
+
4. A failing verdict **blocks** something real — a commit, a merge, a release.
|
|
19
|
+
|
|
20
|
+
Break any link and the rule is documentation, not a gate. `forge gate.probe` exists for exactly this reason: it seeds a violation at the real path and proves the gate still fires.
|
|
21
|
+
|
|
22
|
+
## What Forge does not guarantee
|
|
23
|
+
|
|
24
|
+
- **Semantic correctness.** Validators check declared conditions; they cannot prove arbitrary code correct.
|
|
25
|
+
- **Unwired enforcement.** A validator that nothing invokes is a report, not a gate. Wiring — CI, hooks, commit policy — is the operator's responsibility.
|
|
26
|
+
- **Agent honesty.** Session audit detects classes of evasion; it is a detector with known false-positive and false-negative rates, not proof of good faith.
|
|
27
|
+
- **Human approval.** Forge complements review; it does not replace it.
|
|
28
|
+
|
|
29
|
+
The accurate promise: Forge provides versioned project instructions, executable checks, and evidence-producing workflows. When its validators are enforced by CI, violations of declared contracts block the merge. Forge does not replace human approval or guarantee semantic correctness.
|
|
30
|
+
|
|
31
|
+
See [Verification & evidence — scenario guide](../guides/verification-and-evidence.md) for the per-mechanism input → operation → output → human decision walkthroughs.
|
|
@@ -36,3 +36,15 @@ Transplanting an existing codebase into Forge is an interactive, AI-guided proce
|
|
|
36
36
|
- The matching stack profile is detected from marker files (`phaser.config.*`, `project.godot`, etc.) <!-- pkg-health-12: code/config path, not a command -->
|
|
37
37
|
- `AGENTS.md` is generated from `forge.yaml`
|
|
38
38
|
- Skills are deployed to `.agents/skills/`
|
|
39
|
+
|
|
40
|
+
## Safety checklist
|
|
41
|
+
|
|
42
|
+
Before transplanting:
|
|
43
|
+
|
|
44
|
+
- **Commit or stash all work in the source project** — a clean source tree makes the post-transplant diff reviewable and recovery trivial.
|
|
45
|
+
- **Keep a backup of the source directory** until the transplanted project verifies green (`forge doctor` + your build). The transplant moves files; the backup is the rollback.
|
|
46
|
+
- **Audit secrets before migrating.** `.env` and git-ignored files are migrated by design — afterwards, confirm secrets landed only in git-ignored paths of the target and rotate any credential that had ever been committed to history.
|
|
47
|
+
- **Review the diff before your first commit** — `git status` and `git diff` show exactly what the skill added (`forge.yaml`, `AGENTS.md`, `.agents/skills/`, profile config) versus what it left untouched.
|
|
48
|
+
- **Prefer skipping git history** for projects with secrets in past commits — history transfer is optional, not required.
|
|
49
|
+
|
|
50
|
+
Recovery: if verification fails, restore from the backup and re-run the bootstrap — the skill does not modify anything outside the target project directory.
|
package/docs/guides/skills.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Skills
|
|
2
2
|
|
|
3
|
-
Forge ships
|
|
3
|
+
Forge ships <!-- forge:skills-count -->41 skills (34 fo + 4 shared + 3 meta)<!-- /forge:skills-count --> — the `fo-` skills are Forge's portable skill set, shared skills are cross-cutting, and meta skills author other skills. The `skills/` tree also carries support material that is not itself a skill — reference documents under `skills/_shared/` (e.g. the agent operating model that skills include by reference) and the `skills/shared/knowledge/` data directory.
|
|
4
4
|
|
|
5
5
|
## How skills work
|
|
6
6
|
|
|
@@ -20,15 +20,31 @@ The AI agent reads skill descriptions and invokes skills based on the user's req
|
|
|
20
20
|
|
|
21
21
|
## Built-in skills
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
<!-- forge:skills-inventory -->
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
- **
|
|
28
|
-
- **
|
|
25
|
+
**41 skills** — 34 fo, 4 shared, 3 meta.
|
|
26
|
+
|
|
27
|
+
- **fo (34):** `fo-add-tests`, `fo-architecture`, `fo-compass-annotate`, `fo-design-summit`, `fo-doc-audit`, `fo-doctor`, `fo-explore`, `fo-extract-dna`, `fo-fix`, `fo-handoff`, `fo-harvest`, `fo-idea`, `fo-idea-audit`, `fo-idea-create-adr`, `fo-idea-create-rfc`, `fo-idea-enhance`, `fo-idea-i-just-want-to-see-the-plan`, `fo-idea-i-just-want-to-see-the-result`, `fo-idea-implement`, `fo-idea-plan`, `fo-idea-status`, `fo-knowledge-distill`, `fo-memory-sync`, `fo-outbox`, `fo-qa`, `fo-reproduce`, `fo-review`, `fo-session-retro`, `fo-session-save`, `fo-spec-ingest`, `fo-step-commit`, `fo-system-dispatch`, `fo-task-run`, `fo-triage`
|
|
28
|
+
- **shared (4):** `grilling`, `my-preferences`, `windows-ai-tooling`, `writing-great-skills`
|
|
29
|
+
- **meta (3):** `forge-bootstrap`, `port-to-forge`, `skill-create`
|
|
30
|
+
|
|
31
|
+
<!-- /forge:skills-inventory -->
|
|
32
|
+
|
|
33
|
+
### How they're organized
|
|
34
|
+
|
|
35
|
+
Skill categories:
|
|
36
|
+
|
|
37
|
+
- **Idea pipeline** — `fo-idea`, `fo-idea-audit`, `fo-idea-create-rfc`, `fo-idea-create-adr`, `fo-idea-plan`, `fo-idea-enhance`, `fo-idea-implement`, `fo-idea-status`, plus the two shortcut skills `fo-idea-i-just-want-to-see-the-plan` / `-result`
|
|
38
|
+
- **Review** — `fo-review`, `fo-fix`, `fo-architecture`, `fo-design-summit`
|
|
39
|
+
- **Architecture & DNA** — `fo-extract-dna`, `fo-compass-annotate`
|
|
40
|
+
- **Session & memory** — `fo-session-retro`, `fo-session-save`, `fo-handoff`, `fo-memory-sync`
|
|
29
41
|
- **Knowledge** — `fo-knowledge-distill`
|
|
30
|
-
- **Testing** — `fo-add-tests`
|
|
31
|
-
- **
|
|
42
|
+
- **Testing & triage** — `fo-add-tests`, `fo-reproduce`, `fo-triage`, `fo-qa`
|
|
43
|
+
- **Exploration & specs** — `fo-explore`, `fo-spec-ingest`
|
|
44
|
+
- **System dispatch** — `fo-system-dispatch`, `fo-task-run`, `fo-outbox`
|
|
45
|
+
- **Process helpers** — `fo-step-commit`, `fo-doc-audit`, `fo-harvest`, `fo-doctor`
|
|
46
|
+
- **Shared** — `grilling` (stress-test plans before implementation), `my-preferences`, `windows-ai-tooling`, `writing-great-skills`
|
|
47
|
+
- **Meta** — `forge-bootstrap`, `port-to-forge`, `skill-create`
|
|
32
48
|
|
|
33
49
|
## Project-local skill packs
|
|
34
50
|
|
|
@@ -51,6 +67,9 @@ pnpm exec forge skill.validate
|
|
|
51
67
|
# List all skills (pack skills annotated with pack:<prefix>)
|
|
52
68
|
pnpm exec forge skill.list
|
|
53
69
|
|
|
70
|
+
# Re-render marked skill regions in docs / fail on stale skill-count claims
|
|
71
|
+
forge skill.doc-sync [--write]
|
|
72
|
+
|
|
54
73
|
# Validate pack manifests
|
|
55
74
|
pnpm exec forge plugin.validate
|
|
56
75
|
```
|
package/docs/guides/upgrading.md
CHANGED
|
@@ -19,7 +19,9 @@ pnpm exec forge doctor
|
|
|
19
19
|
- Updates binding defaults in `forge.yaml` (without overwriting operator-set values)
|
|
20
20
|
- Updates `forge.syncedVersion` to track the last synced version
|
|
21
21
|
- Is idempotent — running it twice produces the same result
|
|
22
|
-
-
|
|
22
|
+
- Reconciles forge-managed artifacts: synced skill dirs get a `.forge-managed` manifest; a stale dir (one whose skill no longer ships upstream) is pruned **only** when its on-disk contents exactly match the recorded manifest. Consumer-owned dirs are never deleted — dirs without a marker, with a corrupt marker, or containing extra files are kept and reported (RFC-1154)
|
|
23
|
+
- Injects a delimited forge-managed block into `.prettierignore` for consumers that use prettier
|
|
24
|
+
- Merges, never overwrites, editable generated guides: content below `<!-- forge:custom -->` in `AGENTS.md` is preserved verbatim (RFC-1153)
|
|
23
25
|
|
|
24
26
|
## Preview changes
|
|
25
27
|
|
|
@@ -27,9 +29,11 @@ pnpm exec forge doctor
|
|
|
27
29
|
pnpm exec forge upgrade --dry-run
|
|
28
30
|
```
|
|
29
31
|
|
|
32
|
+
`--dry-run` also reports `nestedAgentsPlanned` / `nestedAgentsPreserved` / `nestedAgentsSkipped` for nested `AGENTS.md` guides.
|
|
33
|
+
|
|
30
34
|
## What upgrade does NOT do
|
|
31
35
|
|
|
32
36
|
- Does not overwrite operator-set bindings
|
|
33
|
-
- Does not delete files
|
|
37
|
+
- Does not delete consumer-owned files — only byte-identical stale forge-managed dirs are pruned (above)
|
|
34
38
|
- Does not modify RFCs, ADRs, or source code
|
|
35
39
|
- Does not run tests or builds
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Verification & evidence — scenario guide
|
|
2
|
+
|
|
3
|
+
Six Forge mechanisms produce evidence about agent work. Each entry follows the same shape: input → operation → output → the human decision it supports. For the guarantee boundaries behind these, read [The verification model](../concepts/verification-model.md).
|
|
4
|
+
|
|
5
|
+
## Session audit — did the agent do what it claims?
|
|
6
|
+
|
|
7
|
+
- **Input:** saved session transcripts under `docs/sessions/*.md` (and `archive/`).
|
|
8
|
+
- **Operation:** `forge session.audit [--session <id>] [--check] [--relabel] [--deep] [--window <n>]` runs deterministic Stage-A detectors: AUDIT-10 circumvention, AUDIT-11 blocker deception, AUDIT-12 generated-file edits, AUDIT-13 denied retry, AUDIT-14 false completion claims; AUDIT-01/02 report coverage caveats.
|
|
9
|
+
- **Output:** one `docs/sessions/audit/<id>.audit.yaml` sidecar per session; `forge session.audit.report` aggregates per-rule frequency and verdict distribution into `docs/metrics/session-audit.generated.yaml`.
|
|
10
|
+
- **Human decision:** an AUDIT-14 finding is a signal to re-review that session's diff — a detector, not a verdict. Expect false positives on unusual-but-legitimate sessions; the point is that "the agent says it's done" stops being the only evidence.
|
|
11
|
+
|
|
12
|
+
## Trajectory memory — reuse procedures that worked
|
|
13
|
+
|
|
14
|
+
- **Input:** GREEN-verified sessions only — admission happens at extraction, so non-green sessions produce nothing.
|
|
15
|
+
- **Operation:** `forge trajectory.index` extracts procedure units into `docs/.index/trajectory/units.yaml`; `forge trajectory.recall --task "<desc>" [--paths <glob>] [--k <n>]` returns top-k units by situation similarity for a new task.
|
|
16
|
+
- **Output:** ranked procedure candidates, journaled to `docs/.index/trajectory/recalls.jsonl`.
|
|
17
|
+
- **Human decision:** after applying a recalled procedure, record the outcome — `forge trajectory.outcome.record --recall <id> --helped|--hurt [--note <text>]` — so `utilityScore` re-ranking and `producerTrust` decay stale knowledge instead of trusting it forever.
|
|
18
|
+
|
|
19
|
+
## Context assembly — a bounded, cited context slate
|
|
20
|
+
|
|
21
|
+
- **Input:** `docs/.index/context/index.yaml`, rebuilt by `forge context.index.build` — a pure-projection unit catalog (session-block, knowledge-entry, friction, remediation, rfc-header, adr-header, skill-manifest, handoff, decision); dropping the directory and rebuilding is the supported reset.
|
|
22
|
+
- **Operation:** `forge context.assemble --task "<desc>" [--budget <tokens>] [--paths <glob>] [--auto-index] [--format markdown]` ranks units by lexical overlap + recency + kind weight + path overlap.
|
|
23
|
+
- **Output:** a budgeted slate where every unit cites its source and ranking reasons. `forge context.slate.eval` scores recall@budget against the `docs/context-devset/` task→requiredUnits pairs — the completeness metric and the regression gate for ranker changes.
|
|
24
|
+
- **Human decision:** read the slate before delegating; a missing unit means the index lacks that source kind, not that the ranker failed.
|
|
25
|
+
|
|
26
|
+
## Gate probes — prove the gate still fires
|
|
27
|
+
|
|
28
|
+
- **Input:** declared probe fixtures bound to a rule or contract; `forge gate.probe.catalog` lists per-contract coverage, unprobed error-severity rules (PROBE-03), and stale fixture bindings (PROBE-05).
|
|
29
|
+
- **Operation:** `forge gate.probe --rule <id> | --contract <id> | --all | --list` injects the declared violation at its real workspace path — backup → invoke the check → restore.
|
|
30
|
+
- **Output:** pass/fail per probe: the gate fired on its real scan path, or it silently stopped protecting the rule.
|
|
31
|
+
- **Human decision:** a failed probe means the gate is dead code — fix the wiring before trusting that check's green.
|
|
32
|
+
|
|
33
|
+
## Conformance — producer→consumer contracts
|
|
34
|
+
|
|
35
|
+
- **Input:** a declared contract surface between a producer and a consumer.
|
|
36
|
+
- **Operation:** `forge conformance.run` executes the consumer's conformance validator against the producer artifact; `forge conformance.validate` checks the declaration itself.
|
|
37
|
+
- **Output:** a conformance report — the contract satisfied, or a named violation.
|
|
38
|
+
- **Human decision:** a unit test checks intent inside one codebase; conformance checks the boundary two codebases agreed on. A red report blocks the consumer's release of that surface.
|
|
39
|
+
|
|
40
|
+
## Agent operating model — the shared behavior contract
|
|
41
|
+
|
|
42
|
+
- **Input:** `skills/_shared/agent-operating-model.md`, shipped as a shared skill and synced to consumers by `forge upgrade`.
|
|
43
|
+
- **Operation:** instructs agents on work modes (EXPLORE / ROUTINE / GOVERNED), authority boundaries (the operator owns intent and significant decisions; the agent owns implementation inside them and escalates rather than guesses at a boundary), a proportionate verification portfolio (rigor scales to risk — tests are one tool, not a mandatory-TDD rule), and separated completion vocabulary.
|
|
44
|
+
- **Output:** behavioral **instructions** — the model tells the agent to report IMPLEMENTED / VERIFIED / ACCEPTED / RELEASED separately, so a claim never outruns its evidence.
|
|
45
|
+
- **Human decision:** the model governs how the agent reports; whether the report is true is what the validators above exist to check.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Devin integration
|
|
2
|
+
|
|
3
|
+
Forge's contract is plain files in the repository — `forge.yaml`, `AGENTS.md`, `.agents/skills/<name>/SKILL.md`, RFCs — and Devin reads these formats natively. No adapter, plugin, or hosted service is required.
|
|
4
|
+
|
|
5
|
+
> **Status:** verified against Devin's published conventions — Devin CLI reads `AGENTS.md` as always-on project rules and discovers `.agents/skills/<name>/SKILL.md` under the agents skills standard. An end-to-end public example is planned; this page marks what is verified and what is not.
|
|
6
|
+
|
|
7
|
+
## Install Forge for a Devin session
|
|
8
|
+
|
|
9
|
+
Inside the repository where Devin will work:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
pnpm dlx @warpgogol/forge@latest create --in-place --profile typescript
|
|
13
|
+
# or, in an existing project: pnpm add -D @warpgogol/forge && pnpm exec forge init
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
This writes `forge.yaml`, generates `AGENTS.md`, and deploys skills to `.agents/skills/`:
|
|
17
|
+
|
|
18
|
+
- **`AGENTS.md`** — loaded by Devin as always-on project rules. Keep it concise: Devin's guidance pushes heavier instruction sets into skills, which matches Forge's layout (rules in `AGENTS.md`, workflows in `.agents/skills/`).
|
|
19
|
+
- **`.agents/skills/<name>/SKILL.md`** — discovered by Devin CLI; no conversion needed.
|
|
20
|
+
- **The `forge` CLI** — invoked like any repo command: `pnpm exec forge doctor`, `pnpm exec forge rfc.validate`, etc.
|
|
21
|
+
|
|
22
|
+
**Devin CLI vs Devin Cloud.** The conventions above are verified for Devin CLI. Devin Cloud sessions run inside a prepared environment: install Forge in the environment setup (e.g. `pnpm install` in the snapshot/blueprint) so the `forge` binary and `.agents/skills/` exist before the session starts. Do not assume identical behavior until verified — Node version and package-manager availability are the usual failure points.
|
|
23
|
+
|
|
24
|
+
## One task, end to end
|
|
25
|
+
|
|
26
|
+
Example: ask Devin to change a validator without breaking an architectural contract.
|
|
27
|
+
|
|
28
|
+
1. **Devin reads** `AGENTS.md` and the relevant skills — learns the contract (which invariants the change must satisfy) and the verification commands (`forge rfc.validate`, `pnpm test`).
|
|
29
|
+
2. **Devin implements** the change and opens a PR.
|
|
30
|
+
3. **CI runs the repo's checks independently of the agent's self-assessment** — unit tests plus `forge` validators (naming, compass, RFC lifecycle).
|
|
31
|
+
4. **Green** → human review. **Red** → the finding names the violated rule; Devin fixes and reruns.
|
|
32
|
+
|
|
33
|
+
The important property: Forge's checks run outside the agent's reasoning. A PR passes because deterministic validators pass — not because the agent reports done.
|
|
34
|
+
|
|
35
|
+
## Division of responsibility
|
|
36
|
+
|
|
37
|
+
| Devin | Forge |
|
|
38
|
+
| --- | --- |
|
|
39
|
+
| Analyzes the codebase, writes code, opens PRs | Holds the project contract and instructions |
|
|
40
|
+
| Uses its own memory and skills | Provides portable, versioned skills and workflows |
|
|
41
|
+
| Verifies its own work | Adds independent deterministic checks |
|
|
42
|
+
| Decides a session is done | Reports IMPLEMENTED / VERIFIED / ACCEPTED separately — claims never outrun evidence |
|
|
43
|
+
|
|
44
|
+
## What Forge does not do
|
|
45
|
+
|
|
46
|
+
- Does not change Devin's reasoning, planning, or model.
|
|
47
|
+
- Does not guarantee semantic correctness — validators check declared conditions only.
|
|
48
|
+
- Does not enforce anything by itself. A validator that CI does not run is a report, not a gate — wire `forge` checks into CI or hooks for enforcement. See [the verification model](../concepts/verification-model.md).
|
|
49
|
+
- Does not require or provide a hosted service — everything is files in the repo.
|