docs(sessions): log the Phase 2 declared-holdings session

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LGiPD2cF75mnvneSCjdDC5
This commit is contained in:
Scott Reimers 2026-10-31 15:09:56 -04:00
parent 3430a9d4c9
commit 6a0f2e1a46

View file

@ -6,6 +6,30 @@ See `CONTRIBUTING.md` for the protocol. See `AGENTS.md` for the Claude-specific
--- ---
## 2026-10-31 — Claude Opus 5 (Lead) — `feat/declared-holdings`
**Scope**: v0.8.1 Phase 2 — holder registration becomes an explicit self-declaration instead of being inferred from transport. Prerequisite for the erasure/concealment work; nothing in that model works while acquiring a file auto-enrols you as its advertised holder.
**Context**: first session on this repo in ~12 weeks. State check first: `cargo check --workspace` clean, 267 core tests, a3 12/12, c_topology 33/33, itsgoin.com serving v0.8.0-alpha, anchor up and serving the registry post. Scott's memory of the project being stalled was wrong — it runs.
**Completed**:
- Pushed two stranded commits (`bbc17f8` android close-button fix, `8d29cb9` novelty gate + reachable `set_greetings_max`) — origin/master had been 2 behind since August.
- Logged the missing v0.8 effort (Jul 29 – Aug 7) as `eebf0d8`; the log had stopped at 2026-05-15.
- Phase 1 signed-format audit: no further change needed inside a signature before data accumulates (comment sharding was cancelled by Scott's blob-only ruling, which is what had made Phase 1 urgent).
- Phase 2, commit `3430a9d`: new `crates/core/src/holdings.rs` consent layer; `file_holders` split into local hints (`declared = 0`) and declarations (`declared = 1`); all 12 inference sites triaged into hints with per-site reasons; 0xD3 became the hard-validated declaration handler; every outbound holder surface (`cdn_redirect_peers`, worm answers, HTTP 302s in `web.rs`/`http.rs`) switched to declared-only; policy knobs reachable from the desktop app rather than CLI-only.
- Senior QC on the implementation found three things the three review lenses missed: an inverted per-peer budget guard (refused a file's first-and-only holder while admitting its sixth), `get_durability_holder_count` keyed on `declared = 0` as if claim and evidence were complements (dropped every honest custodian that declared out of its author's durability count — fixed with a new monotonic `witnessed` column), and an unrelated `pic2.png` deletion.
- Verification re-run independently after those three fixes, not taken from the implementer's report: 301 core tests, a3 23/23, c_topology 33/33.
**Pending / blockers**:
- **PR not opened**: no Forgejo CLI or API token in this environment. Branch is pushed; compare link is `https://git.itsgoin.net/Sologretto/itsgoin/compare/master...feat/declared-holdings`.
- **ALPN decision for Scott**: the diff drops `BlobRequestPayload.requester_addresses`, `BlobResponsePayload.cdn_registered` and `CdnManifest.host`, and retypes `cdn_redirect_peers`, but ALPN is still `itsgoin/4`. A 0.8.1 node and the deployed 0.8.0-alpha anchor would complete the handshake and then fail per-request on every CDN path. Recommend `itsgoin/5` + anchor redeploy, as in Iteration B.
- **Phase 0 still Scott's**: 0.8.1 version stamp (recommend `0.8.1-alpha`, Android `versionCode` 8001 so it installs as an upgrade) and the 4-device test, which has never been run.
- **Open design question inherited by Phase 4**: declaration hides which/how many of an author's posts you hold, not that you hold some of that author's content — `build_own_uniques` still announces every distinct author. One-shard-announcement therefore holds at file granularity only. Closing it means deriving the author half of the uniques announce from `declared_holdings`, which trades away discovery; unruled.
**Stopping point**: `feat/declared-holdings` pushed at `3430a9d`, all suites green, PR awaiting Scott (no token here). Phase 3 (erasure foundations offline) not started — deliberately, pending the Phase 1/2 report and the ALPN call.
---
## 2026-07-29 to 2026-08-07 — primary Claude (Lead) — direct to `master` (policy deviation, see below) ## 2026-07-29 to 2026-08-07 — primary Claude (Lead) — direct to `master` (policy deviation, see below)
**Instance**: primary Claude, Fable 5 **Instance**: primary Claude, Fable 5