Kontraktet

Konventionerna, och orden de använder

En konvention utan deklarerad styrka blir argumenterad om varje gång den är obekväm. En som säger invariant har redan haft det samtalet.

Invariant — bryts aldrig 8

vault_relative

All paths above are vault-relative. The vault root is determined by walking up from CWD until _inbox/, _outbox/, or .obsidian/ is found, or by VAULT_ROOT env var, or by a tool-specific override.

singleton_surfaces

The test for singleton status is stronger than counting instances: would a SECOND, FOLDER-SCOPED instance defeat the reason the surface exists? (CR-036). .handoff/ is outward-facing, self-carrying and holds no vault links (CR-033) — a scoped copy would make the snapshot inherit a context it is built to survive without. .knowledge/ synthesises ACROSS sources with INDEX.md as the single entry point (CR-027) — a scoped copy would prevent the cross-source synthesis that justifies the layer. RESOLVED 260907: .transcripts/ and .ephemeral/ are now singleton. Both had scoped copies — .transcripts/ one level down (consolidated to root under human authorisation, with relative links repaired in the same operation) and .ephemeral/ in three places (all empty, removed). Read-blocked content is only ever relocated on explicit human instruction, never by a skill acting on its own; the link repair is part of the same operation because a moved read-blocked file whose references still point at the old path is worse than the duplication it fixed.

INDEX.mdCONTEXT.md_inbox/_outbox/_config/.handoff/.knowledge/.transcripts/.ephemeral/_callcards/_toread/

single_inbox_outbox

Exactly one _inbox/ and exactly one _outbox/ per vault, both at vault root. Per-folder inboxes/outboxes are not part of this contract.

manifest_edit_in_place

A manifest that already exists is edited, never regenerated (CR-102). A skill that changes an existing manifest changes only the lines it means to change and carries every other line through verbatim. The dispatcher-owned fields (status, status_note, channel, contact) are never dropped, reordered out of the field block, or reset to a template value by a skill. Read the manifest immediately before writing it and compare with what was last read: if it changed (a status appeared, a field changed), stop and report instead of writing over it. A manifest whose status is past draft (ready, sent, withdrawn) is settled: body sections may be appended to (the outcome and timeline sections), its field block is left alone, and a new version of the material is staged as a new item. Invariant because a violation loses the only record that something left the vault, and a manifest that silently reverts to not-sent invites a second send of the same message

config_resolution_order

/ops resolves config in this order: project-level .claude/ops-config.yaml > nearest <folder>/_ops.yaml walking up from CWD > <vault>/_config/base.yaml > skill base.yaml. First match wins. Implemented in v1.16.0 (CR-011). The pre-v1.16.0 chain (~/.claude/skills/{org}-ops-config/{org}.yaml) is deprecated and removed in v1.17.0; until then it acts as a fallback between vault-wide and skill defaults with a one-time per-session deprecation warning.

dot_surface_levels

Dot surfaces are of two kinds and skills must treat the second as a typed category, not a list of names. DORMANT (.archive/, .notes/, .ephemeral/, .analytics/): present, rarely read, safe to read on demand. BLOCKED — read access itself is constrained: .transcripts/ = read-block, never read back unattended and never quoted into summaries or insights; .handoff/ = total block, untouched by ops/insights/analytics/sweep/lint/normalize, never indexed, read only when named (CR-033). A new blocked surface must inherit the behaviour without patching each skill. NOTE: .knowledge/wiki/ is NOT blocked — it is read freely and often. Its constraint is WRITE-side (generated, hand-editing forbidden, owned by /insights synthesize, CR-027), which is a different axis; see prefix_known_exception.

walk_skip

