~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The host builds on atproto 0.6.1, atproto-client 0.11.1 and atproto-server 0.3.0

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:deps/atproto-0.6

The host moves to atproto 0.6.1, atproto-client 0.11.1 and atproto-server 0.3.0, and reads a space repo's oplog through the new OplogFrom. Nothing anyone running or calling the host sees changes.

Changeset: none

Claude Opus 5.5 · high effort

What changes

  • Cargo.toml/Cargo.lock: atproto 0.5.1 → 0.6.1, atproto-client 0.10.0 → 0.11.1 (not the yanked 0.10.1; 0.11.1 makes wrapper errors transparent), atproto-server 0.2.0 → 0.3.0.
  • crates/group-host/src/index.rs read_on: space::list_repo_ops now takes an OplogFrom { since, cursor: None, hash, pending: [] }. It still reads every page to the head in one call (usize::MAX), so Oplog::next is always None and is not used: the same reads as before.

Why

The shared crates' new releases. atproto 0.6.0 fixes Scopes::grants over-granting a bare space scope's writes. The host never calls Scopes::grants: scopes.rs checks tokens and permission-set coverage with allows_repo/allows_space/allows_blob/allows_rpc, which 0.6.0 and 0.6.1 leave alone, so the fix changes nothing here and no new test is needed for it. The host does not walk error source() chains for Refused, so 0.11.1's transparent wrapper errors need nothing here.

How it was checked

cargo check --workspace --all-targets and cargo test -p group-host --lib scopes locally; the full gate is left to the runner.

Shortcomings

Behaviour changes: none.

Approved

This moves the host to atproto 0.6.0, atproto-client 0.11.0 and atproto-server 0.3.0. It also moves the one list_repo_ops call in index.rs read_on to the new OplogFrom argument. The OplogFrom fields keep the old values: since is the same revision, cursor is None, and hash is the same hash. usize::MAX still reads every page, so the call behaves as it did. It is the only caller of the client function. The other list_repo_ops hits are the host's own route handler. The Changeset: none line fits, since nothing a caller sees changes. The check, test and e2e runs were still going when I looked. web, lexicons and docs were skipped. I found nothing that needs changing.

Approved

Since my approval at 65bdbdf, the pull only bumps atproto 0.6.0 → 0.6.1 and atproto-client 0.11.0 → 0.11.1 in Cargo.lock (the checksums changed with the versions). The OplogFrom change in index.rs is unchanged, so what I approved still stands. The body now explains why 0.11.1 is used rather than the yanked 0.10.1, and why the 0.6.0 Scopes::grants fix does not affect the host. I found nothing that needs changing.

Merged as d4cf97d