|
|
6532c510f5
|
feat(M4) + harden: bandwidth cap + M3 review fixes 🔒🛡️
Bandwidth cap (M4):
- transport rate-limited blob up/download (golang.org/x/time/rate); config.toml
[transfer].max_kbps; daemon applies it per mount; [secrets].extra_patterns too
M3 ponytail review fixes (data-loss + resilience):
- C1: conflict-copy names use nanoseconds + collision probe — second-granularity
timestamps could collide and os.Rename would overwrite a copy (lost edit)
- C3: pull resilience — a filesystem clash (file<->dir) skips that path instead of
aborting the whole batch; network errors still abort+retry. PullResult.Skipped
- C2(partial): manifest skips .devbox-tmp-* (atomic-write temp files never sync).
Kept conflict-copy propagation (design + Dropbox: losing edit survives device death)
- dedup: manifest.SameContent shared (was duplicated in pull)
- tests: file<->dir clash skips one path not the mount; rate-limit throttles
|
2026-06-23 00:29:50 -05:00 |
|
|
|
3884f732b5
|
feat(M2): SQLite hub metadata store 🗄️
- internal/hub/meta: pure-Go modernc.org/sqlite (no CGO -> trivial cross-compile)
- schema: devices, tokens, shares, access(writable bit), snapshots, chunks(refcount)
- AddSnapshot in a tx: insert + bump distinct-chunk refcounts + advance share head
- single access knob = per-(device,share) writable; tokens redeem-once + expiry
- tests: device lifecycle, token redeem-once/expiry, writable default+override,
shares/snapshots/refcounts (dedup within + across snapshots)
|
2026-06-22 23:24:55 -05:00 |
|
|
|
4792c2609d
|
feat(M1): debounced recursive fsnotify watcher 👁️
- internal/watch: fsnotify wrapper, coalesces bursts via debounce timer, auto-
subscribes newly-created subdirs, single Events() signal channel
- tests pass under -race: detect change, pick up new subdir, coalesce burst
Completes M1 — full watch -> filter -> chunk -> manifest -> diff pipeline.
|
2026-06-22 23:12:30 -05:00 |
|
|
|
c2bfb5eac7
|
feat(M1): ignore + chunk + secret + manifest 👀
- internal/ignore: gitignore-syntax .devignore matcher (stdlib, last-match-wins,
** / negation / anchoring, always-ignore .devbox/)
- internal/chunk: FastCDC (jotfs/fastcdc-go) + BLAKE3 (zeebo/blake3); Split/Hash,
dedup-localizes-edits verified (~98% reuse on mid-blob edit)
- internal/secret: default-on deny-list guard (reuses ignore matcher); .env/keys/
certs/secrets blocked, .env.example allowed, user extras + negation un-block
- internal/manifest: tree walk -> filter (ignore + secret) -> chunk -> content-
addressed manifest (ID = BLAKE3) + Diff (added/modified/deleted) + blocked list
Full filter->chunk->manifest->diff pipeline tested green.
|
2026-06-22 23:10:21 -05:00 |
|
|
|
79f91597ad
|
feat(M0): skeleton — cobra CLI, Ed25519 identity, machine config 🦴
- cmd/devbox: join/status/version + stubbed start/stop/publish
- cmd/devbox-hub: version + stubbed serve/token
- internal/identity: Ed25519 keypair gen/save/load (0600), fingerprint
- internal/config: daemon.toml read/write (hub + mounts), XDG-aware dir
- tests: identity round-trip/idempotent, config round-trip
devbox join now generates a device identity and records the hub locally.
|
2026-06-22 23:01:00 -05:00 |
|