lore-agent-task-manager 0.1.0__py3-none-any.whl
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.
- lore/__init__.py +5 -0
- lore/__main__.py +5 -0
- lore/artifact.py +50 -0
- lore/cli.py +2786 -0
- lore/codex.py +316 -0
- lore/db.py +1320 -0
- lore/defaults/GETTING-STARTED.md +38 -0
- lore/defaults/LORE-AGENT.md +32 -0
- lore/defaults/artifacts/codex/CODEX.md +143 -0
- lore/defaults/artifacts/codex/conceptual/entities/task.md +51 -0
- lore/defaults/artifacts/codex/conceptual/entities/user.md +47 -0
- lore/defaults/artifacts/codex/conceptual/relationships/user--task.md +58 -0
- lore/defaults/artifacts/codex/conceptual/workflows/complete-task.md +47 -0
- lore/defaults/artifacts/codex/conceptual/workflows/create-and-assign-entity.md +68 -0
- lore/defaults/artifacts/codex/constraints/constraints.md +59 -0
- lore/defaults/artifacts/codex/decisions/001-sqlite-storage.md +64 -0
- lore/defaults/artifacts/codex/decisions/adr-no-default-content-tests.md +33 -0
- lore/defaults/artifacts/codex/glossary/glossary.md +40 -0
- lore/defaults/artifacts/codex/integrations/integrations.md +47 -0
- lore/defaults/artifacts/codex/operations/deployment/development.md +105 -0
- lore/defaults/artifacts/codex/operations/deployment/overview.md +57 -0
- lore/defaults/artifacts/codex/operations/deployment/production.md +88 -0
- lore/defaults/artifacts/codex/operations/deployment/staging.md +57 -0
- lore/defaults/artifacts/codex/operations/git.md +95 -0
- lore/defaults/artifacts/codex/operations/runbooks/runbook-template.md +75 -0
- lore/defaults/artifacts/codex/personas/persona.md +48 -0
- lore/defaults/artifacts/codex/security/security-model.md +62 -0
- lore/defaults/artifacts/codex/standards/code-conventions.md +61 -0
- lore/defaults/artifacts/codex/standards/design-principles.md +67 -0
- lore/defaults/artifacts/codex/standards/testing.md +71 -0
- lore/defaults/artifacts/codex/technical/backend/api/tasks.md +81 -0
- lore/defaults/artifacts/codex/technical/backend/overview.md +58 -0
- lore/defaults/artifacts/codex/technical/database/overview.md +45 -0
- lore/defaults/artifacts/codex/technical/database/schemas/tasks.md +49 -0
- lore/defaults/artifacts/codex/technical/database/schemas/users.md +38 -0
- lore/defaults/artifacts/codex/technical/frontend/overview.md +41 -0
- lore/defaults/artifacts/codex/technical/overview.md +59 -0
- lore/defaults/artifacts/feature-implementation/codex-change-proposal.md +91 -0
- lore/defaults/artifacts/feature-implementation/context-map.md +44 -0
- lore/defaults/artifacts/feature-implementation/crazy-prd.md +88 -0
- lore/defaults/artifacts/feature-implementation/crazy-tech-spec.md +79 -0
- lore/defaults/artifacts/feature-implementation/prd-draft.md +128 -0
- lore/defaults/artifacts/feature-implementation/prd.md +125 -0
- lore/defaults/artifacts/feature-implementation/tech-spec-draft.md +134 -0
- lore/defaults/artifacts/feature-implementation/tech-spec.md +138 -0
- lore/defaults/artifacts/feature-implementation/user-story-index.md +59 -0
- lore/defaults/artifacts/feature-implementation/user-story.md +126 -0
- lore/defaults/doctrines/feature-implementation/feature-implementation.yaml +387 -0
- lore/defaults/doctrines/feature-implementation/quick-feature-implementation.yaml +206 -0
- lore/defaults/doctrines/feature-implementation/tdd-implementation.yaml +51 -0
- lore/defaults/doctrines/update-changelog.yaml +24 -0
- lore/defaults/gitignore +20 -0
- lore/defaults/knights/changelog-scribe.md +105 -0
- lore/defaults/knights/feature-implementation/architect.md +65 -0
- lore/defaults/knights/feature-implementation/ba.md +73 -0
- lore/defaults/knights/feature-implementation/crazy-architect.md +41 -0
- lore/defaults/knights/feature-implementation/crazy-pm.md +39 -0
- lore/defaults/knights/feature-implementation/pm.md +61 -0
- lore/defaults/knights/feature-implementation/scout.md +67 -0
- lore/defaults/knights/feature-implementation/tdd-green.md +32 -0
- lore/defaults/knights/feature-implementation/tdd-red.md +31 -0
- lore/defaults/knights/feature-implementation/tdd-refactor.md +40 -0
- lore/defaults/knights/feature-implementation/tech-lead.md +73 -0
- lore/defaults/knights/feature-implementation/tech-writer.md +68 -0
- lore/defaults/schema.sql +60 -0
- lore/defaults/skills/explore-codex/SKILL.md +60 -0
- lore/defaults/skills/new-artifact/SKILL.md +73 -0
- lore/defaults/skills/new-doctrine/SKILL.md +79 -0
- lore/defaults/skills/new-knight/SKILL.md +72 -0
- lore/defaults/skills/new-watcher/SKILL.md +45 -0
- lore/defaults/skills/start-quest/SKILL.md +100 -0
- lore/defaults/watchers/change-log-updates.yaml +16 -0
- lore/doctrine.py +271 -0
- lore/frontmatter.py +96 -0
- lore/graph.py +73 -0
- lore/ids.py +16 -0
- lore/init.py +137 -0
- lore/knight.py +97 -0
- lore/migrations/__init__.py +1 -0
- lore/migrations/v1_to_v2.py +10 -0
- lore/migrations/v2_to_v3.py +24 -0
- lore/migrations/v3_to_v4.py +19 -0
- lore/migrations/v4_to_v5.py +41 -0
- lore/migrations/v5_to_v6.py +18 -0
- lore/models.py +323 -0
- lore/oracle.py +204 -0
- lore/paths.py +56 -0
- lore/priority.py +36 -0
- lore/py.typed +0 -0
- lore/root.py +27 -0
- lore/validators.py +149 -0
- lore/watcher.py +158 -0
- lore_agent_task_manager-0.1.0.dist-info/METADATA +194 -0
- lore_agent_task_manager-0.1.0.dist-info/RECORD +97 -0
- lore_agent_task_manager-0.1.0.dist-info/WHEEL +4 -0
- lore_agent_task_manager-0.1.0.dist-info/entry_points.txt +2 -0
- lore_agent_task_manager-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
id: feature-implementation
|
|
2
|
+
title: Feature Implementation
|
|
3
|
+
summary: E2E spec-driven pipeline from raw user input to implementation-ready user stories with test stubs
|
|
4
|
+
name: feature-implementation
|
|
5
|
+
description: >
|
|
6
|
+
E2E spec-driven feature pipeline from raw user input to implementation-ready
|
|
7
|
+
user stories with test stubs. Every agent reads the PRD before working.
|
|
8
|
+
Flows strictly downstream — no back-and-forth between phases.
|
|
9
|
+
|
|
10
|
+
Phase 0 (Scout): Two Scouts run in parallel — one maps the codex from the
|
|
11
|
+
business perspective, one from the technical perspective. Both produce context
|
|
12
|
+
maps in transient/. All downstream agents receive the relevant map(s) via their
|
|
13
|
+
board before starting work.
|
|
14
|
+
|
|
15
|
+
Phase 1 (PRD): Crazy PM and PM work in parallel from raw user input and the
|
|
16
|
+
context maps. User reviews both outputs and appends unstructured feedback to
|
|
17
|
+
the PRD Draft. PM produces the clean final PRD. User signs off with
|
|
18
|
+
pre-architecture notes.
|
|
19
|
+
|
|
20
|
+
Phase 2 (Tech Spec): Crazy Architect and Architect work in parallel from the
|
|
21
|
+
PRD and context maps. User reviews both outputs and appends feedback to the
|
|
22
|
+
Tech Spec Draft. Architect produces the clean final Tech Spec incorporating
|
|
23
|
+
Crazy findings.
|
|
24
|
+
|
|
25
|
+
Phase 3 (Parallel — three tracks):
|
|
26
|
+
BA track: BA drafts individual user stories (one file each) + index,
|
|
27
|
+
then finalizes them. Every acceptance criterion is a testable E2E or unit
|
|
28
|
+
scenario with exact inputs and outputs.
|
|
29
|
+
Tech-Writer track: Tech Writer proposes codex changes then applies them.
|
|
30
|
+
Tech Lead track (needs BA + Tech-Writer complete): Tech Lead adds draft
|
|
31
|
+
test stubs to each story, then finalizes — ensuring every scenario has
|
|
32
|
+
a corresponding stub ready for the TDD cycle.
|
|
33
|
+
|
|
34
|
+
Artifact authority:
|
|
35
|
+
transient/: all phases write here — working documents for this cycle
|
|
36
|
+
codex/: Tech-Writer owns updates (Phase 3 codex-apply step)
|
|
37
|
+
|
|
38
|
+
Each phase ends with a constable commit step that acts as a gate before the next phase begins.
|
|
39
|
+
|
|
40
|
+
steps:
|
|
41
|
+
# --- Phase 0: Scout ---
|
|
42
|
+
|
|
43
|
+
- id: business-scout
|
|
44
|
+
title: Map codex from the business perspective
|
|
45
|
+
type: knight
|
|
46
|
+
priority: 0
|
|
47
|
+
knight: feature-implementation/scout.md
|
|
48
|
+
notes: |
|
|
49
|
+
Your lens is BUSINESS. The orchestrator provides the feature request in this mission description.
|
|
50
|
+
Run `lore codex search <feature-keywords>` to find potentially relevant documents.
|
|
51
|
+
Then run `lore codex map <most-relevant-id> --depth 1` to traverse the related graph.
|
|
52
|
+
For serendipitous discovery, also run `lore codex chaos <most-relevant-id> --threshold <int>` (threshold 30–100) to explore via random walk.
|
|
53
|
+
Read the documents you find.
|
|
54
|
+
Retrieve the template: `lore artifact show fi-context-map`.
|
|
55
|
+
Produce a context map from the business lens — list every codex document relevant to this feature from a product, user, and business perspective.
|
|
56
|
+
Write to .lore/codex/transient/<feature-slug>-business-map.md with proper frontmatter (type: context-map, lens: business).
|
|
57
|
+
Post a board message to the crazy-prd and prd-draft missions with the business-map codex ID.
|
|
58
|
+
Mark done.
|
|
59
|
+
|
|
60
|
+
- id: technical-scout
|
|
61
|
+
title: Map codex from the technical perspective
|
|
62
|
+
type: knight
|
|
63
|
+
priority: 0
|
|
64
|
+
knight: feature-implementation/scout.md
|
|
65
|
+
notes: |
|
|
66
|
+
Your lens is TECHNICAL. The orchestrator provides the feature request in this mission description.
|
|
67
|
+
Run `lore codex search <feature-keywords>` to find potentially relevant documents.
|
|
68
|
+
Then run `lore codex map <most-relevant-id> --depth 1` to traverse the related graph.
|
|
69
|
+
For serendipitous discovery, also run `lore codex chaos <most-relevant-id> --threshold <int>` (threshold 30–100) to explore via random walk.
|
|
70
|
+
Read the documents you find.
|
|
71
|
+
Retrieve the template: `lore artifact show fi-context-map`.
|
|
72
|
+
Produce a context map from the technical lens — list every codex document relevant to this feature from an architecture, implementation, and infrastructure perspective.
|
|
73
|
+
Write to .lore/codex/transient/<feature-slug>-technical-map.md with proper frontmatter (type: context-map, lens: technical).
|
|
74
|
+
Post a board message to the crazy-prd, prd-draft, crazy-tech-spec, and tech-spec-draft missions with the technical-map codex ID.
|
|
75
|
+
Mark done.
|
|
76
|
+
|
|
77
|
+
- id: commit-phase-0
|
|
78
|
+
title: Commit Phase 0 — context maps
|
|
79
|
+
type: constable
|
|
80
|
+
priority: 0
|
|
81
|
+
needs:
|
|
82
|
+
- business-scout
|
|
83
|
+
- technical-scout
|
|
84
|
+
notes: >
|
|
85
|
+
Commit all Phase 0 outputs.
|
|
86
|
+
Message: "Phase 0: <feature-keywords> — context maps"
|
|
87
|
+
|
|
88
|
+
# --- Phase 1: PRD ---
|
|
89
|
+
|
|
90
|
+
- id: crazy-prd
|
|
91
|
+
title: Brainstorm divergent product ideas from user input
|
|
92
|
+
type: knight
|
|
93
|
+
priority: 1
|
|
94
|
+
needs:
|
|
95
|
+
- commit-phase-0
|
|
96
|
+
knight: feature-implementation/crazy-pm.md
|
|
97
|
+
notes: >
|
|
98
|
+
The orchestrator provides the raw user input in this mission description.
|
|
99
|
+
Read your board to find the business-map and technical-map IDs: `lore show <mission-id>`.
|
|
100
|
+
Read both maps: `lore codex show <business-map-id> <technical-map-id>`.
|
|
101
|
+
Retrieve the template: `lore artifact show fi-crazy-prd`.
|
|
102
|
+
Fill every section with maximum creative range.
|
|
103
|
+
Write to .lore/codex/transient/<feature-slug>-crazy-prd.md with proper frontmatter.
|
|
104
|
+
Post a board message to the prd-review mission:
|
|
105
|
+
`lore board add <prd-review-mission-id> "Crazy PRD ready: lore codex show <id>"`.
|
|
106
|
+
Mark done.
|
|
107
|
+
|
|
108
|
+
- id: prd-draft
|
|
109
|
+
title: Produce structured PRD Draft from user input
|
|
110
|
+
type: knight
|
|
111
|
+
priority: 1
|
|
112
|
+
needs:
|
|
113
|
+
- commit-phase-0
|
|
114
|
+
knight: feature-implementation/pm.md
|
|
115
|
+
notes: >
|
|
116
|
+
The orchestrator provides the raw user input in this mission description.
|
|
117
|
+
Read your board to find the business-map and technical-map IDs: `lore show <mission-id>`.
|
|
118
|
+
Read both maps: `lore codex show <business-map-id> <technical-map-id>`.
|
|
119
|
+
Retrieve the template: `lore artifact show fi-prd-draft`.
|
|
120
|
+
User workflows must specify exact user actions and exact system responses.
|
|
121
|
+
Write to .lore/codex/transient/<feature-slug>-prd-draft.md with proper frontmatter.
|
|
122
|
+
Post a board message to the prd-review mission:
|
|
123
|
+
`lore board add <prd-review-mission-id> "PRD Draft ready: lore codex show <id>"`.
|
|
124
|
+
Mark done.
|
|
125
|
+
|
|
126
|
+
- id: prd-review
|
|
127
|
+
title: Review Crazy PRD and PRD Draft — append feedback to PRD Draft
|
|
128
|
+
type: human
|
|
129
|
+
priority: 1
|
|
130
|
+
needs:
|
|
131
|
+
- crazy-prd
|
|
132
|
+
- prd-draft
|
|
133
|
+
notes: >
|
|
134
|
+
Read both documents from your board: `lore show <mission-id>`.
|
|
135
|
+
Read both: `lore codex show <crazy-prd-id>` and `lore codex show <prd-draft-id>`.
|
|
136
|
+
Append your feedback directly to the PRD Draft file — no specific format required.
|
|
137
|
+
If ideas from the Crazy PRD are worth keeping, include them in your feedback.
|
|
138
|
+
Mark done.
|
|
139
|
+
|
|
140
|
+
- id: prd-final
|
|
141
|
+
title: Produce clean final PRD incorporating user feedback
|
|
142
|
+
type: knight
|
|
143
|
+
priority: 1
|
|
144
|
+
needs:
|
|
145
|
+
- prd-review
|
|
146
|
+
knight: feature-implementation/pm.md
|
|
147
|
+
notes: >
|
|
148
|
+
Read the annotated PRD Draft (with user feedback) from your board: `lore show <mission-id>`.
|
|
149
|
+
Read it: `lore codex show <prd-draft-id>`.
|
|
150
|
+
Retrieve the template: `lore artifact show fi-prd`.
|
|
151
|
+
Produce a clean final PRD that resolves all feedback.
|
|
152
|
+
Leave the Pre-Architecture Notes section empty — user fills it next.
|
|
153
|
+
Write to .lore/codex/transient/<feature-slug>-prd.md with proper frontmatter.
|
|
154
|
+
Post a board message to the prd-sign-off mission with the PRD ID.
|
|
155
|
+
Mark done.
|
|
156
|
+
|
|
157
|
+
- id: prd-sign-off
|
|
158
|
+
title: Review final PRD — append pre-architecture notes
|
|
159
|
+
type: human
|
|
160
|
+
priority: 1
|
|
161
|
+
needs:
|
|
162
|
+
- prd-final
|
|
163
|
+
notes: >
|
|
164
|
+
Read the final PRD from your board: `lore show <mission-id>`.
|
|
165
|
+
Read it: `lore codex show <prd-id>`.
|
|
166
|
+
Append your pre-architecture notes directly to the Pre-Architecture Notes section —
|
|
167
|
+
technical preferences, constraints, priorities, or context for the architects.
|
|
168
|
+
This section is passed to both Architects in Phase 2.
|
|
169
|
+
Mark done.
|
|
170
|
+
|
|
171
|
+
- id: commit-phase-1
|
|
172
|
+
title: Commit Phase 1 — PRD
|
|
173
|
+
type: constable
|
|
174
|
+
priority: 1
|
|
175
|
+
needs:
|
|
176
|
+
- prd-sign-off
|
|
177
|
+
notes: >
|
|
178
|
+
Commit all Phase 1 outputs.
|
|
179
|
+
Message: "Phase 1: <feature-keywords> — PRD"
|
|
180
|
+
|
|
181
|
+
# --- Phase 2: Tech Spec ---
|
|
182
|
+
|
|
183
|
+
- id: crazy-tech-spec
|
|
184
|
+
title: Brainstorm unconventional technical approaches from PRD
|
|
185
|
+
type: knight
|
|
186
|
+
priority: 2
|
|
187
|
+
needs:
|
|
188
|
+
- commit-phase-1
|
|
189
|
+
knight: feature-implementation/crazy-architect.md
|
|
190
|
+
notes: >
|
|
191
|
+
Read your board to find the PRD ID and technical-map ID: `lore show <mission-id>`.
|
|
192
|
+
Read the PRD including the Pre-Architecture Notes: `lore codex show <prd-id>`.
|
|
193
|
+
Read the technical-map: `lore codex show <technical-map-id>`. Read the docs it references.
|
|
194
|
+
Retrieve the template: `lore artifact show fi-crazy-tech-spec`.
|
|
195
|
+
Fill every section — challenge every obvious assumption.
|
|
196
|
+
Write to .lore/codex/transient/<feature-slug>-crazy-tech-spec.md with proper frontmatter.
|
|
197
|
+
Post a board message to the tech-spec-review mission:
|
|
198
|
+
`lore board add <tech-spec-review-mission-id> "Crazy Tech Spec ready: lore codex show <id>"`.
|
|
199
|
+
Mark done.
|
|
200
|
+
|
|
201
|
+
- id: tech-spec-draft
|
|
202
|
+
title: Produce structured Tech Spec Draft from PRD
|
|
203
|
+
type: knight
|
|
204
|
+
priority: 2
|
|
205
|
+
needs:
|
|
206
|
+
- commit-phase-1
|
|
207
|
+
knight: feature-implementation/architect.md
|
|
208
|
+
notes: >
|
|
209
|
+
Read your board to find the PRD ID and technical-map ID: `lore show <mission-id>`.
|
|
210
|
+
Read the PRD including Pre-Architecture Notes: `lore codex show <prd-id>`.
|
|
211
|
+
Read the technical-map: `lore codex show <technical-map-id>`. Read every doc it references.
|
|
212
|
+
Retrieve the template: `lore artifact show fi-tech-spec-draft`.
|
|
213
|
+
Define project structure to file-name level. Fill the Test Strategy section completely —
|
|
214
|
+
every PRD workflow maps to an E2E scenario.
|
|
215
|
+
Write to .lore/codex/transient/<feature-slug>-tech-spec-draft.md with proper frontmatter.
|
|
216
|
+
Post a board message to the tech-spec-review mission:
|
|
217
|
+
`lore board add <tech-spec-review-mission-id> "Tech Spec Draft ready: lore codex show <id>"`.
|
|
218
|
+
Mark done.
|
|
219
|
+
|
|
220
|
+
- id: tech-spec-review
|
|
221
|
+
title: Review Crazy Tech Spec and Tech Spec Draft — append feedback to Tech Spec Draft
|
|
222
|
+
type: human
|
|
223
|
+
priority: 2
|
|
224
|
+
needs:
|
|
225
|
+
- crazy-tech-spec
|
|
226
|
+
- tech-spec-draft
|
|
227
|
+
notes: >
|
|
228
|
+
Read both documents from your board: `lore show <mission-id>`.
|
|
229
|
+
Read both: `lore codex show <crazy-tech-spec-id>` and `lore codex show <tech-spec-draft-id>`.
|
|
230
|
+
Append your feedback directly to the Tech Spec Draft file — no specific format required.
|
|
231
|
+
If ideas from the Crazy Tech Spec are worth keeping, include them in your feedback.
|
|
232
|
+
Mark done.
|
|
233
|
+
|
|
234
|
+
- id: tech-spec-final
|
|
235
|
+
title: Produce clean final Tech Spec incorporating user feedback and Crazy findings
|
|
236
|
+
type: knight
|
|
237
|
+
priority: 2
|
|
238
|
+
needs:
|
|
239
|
+
- tech-spec-review
|
|
240
|
+
knight: feature-implementation/architect.md
|
|
241
|
+
notes: >
|
|
242
|
+
Read your board to find the Tech Spec Draft ID and Crazy Tech Spec ID: `lore show <mission-id>`.
|
|
243
|
+
Read both documents.
|
|
244
|
+
Retrieve the template: `lore artifact show fi-tech-spec`.
|
|
245
|
+
Incorporate all user feedback. Evaluate every Crazy Tech Spec idea — adopt, reject, or defer.
|
|
246
|
+
The Test Strategy must be complete: every PRD workflow has an E2E scenario.
|
|
247
|
+
Write to .lore/codex/transient/<feature-slug>-tech-spec.md with proper frontmatter.
|
|
248
|
+
Post a board message to the ba-stories-draft mission AND the codex-proposal mission
|
|
249
|
+
with the Tech Spec ID and PRD ID.
|
|
250
|
+
Mark done.
|
|
251
|
+
|
|
252
|
+
- id: commit-phase-2
|
|
253
|
+
title: Commit Phase 2 — tech spec
|
|
254
|
+
type: constable
|
|
255
|
+
priority: 2
|
|
256
|
+
needs:
|
|
257
|
+
- tech-spec-final
|
|
258
|
+
notes: >
|
|
259
|
+
Commit all Phase 2 outputs.
|
|
260
|
+
Message: "Phase 2: <feature-keywords> — tech spec"
|
|
261
|
+
|
|
262
|
+
# --- Phase 3: Parallel ---
|
|
263
|
+
|
|
264
|
+
- id: ba-stories-draft
|
|
265
|
+
title: Write User Stories Draft — individual files plus index
|
|
266
|
+
type: knight
|
|
267
|
+
priority: 3
|
|
268
|
+
needs:
|
|
269
|
+
- commit-phase-2
|
|
270
|
+
knight: feature-implementation/ba.md
|
|
271
|
+
notes: >
|
|
272
|
+
Read your board to find the PRD ID, Tech Spec ID, and business-map ID: `lore show <mission-id>`.
|
|
273
|
+
Read the PRD first: `lore codex show <prd-id>`. This is your primary source.
|
|
274
|
+
Read the business-map: `lore codex show <business-map-id>`. Read the docs it references.
|
|
275
|
+
Read the Tech Spec: `lore codex show <tech-spec-id>`.
|
|
276
|
+
Retrieve templates: `lore artifact show fi-user-story` and `lore artifact show fi-user-story-index`.
|
|
277
|
+
Write one file per story: .lore/codex/transient/<feature-slug>-us-{number}.md
|
|
278
|
+
Write the index: .lore/codex/transient/<feature-slug>-us-index.md
|
|
279
|
+
E2E scenarios must specify exact user actions and exact expected outputs.
|
|
280
|
+
Post each story ID to the ba-stories-final board as you complete them.
|
|
281
|
+
Post the index ID to the ba-stories-final board.
|
|
282
|
+
Mark done.
|
|
283
|
+
|
|
284
|
+
- id: ba-stories-final
|
|
285
|
+
title: Finalize User Stories — verify testability and coverage
|
|
286
|
+
type: knight
|
|
287
|
+
priority: 3
|
|
288
|
+
needs:
|
|
289
|
+
- ba-stories-draft
|
|
290
|
+
knight: feature-implementation/ba.md
|
|
291
|
+
notes: >
|
|
292
|
+
Read your board to find all story IDs and the index ID: `lore show <mission-id>`.
|
|
293
|
+
Read every story: `lore codex show <id1> <id2> ...`
|
|
294
|
+
For each story: verify E2E scenarios are specific enough to write tests from,
|
|
295
|
+
update Status to final, fix any vague criteria.
|
|
296
|
+
Update the index Status to final. Verify the PRD Coverage Map is complete.
|
|
297
|
+
Post a board message to the tech-notes-draft mission listing all final story IDs and the index ID.
|
|
298
|
+
Mark done.
|
|
299
|
+
|
|
300
|
+
- id: codex-proposal
|
|
301
|
+
title: Draft Codex Change Proposal from Tech Spec and PRD
|
|
302
|
+
type: knight
|
|
303
|
+
priority: 3
|
|
304
|
+
needs:
|
|
305
|
+
- commit-phase-2
|
|
306
|
+
knight: feature-implementation/tech-writer.md
|
|
307
|
+
notes: >
|
|
308
|
+
Read your board to find the PRD ID, Tech Spec ID, business-map ID, and technical-map ID:
|
|
309
|
+
`lore show <mission-id>`.
|
|
310
|
+
Read the PRD first: `lore codex show <prd-id>`.
|
|
311
|
+
Read both context maps and the docs they reference.
|
|
312
|
+
Read the Tech Spec: `lore codex show <tech-spec-id>`.
|
|
313
|
+
Retrieve the template: `lore artifact show fi-codex-change-proposal`.
|
|
314
|
+
List every document to create, update, or retire — be exhaustive.
|
|
315
|
+
Write to .lore/codex/transient/<feature-slug>-codex-proposal.md with proper frontmatter.
|
|
316
|
+
Post a board message to the codex-apply mission with the proposal ID.
|
|
317
|
+
Mark done.
|
|
318
|
+
|
|
319
|
+
- id: codex-apply
|
|
320
|
+
title: Apply approved codex changes
|
|
321
|
+
type: knight
|
|
322
|
+
priority: 3
|
|
323
|
+
needs:
|
|
324
|
+
- codex-proposal
|
|
325
|
+
knight: feature-implementation/tech-writer.md
|
|
326
|
+
notes: >
|
|
327
|
+
Read your board to find the Codex Change Proposal ID: `lore show <mission-id>`.
|
|
328
|
+
Read it: `lore codex show <proposal-id>`.
|
|
329
|
+
Apply every change listed in the proposal: create new documents, update existing ones, retire obsolete ones.
|
|
330
|
+
Use `lore artifact list` to find templates for new documents.
|
|
331
|
+
Post a board message to the tech-notes-draft mission listing all codex document IDs
|
|
332
|
+
created, updated, or retired — by codex ID only, never by file path.
|
|
333
|
+
Mark done.
|
|
334
|
+
|
|
335
|
+
- id: tech-notes-draft
|
|
336
|
+
title: Add draft tech notes and test stubs to each user story
|
|
337
|
+
type: knight
|
|
338
|
+
priority: 3
|
|
339
|
+
needs:
|
|
340
|
+
- ba-stories-final
|
|
341
|
+
- codex-apply
|
|
342
|
+
knight: feature-implementation/tech-lead.md
|
|
343
|
+
notes: >
|
|
344
|
+
Read your board to find all story IDs, PRD ID, Tech Spec ID, technical-map ID,
|
|
345
|
+
and updated codex IDs: `lore show <mission-id>`.
|
|
346
|
+
Read the PRD first: `lore codex show <prd-id>`.
|
|
347
|
+
Read the technical-map: `lore codex show <technical-map-id>`. Read the docs it references.
|
|
348
|
+
Read the Tech Spec and updated codex docs.
|
|
349
|
+
Read every user story.
|
|
350
|
+
For each story, fill the Tech Notes section:
|
|
351
|
+
- Implementation Approach with verified file paths from src/
|
|
352
|
+
- Test File Locations following Tech Spec conventions
|
|
353
|
+
- Test Stubs: one stub per acceptance criterion scenario — no exceptions.
|
|
354
|
+
Every stub must cite its source workflow codex ID in a comment.
|
|
355
|
+
- Complexity Estimate
|
|
356
|
+
Post a board message to tech-notes-final listing all story IDs.
|
|
357
|
+
Mark done.
|
|
358
|
+
|
|
359
|
+
- id: tech-notes-final
|
|
360
|
+
title: Finalize tech notes — verify all stubs, paths, and references
|
|
361
|
+
type: knight
|
|
362
|
+
priority: 3
|
|
363
|
+
needs:
|
|
364
|
+
- tech-notes-draft
|
|
365
|
+
knight: feature-implementation/tech-lead.md
|
|
366
|
+
notes: >
|
|
367
|
+
Read your board to find all story IDs: `lore show <mission-id>`.
|
|
368
|
+
Read every story with draft tech notes: `lore codex show <id1> <id2> ...`
|
|
369
|
+
For each story: verify every file path exists in src/ or matches the Tech Spec structure,
|
|
370
|
+
verify every codex reference is a valid codex ID, verify every acceptance criterion
|
|
371
|
+
scenario has a corresponding test stub, verify every stub cites a workflow
|
|
372
|
+
codex ID (run `lore codex search workflow` to confirm the cited ID exists).
|
|
373
|
+
A stub without a citation is incomplete — fix it.
|
|
374
|
+
Fix all gaps. Update stories in-place.
|
|
375
|
+
Post a board message to the quest board confirming pipeline complete,
|
|
376
|
+
listing all final story IDs and the index ID.
|
|
377
|
+
Mark done.
|
|
378
|
+
|
|
379
|
+
- id: commit-phase-3
|
|
380
|
+
title: Commit Phase 3 — stories and codex
|
|
381
|
+
type: constable
|
|
382
|
+
priority: 3
|
|
383
|
+
needs:
|
|
384
|
+
- tech-notes-final
|
|
385
|
+
notes: >
|
|
386
|
+
Commit all Phase 3 outputs.
|
|
387
|
+
Message: "Phase 3: <feature-keywords> — stories + codex"
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
id: quick-feature-implementation
|
|
2
|
+
title: Quick Feature Implementation
|
|
3
|
+
summary: Streamlined spec-driven pipeline from raw user input to implementation-ready user stories — single scout, no crazy phases, one commit at the end
|
|
4
|
+
name: quick-feature-implementation
|
|
5
|
+
description: >
|
|
6
|
+
Streamlined feature pipeline from raw user input to implementation-ready
|
|
7
|
+
user stories. One scout handles both lenses. No crazy/draft divergence phases.
|
|
8
|
+
Single commit at the end.
|
|
9
|
+
|
|
10
|
+
Phase 0 (Scout): One Scout maps the codex from both the business and technical
|
|
11
|
+
perspectives in a single mission. Produces both context maps in transient/.
|
|
12
|
+
All downstream agents receive the relevant map(s) via their board.
|
|
13
|
+
|
|
14
|
+
Phase 1 (PRD): PM produces the final PRD directly from user input and context
|
|
15
|
+
maps. User reviews and appends notes. Human Gate before Phase 2.
|
|
16
|
+
|
|
17
|
+
Phase 2 (Tech Spec): Architect produces the final Tech Spec directly from the
|
|
18
|
+
PRD and context maps. User reviews and appends notes. Human Gate before Phase 3.
|
|
19
|
+
|
|
20
|
+
Phase 3 (Parallel — three tracks):
|
|
21
|
+
BA track: BA drafts and finalizes user stories in one pass.
|
|
22
|
+
Tech-Writer track: Tech Writer applies codex changes directly — no proposal step.
|
|
23
|
+
Tech Lead track (needs BA + Tech-Writer complete): Tech Lead adds tech notes
|
|
24
|
+
to each story in one pass.
|
|
25
|
+
|
|
26
|
+
Single commit at the end covering all outputs.
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
# --- Phase 0: Scout ---
|
|
30
|
+
|
|
31
|
+
- id: scout
|
|
32
|
+
title: Map codex from both business and technical perspectives
|
|
33
|
+
type: knight
|
|
34
|
+
priority: 0
|
|
35
|
+
knight: feature-implementation/scout.md
|
|
36
|
+
notes: >
|
|
37
|
+
The orchestrator provides the feature request in this mission description.
|
|
38
|
+
Run two passes — one from the BUSINESS lens, one from the TECHNICAL lens.
|
|
39
|
+
|
|
40
|
+
Business pass:
|
|
41
|
+
Run `lore codex search <feature-keywords>` to find relevant documents from
|
|
42
|
+
a product, user, and business perspective. Run `lore codex map <most-relevant-id> --depth 1`.
|
|
43
|
+
Run `lore codex chaos <feature-keywords>` to surface loosely related documents
|
|
44
|
+
that structured search may miss — scan the results for any relevant business context.
|
|
45
|
+
Retrieve the template: `lore artifact show fi-context-map`.
|
|
46
|
+
Write to .lore/codex/transient/<feature-slug>-business-map.md with proper
|
|
47
|
+
frontmatter (type: context-map, lens: business).
|
|
48
|
+
|
|
49
|
+
Technical pass:
|
|
50
|
+
Run `lore codex search <feature-keywords>` focusing on architecture,
|
|
51
|
+
implementation, and infrastructure. Run `lore codex map <most-relevant-id> --depth 1`.
|
|
52
|
+
Run `lore codex chaos <feature-keywords>` to surface loosely related documents
|
|
53
|
+
that structured search may miss — scan the results for any relevant technical context.
|
|
54
|
+
Retrieve the template: `lore artifact show fi-context-map`.
|
|
55
|
+
Write to .lore/codex/transient/<feature-slug>-technical-map.md with proper
|
|
56
|
+
frontmatter (type: context-map, lens: technical).
|
|
57
|
+
|
|
58
|
+
Post board messages to prd, tech-spec, ba-stories, codex-apply, and tech-notes
|
|
59
|
+
with both map codex IDs.
|
|
60
|
+
Mark done.
|
|
61
|
+
|
|
62
|
+
# --- Phase 1: PRD ---
|
|
63
|
+
|
|
64
|
+
- id: prd
|
|
65
|
+
title: Produce final PRD from user input and context maps
|
|
66
|
+
type: knight
|
|
67
|
+
priority: 1
|
|
68
|
+
needs:
|
|
69
|
+
- scout
|
|
70
|
+
knight: feature-implementation/pm.md
|
|
71
|
+
notes: >
|
|
72
|
+
The orchestrator provides the raw user input in this mission description.
|
|
73
|
+
Read your board to find the business-map and technical-map IDs: `lore show <mission-id>`.
|
|
74
|
+
Read both maps: `lore codex show <business-map-id> <technical-map-id>`.
|
|
75
|
+
Retrieve the template: `lore artifact show fi-prd`.
|
|
76
|
+
User workflows must specify exact user actions and exact system responses.
|
|
77
|
+
Leave the Pre-Architecture Notes section empty — user fills it next.
|
|
78
|
+
Write to .lore/codex/transient/<feature-slug>-prd.md with proper frontmatter.
|
|
79
|
+
Post a board message to prd-gate with the PRD ID.
|
|
80
|
+
Mark done.
|
|
81
|
+
|
|
82
|
+
- id: prd-gate
|
|
83
|
+
title: Review PRD — append pre-architecture notes
|
|
84
|
+
type: human
|
|
85
|
+
priority: 1
|
|
86
|
+
needs:
|
|
87
|
+
- prd
|
|
88
|
+
notes: >
|
|
89
|
+
Read the PRD from your board: `lore show <mission-id>`.
|
|
90
|
+
Read it: `lore codex show <prd-id>`.
|
|
91
|
+
Append pre-architecture notes directly to the Pre-Architecture Notes section —
|
|
92
|
+
technical preferences, constraints, priorities, or context for the architect.
|
|
93
|
+
Mark done.
|
|
94
|
+
|
|
95
|
+
# --- Phase 2: Tech Spec ---
|
|
96
|
+
|
|
97
|
+
- id: tech-spec
|
|
98
|
+
title: Produce final Tech Spec from PRD and context maps
|
|
99
|
+
type: knight
|
|
100
|
+
priority: 2
|
|
101
|
+
needs:
|
|
102
|
+
- prd-gate
|
|
103
|
+
knight: feature-implementation/architect.md
|
|
104
|
+
notes: >
|
|
105
|
+
Read your board to find the PRD ID and technical-map ID: `lore show <mission-id>`.
|
|
106
|
+
Read the PRD including Pre-Architecture Notes: `lore codex show <prd-id>`.
|
|
107
|
+
Read the technical-map: `lore codex show <technical-map-id>`. Read every doc it references.
|
|
108
|
+
Retrieve the template: `lore artifact show fi-tech-spec`.
|
|
109
|
+
Define project structure to file-name level. The Test Strategy must be complete —
|
|
110
|
+
every PRD workflow maps to an E2E scenario.
|
|
111
|
+
Write to .lore/codex/transient/<feature-slug>-tech-spec.md with proper frontmatter.
|
|
112
|
+
Post a board message to tech-spec-gate with the Tech Spec ID and PRD ID.
|
|
113
|
+
Mark done.
|
|
114
|
+
|
|
115
|
+
- id: tech-spec-gate
|
|
116
|
+
title: Review Tech Spec — append feedback
|
|
117
|
+
type: human
|
|
118
|
+
priority: 2
|
|
119
|
+
needs:
|
|
120
|
+
- tech-spec
|
|
121
|
+
notes: >
|
|
122
|
+
Read the Tech Spec from your board: `lore show <mission-id>`.
|
|
123
|
+
Read it: `lore codex show <tech-spec-id>`.
|
|
124
|
+
Append your feedback directly to the Tech Spec file — no specific format required.
|
|
125
|
+
Mark done.
|
|
126
|
+
|
|
127
|
+
# --- Phase 3: Parallel ---
|
|
128
|
+
|
|
129
|
+
- id: ba-stories
|
|
130
|
+
title: Write and finalize User Stories
|
|
131
|
+
type: knight
|
|
132
|
+
priority: 3
|
|
133
|
+
needs:
|
|
134
|
+
- tech-spec-gate
|
|
135
|
+
knight: feature-implementation/ba.md
|
|
136
|
+
notes: >
|
|
137
|
+
Read your board to find the PRD ID, Tech Spec ID, and business-map ID: `lore show <mission-id>`.
|
|
138
|
+
Read the PRD first: `lore codex show <prd-id>`. This is your primary source.
|
|
139
|
+
Read the business-map: `lore codex show <business-map-id>`. Read the docs it references.
|
|
140
|
+
Read the Tech Spec: `lore codex show <tech-spec-id>`.
|
|
141
|
+
Retrieve templates: `lore artifact show fi-user-story` and `lore artifact show fi-user-story-index`.
|
|
142
|
+
Write one file per story: .lore/codex/transient/<feature-slug>-us-{number}.md
|
|
143
|
+
Write the index: .lore/codex/transient/<feature-slug>-us-index.md
|
|
144
|
+
E2E scenarios must specify exact user actions and exact expected outputs.
|
|
145
|
+
Verify each story: every acceptance criterion must be testable. Update Status to final.
|
|
146
|
+
Post all story IDs and the index ID to the tech-notes board.
|
|
147
|
+
Mark done.
|
|
148
|
+
|
|
149
|
+
- id: codex-apply
|
|
150
|
+
title: Apply codex changes directly from Tech Spec and PRD
|
|
151
|
+
type: knight
|
|
152
|
+
priority: 3
|
|
153
|
+
needs:
|
|
154
|
+
- tech-spec-gate
|
|
155
|
+
knight: feature-implementation/tech-writer.md
|
|
156
|
+
notes: >
|
|
157
|
+
Read your board to find the PRD ID, Tech Spec ID, business-map ID, and technical-map ID:
|
|
158
|
+
`lore show <mission-id>`.
|
|
159
|
+
Read the PRD: `lore codex show <prd-id>`.
|
|
160
|
+
Read both context maps and the docs they reference.
|
|
161
|
+
Read the Tech Spec: `lore codex show <tech-spec-id>`.
|
|
162
|
+
Identify every codex document to create, update, or retire based on the feature.
|
|
163
|
+
Apply changes directly — no proposal step. Create new documents, update existing ones,
|
|
164
|
+
retire obsolete ones using `lore artifact list` for templates.
|
|
165
|
+
Post a board message to tech-notes listing all codex document IDs
|
|
166
|
+
created, updated, or retired — by codex ID only, never by file path.
|
|
167
|
+
Mark done.
|
|
168
|
+
|
|
169
|
+
- id: tech-notes
|
|
170
|
+
title: Add tech notes to each user story
|
|
171
|
+
type: knight
|
|
172
|
+
priority: 3
|
|
173
|
+
needs:
|
|
174
|
+
- ba-stories
|
|
175
|
+
- codex-apply
|
|
176
|
+
knight: feature-implementation/tech-lead.md
|
|
177
|
+
notes: >
|
|
178
|
+
Read your board to find all story IDs, PRD ID, Tech Spec ID, technical-map ID,
|
|
179
|
+
and updated codex IDs: `lore show <mission-id>`.
|
|
180
|
+
Read the PRD first: `lore codex show <prd-id>`.
|
|
181
|
+
Read the technical-map: `lore codex show <technical-map-id>`. Read the docs it references.
|
|
182
|
+
Read the Tech Spec and updated codex docs.
|
|
183
|
+
Read every user story.
|
|
184
|
+
For each story, fill the Tech Notes section:
|
|
185
|
+
- Implementation Approach with verified file paths from src/
|
|
186
|
+
- Test File Locations following Tech Spec conventions
|
|
187
|
+
- Test Stubs: one stub per acceptance criterion scenario — no exceptions.
|
|
188
|
+
Every stub must cite its source workflow codex ID in a comment.
|
|
189
|
+
- Complexity Estimate
|
|
190
|
+
Verify every file path exists in src/ or matches the Tech Spec structure.
|
|
191
|
+
Verify every codex reference is a valid codex ID.
|
|
192
|
+
Post a board message to the quest board confirming pipeline complete,
|
|
193
|
+
listing all final story IDs and the index ID.
|
|
194
|
+
Mark done.
|
|
195
|
+
|
|
196
|
+
# --- Final Commit ---
|
|
197
|
+
|
|
198
|
+
- id: commit
|
|
199
|
+
title: Commit all pipeline outputs
|
|
200
|
+
type: constable
|
|
201
|
+
priority: 4
|
|
202
|
+
needs:
|
|
203
|
+
- tech-notes
|
|
204
|
+
notes: >
|
|
205
|
+
Commit all pipeline outputs in a single commit.
|
|
206
|
+
Message: "feat(<feature-slug>): PRD, tech spec, user stories, codex updates"
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
name: tdd-implementation
|
|
2
|
+
description: >
|
|
3
|
+
Strict Red-Green-Refactor TDD implementation of dev-ready user stories.
|
|
4
|
+
Each step has a hard boundary: Red writes only tests, Green writes only production code,
|
|
5
|
+
Refactor improves both without adding features.
|
|
6
|
+
steps:
|
|
7
|
+
- id: red
|
|
8
|
+
title: Write failing tests for every acceptance criterion
|
|
9
|
+
priority: 0
|
|
10
|
+
type: knight
|
|
11
|
+
knight: tdd-red.md
|
|
12
|
+
notes: >
|
|
13
|
+
Read the user story and its Tech Notes.
|
|
14
|
+
Write failing tests in tests/ covering every acceptance criterion.
|
|
15
|
+
Run tests after writing — every test MUST fail.
|
|
16
|
+
No production code. Import failures count as red.
|
|
17
|
+
|
|
18
|
+
- id: green
|
|
19
|
+
title: Write minimum production code to pass all tests
|
|
20
|
+
priority: 0
|
|
21
|
+
type: knight
|
|
22
|
+
needs: [red]
|
|
23
|
+
knight: tdd-green.md
|
|
24
|
+
notes: >
|
|
25
|
+
Read failing tests first — they define what the code must do.
|
|
26
|
+
Read Tech Notes for implementation guidance.
|
|
27
|
+
Write the simplest code in src/lore/ that makes each test pass.
|
|
28
|
+
Run full test suite after each change. No modifying test files.
|
|
29
|
+
|
|
30
|
+
- id: refactor
|
|
31
|
+
title: Refactor with quality checks
|
|
32
|
+
priority: 0
|
|
33
|
+
type: knight
|
|
34
|
+
needs: [green]
|
|
35
|
+
knight: tdd-refactor.md
|
|
36
|
+
notes: >
|
|
37
|
+
Review production and test code for quality.
|
|
38
|
+
Run after every change: uv run pytest, ruff check, type checking.
|
|
39
|
+
Tests must stay green. No new features or tests beyond the story.
|
|
40
|
+
|
|
41
|
+
- id: commit
|
|
42
|
+
title: Commit changes
|
|
43
|
+
priority: 0
|
|
44
|
+
type: constable
|
|
45
|
+
needs: [refactor]
|
|
46
|
+
notes: >
|
|
47
|
+
Commit the change to the codebase after refactor.
|
|
48
|
+
Should only commit the affected files.
|
|
49
|
+
Commit as "US-xxx: {user story title}"
|
|
50
|
+
|
|
51
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
id: update-changelog
|
|
2
|
+
title: Update Changelog
|
|
3
|
+
summary: Single-step doctrine to update the project changelog after a merge to develop
|
|
4
|
+
name: update-changelog
|
|
5
|
+
description: >
|
|
6
|
+
Updates the project CHANGELOG.md after a merge to develop.
|
|
7
|
+
Reads the merged commit messages and appends a new entry.
|
|
8
|
+
|
|
9
|
+
steps:
|
|
10
|
+
- id: update-changelog-entry
|
|
11
|
+
title: Update changelog from commits since last entry
|
|
12
|
+
type: knight
|
|
13
|
+
knight: changelog-scribe
|
|
14
|
+
priority: 0
|
|
15
|
+
notes: >
|
|
16
|
+
Run as the changelog-scribe knight.
|
|
17
|
+
Read CHANGELOG.md to find the last recorded version and its date.
|
|
18
|
+
Query git for all commits since that date (no fixed cap).
|
|
19
|
+
Read pyproject.toml for the current version.
|
|
20
|
+
Interpret and group commits into Keep-a-Changelog subsections.
|
|
21
|
+
Create a new versioned block if the pyproject.toml version is newer than
|
|
22
|
+
the last changelog entry; otherwise add to the existing block.
|
|
23
|
+
Never copy raw commit subjects — rewrite as plain English.
|
|
24
|
+
Mark done when CHANGELOG.md is updated.
|
lore/defaults/gitignore
ADDED
|
@@ -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/
|