@erclx/canon 4.123.0 → 4.125.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 (104) hide show
  1. package/claude/.claude-plugin/plugin.json +1 -1
  2. package/claude/skills/auto-ship/SKILL.md +2 -4
  3. package/claude/skills/codebase-layout/REQUIREMENT.md +1 -1
  4. package/claude/skills/codebase-layout/SKILL.md +1 -1
  5. package/claude/skills/create-rule/SKILL.md +5 -2
  6. package/claude/skills/design-taste/SKILL.md +1 -1
  7. package/claude/skills/draft-ready/REQUIREMENT.md +1 -1
  8. package/claude/skills/memory-review/SKILL.md +1 -1
  9. package/claude/skills/memory-review/references/later-phases.md +1 -1
  10. package/claude/skills/memory-review/references/receipt-format.md +1 -1
  11. package/claude/skills/role-orchestrator/REQUIREMENT.md +2 -1
  12. package/claude/skills/role-orchestrator/SKILL.md +11 -9
  13. package/claude/skills/role-orchestrator/references/orchestrator-dispatch.md +1 -1
  14. package/claude/skills/role-orchestrator/references/orchestrator-handback.md +2 -0
  15. package/claude/skills/role-orchestrator/references/orchestrator-launch.md +18 -3
  16. package/claude/skills/role-orchestrator/references/orchestrator-poll.md +4 -4
  17. package/claude/skills/role-orchestrator/references/orchestrator-review-dispatch.md +29 -0
  18. package/claude/skills/role-reviewer/REQUIREMENT.md +75 -0
  19. package/claude/skills/role-reviewer/SKILL.md +73 -0
  20. package/claude/skills/role-worker/SKILL.md +1 -1
  21. package/claude/skills/test-first/REQUIREMENT.md +1 -1
  22. package/docs/agents/counts.md +3 -3
  23. package/docs/agents/drift-surfaces.md +2 -2
  24. package/docs/agents/rule-citations.md +4 -4
  25. package/docs/agents/test-order.md +1 -1
  26. package/docs/index.md +3 -0
  27. package/docs/target-migrations.md +93 -0
  28. package/docs/target-projects.md +4 -216
  29. package/docs/target-scenarios.md +56 -0
  30. package/docs/target-sync.md +93 -0
  31. package/docs/workflow/ai-workflow.md +2 -201
  32. package/docs/workflow/index.md +2 -0
  33. package/docs/workflow/operating-model.md +28 -58
  34. package/docs/workflow/parallel-features.md +77 -0
  35. package/docs/workflow/skill-map.md +149 -0
  36. package/governance/renames.toml +34 -0
  37. package/governance/rules/{claude/560-diagrams.md → canon/660-diagrams.md} +1 -1
  38. package/governance/rules/{claude/562-session.md → canon/662-session.md} +1 -1
  39. package/governance/rules/code/000-code.md +21 -0
  40. package/governance/rules/lib/300-testing-ts.md +0 -4
  41. package/governance/rules/lib/330-testing-py.md +0 -4
  42. package/governance/rules/{claude/500-prose.md → writing/800-prose.md} +1 -1
  43. package/governance/rules/{claude/501-markdown.md → writing/801-markdown.md} +1 -1
  44. package/governance/rules/{claude/502-mermaid.md → writing/802-mermaid.md} +1 -1
  45. package/governance/stacks/base.toml +7 -6
  46. package/governance/stacks/node.toml +1 -1
  47. package/governance/stacks/python.toml +1 -1
  48. package/package.json +1 -1
  49. package/scripts/core/install-check.sh +3 -5
  50. package/src/claude/cases/workflow.ts +5 -0
  51. package/src/claude/routing.ts +1 -1
  52. package/src/commands/gov.ts +1 -1
  53. package/src/gate/measures.ts +1 -6
  54. package/src/gov/citations.ts +1 -1
  55. package/src/gov/list.ts +1 -1
  56. package/src/gov/restated.ts +2 -2
  57. package/src/init/steps.ts +1 -1
  58. package/src/labels/spelling.ts +1 -1
  59. package/src/records/prune.ts +1 -1
  60. package/src/shipped/references.ts +1 -1
  61. package/standards/rule.md +4 -6
  62. package/tooling/base/reference.md +1 -1
  63. package/tooling/claude/seeds/.claude/hooks/path-form.sh +1 -1
  64. package/tooling/claude/seeds/.claude/hooks/scratch-guard.sh +1 -1
  65. package/tooling/web/reference.md +1 -1
  66. package/claude/skills/role-orchestrator/references/orchestrator-review-fallback.md +0 -18
  67. package/governance/rules/core/000-constitution.md +0 -30
  68. package/governance/rules/core/020-concurrency.md +0 -22
  69. package/governance/rules/core/030-error-handling.md +0 -31
  70. package/governance/rules/core/040-performance.md +0 -20
  71. package/governance/rules/core/050-logging.md +0 -20
  72. package/governance/rules/core/060-naming.md +0 -19
  73. package/governance/rules/snippets/600-at-references.md +0 -9
  74. /package/governance/rules/{core/025-indexes.md → canon/601-indexes.md} +0 -0
  75. /package/governance/rules/{core/035-tasks.md → canon/602-tasks.md} +0 -0
  76. /package/governance/rules/{core/045-memory.md → canon/603-memory.md} +0 -0
  77. /package/governance/rules/{core/055-scratch.md → canon/604-scratch.md} +0 -0
  78. /package/governance/rules/{core/085-worktrees.md → canon/605-worktrees.md} +0 -0
  79. /package/governance/rules/{core/087-git.md → canon/606-git.md} +0 -0
  80. /package/governance/rules/{claude/510-context.md → canon/610-context.md} +0 -0
  81. /package/governance/rules/{claude/511-indexes.md → canon/611-indexes.md} +0 -0
  82. /package/governance/rules/{claude/520-wireframes.md → canon/620-wireframes.md} +0 -0
  83. /package/governance/rules/{claude/530-requirements.md → canon/630-requirements.md} +0 -0
  84. /package/governance/rules/{claude/540-architecture.md → canon/640-architecture.md} +0 -0
  85. /package/governance/rules/{claude/545-decisions.md → canon/645-decisions.md} +0 -0
  86. /package/governance/rules/{claude/550-design.md → canon/650-design.md} +0 -0
  87. /package/governance/rules/{claude/555-tasks.md → canon/655-tasks.md} +0 -0
  88. /package/governance/rules/{claude/556-groundwork.md → canon/656-groundwork.md} +0 -0
  89. /package/governance/rules/{claude/557-intake.md → canon/657-intake.md} +0 -0
  90. /package/governance/rules/{claude/558-plan.md → canon/658-plan.md} +0 -0
  91. /package/governance/rules/{claude/559-memory.md → canon/659-memory.md} +0 -0
  92. /package/governance/rules/{claude/561-teach.md → canon/661-teach.md} +0 -0
  93. /package/governance/rules/{claude/563-ready.md → canon/663-ready.md} +0 -0
  94. /package/governance/rules/{core/005-behavior.md → claude/565-behavior.md} +0 -0
  95. /package/governance/rules/{core/015-output.md → claude/566-output.md} +0 -0
  96. /package/governance/rules/{core/070-planning.md → claude/567-planning.md} +0 -0
  97. /package/governance/rules/{core → code}/010-testing.md +0 -0
  98. /package/governance/rules/{ci → tooling}/700-ci-workflow.md +0 -0
  99. /package/governance/rules/{core/065-spelling.md → tooling/765-spelling.md} +0 -0
  100. /package/governance/rules/{core/075-dependencies.md → tooling/775-dependencies.md} +0 -0
  101. /package/governance/rules/{core/080-config-comments.md → tooling/780-config-comments.md} +0 -0
  102. /package/governance/rules/{core/090-code-comments.md → tooling/790-code-comments.md} +0 -0
  103. /package/governance/rules/{claude/580-readme.md → writing/880-readme.md} +0 -0
  104. /package/governance/rules/{claude/591-standard-authoring.md → writing/891-standard-authoring.md} +0 -0
