knowzcode 0.4.0 → 0.6.0

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 (79) hide show
  1. package/.claude-plugin/marketplace.json +61 -61
  2. package/.claude-plugin/plugin.json +8 -8
  3. package/LICENSE +121 -121
  4. package/README.md +379 -354
  5. package/agents/analyst.md +114 -114
  6. package/agents/architect.md +200 -200
  7. package/agents/builder.md +104 -104
  8. package/agents/closer.md +177 -177
  9. package/agents/context-scout.md +54 -54
  10. package/agents/knowledge-migrator.md +349 -349
  11. package/agents/knowz-scout.md +83 -83
  12. package/agents/knowz-scribe.md +180 -180
  13. package/agents/microfix-specialist.md +135 -135
  14. package/agents/project-advisor.md +111 -111
  15. package/agents/reviewer.md +172 -172
  16. package/agents/security-officer.md +194 -194
  17. package/agents/test-advisor.md +162 -162
  18. package/agents/update-coordinator.md +394 -394
  19. package/bin/knowzcode.mjs +1801 -1199
  20. package/commands/audit.md +328 -328
  21. package/commands/connect-mcp.md +574 -549
  22. package/commands/fix.md +107 -107
  23. package/commands/init.md +616 -500
  24. package/commands/learn.md +332 -332
  25. package/commands/plan.md +272 -272
  26. package/commands/register.md +757 -733
  27. package/commands/status.md +338 -309
  28. package/commands/telemetry-setup.md +368 -368
  29. package/commands/telemetry.md +188 -188
  30. package/commands/work.md +1204 -1204
  31. package/knowzcode/automation_manifest.md +59 -59
  32. package/knowzcode/claude_code_execution.md +431 -431
  33. package/knowzcode/copilot_execution.md +231 -231
  34. package/knowzcode/enterprise/compliance_manifest.md +137 -137
  35. package/knowzcode/enterprise/compliance_status.md +30 -30
  36. package/knowzcode/enterprise/guidelines/code-quality.md +67 -67
  37. package/knowzcode/enterprise/guidelines/security.md +355 -355
  38. package/knowzcode/enterprise/templates/guideline-template.md +55 -55
  39. package/knowzcode/gitignore.template +13 -13
  40. package/knowzcode/knowzcode_architecture.md +51 -51
  41. package/knowzcode/knowzcode_log.md +142 -142
  42. package/knowzcode/knowzcode_loop.md +601 -596
  43. package/knowzcode/knowzcode_orchestration.md +66 -66
  44. package/knowzcode/knowzcode_project.md +48 -48
  45. package/knowzcode/knowzcode_tracker.md +40 -40
  46. package/knowzcode/knowzcode_vaults.md +257 -257
  47. package/knowzcode/mcp_config.md +196 -191
  48. package/knowzcode/planning/Readme.md +6 -6
  49. package/knowzcode/platform_adapters.md +2577 -1260
  50. package/knowzcode/prompts/Execute_Micro_Fix.md +57 -57
  51. package/knowzcode/prompts/Investigate_Codebase.md +227 -227
  52. package/knowzcode/prompts/Migrate_Knowledge.md +301 -301
  53. package/knowzcode/prompts/Refactor_Node.md +72 -72
  54. package/knowzcode/prompts/Spec_Verification_Checkpoint.md +59 -59
  55. package/knowzcode/prompts/[LOOP_1A]__Propose_Change_Set.md +52 -52
  56. package/knowzcode/prompts/[LOOP_1B]__Draft_Specs.md +75 -75
  57. package/knowzcode/prompts/[LOOP_2A]__Implement_Change_Set.md +55 -55
  58. package/knowzcode/prompts/[LOOP_2B]__Verify_Implementation.md +72 -72
  59. package/knowzcode/prompts/[LOOP_3]__Finalize_And_Commit.md +67 -67
  60. package/knowzcode/specs/Readme.md +10 -10
  61. package/knowzcode/telemetry_config.md +89 -89
  62. package/knowzcode/user_preferences.md +120 -120
  63. package/package.json +53 -53
  64. package/skills/alias-resolver.json +15 -15
  65. package/skills/architecture-diff.json +12 -12
  66. package/skills/check-installation-status.json +14 -14
  67. package/skills/continue.md +126 -126
  68. package/skills/environment-guard.json +12 -12
  69. package/skills/generate-workgroup-id.json +25 -25
  70. package/skills/install-knowzcode.json +21 -21
  71. package/skills/load-core-context.json +18 -18
  72. package/skills/log-entry-builder.json +15 -15
  73. package/skills/spec-quality-check.json +14 -14
  74. package/skills/spec-template.json +15 -15
  75. package/skills/spec-validator.json +25 -25
  76. package/skills/start-work.md +224 -224
  77. package/skills/tracker-scan.json +12 -12
  78. package/skills/tracker-update.json +28 -28
  79. package/skills/validate-installation.json +14 -14
