lore-agent-task-manager 0.1.0__tar.gz

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 (307) hide show
  1. lore_agent_task_manager-0.1.0/.gitignore +32 -0
  2. lore_agent_task_manager-0.1.0/.lore/.gitignore +20 -0
  3. lore_agent_task_manager-0.1.0/.lore/GETTING-STARTED.md +38 -0
  4. lore_agent_task_manager-0.1.0/.lore/LORE-AGENT.md +32 -0
  5. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/CODEX.md +143 -0
  6. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/conceptual/entities/task.md +51 -0
  7. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/conceptual/entities/user.md +47 -0
  8. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/conceptual/relationships/user--task.md +58 -0
  9. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/conceptual/workflows/complete-task.md +47 -0
  10. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/conceptual/workflows/create-and-assign-entity.md +68 -0
  11. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/constraints/constraints.md +59 -0
  12. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/decisions/001-sqlite-storage.md +64 -0
  13. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/decisions/adr-no-default-content-tests.md +33 -0
  14. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/glossary/glossary.md +40 -0
  15. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/integrations/integrations.md +47 -0
  16. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/operations/deployment/development.md +105 -0
  17. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/operations/deployment/overview.md +57 -0
  18. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/operations/deployment/production.md +88 -0
  19. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/operations/deployment/staging.md +57 -0
  20. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/operations/git.md +95 -0
  21. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/operations/runbooks/runbook-template.md +75 -0
  22. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/personas/persona.md +48 -0
  23. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/security/security-model.md +62 -0
  24. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/standards/code-conventions.md +61 -0
  25. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/standards/design-principles.md +67 -0
  26. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/standards/testing.md +71 -0
  27. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/technical/backend/api/tasks.md +81 -0
  28. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/technical/backend/overview.md +58 -0
  29. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/technical/database/overview.md +45 -0
  30. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/technical/database/schemas/tasks.md +49 -0
  31. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/technical/database/schemas/users.md +38 -0
  32. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/technical/frontend/overview.md +41 -0
  33. lore_agent_task_manager-0.1.0/.lore/artifacts/default/codex/technical/overview.md +59 -0
  34. lore_agent_task_manager-0.1.0/.lore/artifacts/default/feature-implementation/codex-change-proposal.md +91 -0
  35. lore_agent_task_manager-0.1.0/.lore/artifacts/default/feature-implementation/context-map.md +44 -0
  36. lore_agent_task_manager-0.1.0/.lore/artifacts/default/feature-implementation/crazy-prd.md +88 -0
  37. lore_agent_task_manager-0.1.0/.lore/artifacts/default/feature-implementation/crazy-tech-spec.md +79 -0
  38. lore_agent_task_manager-0.1.0/.lore/artifacts/default/feature-implementation/prd-draft.md +128 -0
  39. lore_agent_task_manager-0.1.0/.lore/artifacts/default/feature-implementation/prd.md +125 -0
  40. lore_agent_task_manager-0.1.0/.lore/artifacts/default/feature-implementation/tech-spec-draft.md +134 -0
  41. lore_agent_task_manager-0.1.0/.lore/artifacts/default/feature-implementation/tech-spec.md +138 -0
  42. lore_agent_task_manager-0.1.0/.lore/artifacts/default/feature-implementation/user-story-index.md +59 -0
  43. lore_agent_task_manager-0.1.0/.lore/artifacts/default/feature-implementation/user-story.md +126 -0
  44. lore_agent_task_manager-0.1.0/.lore/codex/CODEX.md +96 -0
  45. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/entities/artifact.md +79 -0
  46. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/entities/doctrine.md +121 -0
  47. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/entities/knight.md +95 -0
  48. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/entities/mission.md +119 -0
  49. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/entities/quest.md +97 -0
  50. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/entities/watcher.md +97 -0
  51. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/relationships/lore--camelot-system.md +75 -0
  52. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/artifact-list.md +92 -0
  53. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/block.md +97 -0
  54. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/board.md +98 -0
  55. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/claim.md +96 -0
  56. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/codex-chaos.md +130 -0
  57. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/codex-map.md +114 -0
  58. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/codex.md +122 -0
  59. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/concurrent-access.md +71 -0
  60. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/dependencies.md +115 -0
  61. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/doctrine-list.md +111 -0
  62. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/doctrine-new.md +188 -0
  63. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/done.md +106 -0
  64. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/error-handling.md +102 -0
  65. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/help.md +118 -0
  66. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/json-output.md +97 -0
  67. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/knight-crud.md +98 -0
  68. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/knight-list.md +108 -0
  69. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/lore-init.md +92 -0
  70. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/mission-crud.md +119 -0
  71. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/mission-type.md +86 -0
  72. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/oracle.md +92 -0
  73. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/python-api.md +142 -0
  74. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/quest-crud.md +123 -0
  75. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/ready.md +100 -0
  76. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/schema-migrations.md +83 -0
  77. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/show.md +130 -0
  78. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/stats.md +90 -0
  79. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/typical-workflow.md +64 -0
  80. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/validators.md +83 -0
  81. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/watcher-crud.md +115 -0
  82. lore_agent_task_manager-0.1.0/.lore/codex/conceptual/workflows/watcher-list.md +128 -0
  83. lore_agent_task_manager-0.1.0/.lore/codex/decisions/001-dumb-infrastructure.md +67 -0
  84. lore_agent_task_manager-0.1.0/.lore/codex/decisions/002-package-name.md +38 -0
  85. lore_agent_task_manager-0.1.0/.lore/codex/decisions/003-soft-delete-semantics.md +69 -0
  86. lore_agent_task_manager-0.1.0/.lore/codex/decisions/004-mission-type-dumb-storage.md +57 -0
  87. lore_agent_task_manager-0.1.0/.lore/codex/decisions/005-auto-close-toggle.md +71 -0
  88. lore_agent_task_manager-0.1.0/.lore/codex/decisions/006-id-references.md +98 -0
  89. lore_agent_task_manager-0.1.0/.lore/codex/decisions/006-no-seed-content-tests.md +42 -0
  90. lore_agent_task_manager-0.1.0/.lore/codex/decisions/007-artifact-communication-protocol.md +99 -0
  91. lore_agent_task_manager-0.1.0/.lore/codex/decisions/008-help-as-teaching-interface.md +134 -0
  92. lore_agent_task_manager-0.1.0/.lore/codex/decisions/009-mission-self-containment.md +144 -0
  93. lore_agent_task_manager-0.1.0/.lore/codex/decisions/011-api-parity-with-cli.md +75 -0
  94. lore_agent_task_manager-0.1.0/.lore/codex/operations/git-workflow.md +129 -0
  95. lore_agent_task_manager-0.1.0/.lore/codex/operations/installation.md +131 -0
  96. lore_agent_task_manager-0.1.0/.lore/codex/standards/dependency-inversion.md +35 -0
  97. lore_agent_task_manager-0.1.0/.lore/codex/standards/dry.md +37 -0
  98. lore_agent_task_manager-0.1.0/.lore/codex/standards/facade.md +39 -0
  99. lore_agent_task_manager-0.1.0/.lore/codex/standards/public-api-stability.md +122 -0
  100. lore_agent_task_manager-0.1.0/.lore/codex/standards/separation-of-concerns.md +34 -0
  101. lore_agent_task_manager-0.1.0/.lore/codex/standards/single-responsibility.md +44 -0
  102. lore_agent_task_manager-0.1.0/.lore/codex/technical/api/surface.md +124 -0
  103. lore_agent_task_manager-0.1.0/.lore/codex/technical/architecture/agents-md.md +80 -0
  104. lore_agent_task_manager-0.1.0/.lore/codex/technical/architecture/frontmatter.md +99 -0
  105. lore_agent_task_manager-0.1.0/.lore/codex/technical/architecture/graph.md +99 -0
  106. lore_agent_task_manager-0.1.0/.lore/codex/technical/architecture/initialized-project-structure.md +84 -0
  107. lore_agent_task_manager-0.1.0/.lore/codex/technical/architecture/knight-module.md +92 -0
  108. lore_agent_task_manager-0.1.0/.lore/codex/technical/architecture/project-root-detection.md +66 -0
  109. lore_agent_task_manager-0.1.0/.lore/codex/technical/architecture/source-layout.md +217 -0
  110. lore_agent_task_manager-0.1.0/.lore/codex/technical/architecture/validators.md +97 -0
  111. lore_agent_task_manager-0.1.0/.lore/codex/technical/cli/commands.md +1239 -0
  112. lore_agent_task_manager-0.1.0/.lore/codex/technical/cli/entity-crud-matrix.md +51 -0
  113. lore_agent_task_manager-0.1.0/.lore/codex/technical/cli/oracle-slugification.md +67 -0
  114. lore_agent_task_manager-0.1.0/.lore/codex/technical/codex-chaos.md +162 -0
  115. lore_agent_task_manager-0.1.0/.lore/codex/technical/codex-map.md +119 -0
  116. lore_agent_task_manager-0.1.0/.lore/codex/technical/database/schema.md +533 -0
  117. lore_agent_task_manager-0.1.0/.lore/codex/technical/doctrine/internals.md +189 -0
  118. lore_agent_task_manager-0.1.0/.lore/codex/technical/oracle/internals.md +116 -0
  119. lore_agent_task_manager-0.1.0/.lore/codex/technical/overview.md +97 -0
  120. lore_agent_task_manager-0.1.0/.lore/codex/technical/test-guidelines.md +124 -0
  121. lore_agent_task_manager-0.1.0/.lore/codex/transient/codex-list-group-business-map.md +47 -0
  122. lore_agent_task_manager-0.1.0/.lore/codex/transient/codex-list-group-prd.md +186 -0
  123. lore_agent_task_manager-0.1.0/.lore/codex/transient/codex-list-group-tech-spec.md +245 -0
  124. lore_agent_task_manager-0.1.0/.lore/codex/transient/codex-list-group-technical-map.md +65 -0
  125. lore_agent_task_manager-0.1.0/.lore/codex/transient/codex-list-group-us-1.md +190 -0
  126. lore_agent_task_manager-0.1.0/.lore/codex/transient/codex-list-group-us-2.md +219 -0
  127. lore_agent_task_manager-0.1.0/.lore/codex/transient/codex-list-group-us-index.md +53 -0
  128. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-business-map.md +48 -0
  129. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-codex-proposal.md +309 -0
  130. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-prd-draft.md +264 -0
  131. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-prd.md +258 -0
  132. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-tech-spec-draft.md +239 -0
  133. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-tech-spec.md +248 -0
  134. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-technical-map.md +83 -0
  135. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-us-1.md +236 -0
  136. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-us-2.md +273 -0
  137. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-us-3.md +147 -0
  138. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-us-4.md +264 -0
  139. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-us-5.md +248 -0
  140. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-us-6.md +180 -0
  141. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-us-7.md +227 -0
  142. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-us-8.md +245 -0
  143. lore_agent_task_manager-0.1.0/.lore/codex/transient/remove-type-field-us-index.md +119 -0
  144. lore_agent_task_manager-0.1.0/.lore/doctrines/default/feature-implementation/feature-implementation.yaml +387 -0
  145. lore_agent_task_manager-0.1.0/.lore/doctrines/default/feature-implementation/quick-feature-implementation.yaml +206 -0
  146. lore_agent_task_manager-0.1.0/.lore/doctrines/default/feature-implementation/tdd-implementation.yaml +51 -0
  147. lore_agent_task_manager-0.1.0/.lore/doctrines/default/update-changelog.yaml +24 -0
  148. lore_agent_task_manager-0.1.0/.lore/knights/default/changelog-scribe.md +105 -0
  149. lore_agent_task_manager-0.1.0/.lore/knights/default/feature-implementation/architect.md +65 -0
  150. lore_agent_task_manager-0.1.0/.lore/knights/default/feature-implementation/ba.md +73 -0
  151. lore_agent_task_manager-0.1.0/.lore/knights/default/feature-implementation/crazy-architect.md +41 -0
  152. lore_agent_task_manager-0.1.0/.lore/knights/default/feature-implementation/crazy-pm.md +39 -0
  153. lore_agent_task_manager-0.1.0/.lore/knights/default/feature-implementation/pm.md +61 -0
  154. lore_agent_task_manager-0.1.0/.lore/knights/default/feature-implementation/scout.md +67 -0
  155. lore_agent_task_manager-0.1.0/.lore/knights/default/feature-implementation/tdd-green.md +32 -0
  156. lore_agent_task_manager-0.1.0/.lore/knights/default/feature-implementation/tdd-red.md +31 -0
  157. lore_agent_task_manager-0.1.0/.lore/knights/default/feature-implementation/tdd-refactor.md +40 -0
  158. lore_agent_task_manager-0.1.0/.lore/knights/default/feature-implementation/tech-lead.md +73 -0
  159. lore_agent_task_manager-0.1.0/.lore/knights/default/feature-implementation/tech-writer.md +68 -0
  160. lore_agent_task_manager-0.1.0/.lore/lore.db +0 -0
  161. lore_agent_task_manager-0.1.0/.lore/skills/explore-codex/SKILL.md +60 -0
  162. lore_agent_task_manager-0.1.0/.lore/skills/new-artifact/SKILL.md +73 -0
  163. lore_agent_task_manager-0.1.0/.lore/skills/new-doctrine/SKILL.md +79 -0
  164. lore_agent_task_manager-0.1.0/.lore/skills/new-knight/SKILL.md +72 -0
  165. lore_agent_task_manager-0.1.0/.lore/skills/new-watcher/SKILL.md +45 -0
  166. lore_agent_task_manager-0.1.0/.lore/skills/start-quest/SKILL.md +100 -0
  167. lore_agent_task_manager-0.1.0/.lore/watchers/default/change-log-updates.yaml +16 -0
  168. lore_agent_task_manager-0.1.0/CHANGELOG.md +63 -0
  169. lore_agent_task_manager-0.1.0/LICENSE +21 -0
  170. lore_agent_task_manager-0.1.0/PKG-INFO +194 -0
  171. lore_agent_task_manager-0.1.0/README.md +175 -0
  172. lore_agent_task_manager-0.1.0/pyproject.toml +50 -0
  173. lore_agent_task_manager-0.1.0/src/lore/__init__.py +5 -0
  174. lore_agent_task_manager-0.1.0/src/lore/__main__.py +5 -0
  175. lore_agent_task_manager-0.1.0/src/lore/artifact.py +50 -0
  176. lore_agent_task_manager-0.1.0/src/lore/cli.py +2786 -0
  177. lore_agent_task_manager-0.1.0/src/lore/codex.py +316 -0
  178. lore_agent_task_manager-0.1.0/src/lore/db.py +1320 -0
  179. lore_agent_task_manager-0.1.0/src/lore/defaults/GETTING-STARTED.md +38 -0
  180. lore_agent_task_manager-0.1.0/src/lore/defaults/LORE-AGENT.md +32 -0
  181. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/CODEX.md +143 -0
  182. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/conceptual/entities/task.md +51 -0
  183. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/conceptual/entities/user.md +47 -0
  184. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/conceptual/relationships/user--task.md +58 -0
  185. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/conceptual/workflows/complete-task.md +47 -0
  186. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/conceptual/workflows/create-and-assign-entity.md +68 -0
  187. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/constraints/constraints.md +59 -0
  188. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/decisions/001-sqlite-storage.md +64 -0
  189. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/decisions/adr-no-default-content-tests.md +33 -0
  190. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/glossary/glossary.md +40 -0
  191. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/integrations/integrations.md +47 -0
  192. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/operations/deployment/development.md +105 -0
  193. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/operations/deployment/overview.md +57 -0
  194. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/operations/deployment/production.md +88 -0
  195. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/operations/deployment/staging.md +57 -0
  196. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/operations/git.md +95 -0
  197. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/operations/runbooks/runbook-template.md +75 -0
  198. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/personas/persona.md +48 -0
  199. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/security/security-model.md +62 -0
  200. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/standards/code-conventions.md +61 -0
  201. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/standards/design-principles.md +67 -0
  202. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/standards/testing.md +71 -0
  203. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/technical/backend/api/tasks.md +81 -0
  204. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/technical/backend/overview.md +58 -0
  205. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/technical/database/overview.md +45 -0
  206. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/technical/database/schemas/tasks.md +49 -0
  207. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/technical/database/schemas/users.md +38 -0
  208. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/technical/frontend/overview.md +41 -0
  209. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/codex/technical/overview.md +59 -0
  210. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/feature-implementation/codex-change-proposal.md +91 -0
  211. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/feature-implementation/context-map.md +44 -0
  212. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/feature-implementation/crazy-prd.md +88 -0
  213. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/feature-implementation/crazy-tech-spec.md +79 -0
  214. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/feature-implementation/prd-draft.md +128 -0
  215. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/feature-implementation/prd.md +125 -0
  216. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/feature-implementation/tech-spec-draft.md +134 -0
  217. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/feature-implementation/tech-spec.md +138 -0
  218. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/feature-implementation/user-story-index.md +59 -0
  219. lore_agent_task_manager-0.1.0/src/lore/defaults/artifacts/feature-implementation/user-story.md +126 -0
  220. lore_agent_task_manager-0.1.0/src/lore/defaults/doctrines/feature-implementation/feature-implementation.yaml +387 -0
  221. lore_agent_task_manager-0.1.0/src/lore/defaults/doctrines/feature-implementation/quick-feature-implementation.yaml +206 -0
  222. lore_agent_task_manager-0.1.0/src/lore/defaults/doctrines/feature-implementation/tdd-implementation.yaml +51 -0
  223. lore_agent_task_manager-0.1.0/src/lore/defaults/doctrines/update-changelog.yaml +24 -0
  224. lore_agent_task_manager-0.1.0/src/lore/defaults/gitignore +20 -0
  225. lore_agent_task_manager-0.1.0/src/lore/defaults/knights/changelog-scribe.md +105 -0
  226. lore_agent_task_manager-0.1.0/src/lore/defaults/knights/feature-implementation/architect.md +65 -0
  227. lore_agent_task_manager-0.1.0/src/lore/defaults/knights/feature-implementation/ba.md +73 -0
  228. lore_agent_task_manager-0.1.0/src/lore/defaults/knights/feature-implementation/crazy-architect.md +41 -0
  229. lore_agent_task_manager-0.1.0/src/lore/defaults/knights/feature-implementation/crazy-pm.md +39 -0
  230. lore_agent_task_manager-0.1.0/src/lore/defaults/knights/feature-implementation/pm.md +61 -0
  231. lore_agent_task_manager-0.1.0/src/lore/defaults/knights/feature-implementation/scout.md +67 -0
  232. lore_agent_task_manager-0.1.0/src/lore/defaults/knights/feature-implementation/tdd-green.md +32 -0
  233. lore_agent_task_manager-0.1.0/src/lore/defaults/knights/feature-implementation/tdd-red.md +31 -0
  234. lore_agent_task_manager-0.1.0/src/lore/defaults/knights/feature-implementation/tdd-refactor.md +40 -0
  235. lore_agent_task_manager-0.1.0/src/lore/defaults/knights/feature-implementation/tech-lead.md +73 -0
  236. lore_agent_task_manager-0.1.0/src/lore/defaults/knights/feature-implementation/tech-writer.md +68 -0
  237. lore_agent_task_manager-0.1.0/src/lore/defaults/schema.sql +60 -0
  238. lore_agent_task_manager-0.1.0/src/lore/defaults/skills/explore-codex/SKILL.md +60 -0
  239. lore_agent_task_manager-0.1.0/src/lore/defaults/skills/new-artifact/SKILL.md +73 -0
  240. lore_agent_task_manager-0.1.0/src/lore/defaults/skills/new-doctrine/SKILL.md +79 -0
  241. lore_agent_task_manager-0.1.0/src/lore/defaults/skills/new-knight/SKILL.md +72 -0
  242. lore_agent_task_manager-0.1.0/src/lore/defaults/skills/new-watcher/SKILL.md +45 -0
  243. lore_agent_task_manager-0.1.0/src/lore/defaults/skills/start-quest/SKILL.md +100 -0
  244. lore_agent_task_manager-0.1.0/src/lore/defaults/watchers/change-log-updates.yaml +16 -0
  245. lore_agent_task_manager-0.1.0/src/lore/doctrine.py +271 -0
  246. lore_agent_task_manager-0.1.0/src/lore/frontmatter.py +96 -0
  247. lore_agent_task_manager-0.1.0/src/lore/graph.py +73 -0
  248. lore_agent_task_manager-0.1.0/src/lore/ids.py +16 -0
  249. lore_agent_task_manager-0.1.0/src/lore/init.py +137 -0
  250. lore_agent_task_manager-0.1.0/src/lore/knight.py +97 -0
  251. lore_agent_task_manager-0.1.0/src/lore/migrations/__init__.py +1 -0
  252. lore_agent_task_manager-0.1.0/src/lore/migrations/v1_to_v2.py +10 -0
  253. lore_agent_task_manager-0.1.0/src/lore/migrations/v2_to_v3.py +24 -0
  254. lore_agent_task_manager-0.1.0/src/lore/migrations/v3_to_v4.py +19 -0
  255. lore_agent_task_manager-0.1.0/src/lore/migrations/v4_to_v5.py +41 -0
  256. lore_agent_task_manager-0.1.0/src/lore/migrations/v5_to_v6.py +18 -0
  257. lore_agent_task_manager-0.1.0/src/lore/models.py +323 -0
  258. lore_agent_task_manager-0.1.0/src/lore/oracle.py +204 -0
  259. lore_agent_task_manager-0.1.0/src/lore/paths.py +56 -0
  260. lore_agent_task_manager-0.1.0/src/lore/priority.py +36 -0
  261. lore_agent_task_manager-0.1.0/src/lore/py.typed +0 -0
  262. lore_agent_task_manager-0.1.0/src/lore/root.py +27 -0
  263. lore_agent_task_manager-0.1.0/src/lore/validators.py +149 -0
  264. lore_agent_task_manager-0.1.0/src/lore/watcher.py +158 -0
  265. lore_agent_task_manager-0.1.0/tests/__init__.py +0 -0
  266. lore_agent_task_manager-0.1.0/tests/conftest.py +200 -0
  267. lore_agent_task_manager-0.1.0/tests/e2e/__init__.py +0 -0
  268. lore_agent_task_manager-0.1.0/tests/e2e/conftest.py +6 -0
  269. lore_agent_task_manager-0.1.0/tests/e2e/test_artifact_list.py +1605 -0
  270. lore_agent_task_manager-0.1.0/tests/e2e/test_block.py +455 -0
  271. lore_agent_task_manager-0.1.0/tests/e2e/test_board.py +417 -0
  272. lore_agent_task_manager-0.1.0/tests/e2e/test_claim.py +748 -0
  273. lore_agent_task_manager-0.1.0/tests/e2e/test_codex.py +1200 -0
  274. lore_agent_task_manager-0.1.0/tests/e2e/test_codex_chaos.py +577 -0
  275. lore_agent_task_manager-0.1.0/tests/e2e/test_codex_map.py +1269 -0
  276. lore_agent_task_manager-0.1.0/tests/e2e/test_concurrent_access.py +233 -0
  277. lore_agent_task_manager-0.1.0/tests/e2e/test_dependencies.py +1021 -0
  278. lore_agent_task_manager-0.1.0/tests/e2e/test_doctrine_list.py +371 -0
  279. lore_agent_task_manager-0.1.0/tests/e2e/test_doctrine_new.py +743 -0
  280. lore_agent_task_manager-0.1.0/tests/e2e/test_done.py +1479 -0
  281. lore_agent_task_manager-0.1.0/tests/e2e/test_error_handling.py +715 -0
  282. lore_agent_task_manager-0.1.0/tests/e2e/test_knight_list.py +566 -0
  283. lore_agent_task_manager-0.1.0/tests/e2e/test_lore_init.py +763 -0
  284. lore_agent_task_manager-0.1.0/tests/e2e/test_mission_crud.py +1823 -0
  285. lore_agent_task_manager-0.1.0/tests/e2e/test_oracle.py +296 -0
  286. lore_agent_task_manager-0.1.0/tests/e2e/test_python_api.py +598 -0
  287. lore_agent_task_manager-0.1.0/tests/e2e/test_quest_crud.py +909 -0
  288. lore_agent_task_manager-0.1.0/tests/e2e/test_ready.py +320 -0
  289. lore_agent_task_manager-0.1.0/tests/e2e/test_schema_migrations.py +405 -0
  290. lore_agent_task_manager-0.1.0/tests/e2e/test_stats.py +185 -0
  291. lore_agent_task_manager-0.1.0/tests/e2e/test_watcher_crud.py +968 -0
  292. lore_agent_task_manager-0.1.0/tests/e2e/test_watcher_list.py +821 -0
  293. lore_agent_task_manager-0.1.0/tests/unit/__init__.py +0 -0
  294. lore_agent_task_manager-0.1.0/tests/unit/conftest.py +15 -0
  295. lore_agent_task_manager-0.1.0/tests/unit/test_cli_codex_list.py +485 -0
  296. lore_agent_task_manager-0.1.0/tests/unit/test_codex.py +1113 -0
  297. lore_agent_task_manager-0.1.0/tests/unit/test_cross_platform.py +490 -0
  298. lore_agent_task_manager-0.1.0/tests/unit/test_derive_group.py +228 -0
  299. lore_agent_task_manager-0.1.0/tests/unit/test_doctrine.py +41 -0
  300. lore_agent_task_manager-0.1.0/tests/unit/test_frontmatter.py +120 -0
  301. lore_agent_task_manager-0.1.0/tests/unit/test_graph.py +157 -0
  302. lore_agent_task_manager-0.1.0/tests/unit/test_models.py +1290 -0
  303. lore_agent_task_manager-0.1.0/tests/unit/test_package_distribution.py +214 -0
  304. lore_agent_task_manager-0.1.0/tests/unit/test_root.py +116 -0
  305. lore_agent_task_manager-0.1.0/tests/unit/test_scaffold.py +170 -0
  306. lore_agent_task_manager-0.1.0/tests/unit/test_validators.py +376 -0
  307. lore_agent_task_manager-0.1.0/tests/unit/test_watcher.py +786 -0
