testsAndMisc/docs/superpowers/contracts/offline-first-sync-2026-11-27.json
Krzysztof kuhy Rudnicki b0886b29a7
Some checks are pending
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
Python tests / test (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
Offline-first sync for endurain and keepass
Endurain import now pulls phone exports into the local inbox before
probing the server, so a down Endurain leaves them queued for the next
run. keepass_sync treats only a 404 as "no remote yet"; an outage or
other status skips the cycle instead of publishing over the remote.
AGENTS.md records the offline-first rule for every syncing tool.

Also bumps hypothesis 6.170.19 and gatelock 0.16.2 for the
dependency-freshness gate.

Bug-class-check: linux_configuration/tests/test_keepass_sync.bats, python_pkg/endurain_import/tests/test_orchestration.py

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 15:48:00 +01:00

16 lines
1.1 KiB
JSON

{
"title": "Offline-first sync for every syncing tool",
"objective": "Syncing apps and scripts save locally first, stay usable offline, sync whenever the remote is reachable, and never read an unreachable remote as an empty one.",
"acceptance_criteria": [
"AGENTS.md (CLAUDE.md) states the offline-first convention for every syncing app or script",
"endurain_import pulls phone exports into the local inbox before probing Endurain; a down server leaves them queued for the next run",
"keepass_sync treats only a 404 as 'no remote yet'; an outage or other status skips the cycle and leaves both vaults untouched",
"Dependency-freshness gate passes (hypothesis 6.170.19, gatelock 0.16.2)"
],
"out_of_scope": [
"Apps extracted to their own repos (todo, diet-guard, wake-alarm, ...)",
"Changing the KeePass merge or CAS logic"
],
"verifier": "pytest python_pkg/endurain_import 104 passed at 100% branch; bats test_keepass_sync.bats 3/3; keepass_sync.sh against a dead REMOTE_URL with a scratch vault: skip, exit 0, sha256 unchanged; check_dependency_freshness.sh --all exit 0."
}