Contract Catalog¶
This directory is the only normative specification for current, testable
joplin-md-sync behavior. Runtime modules, user guides, and maintainer notes
link here instead of restating requirements. User procedures start in the
Overview, design rationale and change procedures start
in Architecture, and unpublished build inputs
live under docs/site/.
The key words MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY are
interpreted as described by BCP 14
when they appear in uppercase. Every normative assertion has a permanent ID
and links to automated checks or declarative integration configuration. This
is a repository-scale requirements verification matrix following NASA guidance on
requirements traceability and verification.
Contract Format¶
Every assertion uses this shape:
### `ABC-NNN` - Short title
**Contract:** The implementation MUST ...
**Evidence:**
- [linked test name] - `tests/path.py::TestClass::test_behavior`
For native package-manager behavior, evidence can instead link a Make target
as - [\lock-check`](https://github.com/kogeler/joplin-md-sync/blob/main/Makefile) - `make lock-check`. The catalog
validator checks that the target exists; its execution in CI is the validation,
not a unit test of the package manager. Declarative native integrations can
link their TOML/YAML source followed by- `configuration``. Hosted-service
behavior is verified on GitHub, not simulated locally.
IDs are permanent. Changing or removing an assertion requires reviewing its evidence and every implementation, user, and maintenance reference. A removed assertion retires its ID, which is listed here and never reused:
Retired IDs: AIF-006, AIF-007, SEC-006.
External specifications may explain a requirement but never replace repository evidence. A successful supported Make test run is the execution record.
Index¶
| Contract | Prefix | Scope |
|---|---|---|
| CLI and output | CLI |
Commands, JSON envelope, exit codes, connection resolution, and read-only inspection |
| Workspace | WSP |
Managed Markdown, notebook identity, paths, and local state layout |
| Synchronization | SYN |
Three-way planning, deletes, conflicts, concurrency, journals, and recovery |
| Agent interfaces | AIF |
Shared tool registry, MCP, OAuth, limits, and failure behavior |
| Service | SVC |
Headless installation, credentials, systemd lifecycle, upgrades, and removal |
| Security | SEC |
Token, network, filesystem, content, and destructive-operation boundaries |
| Dependencies | DEP |
Dependency groups, universal lock, isolated environments, audit, and native updates |
| CI and releases | CIR |
Workflow topology, permissions, Pages, versions, and publication |