CD / tools /lab_sync /README.md
tkadkghdlf's picture
Sync DemoService e2b09b366a64790f3dd1dc93870f72061e3c1aab
e516bd2 verified
|
Raw History Blame Contribute Delete
1.24 kB
# Guarded Lab HTTP sender
This is the prepared Lab installation sender. It preserves the original
`~/.local/share/demoservice-sync/state.sqlite3`, `transfer.lock`, approval guards,
one worker, cumulative route cap, and halt-on-error policy. Its default contract
remains v1; use `--contract-version 2` explicitly for the server-managed session
contract. Never run an old sender concurrently with this installation.
The sender reads only the local Lab approval inventory and its local transfer
ledger. DemoService PostgreSQL connections, schema migration, and storage
verification run on the server. No server DB credentials belong on the Lab.
`--probe-id` sends one currently accepted route in a partial session. It does not
send an approval snapshot. Existing v1 ledger rows never count as v2 art storage;
both actual art UUIDs and the content hash must be verified before a v2 receipt
is recorded. A read-only `--check-only` reads no credential and makes no HTTP
request or local state/lock mutation.
Synthetic offline tests live in `tests/`; the copied approval policy and guard
SQL there are test fixtures. Tests block network connections and use only
temporary synthetic inventories, records, designs, GPX files, and state files.