Every folder walk that indexes, counts, summarises, sweeps, lints or extracts insights skips these folders (CR-180, CR-182). Most carry a dot, so a walker that drops every dot-folder skips them already; _callcards/ and _toread/ do not, because they are views for a person read on a phone, and a phone cannot pin a dot-folder. A dot-only filter therefore walks straight into them, and a view read back as source synthesises a view of itself. ONE LIST, READ, NOT COPIED: scripts read it through skills/ops-base/walk_skip.py; skill prose names the list rather than repeating it. A vault may ADD names in its config chain (vault_conventions.walk_skip), e.g. after renaming a surface; it can never remove one. The three guards that replace structural isolation for the underscore surfaces: this declared list, no file in them ever carrying a YYMMDD- prefix or a role keyword (the patterns that leaked .handoff/, CR-033), and one root folder each rather than one per contact.

audio_transcript_pairing

Audio in _inbox/.audio/<basename>.m4a and the matching transcript at _inbox/<basename>.md are paired by basename. Tools that rename one must rename the other. Detailed in CR-012. AND AUDIO HAS AN EXIT (CR-170): when the entry is routed, the audio LEAVES the inbox. Where it goes is declared per vault: this contract carries the DEFAULT (audio_archive on the _inbox/.audio/ entry, .archive/.audio/), and a vault OVERRIDES it in its own config chain under vault_conventions.audio_archive, which wins. The contract requires only that a destination exist and that the inbox is not it. A vault whose archive lives outside the vault declares the host address rather than a machine-local mount point, because audio_path is read by whichever machine opens the vault, and a mount point is true on one machine only. The default keeps audio inside the vault, which is right for a vault that is not synced and wrong for one that is -- the raw recording is the source of both the read-blocked transcript archive and everything derived from it, and on one measured vault it sat unprotected in a cloud-synced folder while its derivatives were locked. The entry keeps a RESOLVABLE POINTER: audio_path moves to the new location, audio_path_was keeps the previous one and audio_archived the date -- an archive whose filenames cannot be resolved back to a conversation is a heap, and on one measured archive 69 of 495 files carried a recorder default name that only the vault register could resolve. REMOVING a vault copy requires a counterpart verified on CONTENT, never on bytes: walk the ISO-BMFF boxes, concatenate every mdat payload and hash that (skills/inbox/audio_verify.py). Of 64 measured pairs, 37 existed in the archive and NONE was byte-identical -- 160 to 200 bytes of container timestamps and sequence numbers differ -- while 64 of 64 matched on mdat. A byte compare calls every one a different recording, and a threshold on how much differs is worse, because the tail is proportional to the file. A pair that does not verify is reported, never removed. The pairing rule alone is satisfied by any new capture tool on its first day, which is why a suite that swaps capture tools can lose the exit without noticing: one measured vault grew to 64 files and 1.6 GB in 14 days, 115 MB a day, after a retired watcher was replaced and nothing took over the exit.

Standard — bryts med skäl 11

placement_classes

Every declared path belongs to exactly one placement class (CR-036). SINGLETON — exactly one, at vault root; a second instance is a finding: INDEX.md, _inbox/, _outbox/, _config/, .handoff/, .knowledge/. PER_FOLDER — appears in every folder of its kind: _meta.yaml, _insights.yaml, _tasks.yaml, _manifest.md, .archive/. PER_FOLDER presence can be CONDITIONAL (CR-040): a folder declaring workflows.task_ledger.mode external or none legitimately has no _tasks.yaml, and that absence is a declaration, not missing data — readers must not treat it as an empty or stalled folder. PER_BOUNDARY — appears where the boundary it describes actually applies: CLAUDE.md, _ops.yaml, CHANGELOG.md, README.md.

prefix_conventions

The prefix answers ONE question: is this surface READ in everyday work? (CR-034). Underscore = read routinely, sorts first: folders (_inbox/, _outbox/, _contacts/, _config/, _private/, _products/, _infrastructure/) and structure-bearing files that recur in every folder of a kind (_tasks.yaml, _insights.yaml, _meta.yaml, _manifest.md, _ops.yaml, _INDEX-*). Dot = read rarely, on demand, or never. Archive is ALWAYS .archive, never _archive. A dated post never takes underscore — it takes YYMMDD-.

Testet. is this surface read in everyday work? yes -> underscore, no -> dot

Undantag. .knowledge/; .handoff/_archive

prefix_known_exception

