Rename prohibitAllSharing to containsRestrictedData - #234
Conversation
Preview:
|
This comment was marked as resolved.
This comment was marked as resolved.
c04d5e3 to
aa71300
Compare
|
The test mock uses My review is complete. This PR is a clean, well-executed rename. Let me summarize the findings. Review SummaryThis PR renames the sharing-policy flag from What's correct:
Non-blocking observations (advisory):
No actionable defects found. The rename is careful and the storage-key preservation is exactly right. |
|
The I've completed a thorough review. This is a substantive kernel-level policy change (the two conflicting earlier bot comments each got half the story — commit 1 renames, commit 2 changes the policy). My analysis: Correct and well-designed:
I found one real availability concern worth an inline comment, plus advisory notes. The concern (bot observation #1) is confirmed by the code: for Given the PR is explicitly marked WIP, these are advisory. Review SummaryThis PR is not just a rename (despite the title). It has two commits: (1) rename What's correct:
Findings (advisory; PR is WIP, working tree read-only so no inline review submitted):
No actionable defects. The coverage-guard reasoning and storage-key preservation are exactly right, and the test matrix is thorough. |
A cached vp run executes each task with only (PATH, HOME, CI, NODE_OPTIONS, …) forwarded. Anything else is invisible to the command and absent from the cache fingerprint.
Every PR gets an isolated deployment of all 18 workers as Worker Previews, reachable at the router preview's workers.dev URL. `scripts/preview/` generates a `wrangler.staging.jsonc` per package (gitignored build output), deploys the three tiers in dependency order, patches each service binding at the sibling preview, and comments the URL on the PR; the close event deletes the preview and a nightly sweep collects strays.
fd04b0d to
42aefbf
Compare
A mechanical rename with no behavior change, preparing to replace the all-or-nothing sharing lockdown with per-collaborator observer verification (next commit): the flag's real meaning is "this observation contains restricted data", and what the platform does about that is policy that should not be baked into the name. - `ObservationDescription.prohibitAllSharing` becomes `containsRestrictedData` (no alias). The overseer's durable singleton keeps its historical storage key -- renaming it would silently unlatch every workspace that already carries it -- with a NOTE explaining why. - `GadgetMetadata.sharingProhibited` becomes `containsRestrictedData`. - BigQuery call sites, comments, and docs follow the rename. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
A sensitive observation used to be blocked whenever the workspace had any share at all, and latched a mode that blocked all future sharing. Observer verification (addObserver/getVerifier, re-checked on every open) has fully landed and is the intended replacement for the sharing half of that latch, so: - `authorizeObservation` no longer throws just because shares exist. Instead a narrower coverage guard requires every *current collaborator* to hold an observer record covering the producing gatekeeper, closing the live-session gap (verification otherwise only runs at open()). Unredeemed share links no longer block: redemption is gated at open(), where ensureObserver runs before the recipient sees anything. - The sharing enforcement sites are deleted: the open() short-circuit, the receiveExternalMessage refusal, and the addCollaborator / createShareLink / newShareLinkKey throws. - Restricted mode is unchanged: a latched workspace still cannot perform actions or fetch from the public web. - The ShareModal's blocking panel is now a non-blocking informational banner, since sharing is allowed but recipients must verify. - The integration-test fixture gains a real session (readThing/doThing) so tests can drive the observation/action policy through the real ApprovalQueue funnel; new tests cover the coverage guard and the restricted-mode latch. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
cf3449d to
f633a1a
Compare
|
Confirmed: I've completed a thorough review. Let me summarize the findings. Since the working tree is read-only, I'll report findings in the final response. My findings are advisory design notes (the PR is explicitly WIP) — no defects that would warrant an inline review. Review SummaryThis PR has two commits and is not just a rename despite the title: (1) rename What's correct:
Findings (advisory; PR is WIP, working tree read-only, no inline review submitted):
No actionable defects found. The coverage-guard reasoning, storage-key preservation, and the test matrix are exactly right. |
42aefbf to
b94640e
Compare
Also rely on observer verification when viewing restricted data
WIP