@veewo/claw-core 0.2.21 → 0.2.23

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.
Files changed (39) hide show
  1. package/README.md +16 -16
  2. package/dist/src/embedding-config.d.ts +9 -0
  3. package/dist/src/embedding-config.js +21 -0
  4. package/dist/src/embedding-config.js.map +1 -0
  5. package/dist/src/errors.d.ts +1 -1
  6. package/dist/src/errors.js.map +1 -1
  7. package/dist/src/focus-transitions.d.ts +11 -0
  8. package/dist/src/focus-transitions.js +26 -0
  9. package/dist/src/focus-transitions.js.map +1 -1
  10. package/dist/src/knowledge-assignments.d.ts +12 -0
  11. package/dist/src/knowledge-assignments.js +58 -0
  12. package/dist/src/knowledge-assignments.js.map +1 -1
  13. package/dist/src/knowledge-governance.d.ts +6 -0
  14. package/dist/src/knowledge-governance.js +34 -0
  15. package/dist/src/knowledge-governance.js.map +1 -1
  16. package/dist/src/knowledge-sidecar.d.ts +1 -0
  17. package/dist/src/knowledge-sidecar.js +1 -1
  18. package/dist/src/knowledge-sidecar.js.map +1 -1
  19. package/dist/src/plan.js +8 -6
  20. package/dist/src/plan.js.map +1 -1
  21. package/dist/src/project-config-defaults.d.ts +6 -0
  22. package/dist/src/project-config-defaults.js +5 -0
  23. package/dist/src/project-config-defaults.js.map +1 -0
  24. package/dist/src/resources/cindy-delegate-writer/TEMPLATE.json +1 -1
  25. package/dist/src/resources/delegate-writer/TEMPLATE.json +1 -1
  26. package/dist/src/resources/doc-updater/FALLBACK.md +16 -16
  27. package/dist/src/resources/doc-updater/SKILL.md +19 -19
  28. package/dist/src/resources/doc-updater/TEMPLATE.json +1 -1
  29. package/dist/src/resources/knowledge-writer/CONTENT-COVERAGE.md +32 -32
  30. package/dist/src/resources/knowledge-writer/SKILL.md +6 -6
  31. package/dist/src/resources/knowledge-writer/TEMPLATE.json +5 -5
  32. package/dist/src/resources/knowledge-writer/non-claw-fallback.md +53 -53
  33. package/dist/src/templates/plans/default.js +1 -1
  34. package/dist/src/workflow-guidance.config.json +365 -365
  35. package/dist/src/workflow-guidance.js +1 -1
  36. package/dist/src/workflow-guidance.js.map +1 -1
  37. package/package.json +48 -48
  38. package/dist/src/workflow-guidance.codex.config.json +0 -363
  39. package/dist/src/workflow-guidance.qoder.config.json +0 -362
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "knowledge-writer",
3
- "version": "0.2.21",
3
+ "version": "0.2.23",
4
4
  "scope": "session",
5
5
  "title": "knowledge-writer",
6
6
  "status": "process.active",
@@ -144,16 +144,16 @@
144
144
  },
145
145
  {
146
146
  "id": 7,
147
- "title": "Refresh project search indexes",
148
- "detail": "From the project root, run `claw direct` after the canonical Truth/ADR review is complete. Confirm that the returned `completionRefresh.asyncRefresh` is queued and includes `memory.reindex.project`; when the project's flat `gitnexus` setting is true, it must also include `gitnexus.refresh`. Do not wait for the detached refresh worker, but do not mark this task done if the command fails or does not queue the refresh.",
147
+ "title": "Prepare the final project index refresh",
148
+ "detail": "After the canonical Truth/ADR review is complete, mark this final task done and close this knowledge-writer plan through its canonical `claw plan done` transition. When the workflow originated in a claw project, that terminal transition queues the project's memory refresh and, when the flat `gitnexus` setting is true, its GitNexus refresh. Do not use a compatibility shortcut as a knowledge-writer workaround.",
149
149
  "status": "pending",
150
150
  "guidance": {
151
151
  "onDone": {
152
152
  "default": {
153
153
  "mergeMode": "override",
154
- "summary": "Knowledge governance and the post-write project index refresh are queued.",
154
+ "summary": "Knowledge governance is complete; canonical plan completion will queue the post-write project index refresh.",
155
155
  "nextsteps": [
156
- "Report only changed canonical paths, evidence-backed no-edit reasons, and the queued refresh status path when available.",
156
+ "Close the knowledge-writer plan through its canonical plan-done transition, then report changed canonical paths, evidence-backed no-edit reasons, and the queued refresh status path when available.",
157
157
  "Preserve exact identifiers, repository conventions, and valid Markdown encoding."
158
158
  ]
159
159
  }
@@ -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.23",
4
4
  status: "process.discussing",
5
5
  goal: {
6
6
  text: "",