@@ -1,55 +1,55 @@
1
- # KnowzCode: [LOOP 2A] Authorize Implementation
2
-
3
- **WorkGroupID for Implementation:**
4
- [Orchestrator: Re-state the `WorkGroupID` that you have reviewed and are now approving for implementation. This confirms all associated specs are approved.]
5
-
6
- > **Automation Path:** Use `/kc-step phase=2A workgroup_id=<ID>` to activate the `builder` subagent. The command enforces the `environment-guard` skill and writes back tracker updates once the loop instructions are complete.
7
-
8
- **Remember:**
9
- - Cross-check code updates against the latest specs and refresh them if implementation diverges.
10
- - Record in-progress work and emerging tasks in `knowzcode/workgroups/<WorkGroupID>.md`, keeping every todo prefixed with `KnowzCode:`.
11
-
12
- **WorkGroupID:** `[wip-timestamp-to-implement]`
13
-
14
- ---
15
-
16
- ## Your Mission
17
- You are authorized to begin the core development phase for the specified `WorkGroupID`. All associated specifications are approved.
18
-
19
- Your task is to autonomously execute the planning, committing, implementation, and initial verification cycle. Your work on this prompt begins at **Step 4** of the `knowzcode_loop.md` and is considered complete only after **Step 6A** has passed successfully.
20
-
21
- **NOTE:** Your implementation will be independently audited for completeness in Loop 2B after you report success here.
22
-
23
- **Reference:** Your actions are governed by `knowzcode_loop.md`, executing the sequence from **Step 4 (ARC-Principle-Based Planning)** through to the completion of **Step 6A (Implementation & Initial Verification)**.
24
-
25
- ---
26
-
27
- ### Execution Protocol
28
-
29
- 1. **Plan & Commit (Step 4):**
30
- * Develop your internal implementation plan for the entire Change Set.
31
- * **CRITICAL CHECKPOINT:** After developing your plan, evaluate its complexity. If the plan is exceptionally complex or high-risk, you **MUST PAUSE** now and present the plan for Orchestrator review as per Step 4.2 of the loop. If the plan is straightforward, proceed.
32
- * Perform the **Pre-Implementation Commit** as per Step 4.3.
33
-
34
- 2. **Implement (Step 5):**
35
- * Execute your plan, creating and modifying all necessary code to fulfill the specs for the *entire* Change Set.
36
-
37
- 3. **Verify (Step 6A):**
38
- * Conduct a full initial verification of the *entire* Change Set, following the iterative "fix and re-verify" cycle as detailed in `knowzcode_loop.md`.
39
-
40
- ### Reporting
41
-
42
- * **On Success:** Once the entire Change Set has passed all verification steps defined in Step 6A, report your success and readiness for the audit.
43
- * **Success Report:**
44
- > "Implementation and Initial Verification for `WorkGroupID: [ID]` (Steps 4-6A) is complete. All code has been written, and all self-conducted tests and ARC criteria have passed. The Change Set is now ready for the Loop 2B Implementation Completeness Audit. Awaiting the `[LOOP_2B]__Verify_Implementation.md` command."
45
-
46
- * **On Blocker:** If you pause at the planning checkpoint, or encounter an unresolvable issue, report the specific blocker.
47
- * **Blocker Report:**
48
- > "Execution paused for `WorkGroupID: [ID]`. [Clearly describe the blocker...]"
49
-
50
- ### Final State & Next Prompt
51
-
52
- * Upon successful completion, you will **PAUSE**.
53
- * The next command from the Orchestrator for this `WorkGroupID` will be **`[LOOP_2B]__Verify_Implementation.md`**.
54
-
55
- ---
1
+ # KnowzCode: [LOOP 2A] Authorize Implementation
2
+
3
+ **WorkGroupID for Implementation:**
4
+ [Orchestrator: Re-state the `WorkGroupID` that you have reviewed and are now approving for implementation. This confirms all associated specs are approved.]
5
+
6
+ > **Automation Path:** Use `/kc-step phase=2A workgroup_id=<ID>` to activate the `builder` subagent. The command enforces the `environment-guard` skill and writes back tracker updates once the loop instructions are complete.
7
+
8
+ **Remember:**
9
+ - Cross-check code updates against the latest specs and refresh them if implementation diverges.
10
+ - Record in-progress work and emerging tasks in `knowzcode/workgroups/<WorkGroupID>.md`, keeping every todo prefixed with `KnowzCode:`.
11
+
12
+ **WorkGroupID:** `[wip-timestamp-to-implement]`
13
+
14
+ ---
15
+
16
+ ## Your Mission
17
+ You are authorized to begin the core development phase for the specified `WorkGroupID`. All associated specifications are approved.
18
+
19
+ Your task is to autonomously execute the planning, committing, implementation, and initial verification cycle. Your work on this prompt begins at **Step 4** of the `knowzcode_loop.md` and is considered complete only after **Step 6A** has passed successfully.
20
+
21
+ **NOTE:** Your implementation will be independently audited for completeness in Loop 2B after you report success here.
22
+
23
+ **Reference:** Your actions are governed by `knowzcode_loop.md`, executing the sequence from **Step 4 (ARC-Principle-Based Planning)** through to the completion of **Step 6A (Implementation & Initial Verification)**.
24
+
25
+ ---
26
+
27
+ ### Execution Protocol
28
+
29
+ 1. **Plan & Commit (Step 4):**
30
+ * Develop your internal implementation plan for the entire Change Set.
31
+ * **CRITICAL CHECKPOINT:** After developing your plan, evaluate its complexity. If the plan is exceptionally complex or high-risk, you **MUST PAUSE** now and present the plan for Orchestrator review as per Step 4.2 of the loop. If the plan is straightforward, proceed.
32
+ * Perform the **Pre-Implementation Commit** as per Step 4.3.
33
+
34
+ 2. **Implement (Step 5):**
35
+ * Execute your plan, creating and modifying all necessary code to fulfill the specs for the *entire* Change Set.
36
+
37
+ 3. **Verify (Step 6A):**
38
+ * Conduct a full initial verification of the *entire* Change Set, following the iterative "fix and re-verify" cycle as detailed in `knowzcode_loop.md`.
39
+
40
+ ### Reporting
41
+
42
+ * **On Success:** Once the entire Change Set has passed all verification steps defined in Step 6A, report your success and readiness for the audit.
43
+ * **Success Report:**
44
+ > "Implementation and Initial Verification for `WorkGroupID: [ID]` (Steps 4-6A) is complete. All code has been written, and all self-conducted tests and ARC criteria have passed. The Change Set is now ready for the Loop 2B Implementation Completeness Audit. Awaiting the `[LOOP_2B]__Verify_Implementation.md` command."
45
+
46
+ * **On Blocker:** If you pause at the planning checkpoint, or encounter an unresolvable issue, report the specific blocker.
47
+ * **Blocker Report:**
48
+ > "Execution paused for `WorkGroupID: [ID]`. [Clearly describe the blocker...]"
49
+
50
+ ### Final State & Next Prompt
51
+
52
+ * Upon successful completion, you will **PAUSE**.
53
+ * The next command from the Orchestrator for this `WorkGroupID` will be **`[LOOP_2B]__Verify_Implementation.md`**.
54
+
55
+ ---
@@ -1,72 +1,72 @@
1
- # KnowzCode: [LOOP 2B] Verify Implementation Completeness
2
-
3
- **WorkGroupID for Audit:**
4
- [Orchestrator: Re-state the `WorkGroupID` that has completed Loop 2A and requires an implementation audit.]
5
-
6
- > **Automation Path:** Trigger `/kc-step phase=2B workgroup_id=<ID>` or `/kc-audit audit=implementation workgroup_id=<ID>` to run the `reviewer` subagent in read-only mode. It utilizes `spec-quality-check`, `tracker-scan`, and `log-entry-builder` skills to compute the completion percentage.
7
-
8
- **Remember:**
9
- - Flag any spec discrepancies you uncover and update the relevant files in `knowzcode/specs/`.
10
- - Add follow-up todos to `knowzcode/workgroups/<WorkGroupID>.md` (each entry prefixed `KnowzCode:`) so unresolved work is obvious.
11
-
12
- **WorkGroupID:** `[wip-timestamp-to-audit]`
13
-
14
- ---
15
-
16
- ## Your Mission
17
- This is a **READ-ONLY** quality gate to audit the completeness of the implementation for the given `WorkGroupID`. You will compare the work done against the approved specifications and report an objective completion percentage.
18
-
19
- **CRITICAL RULE: You MUST NOT modify any files. This is a verification step, not a correction step.**
20
-
21
- **Reference:** Your actions are governed by `knowzcode_loop.md`, executing the audit defined in **Step 6B**.
22
-
23
- ---
24
-
25
- ### Execution Protocol
26
-
27
- #### Phase 0: Reconnaissance (READ-ONLY)
28
- 1. **Identify Audit Scope:** Get all `NodeID`s associated with the `WorkGroupID` from `knowzcode_tracker.md`.
29
- 2. **List Artifacts:** List all source code files that were created or modified for this `WorkGroupID`.
30
- 3. **Map Built Features:** Briefly map what was built (e.g., components, functions, features, tests).
31
-
32
- #### Phase 1: Specification-to-Code Audit
33
- 1. **Load Specs:** For each `NodeID` in your scope, load its approved specification from `specs/`.
34
- 2. **Verify Spec-to-Code:** For each spec, systematically verify that every requirement, function, and error handling case listed in the spec has been implemented in the code.
35
- 3. **Verify Code-to-Spec:** Check for any "orphan" code—features or functions that were implemented but are not described in any specification.
36
- 4. **Calculate Completion:** Based on your findings, calculate an objective, quantitative **completion percentage**. (e.g., "8 of 10 requirements implemented = 80% complete").
37
-
38
- #### Phase 2: Synthesize Findings & Report
39
- * Compile a single, comprehensive audit report.
40
-
41
- ### Audit Report Structure
42
-
43
- Your report **must** include the following sections:
44
- > **WorkGroupID:** `[ID]`
45
- > **Overall Implementation Completion:** [Calculated Percentage]%
46
- >
47
- > **1. Fully Implemented Requirements:**
48
- > * [List of spec requirements that are 100% complete]
49
- >
50
- > **2. Partially Implemented Requirements:**
51
- > * [Requirement X]: Implemented basic case, but missing error handling for [condition].
52
- > * [Requirement Y]: Feature exists, but is missing [specific part].
53
- >
54
- > **3. Not Implemented Requirements:**
55
- > * [List of spec requirements that were not implemented at all]
56
- >
57
- > **4. Orphan Code (Not in Specs):**
58
- > * [Function `calculate_extra_value()` in `file.py` has no corresponding spec requirement.]
59
- >
60
- > **5. Risk Assessment:**
61
- > * [Brief assessment of the risk of proceeding with the current implementation state. e.g., "Low risk, missing features are non-critical." or "High risk, core security function is incomplete."]
62
- >
63
- > **Awaiting Orchestrator decision.**
64
-
65
- ### Orchestrator Decision Points
66
- Based on your report, the Orchestrator will choose one of the following paths:
67
- * **(A) Complete Gaps:** Return to implementation (Step 5) to address the identified gaps.
68
- * **(B) Accept & Proceed:** Accept the current implementation as-is and proceed to Loop 3 for finalization.
69
- * **(C) Modify Specs:** Update the specifications to match the "as-built" code, formally accepting the deviations.
70
- * **(D) Cancel:** Cancel the WorkGroupID and potentially revert the changes.
71
-
72
- ---
1
+ # KnowzCode: [LOOP 2B] Verify Implementation Completeness
2
+
3
+ **WorkGroupID for Audit:**
4
+ [Orchestrator: Re-state the `WorkGroupID` that has completed Loop 2A and requires an implementation audit.]
5
+
6
+ > **Automation Path:** Trigger `/kc-step phase=2B workgroup_id=<ID>` or `/kc-audit audit=implementation workgroup_id=<ID>` to run the `reviewer` subagent in read-only mode. It utilizes `spec-quality-check`, `tracker-scan`, and `log-entry-builder` skills to compute the completion percentage.
7
+
8
+ **Remember:**
9
+ - Flag any spec discrepancies you uncover and update the relevant files in `knowzcode/specs/`.
10
+ - Add follow-up todos to `knowzcode/workgroups/<WorkGroupID>.md` (each entry prefixed `KnowzCode:`) so unresolved work is obvious.
11
+
12
+ **WorkGroupID:** `[wip-timestamp-to-audit]`
13
+
14
+ ---
15
+
16
+ ## Your Mission
17
+ This is a **READ-ONLY** quality gate to audit the completeness of the implementation for the given `WorkGroupID`. You will compare the work done against the approved specifications and report an objective completion percentage.
18
+
19
+ **CRITICAL RULE: You MUST NOT modify any files. This is a verification step, not a correction step.**
20
+
21
+ **Reference:** Your actions are governed by `knowzcode_loop.md`, executing the audit defined in **Step 6B**.
22
+
23
+ ---
24
+
25
+ ### Execution Protocol
26
+
27
+ #### Phase 0: Reconnaissance (READ-ONLY)
28
+ 1. **Identify Audit Scope:** Get all `NodeID`s associated with the `WorkGroupID` from `knowzcode_tracker.md`.
29
+ 2. **List Artifacts:** List all source code files that were created or modified for this `WorkGroupID`.
30
+ 3. **Map Built Features:** Briefly map what was built (e.g., components, functions, features, tests).
31
+
32
+ #### Phase 1: Specification-to-Code Audit
33
+ 1. **Load Specs:** For each `NodeID` in your scope, load its approved specification from `specs/`.
34
+ 2. **Verify Spec-to-Code:** For each spec, systematically verify that every requirement, function, and error handling case listed in the spec has been implemented in the code.
35
+ 3. **Verify Code-to-Spec:** Check for any "orphan" code—features or functions that were implemented but are not described in any specification.
36
+ 4. **Calculate Completion:** Based on your findings, calculate an objective, quantitative **completion percentage**. (e.g., "8 of 10 requirements implemented = 80% complete").
37
+
38
+ #### Phase 2: Synthesize Findings & Report
39
+ * Compile a single, comprehensive audit report.
40
+
41
+ ### Audit Report Structure
42
+
43
+ Your report **must** include the following sections:
44
+ > **WorkGroupID:** `[ID]`
45
+ > **Overall Implementation Completion:** [Calculated Percentage]%
46
+ >
47
+ > **1. Fully Implemented Requirements:**
48
+ > * [List of spec requirements that are 100% complete]
49
+ >
50
+ > **2. Partially Implemented Requirements:**
51
+ > * [Requirement X]: Implemented basic case, but missing error handling for [condition].
52
+ > * [Requirement Y]: Feature exists, but is missing [specific part].
53
+ >
54
+ > **3. Not Implemented Requirements:**
55
+ > * [List of spec requirements that were not implemented at all]
56
+ >
57
+ > **4. Orphan Code (Not in Specs):**
58
+ > * [Function `calculate_extra_value()` in `file.py` has no corresponding spec requirement.]
59
+ >
60
+ > **5. Risk Assessment:**
61
+ > * [Brief assessment of the risk of proceeding with the current implementation state. e.g., "Low risk, missing features are non-critical." or "High risk, core security function is incomplete."]
62
+ >
63
+ > **Awaiting Orchestrator decision.**
64
+
65
+ ### Orchestrator Decision Points
66
+ Based on your report, the Orchestrator will choose one of the following paths:
67
+ * **(A) Complete Gaps:** Return to implementation (Step 5) to address the identified gaps.
68
+ * **(B) Accept & Proceed:** Accept the current implementation as-is and proceed to Loop 3 for finalization.
69
+ * **(C) Modify Specs:** Update the specifications to match the "as-built" code, formally accepting the deviations.
70
+ * **(D) Cancel:** Cancel the WorkGroupID and potentially revert the changes.
71
+
72
+ ---
@@ -1,67 +1,67 @@
1
- # KnowzCode: [LOOP 3] Finalize & Commit Change Set
2
-
3
- **WorkGroupID for Finalization:**
4
- [Orchestrator: Re-state the `WorkGroupID` that has passed implementation and verification, authorizing its finalization and commit.]
5
-
6
- > **Automation Path:** Execute `/kc-step phase=3 workgroup_id=<ID>` to hand off to the `closer` subagent. It chains `tracker-update`, `log-entry-builder`, and `architecture-diff` skills to wrap up the loop.
7
-
8
- **Remember:**
9
- - Finalize every spec in `knowzcode/specs/` to reflect the as-built system.
10
- - Close or add remaining todos in `knowzcode/workgroups/<WorkGroupID>.md`, ensuring all entries keep the `KnowzCode:` prefix.
11
-
12
- **WorkGroupID:** `[wip-timestamp-to-finalize]`
13
-
14
- ---
15
-
16
- ## Your Mission
17
- The implementation and verification for the specified `WorkGroupID` is complete. You are now authorized to execute the final phase of the KnowzCode loop: documentation, logging, and committing.
18
-
19
- **CRITICAL RULE: The implementation phase is complete. Your work in this phase is strictly limited to updating KnowzCode's own project and specification files (`.md` files) to reflect the finished work. You MUST NOT write or modify any more application source code (e.g., `.js`, `.py`, `.html` files).**
20
-
21
- **Reference:** Your actions are governed by `knowzcode_loop.md`, executing the sequence from **Step 7 through Step 10**.
22
-
23
- ---
24
-
25
- ### Execution Protocol
26
-
27
- 1. **Finalize Specifications (Step 7):**
28
- * For **each** `NodeID` in the `WorkGroupID`, update its spec file in `specs/` to the "as-built" state, ensuring it perfectly reflects the verified code.
29
-
30
- 2. **Check Architecture (Step 8):**
31
- * Conduct the Flowchart Consistency Check. If you find a simple discrepancy, fix `knowzcode_architecture.md` directly. If it's complex, document it in the log.
32
-
33
- 3. **Log Operation (Step 9):**
34
- * Create the single, comprehensive `ARC-Completion` log entry in `knowzcode_log.md`. Ensure it includes the flowchart check outcome, any unforeseen ripple effects, and project overview updates. Use an environment-sourced timestamp.
35
-
36
- 4. **Update Tracker, Schedule Debt, & Check Project Overview (Step 10):**
37
- * **Update Tracker:** In `knowzcode_tracker.md`, mark all nodes in the `WorkGroupID` as `[VERIFIED]` and clear their `WorkGroupID`.
38
- * **Schedule Debt:** Perform the "Technical Debt Scheduling" step. For any nodes with documented debt, create new `REFACTOR_` tasks in the tracker.
39
- * **Update Project Overview:** Check if this Change Set impacts `knowzcode_project.md`:
40
- - New major features → Update "Key Features" section
41
- - New libraries/tools → Update "Technology Stack" table
42
- - Architecture changes → Update "Architecture Decisions"
43
- - Scope expansion → Update "Scope & Key Features"
44
- * **Final Commit:** Stage ALL changes using `git add -A` (this includes source code from implementation AND knowzcode/ files), then commit with a descriptive `feat:` message.
45
-
46
- ### Final Report
47
-
48
- * Once all steps above are complete, provide a final confirmation report.
49
-
50
- **Example Response Format:**
51
- > "Finalization for `WorkGroupID: [ID]` is complete.
52
- >
53
- > * All specifications have been updated to the 'as-built' state.
54
- > * The architecture flowchart has been checked and updated.
55
- > * A complete `ARC-Completion` entry has been logged.
56
- > * The tracker is updated, and all nodes are now `[VERIFIED]`.
57
- > * **Project Overview Updates:** [None | Updated sections: Technology Stack, Key Features]
58
- > * The final `feat:` commit has been made to version control.
59
- > * **New Refactor Tasks Created:** [List any REFACTOR_ nodes created, or 'None'].
60
- >
61
- > This Change Set is now fully complete and documented. Awaiting next `PrimaryGoal` via a new Work Session."
62
-
63
- ### Final State
64
-
65
- * Upon successful completion, the KnowzCode loop for this `WorkGroupID` is **finished**. You will return to an idle state.
66
-
67
- ---
1
+ # KnowzCode: [LOOP 3] Finalize & Commit Change Set
2
+
3
+ **WorkGroupID for Finalization:**
4
+ [Orchestrator: Re-state the `WorkGroupID` that has passed implementation and verification, authorizing its finalization and commit.]
5
+
6
+ > **Automation Path:** Execute `/kc-step phase=3 workgroup_id=<ID>` to hand off to the `closer` subagent. It chains `tracker-update`, `log-entry-builder`, and `architecture-diff` skills to wrap up the loop.
7
+
8
+ **Remember:**
9
+ - Finalize every spec in `knowzcode/specs/` to reflect the as-built system.
10
+ - Close or add remaining todos in `knowzcode/workgroups/<WorkGroupID>.md`, ensuring all entries keep the `KnowzCode:` prefix.
11
+
12
+ **WorkGroupID:** `[wip-timestamp-to-finalize]`
13
+
14
+ ---
15
+
16
+ ## Your Mission
17
+ The implementation and verification for the specified `WorkGroupID` is complete. You are now authorized to execute the final phase of the KnowzCode loop: documentation, logging, and committing.
18
+
19
+ **CRITICAL RULE: The implementation phase is complete. Your work in this phase is strictly limited to updating KnowzCode's own project and specification files (`.md` files) to reflect the finished work. You MUST NOT write or modify any more application source code (e.g., `.js`, `.py`, `.html` files).**
20
+
21
+ **Reference:** Your actions are governed by `knowzcode_loop.md`, executing the sequence from **Step 7 through Step 10**.
22
+
23
+ ---
24
+
25
+ ### Execution Protocol
26
+
27
+ 1. **Finalize Specifications (Step 7):**
28
+ * For **each** `NodeID` in the `WorkGroupID`, update its spec file in `specs/` to the "as-built" state, ensuring it perfectly reflects the verified code.
29
+
30
+ 2. **Check Architecture (Step 8):**
31
+ * Conduct the Flowchart Consistency Check. If you find a simple discrepancy, fix `knowzcode_architecture.md` directly. If it's complex, document it in the log.
32
+
33
+ 3. **Log Operation (Step 9):**
34
+ * Create the single, comprehensive `ARC-Completion` log entry in `knowzcode_log.md`. Ensure it includes the flowchart check outcome, any unforeseen ripple effects, and project overview updates. Use an environment-sourced timestamp.
35
+
36
+ 4. **Update Tracker, Schedule Debt, & Check Project Overview (Step 10):**
37
+ * **Update Tracker:** In `knowzcode_tracker.md`, mark all nodes in the `WorkGroupID` as `[VERIFIED]` and clear their `WorkGroupID`.
38
+ * **Schedule Debt:** Perform the "Technical Debt Scheduling" step. For any nodes with documented debt, create new `REFACTOR_` tasks in the tracker.
39
+ * **Update Project Overview:** Check if this Change Set impacts `knowzcode_project.md`:
40
+ - New major features → Update "Key Features" section
41
+ - New libraries/tools → Update "Technology Stack" table
42
+ - Architecture changes → Update "Architecture Decisions"
43
+ - Scope expansion → Update "Scope & Key Features"
44
+ * **Final Commit:** Stage ALL changes using `git add -A` (this includes source code from implementation AND knowzcode/ files), then commit with a descriptive `feat:` message.
45
+
46
+ ### Final Report
47
+
48
+ * Once all steps above are complete, provide a final confirmation report.
49
+
50
+ **Example Response Format:**
51
+ > "Finalization for `WorkGroupID: [ID]` is complete.
52
+ >
53
+ > * All specifications have been updated to the 'as-built' state.
54
+ > * The architecture flowchart has been checked and updated.
55
+ > * A complete `ARC-Completion` entry has been logged.
56
+ > * The tracker is updated, and all nodes are now `[VERIFIED]`.
57
+ > * **Project Overview Updates:** [None | Updated sections: Technology Stack, Key Features]
58
+ > * The final `feat:` commit has been made to version control.
59
+ > * **New Refactor Tasks Created:** [List any REFACTOR_ nodes created, or 'None'].
60
+ >
61
+ > This Change Set is now fully complete and documented. Awaiting next `PrimaryGoal` via a new Work Session."
62
+
63
+ ### Final State
64
+
65
+ * Upon successful completion, the KnowzCode loop for this `WorkGroupID` is **finished**. You will return to an idle state.
66
+
67
+ ---
@@ -1,10 +1,10 @@
1
- \# Component Specifications
2
-
3
-
4
-
5
- This directory will contain specification files for each component (NodeID) in your project.
6
-
7
-
8
-
9
- Files will be named like: `API\_UserAuth.md`, `UI\_Dashboard.md`, etc.
10
-
1
+ \# Component Specifications
2
+
3
+
4
+
5
+ This directory will contain specification files for each component (NodeID) in your project.
6
+
7
+
8
+
9
+ Files will be named like: `API\_UserAuth.md`, `UI\_Dashboard.md`, etc.
10
+
@@ -1,89 +1,89 @@
1
- # Telemetry Configuration
2
-
3
- > **This file configures telemetry sources for `/kc:telemetry` investigations.**
4
- >
5
- > Run `/kc:telemetry-setup` to auto-discover and configure sources.
6
-
7
- ---
8
-
9
- ## Sentry
10
-
11
- | Field | Value |
12
- |-------|-------|
13
- | Enabled | false |
14
- | Method | |
15
- | Organization | |
16
-
17
- ### Environment Mapping
18
-
19
- | Environment | Project |
20
- |-------------|---------|
21
- | production | |
22
- | staging | |
23
- | dev | |
24
-
25
- ---
26
-
27
- ## Azure Application Insights
28
-
29
- | Field | Value |
30
- |-------|-------|
31
- | Enabled | false |
32
- | Subscription | |
33
- | Resource Group | |
34
-
35
- ### Environment Mapping
36
-
37
- | Environment | App Name | App ID |
38
- |-------------|----------|--------|
39
- | production | | |
40
- | staging | | |
41
- | dev | | |
42
-
43
- ---
44
-
45
- ## Configuration Notes
46
-
47
- - **Sentry Method**: How to connect to Sentry (`cli` for Sentry CLI, `mcp` for MCP tools)
48
- - **Sentry Organization**: Your Sentry organization slug (e.g., `my-company`)
49
- - **Sentry Project**: Format is `org-slug/project-slug` (e.g., `my-company/backend-api`)
50
- - **App Insights App ID**: The Application ID from Azure portal (GUID format)
51
- - **Subscription**: Your Azure subscription ID (optional, uses default if not set)
52
-
53
- ### Auto-Discovery
54
-
55
- Run `/kc:telemetry-setup` to:
56
- 1. Detect installed telemetry tools (sentry-cli, az CLI)
57
- 2. Verify authentication status
58
- 3. Auto-discover available resources
59
- 4. Interactively configure environment mappings
60
- 5. Update this file with discovered values
61
-
62
- ### Manual Configuration
63
-
64
- Edit the tables above directly to configure telemetry sources:
65
-
66
- ```markdown
67
- ## Sentry
68
-
69
- | Field | Value |
70
- |-------|-------|
71
- | Enabled | true |
72
- | Method | cli |
73
- | Organization | my-company |
74
-
75
- ### Environment Mapping
76
-
77
- | Environment | Project |
78
- |-------------|---------|
79
- | production | my-company/backend-prod |
80
- | staging | my-company/backend-staging |
81
- | dev | my-company/backend-dev |
82
- ```
83
-
84
- ---
85
-
86
- ## Last Updated
87
-
88
- - **Date**: (not configured)
89
- - **By**: (not configured)
1
+ # Telemetry Configuration
2
+
3
+ > **This file configures telemetry sources for `/kc:telemetry` investigations.**
4
+ >
5
+ > Run `/kc:telemetry-setup` to auto-discover and configure sources.
6
+
7
+ ---
8
+
9
+ ## Sentry
10
+
11
+ | Field | Value |
12
+ |-------|-------|
13
+ | Enabled | false |
14
+ | Method | |
15
+ | Organization | |
16
+
17
+ ### Environment Mapping
18
+
19
+ | Environment | Project |
20
+ |-------------|---------|
21
+ | production | |
22
+ | staging | |
23
+ | dev | |
24
+
25
+ ---
26
+
27
+ ## Azure Application Insights
28
+
29
+ | Field | Value |
30
+ |-------|-------|
31
+ | Enabled | false |
32
+ | Subscription | |
33
+ | Resource Group | |
34
+
35
+ ### Environment Mapping
36
+
37
+ | Environment | App Name | App ID |
38
+ |-------------|----------|--------|
39
+ | production | | |
40
+ | staging | | |
41
+ | dev | | |
42
+
43
+ ---
44
+
45
+ ## Configuration Notes
46
+
47
+ - **Sentry Method**: How to connect to Sentry (`cli` for Sentry CLI, `mcp` for MCP tools)
48
+ - **Sentry Organization**: Your Sentry organization slug (e.g., `my-company`)
49
+ - **Sentry Project**: Format is `org-slug/project-slug` (e.g., `my-company/backend-api`)
50
+ - **App Insights App ID**: The Application ID from Azure portal (GUID format)
51
+ - **Subscription**: Your Azure subscription ID (optional, uses default if not set)
52
+
53
+ ### Auto-Discovery
54
+
55
+ Run `/kc:telemetry-setup` to:
56
+ 1. Detect installed telemetry tools (sentry-cli, az CLI)
57
+ 2. Verify authentication status
58
+ 3. Auto-discover available resources
59
+ 4. Interactively configure environment mappings
60
+ 5. Update this file with discovered values
61
+
62
+ ### Manual Configuration
63
+
64
+ Edit the tables above directly to configure telemetry sources:
65
+
66
+ ```markdown
67
+ ## Sentry
68
+
69
+ | Field | Value |
70
+ |-------|-------|
71
+ | Enabled | true |
72
+ | Method | cli |
73
+ | Organization | my-company |
74
+
75
+ ### Environment Mapping
76
+
77
+ | Environment | Project |
78
+ |-------------|---------|
79
+ | production | my-company/backend-prod |
80
+ | staging | my-company/backend-staging |
81
+ | dev | my-company/backend-dev |
82
+ ```
83
+
84
+ ---
85
+
86
+ ## Last Updated
87
+
88
+ - **Date**: (not configured)
89
+ - **By**: (not configured)