A creator another owner removes stops paying even if an agent of theirs stays (#1002) #30

Merged
backmeupplz merged 39 commits from board/1002-1e589c into main 2026-11-28 15:45:28 +00:00
Owner

Board #1002. Stacked on #26 (#998), which is stacked on #18 (#979): base is board/998-ec2a75; retarget once those merge.

With an honest server, alice creates a vault, adds her agent and bob as an owner, and bob removes alice. Until now payment moved off the creator only when neither she nor any agent of hers was still listed, so alice kept paying for a vault her device can no longer fetch (and, since #998, sync tells her not to leave it).

Now a roster change that takes the creator's own account out moves payment to the signer (their owner, for an agent), even if an agent of hers stays. Payment moves on that transition only: a creator listed only through an agent of theirs (a vault handed to bob-bot) keeps paying when another owner changes the roster without removing anyone of theirs, as before.

Quota (#979) is unchanged: removing the creator and adding someone in one change needs room in the signer's account (507 otherwise); removing her alone works even when the signer is full, as for a full removal before.

Tests (client/src/tests.rs nobody_is_stuck_paying_for_a_vault): bob removes alice keeping alice-bot → bob pays, alice's paid no longer lists it and her sync names nothing; full bob removing + adding → 507, removing alone → ok; a vault bob pays through bob-bot only stays his when carol adds a reader. DESIGN quota and "Leaving" text updated.

🤖 Generated with Claude Code

Board #1002. **Stacked on #26 (#998), which is stacked on #18 (#979)**: base is `board/998-ec2a75`; retarget once those merge. With an honest server, alice creates a vault, adds her agent and bob as an owner, and bob removes alice. Until now payment moved off the creator only when neither she nor any agent of hers was still listed, so alice kept paying for a vault her device can no longer fetch (and, since #998, sync tells her not to leave it). Now a roster change that takes the creator's own account out moves payment to the signer (their owner, for an agent), even if an agent of hers stays. Payment moves on that transition only: a creator listed only through an agent of theirs (a vault handed to `bob-bot`) keeps paying when another owner changes the roster without removing anyone of theirs, as before. Quota (#979) is unchanged: removing the creator and adding someone in one change needs room in the signer's account (507 otherwise); removing her alone works even when the signer is full, as for a full removal before. Tests (`client/src/tests.rs` `nobody_is_stuck_paying_for_a_vault`): bob removes alice keeping `alice-bot` → bob pays, alice's `paid` no longer lists it and her sync names nothing; full bob removing + adding → 507, removing alone → ok; a vault bob pays through `bob-bot` only stays his when carol adds a reader. DESIGN quota and "Leaving" text updated. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Payment moves only when the roster change itself removes the creator; quota and agent-only payer tests
Some checks failed
CI / check (pull_request) Has been cancelled
CI / wasm (pull_request) Has been cancelled
3691380e95
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DESIGN: a creator removed by their own agent, or handed the vault back through it, still gets no hint
Some checks failed
CI / check (pull_request) Has been cancelled
CI / wasm (pull_request) Has been cancelled
f512f0b76e
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DESIGN: when a vault comes back to a removed creator through their agent
All checks were successful
CI / wasm (pull_request) Successful in 2m52s
CI / check (pull_request) Successful in 5m23s
ce720a5702
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
backmeupplz changed target branch from board/998-ec2a75 to main 2026-11-28 11:53:15 +00:00
Merge origin/main into board/1002-1e589c
Some checks failed
Apple / Apple (pull_request) Successful in 57s
release / build (macos-latest, true, aarch64-apple-darwin) (pull_request) Successful in 4m50s
release / build (macos-latest, true, x86_64-apple-darwin) (pull_request) Successful in 5m1s
Android / android (pull_request) Has been cancelled
CI / check (pull_request) Has been cancelled
CI / wasm (pull_request) Has been cancelled
release / build (ubuntu-24.04, true, aarch64-unknown-linux-musl) (pull_request) Failing after 6s
release / build (ubuntu-24.04, false, x86_64-pc-windows-gnu) (pull_request) Failing after 6s
release / build (ubuntu-24.04, true, x86_64-unknown-linux-musl) (pull_request) Failing after 5s
release / release (pull_request) Has been skipped
release / homebrew (pull_request) Has been skipped
release / docker (pull_request) Has been skipped
f6f3fc50f1
Main's #1000 test had mallory remove bob while bob-bot stays and asserted bob
keeps paying; with this change mallory pays, so the test now checks that and
that bob's unsent change is still reported and dropped by leaving.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge remote-tracking branch 'origin/main' into HEAD
Some checks failed
Apple / Apple (pull_request) Successful in 35s
Android / android (pull_request) Has been cancelled
CI / check (pull_request) Has been cancelled
CI / wasm (pull_request) Has been cancelled
937979e24b
Merge remote-tracking branch 'origin/main' into HEAD
All checks were successful
Apple / Apple (pull_request) Successful in 59s
release / build (macos-latest, true, aarch64-apple-darwin) (pull_request) Successful in 4m15s
release / build (macos-latest, true, x86_64-apple-darwin) (pull_request) Successful in 4m32s
CI / wasm (pull_request) Successful in 6m22s
CI / check (pull_request) Successful in 8m56s
release / build (ubuntu-24.04, false, x86_64-pc-windows-gnu) (pull_request) Successful in 9m50s
release / build (ubuntu-24.04, true, aarch64-unknown-linux-musl) (pull_request) Successful in 11m3s
release / build (ubuntu-24.04, true, x86_64-unknown-linux-musl) (pull_request) Successful in 8m12s
release / release (pull_request) Has been skipped
release / homebrew (pull_request) Has been skipped
release / docker (pull_request) Has been skipped
Android / android (pull_request) Successful in 29m23s
d74cf8e2f5
backmeupplz deleted branch board/1002-1e589c 2026-11-28 15:45:29 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
backmeupplz/plaintext!30
No description provided.