BL-001
Offline convergence and restart
Do real GSP replicas converge after offline writes and a restart, and does the browser build hold up?
Results
Firefox: rejoined device's writes did not arrive (CI attempt 1)
negativeJSON- Expected
- All 15 sync tests pass, including 'a restored device that uploads before reading the relay needs to rejoin, and loses none of its writes'.
- Observed
- 1 of 24 tests failed (23 passed): that test, after 37296 ms, with 'timed out waiting for: the rejoined device's writes to arrive'. Device status at timeout: connected true, pendingUploads 0, pendingDownloads 1, lastError null. The two other e2e files and WebKit passed in the same attempt.
- Method
- Observed CI run 47548951494 (workflow 'CI / Platforms'), attempt 1, job 'Web e2e (firefox)': vitest e2e suite sync.e2e.ts against a real gsp-relay binary built from the pinned GSP revision, two browser contexts. Not reproduced by the laboratory.
- Pinned revisions
siafuDB/siafudb@9beee82c4d7b: head of siafudb#72 (build/rust-1-100) at the time of CI run 47548951494siafuDB/siafudb-gsp@5455b11f86dd: gsp-sync and gsp-relay pinned by siafudb at that head (from the CI log)
- Environment
- Ubuntu 26.04 (GitHub-hosted ubuntu-latest), x86_64, rustc 1.100.1; Node v24.22.3; vitest 5.1.0, Firefox 159.0 (playwright firefox v1572, headless)
- Evidence
- Limitations
- Single observed failure; cause unknown.
- Not reproduced locally or on a different revision.
- The timeout was not changed and browser coverage was not disabled.
Firefox: same run re-run on the same commit passed (CI attempt 2)
positiveJSON- Expected
- All sync tests pass.
- Observed
- The job passed, including the test that failed in attempt 1.
- Method
- Observed attempt 2 (a re-run) of CI run 47548951494, job 'Web e2e (firefox)', same commit and pins as attempt 1.
- Pinned revisions
siafuDB/siafudb@9beee82c4d7b: head of siafudb#72 (build/rust-1-100) at the time of CI run 47548951494siafuDB/siafudb-gsp@5455b11f86dd: gsp-sync and gsp-relay pinned by siafudb at that head (from the CI log)
- Environment
- Ubuntu 26.04 (GitHub-hosted ubuntu-latest), x86_64, rustc 1.100.1; Node v24.22.3; vitest 5.1.0, Firefox 159.0 (playwright firefox v1572, headless)
- Evidence
- Limitations
- A single passing re-run does not show the defect is fixed; it shows the failure is not deterministic.
- A re-run may differ in runner speed and scheduling.
GSP PR 11 CI: offline convergence test never ran
negativeJSON- Expected
- cargo fmt, clippy -D warnings and the test suite pass, so the CI result is evidence that the new BL-001 test passes.
- Observed
- 'cargo fmt --all --check' failed on crates/gsp-sync/tests/bl001_offline.rs (formatting diffs in two places); the clippy and test steps were skipped, so CI produced no evidence either way about the test. 'All checks green' and CodeQL also failed on that PR; CodeQL is org-controlled and was not investigated.
- Method
- Inspected the CI run of siafuDB/siafudb-gsp#11, job 'fmt, clippy, test'. No re-run, no code change.
- Pinned revisions
siafuDB/siafudb-gsp@4bd6e084349e: head of siafudb-gsp#11 (base a01ba1a, main)
- Environment
- Ubuntu 26.04 (GitHub-hosted ubuntu-latest), x86_64, rustc 1.100.1, cargo 1.100.1
- Limitations
- Says nothing about whether the test logic passes; see BL-001-2026-12-06-offline-restart-native.
- The failure is formatting only, observed from the log; the fix was not applied to the upstream PR.
Firefox rejoin timeout: intermittent, cause not established
inconclusiveJSON- Expected
- The e2e result is the same on every attempt of the same commit.
- Observed
- Attempt 1 failed (pendingDownloads stuck at 1 while connected) and attempt 2 passed. With one failure and one pass on identical inputs the rejoin behaviour is intermittent in CI, but whether the fault is in GSP reconnect or replay, in the browser build, or in test timing cannot be told from this evidence.
- Method
- Compared the two attempts of CI run 47548951494 for the same commit and pins.
- Pinned revisions
siafuDB/siafudb@9beee82c4d7b: head of siafudb#72 (build/rust-1-100) at the time of CI run 47548951494siafuDB/siafudb-gsp@5455b11f86dd: gsp-sync and gsp-relay pinned by siafudb at that head (from the CI log)
- Environment
- Ubuntu 26.04 (GitHub-hosted ubuntu-latest), x86_64, rustc 1.100.1; Node v24.22.3; vitest 5.1.0, Firefox 159.0 (playwright firefox v1572, headless)
- Limitations
- Not reproduced by the laboratory; BL-002 owns real-browser synchronisation experiments.
- Two samples only.
- Closing this needs repeated runs on the pinned and the upgraded GSP revisions.
- Follows up
- BL-001-2026-12-05-firefox-rejoin-attempt1, BL-001-2026-12-05-firefox-rejoin-attempt2
Real GSP replicas converge after offline writes, restart and replay
positiveJSON- Expected
- Both replicas hold both nodes; snapshots are equal; a full replay changes nothing; no fork is reported.
- Observed
- The test passed: both replicas hold both nodes, snapshots equal, replay is idempotent, cursor equals the relay length, no fork.
- Method
- experiments/BL-001/tests/offline_restart_convergence.rs: create two Replica instances on one graph, exchange initial state through an in-memory Vec relay, write one node on each side while offline, serialise and restore replica B via to_bytes/from_bytes, push and pull, then replay every relayed item again and compare snapshots, cursors and fork flags.
- Pinned revisions
siafuDB/siafudb-gsp@a01ba1a35468: gsp-sync under test, pinned in Cargo.toml and Cargo.lock (main, Rust 1.100 workspace baseline, PR 8)siafuDB/siafudb-gsp@4bd6e084349e: origin of the test logic (siafudb-gsp#11 head); rustfmt applied, logic unchangedbundu-labs/living-lab@1b41a35e59a6: experiments/BL-001 as run in living-lab#8 CI
- Environment
- Ubuntu 26.04 (GitHub-hosted ubuntu-latest), x86_64, rustc 1.100.1, cargo 1.100.1
- Evidence
- Job 'experiment / BL-001' on living-lab#8: cargo test -p bl-001 passed.
- The test as run. (
experiments/BL-001/tests/offline_restart_convergence.rs)
- Limitations
- The relay is an in-memory Vec; gsp-relay, HTTP, TLS, latency and loss are not exercised.
- No browser is involved.
- Fixed test keys; nothing is claimed about post-quantum protection.
- A single deterministic scenario: it does not show convergence in general.