From 0986e67febd7996d08cf605db5d517009cbd59ab Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Sat, 21 Nov 2026 21:59:06 -0600 Subject: [PATCH] docs: specify moderation and true-delete transitions --- .../answers.md | 1 + .../part-a-graph/versioned-design.md | 24 +++++++++++++++++++ .../part-c/versioned-design.md | 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/answers.md b/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/answers.md index 12c06a294f..83be97d231 100644 --- a/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/answers.md +++ b/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/answers.md @@ -22,6 +22,7 @@ incorporating them; final review must verify the actual documents agree. | Compromise response | Minimal emergency disable/revoke/quarantine in V2; advanced incident/reputation automation in V4. | V3 federation cannot ship without the V2 safety baseline. | | Receipt evidence | Typed, scoped signed assertions at a time. Receipt alone does not establish perpetual retention, availability or later query eligibility. | Any contradiction evaluator must prove comparable scope/time/policy/authority and applicable obligations. | | GC concurrency | Participating-writer generation/tombstone fencing, not a non-atomic fresh-reference check. #9084 supplies the reference/lifecycle authority. | No collection enablement until the ownership seam and race model pass; this does not settle copy versus reference. | +| Referenced deletion | Ordinary GC never deletes a referenced object, even if marked. Only reference clearance plus retention/replication horizon makes it collectible; an override is a separate, audited server-admin action allowed only by published policy and executed through the same generation fence. | Dangling references return `MissingObject`; local deletion never claims global revocation. Part A §9 and Part C GC cross-link this boundary. | | Cache freshness | Locally available source/policy watermarks plus bounded staleness; real-time/cache-disable bypass. Authorization revocation is not allowed the ordinary stale-content window. | A cache requiring a remote authoritative read on every hit fails the intended hop-skipping benefit. | | Embedders | Snowflake Arctic is the current model family. #9092's second-embedder evaluation is still undecided; consume its versioned result. | No Cortex dependency or guessed second model is introduced here. | diff --git a/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-graph/versioned-design.md b/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-graph/versioned-design.md index 4fe69d565d..ba8dafd57e 100644 --- a/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-graph/versioned-design.md +++ b/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-graph/versioned-design.md @@ -139,8 +139,32 @@ Comments attach to the exact version ID. **V3 social projection** carries ancest Keep four distinct states: `DeleteRequested` (author/group request), `ModerationQueued` (review workflow), `HiddenInProjection` (policy/view outcome), and `TrueDeletedOnThisServer` (storage lifecycle). Requests and decisions are append-only signed evidence. Server admins may true-delete under published server policy; GC may remove only when reference graph says unreferenced under a named retention/replication horizon; owner/group users can request deletion for next batch. A request never deletes immediately. `please_delete` / `please_moderate` is a bounded, rate-limited queue with stable ticket ID and audit status. +The terms are orthogonal: `DeleteRequested` is an intent, `ModerationQueued` is a work item, and `HiddenInProjection` is a local serving decision; none implies another. `TrueDeletedOnThisServer` records local storage lifecycle only and never claims global erasure. Request processing is batched (bounded count/bytes/time per pass); enqueue is immediate and bounded, while approval, hiding, and physical collection are separate actions. + +| Current state / condition | Actor + action | Result | Required authority / evidence | +| --- | --- | --- | --- | +| No request | Author or authorized group member marks own item for deletion | `DeleteRequested`; eligible for next bounded batch | Valid signed request, target scope, idempotency key | +| No request | Any permitted reporter submits `please_delete` or `please_moderate` | `ModerationQueued` ticket; object is not thereby deleted | Rate-limited ticket with stable ID, reporter, reason/category, target, status | +| `DeleteRequested` | Batch processor evaluates request | Remains requested, or creates/links `ModerationQueued` when policy requires review | Idempotent batch receipt; never directly removes bytes | +| `ModerationQueued` | Authorized reviewer approves/rejects | Decision is appended; approval may schedule a policy action; rejection closes ticket | Signed reviewer decision with policy revision and ticket ID | +| Any non-deleted state | Server policy or authorized moderator hides from a named local projection | `HiddenInProjection` for that projection; underlying evidence and bytes remain | Signed/local auditable policy decision; scope and expiry/recheck policy | +| `HiddenInProjection` | Authorized reviewer/policy clears hide | Projection returns to its prior eligible state; no request or evidence is erased | Append-only clear decision; re-evaluate current access and moderation policy | +| `DeleteRequested` or approved `ModerationQueued` | GC evaluates an object whose references have cleared | Eligible for fenced collection, then `TrueDeletedOnThisServer` | Current reference generation is empty and retention/replication horizon has elapsed; #9084 fence required | +| Any non-deleted state | Server admin orders policy true-delete | Fenced policy deletion; `TrueDeletedOnThisServer` on this server | Published policy authorizes this action; signed decision and receipt; references ordinarily block it | +| Referenced object | GC attempts ordinary collection | **No transition**; retain bytes and state, report referenced/deferred | A fresh check is not enough; must pass #9084 generation fence and retention checks | +| Referenced object | Server admin invokes explicit policy override | May proceed to local true-delete with dangling references | Override conditions below; never represented as ordinary GC success | +| `TrueDeletedOnThisServer` | Any actor requests restore, approve, hide, or ordinary GC | **No transition**; retain receipt/tombstone and return `MissingObject` for unavailable content | Restoration, if supported later, is a new generation/new object operation, not reversal of deletion | + +Unlisted actor/action pairs are denied and produce no state mutation. In particular, a request, queue ticket, hide, or reviewer approval alone cannot reach `TrueDeletedOnThisServer`; only the explicit server-policy path or successful fenced GC path can do so. Group members can request only within their own authority; reviewer/admin permissions are evaluated at the committing authority frontier, not when a ticket was first opened. + +**Referenced-object override.** The default is strict: a referenced object is not GC-deleted even if marked. It becomes collectible only after references clear and the retention/replication horizon elapses. The sole exception is an explicit server-admin decision permitted by the server's published policy (for example a legally required local removal). That decision must be signed or equivalently authenticated in the server's durable audit log and record actor/key, target and tenant, policy ID/revision, reason code plus human-readable rationale, ticket/request ID, reference-index generation and the fact that references remain, timestamp, and affected projections/stores. The deletion receipt retains those fields where retention law permits. The executor still uses the #9084 fence so new references cannot race the operation. Dangling references resolve as `MissingObject`; no substitute is silently served. If policy forbids retaining the receipt, retain only the minimum non-content proof allowed by that policy and make the evidence-retention exception explicit. + +**Worked example.** Alice marks image `I` for next-batch deletion. The batch records `DeleteRequested`; the item remains available unless policy separately hides it. A GC pass finds live reference `R -> I`, so ordinary collection returns `Referenced/Deferred`, leaves the bytes and reference intact, and does not advance to true-deleted. When `R` is removed, the collector waits through the configured replication/retention horizon, fences the current generation, confirms the reference set is still empty, then deletes only that fenced physical generation and records `TrueDeletedOnThisServer`. Alternatively, if a published legal-removal policy permits an override while `R` remains, a server admin records the full override decision above; the object is locally deleted under the fence and reads of `R` return `MissingObject`. The latter is a policy override, not a GC inference, and does not claim remote replicas or downloaded copies were erased. + True deletion procedure uses a fencing protocol shared with #9137 GC and #9084 content references: create durable `Deleting(object_id, generation, policy_id)` tombstone with a monotonic fence; stop new reads and reference creation through that fence; atomically validate reference-index generation + retention horizon and claim the delete generation; delete bytes/caches only after compare-and-swap confirms no write/reference can cross the fence. A fresh reference check alone is racy. Stale workers with older fences cannot delete a newly retained object. Unresolved #9084 ref-vs-copy semantics must be consumed before enabling physical GC of shared content. Version deletion can remove serving bytes only under policy; it cannot erase signed/evidence records whose retention policy requires them. Keep a non-content deletion receipt where allowed. This cannot revoke bytes already downloaded, erase unknown copies, or prove global deletion. A host must not advertise global revocation as fact. `Referenced` blocks ordinary GC; admin override must record reason and may leave dangling refs, returned as `MissingObject` not silently substituted. Tenant boundary is checked at reference traversal and GC scope; do not let a cross-tenant pointer authorize access. +**Part C coordination (reciprocal contract):** Part C owns GC scheduling, storage-adapter mechanics, and physical-generation deletion. This section owns the object-state/policy decision and the required reference predicate. Part C must consume the preceding rule—only an unreferenced object after its retention/replication horizon is ordinarily collectible, and a referenced object is protected absent an explicit audited server-admin override—while this section relies on Part C's fenced generation/key non-reuse contract. See [Part C's GC design](../part-c/versioned-design.md#9137-gc-s214-s215-s219). The two sides do not settle #9084's reference-versus-copy authority. + ## 10. #9131 — signer-bound spaces and petnames Address derivation uses an explicit signed profile: `SpaceBindingV1 = [null, typed_public_key_bytes]` in the namespace address core; it does not imply a UUID. Well-known control lookup is a typed array path, e.g. `[typed_text("id"), typed_text("space-control"), typed_object_ref(space_id), typed_text("events")]`, not an untyped string path or guessed UUID. Client recomputes/decodes under the exact profile version, verifies signature and namespace rules, and checks the designated signer key. The address binding is immutable: rotating/transferring control cannot replace the key at the same coordinates. A successor either proves a signed chain at the original address (without changing the original binding) or creates a new address and publishes an explicitly signed redirect/transfer link from old to new. Client-side validation proves only key control over that binding record. A server may store, index, or serve it but cannot manufacture proof. Petnames are local client mappings `(local_owner, canonical_object_ref -> display_label)`; they are not globally unique and never affect equality, authorization, or signature validation. diff --git a/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/versioned-design.md b/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/versioned-design.md index bd74e23730..fbf374d866 100644 --- a/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/versioned-design.md +++ b/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/versioned-design.md @@ -28,7 +28,7 @@ Separate `BlobStore` (immutable bytes), `MetadataIndex` (tenant-scoped metadata/ ### #9137 GC (S2.14–S2.15, S2.19) -#9084 must own an atomic reference/tombstone generation authority. Writers conditionally commit reference intents only while generation `Live(g)`; GC atomically fences `Live(g)→Tombstoned(g)` only when no references/intents/valid leases exist. This prevents late ref-add TOCTOU: g is no longer referenceable. Each physical generation uses an immutable generation-qualified key that is never reused. Resurrection allocates g+1, uploads/verifies it under a distinct new physical key, then commits refs to g+1; canonical `ContentId`/`PayloadId` profile does not change. A failed pre-commit upload may leave an orphan but cannot publish a reference. After grace, collector may issue ordinary DeleteObject only for the captured, fenced, never-reused key for g; it does not rely on a conditional-delete API. A stale delete of g cannot address g+1. If either the #9084 atomic fence or key non-reuse cannot be proven, physical deletion is unsupported/disabled. A normal put addressed to Tombstoned(g) rejects or returns Tombstoned; only explicit resurrection may allocate g+1. Collector prioritizes largest reclaimable files within bounded budget; chunk identities/manifests are independently reclaimable without changing whole-file canonical identity. #9084 owns the predicate/transaction mechanism; reference-v-copy remains unsettled. +#9084 must own an atomic reference/tombstone generation authority. Writers conditionally commit reference intents only while generation `Live(g)`; GC atomically fences `Live(g)→Tombstoned(g)` only when no references/intents/valid leases exist. This prevents late ref-add TOCTOU: g is no longer referenceable. Each physical generation uses an immutable generation-qualified key that is never reused. Resurrection allocates g+1, uploads/verifies it under a distinct new physical key, then commits refs to g+1; canonical `ContentId`/`PayloadId` profile does not change. A failed pre-commit upload may leave an orphan but cannot publish a reference. After grace, collector may issue ordinary DeleteObject only for the captured, fenced, never-reused key for g; it does not rely on a conditional-delete API. A stale delete of g cannot address g+1. If either the #9084 atomic fence or key non-reuse cannot be proven, physical deletion is unsupported/disabled. A normal put addressed to Tombstoned(g) rejects or returns Tombstoned; only explicit resurrection may allocate g+1. Collector prioritizes largest reclaimable files within bounded budget; chunk identities/manifests are independently reclaimable without changing whole-file canonical identity. #9084 owns the predicate/transaction mechanism; reference-v-copy remains unsettled. The object-state and server-policy preconditions are owned by [Part A §9 / #9130](../part-a-graph/versioned-design.md#9-9130--moderation-deletion-and-gc): marked or moderation-queued content is not collectible merely because of that state; references protect it unless reference clearance or the explicit audited server-admin override applies. GC must report the latter distinctly from ordinary unreferenced collection. ## V3 — bounded hot cache, ID search and recommendation processing