brainkeeper 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. brainkeeper-0.1.0/.github/workflows/ci.yml +63 -0
  2. brainkeeper-0.1.0/.github/workflows/release.yml +118 -0
  3. brainkeeper-0.1.0/.gitignore +213 -0
  4. brainkeeper-0.1.0/CHANGELOG.md +84 -0
  5. brainkeeper-0.1.0/LICENSE +21 -0
  6. brainkeeper-0.1.0/PKG-INFO +218 -0
  7. brainkeeper-0.1.0/README.md +182 -0
  8. brainkeeper-0.1.0/docs/branding/logo.svg +1 -0
  9. brainkeeper-0.1.0/docs/branding/palette.md +33 -0
  10. brainkeeper-0.1.0/docs/design.md +484 -0
  11. brainkeeper-0.1.0/docs/plans/2026-04-24-brainkeeper-spec.md +1376 -0
  12. brainkeeper-0.1.0/docs/plans/2026-04-24-vault-remediation.md +145 -0
  13. brainkeeper-0.1.0/docs/plans/2026-04-27-mcp-core.md +2291 -0
  14. brainkeeper-0.1.0/docs/plans/vault-audit-summary-2026-04-24.md +101 -0
  15. brainkeeper-0.1.0/pyproject.toml +65 -0
  16. brainkeeper-0.1.0/spec/README.md +21 -0
  17. brainkeeper-0.1.0/spec/SPEC.md +313 -0
  18. brainkeeper-0.1.0/spec/examples/.gitkeep +0 -0
  19. brainkeeper-0.1.0/spec/examples/.invalid/README.md +14 -0
  20. brainkeeper-0.1.0/spec/examples/.invalid/absolute-path.yaml +11 -0
  21. brainkeeper-0.1.0/spec/examples/.invalid/missing-default.yaml +11 -0
  22. brainkeeper-0.1.0/spec/examples/.invalid/unknown-root-key.yaml +14 -0
  23. brainkeeper-0.1.0/spec/examples/daniels-vault.yaml +20 -0
  24. brainkeeper-0.1.0/spec/examples/minimal.yaml +14 -0
  25. brainkeeper-0.1.0/spec/examples/zettelkasten.yaml +18 -0
  26. brainkeeper-0.1.0/spec/schema/brainkeeper.schema.json +66 -0
  27. brainkeeper-0.1.0/src/brainkeeper/__init__.py +3 -0
  28. brainkeeper-0.1.0/src/brainkeeper/__main__.py +5 -0
  29. brainkeeper-0.1.0/src/brainkeeper/cli/__init__.py +45 -0
  30. brainkeeper-0.1.0/src/brainkeeper/cli/init.py +52 -0
  31. brainkeeper-0.1.0/src/brainkeeper/cli/serve.py +22 -0
  32. brainkeeper-0.1.0/src/brainkeeper/core/__init__.py +0 -0
  33. brainkeeper-0.1.0/src/brainkeeper/core/config.py +104 -0
  34. brainkeeper-0.1.0/src/brainkeeper/core/frontmatter.py +72 -0
  35. brainkeeper-0.1.0/src/brainkeeper/core/fs.py +47 -0
  36. brainkeeper-0.1.0/src/brainkeeper/core/index.py +104 -0
  37. brainkeeper-0.1.0/src/brainkeeper/core/rescanner.py +52 -0
  38. brainkeeper-0.1.0/src/brainkeeper/core/watcher.py +85 -0
  39. brainkeeper-0.1.0/src/brainkeeper/mcp/__init__.py +0 -0
  40. brainkeeper-0.1.0/src/brainkeeper/mcp/server.py +99 -0
  41. brainkeeper-0.1.0/src/brainkeeper/mcp/tools/__init__.py +0 -0
  42. brainkeeper-0.1.0/src/brainkeeper/mcp/tools/convention.py +86 -0
  43. brainkeeper-0.1.0/src/brainkeeper/mcp/tools/primitives.py +177 -0
  44. brainkeeper-0.1.0/src/brainkeeper/mcp/tools/semantic.py +188 -0
  45. brainkeeper-0.1.0/src/brainkeeper/spec/__init__.py +0 -0
  46. brainkeeper-0.1.0/tests/conftest.py +22 -0
  47. brainkeeper-0.1.0/tests/fixtures/minimal-vault/00 Inbox/.gitkeep +0 -0
  48. brainkeeper-0.1.0/tests/fixtures/minimal-vault/10 Journal/.gitkeep +0 -0
  49. brainkeeper-0.1.0/tests/fixtures/minimal-vault/20 Projects/.gitkeep +0 -0
  50. brainkeeper-0.1.0/tests/fixtures/minimal-vault/30 Areas/.gitkeep +0 -0
  51. brainkeeper-0.1.0/tests/fixtures/minimal-vault/40 Brain/.gitkeep +0 -0
  52. brainkeeper-0.1.0/tests/fixtures/minimal-vault/90 Archive/.gitkeep +0 -0
  53. brainkeeper-0.1.0/tests/fixtures/minimal-vault/brainkeeper.yaml +14 -0
  54. brainkeeper-0.1.0/tests/integration/test_convention.py +91 -0
  55. brainkeeper-0.1.0/tests/integration/test_primitives.py +263 -0
  56. brainkeeper-0.1.0/tests/integration/test_semantic.py +296 -0
  57. brainkeeper-0.1.0/tests/unit/test_config.py +67 -0
  58. brainkeeper-0.1.0/tests/unit/test_frontmatter.py +154 -0
  59. brainkeeper-0.1.0/tests/unit/test_fs.py +42 -0
  60. brainkeeper-0.1.0/tests/unit/test_index.py +92 -0
  61. brainkeeper-0.1.0/tests/unit/test_rescanner.py +31 -0
  62. brainkeeper-0.1.0/tests/unit/test_server.py +24 -0
  63. brainkeeper-0.1.0/tests/unit/test_watcher.py +38 -0
  64. brainkeeper-0.1.0/tools/__init__.py +0 -0
  65. brainkeeper-0.1.0/tools/audit_vault.py +859 -0
  66. brainkeeper-0.1.0/uv.lock +1546 -0
