3a0513de5b
chore: fleet deploy scripts + systemd unit 🚚
...
- deploy/devbox-hub.service: reboot-persistent systemd unit (the one live on .10)
- deploy/redeploy-hub.sh: cross-compile linux/amd64 + ship + restart hub
- deploy/redeploy-client.sh: build + push client to fleet macs
Captures the by-hand deploy flow so redeploys (every M3 endpoint) are one command.
2026-06-22 23:46:53 -05:00
9e1159bec0
docs: M2 done + deployed; M3 in progress 📊 🛰️
2026-06-22 23:44:46 -05:00
55175fa2ac
feat(M2): hub server + transport client + push engine + CLI 🛰️
...
- internal/hub: HTTP server (join/publish/have/blob/push/head/metrics), bearer auth,
blob hash-verify, hand-rolled Prometheus /metrics (no dep)
- internal/transport: device HTTP client for the full wire contract
- internal/syncer: device push engine (build manifest -> upload missing blobs ->
commit snapshot) + .devignore loader; in-process e2e test (join->publish->push)
- meta: idempotent AddSnapshot (content-addressed re-push advances head, no double
refcount) + busy_timeout for multi-process CLI access
- cmd/devbox-hub: serve/token/readonly/revoke; cmd/devbox: real join + publish/push
- config: persist bearer + device id
Verified end-to-end with real binaries: secret blocked, node_modules ignored,
re-publish dedups to 0 uploads.
2026-06-22 23:40:18 -05:00
f6e1f91d67
feat(M2): wire protocol foundation 🔌
...
- pkg/proto: hub<->device wire types + endpoint paths (join/publish/have/blob/push/head/metrics)
- manifest: Marshal/Unmarshal (JSON); ID = BLAKE3 of canonical bytes = blob key = snapshot id
- meta: bearer-token column + IssueBearer/DeviceByBearer + Count (for /metrics)
- identity: FingerprintOf(pubkey) so hub derives the same device id the device does
2026-06-22 23:30:01 -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
1522004e48
fix: foundation hardening from review pass 🛡️
...
- chunk.Split returns ([]Chunk, error); stop conflating read errors with EOF
(latent now, would silently corrupt snapshots once streaming) + manifest propagates
- watch: stop+drain timer before Reset — kills the classic race where a buffered
tick leaks a premature pre-debounce signal (would sync half-written files)
- config.SaveDaemon + identity.Save now atomic (temp+rename) — no truncated config
- secret guard blocks a regular file literally named 'secrets' (dir-pattern slip)
- identity.Load validates PEM block type; devbox status surfaces config read errors
2026-06-22 23:24:55 -05:00
9788442f32
feat(M2): content-addressed BlobStore (disk CAS) 🧊
...
- internal/hub/blobstore: Store interface (Has/Put/Get/Delete) + Disk impl
- sharded root/<first2>/<hash>, atomic put (temp+rename, never over-existing),
idempotent, ErrNotFound sentinel — the open-core seam (S3/R2 later)
- tests: roundtrip, idempotent, missing-errors, no temp leftovers
2026-06-22 23:16:51 -05:00
546270d4f4
docs: mark M0+M1 done, M2 in progress 📊
2026-06-22 23:14:32 -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
ffd4311f20
docs: clean up README footer
2026-06-22 22:50:01 -05:00
6e8dd6f973
docs: tighten v1 scope + add flashy README 📦 ✨
...
Folded post-audit verdict into the spec:
- cut blocking-prompt conflict mode + the manager/member role/grant/clamp
system (-> single server-enforced per-(device,share) read-only bit)
- collapsed 4 conflict-notify modes to 1 (copies + status badge + on-conflict
hook + `devbox conflicts` list); interactive resolver -> v2
- kept WS(events)+HTTP(blobs) split (not pure-WS); bash default + .ps1->pwsh
- content-addressed manifests (no full BLOB per snapshot)
- promoted into v1: default-on secret guard, bandwidth cap, hub /metrics
- new M6.5 `devbox deploy <share> <snapshot>`; v2 backlog section
Add README.md with Mermaid diagrams, comparison grids, emoji, the works.
2026-06-22 22:45:02 -05:00
a4f72c3413
docs: devbox v1 design spec 📦
...
Dropbox-for-devs sync tool. Self-hostable Go hub publishes named shares;
devices join (Docker-style token) and mount shares/sub-paths with r/w perms.
Per-file 3-way conflict model (never blocks, never loses a byte), .devignore,
bash hooks, BLAKE3/FastCDC content-addressed snapshots, cross-platform.
AGPLv3 core + future commercial hosted tier.
2026-06-22 22:33:26 -05:00