Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Review of #1363 (shared-source access). Allison's review, posted by Fermy (his agent). Line numbers are at Small and sound:
The gaps are the other paths that list dependants. This PR
Tests
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 46ad3c348e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| .map( | ||
| (team) => | ||
| `<label class="field-choice"><input class="field-checkbox" type="checkbox" name="teamIds" value="${escapeAttribute(team.id)}"${selectedTeams.has(team.id) ? " checked" : ""}>${escapeHtml(team.name)}</label>` | ||
| `<label class="field-choice"><input class="field-checkbox" type="checkbox" name="teamIds" value="${escapeAttribute(team.id)}"${selectedTeams.has(team.id) ? " checked data-current" : ""}>${escapeHtml(team.name)}</label>` |
There was a problem hiding this comment.
Keep team markers out of the public-confirmation selector
When a tier-1 patch already shared with selected teams switches to “Anyone on the internet,” its original team checkboxes remain checked and now carry data-current. The existing .share-audience:has(input[data-current]:checked) .share-change rule therefore hides the “Make public” confirmation, while the separate .share-save rule hides the regular submit button for a new public selection. The owner is left without a visible action to apply the change. Restrict the confirmation-hiding selector to the scope radios or use a distinct marker for previous team selections.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ee34bbbe52
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const summary = input.dependants; | ||
| const dependencyWarning = | ||
| summary && summary.dependants.length + summary.hiddenCount > 0 | ||
| ? `<aside class="note note-warn" data-source-warning hidden><strong>Some people may lose shared reads</strong><ul>${summary.dependants.map((d) => `<li>${escapeHtml(d.name)}</li>`).join("")}${summary.hiddenCount ? `<li>${summary.hiddenCount} others</li>` : ""}</ul><p>Previously copied data stays with its destination.</p><label><input type="checkbox" name="force" value="true" disabled> Acknowledge shared-read failures</label></aside>` |
There was a problem hiding this comment.
Use shared field styling for the dependency acknowledgement
When a source with dependants is narrowed to selected teams, the new acknowledgement renders with an unclassed label and checkbox. Unlike the other Share controls, it therefore misses the 44px minimum hit target provided by .field-choice in packages/core/src/html.ts:809, making the acknowledgement harder to activate on touch devices. Apply field-choice to the label and field-checkbox to the input, as required by the UI consistency spec that AGENTS.md mandates for served pages.
AGENTS.md reference: AGENTS.md:L79-L79
Useful? React with 👍 / 👎.
|
Superseded by #1416 (the rollback bridge) and #1417 (teams), which carry this work forward under Allison's decisions on #1192 (#1192 (comment)). Closing without merging; Srikar is co-author there. Posted by Fermy (Allison's agent). |
Review reconciliation — 2026-11-11
SDK generation now uses findForViewer for an explicit patchId, closing the separate restricted-ID existence probe. Existing viewer-required shared table/store schema checks are preserved; a focused case covers restricted, missing and entitled IDs.
Included in assembled #1379 at
0e01b1c3. All 24 workspace typecheck tasks and 74 focused tests pass on its code parent 19e603f; the final head adds only documentation wording. Broad verification is non-green; Srikar owns the complete Brightline journey. This does not establish full-feature readiness.What changed
Shared reads and SDK schema generation now require the initiating viewer to be entitled to the source patch. Dependency guards still count every consumer, but disclose names and owners only for patches the actor can open, plus a count of the others.
The Share warning appears only when selected teams narrow access. Acknowledgement is explicit and checked against the dependency summary at save time. Rendering uses the existing read-only management check and omits the warning if access disappears. Publish keeps its existing single force option for both dependency refusals.
Closes #1290. Part of #1192. Stacked on #1362. This update incorporates the current parent without changing any other PR branch.
Look at
Audiences.test.ts: membership removal denies the same viewer's protected runtime lookup and table/store schemas; an entitled viewer continues and membership restoration recovers. Hidden consumers still block retirement, metadata stays filtered, warning reads take no row locks, and a new consumer invalidates an old acknowledgement.How it was verified
Affected API/SDK/portal/render suites: 208 tests passed. Final viewer-required source/table/file suites: 57 passed. Focused CLI refusal suite: 14 passed. Workspace typecheck: 24 tasks passed; lint, formatting and whitespace pass. Browser warning checks passed. Commit:
be0af044.The broad CLI run retains three macOS PTY failures in tests using Linux
scriptflags. Fullpnpm verifyand independent acceptance are not claimed. No merge-ready claim.Surface audit: source schemas, runtime shared reads and file redemption, live authority tracing, dependency refusals, management cards and sharing warning, API schema/docs, CLI refusal details and docs, product copy boundary, and existing release-bound shared-resource skills apply. No new migrations or packages. Copied data follows its destination's permissions; revocation does not retract prior copies.
CI follow-up:
630c5d4ffixes the obsoleteaudience_revisionreference in live-read fencing after the parent consolidated authority intolifecycle_revision; its test now exercises actual sharing and retirement. Two stale Teams-markup assertions were aligned with the current page.ee34bbberestricts the public-confirmation CSS selector to scope controls, fixing the review finding without treating team-checkbox markers as scope selection.Verification: the previously failing browser case was reproduced, then all five subscription browser journeys passed; packed tier-2 smoke passed end to end. Local query subscriptions (3), patch audience/lifecycle suites (13), hosted member/guest suites (14), and Teams suite (27) passed. The rendered Share-dialog browser check covers hidden-team preservation, widening/narrowing, acknowledgement reset, and public confirmation; that confirmation check failed before the selector fix and passed after it. Workspace typecheck (24 tasks), lint, formatting and whitespace passed. Latest-head GitHub checks are being verified.
Release impact
Internal viewer-required APIs and additive refusal metadata protect the unmerged team-access stack. Company-wide reads retain their behavior.
Model and harness: GPT-6 through Codex.