@@ -0,0 +1,63 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ concurrency:
9
+ group: ci-${{ github.ref }}
10
+ cancel-in-progress: true
11
+
12
+ jobs:
13
+ test:
14
+ name: test (py${{ matrix.python-version }})
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ python-version: ["3.11", "3.12", "3.13"]
20
+ steps:
21
+ - uses: actions/checkout@v6
22
+
23
+ - name: Install uv
24
+ uses: astral-sh/setup-uv@v8.1.0
25
+ with:
26
+ enable-cache: true
27
+
28
+ - name: Set up Python ${{ matrix.python-version }}
29
+ run: uv python install ${{ matrix.python-version }}
30
+
31
+ - name: Install dependencies
32
+ run: uv sync --extra dev
33
+
34
+ - name: Lint
35
+ run: uv run ruff check .
36
+
37
+ - name: Format check
38
+ run: uv run ruff format --check .
39
+
40
+ - name: Tests
41
+ run: uv run pytest
42
+
43
+ build:
44
+ name: build wheel
45
+ runs-on: ubuntu-latest
46
+ needs: test
47
+ steps:
48
+ - uses: actions/checkout@v6
49
+
50
+ - name: Install uv
51
+ uses: astral-sh/setup-uv@v8.1.0
52
+ with:
53
+ enable-cache: true
54
+
55
+ - name: Build sdist + wheel
56
+ run: uv build
57
+
58
+ - name: Upload distribution artifacts
59
+ uses: actions/upload-artifact@v7
60
+ with:
61
+ name: dist
62
+ path: dist/
63
+ if-no-files-found: error
@@ -0,0 +1,118 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "brainkeeper-v*"
7
+
8
+ jobs:
9
+ test:
10
+ name: test (py${{ matrix.python-version }})
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ python-version: ["3.11", "3.12", "3.13"]
16
+ steps:
17
+ - uses: actions/checkout@v6
18
+
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v8.1.0
21
+ with:
22
+ enable-cache: true
23
+
24
+ - name: Set up Python ${{ matrix.python-version }}
25
+ run: uv python install ${{ matrix.python-version }}
26
+
27
+ - name: Install dependencies
28
+ run: uv sync --extra dev
29
+
30
+ - name: Lint
31
+ run: uv run ruff check .
32
+
33
+ - name: Format check
34
+ run: uv run ruff format --check .
35
+
36
+ - name: Tests
37
+ run: uv run pytest
38
+
39
+ build:
40
+ name: build wheel
41
+ runs-on: ubuntu-latest
42
+ needs: test
43
+ steps:
44
+ - uses: actions/checkout@v6
45
+
46
+ - name: Install uv
47
+ uses: astral-sh/setup-uv@v8.1.0
48
+ with:
49
+ enable-cache: true
50
+
51
+ - name: Verify tag matches package version
52
+ env:
53
+ TAG_NAME: ${{ github.ref_name }}
54
+ run: |
55
+ pkg_version=$(uv run python -c "import tomllib, pathlib; print(tomllib.loads(pathlib.Path('pyproject.toml').read_text())['project']['version'])")
56
+ expected="brainkeeper-v${pkg_version}"
57
+ if [ "$TAG_NAME" != "$expected" ]; then
58
+ echo "Tag '$TAG_NAME' does not match pyproject version (expected '$expected')." >&2
59
+ exit 1
60
+ fi
61
+
62
+ - name: Build sdist + wheel
63
+ run: uv build
64
+
65
+ - name: Upload distribution artifacts
66
+ uses: actions/upload-artifact@v7
67
+ with:
68
+ name: dist
69
+ path: dist/
70
+ if-no-files-found: error
71
+
72
+ publish:
73
+ name: publish to PyPI + GitHub Release
74
+ runs-on: ubuntu-latest
75
+ needs: build
76
+ environment:
77
+ name: pypi
78
+ url: https://pypi.org/p/brainkeeper
79
+ permissions:
80
+ id-token: write # Trusted Publishing (PyPI OIDC)
81
+ contents: write # create GitHub Release
82
+ steps:
83
+ - uses: actions/checkout@v6
84
+
85
+ - name: Download distribution artifacts
86
+ uses: actions/download-artifact@v8
87
+ with:
88
+ name: dist
89
+ path: dist/
90
+
91
+ - name: Extract release notes from CHANGELOG
92
+ id: notes
93
+ env:
94
+ TAG_NAME: ${{ github.ref_name }}
95
+ run: |
96
+ section=$(awk -v t="[$TAG_NAME]" '
97
+ $0 ~ "^## " t { found=1; next }
98
+ found && /^## / { exit }
99
+ found
100
+ ' CHANGELOG.md)
101
+ if [ -z "$section" ]; then
102
+ echo "No CHANGELOG section found for $TAG_NAME; falling back to auto-generated notes." >&2
103
+ fi
104
+ {
105
+ echo "body<<NOTES_EOF"
106
+ echo "$section"
107
+ echo "NOTES_EOF"
108
+ } >> "$GITHUB_OUTPUT"
109
+
110
+ - name: Publish to PyPI
111
+ uses: pypa/gh-action-pypi-publish@release/v1
112
+
113
+ - name: Create GitHub Release
114
+ uses: softprops/action-gh-release@v3
115
+ with:
116
+ body: ${{ steps.notes.outputs.body }}
117
+ generate_release_notes: ${{ steps.notes.outputs.body == '' }}
118
+ files: dist/*
@@ -0,0 +1,213 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Cursor
198
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200
+ # refer to https://docs.cursor.com/context/ignore-files
201
+ .cursorignore
202
+ .cursorindexingignore
203
+
204
+ # Marimo
205
+ marimo/_static/
206
+ marimo/_lsp/
207
+ __marimo__/
208
+
209
+ # brainkeeper vault audit reports (contain vault paths, keep local)
210
+ /vault-audit-*.md
211
+
212
+ # Local MCP server config (contains absolute paths, keep local)
213
+ .mcp.json
@@ -0,0 +1,84 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ Two artifacts are versioned independently:
9
+ - **`spec-vX.Y.Z`**: the brainkeeper specification (`spec/`).
10
+ - **`brainkeeper-vX.Y.Z`**: the `brainkeeper` Python package, which contains the vault engine library, the MCP server, and the CLI.
11
+
12
+ ## [brainkeeper-v0.1.0] - 2026-05-02
13
+
14
+ First public release of the `brainkeeper` Python package. Implements spec v0.1.4.
15
+
16
+ ### Added
17
+ - `brainkeeper.core` vault engine library: frontmatter parser and validator, atomic writer with mtime guard, in-memory note index with watchdog-based auto-update, periodic rescanner safety net, and config loader validated against the JSON Schema.
18
+ - `brainkeeper.mcp` server (FastMCP-based, stdio transport) exposing 13 tools across three layers:
19
+ - Layer 0 primitives (5): `read_note`, `list_notes`, `write_note_atomic`, `move_note`, `delete_note`.
20
+ - Layer 1 convention (4): `read_convention`, `list_layers`, `get_template`, `resolve_path`.
21
+ - Layer 2 semantic (4): `find_by_tag`, `find_orphans`, `validate_frontmatter`, `update_frontmatter`, `list_tags`.
22
+ - `brainkeeper.cli` with two subcommands: `brainkeeper init <path>` to bootstrap a vault, `brainkeeper serve --vault <path>` to run the MCP server.
23
+ - MCP server `instructions=` block surfaced to connected clients, encoding the access rule, vault concepts, workflow, and limitations.
24
+ - Spec data (`SPEC.md`, JSON Schema, examples) bundled inside the wheel via hatch `force-include`.
25
+ - Auto-managed `created` and `updated` frontmatter on every write through the MCP. `created` defaults to today on new files, preserved from disk on overwrite. `updated` is always refreshed to today.
26
+ - Archive transition (`delete_note(soft=True)`) refreshes `updated` per spec §12.
27
+
28
+ ### Notes
29
+ - This package was previously developed under the name `brainkeeper-mcp`. It was renamed to `brainkeeper` for v0.1.0 and restructured into the `core`/`mcp`/`cli`/`spec` subpackages described above.
30
+ - Single-vault per server instance. Multiple vaults need multiple `mcpServers` entries with distinct names.
31
+ - `move_note` does not rewrite wikilinks (deferred to v2).
32
+
33
+ ## [spec-v0.1.4] - 2026-05-02
34
+
35
+ ### Changed
36
+ - **Breaking:** §7 Tag taxonomy simplified. The prescribed dimensions table (`domain/`, `topic/`, `project/`, `person/`) is removed. Tags are now plain lowercase kebab-case strings; the `prefix/value` form is still allowed but no longer prescribed. The "domain vocabulary derived from folders" mechanism is gone. There is no implicit vocabulary, just freeform tags.
37
+ - MCP `list_domains` tool removed. Folder-derived domain vocabulary is no longer a spec concept; nothing replaces this tool. Use `list_notes` + `find_by_tag` for tag exploration.
38
+ - Spec cross-references (§3, §5, §10, §15, §16) cleaned up to drop "domain" terminology.
39
+ - MCP server now ships an `instructions=` block via FastMCP that surfaces to every connected client. Encodes the access rule, vault concepts, recommended workflow, and limitations.
40
+
41
+ ### Migration
42
+ - No frontmatter changes needed. Existing tags with `domain/` or any other prefix continue to validate (the grammar regex is unchanged).
43
+ - Remove any tooling that calls `list_domains` (it no longer exists).
44
+
45
+ ## [spec-v0.1.3] - 2026-05-01
46
+
47
+ ### Changed
48
+ - **Breaking:** frontmatter contract pared down to three required fields. `type`, `status`, `deadline`, and `archived` are no longer recognised by the spec. The new required set is `created`, `updated`, `tags`. `updated` is set to `created` on first write and refreshed to today on every edit; it MUST be ≥ `created`. Any other field is allowed and passed through unchanged under the extension rule (vault- or tool-specific concerns like lifecycle status, deadlines, or course metadata live there).
49
+ - §11 capture flow now reads an explicit *intent* from the caller instead of the `type` frontmatter field.
50
+ - §12 archive transition no longer mutates `status` or `archived` in frontmatter. Only `updated` is refreshed; the file moves to `<archive>/<YYYY>/`.
51
+ - §13 (Status semantics) removed. Status is no longer part of the spec.
52
+ - Config schema: `layers.projects.status_field` and `layers.projects.active_values` removed (they configured filtering of the now-removed `status` field).
53
+
54
+ ### Migration
55
+ - Drop `type`, `status`, `deadline`, `archived` from existing notes (or keep them; they become extension fields, ignored by spec validators).
56
+ - Add `updated` to every managed note. For notes never edited since creation, set `updated: <same as created>`.
57
+ - Remove `status_field` / `active_values` from `brainkeeper.yaml` if present.
58
+
59
+ ## [spec-v0.1.2] - 2026-05-01
60
+
61
+ ### Changed
62
+ - `status` frontmatter field is no longer required (moved from required to optional in §6). It remains meaningful for lifecycle types (`project`, `area`, `idea`) but is typically omitted on reference types (`knowledge`, `resource`, `note`) that have no lifecycle. The enum and §13 semantics are unchanged for notes that do carry a status. Tooling SHOULD treat a missing `status` as "no lifecycle" rather than a validation error. This is a constraint relaxation; v0.1.1 notes remain compliant.
63
+
64
+ ## [spec-v0.1.1] - 2026-05-01
65
+
66
+ ### Changed
67
+ - **Breaking:** template directory renamed from `.templates/` to `_templates/`. The hidden dot-folder broke the Obsidian editing workflow (templates were invisible in the sidebar). The underscore prefix keeps templates visible while still marking them as meta so tooling excludes them from indexing and domain derivation. Vaults adopting v0.1.0 must rename their `<layer>/.templates/` directories to `<layer>/_templates/`.
68
+
69
+ ## [spec-v0.1.0] - 2026-04-24
70
+
71
+ ### Added
72
+ - Initial public draft of the `brainkeeper` specification (`spec/SPEC.md`).
73
+ - JSON Schema for `brainkeeper.yaml` (`spec/schema/brainkeeper.schema.json`).
74
+ - Three reference configs: `minimal.yaml`, `daniels-vault.yaml`, `zettelkasten.yaml`.
75
+ - Negative-test fixtures under `spec/examples/.invalid/`.
76
+ - Six-layer structural model (`inbox`, `journal`, `projects`, `areas`, `brain`, `archive`) with colocated per-layer templates under `<layer>/.templates/`.
77
+ - Archive semantics narrowed to completed projects only; retired Areas are deleted or distilled into Brain, not archived.
78
+ - Domain tags: cardinality relaxed to 0..n (optional but recommended); vocabulary derived from folders under `projects/` and `areas/` rather than an enumerated list in the config.
79
+
80
+ [spec-v0.1.4]: https://github.com/dasirra/brainkeeper/releases/tag/spec-v0.1.4
81
+ [spec-v0.1.3]: https://github.com/dasirra/brainkeeper/releases/tag/spec-v0.1.3
82
+ [spec-v0.1.2]: https://github.com/dasirra/brainkeeper/releases/tag/spec-v0.1.2
83
+ [spec-v0.1.1]: https://github.com/dasirra/brainkeeper/releases/tag/spec-v0.1.1
84
+ [spec-v0.1.0]: https://github.com/dasirra/brainkeeper/releases/tag/spec-v0.1.0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Daniel Sierra
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.