This directory records the significant architectural decisions for src-control, using a lightweight Michael Nygard format: Context → Decision → Consequences → Alternatives considered.
Each ADR is immutable once Accepted. To change a decision, add a new ADR that supersedes the old one and update the Status line of the superseded record.
| ADR | Title | Status | Phase |
|---|---|---|---|
| 0001 | Implement in Rust | Accepted | foundation |
| 0002 | Content-addressed objects keyed by BLAKE3 | Accepted | foundation |
| 0003 | Snapshot-and-tag model over a Git-style staging model | Accepted | foundation |
| 0004 | Four-crate workspace with a strict dependency direction | Superseded by 0020 | foundation |
| 0005 | Pure in-RAM copy-on-write worktrees, not FUSE | Accepted | 1 |
| 0006 | Bounded blob budget with LRU eviction and optional spill | Accepted | 1 |
| 0007 | In-process Git interop via gix, quarantined in one crate | Accepted | 1 |
| 0008 | Native committed secrets via envelope encryption | Accepted | 2 |
| 0009 | Recipient-based key management and authorization | Accepted | 2 |
| 0010 | Secrets as a snapshot-side registry with an opaque wrapped DEK | Accepted | 2 |
| 0011 | Persistent loose-object store and git-like working tree | Accepted | 3 |
| 0012 | Three-way merge with a snapshot common ancestor | Accepted | 4 |
| 0017 | Accidental-plaintext secret scanner at commit time | Accepted | 5 |
| 0013 | Remote sync via object + ref transfer over a pluggable transport | Accepted | 6 |
| 0014 | Per-file permissions as encrypted paths (convergent encryption) | Accepted; new content superseded by 0043, rotation added by 0051 | 7 |
| 0015 | Packfiles and reachability-based garbage collection | Accepted | 8 |
| 0016 | Git export for round-trip interop | Accepted | 9 |
| 0018 | Git as a remote (bidirectional sync) | Accepted | 10 |
| 0019 | Secret/permission lifecycle (rotation + escrow) | Accepted; per-path rotation added by 0051 | 11 |
| 0020 | Six-crate workspace with a strict dependency direction | Accepted; crate set extended by 0042, 0045, 0046; objio may spawn the system git (0060) |
foundation |
| 0021 | Durability and concurrency hardening for .sc/ |
Accepted | hardening |
| 0022 | sc-native network transport over SSH (trait-mirror wire protocol) | Accepted | 12 |
| 0023 | Agent workspaces — vfs-backed sessions over the persistent store | Accepted | 13 |
| 0024 | History editing via replay + operation log | Accepted | 14 |
| 0025 | Protected merge & replay — perms-aware three-way with decrypt-on-demand | Accepted; reseal recipients gated by 0059 | 15 |
| 0026 | Revocation tombstones — durable prefix-rule revocation | Accepted | 16 |
| 0027 | Bulk re-wrap and multiple escrow keys | Accepted; unaccepted targets skipped by 0059 | 17 |
| 0028 | Network Git remotes (GitHub over https/ssh) | Accepted | 18 |
| 0029 | History-editing polish — amend, resumable rebase, pick abort, merge replay | Accepted | 19 |
| 0030 | Agent sessions and auto-merge of clean results | Accepted; one-session rule superseded by 0056 | 20 |
| 0031 | Hardening & consolidation sweep — closing the P16–P20 review tail | Accepted | 21 |
| 0032 | Signed commits & provenance | Accepted | 22 |
| 0033 | Merge ergonomics — conflict UX beyond markers | Accepted | 23 |
| 0034 | Sparse checkouts / sub-tree sharing | Accepted; private merge-in under sparse in 0044 | 24 |
| 0035 | Streaming pack transfer (bounded-RAM, >4 GiB) | Accepted | 25 |
| 0036 | sc-native HTTP transport (sc+http://) |
Accepted; gaps closed by 0040, 0041, 0042 | 26 |
| 0037 | Partial clone (promisor store + prefix-scoped fetch) | Accepted; refusals lifted by 0048, 0049, 0050 | 27 |
| 0038 | Agent session transcripts as CAS objects | Accepted | 30 |
| 0039 | Security hardening sweep (audit fix-now items) | Accepted | 28 |
| 0040 | sc+http access control (read-only, fail-closed bind, bearer tokens) | Accepted; bind gate narrowed by 0042, token expiry and rotation in its addendum | 29 |
| 0041 | Listener resource limits (connection cap, session timeout, spool cap, accept backoff) | Accepted | 31 |
| 0042 | In-binary TLS — sc+https:// via rustls |
Accepted; CA validation 0054, pin management 0053 | 32 |
| 0043 | Randomized protected-path encryption (dual-read, randomized-write) | Accepted; rotate-for-paths built as 0051 | 33 |
| 0044 | Per-branch access control with opaque private branches | Accepted; sparse merge-in section (#240); reason 4 against opaque refs through Git reversed under an opt-in by 0060 | 34 |
| 0045 | Native desktop adapter and keyless read model | Accepted | 35 |
| 0046 | Bucket remotes via an immutable-pack WAL + one CAS'd manifest | Accepted; compaction built as 0057; Git-carried store as 0060 | 36 |
| 0047 | Want-by-id fetch and explicit gap fill for partial clones | Accepted (built) | 37 |
| 0048 | Presence-based walks for partial clones | Accepted (built); 0055 adds a second kind of gap | 37b |
| 0049 | Merge on partial clones | Accepted (built) | 37c |
| 0050 | Agent sessions on partial clones | Accepted (built) | 37d |
| 0051 | Rotating protected paths (sc rewrap --rotate) |
Accepted (built) | — |
| 0052 | Secret injection by file descriptor (sc run --secrets-fd) |
Accepted (built) | — |
| 0053 | TLS pin management (sc tls) |
Accepted (built) | — |
| 0054 | CA-path validation for sc+https:// |
Accepted (built) | — |
| 0055 | Blob-size clone filter (--filter blob:limit=<size>) |
Accepted (built) | 27 |
| 0056 | Named and concurrent sc ws sessions and sc ws refresh |
Accepted (built, including sc ws refresh) |
20 |
| 0057 | Bucket remote compaction and gc (sc remote compact) |
Accepted | 36 |
| 0058 | sc-forge: a Gitea-compatible Git forge (bare Git, recorded API subset) | Proposed | 38 |
| 0059 | Locally accepted recipients: a seal wraps only to keys this clone accepted (sc policy) |
Accepted | hardening |
| 0060 | Git-carried bucket remotes (sc+git::<git-url>): the bucket WAL stored as refs/sc/* in any Git repository |
Accepted | 39 |
See ROADMAP.md for the phase sequence. ADR numbers are
assigned in creation order, so 0017 — the secret scanner — sequences as phase P5,
ahead of 0015–0016.
- Proposed — under discussion, not yet built.
- Accepted — decided and implemented.
Accepted (built)is the same state stated explicitly: the ADR was written ahead of, or in steps with, its implementation (such as 37b-i and 37b-ii in ADR-0048, or ADR-0051 to 0054), and everything it decides has landed. - Accepted; … by ADR-NNNN — still the record of its decision, but a later ADR changed a current fact (a refusal lifted, a deferred item built, a default narrowed). The body is left as written; read the pointer for today's behavior.
- Superseded by ADR-NNNN — replaced; kept for history.