Repository navigation
Conversation
This was referenced Nov 16, 2026
Closed
feat(access): share maintenance of a shared Profile with explicit maintainers
PsiACE/powercontext#13
Closed
PsiACE
pushed a commit
to PsiACE/powercontext
that referenced
this pull request
Nov 16, 2026
…tryable cleanup Implements the deletion half of RFC oceanbase#2611's Scope archive, deletion and cleanup section on top of the archive slice. Three explicit steps, because a deletion that acts on a set the requester never saw is not explicit: - `preview(selection)` resolves the exact structural set from parent edges only and returns it with a digest over `(scope_id, parent_scope_id, version)`. - `confirm(selection, digest, single_scope=...)` re-resolves inside the existing hierarchy boundary and refuses a set that changed by attachment, move or metadata update; `single_scope` conflicts while children exist. It then refuses unresolved deployment defaults and persistent bindings, cuts access, and records the operation, confirmed set and per-resource progress. - `cleanup(operation_id)` runs each unfinished handler; a failure records a stable code and stays retryable, and the members remain non-writable so an incomplete cleanup never restores reads. Access cutoff is the existing `pc_scopes.lifecycle_state`, read at one serving boundary (`_scope_operation`) for every scoped read and write, so ordinary reads, historical readback, search, Prepare and plugin reads stop at the same point as writes. Archive still keeps reads available. Cleanup is a minimal boundary, not a workflow system: one idempotent `purge(connection, scope_id)` over the owned tables, derived from the schema rather than restated, and never following Context References or lineage into another Scope. An unsupported cleanup mode is refused before acceptance, so no partial delete is presented as success and no erasure is claimed. Tests cover the observable path end to end: a confirmed subtree delete, a single-Scope conflict with children, attach and move invalidating a confirmation, binding repair required first, a failed cleanup staying unavailable and retryable, an unsupported mode refused before the cutoff, the runtime refusing ordinary reads and writes after deletion, and a surviving Scope keeping its own revision intact.
This was referenced Nov 16, 2026
This was referenced Nov 17, 2026
PsiACE
marked this pull request as ready for review
November 30, 2026 07:24
PsiACE
marked this pull request as draft
November 30, 2026 07:25
Collaborator
hidb4ai
approved these changes
Dec 2, 2026
hidb4ai
left a comment
Contributor
There was a problem hiding this comment.
Reviewed 445954e. The RFC separates structural ownership from shared origins, rechecks authority at use and commit, and explicitly scopes deletion and incomplete cleanup. Existing capabilities, proposed behavior, and unresolved implementation decisions are distinguished consistently in both languages. No actionable defect found in this documentation-only change. No tables or runtime interfaces are added. Merge score: 80/100. Current Actions are cancelled/skipped; this approval does not establish implementation acceptance or replace required CI.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue or RFC does this PR close?
Related to #2570. Proposes the Scope sharing and processing RFC.
Rationale for this change
Team/project memory and RAG need common Scope semantics for authorized inputs, target-owned outputs, and lifecycle control.
What changes are included in this PR?
Are there any user-facing changes?
Documentation-only proposal; no runtime or API changes.
How was this change tested?
uv run prek run -aAI usage statement
OpenAI Codex assisted with drafting and review, using GPT-6 Astra, Luna, and Sol subagents for editing and evidence checks.