| … | … | @@ -1,7 +1,7 @@ |
| 1 | 1 | # favela-bridge |
| 2 | 2 | |
| 3 | 3 | Projects a node's own favela records onto the networks its identity has turned on. Reads |
| 4 | | `favela-peer`, decides, and drives the sinks. |
| 4 | [favela-peer](../favela-peer), decides, and drives the sinks. |
| 5 | 5 | |
| 6 | 6 | ``` |
| 7 | 7 | favela-bridge plan every record and report; publish nothing |
| … | … | @@ -31,7 +31,8 @@ Dry by default. Projection is publication: it puts words under an identity on a |
| 31 | 31 | forget, so a bare run says what would happen and does nothing. |
| 32 | 32 | |
| 33 | 33 | `--watch` always sends, and `--send` has no bearing on it. The two flags read as orthogonal and are |
| 34 | | not — the deployed pgh args are `["--watch"]` with no `--send`. Use `--limit 0` for a watch that sends |
| 34 | not — the deployed [pgh](../pgh) args are `["--watch"]` with no `--send`. Use `--limit 0` for a |
| 35 | watch that sends |
| 35 | 36 | nothing. This is deliberately not "fixed" by making watch honour `--send`, because both deployed |
| 36 | 37 | daemons rely on it and would silently stop publishing. |
| 37 | 38 | |
| … | … | @@ -47,7 +48,8 @@ compares against the repo and writes only a real difference. |
| 47 | 48 | |
| 48 | 49 | `favela-peer` must not know what atproto is; `favela-peer/test/boundary.test.js` enforces it, from |
| 49 | 50 | hyper-social #61 §10: *"the moment the daemon imports the projection the dependency has been |
| 50 | | inverted"*. And `hyper-proto-peer` signs a production DID. So the projection lives in neither. |
| 51 | inverted"*. And [hyper-proto-peer](../hyper-proto-peer) signs a production DID. So the projection |
| 52 | lives in neither. |
| 51 | 53 | |
| 52 | 54 | It is also where the reach decision belongs. `favela-markdown/lib/reach.js` exists because that check |
| 53 | 55 | would otherwise be written three times and the third one would eventually be written wrong. One |
| … | … | @@ -59,9 +61,9 @@ Two independent gates, and both must pass: |
| 59 | 61 | |
| 60 | 62 | - **`maxReach(roomType, verb)`** — what a room *may* reach. A followers room cannot reach bsky at all, |
| 61 | 63 | because atproto has no addressing and a projection it cannot restrict is a leak. |
| 62 | | - **the identity's `reach` preference** — what its owner has *asked* for, set in favela-surface's |
| 63 | | settings and stored in the peer's own feed. Read every cycle: unticking a network withdraws consent, |
| 64 | | and a cached copy would keep publishing. |
| 64 | - **the identity's `reach` preference** — what its owner has *asked* for, set in |
| 65 | [favela-surface](../favela-surface)'s settings and stored in the peer's own feed. Read every cycle: |
| 66 | unticking a network withdraws consent, and a cached copy would keep publishing. |
| 65 | 67 | |
| 66 | 68 | A failure to read either is off. Unknown consent is not consent. |
| 67 | 69 | |
| … | … | @@ -163,7 +165,8 @@ throwing. |
| 163 | 165 | ### `lib/peer.js`, `lib/tid.js` |
| 164 | 166 | |
| 165 | 167 | `FavelaPeer` is re-exported from `favela-identity/lib/peer-client.js` — one copy of the wire format, |
| 166 | | because ap-bridge reads the same records to project the fediverse and a protocol client written twice |
| 168 | because [ap-bridge](../ap-bridge) reads the same records to project the fediverse and a protocol |
| 169 | client written twice |
| 167 | 170 | drifts. `tidFor(name)` pairs a favela record name with an atproto rkey, which is what makes the two |
| 168 | 171 | names pure functions of each other. |
| 169 | 172 | |