@@ -1,22 +0,0 @@
1
- ---
2
- description: Enforce safe concurrency and async operation patterns
3
- ---
4
-
5
- # Concurrency standards
6
-
7
- ## Async lifecycle
8
-
9
- - Make async operations cancellable. Clean up on scope exit or caller cancellation.
10
- - Coordinate dependent async operations explicitly. Document execution order.
11
- - Set explicit timeouts on all external async operations.
12
- - Do not fire-and-forget async operations without cleanup handlers.
13
- - Batch independent async operations. Do not run them sequentially when parallelizable.
14
-
15
- ## Race conditions
16
-
17
- - Do not ignore race conditions in concurrent flows.
18
- - Protect shared mutable state with locks, queues, or single-writer patterns.
19
-
20
- ## Failure handling
21
-
22
- - Handle partial failures in batched operations independently. Do not fail the entire batch for a single error.
@@ -1,31 +0,0 @@
1
- ---
2
- description: Enforce consistent error handling patterns
3
- ---
4
-
5
- # Error handling standards
6
-
7
- ## Boundary validation
8
-
9
- - Validate inputs at system boundaries. Reject invalid data immediately.
10
- - Do not use exceptions for control flow.
11
-
12
- ## Error classification
13
-
14
- - Distinguish expected failures (validation, not found) from unexpected failures (null reference, network timeout).
15
- - Return structured error types for recoverable failures.
16
- - Propagate exceptions for programmer errors.
17
-
18
- ## Error propagation
19
-
20
- - Handle errors at the layer with enough context to respond meaningfully.
21
- - Do not catch and rethrow without adding value.
22
- - Do not silently ignore errors.
23
-
24
- ## Error reporting
25
-
26
- - Include actionable context in error messages.
27
- - Never expose internal implementation details in error messages.
28
-
29
- ## Retry behavior
30
-
31
- - Retry only idempotent operations with bounded attempts and backoff.
@@ -1,20 +0,0 @@
1
- ---
2
- description: Enforce performance constraints and optimization patterns
3
- ---
4
-
5
- # Performance standards
6
-
7
- ## Resource loading
8
-
9
- - Lazy load resources at architectural boundaries, not inline.
10
- - Do not import entire modules when subsets are sufficient.
11
-
12
- ## Execution efficiency
13
-
14
- - Defer non-critical work until after primary output completes.
15
- - Do not fetch data inside loops.
16
-
17
- ## Data handling
18
-
19
- - Paginate or stream unbounded data sets.
20
- - Do not optimize without measurement.
@@ -1,20 +0,0 @@
1
- ---
2
- description: Enforce structured logging and observability
3
- ---
4
-
5
- # Logging standards
6
-
7
- ## Log coverage
8
-
9
- - Log state transitions at boundaries (requests received, external calls made, errors encountered).
10
- - Do not log in performance-critical code paths.
11
-
12
- ## Log format
13
-
14
- - Use structured formats with consistent metadata (timestamp, severity, correlation ID).
15
- - Emit logs at appropriate severity: critical for failures, informational for significant events.
16
-
17
- ## Log safety
18
-
19
- - Do not log credentials, tokens, or personally identifiable information.
20
- - Log observable behavior, not implementation details.
@@ -1,19 +0,0 @@
1
- ---
2
- description: Enforce consistent naming semantics across all code
3
- ---
4
-
5
- # Naming standards
6
-
7
- ## Semantics
8
-
9
- - Prefer descriptive names over abbreviations: `getUserProfile` over `getUP`.
10
- - Name functions as actions describing what they do: `fetchUser`, `calculateTotal`.
11
- - Prefix booleans with `is`, `has`, `should`, or `can`: `isLoading`, `hasAccess`.
12
- - Avoid negative boolean names: `isEnabled` over `isNotDisabled`.
13
- - Prefix event handlers with `handle`: `handleClick`, `handleSubmit`.
14
- - Name collections as plurals: `users`.
15
- - Name items as singulars: `user`.
16
-
17
- ## Test naming
18
-
19
- - Name tests with descriptive phrases that state the expected behavior.
@@ -1,9 +0,0 @@
1
- ---
2
- description: Execute an @-referenced snippet's instructions immediately using session context
3
- ---
4
-
5
- # Snippet reference standards
6
-
7
- ## Execution
8
-
9
- - When a snippet is referenced with `@`, execute its instructions immediately using available session context
File without changes