Repository navigation
refactor: consolidate ranked private clone owners - #181386
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis 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. |
|
|
Codex review: needs maintainer review before merge. What this changesThis PR consolidates private diagnostic, session, elevated-policy, transcript-navigation, and stylesheet implementations into shared owners. Example: An operator opens New Session and then Chat.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-owned refactor removes real duplication without a concrete introduced correctness or security defect. The inspected UI failures also occur on main; CI disposition remains pending. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGateway and agent helpers project session records and execution policy into retained runtime facts, while Control UI styles turn route-specific class names into presentation. flowchart TD
A[Session records and policy] --> B[Shared private projections]
B --> C[Gateway and agent consumers]
C --> D[Committed identity notifications]
E[Control UI routes] --> F[Shared stylesheet owners]
F --> G[Rendered controls]
Technical reviewBest possible solution: Retain the shared private owners and existing behavior, then complete the repository’s normal CI disposition. Do we have a high-confidence way to reproduce the issue? This is a refactor rather than a bug report; source inspection verifies the duplicated implementations without executing target code. Is this the best way to solve the issue? The change uses existing owners, removes the replaced copies, and preserves the distinct authority and settlement boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against eb87bb1fd7ba. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -158, Tests +97. Total -61 across 36 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 23, 2026, 2:12 AM ET / 06:12 UTC. |
|
Exact-head CI attribution for
The actual CI checkout is merge This PR DOES change layout.css. It does not change the determining row/loading/title declarations or markup, but whole-file byte equality is not claimed. A new isolated Chromium comparison used committed real CSS and source-derived static DOM at precisely c99/b071: all computed non-custom properties, rectangles, and before/after pseudo-elements for every copied descendant matched during loading and resolved states, across six dark/light desktop/mobile fine/coarse scenarios. Both pins reproduce the+2px child offset and176px mobile title; the original assertions still fail on both. This is bounded static equivalence, not Solid/full-app/Gateway E2E, dynamic stylesheet arrival, or text-scale140 proof. The earlier independent512-document/36,256-property cascade matrix remains the focused proof of the moved CSS families. Cloud/rename state owners and tests are unchanged at the actual parent/merge. All217 bounded local dictation owner/test dependency inputs are unchanged between c99/b071. Earlier real-owner final-drain/timeout cases passed at main685 and tested merge9511; their source/provenance and unrelated imported-source/tooling drift were qualified before reuse. Those are not current browser E2E passes. Main #180923 intentionally delays transcript commit until final/close settlement; observing an outbound close request is not that settlement. No CI job in the completed82-job attempt is cancelled or timed out. Older PR-context failure120264422851 and cancelled120264336788 are superseded by success120265514929 after correcting the PR-body headings, without a source push. Cancelled advisory auto-response jobs120264578712/120264574160/120264573764 are superseded by later successful/skipped advisory runs, not missing product-suite proof. Exact-head security-fast120264886899 and all six Security High categories passed. Current protected security/dependency statuses remain native landing gates. Focused owner/consumer tests, targeted native types, lint/format, suppression/ratchet/wrapper-closure checks, zero runtime/static cycles, and independent P0–P2 reviews remain valid for this unchanged head. No retry, raised timeout, weakened assertion, source push or CI rerun was used to chase green. Failed CI is retained as failed under the standing inherited-failure landing authority. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* refactor(feishu): share invalid transcript findings * refactor(sessions): reuse stored-row change classification * refactor(ui): share same-sheet focus and typography rules * refactor(usage): reuse raw navigation projection * refactor(agents): share elevated policy snapshots * refactor(sessions): share committed identity result publication * refactor(ui): consolidate shared stylesheet declarations


What Problem This Solves
Measured clone groups still repeated private projections and identical stylesheet declarations after the earlier cleanup passes. The copies had established owners but were maintained separately.
What changed
Net production LOC: 158 removed, measured against branch base 5b4ee4d in src, ui/src, extensions and packages, excluding tests/support/fixtures/generated/declarations/locales. Signed head: 73778cd.
Best-effort tradeoffs accepted
No guard or recovery mechanism is removed. The cross-sheet CSS consolidation adds 1555 raw eager bytes while removing 2917 lazy bytes (1362 fewer overall); this trades some stylesheet locality for one maintained declaration owner. No load-time or runtime-performance improvement is claimed.
Evidence
160 focused owner/consumer cases passed serially with one worker, including diagnostic repair, session generation/sharing, raw navigation and usage, elevated grant/handoff, purge, rewind/fork/native binding and commit publication. Targeted native typechecks, formatting and typed lint passed for each code cut. Independent isolated reviews found no actionable P0-P2 defects.
Sessions/Secrets: 168 complete computed-property comparisons passed across themes, widths, forced colors and interaction states. Cross-sheet Chromium parity passed 36,256 complete computed non-custom-property comparisons across 512 documents, eight load-order scenarios, two themes, four widths, forced colors, reduced motion and interaction states. Inspected synthetic before/after captures match.
Final assertion-safety ratchet, lint-suppression tests (14 cases), PR-wrapper source closure (3 cases), runtime cycles (0), static cycles (0), and diff whitespace checks passed. The first cross-sheet fixture invocation hit the wrapper's no-output watchdog while making progress; adding progress output to the ignored fixture allowed the full proof to finish. No timeout, assertion, skip or production code was changed to obtain that result.
The browser fixtures use production stylesheet orders and actual producer class combinations, including late sidebar insertion, reduced motion, responsive overrides, desktop/mobile diffstats and keyboard focus. They are static synthetic stylesheet/cascade proof, not full-app E2E or live Gateway proof. No broad local suite/build or whole-graph typecheck ran; exact-head PR CI owns broad/platform proof.
Inspected synthetic cross-sheet fixtures, before/after pairs:
Sessions/Secrets before and after.