.knowledge/ is READ frequently — INDEX.md is the documented first stop for any knowledge question — so by the rule above it would take an underscore. It keeps the dot for compatibility: the name is established in CR-027, INDEX.md, vault CLAUDE.md and every [[wiki]] link, and renaming costs more than the consistency gains. Declared here as a KNOWN EXCEPTION rather than hidden behind a rule it breaks. Do not cite .knowledge/ as precedent for dot-prefixing a new read surface. SECOND DECLARED EXCEPTION: .handoff/_archive keeps its underscore against the archive-is-always-.archive rule, because .handoff/ carries a TOTAL BLOCK (CR-033) — the surface is not touched by any skill, including to rename it. Exception by necessity, not by preference.

generated_view_isolation

A generated READ view that lives among its own source material must be isolated STRUCTURALLY, not by a skip flag. Put it in a hidden subfolder (<folder>/.status/current.md) rather than beside the sources as <folder>/_status.md. Reason: CR-033 found four skills reaching .handoff/ files despite an explicit skip-list, because they globbed on the YYMMDD- filename prefix rather than consulting the list. A per-folder markdown file among meeting documents is easier to hit by accident than one in a dot-folder. The dot here does not mean rarely read — the user opens it deliberately; it means unreachable by scanners, which is the .knowledge/wiki/ pattern applied at folder scope.

Undantag. _callcards/

system_file_language

System and structure files carry ENGLISH names regardless of the language of their content: _config/priority.md, _config/naming-prefix.md, _inbox/_frame.md, .status/current.md. Content stays in the vault's working language. Applies going FORWARD, and THE GRANDFATHER CLAUSE IS A TEST, NOT A LIST (CR-171): a structure file whose name is READ BY A SCRIPT, and whose rename would cost more than the consistency gains, keeps the name it has -- and THE VAULT DECLARES IT (view_files in the config chain) instead of this contract enumerating it. The derived registers with Swedish names (_INDEX-agare.md, _INDEX-koppling.md, _INDEX-maskiner.md, _INDEX-objektmodell.md, _INDEX-verksamheter.md) are EXAMPLES of the test passing, not its boundary; one vault had four more files meeting the same test and named in no list, so a reader comparing the vault against this contract found four violations that were not violations. A list goes stale where the test would not. The cost the test weighs is asymmetric, and that is the point: a name only two test strings and one line of skill prose depend on is cheap to change, while one a vault-side generator outside this repository also reads is not -- same rule, two prices, which an enumeration cannot express. The generated wiki articles under .knowledge/wiki/ likewise keep the language of the corpus they summarise.

identifier_language

