GeezerVison is showing github.com — Apply scope authorization before location candidate counts and projection · Issue #10271 · developing-today/code
Apply scope authorization before location candidate counts and projection #10271DescriptionProblem and goal
Filter unauthorized locator values and counts before ranking, caching or returning results.
Version and design basis
Version: V2. Settled design: https://github.com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-addressing/versioned-design.md#9115--existence-acknowledgements-location-harvester-privacy (section: #9115 — Existence acknowledgements, location harvester, privacy).
Tier: crucial.
Statement IDs: S3.21, S3.22, S3.26, S3.27, S3.28, S3.29, S3.30, S3.31, S3.32, S3.33, S3.34, S3.35, S3.36, S3.37, S3.38
Enables: Privacy-safe location harvesting in shared storage deployments.
Scope and ownership
Parent: #9115 (native component/meta parent).
pkgs/id/crates/id-store/src/location_policy.rs (new; owner: A9115-privacy-filter)
pkgs/id/crates/id-store/tests/location_privacy.rs (new; owner: A9115-privacy-filter)
Hard dependencies (native blockers): A9115-complete-harvest — Requires complete per-scope fold of validated locations, source-version refs and signed stale/delete tombstones from A9115-complete-harvest.; 9110-02 — Adds this consumer module to the crate root and owns Cargo manifest/export changes; this slice owns only its distinct module and tests.; 9083 — Consumes the authenticated tenant/scope context contract; this slice does not define tenancy.
Soft sequencing (not blockers): none
Test / evidence first
Create or validate pkgs/id/crates/id-store/tests/location_privacy.rs first. Proposed command: cargo test -p id-store --test location_privacy
Oracle: model — expected Authorization model: output/candidate counts are functions only of the authorized visible subset.; verifier: Generate the listed operations against the specified state/reference model and compare every resulting state and error..
Done and rollback
Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Disable the affected acknowledgement or derived location-index writer/query; preserve signed receipts, sidecars and tombstones so the projection can be rebuilt without losing evidence.
Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.
Activitydeveloping-today commented on Nov 14, 2026 dezren39 commented on Nov 14, 2026
Agent note — task 17111 preflight outcome: BLOCKED on native blockers (lane code-a, 2026-11-14)
Mandatory triage/preflight for slice A9115-privacy-filter, performed per the task spec — no implementation attempted, no production rollout authorized or started.
Native blockers read from this issue's GitHub blocked-by graph at 2026-11-14T18:43Z — all OPEN:
All blockers remain open, so task 17111 has self-blocked exactly as prescribed (fleet queue block 17111 --reason-class blocked with --blocked-by-issue naming all three, blocker: "waiting on native issue blockers"). Work stays paused until every blocker closes; the block re-serves the preflight when they clear. dezren39 commented on Nov 17, 2026
🤖 Agent note · triaged — task 19204 (lane code-a)
- Work kind: implementation slice A9115-privacy-filter (program epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106, parent design(id): existence acknowledgement + metadata harvester + location index #9115; tier: crucial — scope authorization before candidate counts/projection) · State: already routed; no new packet (dedupe — the implementation task exists and its blocker gate is doing its job).
- Fresh evidence (2026-11-17): issue Apply scope authorization before location candidate counts and projection #10271 OPEN. Implementation task 17111 blocked 2026-11-14 on native blockers design(pm-stack): tenancy architecture — per-user Turso databases + central tenancy DB, served by Workers and Durable Objects #9083 + Define versioned capability-oriented port contracts #10160 + Index every valid visible sidecar location with tombstone reconciliation #10255. Re-verified just now: Define versioned capability-oriented port contracts #10160 CLOSED (gate cleared); design(pm-stack): tenancy architecture — per-user Turso databases + central tenancy DB, served by Workers and Durable Objects #9083 still OPEN (per-user Turso DBs / authenticated tenant-scope context this slice consumes) and Index every valid visible sidecar location with tombstone reconciliation #10255 still OPEN (A9115-complete-harvest). Task 17111 stays blocked on design(pm-stack): tenancy architecture — per-user Turso databases + central tenancy DB, served by Workers and Durable Objects #9083 + Index every valid visible sidecar location with tombstone reconciliation #10255; the broker re-serves its preflight when both close.
- Why nothing else: the remaining blockers are sibling fleet slices (§5b dependencies, not user decisions), and the slice's own spec forbids implementing around its declared hard dependencies — for a privacy filter, sequencing is the safety property. No labels added: the issue intentionally carries none beyond its lifecycle state, which the blocked task already maintains.
dezren39 commented on Nov 17, 2026 lane: openchamber-scheduled-lane (code-j), worker repo-worker-code
task: 17111 (triage/preflight, slice A9115-privacy-filter)
transition: blocked
reason: native blocker preflight: #9083 OPEN, #10255 OPEN, #10160 closed. Per packet, no implementation performed.
resume: when #9083 and #10255 close, the queue's dependency recheck reopens this task.
dezren39 commented on Nov 18, 2026
Triage — queue task 20548, openchamber scheduled lane (oc-code-03), 2026-11-18.
Fresh GitHub state (08:49 UTC): #10271 OPEN, labels status/blocked, queue/blocked. Native blocked-by graph: #10255 OPEN, #9083 OPEN; #10160 CLOSED.
Verdict: triaged, dependency-blocked. Existing disposition stands: work stays with task 17111 (A9115-privacy-filter), which resumes when #9083 and #10255 close. No duplicate follow-on packet enqueued. dezren39 commented on Nov 20, 2026
Claimed by repo-worker-code on scheduled lane any-o for the mandatory native-blocker preflight (no implementation). Fresh state: #9083 OPEN, #10160 CLOSED, #10255 OPEN. Per packet, with open blockers remaining the task self-blocks and no implementation is performed. dezren39 commented on Nov 23, 2026
Claim + preflight PASSED — Lane FO (archer), queue task 17111
Mandatory native-blocker preflight for slice A9115-privacy-filter, re-run fresh this pass (gh REST):
All native blockers are closed, so per the task acceptance I am proceeding with the implementation within the issue's approved scope only: new pkgs/id/crates/id-store/src/location_policy.rs + pkgs/id/crates/id-store/tests/location_privacy.rs, oracle cargo test -p id-store --test location_privacy. No crate-root/manifest changes (export stays with 9110-02; the test includes the module by path, per the location_index pattern). No production rollout. dezren39 commented on Nov 23, 2026
Done — Lane FO (archer), queue task 17111
Preflight re-run fresh this pass: native blockers #9083 CLOSED, #10160 CLOSED, #10255 CLOSED — so per the task acceptance the implementation proceeded within the approved scope.
Landed — PR #12958 merged (merge 955c636f55b5, head 7e00a980e39), exactly the slice's two owned files, verified present on main:
pkgs/id/crates/id-store/src/location_policy.rs — ScopeAuthorization (authenticated namespace + tenant scope, plus explicitly configured public and unverified grants) and the AuthorizedLocations view. Visibility per the design(id): existence acknowledgement + metadata harvester + location index #9115 privacy rule: Public needs the public grant or the scope grant; Scope needs the exact scope; StoredUnverified needs the scope and the unverified grant (never proof of content, A-9115.1); tombstone-created entries are scope-private. Counts, candidates, lookups, projections and acknowledgements are all computed from the authorized visible subset only — an unauthorized location is indistinguishable from an absent one. Acknowledgements: VerifiedPresent / NotPresent / Indeterminate internally, coalesced externally (A-9115.1). Authorization filters visibility, never states (A-9115.2). No crate-root/manifest changes (export stays with 9110-02; the test includes the module by path, per the location_index pattern).
pkgs/id/crates/id-store/tests/location_privacy.rs — the declared model oracle: an independent fold over plain maps plus a visibility predicate written from the design text.
Verification: cargo test -p id-store --test location_privacy in nix develop (pkgs/id, laptop worktree off origin/main): 7 passed / 0 failed, re-run after rustfmt (both files fmt-clean). Coverage: scope/public/wrong-scope panels, the no-leak invariance (adding unauthorized locations changes no unauthorized caller's output), the separate unverified grant, tombstone-only privacy + state pass-through, acknowledgement coalescing, label validation, and 3 seeds × 120 generated operations compared against the model after every event across a 7-authorization panel.
#10271 auto-closed by the PR's closing reference; verified by re-read.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|