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,138 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: fi-tech-spec
|
|
3
|
+
title: Tech Spec
|
|
4
|
+
group: feature-implementation
|
|
5
|
+
summary: >
|
|
6
|
+
Template for the final Tech Spec produced by the Architect after incorporating
|
|
7
|
+
user feedback from the Tech Spec Draft review and insights from the Crazy Tech
|
|
8
|
+
Spec. This is the authoritative technical document — clean, complete, all
|
|
9
|
+
decisions made. Flows to BA, Tech Writer, and Tech Lead.
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# {Feature Name} — Tech Spec
|
|
13
|
+
|
|
14
|
+
**Author:** Architect
|
|
15
|
+
**Date:** {date}
|
|
16
|
+
**Supersedes:** _{Tech Spec Draft codex ID}_
|
|
17
|
+
**Input:** _{PRD codex ID}_
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Core Architectural Decisions
|
|
22
|
+
|
|
23
|
+
| Priority | Decision | Choice | Rationale |
|
|
24
|
+
|----------|----------|--------|-----------|
|
|
25
|
+
| Critical | _{decision}_ | _{choice}_ | _{why}_ |
|
|
26
|
+
| Important | _{decision}_ | _{choice}_ | _{why}_ |
|
|
27
|
+
| Deferred | _{decision}_ | _{post-MVP}_ | _{why deferred}_ |
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Data Architecture
|
|
32
|
+
|
|
33
|
+
| Decision | Choice | Rationale |
|
|
34
|
+
|----------|--------|-----------|
|
|
35
|
+
| Database | _{choice}_ | _{why}_ |
|
|
36
|
+
| ORM / query layer | _{choice}_ | _{why}_ |
|
|
37
|
+
| Migration approach | _{choice}_ | _{why}_ |
|
|
38
|
+
| Data validation | _{choice}_ | _{why}_ |
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## API & Communication
|
|
43
|
+
|
|
44
|
+
| Decision | Choice | Rationale |
|
|
45
|
+
|----------|--------|-----------|
|
|
46
|
+
| API style | _{choice}_ | _{why}_ |
|
|
47
|
+
| Error response format | _{choice}_ | _{why}_ |
|
|
48
|
+
| Versioning strategy | _{choice}_ | _{why}_ |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Implementation Patterns
|
|
53
|
+
|
|
54
|
+
### Naming Conventions
|
|
55
|
+
|
|
56
|
+
**Database:** _{convention}_
|
|
57
|
+
**API / CLI:** _{convention}_
|
|
58
|
+
**Code:** _{convention}_
|
|
59
|
+
|
|
60
|
+
### Error Handling
|
|
61
|
+
|
|
62
|
+
_{How errors are caught, formatted, and surfaced to users._
|
|
63
|
+
|
|
64
|
+
### Output Formats
|
|
65
|
+
|
|
66
|
+
**Success:**
|
|
67
|
+
```
|
|
68
|
+
{example output}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Error:**
|
|
72
|
+
```
|
|
73
|
+
{example error output}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Project Structure
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
{project-root}/
|
|
82
|
+
{path/to/new-file.ext} # Purpose
|
|
83
|
+
{path/to/modified-file.ext} # What changes
|
|
84
|
+
tests/
|
|
85
|
+
e2e/
|
|
86
|
+
{test_feature.ext} # E2E test suite
|
|
87
|
+
unit/
|
|
88
|
+
{test_component.ext} # Unit tests
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Test Strategy
|
|
94
|
+
|
|
95
|
+
### E2E Coverage
|
|
96
|
+
|
|
97
|
+
_Each E2E scenario must reference the relevant workflow document by codex ID (`lore codex search workflow` to find it)._
|
|
98
|
+
|
|
99
|
+
| Workflow (from PRD) | Workflow codex ID | Test scenario | Priority |
|
|
100
|
+
|---------------------|------------------|---------------|----------|
|
|
101
|
+
| _{Workflow name}_ | `lore codex show {conceptual-workflows-id}` | _{What the E2E test will verify}_ | _{High/Medium}_ |
|
|
102
|
+
|
|
103
|
+
### Unit Coverage
|
|
104
|
+
|
|
105
|
+
_Each unit scenario must reference the relevant workflow document by codex ID (`lore codex search workflow` to find it)._
|
|
106
|
+
|
|
107
|
+
| Component | Workflow codex ID | Scenarios to cover |
|
|
108
|
+
|-----------|------------------|---------------------|
|
|
109
|
+
| _{module/function}_ | `lore codex show {conceptual-workflows-id}` | _{list of cases}_ |
|
|
110
|
+
|
|
111
|
+
### Test Conventions
|
|
112
|
+
|
|
113
|
+
_{Test file naming, directory conventions, fixture strategy, assertion style._
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Crazy Tech Spec Findings
|
|
118
|
+
|
|
119
|
+
_Record which ideas from the Crazy Tech Spec were adopted, rejected, or deferred._
|
|
120
|
+
|
|
121
|
+
| Idea | Decision | Rationale |
|
|
122
|
+
|------|----------|-----------|
|
|
123
|
+
| _{Idea A}_ | _{Adopted / Rejected / Deferred}_ | _{why}_ |
|
|
124
|
+
| _{Idea B}_ | _{Adopted / Rejected / Deferred}_ | _{why}_ |
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Migration & Rollback
|
|
129
|
+
|
|
130
|
+
_{What changes to existing data or APIs this introduces, and how to roll back if needed._
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Change Log
|
|
135
|
+
|
|
136
|
+
| Version | Change | Reason |
|
|
137
|
+
|---------|--------|--------|
|
|
138
|
+
| 1.0 | Initial Tech Spec | _{Summarise key decisions made from draft feedback}_ |
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: fi-user-story-index
|
|
3
|
+
title: User Story Index
|
|
4
|
+
group: feature-implementation
|
|
5
|
+
summary: >
|
|
6
|
+
Index file for all user stories in a feature-implementation cycle. Produced
|
|
7
|
+
by the BA alongside the individual story files. Lists all stories grouped by
|
|
8
|
+
epic, tracks status, and maps PRD requirements to story IDs. Updated in both
|
|
9
|
+
the draft and final phases.
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# {Feature Name} — User Story Index
|
|
13
|
+
|
|
14
|
+
**Author:** Business Analyst
|
|
15
|
+
**Date:** {date}
|
|
16
|
+
**Status:** draft | final
|
|
17
|
+
**PRD:** `lore codex show {prd-id}`
|
|
18
|
+
**Tech Spec:** `lore codex show {tech-spec-id}`
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Stories by Epic
|
|
23
|
+
|
|
24
|
+
### {Epic 1 Name}
|
|
25
|
+
|
|
26
|
+
_{One sentence: what this epic delivers._
|
|
27
|
+
|
|
28
|
+
| ID | Title | Status | Codex ID |
|
|
29
|
+
|----|-------|--------|----------|
|
|
30
|
+
| US-001 | _{title}_ | draft \| final | _{codex-id}_ |
|
|
31
|
+
| US-002 | _{title}_ | draft \| final | _{codex-id}_ |
|
|
32
|
+
|
|
33
|
+
### {Epic 2 Name}
|
|
34
|
+
|
|
35
|
+
_{One sentence: what this epic delivers._
|
|
36
|
+
|
|
37
|
+
| ID | Title | Status | Codex ID |
|
|
38
|
+
|----|-------|--------|----------|
|
|
39
|
+
| US-003 | _{title}_ | draft \| final | _{codex-id}_ |
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## PRD Coverage Map
|
|
44
|
+
|
|
45
|
+
_Every functional requirement from the PRD must map to at least one story._
|
|
46
|
+
|
|
47
|
+
| PRD Requirement | Story IDs |
|
|
48
|
+
|-----------------|-----------|
|
|
49
|
+
| FR-1: _{requirement text}_ | US-001 |
|
|
50
|
+
| FR-2: _{requirement text}_ | US-001, US-002 |
|
|
51
|
+
| _{Workflow: Workflow Name}_ | US-003 |
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Summary
|
|
56
|
+
|
|
57
|
+
| Total stories | Epics | Draft | Final |
|
|
58
|
+
|---------------|-------|-------|-------|
|
|
59
|
+
| _{N}_ | _{N}_ | _{N}_ | _{N}_ |
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: fi-user-story
|
|
3
|
+
title: User Story
|
|
4
|
+
group: feature-implementation
|
|
5
|
+
summary: >
|
|
6
|
+
Template for a single user story in the feature-implementation workflow.
|
|
7
|
+
Used by the BA for both draft and final states. Includes mandatory E2E
|
|
8
|
+
and unit test specifications — every acceptance criterion must map to a
|
|
9
|
+
testable scenario. Tech Notes section is filled by the Tech Lead, not the BA.
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Metadata
|
|
13
|
+
|
|
14
|
+
- **ID:** US-{number}
|
|
15
|
+
- **Status:** draft | final
|
|
16
|
+
- **Epic:** _{epic-name}_
|
|
17
|
+
- **Author:** Business Analyst
|
|
18
|
+
- **Date:** {date}
|
|
19
|
+
- **PRD:** `lore codex show {prd-id}`
|
|
20
|
+
- **Tech Spec:** `lore codex show {tech-spec-id}`
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Story
|
|
25
|
+
|
|
26
|
+
As a _{role}_, I want _{specific action}_, so that _{concrete outcome}_.
|
|
27
|
+
|
|
28
|
+
## Context
|
|
29
|
+
|
|
30
|
+
_{Why this story exists. Which PRD workflow or functional requirement it fulfills. What the user is trying to accomplish and why it matters. Be specific — name the workflow from the PRD._
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Acceptance Criteria
|
|
35
|
+
|
|
36
|
+
_Every criterion is a testable scenario. Specify exact inputs, commands, flags, or interactions. Specify exact expected outputs, error messages, or state changes. Vague criteria will be rejected._
|
|
37
|
+
|
|
38
|
+
### E2E Scenarios
|
|
39
|
+
|
|
40
|
+
#### Scenario 1: {Descriptive name — happy path}
|
|
41
|
+
|
|
42
|
+
**Given** _{initial system state}_
|
|
43
|
+
**When** _{exact user action — e.g. `lore list --json` or "user clicks Submit with valid data"}_
|
|
44
|
+
**Then** _{exact expected outcome — include precise output format, status codes, or UI state}_
|
|
45
|
+
|
|
46
|
+
#### Scenario 2: {Descriptive name — edge case or error path}
|
|
47
|
+
|
|
48
|
+
**Given** _{initial state}_
|
|
49
|
+
**When** _{action}_
|
|
50
|
+
**Then** _{exact expected outcome}_
|
|
51
|
+
|
|
52
|
+
_(Add more scenarios as needed. Every workflow branch from the PRD must have a scenario.)_
|
|
53
|
+
|
|
54
|
+
### Unit Test Scenarios
|
|
55
|
+
|
|
56
|
+
_Specific behaviours that are too granular for E2E but must not be skipped._
|
|
57
|
+
|
|
58
|
+
- [ ] `{module or function}`: _{what to assert — e.g. "returns empty list when no items exist"}_
|
|
59
|
+
- [ ] `{module or function}`: _{what to assert}_
|
|
60
|
+
- [ ] `{module or function}`: _{edge case — e.g. "raises ValueError when input is None"}_
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Out of Scope
|
|
65
|
+
|
|
66
|
+
_Explicitly list what this story does NOT cover. This prevents scope creep into adjacent stories._
|
|
67
|
+
|
|
68
|
+
- _{Item 1}_
|
|
69
|
+
- _{Item 2}_
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## References
|
|
74
|
+
|
|
75
|
+
- PRD: `lore codex show {prd-id}`
|
|
76
|
+
- Tech Spec: `lore codex show {tech-spec-id}`
|
|
77
|
+
- _{Any other relevant codex document}_
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Tech Notes
|
|
82
|
+
|
|
83
|
+
_(Filled by Tech Lead in tech-notes-draft and tech-notes-final phases — BA must not edit this section)_
|
|
84
|
+
|
|
85
|
+
### Implementation Approach
|
|
86
|
+
|
|
87
|
+
_{File-level notes on how to implement this story. References codex docs rather than duplicating them._
|
|
88
|
+
|
|
89
|
+
- **Files to create:** _{path — purpose}_
|
|
90
|
+
- **Files to modify:** _{path — what changes and why}_
|
|
91
|
+
- **Schema changes:** _{link to relevant schema doc if applicable}_
|
|
92
|
+
- **Dependencies:** _{other stories or systems this depends on}_
|
|
93
|
+
|
|
94
|
+
### Test File Locations
|
|
95
|
+
|
|
96
|
+
| Type | Path | Notes |
|
|
97
|
+
|------|------|-------|
|
|
98
|
+
| E2E | `tests/e2e/{test_file}` | _{what suite this belongs to}_ |
|
|
99
|
+
| Unit | `tests/unit/{test_file}` | _{what module this covers}_ |
|
|
100
|
+
|
|
101
|
+
### Test Stubs
|
|
102
|
+
|
|
103
|
+
_Before writing stubs, search the codex for relevant workflow documents:_
|
|
104
|
+
_`lore codex search workflow`._
|
|
105
|
+
_Each stub must cite the workflow document it exercises (by codex ID) in a comment._
|
|
106
|
+
|
|
107
|
+
```python
|
|
108
|
+
# E2E — {Scenario 1 name}
|
|
109
|
+
# Exercises: lore codex show {workflow-codex-id}, step {N}
|
|
110
|
+
def test_{scenario_1_slug}():
|
|
111
|
+
# Given: {initial state setup}
|
|
112
|
+
# When: {action}
|
|
113
|
+
# Then: {assertion}
|
|
114
|
+
pass
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
# Unit — {unit scenario}
|
|
118
|
+
# Exercises: lore codex show {workflow-codex-id}, step {N}
|
|
119
|
+
def test_{unit_scenario_slug}():
|
|
120
|
+
# {what this verifies}
|
|
121
|
+
pass
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Complexity Estimate
|
|
125
|
+
|
|
126
|
+
_{S / M / L / XL — one line justification}_
|