Repository navigation
test(ui): forbid new controller host consumers - #174446
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ac410cf8d9
ℹ️ 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 previousHostUsers = controllerHostUsers(root, previous); | ||
| const newHostUsers = [...controllerHostUsers(root, current)].filter( | ||
| (file) => !previousHostUsers.has(file), |
There was a problem hiding this comment.
Preserve verified renames in the host-user ratchet
When an existing controller-host consumer is renamed or moved without changing its dependency, the current file path is absent from previousHostUsers, so this guard rejects the change as a new consumer even though the migration surface did not grow. This will block ordinary refactors of any grandfathered consumer; account for Git-verified renames when comparing the two sets, while continuing to reject copies and genuinely new imports.
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThe PR rejects new production modules importing the retiring controller host while preserving existing consumers and test exclusions. Example: Add ui/src/new.ts importing ./lib/reactive/solid-controller-host.ts while production controllers remain.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: the guard is useful and absent from current main, but its path comparison incorrectly rejects moves of existing consumers. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe repository lint pipeline passes Git base and staged settings into the controller guard, which reads UI source snapshots and reports prohibited dependencies. flowchart TD
A[Lint entry point] --> B[Controller guard]
C[Git base sources] --> B
D[Current or staged sources] --> B
B --> E[Syntax parsed host consumers]
E --> F[Dependency comparison]
F --> G[Diagnostics and exit status]
Technical reviewBest possible solution: Preserve grandfathered consumers across Git-verified renames while continuing to reject copies and genuinely new host dependencies. Do we have a high-confidence way to reproduce the issue? Source establishes the failure: rename ui/src/components/assistant-panel-solid.tsx within its directory without changing its import, and the destination is absent from the base consumer set, causing exit 1; no execution was performed. Is this the best way to solve the issue? Syntax-based dependency detection appropriately extends the existing guard, but consumer identity must account for verified moves using the existing shared rename helper. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0f6f06339f28. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests +25, Other +41. Total +66 across 2 files. Added test files: 0. View PR surface stats
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 16, 2026, 1:02 PM ET / 17:02 UTC. |
|
Merged via squash.
|
…158510 * commit '236ceb85e92ac8cb5bdc58a4a70bd79cbebd1094': (24 commits) feat(decisions): run typed tasks with prepared model credentials (#157225) fix(gateway): retain observer slots until model work settles (#174262) refactor(ui): own assistant content subscriptions in Solid (#174035) refactor(logging): remove package and snapshot debug instrumentation (#174431) fix: show native Talk speech separately from completed answers (#172598) test(ui): forbid new controller host consumers (#174446) chore(deps): refresh dependencies with a seven-day cutoff (#174410) perf(ui): reduce idle native session catalog polling (#174404) refactor(test): remove unused Signal fixture overrides (#174445) fix: surface DNS zone and Linux camera read failures (#174424) fix(doctor): keep at most three standalone Doctor captures (#174415) perf(cron): reuse session writer for completed run alias cleanup (#174413) feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399) perf(channels): avoid rereading ingress queue mutations (#174393) feat(control-ui): keep link readers scoped to their pane session (#173652) test(ui): wait for desktop widget placement before pinning (#174439) refactor(ui): compose remaining plugin classes (#174441) perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690) fix(sessions): quietly settle archived delivery endpoints (#174442) perf(sessions): keep config loading out of transcript workers (#174414) ...
…esafe-decision-native * commit '236ceb85e92ac8cb5bdc58a4a70bd79cbebd1094': (24 commits) feat(decisions): run typed tasks with prepared model credentials (#157225) fix(gateway): retain observer slots until model work settles (#174262) refactor(ui): own assistant content subscriptions in Solid (#174035) refactor(logging): remove package and snapshot debug instrumentation (#174431) fix: show native Talk speech separately from completed answers (#172598) test(ui): forbid new controller host consumers (#174446) chore(deps): refresh dependencies with a seven-day cutoff (#174410) perf(ui): reduce idle native session catalog polling (#174404) refactor(test): remove unused Signal fixture overrides (#174445) fix: surface DNS zone and Linux camera read failures (#174424) fix(doctor): keep at most three standalone Doctor captures (#174415) perf(cron): reuse session writer for completed run alias cleanup (#174413) feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399) perf(channels): avoid rereading ingress queue mutations (#174393) feat(control-ui): keep link readers scoped to their pane session (#173652) test(ui): wait for desktop widget placement before pinning (#174439) refactor(ui): compose remaining plugin classes (#174441) perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690) fix(sessions): quietly settle archived delivery endpoints (#174442) perf(sessions): keep config loading out of transcript workers (#174414) ...
…/decision-tool-v2-proof-20261016 * commit '236ceb85e92ac8cb5bdc58a4a70bd79cbebd1094': (24 commits) feat(decisions): run typed tasks with prepared model credentials (#157225) fix(gateway): retain observer slots until model work settles (#174262) refactor(ui): own assistant content subscriptions in Solid (#174035) refactor(logging): remove package and snapshot debug instrumentation (#174431) fix: show native Talk speech separately from completed answers (#172598) test(ui): forbid new controller host consumers (#174446) chore(deps): refresh dependencies with a seven-day cutoff (#174410) perf(ui): reduce idle native session catalog polling (#174404) refactor(test): remove unused Signal fixture overrides (#174445) fix: surface DNS zone and Linux camera read failures (#174424) fix(doctor): keep at most three standalone Doctor captures (#174415) perf(cron): reuse session writer for completed run alias cleanup (#174413) feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399) perf(channels): avoid rereading ingress queue mutations (#174393) feat(control-ui): keep link readers scoped to their pane session (#173652) test(ui): wait for desktop widget placement before pinning (#174439) refactor(ui): compose remaining plugin classes (#174441) perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690) fix(sessions): quietly settle archived delivery endpoints (#174442) perf(sessions): keep config loading out of transcript workers (#174414) ...
…157433 * commit '3dd7f576829fd8ec1fd395acb59f3d4f9e999166': (24 commits) feat(decisions): run typed tasks with prepared model credentials (#157225) fix(gateway): retain observer slots until model work settles (#174262) refactor(ui): own assistant content subscriptions in Solid (#174035) refactor(logging): remove package and snapshot debug instrumentation (#174431) fix: show native Talk speech separately from completed answers (#172598) test(ui): forbid new controller host consumers (#174446) chore(deps): refresh dependencies with a seven-day cutoff (#174410) perf(ui): reduce idle native session catalog polling (#174404) refactor(test): remove unused Signal fixture overrides (#174445) fix: surface DNS zone and Linux camera read failures (#174424) fix(doctor): keep at most three standalone Doctor captures (#174415) perf(cron): reuse session writer for completed run alias cleanup (#174413) feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399) perf(channels): avoid rereading ingress queue mutations (#174393) feat(control-ui): keep link readers scoped to their pane session (#173652) test(ui): wait for desktop widget placement before pinning (#174439) refactor(ui): compose remaining plugin classes (#174441) perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690) fix(sessions): quietly settle archived delivery endpoints (#174442) perf(sessions): keep config loading out of transcript workers (#174414) ...
…/decision-onnx-v2-proof-20261016 * commit '3dd7f576829fd8ec1fd395acb59f3d4f9e999166': (24 commits) feat(decisions): run typed tasks with prepared model credentials (#157225) fix(gateway): retain observer slots until model work settles (#174262) refactor(ui): own assistant content subscriptions in Solid (#174035) refactor(logging): remove package and snapshot debug instrumentation (#174431) fix: show native Talk speech separately from completed answers (#172598) test(ui): forbid new controller host consumers (#174446) chore(deps): refresh dependencies with a seven-day cutoff (#174410) perf(ui): reduce idle native session catalog polling (#174404) refactor(test): remove unused Signal fixture overrides (#174445) fix: surface DNS zone and Linux camera read failures (#174424) fix(doctor): keep at most three standalone Doctor captures (#174415) perf(cron): reuse session writer for completed run alias cleanup (#174413) feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399) perf(channels): avoid rereading ingress queue mutations (#174393) feat(control-ui): keep link readers scoped to their pane session (#173652) test(ui): wait for desktop widget placement before pinning (#174439) refactor(ui): compose remaining plugin classes (#174441) perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690) fix(sessions): quietly settle archived delivery endpoints (#174442) perf(sessions): keep config loading out of transcript workers (#174414) ...
What Problem This Solves
The Control UI controller guard only starts rejecting controller patterns after every production controller has disappeared. Until then, a new module can import the legacy Solid controller host and expand the migration surface.
User Impact
No runtime or visual change. The guard rejects new production modules that import the controller host while allowing existing consumers to be migrated independently.
Why This Change Was Made
Compare actual static imports, re-exports, dynamic imports, and import types against the selected Git base. Parse syntax so comments and ordinary string examples do not count. Keep test fixtures excluded and preserve the existing staged/base behavior. There is no new allowlist.
Evidence
The first test run caught a wrong traversal API call before commit; it now uses the native parser's node traversal. The accepted review finding added the literal-template case. No existing controller consumers or runtime checks are weakened.