Copy, sync, move, check, two-way sync and mirror between any two AnyFS stores. A transfer is a plan before it is anything else: a list of actions in a fixed order, with how each file was compared, what the destination would not keep, and a hash; the apply refuses a plan that is not the one approved, guards each write by the revision the plan saw, and checks what it wrote. For stores that merge, the exchange through a shared medium publishes delta files written once, takes the files of the others and puts aside those that are not good, and a merge of two stores is a plan of what each takes; both sign what they hand out with the key of its origin and judge what they take by a trust of their own.
| Fact | Value |
|---|
| Version | 0.1.0 |
| Conformance level | L1 |
| Distributed | github |
| License | PolyForm-Noncommercial-1.0.0, source-available: free for noncommercial use, commercial use needs a license from the owner (see Licensing in Start here) |
| Import it as | @intellectual-frontiers/anyfs-bridge |
#Areas
#Layers
| Layer | Folder | May import of this library |
|---|
| governance | src/governance/ | nothing |
| logical | src/logical/ | src/governance/ |
| logical | src/conformance/ | src/governance/, src/logical/ |
| logical | src/mirror/ | src/governance/, src/logical/ |
| logical | src/exchange/ | src/governance/, src/logical/ |
#Imports
AnyFS, Core, Crypto
#Imported by
AnyFS command line, Estate
#Specifications
#Folders
| Folder | What it is | May import |
|---|
spec-kit/ | The library's own specifications, numbered from 0001. | nothing: Markdown and TSV |
src/governance/ | Layer 1: the modes, the rails, the patterns of a filter, the plan, its actions, losses and refusals. | core and the governance of AnyFS, by package name |
src/logical/ | Layer 2: the inventory of an endpoint, the comparison of files, the plan of a transfer, its apply, the two-way sync and the mirror. Pure: only the operations of the stores it is given. | governance, by relative path; core, the SHA-256 of crypto, and the governance and logical layers of AnyFS, by package name |
src/mirror/ | The mirrored store: a primary that is the authority, replicas that converge on it by the plans of the bridge, the ledgers kept on the primary, the events, and the promotion of a replica. | governance and logical, by package name; the governance, logical and typed documents of AnyFS, by package name |
src/exchange/ | The exchange of replicas through a medium, as delta files written once and taken whole or not at all, with the cursor a replica keeps, the vectors and the pruning; and the plan and apply of a merge between two stores that both merge. | governance and logical, by package name; core, the SHA-256 of crypto, and the merge of anyfs |
src/conformance/ | The laws every pair of stores keeps under these transfers, run by a backend's tests. | governance and logical, by relative path; the conformance and layers of AnyFS, by package name |
suite/ | The tests: every requirement, and the laws run against stores in memory and in a folder. | src/; the test module of commons, by package name; the stores of AnyFS, by package name |
tools/ | The trace check and the packer bun run verify runs. | the trace of mizan, system and the packer of commons, by package name |
#Quality
Quality: 76 tests: 76 passed, 0 failed, 0 skipped, 65 of 65 requirements proved, 0 open issues, 0 open tickets. The tests and issues of the library