defaults.museattributes
45 lines 1.7 KB
Raw
sha256:660fcac1df3ab28f61862e961890bd2ca8b754fa0242079d93ca1e25037ec8a6 chore(tests): add docstring to tests/__init__.py so rc14 tr… Human 34 days ago
1 # .museattributes — Knowtation vault merge-strategy defaults.
2 # Written by `muse init --domain knowtation`.
3 #
4 # These three rules encode the core merge semantics for a Knowtation vault.
5 # They are pre-populated because they are almost always correct for any vault;
6 # override by adding higher-priority rules above them.
7 #
8 # Documentation: docs/reference/muse-attributes.md
9
10 [meta]
11 domain = "knowtation"
12
13 # Rule 1 — Frontmatter sets (tags, entities, attachments) are independent.
14 # Tag and entity additions from both branches should always accumulate; the
15 # three-way merge engine can never produce a useful diff-of-diffs for set
16 # dimensions. strategy = "union" accumulates all additions and honours
17 # deletions only when both branches agree.
18 [[rules]]
19 path = "**/*.md"
20 dimension = "frontmatter"
21 strategy = "union"
22 comment = "Tag/entity/attachment sets are independent — accumulate additions from both sides."
23 priority = 20
24
25 # Rule 2 — Inbox notes are locally-authoritative.
26 # Capture plugins write inbox notes from the local message interface; the
27 # remote branch should never silently overwrite a local capture.
28 # strategy = "ours" keeps the local (left) version and discards any remote
29 # edit to an inbox note whose source_id already exists locally.
30 [[rules]]
31 path = "inbox/**"
32 dimension = "*"
33 strategy = "ours"
34 comment = "Inbox captures are local-authoritative; remote edits are discarded."
35 priority = 10
36
37 # Rule 3 — Archived notes are immutable.
38 # Once a note moves to archive/ it should not change. Prefer the local
39 # version; treat any remote edit as an accident rather than an intention.
40 [[rules]]
41 path = "archive/**"
42 dimension = "*"
43 strategy = "ours"
44 comment = "Archived notes are immutable; local version is always preferred."
45 priority = 10
File History 2 commits
sha256:660fcac1df3ab28f61862e961890bd2ca8b754fa0242079d93ca1e25037ec8a6 chore(tests): add docstring to tests/__init__.py so rc14 tr… Human 34 days ago
sha256:d8316ffae901be06347e16ab55be11868eb519dd16ade3e8aa16a99e662f7e62 baseline: rc14 re-baseline after rc3 store corruption recovery Human patch 34 days ago