@veewo/claw-core 0.2.21 → 0.2.22

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.
@@ -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.
@@ -1,6 +1,6 @@
1
1
  export const defaultPlanTemplate = {
2
2
  id: "default",
3
- version: "0.2.21",
3
+ version: "0.2.22",
4
4
  status: "process.discussing",
5
5
  goal: {
6
6
  text: "",