From 15df527064fbc6754c540e0346fbdd0d54584d62 Mon Sep 17 00:00:00 2001 From: Dasemu Date: Mon, 16 Nov 2026 12:53:38 +0100 Subject: [PATCH] docs: record phase 1 validation on the real Gitea Co-Authored-By: Claude Sonnet 5.5 --- CLAUDE.md | 2 +- docs/phase1.md | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 42bc4e5..b377ac4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ Linux tool that keeps chosen git repos continuously in sync across machines, including uncommitted work, via snapshot refs (`refs/sync//`) on a primary remote. Planned as a Rust workspace (core, providers, daemon, CLI, Tauri GUI). Currently in -**Phase 0 done, Phase 1 implemented (pending real two-PC validation and review)**: `grove-core` + `grove` CLI (`status`, `snapshot`, `add`, `sync`, `doctor`); daemon, GUI and providers do not exist yet. Do not start a +**Phase 0 done, Phase 1 implemented and validated against the real Gitea with two simulated machines (real two-PC run still pending)**: `grove-core` + `grove` CLI (`status`, `snapshot`, `add`, `sync`, `doctor`); daemon, GUI and providers do not exist yet. Do not start a new phase before its predecessor's results are written to `docs/`. ## Commands diff --git a/docs/phase1.md b/docs/phase1.md index dc6fe0c..2f7865e 100644 --- a/docs/phase1.md +++ b/docs/phase1.md @@ -61,3 +61,24 @@ they may only contain letters, digits, `-` and `_`. - Daemon, file watching, scheduling, IPC (Phase 2). Locking against concurrent user git commands. - Migration of repos with submodules or existing linked worktrees; `new` and provider code (Phase 4). - Resolve actions for `Diverged` (Phase 5): today it is only detected and left intact. + +## Validation on the real Gitea (2026-11-16) + +Two simulated machines (`pca` as a plain clone, `pcb` migrated with `grove add`) against a +throwaway private repo on git.zenvairo.es (Gitea 1.25.4, HTTPS), deleted afterwards. All via the +`grove` binary: + +| Scenario | Result | +|---|---| +| `add` on a plain clone | Migrated, backup tar + ref created | +| Uncommitted + untracked work on A, `sync` on both | Snapshot pushed to `refs/sync/pca/main`, applied on B | +| B has local edits when A's work arrives | `BehindDirty`, local edits untouched, snapshot declined | +| A commits and pushes, B clean | B fast-forwarded | +| Branch created then deleted upstream | Worktree materialized, then archived with a backup ref | +| B has an unpushed commit, A pushes | `Diverged`, nothing modified | + +Not covered: real two-PC run (same code paths, but different machines/filesystems), push-mirror +exclusion of `refs/sync/*` on this Gitea (needs a mirror target and credentials). + +Observed UX noise: a stale snapshot from another machine is reported as "not applied" on every +pass until that machine syncs again.