@@ -0,0 +1,32 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ *.egg
6
+ .pytest_cache/
7
+ dist/
8
+ build/
9
+
10
+ # Virtual environments
11
+ .venv/
12
+
13
+ # uv
14
+ uv.lock
15
+
16
+ # pytest
17
+ .pytest_cache/
18
+
19
+ # IDE
20
+ .vscode/
21
+ *.swp
22
+ *.swo
23
+
24
+ # Project-specific
25
+ .claude/
26
+ .reports/
27
+ .ideas/
28
+ .old/
29
+ .idea/
30
+ AGENTS.md
31
+ CLAUDE.md
32
+ temp.md
@@ -0,0 +1,20 @@
1
+ # Created by Lore automatically.
2
+ *
3
+ !.gitignore
4
+ !codex
5
+ !codex/**
6
+ !artifacts
7
+ !artifacts/**
8
+ artifacts/default/
9
+ !knights
10
+ !knights/**
11
+ knights/default/
12
+ !doctrines
13
+ !doctrines/**
14
+ doctrines/default/
15
+ !watchers
16
+ !watchers/**
17
+ watchers/default/
18
+ GETTING-STARTED.md
19
+ LORE-AGENT.md
20
+ skills/
@@ -0,0 +1,38 @@
1
+ # Getting Started with Lore Agent Skills
2
+
3
+ `lore init` placed these files in `.lore/`. They are not active until you move them to the right place for your agent framework.
4
+
5
+ ## Step 1 — Add the agent prompt
6
+
7
+ Copy the contents of `.lore/LORE-AGENT.md` into whichever file your agent framework reads:
8
+
9
+ | Framework | File |
10
+ |---------------|---------------|
11
+ | Claude Code | `CLAUDE.md` |
12
+ | OpenAI Codex | `AGENTS.md` |
13
+ | Other | Whatever your framework reads at project root |
14
+
15
+ If the file already exists, append the content — do not replace it.
16
+
17
+ ## Step 2 — Install skills (optional but recommended)
18
+
19
+ Skills give your agent step-by-step workflows for common tasks. Without them, your agent will still work, but it will have to figure out the process each time.
20
+
21
+ **Claude Code** — copy to `.claude/skills/`:
22
+ ```
23
+ cp -r .lore/skills/. .claude/skills/
24
+ ```
25
+ Then invoke with the Skill tool (e.g. `/start-quest`, `/new-doctrine`).
26
+
27
+ **Other frameworks** — check your framework's documentation for custom command or skill directories.
28
+
29
+ ## Available skills
30
+
31
+ | Skill | What it does |
32
+ |------------------|-----------------------------------------------------------------|
33
+ | `start-quest` | Read a doctrine, create a quest and its missions, ask before dispatching |
34
+ | `new-doctrine` | Draft and create a new doctrine via `lore doctrine new` |
35
+ | `new-knight` | Draft and create a new knight persona via `lore knight new` |
36
+ | `new-watcher` | Draft and create a new watcher via `lore watcher new` |
37
+ | `new-artifact` | Draft and create a new artifact file in `.lore/artifacts/` |
38
+ | `explore-codex` | Search, map, and traverse the codex to answer a question |
@@ -0,0 +1,32 @@
1
+ # Lore
2
+
3
+ Lore is your project task manager. Run `lore --help` for the full command reference.
4
+
5
+ ## Orchestrator
6
+
7
+ Use `lore ready` to get the next available mission. Dispatch based on mission type:
8
+
9
+ - **`knight`** — claim it (`lore claim <id>`), then spawn a worker agent passing the mission ID
10
+ - **`constable`**(or orchestrator) — claim it and handle inline (orchestrator chore — commit, housekeeping, etc.)
11
+ - **`human`** — do NOT claim; leave it for the human to complete
12
+
13
+ To start a new quest from a doctrine, use `/start-quest`. For creating doctrines, knights, watchers, artifacts, or exploring the codex, use the relevant skill.
14
+
15
+ ## Worker
16
+
17
+ You have been assigned a mission ID by the orchestrator.
18
+
19
+ Run `lore show <id>` — this returns the mission description, acceptance criteria, and knight persona in a single call. Execute the mission. When done, run `lore done <id>`. If you are blocked, run `lore block <id> "<reason>"` with a clear explanation.
20
+
21
+ Do not create quests or missions. Do not claim work that has not been assigned to you.
22
+
23
+ ## Available skills
24
+
25
+ | Skill | What it does |
26
+ |------------------|-----------------------------------------------------------------|
27
+ | `start-quest` | Read a doctrine, create a quest and its missions, ask before dispatching |
28
+ | `new-doctrine` | Draft and create a new doctrine via `lore doctrine new` |
29
+ | `new-knight` | Draft and create a new knight persona via `lore knight new` |
30
+ | `new-watcher` | Draft and create a new watcher via `lore watcher new` |
31
+ | `new-artifact` | Draft and create a new artifact file in `.lore/artifacts/` |
32
+ | `explore-codex` | Search, map, and traverse the codex to answer a question |
@@ -0,0 +1,143 @@
1
+ ---
2
+ id: example-codex
3
+ title: Codex
4
+ related: []
5
+ stability: stable
6
+ summary: >
7
+ What this documentation system is, how it is structured, and how to use it.
8
+ Read this before reading or writing any other file in this repository.
9
+ ---
10
+
11
+ # Codex
12
+
13
+ This is a documentation system designed to be the single source of truth for a software project. It is built for AI agents first and humans second. Every structural decision exists to help an agent find exactly what it needs without reading files that are not relevant.
14
+
15
+ Start with `lore codex list`. It is the only index. Everything else is reachable from there.
16
+
17
+ ## The Layers
18
+
19
+ Documentation is divided into layers. Each layer has one job.
20
+
21
+ | Layer | Directory | Question it answers |
22
+ |-------|-----------|-------------------|
23
+ | Conceptual — Entities | `conceptual/entities/` | What is this thing and how does it behave? |
24
+ | Conceptual — Relationships | `conceptual/relationships/` | How do two entities connect and what rules govern that connection? |
25
+ | Conceptual — Workflows | `conceptual/workflows/` | What does the system do internally, or how does a user accomplish a goal? |
26
+ | Technical | `technical/` | How is this built, stored, and served? |
27
+ | Decisions | `decisions/` | Why was this architectural choice made and what alternatives were rejected? |
28
+ | Standards | `standards/` | How do we write code and design this system? Conventions, principles, and rules. |
29
+ | Glossary | `glossary/` | What do our terms mean? Canonical vocabulary for agents and humans. |
30
+ | Constraints | `constraints/` | What are the hard limits we must never violate? |
31
+ | Personas | `personas/` | Who uses this system and what do they need? |
32
+ | Integrations | `integrations/` | What external systems do we touch and how? |
33
+ | Security | `security/` | What is our security and trust model? |
34
+ | Operations | `operations/` | How is this developed, deployed, and maintained? |
35
+ | Transient | `transient/` | In-flight working documents for the current feature cycle. Deleted when the feature ships. |
36
+
37
+ **Conceptual docs describe the system from the outside.** No file paths, no schema columns, no API endpoints. If a business analyst can read it and understand it without knowing the tech stack, it belongs in conceptual.
38
+
39
+ **Technical docs describe the system from the inside.** Database schemas, CLI command specs, frontend structure, infrastructure. Each component of the software gets its own subdirectory.
40
+
41
+ These two trees link to each other but never duplicate. If a fact exists in a schema file, the entity file links to it — it does not repeat it. One fact, one file.
42
+
43
+ ## Workflows
44
+
45
+ Workflows describe processes. The subject determines the framing:
46
+
47
+ - **System workflow** — the system is the subject. What the system does when triggered. Steps through internal logic, validations, and state changes.
48
+ - **User-facing workflow** — a user is the subject. What a person does to accomplish a goal. Set the `persona` frontmatter field to identify the role performing it.
49
+
50
+ A background job has a system workflow. A settings command may have a user-facing workflow. Creating and assigning a record has both — the user runs commands (`persona` set) while the system validates input and persists state (no `persona`).
51
+
52
+ ## Stable vs In-Flight
53
+
54
+ Documentation is either stable or in-flight.
55
+
56
+ **Stable** — `conceptual/`, `technical/`, `decisions/`, `standards/`, `glossary/`, `constraints/`, `personas/`, `integrations/`, `security/`, `operations/`. Describes the system as it exists today. Never contains future intentions or work in progress.
57
+
58
+ **In-flight** — `transient/`. Describes work being planned or developed. These files are deleted when the feature ships.
59
+
60
+ **The deletion test:** when a feature ships, its transient files can be deleted. If deleting them causes any information to be lost, the stable documentation was not properly updated. A complete documentation update is part of the definition of done.
61
+
62
+ ## Decisions
63
+
64
+ `decisions/` contains Architecture Decision Records. Write an ADR when a significant architectural choice is made — one that future contributors should not unknowingly reverse. Each ADR records context, the decision, why it was made, and what alternatives were rejected. The alternatives section is particularly valuable: it tells an AI agent what not to suggest.
65
+
66
+ ## Standards
67
+
68
+ `standards/` contains the project's coding conventions, design principles, and framework usage rules. Standards are ongoing, enforced guidelines — not one-time decisions. A decision in `decisions/` may produce a standard in `standards/`. Decisions explain *why*; standards explain *how to comply*.
69
+
70
+ ## What NOT to Put in the Codex
71
+
72
+ - Git history, commit messages, or who changed what — use `git log`
73
+ - Debugging notes or fix recipes — put the fix in code, context in the commit message
74
+ - PR summaries or activity logs — these are ephemeral
75
+ - In-progress task state or mission notes — use the task manager
76
+ - Anything already captured in `AGENTS.md` or `CLAUDE.md`
77
+ - Duplicate facts — if a fact exists in one file, link to it; do not repeat it
78
+
79
+ ## Cross-References
80
+
81
+ Cross-references between documents belong exclusively in the `related` frontmatter field. Do not add "Related Documentation" sections to document bodies. One mechanism, one place.
82
+
83
+ Use `lore codex map <id> --depth 1` to traverse the graph of related documents starting from any document.
84
+
85
+ ## The Development Pipeline
86
+
87
+ New features follow this sequence:
88
+
89
+ 1. **Scouts map the codex** — two Scout agents run in parallel, producing a business context map and a technical context map in `transient/`. These maps are the mandatory input for all planning agents.
90
+ 2. **PRD** (`transient/`) — written in business language. What is broken or missing, what success looks like, user workflows, functional and non-functional requirements.
91
+ 3. **Architecture review** — the stable documentation is updated to reflect the new design. Entities, schemas, CLI command specs, ADRs — all updated before any code is written.
92
+ 4. **Tech Spec** (`transient/`) — technical design. Files to modify, schema changes, edge cases, error handling. Every user workflow in the PRD maps to an E2E test scenario.
93
+ 5. **User stories** (`transient/`) — written after the docs are updated. Each story references stable documentation as the source of truth and adds acceptance criteria and test stubs.
94
+ 6. **Development** — agents implement against user stories, consulting stable documentation for context.
95
+ 7. **Cleanup** — transient files are deleted. Stable docs already reflect the new reality.
96
+
97
+ ## Naming Conventions
98
+
99
+ - Relationship files: both entities in alphabetical order separated by double-dash: `user--task.md`, not `task--user.md`.
100
+ - Technical subdirectories: named after the actual software component: `backend/`, `frontend/`, `database/`. If a project has two backends, use `backend-api/` and `backend-worker/`. If there is no frontend, there is no `frontend/` directory.
101
+ - ADRs: numbered sequentially: `001-title.md`, `002-title.md`.
102
+
103
+ ## Frontmatter
104
+
105
+ Every file has frontmatter with the fields below. The `summary` field is written for scanning — an AI agent reads summaries to decide whether a file is relevant before reading the body.
106
+
107
+ ### Required Fields (all files)
108
+
109
+ | Field | Description |
110
+ |-------|-------------|
111
+ | `id` | Unique identifier. In defaults, prefixed with `example-` as a convention signal. |
112
+ | `title` | Human-readable document title |
113
+ | `type` | One of the valid types listed below |
114
+ | `summary` | 1-3 sentences written for scanning. Answers: would someone looking for X find what they need here? |
115
+ | `related` | List of related codex IDs. Use `[]` if none. Traversed by `lore codex map`. |
116
+ | `stability` | `stable` or `experimental` |
117
+
118
+ ### Optional Fields (by type)
119
+
120
+ | Field | Applies to | Description |
121
+ |-------|-----------|-------------|
122
+ | `persona` | workflows | User role if this is a user-facing workflow (e.g. `team lead`, `admin`) |
123
+ | `entities_involved` | workflows | List of entity IDs this workflow involves |
124
+
125
+ ### Valid Types
126
+
127
+ | Type | Used for |
128
+ |------|---------|
129
+ | `meta` | The CODEX.md index file itself |
130
+ | `entity` | A domain entity (thing with identity and behaviour) |
131
+ | `relationship` | The connection between two entities |
132
+ | `workflow` | A system process or user-facing workflow |
133
+ | `technical` | Technical implementation documentation |
134
+ | `decision` | Architecture Decision Record |
135
+ | `standards` | Coding conventions, design principles, framework rules |
136
+ | `glossary` | Vocabulary definitions |
137
+ | `constraints` | Hard limits and non-negotiable rules |
138
+ | `persona` | A user role and their goals |
139
+ | `integration` | An external system the project touches |
140
+ | `security` | Security and trust model |
141
+ | `operations` | Deployment, development setup, and operational runbooks |
142
+ | `context-map` | Scout output: a map of relevant codex documents for a feature |
143
+ | `transient-marker` | Marks a directory as in-flight/transient |
@@ -0,0 +1,51 @@
1
+ ---
2
+ id: example-entity-{entity-name}
3
+ title: "{Entity Name}"
4
+ related: []
5
+ stability: stable
6
+ summary: >
7
+ _One to three sentences. What this entity is and what it does in the system.
8
+ Mention its key attributes and lifecycle if it has one._
9
+ ---
10
+
11
+ # {Entity Name}
12
+
13
+ _One paragraph. Define what this entity is, what problem it solves, and how it fits into the system. State what is central about it._
14
+
15
+ ## Core Concepts
16
+
17
+ | Term | Definition |
18
+ |------|------------|
19
+ | **{Term 1}** | _Definition_ |
20
+ | **{Term 2}** | _Definition_ |
21
+
22
+ > Add a row per key concept an agent needs to understand before reading the rest of this document.
23
+
24
+ ## How It Works
25
+
26
+ _Describe the entity's lifecycle, state machine, or key behaviours. Use sub-sections for complex concepts._
27
+
28
+ ### {Lifecycle or Status}
29
+
30
+ _If this entity has states or transitions, describe them here. Use a diagram and a table._
31
+
32
+ ```
33
+ {state-a} ──→ {state-b} ──→ {state-c}
34
+ ```
35
+
36
+ | State | Description | Allowed transitions |
37
+ |-------|-------------|---------------------|
38
+ | `{state-a}` | _Description_ | → `{state-b}` |
39
+ | `{state-b}` | _Description_ | → `{state-c}` |
40
+ | `{state-c}` | _Terminal state_ | (none) |
41
+
42
+ ### {Other Key Concept}
43
+
44
+ _Describe another important aspect of how this entity behaves._
45
+
46
+ ## Edge Cases
47
+
48
+ _List invariants, immutable fields, default values, and rejection rules. These are the things that trip up implementers._
49
+
50
+ - **{Rule 1}:** _Description_
51
+ - **{Rule 2}:** _Description_
@@ -0,0 +1,47 @@
1
+ ---
2
+ id: example-entity-{entity-name-2}
3
+ title: "{Entity Name 2}"
4
+ related: []
5
+ stability: stable
6
+ summary: >
7
+ _One to three sentences. What this entity is and what it does in the system.
8
+ Mention its unique identifier, key attributes, and any deletion semantics._
9
+ ---
10
+
11
+ # {Entity Name 2}
12
+
13
+ _One paragraph. Define what this entity is. What uniquely identifies it? What does it represent in the domain?_
14
+
15
+ ## Core Concepts
16
+
17
+ | Term | Definition |
18
+ |------|------------|
19
+ | **{Identifier field}** | _The natural key. Note case sensitivity and immutability._ |
20
+ | **{Display field}** | _Optional or display-only. Can it be changed?_ |
21
+ | **{Timestamp}** | _Set once at creation; immutable._ |
22
+
23
+ ## How It Works
24
+
25
+ ### Identity
26
+
27
+ _How is this entity uniquely identified? Can that identifier change? What happens to references if the entity is deleted?_
28
+
29
+ > Example: Email is the canonical identifier. Case-insensitive. Cannot be changed after registration — a changed identifier is a new record.
30
+
31
+ ### Uniqueness
32
+
33
+ _What uniqueness constraints apply? What error does the system return on collision?_
34
+
35
+ > Example: No two records may share the same email. Attempting to create a duplicate returns exit code 2.
36
+
37
+ ### Deletion Constraint
38
+
39
+ _When can this entity not be deleted? What must be resolved first? Is deletion hard or soft?_
40
+
41
+ > Example: Cannot be deleted if there are open dependent records. Soft-delete only — the row is retained as a tombstone.
42
+
43
+ ## Edge Cases
44
+
45
+ - **{Optional field at creation}:** _What defaults apply when omitted._
46
+ - **{Immutable field}:** _Cannot be changed after creation and why._
47
+ - **{Tombstone behaviour}:** _What happens to references after soft-delete._
@@ -0,0 +1,58 @@
1
+ ---
2
+ id: example-relationship-{entity-a}--{entity-b}
3
+ title: "{Entity A} to {Entity B}"
4
+ related: []
5
+ stability: stable
6
+ summary: >
7
+ _One to three sentences. What are the two named roles in this relationship?
8
+ What is the cardinality? What is mutable vs immutable?_
9
+ ---
10
+
11
+ # {Entity A} to {Entity B}
12
+
13
+ _One paragraph. Describe the nature of the connection. How many roles exist between these two entities? What is the cardinality (one-to-many, many-to-many)?_
14
+
15
+ ## Named Roles
16
+
17
+ ### {Role 1} (immutable)
18
+
19
+ _Describe this role. How is it set? Can it be changed? What happens to it if the related entity is deleted?_
20
+
21
+ > Example: Creator — set at record creation from context; immutable; retained as a tombstone reference if the entity is later deleted.
22
+
23
+ ### {Role 2} (mutable)
24
+
25
+ _Describe this role. Is it optional? Can it be changed? What command or operation changes it?_
26
+
27
+ > Example: Assignee — optional; changed with an edit command; at most one at a time; removal sets the field to null.
28
+
29
+ ## Data on the Connection
30
+
31
+ _How is this relationship stored? Join table or columns on an entity? Which columns?_
32
+
33
+ | Column | Role | Mutable |
34
+ |--------|------|---------|
35
+ | `{column_1}` | {Role 1} | No |
36
+ | `{column_2}` | {Role 2} | Yes |
37
+
38
+ > Note: Replace with a join table description if the relationship uses a separate table.
39
+
40
+ ## Business Rules
41
+
42
+ - **{Rule 1}:** _Description_
43
+ - **{Rule 2}:** _Description_
44
+ - **{Guard rule}:** _When is this relationship blocked (e.g. deletion guard)?_
45
+
46
+ ## Concrete Examples
47
+
48
+ ### {Scenario Name}
49
+
50
+ _Describe a typical scenario with command examples and resulting state._
51
+
52
+ ```
53
+ $ {command}
54
+ {output}
55
+ ```
56
+
57
+ → `{field_1}` = {value}
58
+ → `{field_2}` = {value}
@@ -0,0 +1,47 @@
1
+ ---
2
+ id: example-workflow-{workflow-name}
3
+ title: "{Workflow Name}"
4
+ related: []
5
+ stability: stable
6
+ entities_involved:
7
+ - example-entity-{entity-name}
8
+ summary: >
9
+ _One to three sentences. What triggers this workflow? What does the system do?
10
+ What is the end state?_
11
+ ---
12
+
13
+ # {Workflow Name}
14
+
15
+ _One paragraph. Describe what triggers this workflow and what the system does from start to finish._
16
+
17
+ ## Preconditions
18
+
19
+ - _The record must exist and not be soft-deleted._
20
+ - _The status must be in a valid state for this operation._
21
+ - _The actor must be {role or context}._
22
+
23
+ > List all conditions that must be true before the workflow can execute.
24
+
25
+ ## Steps
26
+
27
+ 1. **{Step name}** — _Description. What is checked, fetched, or computed._
28
+
29
+ 2. **{Step name}** — _Description. What is written, updated, or emitted. Note any transaction boundaries._
30
+
31
+ 3. **{Step name}** — _Description. Any post-commit side effects (notifications, logs). Note failure tolerance._
32
+
33
+ > Steps should be at the level of "what the system does", not "what code runs". Use plain language.
34
+
35
+ ## Failure Modes
36
+
37
+ | Failure point | Behaviour | Exit code |
38
+ |---------------|-----------|-----------|
39
+ | {Record not found} | _Error message to stderr_ | 1 |
40
+ | {Invalid state transition} | _Error message to stderr_ | 1 |
41
+ | {Database write fails} | _Error message with detail; state unchanged_ | 1 |
42
+ | {Side-effect fails} | _Warning to stderr; primary operation is not rolled back_ | 0 |
43
+
44
+ ## Out of Scope
45
+
46
+ - _What this workflow explicitly does not do. Helps prevent scope creep in implementations._
47
+ - _What other commands or operations handle instead._
@@ -0,0 +1,68 @@
1
+ ---
2
+ id: example-workflow-{workflow-name-user-facing}
3
+ title: "{Workflow Name — User Facing}"
4
+ persona: "_role that performs this workflow (e.g. team lead, admin)_"
5
+ related: []
6
+ stability: stable
7
+ entities_involved:
8
+ - example-entity-{entity-name}
9
+ summary: >
10
+ _One to three sentences. Who performs this workflow, what is their goal,
11
+ and what is the key decision point or outcome?_
12
+ ---
13
+
14
+ # {Workflow Name — User Facing}
15
+
16
+ _User-facing workflows describe what a person does to accomplish a goal — not what the system does internally. Steps are commands or UI actions. The `persona` frontmatter field identifies the role._
17
+
18
+ ## Prerequisites
19
+
20
+ - _{Prerequisite 1 — e.g. tool is installed, dependency record exists}_
21
+ - _{Prerequisite 2}_
22
+
23
+ ## Steps
24
+
25
+ ### 1. {First action}
26
+
27
+ _Describe what the user does and why. Include the command or UI interaction._
28
+
29
+ ```
30
+ $ {command} {arguments}
31
+ {expected output}
32
+ ```
33
+
34
+ > **Decision point — {choice}?** _Explain the fork and when each path applies. Example: assign now vs assign later._
35
+
36
+ ### 2. {Second action}
37
+
38
+ _Continue the step-by-step narrative._
39
+
40
+ ```
41
+ $ {command}
42
+ {output}
43
+ ```
44
+
45
+ ### 3. Verify the result
46
+
47
+ _How does the user confirm the operation succeeded?_
48
+
49
+ ```
50
+ $ {verification command}
51
+ {expected output showing success}
52
+ ```
53
+
54
+ If the result is not as expected:
55
+ - _{Troubleshooting step 1}_
56
+ - _{Troubleshooting step 2}_
57
+
58
+ ---
59
+
60
+ ## Decision Points
61
+
62
+ **{Decision 1}?** _When to take each path. What are the trade-offs._
63
+
64
+ **{Decision 2}?** _When to take each path._
65
+
66
+ ## Out of Scope
67
+
68
+ - _{Feature or scenario this workflow does not cover. Link to the workflow that does._}
@@ -0,0 +1,59 @@
1
+ ---
2
+ id: example-constraints
3
+ title: Constraints
4
+ related: []
5
+ stability: stable
6
+ summary: >
7
+ Hard limits that must never be violated: runtime requirements, legal/compliance,
8
+ performance budgets, compatibility rules, and explicit "never do" rules.
9
+ Agents must check this before proposing changes that touch system boundaries.
10
+ ---
11
+
12
+ # Constraints
13
+
14
+ _These are non-negotiable. Unlike design principles (which are guidelines with trade-offs), constraints are walls. Any change that would violate a constraint must be rejected, regardless of other benefits._
15
+
16
+ ## Runtime
17
+
18
+ | Constraint | Value | Notes |
19
+ |-----------|-------|-------|
20
+ | Operating systems | _e.g. Linux, macOS, Windows_ | _Any known incompatibilities_ |
21
+ | Language version | _e.g. Python ≥ 3.11_ | _Minimum version that must run_ |
22
+ | Memory | _e.g. ≤ 50 MB RSS at rest_ | _If applicable_ |
23
+ | Network | _e.g. must work fully offline_ | _If applicable_ |
24
+ | Disk | _e.g. database must not exceed 1 GB_ | _If applicable_ |
25
+
26
+ ## Legal and Compliance
27
+
28
+ | Constraint | Details |
29
+ |-----------|---------|
30
+ | _e.g. GDPR_ | _What it requires in this project. Data residency, deletion rights, etc._ |
31
+ | _e.g. License compatibility_ | _Forbidden dependency licenses. e.g. GPL cannot be used in a proprietary product._ |
32
+ | _e.g. Audit logging_ | _What must be logged, retention period._ |
33
+
34
+ > Remove this section if no legal or compliance constraints apply.
35
+
36
+ ## Performance
37
+
38
+ | Operation | Budget | Notes |
39
+ |-----------|--------|-------|
40
+ | _e.g. `list` with 1000 records_ | _≤ 200ms_ | _Measured on reference hardware_ |
41
+ | _e.g. Cold start_ | _≤ 500ms_ | _ |
42
+
43
+ > Remove this section if no performance budgets are defined.
44
+
45
+ ## Compatibility
46
+
47
+ | Constraint | Details |
48
+ |-----------|---------|
49
+ | _e.g. Database format_ | _Must remain backward-compatible across versions. No breaking migrations._ |
50
+ | _e.g. Config file format_ | _Existing config files from v1.x must continue to work._ |
51
+ | _e.g. API stability_ | _Public API follows semver; no breaking changes in minor versions._ |
52
+
53
+ ## Never Do
54
+
55
+ _An explicit list of things that must never happen in this codebase. These are the rules that get broken when there is no central place to record them._
56
+
57
+ - **Never {action}:** _Why this is forbidden. What to do instead._
58
+ - **Never {action}:** _Reason._
59
+ - **Never hardcode credentials:** _Use environment variables or a secrets manager. Configuration is in `{config-location}`._
@@ -0,0 +1,64 @@
1
+ ---
2
+ id: example-decision-001
3
+ title: "ADR-001: {Decision Title}"
4
+ related: []
5
+ stability: stable
6
+ summary: >
7
+ _One to three sentences. What was decided and why is this ADR worth reading?
8
+ Mention the key trade-off that was resolved._
9
+ ---
10
+
11
+ # ADR-001: {Decision Title}
12
+
13
+ ## Context
14
+
15
+ _Describe the situation that forced this decision. What were the constraints? What was the team trying to achieve? What made this non-obvious?_
16
+
17
+ Key forces:
18
+ - **{Force 1}:** _Why this mattered._
19
+ - **{Force 2}:** _Why this mattered._
20
+ - **{Force 3}:** _Why this mattered._
21
+
22
+ ## Decision
23
+
24
+ _State the decision in one or two clear sentences. What was chosen? Where does it apply?_
25
+
26
+ > Example: Use SQLite as the sole storage backend. Enable WAL journal mode on every connection. Manage schema migrations with `PRAGMA user_version`.
27
+
28
+ ## Rationale
29
+
30
+ _Why was this the right choice given the forces above? This should be direct, not exhaustive. Two to four bullet points._
31
+
32
+ - _Reason 1_
33
+ - _Reason 2_
34
+
35
+ ## Alternatives Considered
36
+
37
+ | Option | Why rejected |
38
+ |--------|-------------|
39
+ | **{Alternative 1}** | _Specific reason. What constraint ruled it out?_ |
40
+ | **{Alternative 2}** | _Specific reason._ |
41
+ | **{Alternative 3}** | _Specific reason._ |
42
+
43
+ > The alternatives section is particularly valuable for AI agents — it tells them what not to suggest without reading the full rationale.
44
+
45
+ ## Consequences
46
+
47
+ **Easier:**
48
+ - _What becomes simpler because of this decision._
49
+
50
+ **Harder:**
51
+ - _What becomes more constrained or complex. Be honest._
52
+
53
+ ## Constraints Imposed
54
+
55
+ _List the specific rules or invariants that exist in the codebase as a direct consequence of this decision. These are the things implementers must not accidentally reverse._
56
+
57
+ 1. **{Constraint 1}:** _Description. Where to look for more detail._
58
+ 2. **{Constraint 2}:** _Description._
59
+
60
+ ## Status History
61
+
62
+ | Date | Status | Note |
63
+ |------|--------|------|
64
+ | {date} | accepted | Initial decision |