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,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: example-glossary
|
|
3
|
+
title: Glossary
|
|
4
|
+
related: []
|
|
5
|
+
stability: stable
|
|
6
|
+
summary: >
|
|
7
|
+
Canonical vocabulary for this project. One definition per term.
|
|
8
|
+
Agents must use these terms consistently. "Do not use" alternatives
|
|
9
|
+
prevent terminology drift.
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Glossary
|
|
13
|
+
|
|
14
|
+
_One entry per term. Terms are the canonical names used in code, documentation, and agent prompts. Aliases are acceptable alternatives. "Do not use" entries prevent confusion from rejected synonyms._
|
|
15
|
+
|
|
16
|
+
## {Term 1}
|
|
17
|
+
|
|
18
|
+
**Definition:** _What this term means in this project. Be precise._
|
|
19
|
+
|
|
20
|
+
**Refers to:** `lore codex show {codex-id}` _(link to the entity or concept doc)_
|
|
21
|
+
|
|
22
|
+
**Aliases:** _{acceptable alternative names, if any}_
|
|
23
|
+
|
|
24
|
+
**Do not use:** _{rejected synonyms — e.g. if "task" is the term, "ticket" and "item" might be rejected}_
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## {Term 2}
|
|
29
|
+
|
|
30
|
+
**Definition:** _Definition._
|
|
31
|
+
|
|
32
|
+
**Refers to:** `lore codex show {codex-id}`
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## {Term 3}
|
|
37
|
+
|
|
38
|
+
**Definition:** _Definition._
|
|
39
|
+
|
|
40
|
+
> Add one `##` section per term. Keep definitions brief — one to three sentences. If a term needs more explanation, that explanation belongs in the entity or concept document it refers to.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: example-integrations
|
|
3
|
+
title: Integrations
|
|
4
|
+
related: []
|
|
5
|
+
stability: stable
|
|
6
|
+
summary: >
|
|
7
|
+
All external systems this project interacts with: purpose, protocol, auth method,
|
|
8
|
+
failure behaviour, and what is off-limits to modify. Agents must read this before
|
|
9
|
+
touching any code that calls an external system.
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Integrations
|
|
13
|
+
|
|
14
|
+
_One section per external system. External systems include: APIs consumed, services depended on, third-party tools, message queues, external databases, and auth providers._
|
|
15
|
+
|
|
16
|
+
> If this project has no external integrations, replace this file's content with "This project has no external integrations." Retain the file as a placeholder.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## {Integration Name — e.g. SendGrid, Stripe, GitHub API}
|
|
21
|
+
|
|
22
|
+
**Purpose:** _What does this integration do for the project? One sentence._
|
|
23
|
+
|
|
24
|
+
**Direction:** _Inbound (they call us) | Outbound (we call them) | Both_
|
|
25
|
+
|
|
26
|
+
**Protocol:** _e.g. REST/JSON over HTTPS, gRPC, Webhooks, SMTP_
|
|
27
|
+
|
|
28
|
+
**Authentication:** _e.g. API key in Authorization header, OAuth2 client credentials, HMAC signature on webhook payload_
|
|
29
|
+
|
|
30
|
+
**Configuration:** _Where are credentials stored? What environment variables? Link to secrets management._
|
|
31
|
+
|
|
32
|
+
| Variable | Description |
|
|
33
|
+
|----------|-------------|
|
|
34
|
+
| `{ENV_VAR_1}` | _Description_ |
|
|
35
|
+
| `{ENV_VAR_2}` | _Description_ |
|
|
36
|
+
|
|
37
|
+
**Failure behaviour:** _What happens when this integration is unavailable? Does the feature degrade gracefully or fail hard? What is the retry policy?_
|
|
38
|
+
|
|
39
|
+
**Off-limits:** _What must agents never do with this integration? e.g. "Never call the production API from tests — use the sandbox.", "Never store raw webhook payloads to disk."_
|
|
40
|
+
|
|
41
|
+
**Rate limits:** _Any known rate limits that constrain usage patterns._
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## {Integration Name 2}
|
|
46
|
+
|
|
47
|
+
_Repeat the structure above for each additional integration._
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: example-ops-deployment-dev
|
|
3
|
+
title: Development Environment
|
|
4
|
+
related: []
|
|
5
|
+
stability: stable
|
|
6
|
+
summary: >
|
|
7
|
+
Step-by-step guide to running the task app locally from a fresh clone.
|
|
8
|
+
Prerequisites, install, database initialisation, run, and verify.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Development Environment
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
| Tool | Version | Install |
|
|
16
|
+
|------|---------|---------|
|
|
17
|
+
| Python | ≥ 3.11 | [python.org](https://www.python.org/downloads/) or `pyenv install 3.11` |
|
|
18
|
+
| uv | latest | `curl -LsSf https://astral.sh/uv/install.sh \| sh` |
|
|
19
|
+
| Git | any | pre-installed on most systems |
|
|
20
|
+
| _additional tool_ | _version_ | _install command or link_ |
|
|
21
|
+
|
|
22
|
+
_Remove or add rows as needed. If the project uses Docker for local dev, add it here._
|
|
23
|
+
|
|
24
|
+
## Clone and Install
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
git clone _repository URL_
|
|
28
|
+
cd taskapp
|
|
29
|
+
uv sync
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
This installs all dependencies (including dev dependencies) into a project-local virtual environment and creates `uv.lock` if it does not exist.
|
|
33
|
+
|
|
34
|
+
## Environment Variables
|
|
35
|
+
|
|
36
|
+
The task app reads configuration from environment variables. Copy the example file and fill in values:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
cp .env.example .env
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
| Variable | Description | Default |
|
|
43
|
+
|----------|-------------|---------|
|
|
44
|
+
| `TASKAPP_DB_PATH` | Path to the SQLite database file | `~/.taskapp/taskapp.db` |
|
|
45
|
+
| _additional variable_ | _description_ | _default or "(required)"_ |
|
|
46
|
+
|
|
47
|
+
_If there are no required environment variables beyond the default, note that explicitly._
|
|
48
|
+
|
|
49
|
+
## Database Initialisation
|
|
50
|
+
|
|
51
|
+
The database and migrations run automatically on first use. There is no manual migration step for development. To verify:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
uv run taskapp task list
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
If the database file does not exist, it is created at `TASKAPP_DB_PATH` and all migrations are applied.
|
|
58
|
+
|
|
59
|
+
## Running the Application
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
uv run taskapp --help
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Or install the tool into the local environment so `taskapp` is on PATH:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
uv tool install --editable .
|
|
69
|
+
taskapp --help
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
_Choose the approach that matches this project's workflow._
|
|
73
|
+
|
|
74
|
+
## Common Commands
|
|
75
|
+
|
|
76
|
+
| Command | Description |
|
|
77
|
+
|---------|-------------|
|
|
78
|
+
| `uv run taskapp task list` | List all open tasks |
|
|
79
|
+
| `uv run pytest` | Run the test suite |
|
|
80
|
+
| `uv run pytest -x` | Run tests and stop on first failure |
|
|
81
|
+
| `uv run pytest --tb=short` | Run tests with short tracebacks |
|
|
82
|
+
| `rm ~/.taskapp/taskapp.db` | Reset the local database |
|
|
83
|
+
| `uv sync` | Sync dependencies after `pyproject.toml` changes |
|
|
84
|
+
|
|
85
|
+
## Troubleshooting
|
|
86
|
+
|
|
87
|
+
### `command not found: taskapp`
|
|
88
|
+
|
|
89
|
+
**Symptom:** Running `taskapp` after `uv tool install` returns "command not found".
|
|
90
|
+
|
|
91
|
+
**Cause:** The uv tools directory (`~/.local/bin`) is not on your PATH.
|
|
92
|
+
|
|
93
|
+
**Fix:** Add `export PATH="$HOME/.local/bin:$PATH"` to your shell profile and reload it.
|
|
94
|
+
|
|
95
|
+
### Database is not created
|
|
96
|
+
|
|
97
|
+
**Symptom:** `uv run taskapp task list` errors with "unable to open database file".
|
|
98
|
+
|
|
99
|
+
**Cause:** The directory containing the database file does not exist.
|
|
100
|
+
|
|
101
|
+
**Fix:** Create the directory: `mkdir -p ~/.taskapp` or set `TASKAPP_DB_PATH` to a writable location.
|
|
102
|
+
|
|
103
|
+
### _Additional common problem_
|
|
104
|
+
|
|
105
|
+
_Symptom, cause, and fix._
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: example-ops-deployment
|
|
3
|
+
title: Deployment Overview
|
|
4
|
+
related: []
|
|
5
|
+
stability: stable
|
|
6
|
+
summary: >
|
|
7
|
+
Deployment architecture, environment inventory, technology choices, and entry point
|
|
8
|
+
for all environment-specific deployment documentation.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Deployment Overview
|
|
12
|
+
|
|
13
|
+
## Environments
|
|
14
|
+
|
|
15
|
+
| Environment | Purpose | Location | Branch |
|
|
16
|
+
|-------------|---------|----------|--------|
|
|
17
|
+
| Development | Local development and testing | Developer machine | any |
|
|
18
|
+
| Staging | Pre-release verification | _staging location_ | `develop` |
|
|
19
|
+
| Production | Live system used by real users | _production location_ | `main` |
|
|
20
|
+
|
|
21
|
+
_Fill in the Location column with hostnames, URLs, or infrastructure references. Remove Staging if the project has no staging environment._
|
|
22
|
+
|
|
23
|
+
## Deployment Technology
|
|
24
|
+
|
|
25
|
+
_Describe what tooling is used to build and ship the application._
|
|
26
|
+
|
|
27
|
+
| Layer | Technology | Notes |
|
|
28
|
+
|-------|-----------|-------|
|
|
29
|
+
| Packaging | _e.g. uv build / pip wheel / PyInstaller_ | _how the CLI binary or package is built_ |
|
|
30
|
+
| Distribution | _e.g. PyPI / GitHub Releases / Homebrew tap / internal package repo_ | _how users install the tool_ |
|
|
31
|
+
| CI/CD | _e.g. GitHub Actions / GitLab CI_ | _pipeline file location_ |
|
|
32
|
+
| Version management | _e.g. manual tag / bumpversion / semantic-release_ | |
|
|
33
|
+
|
|
34
|
+
_This is a CLI tool — there is no hosting layer. If a web API is added later, extend this table with containerisation, orchestration, and hosting rows._
|
|
35
|
+
|
|
36
|
+
## Architecture Diagram
|
|
37
|
+
|
|
38
|
+
_High-level diagram of what runs where in production. For a CLI tool this is typically the distribution pipeline rather than a runtime architecture._
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
_Add diagram here (Mermaid or ASCII). Example for a CLI tool:_
|
|
42
|
+
|
|
43
|
+
Developer machine
|
|
44
|
+
→ uv build → dist/taskapp-*.whl
|
|
45
|
+
→ CI/CD pipeline
|
|
46
|
+
→ GitHub Release (attached wheel)
|
|
47
|
+
→ PyPI publish (optional)
|
|
48
|
+
→ End user: pip install taskapp / uv tool install taskapp
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Environment-Specific Guides
|
|
52
|
+
|
|
53
|
+
| Guide | Description |
|
|
54
|
+
|-------|-------------|
|
|
55
|
+
| `lore codex show example-ops-deployment-dev` | Set up a local development environment from scratch |
|
|
56
|
+
| `lore codex show example-ops-deployment-staging` | Deploy and verify a staging or pre-release build |
|
|
57
|
+
| `lore codex show example-ops-deployment-production` | Publish a production release, verify, and roll back |
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: example-ops-deployment-production
|
|
3
|
+
title: Production Deployment
|
|
4
|
+
related: []
|
|
5
|
+
stability: stable
|
|
6
|
+
summary: >
|
|
7
|
+
How to publish a production release: prerequisites, deployment process, verification,
|
|
8
|
+
rollback procedure, and day-2 operations (backup, monitoring).
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Production Deployment
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- Changes have been verified on staging
|
|
16
|
+
- `main` branch is up to date with the release commit
|
|
17
|
+
- Version number is bumped in `pyproject.toml` and committed
|
|
18
|
+
- Required credentials: _list what is needed (PyPI token, GitHub token, etc.)_
|
|
19
|
+
- Inform team before releasing: _channel or method (e.g. post in #releases Slack channel)_
|
|
20
|
+
|
|
21
|
+
## Deployment Process
|
|
22
|
+
|
|
23
|
+
_Describe how a production release is triggered. Replace the placeholder below._
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
_commands to build and publish the production release_
|
|
27
|
+
_e.g.:_
|
|
28
|
+
git tag v1.2.0
|
|
29
|
+
git push origin v1.2.0
|
|
30
|
+
_or trigger CI/CD pipeline manually_
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
_If release is automated on tag push, describe the pipeline:_
|
|
34
|
+
|
|
35
|
+
> Production release is triggered by pushing a version tag (`v*.*.*`) to `main`. The `release` workflow in `.github/workflows/release.yml` builds the wheel, runs the full test suite, then publishes to _PyPI / GitHub Releases / internal repo_.
|
|
36
|
+
|
|
37
|
+
## Verification
|
|
38
|
+
|
|
39
|
+
After releasing, verify:
|
|
40
|
+
|
|
41
|
+
- [ ] Release is available at _distribution location_
|
|
42
|
+
- [ ] `pip install taskapp==<version>` installs the new version
|
|
43
|
+
- [ ] `taskapp --version` shows the expected version string
|
|
44
|
+
- [ ] `taskapp task list` runs without error on a fresh install
|
|
45
|
+
- [ ] _Key smoke test for the primary change in this release_
|
|
46
|
+
- [ ] Release notes are published: _location (GitHub Release, CHANGELOG.md, etc.)_
|
|
47
|
+
- [ ] Notify team that the release is complete: _channel or method_
|
|
48
|
+
|
|
49
|
+
## Rollback
|
|
50
|
+
|
|
51
|
+
_Describe how to revert to the previous production release._
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
_command or procedure to roll back (e.g. yank PyPI release and re-install previous version)_
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
_State how quickly a rollback can be executed. For a CLI tool distributed via PyPI, rollback typically means yanking the broken release (`pip install taskapp==<previous-version>`) and advising users to pin. There is no downtime because there is no running server._
|
|
58
|
+
|
|
59
|
+
## Day-2 Operations
|
|
60
|
+
|
|
61
|
+
### Backup
|
|
62
|
+
|
|
63
|
+
_A local CLI tool stores data in the user's home directory. No centralised backup is needed unless a shared database is in use._
|
|
64
|
+
|
|
65
|
+
| Task | Command |
|
|
66
|
+
|------|---------|
|
|
67
|
+
| Manual database backup | `cp ~/.taskapp/taskapp.db ~/.taskapp/taskapp.db.bak.$(date +%Y%m%d)` |
|
|
68
|
+
| _automated backup procedure_ | _command or cron entry_ |
|
|
69
|
+
|
|
70
|
+
### Monitoring
|
|
71
|
+
|
|
72
|
+
_Describe what to monitor post-release._
|
|
73
|
+
|
|
74
|
+
| Task | Command or method |
|
|
75
|
+
|------|-----------------|
|
|
76
|
+
| Check for error reports | _e.g. GitHub Issues, Sentry, support channel_ |
|
|
77
|
+
| Verify no breaking changes in the wild | _e.g. monitor download counts on PyPI, check community forum_ |
|
|
78
|
+
| _additional monitoring step_ | _command_ |
|
|
79
|
+
|
|
80
|
+
### Version Pinning Notice
|
|
81
|
+
|
|
82
|
+
If a release is found to be broken after publication, consider yanking it from the package index:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
_command to yank a release (e.g. `uv publish --yank v1.2.0 --yank-message "breaks task done on Windows"`)_
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Yanked releases remain installable by explicit version pin but are excluded from default `pip install taskapp`.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: example-ops-deployment-staging
|
|
3
|
+
title: Staging Deployment
|
|
4
|
+
related: []
|
|
5
|
+
stability: stable
|
|
6
|
+
summary: >
|
|
7
|
+
How to deploy a pre-release build to the staging environment: prerequisites,
|
|
8
|
+
deployment process, verification steps, and rollback procedure.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Staging Deployment
|
|
12
|
+
|
|
13
|
+
Staging mirrors the production release process and is used to verify a build before it is published to real users.
|
|
14
|
+
|
|
15
|
+
## When to Deploy to Staging
|
|
16
|
+
|
|
17
|
+
- After a feature branch merges into `develop`
|
|
18
|
+
- Before cutting a production release
|
|
19
|
+
- When testing changes to the packaging or distribution pipeline
|
|
20
|
+
- When testing infrastructure or configuration changes
|
|
21
|
+
|
|
22
|
+
## Prerequisites
|
|
23
|
+
|
|
24
|
+
- Access to the staging deployment target (_describe: CI/CD system, package repository, test machine, etc._)
|
|
25
|
+
- Required credentials: _list what is needed (API token, SSH key, etc.)_
|
|
26
|
+
- Latest `develop` branch checked out and CI passing
|
|
27
|
+
|
|
28
|
+
## Deployment Process
|
|
29
|
+
|
|
30
|
+
_Describe how a staging deployment is triggered. Replace the placeholder below with actual commands or CI/CD trigger description._
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
_commands to build and publish a pre-release (e.g. test PyPI upload, GitHub pre-release, internal repo push)_
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
_If staging deployment is triggered automatically by CI/CD on merge to `develop`, describe the pipeline instead:_
|
|
37
|
+
|
|
38
|
+
> Staging deployment is automated. Merging a PR into `develop` triggers the `staging` workflow in `.github/workflows/staging.yml`. The workflow builds the wheel, runs integration tests against the staging database, and publishes the pre-release to _location_.
|
|
39
|
+
|
|
40
|
+
## Verification
|
|
41
|
+
|
|
42
|
+
After deploying, verify:
|
|
43
|
+
|
|
44
|
+
- [ ] Pre-release build is reachable at _staging location or package index_
|
|
45
|
+
- [ ] `pip install --pre taskapp` (or equivalent) installs the new version
|
|
46
|
+
- [ ] `taskapp --version` shows the expected version string
|
|
47
|
+
- [ ] `taskapp task list` runs without error against a fresh staging database
|
|
48
|
+
- [ ] _Key smoke test for the feature being released_
|
|
49
|
+
- [ ] No errors in logs: `_command to check logs_`
|
|
50
|
+
|
|
51
|
+
## Rollback
|
|
52
|
+
|
|
53
|
+
_Describe how to revert to the previous staging build._
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
_command or procedure to roll back (e.g. re-deploy previous git tag, re-publish previous wheel)_
|
|
57
|
+
```
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: example-ops-git
|
|
3
|
+
title: Git Workflow
|
|
4
|
+
related: []
|
|
5
|
+
stability: stable
|
|
6
|
+
summary: >
|
|
7
|
+
Branching model, commit conventions, PR process, review process, merge strategy,
|
|
8
|
+
and release process for this project. AI agents must follow these conventions on
|
|
9
|
+
every commit and every PR.
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Git Workflow
|
|
13
|
+
|
|
14
|
+
## Branching Model
|
|
15
|
+
|
|
16
|
+
_Describe the branching strategy. Examples: Git Flow, trunk-based, GitHub Flow._
|
|
17
|
+
|
|
18
|
+
| Branch | Purpose | Created from | Merges into |
|
|
19
|
+
|--------|---------|-------------|-------------|
|
|
20
|
+
| `main` | Production-ready code | — | — |
|
|
21
|
+
| `develop` | Integration branch | `main` | `main` |
|
|
22
|
+
| `feat/{name}` | New features | `develop` | `develop` |
|
|
23
|
+
| `fix/{name}` | Bug fixes | `develop` | `develop` |
|
|
24
|
+
| `hotfix/{name}` | Urgent production fixes | `main` | `main` + `develop` |
|
|
25
|
+
|
|
26
|
+
_Adjust the table to match this project's actual branching strategy. Remove branches that are not used. Add branches that are not listed._
|
|
27
|
+
|
|
28
|
+
## Commit Conventions
|
|
29
|
+
|
|
30
|
+
_Describe the commit message format. The example below uses Conventional Commits._
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
<type>(<scope>): <short summary>
|
|
34
|
+
|
|
35
|
+
[optional body]
|
|
36
|
+
|
|
37
|
+
[optional footer]
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Types:**
|
|
41
|
+
|
|
42
|
+
| Type | When to use |
|
|
43
|
+
|------|------------|
|
|
44
|
+
| `feat` | New feature |
|
|
45
|
+
| `fix` | Bug fix |
|
|
46
|
+
| `docs` | Documentation only |
|
|
47
|
+
| `refactor` | Code change that neither fixes a bug nor adds a feature |
|
|
48
|
+
| `test` | Adding or correcting tests |
|
|
49
|
+
| `chore` | Build process, tooling, dependencies |
|
|
50
|
+
|
|
51
|
+
**Rules:**
|
|
52
|
+
- Summary line ≤ 72 characters
|
|
53
|
+
- Use imperative mood: "add command" not "added command"
|
|
54
|
+
- Reference issue or user story in footer when applicable: `Refs: US-042`
|
|
55
|
+
|
|
56
|
+
_Replace or extend the type list to match this project's conventions._
|
|
57
|
+
|
|
58
|
+
## Pull Requests
|
|
59
|
+
|
|
60
|
+
- One PR per feature or fix
|
|
61
|
+
- PR title follows the same convention as commit messages
|
|
62
|
+
- Description must include: what changed, why, and how to test
|
|
63
|
+
- Link to the relevant user story or spec if applicable
|
|
64
|
+
|
|
65
|
+
_Add any project-specific PR requirements: template link, required labels, etc._
|
|
66
|
+
|
|
67
|
+
## Review Process
|
|
68
|
+
|
|
69
|
+
_Describe who reviews, what reviewers check, and what constitutes approval._
|
|
70
|
+
|
|
71
|
+
- Minimum reviewers required: _N_
|
|
72
|
+
- Reviewer checks: correctness, test coverage, documentation updated if behaviour changed
|
|
73
|
+
- Blocking comments must be resolved before merge
|
|
74
|
+
|
|
75
|
+
_Name specific reviewers or teams if applicable. Link to a CODEOWNERS file if one exists._
|
|
76
|
+
|
|
77
|
+
## Merge Strategy
|
|
78
|
+
|
|
79
|
+
_Pick one strategy and state why._
|
|
80
|
+
|
|
81
|
+
- Strategy: _squash merge_ (keeps `develop` history linear)
|
|
82
|
+
- Delete branch after merge: _yes / no_
|
|
83
|
+
|
|
84
|
+
_Options: squash merge, rebase, merge commit. Note the trade-offs for your team._
|
|
85
|
+
|
|
86
|
+
## Release Process
|
|
87
|
+
|
|
88
|
+
_How a release is cut. Tags, changelogs, version bumps._
|
|
89
|
+
|
|
90
|
+
1. Merge `develop` → `main`
|
|
91
|
+
2. Tag `main` with version: `git tag v{major}.{minor}.{patch}`
|
|
92
|
+
3. Push tag: `git push origin v{major}.{minor}.{patch}`
|
|
93
|
+
4. _Any additional steps: changelog generation, PyPI publish, GitHub Release creation, etc._
|
|
94
|
+
|
|
95
|
+
_If releases are automated via CI/CD, describe that here instead._
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: example-ops-runbook-{name}
|
|
3
|
+
title: "Runbook — {Operation Name}"
|
|
4
|
+
related: []
|
|
5
|
+
stability: stable
|
|
6
|
+
summary: >
|
|
7
|
+
Step-by-step procedure for {operation}. When to run it, prerequisites,
|
|
8
|
+
exact commands, checkpoints, and rollback steps.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Runbook — {Operation Name}
|
|
12
|
+
|
|
13
|
+
## When to Run This
|
|
14
|
+
|
|
15
|
+
_Describe the trigger: what situation or event requires this runbook to be executed?_
|
|
16
|
+
|
|
17
|
+
> Example: Run this when a database migration fails mid-deployment. Run this when a release is yanked and users need to be directed to the previous version.
|
|
18
|
+
|
|
19
|
+
## Prerequisites
|
|
20
|
+
|
|
21
|
+
- _Who can run this? What role or permissions are required?_
|
|
22
|
+
- _What must be true before starting? (e.g. "staging has been verified", "team has been notified")_
|
|
23
|
+
- _What credentials or access are needed?_
|
|
24
|
+
|
|
25
|
+
## Steps
|
|
26
|
+
|
|
27
|
+
### 1. {Step name}
|
|
28
|
+
|
|
29
|
+
_Description. What are you doing and why._
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
{command}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Checkpoint:** _How do you know this step succeeded? What to check._
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
### 2. {Step name}
|
|
40
|
+
|
|
41
|
+
_Description._
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
{command}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**Checkpoint:** _Verification._
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
### 3. Verify the result
|
|
52
|
+
|
|
53
|
+
_How do you confirm the operation completed successfully?_
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
{verification command}
|
|
57
|
+
{expected output}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Rollback
|
|
61
|
+
|
|
62
|
+
_If something goes wrong, how do you undo this operation?_
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
{rollback command or procedure}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
_State whether rollback is always possible, and any data loss implications._
|
|
69
|
+
|
|
70
|
+
## Known Failure Modes
|
|
71
|
+
|
|
72
|
+
| Symptom | Likely cause | Fix |
|
|
73
|
+
|---------|-------------|-----|
|
|
74
|
+
| _Error message or behaviour_ | _Cause_ | _Resolution_ |
|
|
75
|
+
| _Error message or behaviour_ | _Cause_ | _Resolution_ |
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: example-persona-{role-slug}
|
|
3
|
+
title: "Persona — {Role Name}"
|
|
4
|
+
related: []
|
|
5
|
+
stability: stable
|
|
6
|
+
summary: >
|
|
7
|
+
_One to three sentences. Who this persona is, what their primary goal is,
|
|
8
|
+
and what distinguishes them from other personas in this system._
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Persona — {Role Name}
|
|
12
|
+
|
|
13
|
+
_One paragraph. Who is this person? What is their job or context? Why do they use this system?_
|
|
14
|
+
|
|
15
|
+
## Goals
|
|
16
|
+
|
|
17
|
+
_What does this persona want to achieve? List two to four primary goals._
|
|
18
|
+
|
|
19
|
+
- _Goal 1: specific outcome they're trying to reach_
|
|
20
|
+
- _Goal 2_
|
|
21
|
+
- _Goal 3_
|
|
22
|
+
|
|
23
|
+
## Pain Points
|
|
24
|
+
|
|
25
|
+
_What frustrates this persona? What slows them down? These are the problems this system should solve for them._
|
|
26
|
+
|
|
27
|
+
- _Pain point 1_
|
|
28
|
+
- _Pain point 2_
|
|
29
|
+
|
|
30
|
+
## Technical Level
|
|
31
|
+
|
|
32
|
+
_How technically sophisticated is this persona? What can they be expected to know without explanation?_
|
|
33
|
+
|
|
34
|
+
> Example: Comfortable with the command line. Knows basic Git. Does not know the internals of the application. Will not read source code.
|
|
35
|
+
|
|
36
|
+
## Primary Workflows
|
|
37
|
+
|
|
38
|
+
_What are the main things this persona does in the system? Link to workflow documents via `related`._
|
|
39
|
+
|
|
40
|
+
- _{Workflow name}_ — `lore codex show {workflow-id}`
|
|
41
|
+
- _{Workflow name}_ — `lore codex show {workflow-id}`
|
|
42
|
+
|
|
43
|
+
## Out of Scope
|
|
44
|
+
|
|
45
|
+
_What does this persona NOT do? Be explicit — this prevents agents from building features for the wrong audience._
|
|
46
|
+
|
|
47
|
+
- _This persona does not {action}._
|
|
48
|
+
- _This persona does not {action}._
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: example-security-model
|
|
3
|
+
title: Security Model
|
|
4
|
+
related: []
|
|
5
|
+
stability: stable
|
|
6
|
+
summary: >
|
|
7
|
+
Authentication model, authorization rules, sensitive data inventory,
|
|
8
|
+
external exposure surface, and agent-specific security rules.
|
|
9
|
+
Read before modifying any auth, data access, or input handling code.
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Security Model
|
|
13
|
+
|
|
14
|
+
## Authentication
|
|
15
|
+
|
|
16
|
+
_How is identity established? What mechanism (session tokens, JWTs, API keys, none for local tools)?_
|
|
17
|
+
|
|
18
|
+
> Example: This is a local CLI tool. There is no authentication — the operating system user is implicitly trusted. If multi-user access is added in the future, see ADR-XXX.
|
|
19
|
+
|
|
20
|
+
## Authorization
|
|
21
|
+
|
|
22
|
+
_Who can do what? Are there roles? What is the access control model?_
|
|
23
|
+
|
|
24
|
+
> Example: Single-user tool. All operations are permitted to the local user. No role separation.
|
|
25
|
+
|
|
26
|
+
| Role / Actor | Permitted operations | Denied operations |
|
|
27
|
+
|-------------|---------------------|------------------|
|
|
28
|
+
| _e.g. Authenticated user_ | _Description_ | _Description_ |
|
|
29
|
+
| _e.g. Unauthenticated_ | _e.g. None_ | _Everything_ |
|
|
30
|
+
|
|
31
|
+
## Sensitive Data Inventory
|
|
32
|
+
|
|
33
|
+
_What data in this system is sensitive? Where is it stored? Who has access?_
|
|
34
|
+
|
|
35
|
+
| Data | Classification | Where stored | Access |
|
|
36
|
+
|------|---------------|-------------|--------|
|
|
37
|
+
| _e.g. User email_ | _PII_ | _Database, logs_ | _Local user only_ |
|
|
38
|
+
| _e.g. API keys_ | _Credential_ | _Environment variable, never disk_ | _Process only_ |
|
|
39
|
+
| _e.g. Task content_ | _User data_ | _Local database_ | _Local user only_ |
|
|
40
|
+
|
|
41
|
+
## External Exposure Surface
|
|
42
|
+
|
|
43
|
+
_What does this system expose externally? What ports, endpoints, or interfaces are accessible from outside the process?_
|
|
44
|
+
|
|
45
|
+
> Example: No external exposure. Local CLI only. No listening ports, no HTTP server, no daemon.
|
|
46
|
+
|
|
47
|
+
## Agent-Specific Rules
|
|
48
|
+
|
|
49
|
+
_Rules that AI agents working on this codebase must follow. These prevent common security mistakes._
|
|
50
|
+
|
|
51
|
+
- **Never log credentials.** Environment variables containing keys or tokens must never appear in log output or error messages.
|
|
52
|
+
- **Never hardcode secrets.** All credentials go in environment variables. See `constraints/` for the variable names.
|
|
53
|
+
- **Validate all external input at the boundary.** User input, file content read from disk, and API responses must be validated before use.
|
|
54
|
+
- **{Project-specific rule}:** _Description._
|
|
55
|
+
|
|
56
|
+
## Known Risks and Mitigations
|
|
57
|
+
|
|
58
|
+
| Risk | Mitigation |
|
|
59
|
+
|------|-----------|
|
|
60
|
+
| _e.g. SQL injection_ | _Parameterised queries everywhere. No string concatenation in queries._ |
|
|
61
|
+
| _e.g. Path traversal_ | _File paths from user input are resolved and validated before use._ |
|
|
62
|
+
| _e.g. Dependency vulnerabilities_ | _`uv audit` run in CI on every PR._ |
|