Identifiers are ENGLISH; the words a person reads may be in any language, and are data rather than literals in code. This covers schema field names, enum values, status keys, config keys, dictionary keys and variable names — everything a second tool must agree with in order to interoperate. Display text (a manifest's Status wording, an external board's column name, a generated view's headings) stays in the vault's working language and lives in a settings or vocabulary file, so changing it is a settings change rather than a code change. Where an identifier and its label were historically the same string, the LABEL keeps the existing spelling: renaming a key costs nothing, while renaming a label changes what an external system or a person sees. A reader meeting a value it does not recognise should tolerate it rather than silently treat it as the default — see task_statuses, where recognising only the canonical set made finished tasks count as outstanding. THIS DECLARATION FOLLOWS ITS OWN RULE: where a field is named here, it is named by its identifier, not by the label a vault happens to write it under. Five entries described a manifest's fields as Status/Kanal/Kontakt until 2026-09-21, which reads as Swedish identifiers in a public contract and invites a tool to hardcode the label. ENFORCED SINCE CR-171 for one class: a vault-local display FILENAME may not appear as a literal in skill code, skill prose or a test -- scripts/check-terms.py rejects it, and the names live in view_files in the config chain. Two had leaked in AFTER this rule shipped (a triage document in a skip-list, a generated view asserted as contract text in a test), which is the argument for a check rather than another sentence: a vault working in English could not rename either file without editing the suite and breaking two tests, which is precisely what this rule forbids.

filename_role_keyword

A filename is YYMMDD-<role>-<description>.md (CR-089). The ROLE keyword is an identifier — scripts and skills select files by it — so it is ENGLISH and comes from `terms:` (`file:`). The description stays in the working language and keeps å/ä/ö (CR-021). FORWARD ONLY: existing files are never renamed; every reader also accepts the term's `legacy_file:` keywords, and a check flags only files dated on or after the release. A series' declared note_suffix / agenda_suffix always wins over the default keyword, because a series that changed shape mid-history reads as a broken carry-forward chain.

one_term_per_concept

Every concept has one term, declared once in `terms:` (CR-089). Skill names are nouns (the place or object owned) unless declared `kind: command_name`; subcommands are verbs, or `<object> <verb>`; a verb means the same thing in every skill; the loop's step ids ARE the command verbs; anything outside the loop is named for what it repairs or explains. A localized word not declared in a term's language column is drift. `avoid:` phrases are checked by scripts/check-terms.py.

write_ownership

Independent of the prefix, every surface declares who may write it. HUMAN: _inbox/_capture.md, _inbox/_frame.md, _meta.yaml, .handoff/ (once, then frozen). GENERATED — hand-editing forbidden: .knowledge/wiki/ (/insights synthesize, CR-027), _INDEX-maskiner.md and _INDEX-koppling.md (scan.py), the personal working-document view (CR-035). MIXED: _tasks.yaml, _insights.yaml. A generated surface that is edited by hand loses its next regeneration silently — which is why the property is declared rather than inferred from the prefix.

audit_lifecycle

An audit or review document lives in _inbox/ only WHILE IN USE. Once its decisions are made and executed it moves to _inbox/.archive/. An audit left in place after execution becomes a competing source of truth against the working document (observed 260907). _inbox/ normally holds at most three CONTENT files: the working document, one active audit, one active review. Declared system files do not count against the ceiling (_capture.md, _frame.md, _inbox.yaml, _tasks.yaml) — they are infrastructure of the surface, not material passing through it. More than three content files means something has taken up residence, which CR-025 forbids in principle but does not measure.

stale_vs_junk

Stale is not junk, and IN TRANSIT is neither (CR-169). Three destinations, one question each, and the question is asked AT THE DROP rather than later by gravity. .archive/: was it current and is now outdated? Kept, never deleted. <inbox>/.files/: does it have a vault destination it has not reached yet? It is in transit, and its age is a promise nobody kept. .ephemeral/: does it have no vault destination at all? It may die, swept after 14 days (CR-024). Deciding at the drop is exactly what makes the sweep safe -- anything allowed to die was declared homeless on arrival; a sweep over material routed by gravity is a guess. BOTH drop zones age, with different meanings, and both declare stale_after_days (default 14) on their vault_root entry; /ops check reports each and says which meaning applies. Measured once on a live vault: .files/ had no ageing rule at all, so nothing in it could ever be late -- it held an entry five weeks past use, and material whose real owner was another repository and which belonged in .ephemeral/ where it would have been swept; .ephemeral/ had 33 of 44 entries past the sweep. The two zones failed in opposite directions, which is what an uncounted rule does.

Riktlinje — omdöme 2

changelog_readme_conditions

CHANGELOG.md belongs only where history is actually kept — contacts, organisations, projects, products. A CHANGELOG in a folder that never retires anything is noise (observed: 130 of 174 have no sibling .archive/). README.md belongs only where a folder needs explaining to someone OTHER THAN its author (observed: 269 instances). Forward-looking: governs new folders, and is a sweep WARNING rather than an error. INDEX.md is root plus generated registers only.

binary_archive

Heavy binaries (slides, screenshots, decks, PDF bundles, video) are archived OUTSIDE the vault and the vault keeps a pointer -- the same exit as audio (CR-170), generalised by CR-182. Where they go is a vault decision, declared in its config chain as an optional map vault_conventions.binary_archive: {personal: <host address>, <venture>: <host address>}. THE DESTINATION FOLLOWS WHOSE WORK THE MATERIAL IS, not whose name it was presented under: a person's own talk given in an employer's name is the person's. Declare the host address, not a machine-local mount point (as for audio). Absent, a skill asks rather than guessing; the prose rule in a vault's CLAUDE.md stays the explanation.

Citerat ur kontraktet, som är engelskt. Ett citat i original kan inte drifta från sin källa.

Termerna39

Ett begrepp, ett ord — i skillnamnet, underkommandot, loopsteget, filnamnet och här. Identifieraren är engelsk; det svenska ordet är den enda tillåtna översättningen.

TermSvenskaLoopstegFilnamnAnmärkning
vaultvalv
ventureverksamheta top-level business folder; the config key `organization` keeps its name
projectprojekta folder whose config runs the loop
contactkontakta folder under _contacts/, with no config
configkonfigurationthe resolved chain: project, _ops.yaml, _config/base.yaml, defaults
meetingmöteone occurrence: a meeting, a call or a recording
seriesserie
episodeavsnittepisodeone published recording of a series the vault processes; the unit of the podcast profile (CR-123)
profileprofilthe bundle of defaults a project selects with `profile:`; not a meeting type (CR-123)
follow-upuppföljningannouncements in a summary under the podcast profile: plans, the next episode, calls to action. Never tasks (CR-123)
sessionsessiona Claude Code session; in older text also a meeting of a series
transcripttranskriptthe input; the raw copy lives in .transcripts/
summarysammanfattningprocesssummaryläses fortfarande:samtal, sammanfattning, mötethe config keys note_suffix keep their name
agendaagendaprepareagendaläses fortfarande:förberedelse, preparation
facilitator sheetfacilitatorsbladfacilitatefacilitator
carry-forwardöverföringcarry
recaprecaprecaprecap
prioritiesprioriteringarpriorities
contentunderlagcontentincoming material the vault received and did not produce: a report, a newsletter, an automated digest. Not a meeting -- it has a sender, not participants, and no facilitator. CR-105
correspondencekorrespondenscorrespondencea two-way thread with a person: turns alternate and a decision may be reached in the exchange. Sender and recipients PER TURN, never a participant list. One-way material is `content` instead. CR-080
taskuppgiftthe action-table column (Action / Åtgärd) is a template-contract heading (CR-018) and keeps its label
ledgeruppgiftsregisterwhere tasks live; matches workflows.task_ledger
indexindexthe generated _INDEX-* files; a project REGISTRY (CR-086) is a different, hand-written thing
insightinsikt
ruleregelan insight confirmed often enough to be loaded as a standing instruction (CR-013)
consensuskonsensusan insight confirmed by enough independent voices and not contradicted; knowledge about the conversation, NEVER loaded as an instruction (CR-123)
themetemaa subject a series keeps returning to, declared in the project's _themes.yaml (CR-124)
conventionkonventionthe contract's rules for the vault (vault_conventions.conventions, CR-092)
standardstandarda convention's middle level: holds generally, exceptions named (CR-037, CR-092)
wikiwikicompound
handofföverlämninghandoff
checkpointkontrollpunktthe place where a person decides because generated confidence would not be checkable. Declared by `manual: true` in working_loop, and the same principle behind every seal, every gap marker and every refusal to infer an owner - the checkpoint IS the work, not a stage after it, and the process serves the person who owns the outcome rather than the person serving the process. `sign-off` is deliberately NOT in `avoid`: a third party's approval of a document is a legitimate second meaning this suite uses in /preparation and /company, and the rule above explains such a word instead of banning it
fetchhämtafetchan external system into a local archive; component ids keep 'archiver'
archivearkivthe fetched local copy only
snapshotögonblicksbilda dated file inside an archive
retirepensionerato .archive/ or a tombstone; the folder keeps its name
closestängaa resolved outbox item, filed with its recipient
ops · kommandonamnthe config layer; the suite's major part
preparation · kommandonamnthe config-free form of /ops prepare

Ur ecosystem.yaml, kontrakt 52 · core-skills 1.98.1 · läst vid bygge 2026-11-27