aienos.com
Source of www.aienos.com, served from my own hardware
Brought by drakestapleton
aienos.com / om / hive-render / PRIVACY-REPLAY.md
| 1 | # Hive privacy replay |
| 2 | |
| 3 | Host-only verification. The collector is run only with newly created empty source |
| 4 | directories. No live transcripts, service configuration or publication endpoint |
| 5 | are used. Existing Python oracles remain unchanged; this replay exercises their |
| 6 | renderer and receiver cases without invoking Python, and adds collector startup |
| 7 | configuration controls. Node is a verification tool, not a serving dependency. |
| 8 | |
| 9 | ## Run |
| 10 | |
| 11 | Use Linux AArch64 and the committed compiler whose SHA-256 is |
| 12 | `734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61`. |
| 13 | From the repository root: |
| 14 | |
| 15 | ```sh |
| 16 | cargo test --workspace |
| 17 | cargo clippy -p hive-feed --all-targets -- -D warnings |
| 18 | cargo build -p hive-feed --bins |
| 19 | scratch=$(mktemp -d) |
| 20 | om/hive-page/omc < om/hive-render/render.om > "$scratch/render" |
| 21 | chmod +x "$scratch/render" |
| 22 | cmp "$scratch/render" om/hive-render/hive-render |
| 23 | cd om/hive-render |
| 24 | node test-replay.mjs "$scratch/render" ../hive-page/omc "$scratch/replay" ../../target/debug/hive-receive ../../target/debug/hive-feed |
| 25 | ``` |
| 26 | |
| 27 | Check the compiler digest before execution, and stop if compilation or any check |
| 28 | fails. The `native-privacy` CI job performs that digest check and runs the replay |
| 29 | on an isolated AArch64 host. Its trigger includes collector and renderer changes. |
| 30 | |
| 31 | ## Exercised evidence |
| 32 | |
| 33 | Local execution used Node v24.21.0 and the exact compiler above. It passed: |
| 34 | |
| 35 | - Native renderer regeneration equals the committed executable. |
| 36 | - Deterministic output, every byte through the production escaper, Unicode, XSS |
| 37 | payloads, malformed input, schema and field limits, hierarchy, dates, deep |
| 38 | trees and both output pools. |
| 39 | - Every tested human interaction role refuses with no partial renderer output; |
| 40 | an assistant reply remains accepted. |
| 41 | - Actual receiver publication, failed-render retention, malformed and human-role |
| 42 | snapshot refusal, and overlapping-stream ordering. |
| 43 | - Actual collector startup with isolated empty source directories: missing list |
| 44 | and invalid alias refuse before output; explicit empty and valid lists work. |
| 45 | - Rust unit controls first failed against the draft for a missing private list |
| 46 | and an arbitrary public alias. They pass with the corrections. The full |
| 47 | workspace suite and strict hive-feed clippy check also pass. |
| 48 | |
| 49 | The original main renderer accepted the canonical synthetic `drake`-role |
| 50 | snapshot with exit 0. The corrected renderer refused that same snapshot with |
| 51 | exit 108 and no output. An earlier noncanonical fixture was rejected by both |
| 52 | and is not counted as the negative control. |
| 53 | |
| 54 | The date oracle was obtained from WolframLanguageEvaluator: |
| 55 | `Table[{y,DateDifference[{y,2,28},{y,3,1},"Second"]},{y,{1900,2000,2024,2026}}]` |
| 56 | returned 86400, 172800, 172800 and 86400 seconds respectively. These are the |
| 57 | expected values used by the replay, not timings measured from the program. |
| 58 | |
| 59 | ## Limits |
| 60 | |
| 61 | This checks source and isolated host behavior. It does not activate the live |
| 62 | collector, remove previously published material, or promise perfect |
| 63 | secret detection. Since 2026-11-14 (Drake: "everything I am doing is public") |
| 64 | the collector has one filter. The sentence at the top of |
| 65 | `crates/hive-feed/src/privacy.rs` is: Unicode format characters (Cf) are |
| 66 | removed, then tokens are split on the original text's Unicode White_Space and |
| 67 | each token is normalized with NFKC, so a space that normalization creates |
| 68 | stays inside the token; ASCII sentence punctuation (`. , ; : ! ?`), brackets, |
| 69 | and quotes are trimmed from its edges and written back; a token that contains |
| 70 | `@` or a numeric character is withheld unless it is a run of fewer than six |
| 71 | numeric characters and no letters (`94043`, `(415)`), or ASCII letters with at |
| 72 | most one hyphen and exactly one trailing numeric character (`hunter2`, |
| 73 | `OAuth2`, `UTF-8`), or a hyphenated name of words and single digits totaling |
| 74 | at most five, or one word followed by a number of two to five digits |
| 75 | (`gpt-6-astra`, `claude-opus-5-5`, `COVID-19`, `UTF-16`, `ISO-8601`), or a |
| 76 | density suffix of one or two digits, a lowercase `x`, a dot and letters whose |
| 77 | local part would itself be kept (`icon@2x.png`, `image@2x.png`, |
| 78 | `jane@2x.com`), or an address on the operator allowlist (`Owner@Example.org`), |
| 79 | or a whole-token credential of equal-length letter strings whose password |
| 80 | repeats a letter (`user:pass@10.1.2.3`; a scheme wrapper does not keep a |
| 81 | userinfo the bare form withholds); any other token is split at `@`, `:`, `/` |
| 82 | and `\` and each part is judged by this same rule, so an address, a phone, or |
| 83 | a key after a colon or in a URL tail is withheld on its own; any other `@` |
| 84 | with a non-empty side, after ASCII quotes are removed, is an address and needs |
| 85 | no well-formed domain, and any other numeric character, including groups |
| 86 | joined by a non-alphanumeric separator when six or more are present |
| 87 | (`415.555.0199`, `2024-11-15`), is withheld, and a token with neither `@` nor |
| 88 | a numeric character is kept. Written limits of that shape: a |
| 89 | letter-only password and a base64 spelling with no digit stay; a secret split |
| 90 | by spaces stays; `v1.2.3`, `x86_64`, `sha256`, a phone, ZIP+4, and a hex digest |
| 91 | are withheld; a lookalike that is not a decimal digit stays, because there is |
| 92 | no character list. There is no quote matching and no private repository list. |
| 93 | The operator's own addresses come from `--own-emails`; a missing list is |
| 94 | accepted (every address is then withheld) and an unreadable one refuses before |
| 95 | publication. |