@veewo/claw-core 0.2.10 → 0.2.12
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/README.md +16 -16
- package/dist/src/context.js +1 -0
- package/dist/src/context.js.map +1 -1
- package/dist/src/daily-maintenance.d.ts +1 -0
- package/dist/src/daily-maintenance.js +10 -5
- package/dist/src/daily-maintenance.js.map +1 -1
- package/dist/src/embedding-config.d.ts +9 -0
- package/dist/src/embedding-config.js +21 -0
- package/dist/src/embedding-config.js.map +1 -0
- package/dist/src/errors.d.ts +1 -1
- package/dist/src/errors.js.map +1 -1
- package/dist/src/init.js +1 -0
- package/dist/src/init.js.map +1 -1
- package/dist/src/io.d.ts +11 -0
- package/dist/src/io.js +27 -0
- package/dist/src/io.js.map +1 -1
- package/dist/src/knowledge-assignments.d.ts +3 -2
- package/dist/src/knowledge-assignments.js +83 -21
- package/dist/src/knowledge-assignments.js.map +1 -1
- package/dist/src/knowledge-sidecar.d.ts +6 -0
- package/dist/src/knowledge-sidecar.js +16 -0
- package/dist/src/knowledge-sidecar.js.map +1 -1
- package/dist/src/plan.js +36 -1
- package/dist/src/plan.js.map +1 -1
- package/dist/src/project-check.js +2 -0
- package/dist/src/project-check.js.map +1 -1
- package/dist/src/project-config-defaults.d.ts +6 -0
- package/dist/src/project-config-defaults.js +5 -0
- package/dist/src/project-config-defaults.js.map +1 -0
- package/dist/src/resources/cindy-delegate-writer/TEMPLATE.json +49 -0
- package/dist/src/resources/delegate-writer/TEMPLATE.json +1 -1
- package/dist/src/resources/doc-updater/SKILL.md +17 -0
- package/dist/src/resources/doc-updater/TEMPLATE.json +98 -0
- package/dist/src/resources/knowledge-writer/CONTENT-COVERAGE.md +30 -30
- package/dist/src/resources/knowledge-writer/SKILL.md +12 -9
- package/dist/src/resources/knowledge-writer/TEMPLATE.json +1 -1
- package/dist/src/resources/knowledge-writer/knowledge-format.md +95 -47
- package/dist/src/resources/knowledge-writer/non-claw-fallback.md +53 -53
- package/dist/src/templates/plans/default.js +1 -1
- package/dist/src/types.d.ts +1 -0
- package/dist/src/workflow-guidance.config.json +365 -365
- package/package.json +48 -48
- package/dist/src/resources/knowledge-writer/agents/openai.yaml +0 -4
- package/dist/src/workflow-guidance.codex.config.json +0 -363
- package/dist/src/workflow-guidance.qoder.config.json +0 -362
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-config-defaults.js","sourceRoot":"","sources":["../../src/project-config-defaults.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC;AAE3C,MAAM,UAAU,sBAAsB,CAAC,aAInB;IAClB,OAAO,aAAa,EAAE,MAAM,EAAE,OAAO,KAAK,KAAK,CAAC;AAClD,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "internal-cindy-knowledge-delegate",
|
|
3
|
+
"version": "0.2.12",
|
|
4
|
+
"scope": "session",
|
|
5
|
+
"title": "internal Cindy knowledge delegate",
|
|
6
|
+
"status": "process.active",
|
|
7
|
+
"goal": {
|
|
8
|
+
"text": "Complete one dispatched Cindy knowledge finalization through its generated assignment subplan."
|
|
9
|
+
},
|
|
10
|
+
"requirements": {
|
|
11
|
+
"summary": "Claim the durable Cindy job, execute its frozen assignment template as a subplan, and persist one terminal result.",
|
|
12
|
+
"openQuestions": [],
|
|
13
|
+
"acceptanceCriteria": [
|
|
14
|
+
"The claim captures the originating Cindy task conclusions before issuing ownership.",
|
|
15
|
+
"The generated assignment template executes inside the session workflow.",
|
|
16
|
+
"The claimed job receives one matching terminal result."
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"tasks": [
|
|
20
|
+
{
|
|
21
|
+
"id": 1,
|
|
22
|
+
"title": "Claim the ready Cindy knowledge job",
|
|
23
|
+
"detail": "Use the claw-kit Ghost knowledge.claim operation with the exact finalization id supplied by dispatch. Retain claimToken, templatePath, assignments, and immutable configuration. If the originating report has not yet persisted, retry the same claim; if claimed is false, do not edit project knowledge.",
|
|
24
|
+
"status": "pending"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": 2,
|
|
28
|
+
"title": "Execute the assignment subplan",
|
|
29
|
+
"detail": "Use the claw-kit Ghost subplan.create operation with this finalizer task name as parent, task id 2, and the templateFile returned by knowledge.claim.",
|
|
30
|
+
"status": "pending"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": 3,
|
|
34
|
+
"title": "Persist the terminal result",
|
|
35
|
+
"detail": "After a successful claim, use the claw-kit Ghost knowledge.done operation once with the exact finalization id and claimToken. Report succeeded only when the assignment subplan succeeded; otherwise report failed with the remaining error.",
|
|
36
|
+
"status": "pending"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"references": [],
|
|
40
|
+
"rules": [
|
|
41
|
+
"Use only the supplied finalization id, claim token, and generated assignment template.",
|
|
42
|
+
"Do not modify the supplied plan or report materials.",
|
|
43
|
+
"Do not start another finalizer or delegate the assignments to another agent."
|
|
44
|
+
],
|
|
45
|
+
"keyDecisions": [],
|
|
46
|
+
"retrospective": {
|
|
47
|
+
"summary": ""
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: doc-updater
|
|
3
|
+
description: Update configured existing external documentation as the dependent documentation stage of knowledge finalization.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Doc updater
|
|
7
|
+
|
|
8
|
+
Resolve `<skill-dir>` as the directory containing this file.
|
|
9
|
+
|
|
10
|
+
Use this skill only when it owns the external-document stage of an active
|
|
11
|
+
knowledge-finalization plan. Create its subplan with:
|
|
12
|
+
|
|
13
|
+
`claw subplan create --parent <parent-task-name> --task-id <id> --template-file "<skill-dir>/TEMPLATE.json"`
|
|
14
|
+
|
|
15
|
+
The parent stage supplies the frozen external documentation paths, finalization
|
|
16
|
+
materials, and the resulting canonical knowledge state. This skill has no
|
|
17
|
+
standalone plan route.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "doc-updater",
|
|
3
|
+
"version": "0.2.12",
|
|
4
|
+
"scope": "session",
|
|
5
|
+
"title": "doc-updater",
|
|
6
|
+
"status": "process.active",
|
|
7
|
+
"goal": {
|
|
8
|
+
"text": "Update affected existing external documentation from the finalized project knowledge state."
|
|
9
|
+
},
|
|
10
|
+
"requirements": {
|
|
11
|
+
"summary": "Use the supplied finalization evidence and resulting canonical knowledge to repair stale or conflicting claims in the frozen external documentation corpus without creating documents or imposing a canonical format.",
|
|
12
|
+
"openQuestions": [],
|
|
13
|
+
"acceptanceCriteria": [
|
|
14
|
+
"Only existing documents inside the frozen external documentation paths are eligible for modification.",
|
|
15
|
+
"Current-state claims are checked against current implementation and resulting canonical knowledge without rewriting requirements, future design, or history as completed behavior.",
|
|
16
|
+
"Affected documents retain their own language, structure, purpose, and unrelated user edits.",
|
|
17
|
+
"Focused semantic and exhaustive identifier searches find no unresolved stale or competing current claim in the affected external documentation corpus."
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"tasks": [
|
|
21
|
+
{
|
|
22
|
+
"id": 1,
|
|
23
|
+
"title": "Identify affected existing documentation",
|
|
24
|
+
"detail": "Read this subplan's parent assignment detail to recover the supplied finalization materials and frozen external documentation paths, then inspect the resulting canonical knowledge state. Enumerate only existing documents inside those paths. Use claw search to find documents affected by the completed conclusions, then use exact identifiers, config keys, commands, paths, and other distinguishing terms to find plausible matches that top-k recall could omit. Do not modify documents yet.",
|
|
25
|
+
"status": "pending",
|
|
26
|
+
"guidance": {
|
|
27
|
+
"onDone": {
|
|
28
|
+
"default": {
|
|
29
|
+
"mergeMode": "override",
|
|
30
|
+
"summary": "Affected existing documents and plausible competing claims are identified; resolve their semantics and freshness next.",
|
|
31
|
+
"nextsteps": [
|
|
32
|
+
"Carry forward the evidence location and affected passage for each candidate.",
|
|
33
|
+
"Treat absence of an existing affected document as a valid no-edit outcome rather than creating a new document."
|
|
34
|
+
],
|
|
35
|
+
"nextTaskId": 2
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": 2,
|
|
42
|
+
"title": "Resolve document semantics and freshness",
|
|
43
|
+
"detail": "Classify each affected passage as current-state documentation, historical evidence, a requirement, future design, tutorial guidance, or an example. Check material current-state claims against current implementation anchors, relevant working-tree changes, and the resulting canonical Truth and ADR state. Decide whether each passage must be updated, narrowed, time-bound, or retained unchanged. Do not mechanically overwrite an intentional requirement, future design, or useful history because its wording differs from current implementation.",
|
|
44
|
+
"status": "pending",
|
|
45
|
+
"guidance": {
|
|
46
|
+
"onDone": {
|
|
47
|
+
"default": {
|
|
48
|
+
"mergeMode": "override",
|
|
49
|
+
"summary": "Affected passages are classified and freshness-qualified; update only the safely resolved existing documents.",
|
|
50
|
+
"nextsteps": [
|
|
51
|
+
"Preserve each document's existing purpose and local conventions.",
|
|
52
|
+
"Retain unresolved ambiguity as an explicit no-edit reason instead of guessing."
|
|
53
|
+
],
|
|
54
|
+
"nextTaskId": 3
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": 3,
|
|
61
|
+
"title": "Update existing external documents",
|
|
62
|
+
"detail": "Apply the freshness-qualified changes to existing eligible documents only. Preserve their language, structure, formatting, scope, and unrelated user edits. Do not create, move, rename, or standardize documents, and do not require owner metadata or canonical Truth/ADR formatting. Keep useful historical or future-facing content when it is accurately scoped.",
|
|
63
|
+
"status": "pending",
|
|
64
|
+
"guidance": {
|
|
65
|
+
"onDone": {
|
|
66
|
+
"default": {
|
|
67
|
+
"mergeMode": "override",
|
|
68
|
+
"summary": "Eligible existing documents are updated without changing corpus shape; verify the affected corpus now.",
|
|
69
|
+
"nextsteps": [
|
|
70
|
+
"Re-run both semantic and exhaustive identifier searches.",
|
|
71
|
+
"Check that edited current-state wording agrees with implementation and canonical knowledge."
|
|
72
|
+
],
|
|
73
|
+
"nextTaskId": 4
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": 4,
|
|
80
|
+
"title": "Verify external documentation consistency",
|
|
81
|
+
"detail": "Re-run focused claw search and exhaustive identifier search across the frozen external documentation paths. Verify that affected current-state claims no longer conflict with current implementation or resulting canonical knowledge, that historical and future-facing content remains correctly scoped, and that no file outside the frozen paths was modified. Return changed paths, evidence-backed no-edit reasons, and any conflict that could not be resolved safely.",
|
|
82
|
+
"status": "pending"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"references": [],
|
|
86
|
+
"rules": [
|
|
87
|
+
"Modify only existing documents inside the frozen external documentation paths; never create, move, or rename a document.",
|
|
88
|
+
"Do not assume an owner, frontmatter schema, section layout, language, or canonical document format.",
|
|
89
|
+
"Distinguish current state from requirements, future design, examples, and history before editing.",
|
|
90
|
+
"Current implementation and resulting canonical knowledge qualify current-state claims, but neither justifies erasing accurately scoped intent or history.",
|
|
91
|
+
"Preserve unrelated user edits and local document conventions.",
|
|
92
|
+
"Do not report an unresolved material current-state conflict as governed successfully."
|
|
93
|
+
],
|
|
94
|
+
"keyDecisions": [],
|
|
95
|
+
"retrospective": {
|
|
96
|
+
"summary": ""
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# knowledge-writer content coverage
|
|
2
|
-
|
|
3
|
-
## Source to converted-home mapping
|
|
4
|
-
|
|
5
|
-
- Trigger and template entry: `SKILL.md`; input and quality contract: `TEMPLATE.json` requirements, tasks, guidance, and rules.
|
|
6
|
-
- Template compatibility: `TEMPLATE.json` declares the current claw CLI version.
|
|
7
|
-
- Conclusion evidence from every supplied material, with task-status interpretation when present: `non-claw-fallback.md`, template tasks 1 and 2, acceptance criteria, and template rules.
|
|
8
|
-
- Evidence freshness and unresolved-conflict handling: `non-claw-fallback.md`, template task 2, acceptance criteria, and template rules.
|
|
9
|
-
- Runtime scope: `TEMPLATE.json` top-level `scope` only; it is not repeated in writer prompts.
|
|
10
|
-
- Fixed Truth-then-ADR sequence without routing choices: template tasks 4 and 5 and `non-claw-fallback.md`.
|
|
11
|
-
- Machine-stable current/history/superseded metadata and dated evolution grammar: `knowledge-format.md`, template tasks 4 and 5, and `non-claw-fallback.md`.
|
|
12
|
-
- On-write format inspection and repair without corpus-wide migration: `knowledge-format.md`, template tasks 3 through 6, acceptance criteria, and template rules.
|
|
13
|
-
- Canonical-owner discovery and exhaustive search: template tasks 3 through 6 plus template rules.
|
|
14
|
-
- One-owner stewardship and cross-document consistency: template task 6, template rules, and `non-claw-fallback.md`.
|
|
15
|
-
- Writing constraints, encoding, exact identifiers, and return behavior: `non-claw-fallback.md`, template task 6, and template rules.
|
|
16
|
-
- Supplied-material immutability: template task 1, acceptance criteria, template rules, and `non-claw-fallback.md`.
|
|
17
|
-
- Verification gate: template task 6 requires focused and exhaustive post-write review before completion.
|
|
18
|
-
|
|
19
|
-
## Coverage result
|
|
20
|
-
|
|
21
|
-
- [x] Important source triggers and inputs are represented.
|
|
22
|
-
- [x] Conclusion-bearing content from every supplied material drives deposition; task status informs interpretation without turning task metadata into an execution record.
|
|
23
|
-
- [x] The ordered workflow always performs the Truth pass before the ADR pass and has no route-choice task.
|
|
24
|
-
- [x] Search tools, ownership constraints, and safety boundaries are represented.
|
|
25
|
-
- [x] Time-bounded authority, current-anchor checks, and unresolved-freshness no-edit behavior are represented.
|
|
26
|
-
- [x] Writing and consistency verification requirements are represented.
|
|
27
|
-
- [x] Canonical state and dated evolution semantics are represented.
|
|
28
|
-
- [x] Every written owner is repaired to canonical format while untouched documents remain unmigrated.
|
|
29
|
-
- [x] Full direct behavior remains available in the adjacent fallback.
|
|
30
|
-
- [x] No source companion scripts or external links require migration.
|
|
1
|
+
# knowledge-writer content coverage
|
|
2
|
+
|
|
3
|
+
## Source to converted-home mapping
|
|
4
|
+
|
|
5
|
+
- Trigger and template entry: `SKILL.md`; input and quality contract: `TEMPLATE.json` requirements, tasks, guidance, and rules.
|
|
6
|
+
- Template compatibility: `TEMPLATE.json` declares the current claw CLI version.
|
|
7
|
+
- Conclusion evidence from every supplied material, with task-status interpretation when present: `non-claw-fallback.md`, template tasks 1 and 2, acceptance criteria, and template rules.
|
|
8
|
+
- Evidence freshness and unresolved-conflict handling: `non-claw-fallback.md`, template task 2, acceptance criteria, and template rules.
|
|
9
|
+
- Runtime scope: `TEMPLATE.json` top-level `scope` only; it is not repeated in writer prompts.
|
|
10
|
+
- Fixed Truth-then-ADR sequence without routing choices: template tasks 4 and 5 and `non-claw-fallback.md`.
|
|
11
|
+
- Machine-stable current/history/superseded metadata and dated evolution grammar: `knowledge-format.md`, template tasks 4 and 5, and `non-claw-fallback.md`.
|
|
12
|
+
- On-write format inspection and repair without corpus-wide migration: `knowledge-format.md`, template tasks 3 through 6, acceptance criteria, and template rules.
|
|
13
|
+
- Canonical-owner discovery and exhaustive search: template tasks 3 through 6 plus template rules.
|
|
14
|
+
- One-owner stewardship and cross-document consistency: template task 6, template rules, and `non-claw-fallback.md`.
|
|
15
|
+
- Writing constraints, encoding, exact identifiers, and return behavior: `non-claw-fallback.md`, template task 6, and template rules.
|
|
16
|
+
- Supplied-material immutability: template task 1, acceptance criteria, template rules, and `non-claw-fallback.md`.
|
|
17
|
+
- Verification gate: template task 6 requires focused and exhaustive post-write review before completion.
|
|
18
|
+
|
|
19
|
+
## Coverage result
|
|
20
|
+
|
|
21
|
+
- [x] Important source triggers and inputs are represented.
|
|
22
|
+
- [x] Conclusion-bearing content from every supplied material drives deposition; task status informs interpretation without turning task metadata into an execution record.
|
|
23
|
+
- [x] The ordered workflow always performs the Truth pass before the ADR pass and has no route-choice task.
|
|
24
|
+
- [x] Search tools, ownership constraints, and safety boundaries are represented.
|
|
25
|
+
- [x] Time-bounded authority, current-anchor checks, and unresolved-freshness no-edit behavior are represented.
|
|
26
|
+
- [x] Writing and consistency verification requirements are represented.
|
|
27
|
+
- [x] Canonical state and dated evolution semantics are represented.
|
|
28
|
+
- [x] Every written owner is repaired to canonical format while untouched documents remain unmigrated.
|
|
29
|
+
- [x] Full direct behavior remains available in the adjacent fallback.
|
|
30
|
+
- [x] No source companion scripts or external links require migration.
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: knowledge-writer
|
|
3
|
-
description: Evaluate supplied materials by their content, then maintain canonical Truth followed by ADR knowledge in one consistency-aware pass. Use only when explicitly invoked with supplied materials; do not trigger this skill implicitly.
|
|
4
|
-
---
|
|
5
|
-
# Knowledge writer
|
|
6
|
-
|
|
7
|
-
Resolve `<skill-dir>` as the directory containing this file.
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
---
|
|
2
|
+
name: knowledge-writer
|
|
3
|
+
description: Evaluate supplied materials by their content, then maintain canonical Truth followed by ADR knowledge in one consistency-aware pass. Use only when explicitly invoked with supplied materials; do not trigger this skill implicitly.
|
|
4
|
+
---
|
|
5
|
+
# Knowledge writer
|
|
6
|
+
|
|
7
|
+
Resolve `<skill-dir>` as the directory containing this file.
|
|
8
|
+
|
|
9
|
+
- When this skill owns the supplied finalization assignment as a stage of an active plan, run `claw subplan create --parent <parent-task-name> --task-id <id> --template-file "<skill-dir>/TEMPLATE.json"`.
|
|
10
|
+
- When explicitly invoked with supplied materials outside an active parent plan, run `claw plan create --template-file "<skill-dir>/TEMPLATE.json" --title "knowledge-writer"`.
|
|
11
|
+
|
|
12
|
+
If the template or claw CLI is unavailable, follow `non-claw-fallback.md` directly.
|
|
@@ -1,47 +1,95 @@
|
|
|
1
|
-
# Canonical
|
|
2
|
-
|
|
3
|
-
Use this format for every new Truth or ADR document and every existing owner
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
##
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
1
|
+
# Canonical Truth and ADR format
|
|
2
|
+
|
|
3
|
+
Use this format for every new Truth or ADR document and every existing owner
|
|
4
|
+
written by the current governance pass. Repair a selected owner's format in the
|
|
5
|
+
same edit, but do not mass-rewrite untouched documents.
|
|
6
|
+
|
|
7
|
+
## Kind, path, and state
|
|
8
|
+
|
|
9
|
+
Document kind is inferred from its canonical path: documents under `adr/` are
|
|
10
|
+
ADRs; other documents under the Truth root are Truth documents. Do not add a
|
|
11
|
+
document-kind field.
|
|
12
|
+
|
|
13
|
+
Truth defaults to `current`. ADR defaults to `accepted`. When another state is
|
|
14
|
+
required, place a renderer-hidden comment immediately after the title:
|
|
15
|
+
|
|
16
|
+
```markdown
|
|
17
|
+
# ADR: Replaced decision
|
|
18
|
+
|
|
19
|
+
<!-- document-state: superseded -->
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Allowed states:
|
|
23
|
+
|
|
24
|
+
- Truth: `current`, `historical`
|
|
25
|
+
- ADR: `accepted`, `superseded`, `historical`
|
|
26
|
+
|
|
27
|
+
An ordinary leading `## Status` or `## 状态` section may also supply the state.
|
|
28
|
+
Do not emit tool-specific metadata names.
|
|
29
|
+
|
|
30
|
+
## Truth structure
|
|
31
|
+
|
|
32
|
+
```markdown
|
|
33
|
+
# Feature or behavior title
|
|
34
|
+
|
|
35
|
+
<!-- state: current -->
|
|
36
|
+
## Current behavior
|
|
37
|
+
|
|
38
|
+
Current canonical facts, constraints, ownership, implementation anchors, and
|
|
39
|
+
verification rules.
|
|
40
|
+
|
|
41
|
+
<!-- state: history -->
|
|
42
|
+
## Evolution history
|
|
43
|
+
|
|
44
|
+
<!-- dated: 2026-08-05 -->
|
|
45
|
+
### Replaced behavior
|
|
46
|
+
|
|
47
|
+
The former fact and why it remains useful.
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Keep one current owner for each material fact. Move former behavior into
|
|
51
|
+
history only when it remains useful for rollback, compatibility, repeated
|
|
52
|
+
work, incident reasoning, or understanding a meaningful transition.
|
|
53
|
+
|
|
54
|
+
## ADR structure
|
|
55
|
+
|
|
56
|
+
```markdown
|
|
57
|
+
# ADR: Decision title
|
|
58
|
+
|
|
59
|
+
## Context
|
|
60
|
+
|
|
61
|
+
The forces and problem that required a durable decision.
|
|
62
|
+
|
|
63
|
+
## Decision
|
|
64
|
+
|
|
65
|
+
The accepted decision and its ownership boundary.
|
|
66
|
+
|
|
67
|
+
## Alternatives
|
|
68
|
+
|
|
69
|
+
The material alternatives and why they were not selected.
|
|
70
|
+
|
|
71
|
+
## Consequences
|
|
72
|
+
|
|
73
|
+
The tradeoffs, follow-up constraints, and verification implications.
|
|
74
|
+
|
|
75
|
+
<!-- state: history -->
|
|
76
|
+
## Decision evolution
|
|
77
|
+
|
|
78
|
+
<!-- dated: 2026-08-05 -->
|
|
79
|
+
### Earlier decision
|
|
80
|
+
|
|
81
|
+
The superseded choice and why retaining it is useful.
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Context, Decision, Alternatives, and Consequences inherit the document state.
|
|
85
|
+
Do not manufacture an ADR when no durable decision exists.
|
|
86
|
+
|
|
87
|
+
## Evolution grammar
|
|
88
|
+
|
|
89
|
+
Place `<!-- state: current -->` and `<!-- state: history -->` before natural
|
|
90
|
+
language headings. Each `<!-- dated: YYYY-MM-DD -->` comment starts one complete
|
|
91
|
+
evolution unit at the following level-three heading. The unit ends at the next
|
|
92
|
+
dated comment or level-two heading. The date is a stable checkpoint and search
|
|
93
|
+
signal, not a time-to-live value; multiple checkpoints may share a date.
|
|
94
|
+
|
|
95
|
+
Do not append history for routine progress or every successful task.
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
# Knowledge writer fallback
|
|
2
|
-
|
|
3
|
-
Act as the knowledge-base steward for the project. Leave the relevant Truth and ADR corpus accurate, coherent, and easy for future agents to trust.
|
|
4
|
-
|
|
5
|
-
## Input and evidence boundary
|
|
6
|
-
|
|
7
|
-
Read every supplied material completely. Interpret evidence from its content and semantics rather than requiring a particular filename, field, record shape, or serialization format. Extract executed conclusions, verified findings, retrospective lessons, key decisions, and other explicit outcomes wherever they appear. Do not repeat implementation or test verification or modify supplied materials.
|
|
8
|
-
|
|
9
|
-
When task status is present, it helps interpret completed, pending, and blocked scope, but a task list is not an execution log. Infer execution results, verified findings, planning outcomes, and durable decisions from conclusion-bearing content; never turn task titles, descriptions, requirements, or intentions into completed results merely because they appear in an input.
|
|
10
|
-
|
|
11
|
-
## Evidence freshness
|
|
12
|
-
|
|
13
|
-
Trusted means the evidence was verified at the revision or worktree state it describes; it does not make an older report permanently authoritative for current behavior.
|
|
14
|
-
|
|
15
|
-
- Before writing current behavior from a supplied conclusion, read the relevant implementation anchors and inspect later or overlapping working-tree changes. This is a freshness check, not repeated implementation verification; do not rerun tests merely to reconfirm the report.
|
|
16
|
-
- When current implementation supersedes the report, current implementation owns current-state Truth and the report may only support historical or version-bound evidence.
|
|
17
|
-
- If chronology or authority cannot be resolved safely, omit the affected canonical write and retain the freshness conflict as the reason.
|
|
18
|
-
|
|
19
|
-
## Fixed deposition sequence
|
|
20
|
-
|
|
21
|
-
Process the eligible evidence without a route choice:
|
|
22
|
-
|
|
23
|
-
1. Maintain Truth for stable behavior, architecture facts, constraints, pitfalls, code anchors, and verification rules.
|
|
24
|
-
2. Then maintain ADRs for durable decisions, context, rationale, alternatives, tradeoffs, ownership, and consequences, using the same evidence and resulting Truth state.
|
|
25
|
-
3. Finally review Truth and ADR together for ownership and consistency.
|
|
26
|
-
|
|
27
|
-
Use `knowledge-format.md` for every new document and every existing owner written by this pass. Inspect each selected owner before writing and repair nonconforming structure in the same edit; leave untouched documents unmigrated. Dated identifies an evolution checkpoint, not age or time-to-live.
|
|
28
|
-
|
|
29
|
-
It is valid for either pass to make no edit when the eligible evidence contains no new or changed durable knowledge. Temporary progress, speculation, conversational narration, unchanged facts, and unfinished-task claims do not belong in canonical knowledge.
|
|
30
|
-
|
|
31
|
-
## Stewardship and ownership
|
|
32
|
-
|
|
33
|
-
Use `claw search` to discover existing owners, then open every plausible candidate before judging it. Use exhaustive text search for distinguishing identifiers when top-k recall could hide another current claim. Update the document that already owns the topic; create a new document only for a genuinely new durable topic after filename and title collision checks.
|
|
34
|
-
|
|
35
|
-
Maintain one current owner for each material fact or decision. A broad or neighboring document is still a competing owner when it restates an unqualified current rule. Reconcile overlaps by extending the canonical owner and narrowing other current claims to references, historical evidence, or non-overlapping scope. Preserve unrelated user edits and repository conventions.
|
|
36
|
-
|
|
37
|
-
Truth and ADR are one knowledge system: after both ordered passes, review the related documents together and resolve contradictions between current-state Truth, decision ownership, and consequences. Do not report completion while a material current claim remains inconsistent or ownerless.
|
|
38
|
-
|
|
39
|
-
## Writing and verification
|
|
40
|
-
|
|
41
|
-
- Follow the repository's language and document shape.
|
|
42
|
-
- Preserve exact identifiers, config keys, commands, and error text.
|
|
43
|
-
- Use project-relative paths in canonical documents.
|
|
44
|
-
- Ground every fact, path, owner, and alternative in supplied or inspected evidence.
|
|
45
|
-
- Label historical and superseded evidence explicitly; never silently promote it to current behavior.
|
|
46
|
-
- Add dated evolution only for former facts or decisions that remain useful for rollback, compatibility, feature repetition, incident reasoning, or understanding a meaningful transition.
|
|
47
|
-
- Repair every written Truth or ADR owner to the canonical format in `knowledge-format.md`; do not defer a discovered format mismatch.
|
|
48
|
-
- Repair mojibake and preserve valid Markdown encoding.
|
|
49
|
-
- Re-run focused and exhaustive searches after writing; every plausible hit must be the selected owner, an explicit reference, historical or version-bound evidence, or a narrowed non-overlapping claim.
|
|
50
|
-
|
|
51
|
-
## Return
|
|
52
|
-
|
|
53
|
-
Return a brief completion note with changed paths or the evidence-backed no-edit reasons. Response format is not part of the contract.
|
|
1
|
+
# Knowledge writer fallback
|
|
2
|
+
|
|
3
|
+
Act as the knowledge-base steward for the project. Leave the relevant Truth and ADR corpus accurate, coherent, and easy for future agents to trust.
|
|
4
|
+
|
|
5
|
+
## Input and evidence boundary
|
|
6
|
+
|
|
7
|
+
Read every supplied material completely. Interpret evidence from its content and semantics rather than requiring a particular filename, field, record shape, or serialization format. Extract executed conclusions, verified findings, retrospective lessons, key decisions, and other explicit outcomes wherever they appear. Do not repeat implementation or test verification or modify supplied materials.
|
|
8
|
+
|
|
9
|
+
When task status is present, it helps interpret completed, pending, and blocked scope, but a task list is not an execution log. Infer execution results, verified findings, planning outcomes, and durable decisions from conclusion-bearing content; never turn task titles, descriptions, requirements, or intentions into completed results merely because they appear in an input.
|
|
10
|
+
|
|
11
|
+
## Evidence freshness
|
|
12
|
+
|
|
13
|
+
Trusted means the evidence was verified at the revision or worktree state it describes; it does not make an older report permanently authoritative for current behavior.
|
|
14
|
+
|
|
15
|
+
- Before writing current behavior from a supplied conclusion, read the relevant implementation anchors and inspect later or overlapping working-tree changes. This is a freshness check, not repeated implementation verification; do not rerun tests merely to reconfirm the report.
|
|
16
|
+
- When current implementation supersedes the report, current implementation owns current-state Truth and the report may only support historical or version-bound evidence.
|
|
17
|
+
- If chronology or authority cannot be resolved safely, omit the affected canonical write and retain the freshness conflict as the reason.
|
|
18
|
+
|
|
19
|
+
## Fixed deposition sequence
|
|
20
|
+
|
|
21
|
+
Process the eligible evidence without a route choice:
|
|
22
|
+
|
|
23
|
+
1. Maintain Truth for stable behavior, architecture facts, constraints, pitfalls, code anchors, and verification rules.
|
|
24
|
+
2. Then maintain ADRs for durable decisions, context, rationale, alternatives, tradeoffs, ownership, and consequences, using the same evidence and resulting Truth state.
|
|
25
|
+
3. Finally review Truth and ADR together for ownership and consistency.
|
|
26
|
+
|
|
27
|
+
Use `knowledge-format.md` for every new document and every existing owner written by this pass. Inspect each selected owner before writing and repair nonconforming structure in the same edit; leave untouched documents unmigrated. Dated identifies an evolution checkpoint, not age or time-to-live.
|
|
28
|
+
|
|
29
|
+
It is valid for either pass to make no edit when the eligible evidence contains no new or changed durable knowledge. Temporary progress, speculation, conversational narration, unchanged facts, and unfinished-task claims do not belong in canonical knowledge.
|
|
30
|
+
|
|
31
|
+
## Stewardship and ownership
|
|
32
|
+
|
|
33
|
+
Use `claw search` to discover existing owners, then open every plausible candidate before judging it. Use exhaustive text search for distinguishing identifiers when top-k recall could hide another current claim. Update the document that already owns the topic; create a new document only for a genuinely new durable topic after filename and title collision checks.
|
|
34
|
+
|
|
35
|
+
Maintain one current owner for each material fact or decision. A broad or neighboring document is still a competing owner when it restates an unqualified current rule. Reconcile overlaps by extending the canonical owner and narrowing other current claims to references, historical evidence, or non-overlapping scope. Preserve unrelated user edits and repository conventions.
|
|
36
|
+
|
|
37
|
+
Truth and ADR are one knowledge system: after both ordered passes, review the related documents together and resolve contradictions between current-state Truth, decision ownership, and consequences. Do not report completion while a material current claim remains inconsistent or ownerless.
|
|
38
|
+
|
|
39
|
+
## Writing and verification
|
|
40
|
+
|
|
41
|
+
- Follow the repository's language and document shape.
|
|
42
|
+
- Preserve exact identifiers, config keys, commands, and error text.
|
|
43
|
+
- Use project-relative paths in canonical documents.
|
|
44
|
+
- Ground every fact, path, owner, and alternative in supplied or inspected evidence.
|
|
45
|
+
- Label historical and superseded evidence explicitly; never silently promote it to current behavior.
|
|
46
|
+
- Add dated evolution only for former facts or decisions that remain useful for rollback, compatibility, feature repetition, incident reasoning, or understanding a meaningful transition.
|
|
47
|
+
- Repair every written Truth or ADR owner to the canonical format in `knowledge-format.md`; do not defer a discovered format mismatch.
|
|
48
|
+
- Repair mojibake and preserve valid Markdown encoding.
|
|
49
|
+
- Re-run focused and exhaustive searches after writing; every plausible hit must be the selected owner, an explicit reference, historical or version-bound evidence, or a narrowed non-overlapping claim.
|
|
50
|
+
|
|
51
|
+
## Return
|
|
52
|
+
|
|
53
|
+
Return a brief completion note with changed paths or the evidence-backed no-edit reasons. Response format is not part of the contract.
|