While the survey runs, I read the wave-13 memory. It records the umbrellas that are not decomposed.
Assistant
The survey is complete. Wave 14 is fully drained: zero open PRs, and 10 of the 31 wave-14 issues closed, plus #648 and #657 umbrellas. The tracker holds 133 open v2-build issues. Here is my wave-15 plan.
Wave 15 — 10 PRs + stretch, three lanes
Batches follow file ownership, 2–3 issues per PR, with the same autonomous review and merge loop.
Lane A — desktop session lifecycle. This lane is the longest chain toward the e2e rebuild (#1380 → #1382/#1384). The chain bottoms at #720, which is unblocked.
PR
Issues
Note
W15-1
#720 + #1133
keyring seam; dead-letter bounds — both block the tray work
W15-2
#1377
mount/unmount across the session lifecycle, after W15-1
W15-3
#1378
tray from the engine event stream, after W15-2
Lane B — deploy chain. The chain bottoms at #1244, and the #1244 token shape was decided on 2026-08-24.
PR
Issues
Note
W15-4
#1244
read-scoped accelerator token (api + web)
W15-5
#1387 + #1394
Caddy forward_auth + the API metrics it feeds, after W15-4
owner invite-link surface + CSP; #1444 is a security item
W15-8
#858
layered erase, decided 2026-08-24; it unblocks #1373
W15-9
#1373
/settings route, after W15-8
W15-10
#1371 + #1446 + #1447
/shared route + the two wave-14 engine follow-ups
Stretch, in order: #1437+#1438+#1439 (rotation publish trio, one file area) · #1434+#1415 (two live bugs: delete reclaims nothing; owner device does not adopt a newer root) · #1383 (web-e2e extension, after #1371 and #1373 merge).
Deferred to wave 16: the e2e rebuild #1380/#1382/#1384/#1385, the cutover tail #1390/#1392/#1393/#1395/#1397/#1398, the #1131 restructure, and #942+#1094+#1095.
Decision agenda for this wave
These items block wave-16 work, so I want your call during wave 15:
#1376 WinFsp adapter — it blocks #1380, so it blocks the whole wave-16 e2e rebuild. The licence question is yours.
#1355 uncuttable declaration — the issue says the decision must come before the wire freeze.
The trade-off on the plan shape: the full plan covers 15 issues plus 6 stretch, which matches the wave-14 scale. A trimmed tail (drop W15-9/W15-10) frees review slots for the stretch bugs, but it delays #1383 past wave 16.
Assistant
Approved. I record the wave state, then I start the lane openers and prepare the #1376 decision. First I sync main and read #1376.
Assistant
Main is current. #1376's body has no licence text, so the licence question stays open at the product level. I check the repo licence, save the wave state, and start the three lane openers.
Assistant
The repo is MIT and public. That matters for the WinFsp licence call. Now I update the memory index and start the three lane openers.
Assistant
Hook noted — I compact the index after the launch. Now I start the three lane-opener ship agents.
Assistant
The three ship agents run now. Next I check the WinFsp licence terms for the #1376 decision.
Assistant
Fetched. CipherBox is MIT, so it qualifies for the WinFsp FLOSS exception. Before I report, I compact the memory index as the hook requested.
Assistant
Now I compact the index to get it under the size limit. I merge the closed-wave rows, drop the stale #719 row, and tighten the long rows.
Assistant
18.8KB — I trim more. The closed-wave hooks and a few review rows can go shorter.
Assistant
Option 1 with a Windows-machine execution note. I record the decision on the issue and in memory.
Assistant
The #1376 decision is recorded. Next on the agenda is #1355, so I start a research agent to build that decision brief while the ship agents run.
Assistant
Wave 15 is now in motion. The current state:
Done this turn:
The #1376 decision is recorded as a comment on the issue: CipherBox ships under the WinFsp FLOSS exception. MIT qualifies. The scope now carries the attribution-notice condition. The issue runs on your separate Windows machine, in its own session — I removed it from the local lanes.
The wave-15 memory holds the plan, the decision, and the Windows execution note.
The memory index is compacted under its size limit.
In flight, four background agents:
W15-1 (#720 + #1133), W15-4 (#1244), W15-7 (#1443 + #1444) — each builds in an isolated worktree and opens a draft PR with the review gates run.
A research agent builds the #1355 decision brief (uncuttable declaration before the wire freeze) — the next item on your agenda.
I report when each agent completes. After the drafts exist, I run the CodeRabbit cycle, one review per hour, and start W15-2 and W15-5 as their lanes clear.
Assistant
The #1355 decision brief is ready. The ship agents still run. Here is the brief, condensed.
Decision: #1355 — how a carried field declares itself uncuttable
The question.crates/core/src/seal/envelope.rs:111 protects exactly two carried fields from the size-pressure cut, by hard-coded name: grantSection and writeSealed. That list freezes when v2.0 binaries ship. A v2.0 reader can never learn that a later additive field is protocol-bearing, so it would cut that field silently. We must decide now: reserve a wire-level way for a future field to declare itself uncuttable, or write down that no additive envelope field will ever be protocol-bearing.
Key facts from the code:
Map keys are free UTF-8 with length-first ordering (codec/value.rs:190-194). A one-byte ! prefix is representable today and no reserved key uses it.
Rotation carries envelope unknowns verbatim (net/rotation.rs:865 and 4 more sites). Envelope bloat is relieved only by the cut, so a publisher-declared marker without a byte budget hands a hostile publisher a permanent uncuttable pad.
The precedent for a frozen byte bound exists: MAX_WRITE_BODY_BYTES at seal/write_body.rs:351-365, frozen in kat/manifest.json:300.
Interior envelopes have no uncuttable field at all, and a foreign envelope v is rejected outright (net/rotation.rs:721, :1212). So a v bump is a hard fork, not a graceful path.
The options:
A — reserved ! key-name prefix + a frozen critical-bytes budget. Costs 1 byte per future critical field, ~40 lines, 2-3 tests, KAT vectors, one blueprint paragraph. Works at top level and inside epochTag. The budget must ship with the marker, symmetric and release-active at both decode_envelope and encode_envelope, or the marker is worse than today. This option makes #1356 (grant-section byte bound) a hard prerequisite — size both bounds in one sitting.
B — reserved "critical" sub-map. Smallest code delta, but ~11 bytes of framing per record forever, all-or-nothing granularity, and every nested map needs its own future reservation. Same #1356 prerequisite.
C — prohibit protocol-bearing additive fields; change nothing. Zero cost now. But interior nodes then can never gain a protocol-bearing additive field — the revocationPin example in #1355 becomes impossible without a per-node hard fork.
Assistant
Option A is recorded. I post the decision comment on #1355, add the native dependency edge to #1356, and update the memory.
Assistant
The edge response looks ambiguous — I check the edge direction.
Assistant
The edge is correct: #1355 is blocked_by #1356, and #1356's own blocker #1301 is closed. I update the wave memory.
Assistant
The #1355 decision is durable: the comment is posted, the edge is in place, and the memory records the W15-S slot. The next agenda item is #1399, so I start its brief now.
Assistant
The #1355 decision is complete and the #1399 brief is in progress. Current state:
#1355 decided (Option A): the decision comment is on the issue with the budget rider and the ranking call. The native edge #1355 blocked_by #1356 is in place, and #1356's own blocker (#1301) is closed. Implementation is slotted as core stretch W15-S (#1356 + #1355, one PR), serialized after W15-1 merges because both meet the cut report in sync/drain.rs.
Four agents run in the background: the three ship agents (W15-1, W15-4, W15-7) and the #1399 bin-design brief.
Agenda remaining: #1399 (brief in progress), then the async pair #1268 + #953.
I report when the next agent completes.
User
(c) Recommendation
Option A, paired with #1356, largest-first retained.
The deciding argument is not elegance, it is that C's cost lands on interior nodes and is unrecoverable. Every other bound in this codec chose reservation over prohibition — MAX_WRITE_BODY_BYTES (write_body.rs:365) exists because per-field bounds were a treadmill, and the same reasoning says a per-name uncuttable list is a treadmill that stops moving the day we ship. A costs one byte per future critical field and buys a graceful additive path that C spends a v bump on. B is A with a worse footprint and a per-map reservation debt.
The non-negotiable rider: the marker ships with the budget, symmetric across decode_envelope and encode_envelope, release-active, in the assert_within_bound style (write_body.rs:414/:529), frozen in manifest.json beside writeBodyMaxBytes. Without it, A hands every publisher an uncuttable pad that rotation never clears — strictly worse than today.
(d) What each option blocks or unblocks
#1356 (grant-section byte bound)
#1362 (report cut on rotation paths)
Wire freeze / #653 staging cutover
A
Promoted to prerequisite. A's budget is only sound if grantSection is byte-bounded — an unbounded section eats the same 2 MiB the budget is carved from. #1356's MAX_GRANT_SECTION_BYTES ≈ 256 KiB sketch and A's budget should be sized in one sitting, and #1356 must land first or in the same PR.
Unaffected but more valuable: a cut that can no longer take a critical field still destroys forward-compat fields on rotation paths silently. Ship #1362 either way.
Must land before v2.0 binaries ship. Runway is clear today.
B
Same prerequisite as A.
Same.
Same.
C
Decoupled — #1356 stays worth doing on its own merits (it is grief a rotation ends, per its own body), but nothing blocks on it.
Unaffected.
Unblocks the freeze immediately; nothing to implement.
In-flight conflict check: none. There are zero open PRs on FSM1/cipher-box; local main is at 3d3ac0fc1 and in sync with origin. Three wave-15 worktrees exist with uncommitted edits only (zero commits ahead of main): (engine sync/drain/staging + storage policy), ( auth/token), (currently empty). None touches , , , , , or .
User
(b) Options
Option A — reserved key-name prefix (!), plus a frozen critical-bytes budget. The shape #1355's body sketches.
Pros: canonical_key_cmp is length-first (value.rs:190), so a one-byte prefix perturbs no ordering semantics; costs 1 byte per critical field. Works uniformly at top level and inside epochTag — the budget is what makes that safe, closing the envelope.rs:105-111 objection rather than dodging it. Composes: the grant section and write body can adopt the same convention later with no second reservation. UNCUTTABLE becomes "the two grandfathered names or the marker test" — a predicate swap at envelope.rs:171.
Cons: requires a budget constant and two new symmetric checks; the budget is only meaningful if grantSection is itself byte-bounded, so this option makes #1356 a hard prerequisite, not a sibling. Grandfathering is permanently visible (two names that can't carry the marker without a wire break).
Cost: ~40 lines in envelope.rs, one constant + manifest.json key (mirroring writeBodyMaxBytes), 2-3 unit tests, envelope reject vectors + count bump, one blueprint paragraph.
Option B — reserved sub-map key ("critical": {...}) added to UNCUTTABLE.
Pros: smallest code delta — one more string in the envelope.rs:111 array plus a single as_bytes().len() budget check; no predicate, no scan.
Cons: the reservation is per-map, so epochTag and every nested map needs its own future reservation; ~11 bytes of key+framing overhead per record forever vs. A's 1 byte per field; all-or-nothing granularity — a v2.0 client cannot reason about individual entries inside a map it does not type. Same budget requirement, same #1356 dependency.
Option C — declare that no additive envelope field will ever be protocol-bearing; write down the reasoning; change nothing on the wire.
Pros: zero wire bytes, zero code, zero freeze risk, no dependency on #1356. Consistent with today's envelope.rs:105-111 reasoning taken to its conclusion.
Cons: this is the expensive one, and the cost is invisible today. Interior (non-scope-root) envelopes have no uncuttable field at all — grantSection and writeSealed exist only on scope roots — so under C an interior node can never gain a protocol-bearing additive field, ever. The only escape is a typed field with an envelope bump, and reject a foreign outright, so a bump is a hard per-node fork, not graceful evolution. The example in #1355 is precisely the thing C forbids.
User
Check whether the issue-survey agent completed. If its report arrived, draft the wave-15 plan from it plus the wave-14 memory inputs. If it still runs, wait more.
Assistant
This wakeup is stale. The survey arrived, the wave-15 plan was approved, and the lanes launched. I stopped the wakeup loop. Four background agents run: the three ship agents and the #1399 brief. Their completion notifications drive the next steps.
Assistant
The #1399 bin-design brief is in. It is deep — four findings reshape the problem. Here is the condensed brief, then the decisions.
Brief: #1399 — the recycle bin as vault-level engine behavior
No frozen decision constrains this; the blueprint's citation of cipher-box-next#5 carries nothing about the bin. Four findings from the recon:
F1 — today's delete is a revocation hole.publish_delete (sync/drain.rs:1330-1356) drops the ChildRef but never retires the record or unpins content (#1434). An unlinked node leaves the eager set, so no sweep re-seals it. A revoked grantee with the old scope seed reads every deleted node forever. This is live on main.
F2 — the rebase rule collides.Delete rebases as conditional delete, edit wins (blueprint/engine.md:400). Move uses a different rule. A trash built on relink silently swaps the rule unless we decide it.
F3 — FUSE junk. The mount's junk sweep issues one Delete per hidden file (crates/fuse/src/ops.rs:1027-1046). A naive repoint fills the bin with .DS_Store.
F4 — v1's bin was an owner-sealed JSON blob, not a folder. v2 has that pattern too, but F1 kills it: a node outside the tree never re-seals on revocation.
Recommended package:
D1 = A: a bin root per scope (a reserved folder child of the scope root; trash and restore are pure intra-scope relinks, no re-seal). It is the only placement where a revocation cuts access to binned nodes. Consequence: a scope's grantees see that scope's bin.
D2: an optional origin field on ChildRef (sealed, with real accept/reject KAT vectors) rather than a schema-less side channel.
D5: repoint Delete, but keep the delete rebase rule (a concurrent edit still wins), plus a hard-delete carve-out for the FUSE junk sweep. This also keeps web reachable — Command::Move has no wasm builder, delete does.
D3: no clock, no auto-purge in v2.0. Purge is a user gesture, per blueprint/engine.md:796-797. Show age from the journaled deletedAt; never branch on it. This amends #1399's own AC sketch, which asked for clock-driven expiry. The dead VaultSettings.retention knob is the cautionary precedent.
D4: land reclamation first as its own slice (= #1434) with a new OwedRetire "no live record" ledger class, so a purged record cannot strand pin debt forever.
Size: 6 slices, ~5-6 PRs, two waves. facade.rs contention serializes S3-S5. Good news: S1 (#1434) and S2 (the core field) are unblocked now, and #1434 already sits in the approved wave-15 stretch — the stretch fix should take the S1 shape, serialized after W15-1 (both edit drain.rs).
Assistant
The zsh no-word-split trap hit my loop. I write the three checks in full.
Assistant
All three pairwise merges are clean. Now I file the #1133 follow-up and start the review cycle on #1450.
Assistant
The follow-up is #1451. I housekeep it: parent #991 and the dependency edge to #1133.
Assistant
Ship report — all three lane openers landed as green drafts
PR #1450 (W15-1, closes #720 + #1133) — 30/30 checks green. The security gate caught one real MEDIUM: an unsupported-format root from a newer build was classed as lost, which would destroy the only copy of a content key. It now fails closed. The keyring seam now runs against the real Windows and Linux credential stores in CI, and both passed on the first run.
PR #1449 (W15-4, closes #1244) — 27/27 green. The crypto gate passed on all five verdicts. The gates caught one real bug in the agent's own refusal cache, and the live contract suite caught a test race. Revocation is derived from the refresh family, so logout and reuse detection revoke gateway reads with no second path.
PR #1448 (W15-7, closes #1443 + #1444) — all gates green. One premise of #1444 was stale: staging Caddy already served frame-ancestors 'none'. The real gap was the dev and preview servers, which served no policy. The CSP now has one home, with a parity test across the Caddy vhosts. The PR is not browser-verified — six manual steps sit in the PR body.
Actions I took: the pairwise merge simulations of all three branches are clean. I filed #1451 for the unimplemented "no exit" bullet of #1133 (parent #991, edge to #1133) and kept Closes #1133 on #1450 — say the word if you want the close changed instead. #1450 is flipped ready with the CodeRabbit review requested; #1449 and #1448 follow on the one-review-per-hour stagger. Resolve sub-agents run when the reviews land.
#1399 — your D1 = B call, and what I need clarified
You chose the owner-sealed bin index, with docs and an ADR, and revoke-all-grants as the first step of a delete from a shared folder. What would you like to clarify? Three edges in that design need your intent before I draft the ADR:
After the revocation, do the grantees get re-granted? Key regression cuts both ways: a re-granted grantee's new seed derives old epoch keys by design. So a rotate-and-remint leaves the binned node readable to anyone who learns its node id. Owner-only privacy of the bin then rests on the index staying sealed, not on the keys. If instead the grants stay revoked until the owner re-shares by hand, one file's deletion costs every collaborator their access — is that the intended price?
Who may delete in a shared scope? Revocation is an owner authority. A grantee cannot revoke grants, so a grantee's delete either gets refused, or hard-deletes with no bin, or queues for the owner. Which?
When does the deleted subtree re-seal? The revocation-first rule closes the fail-open hole only if the subtree re-seals before the unlink. A node that leaves the tree before its lazy re-seal stays readable under the old seed forever. I read your rule as an eager re-seal on the delete path — confirm.
User
(c) Recommended package
D1 → A, bin root per scope, aggregated into one listing at the facade. The decisive reason is F1, and it is not the reason the proposal gave: only Option A keeps binned nodes inside the scope subtree, so they ride the lazy wave and a revocation actually cuts access to them. Options B and C leave a revoked grantee reading everything ever deleted. Accept the consequence: a scope's grantees see that scope's bin, and a grantee's delete lands in the shared bin (the only intra-scope option, and it matches "shared folder trash").
D2 → the ChildRef.origin field. Pay the one core wire change with real accept/reject vectors rather than smuggling a schema-less format through unknown or through the name string. This makes core gate engine, so slice core first.
D5 → repoint Delete, keep the delete rebase rule (option 2). It preserves blueprint/engine.md:400 and desktop.md:199 unamended, and it keeps delete's existing wasm builder as the path to web — which matters, since Command::Move has no builder. Add an explicit hard-delete path for the FUSE junk sweep (crates/fuse/src/ops.rs:1027-1046) so .DS_Store never reaches the bin.
D3 → no clock, no auto-purge in v2.0. Purge is user-initiated, matching the standing rule at blueprint/engine.md:796-797. Display age from the journaled deletedAt; never branch on it. Surface bin bytes beside the quota rather than enforcing a budget — pending_reclaim_bytes() (facade.rs:5614) is the existing shape for exactly that kind of vault-level figure. Do not add a budget knob to VaultSettings unless its actuation ships in the same slice; retention is the cautionary precedent and it is verified dead. This requires amending #1399's own AC sketch, which currently asks for clock-driven expiry.
D4 → land the reclamation first, separately, with the ledger class. #1434 is a standing leak and a revocation hole on main today; it is landable on its own merits before any bin exists, and nothing about the bin should gate fixing it.
The package's coherence: every piece leans on machinery that already exists and is tested — intra-scope relink, the add/add auto-suffix comparator (blueprint/engine.md:403, not v1's " (restored)" scheme at v1:packages/sdk/src/bin/index.ts:599-609), the retire ledger's survivor check, union liveness at the registry. The only genuinely new primitives are a reserved node id, one optional wire field, and one ledger class.
User
(b) Sub-decisions
D1 — Where deleted entries live
Option
Mechanism
Pro
Con
A. Bin root per scope (reserved NodeId, ordinary folder child of the scope root; trash = intra-scope relink)
OpKind::Move/Relink under ScopeCrossing::Intra already exists and is the only crossing that publishes (facade.rs:3685, :3713; drain.rs:1228 halts every other)
Node seeds are id-derived and location-independent (CONTEXT.md:7), so trash and restore are pure relinks — no re-seal, no epoch change, no new KDF edge. Binned nodes stay in the scope subtree, so they ride the lazy wave and re-seal on revocation — this is the only option that closes F1./bin gets a per-scope listing free from snapshot(binRoot); only the cross-scope union is new
Binned items are visible to that scope's grantees — deleting a shared file moves it to a shared trash. "Vault-level" becomes a facade aggregation, not a storage property. Needs a reserved-id mint guard and origin metadata (D2)
B. Owner-sealed bin index; node stays unlinked-but-live (v1's model, over the settings-record or owner-local pattern)
settings.rs / received_share_store.rs are working templates; delete path unchanged
Literally vault-level, one flat list. Owner-only by construction — no grantee disclosure. Zero change to publish_delete, to the conditional-delete rebase rule, and no F3 regression. Core cost near zero (both structures seal an engine-encoded body core never interprets)
Fatal on F1: a node absent from the tree is in no eager set and no sweep, so revocation never cuts access to anything binned. Also: the owner-local family rides the per-deviceStagingStore (received_share_store.rs:1-10), so it needs the published settings-record machinery instead — and that reintroduces v1's worst flaw, a whole-list rewrite with no CAS (v1:packages/sdk/src/bin/index.ts:336-356 documents the resulting data-loss bug at length). Restore also needs a relink of a node absent from Snapshot, which no op supports. A grantee's delete lands in the grantee's private bin — the owner loses the file with no way to see it
C. Tombstone on ChildRef in place
User
Decision brief — #1399, the recycle bin as vault-level engine behavior
Grounding:main @ 3d3ac0fc1. The existing proposal comment on #1399 was grounded at 243c6ce74 (5 commits back); its claims verify but many line numbers have drifted — corrected numbers are used throughout.
(a) The question
The bin does not exist anywhere in crates/engine, crates/core, packages/client, or apps/web, yet blueprint/web-client.md:266 commits /bin with "restore/purge ops via facade" and blueprint/desktop.md:192-194 calls the bin "vault-level engine behavior." The decision is where a deleted node's state lives between delete and purge, and what rebase, rotation, and reclamation rules that placement inherits.
No frozen decision constrains this. The blueprint cites FSM1/cipher-box-next#5 for recycle-bin semantics, but #5 is the v1 feature keep/cut list and never mentions the bin — the citation only carries "nothing shipped in v1 was cut except vault import." This is open design.
Four findings that reshape the problem
F1 — Today's delete is already half a bin, and a revocation hole.publish_delete (crates/engine/src/sync/drain.rs:1330-1356) drops one ChildRef and republishes the parent. The child's record is never retired (the only retire(...) sites in drain.rs are 2615/2636/2663, none on the delete path), its HeldRecords entry is never evicted (drain.rs:2578 is the only mutation of held in the whole crate), and content is never unpinned (release_staged_blocks, drain.rs:2329-2334, early-returns because a Delete op yields no content root, op.rs:434-446). That is #1434. The unstated consequence: an unlinked-but-live node is unreachable from the tree, so it is in no eager set (CONTEXT.md:21) and no sweep. A revoked grantee holding the old scope seed keeps reading every deleted node forever. That is a fail-open revocation residual on main today, and it is the decisive argument in D1 below.
F2 — The rebase rule collides, and nobody has noticed.Delete today rebases under conditional delete — dropped if the target advanced, edit wins, "a rebased edit resurrects a concurrently deleted node" (, , code at ). rebases under a different rule entirely — dest-first publish, presence-conditional source-remove, race loser compensates (, at , source check at ). Repointing at a relink-into-bin silently swaps one blueprint-locked rebase rule for another, and explicitly promises the FS core renders "edit-wins deletes." This needs an explicit decision (D5), not a side effect.
Sub-decision: keep largest-first cut ranking (envelope.rs:175). Under A the marker closes the one adversary largest-first leaves open.
My recommendation: Option A, paired with #1356 in one PR or with #1356 first, largest-first kept. C's cost lands on interior nodes and is unrecoverable after the freeze. B is A with a worse footprint.
Conflict check: no open PRs; no wave-15 worktree touches crates/core. One soft overlap: W15-1 edits sync/drain.rs, which owns the cut report — sequence #1355 implementation after W15-1, do not parallelize.
feat/keyring-seam-dead-letter-bounds
feat/read-scoped-accelerator-token
apps/api
feat/invite-owner-surface-and-csp
crates/core/src/seal/**
crates/core/src/codec/**
crates/core/kat/**
blueprint/core.md
net/author.rs
rotation/**
One soft overlap worth knowing, not a blocker: W15-1 edits crates/engine/src/sync/drain.rs, which owns report_carried_cut at drain.rs:2021 and its call site at :2435. Any #1355 work that changes what a cut reports, and any #1362 work, will meet that file — sequence them, don't parallelize them.
<subagent_tokens>89219</subagent_tokens><tool_uses>31</tool_uses><duration_ms>217579</duration_ms>
v
rotation.rs:721/1212
v
v
revocationPin
Ranking sub-decision (#1355 checkbox 3), orthogonal to A/B/C. Largest-first (envelope.rs:175) bounds the count of fields destroyed; smallest-first bounds the bytes a single cut destroys but never relieves the pressure, so every later edit cuts again. Under A or B the adversary that largest-first leaves in scope — aiming the first cut at the one honest protocol-bearing field — is closed by the marker, so largest-first should be kept. Under C that adversary stays live and the argument for revisiting is stronger, but only marginally: under C nothing cuttable is trust-bearing by declaration, which is the same defense stated as policy instead of as bytes.
D5 (Delete command shape), D3 (purge), and the rest of the package wait until D1 settles.
Two v1 laws worth porting verbatim regardless of the picks: fail-closed subtree enumeration — an unenumerable descendant folder aborts the whole operation rather than half-reclaiming, with per-file CID capture staying best-effort (v1:packages/sdk/src/bin/index.ts:219-234, cycle-guard at :244-247 against attacker-influenceable metadata) — and restore's add-before-remove ordering, so the item is listed at the destination while still recorded in the bin and is never lost mid-restore (v1:packages/sdk/src/bin/index.ts:651-652).
(d) Size, and what it blocks
Slice
Size
Files
Depends on
S1 — reclamation for the existing hard delete + the OwedRetire no-live-record class (= #1434)
Roughly 5-6 PRs; at the 2-3-issues-per-PR batching rule and the 1-review/hr CodeRabbit ceiling, that is two waves. Hot-file contention is the binding constraint as usual — facade.rs is 10,052 lines and drain.rs 3,648, and S3/S4/S5 all touch facade.rs, so they serialize. Wave 14 has no other engine slice open (#1370-#1400 are web/desktop/ci/deploy), so the hot files are free right now.
Blocks: #1400 (blocked_by: #1399 today; its real edge is S5). Unblocked by nothing — S1 and S2 both have blocked_by: none and can start immediately in parallel. Independent of #1094, which shares only the retire ledger. Landing S1 alone closes #1434, recovers quota, stops the republisher re-PUTting unreachable records, and closes the F1 revocation residual — worth doing whichever way D1 goes.
<subagent_tokens>136858</subagent_tokens><tool_uses>46</tool_uses><duration_ms>521137</duration_ms>
Every read path must filter, and one that forgets is a fail-open disclosure. /bin has no index, so the vault-level listing is structurally incomplete. Adds a semantic field to the most-read structure in the wire format
D. One vault-level bin scope
—
Matches the words in the blueprint exactly
Unbuildable in v2.0. Every delete becomes a cross-scope move — refused at journal time (refuse_scope_exit, facade.rs:1675-1686, ScopeExitRefused at :1152) and at publish time (drain.rs:1228) — and per CONTEXT.md:11/:21 a scope exit out of a granted scope is a rotation per delete. consume_scope_exit_triggers (rotation/trigger.rs:106) has zero production callers; ReplayReport::scope_exit_triggers (rebase.rs:183) is populated and dropped
D2 — Where origin metadata lives (only live under A)
Option
Pro
Con
Optional origin on ChildRef{parentId, name, deletedAt}
Sealed inside the read-body, so it discloses nothing; renders in the listing with no resolve. Map::insert is canonically ordered by construction (crates/core/src/codec/value.rs:224-233), so ordering is free
One core wire change: accept + reject vectors, manifest.json:207/:211 count bumps against the drift assert (kat_manifest.rs:2165-2169, :2210-2213), a reject check string pinned by every_crate_check_is_pinned_by_a_vault_family (kat_manifest.rs:1704-1711), and an AGENTS.md rule-8 release-active encode check matching assert_children_unique (core/src/seal/body.rs:397-412). Core gates engine, so it serializes the slices
It is a wire format, with no schema, no acceptance domain, no reject vectors. Abuses the forward-compat channel. Same objection as encoding origin into the name string
Owner-local side index for origin only
No core change
Per-device (StagingStore), so origin is lost on the other device; and unreadable to a grantee restoring from a shared bin
D3 — Retention and what triggers a purge
The AC sketch on #1399 says "retention expiry is driven by the injected clock seam." That contradicts #1094's recorded decision (count-based keep-latest-N, no clock, declined age-based rules for replay determinism) and needs reconciling.
The engine reads its clock seam (trait Scheduler, crates/engine/src/seams/scheduler.rs:50) exactly once per command, at facade.rs:3651, journaled onto the op (op.rs:43), and every downstream publish reuses applied.op.authored_at.0 (drain.rs:1276, 1302, 1317, 1350, 1394, 1627, 2169). So deletedAt is data and the UI may freely display "deleted 12 days ago"; the question is only whether the engine may branch on now() to destroy data.
Option
Pro
Con
User-initiated purge only
Matches the existing blueprint rule verbatim — blueprint/engine.md:796-797: "Retention default: keep all versions within quota, with an explicit user-initiated prune op." No determinism question. No data destroyed without a gesture
The bin grows against quota until emptied
Count/byte budget on VaultSettings, actuated at trash time (pure function of bin contents, so replay is deterministic)
Bounded bin; each emitted purge carries its own journaled authored_at
Verified precedent warning: VaultSettings.retention is plumbed end-to-end and never actuated. Its only non-test read repo-wide is the encode arm at settings.rs:925; Op::prune (op.rs:419-430) has zero production callers; there is no Command::Prune (facade.rs:807 is the unrelated PruneInviteLinks). plan_prune is called only from publish_prune (drain.rs:1779), which no production op reaches. A bin budget added the same way is the second dead setting — it ships with its actuation or not at all
Time-based auto-purge via the clock seam
What #1399's AC asks for; what v1 did (recycleBinRetentionDays, default 30, v1:packages/core/src/vault/types.ts:73-84)
v1's was an opportunistic sweep on bin load (v1:apps/web/src/hooks/useBin.ts:45-52) — if the user never opened the bin, nothing ever expired. Retention was advisory, not enforced. A clock branch inside a replayed decision makes two devices reach different bins, and it destroys data with no undo, hardest on the device offline longest — exactly the rule #1094 declined
D4 — Reclamation, and how purge settles (composes #1434 and #1094)
Purge is not "the bin's hard-delete path" — purge is the reclamation the engine does not have at all, bin or no bin (F1). publish_prune (drain.rs:1751-1845) is the template: it owes every doomed root to the RetireLedger (drain.rs:1806-1809, seams/retire_ledger.rs:14-30/:69-80) before publishing (:1810-1839), and refuses the whole op if a doomed CID is also named by a survivor (drain.rs:1786-1801).
Refcounted unpin needs no new counter — the safety property #1399's AC asks for is already implemented and tested: a target the live record still names retires nothing (net/retire.rs:318-321, test :845-854); a pass that cannot establish the live set stands down (net/retire.rs:310-313, test :858-871); register and retire derive their CID sets through one function with an equality invariant (content/retention.rs:188-200, test :499-525). Cross-node sharing is the registry's job (CONTEXT.md:78 union liveness).
The settlement hazard is real and confirmed with a sharper mechanism than the proposal stated.live_node_cids (drain.rs:1920-1942) resolves the owing node by its own derived write name (drain.rs:1925) with ResolveMode::NoCache; a None skips the entry (net/retire.rs:310-313) and the ledger is never-discard by contract (seams/retire_ledger.rs:62-65 — "There is no attempt budget, no expiry, and no sweep"). A plain Delete does not strand debt today, precisely because the record is never retired and keeps resolving. Any purge that removes the record produces a permanently unsettleable debt: pinned bytes charged forever.
Option
Pro
Con
New OwedRetire "no live record by construction" class the pass treats as an empty live set
Cheapest; keeps the deliberate leak-not-loss polarity (drain.rs:1918-1919, blueprint/engine.md:145-146)
A new trust-shaped class in the ledger; needs its own test that a mislabeled entry cannot unpin a live record
Retire the ipnsName only after content debt settles
No ledger change
Leaves a resolvable record for an item the user was told is gone
Never retire the name (status quo)
Zero work
The #1434 leak stands: quota spent forever, republisher effort forever, and the F1 revocation hole stands
#1094 composes cleanly, not awkwardly: a purge owes every version root through version_cids — the same channel plan_prune uses — so keep-latest-N and bin purge feed one ledger with no interaction beyond it. Note also that v2's location-independent node seeds delete an entire v1 problem class: v1 had to stash originalFolderKeyEncrypted on every bin entry and re-encrypt the record on restore (v1:packages/core/src/bin/types.ts:60-72); under D1-A there is nothing to re-encrypt.
D5 — Command shape and the rebase rule (this is the one the proposal misses)
Option
Pro
Con
Repoint Delete at trash; Purge is the hard delete
Every existing caller becomes recoverable by default, FUSE unlink included (blueprint/desktop.md:192); delete already has a wasm builder (crates/wasm/src/lib.rs:991) whereas Command::Move has none — so trash must reach web through delete regardless
Swaps the conditional-delete rebase rule for the Move rule (F2), amending blueprint/engine.md:400 and contradicting desktop.md:199. Hits F3 — the FUSE junk sweep fills the bin
Repoint Delete, but keep it rebasing under the delete rule (relink mechanics, delete semantics: a concurrent edit drops the trash and the node stays put)
Preserves both blueprint rules unamended; the user-visible outcome ("edit wins") is identical to today
A relink that rebases like a delete is a new hybrid — needs its own rebase arm and tests. Still needs an F3 carve-out: an explicit hard-delete path for the junk sweep
New Trash command; Delete unchanged
No rebase-rule question at all
FUSE unlink stays a permanent delete unless separately rewired, so desktop deletes are unrecoverable — against desktop.md:192
D6 — What #1400 actually needs from the engine
Not a design choice so much as a cost the plan must carry. snapshot() refuses non-folders (facade.rs:5634-5637) and listing is strictly parent-keyed (Snapshot::children, sync/model.rs:266-281) — there is no predicate, no flat scan. The only flat facade read is received_shares() (facade.rs:5690), landed three days ago in 3d3ac0fc1, which is the precedent to copy.
A new command is a mechanical 5-file change: facade.rs (enum :610 + Debug label :794 + handler :3663) → crates/wasm/src/lib.rs builder → packages/client/src/worker/protocol.ts:213 union → commandCodec.ts:233 case (a missing case is a compile error via the descriptor: never bound at :224-226) → packages/client/src/facade.ts one-liner.
A new flat read is ~9 files, because reads bypass the command envelope and every transport implements them individually (engineHost → serve → transport → correlatedTransport → broadcast → broadcastTransport → leaderRelay → engineClient → facade, plus testkit). Budget the read as the dominant client cost.
Web side: /bin currently falls through the * catch-all (apps/web/src/App.tsx:10-23); AppSidebar.tsx:13 is the comingSoon stub, NavItem.tsx:77-88 discards to entirely when stubbed, and the bin icon already exists. apps/web/src/stores/sharing.store.ts is the right store shape (a projection with no independent writers); useVaultActions.ts:1-6 states the law the page must obey — "the UI never patches its own listing," so a restore must re-read rather than optimistically remove the row.
blueprint/engine.md:400
CONTEXT.md:60
sync/rebase.rs:503
Move
blueprint/engine.md:404
publish_ref_move
drain.rs:1363
drain.rs:1387-1389
Delete
blueprint/desktop.md:199
F3 — A repointed Delete fills the bin with .DS_Store. FUSE rmdir refuses a non-empty folder (crates/fuse/src/ops.rs:1137-1155) but treats platform junk as invisible, then delete_descendants issues one Command::Delete per junk descendant (crates/fuse/src/ops.rs:1027-1046). Repoint Delete and every hidden junk file the mount sweeps becomes a user-visible bin entry.
F4 — v1's bin was not a folder at all, which is a fourth model the proposal never weighed: a standalone per-user JSON blob, ECIES-sealed, published at an IPNS name HKDF-derived from the login secret (v1:packages/core/src/bin/derive-ipns.ts:19-21), holding BinEntry records with originalParentIpnsName, originalPath, deletedAt, descendantCids, and originalFolderKeyEncrypted (v1:packages/core/src/bin/types.ts:19-73). v2 has the exact structural precedent for it — the vault settings record (crates/engine/src/settings.rs, 1719 lines; core framing at crates/core/src/seal/settings_record.rs, body opaque to core) and the owner-local store family (crates/core/src/seal/owner_local.rs, OwnerLocalKind::{ReceivedShares, ContactBook, InviteRecords}). It is a real option, and F1 is what kills it.