Skip to content

Commit f7edb44

Browse files
require traceability in indexed page writes
1 parent d269e1e commit f7edb44

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

global-template/docgen/prompts/write-pages-indexed.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ Page contracts:
66
For every contract:
77
1. Read only its declared `contextPath`.
88
2. Write exactly its declared `outputPath`.
9-
3. Do not read repository source, SQLite, broad `.docgen/model/**`, existing unrelated pages, agents, or skills.
10-
4. Treat the context pack as the complete allowed factual context.
9+
3. Write exactly its declared `traceabilityPath` in the same run.
10+
4. Do not read repository source, SQLite, broad `.docgen/model/**`, existing unrelated pages, agents, or skills.
11+
5. Treat the context pack as the complete allowed factual context.
1112

1213
Writing rules:
1314
- preserve FACT / INFERENCE / UNKNOWN distinctions;
@@ -21,4 +22,23 @@ Writing rules:
2122
- include YAML frontmatter with title, description, pageId, category, mode, type, and order;
2223
- verify every output exists and contains one H1 before finishing.
2324

25+
Traceability sidecar shape:
26+
{
27+
"schemaVersion": "2.0",
28+
"pageId": "contract page id",
29+
"pagePath": "contract output path",
30+
"claims": [
31+
{
32+
"id": "stable page-scoped claim id",
33+
"section": "heading containing the claim",
34+
"statement": "material repository-specific claim",
35+
"classification": "FACT|INFERENCE|UNKNOWN",
36+
"confidence": 0.0,
37+
"evidence": [{"path":"repository-relative path","startLine":1,"endLine":1}],
38+
"sourceModelRefs": ["qualified model item id from context"]
39+
}
40+
]
41+
}
42+
43+
A FACT claim requires direct evidence present in the context pack. The orchestrator will fill pageHash, inputHash, and contextId.
2444
Do not delegate to another agent. Complete the bounded write directly.

0 commit comments

Comments
 (0)