Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/open-humanity/issues/2ee25085a5fd269a # open-humanity Privacy-first peer assistance network for sovereign autonomous agents Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers # [MOVEMENT] Reuse one immutable round-base snapshot, digest and wire encoding across volunteer fan-out Open · #35 · open 2026-10-24 17:49 UTC Imported from GitHub aien-dev/open-humanity#35, by drakestapleton drakestapleton wrote on 2026-10-24 17:49 UTC Evidence: - Coordinator::begin_round/work_unit : begin_round gets params once, then every work_unit repeats model.params() plus params_digest. - Learner::params clones the full parameter Vec. - run_round sends the same BaseModel per peer; send bincode-serializes each time. - signed_message deep-clones payload-bearing messages to empty sig before serialization. Related, but do not expand the first cut to all messages without separate byte-parity proof. - encrypted flush copies into write buffer, pads, seals. Those per-session operations are not all removable. For V volunteers and P f32 parameters (B=4P), current fan-out repeats V full model clones/hashes and V BaseModel encodes. A round-owned immutable snapshot can make digest/encoding preparation O(B), rather than O(VB). Transmitted bytes and independently keyed encryption remain Theta(VB); do not claim reduced network traffic from caching the source representation. The model is fixed until finish_round, making the round boundary the natural invalidation seam. First cut: snapshot params, shape, base digest and exact encoded BaseModel once at begin_round; supply pinned digest to each signed work unit; fan out exact cached plaintext bytes through each existing encrypted stream. Do not expose mutable shared bytes. Avoid a process-global cache with stale round/model/signer/version state. Tests: - V=1,2,8,32 with fixed seeds, corpus and parameters. Exact original bincode frame bytes, work-unit IDs, signatures, decoded model and numerical outputs. - Count params clones, bytes hashed, BaseModel encodes, allocated bytes and encrypted bytes. Target one snapshot preparation per round; separately report allocations, preparation CPU, full round wall time. - Change run, round, dim, one parameter, signer and protocol version; stale-cache negative controls must fail. - Keep padded record sizes, transcript-bound keys, unique directional nonces, frame caps, auth-before-use, replay and partial-I/O semantics. No shared ciphertext across sessions, personal-data export or live deployment. - Current learner is toy/CPU prototype. Scientific score and redeemable allowance remain separate; do not treat this as deployed OH #32/#Core734 behavior. Dedupe: open OH #26-34 and all-state PR search did not reveal this fan-out cache. Related #31 owns transport lifecycle hardening, not optimization. Retain those controls. NOT_RUN until implemented and tested. Follow existing seeded Omega migration/ownership contracts, not a new trainer or wire format. drakestapleton wrote on 2026-11-06 20:37 UTC First cut only — this does not resolve the issue. Branch `fix/issue-35-round-base-snapshot`, head `758d1c0d33cded6c56d6f860775c577655326989` (base `main` @ `d929a34`). The branch has been pushed and is waiting at the PR desk for a draft PR. No PR is open yet. What changed (`crates/oh-coordinator/src/lib.rs` only): - `begin_round` copies and digests the base once and keeps the digest for the round. `finish_round_with_teaching`, the only place the model changes, clears it. - `work_unit` signs that digest instead of running `params_digest(&model.params())` for every volunteer. - `run_round` encodes the `BaseModel` frame once and writes the same payload to each existing stream with `write_frame`. Each stream still encrypts with its own keys. There is no shared ciphertext and no process-wide cache. Host-local evidence (Spark, `taskset -c 6 nice -n 10 bwrap … cargo test`): - BEFORE (`a9278f0`: tests on `main`'s logic): rc=101. Each round makes 1+V parameter copies and V digests: `[(1,1,2,1), (1,2,2,1), (2,1,3,2), (2,2,3,2), (8,1,9,8), (8,2,9,8)]`, as (V, round, copies, digests). - AFTER (`758d1c0`): `cargo test -p oh-coordinator` rc=0. Each round makes 1 copy and 1 digest for V = 1, 2 and 8. All lib and integration tests pass, including encrypted_transport and loopback. - Byte parity: for V = 1, 2 and 8 over two rounds, with a fixed key and seed and one parameter changed between rounds, each connection gets the same frame bytes as the old per-volunteer path. The work-unit IDs, `base_digest` values and signatures also match. - Negative controls, all rc=101: per-call copy and digest restored in `work_unit` (the repro fails); invalidation removed (a stale digest is signed after `finish_round`); frame prefix doubled (the parity test fails). Not in this cut: - V=32. - Allocation, CPU and wall-time measurements. - Protocol-version and signer stale controls. - Transport changes (#31) and `signed_message` cloning (#36). Network bytes are unchanged, and this cut claims nothing about network traffic. Labels: IMPLEMENTED, EXERCISED (host-local) PASS. Hosted CI: NOT_RUN (PR desk gate). These are host results, not hardware evidence. Sign in to comment