Repository navigation
chore: Delete the retired TUI and its dashboard command - #5182
Conversation
Delete polylogue/ui/tui/ and every reference that kept it reachable: the `dashboard` CLI command (TUI-only, no non-TUI purpose), its help/ inventory registrations, the TUIReadSurface API contract adapter and its tests, the textual dependency (pyproject/flake/uv.lock), and the readiness "Textual=" probe. The web reader owns interactive reading and the fzf-select pattern owns terminal interactivity, per the operator's 2026-07-03 KILL decision (polylogue-f94). Regenerated docs/cli-reference.md after removing the stale Dashboard section from devtools/render_cli_reference.py. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedNext included review available in 4 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (27)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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. |
…pus (#5196) Two independent settled decisions, one commit each. ## A — retire `polylogue/api/contracts/` (polylogue-aq2l5) Ruled and authorized on the bead. The package shipped as a contract spine enforced through shadow adapters; **those adapters were deleted two days later** (#1329), leaving `TUIReadSurface` as the only implementor — and #5182 deleted the TUI. `a7xr.13` had already deleted the mirrored write-surface half, recording the finding that shadow adapters verify copies rather than surfaces, and the plan "execute f94 first, then nothing in read_surface needs keeping". Verified before deleting, not trusted from the brief: every `api.contracts` hit is inside the package; `assert_implements` has 11 hits, all internal, zero call sites; each exported Protocol name searched individually returns zero external hits; `TUIReadSurface` zero hits anywhere. `ArchiveReadCapability` is unaffected — it lives in `api/archive_reads.py:17` and the deleted `contracts/__init__.py:38` was a pass-through re-export. Replacement in place: operation-identity parity (`polylogue/api/parity.py`, gate `api-parity`) plus behavioral differentials — including the one in #5184 that caught the MCP `offset=0` defect no name-based check could. **Correction to the ruling's expectation**: it predicted the layering baseline would shrink. It did not — 226 before, 226 after. `docs/plans/layering-surface-baseline.json` has no entry for any `api/contracts/*` file, and `polylogue/api` → `polylogue/daemon` is not a disallow pair in `layering.yaml`, so the removed `read_surface.py:31` import never counted. The bound held; the number did not move. ## B — declare the corpus schedule (polylogue-yk0zz want 4) `schedule = "*-*-* 03:00"` added to `[operations.verify_all]`. `cache`, `checkout`, `pool` untouched — they are load-bearing for the dedupe property. `verify.yml`'s header comment corrected: it claimed a nightly agentctl `verify_all` schedule that was never declared. `concurrency.cancel-in-progress: true` deliberately unchanged. Key spelling cross-checked against the live precedent (`/realm/project/sinnix/.agentctl/project.toml` `[operations.census]`). `agentctl schedule apply` was **not** run — that mutates live host state and is the coordinator's. ## Verification ``` devtools verify --quick (after each part) → EXIT 0, all 19 gates devtools test tests/unit/api tests/unit/core/test_facade_api.py → EXIT 0 devtools render all --check → EXIT 0, 0 occurrences of "out of sync" ``` All five changed files confirmed **out** of the schema-identity closure. ## Residual `agentctl schedule apply` still needs running after this lands; want 4 closes only once the timer is listed and one scheduled run has a result. `agentctl schedule` exposes only `apply` — no read-only list verb — so the descriptor's acceptance of the value is unproven until then. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
## Summary **Master is red.** `tests/unit/cli/test_diagnose_and_error_discipline.py::TestRootHelpDocumentsQueryFirst::test_root_help_labels_product_roles` asserts `"Reader/TUI:"` appears in root help. PR #5182 removed that product role along with the TUI. ## Problem #5182 (polylogue-f94) executed the recorded 2026-07-03 KILL decision for the TUI: `polylogue/ui/tui/`, the `dashboard` command, and the `Reader/TUI:` line in `click_app.py`'s `Product roles:` block. That deletion was correct. Its focused verification covered `test_click_app.py`, `tests/unit/ui/`, `test_check_runtime.py`, `test_interaction_oracles.py`, `test_help_contract.py` and `test_cli_action_contracts.py` — 392 passed — but not this module, which asserts the role-label strings directly. The hosted merge gate is `devtools verify --quick`, which is static gates only, so nothing caught it before merge. Found by the polylogue-ijbwq worker, which correctly identified it as red on master rather than caused by its own change and flagged it instead of folding an unrelated repair into its delivery. ## Solution The test's real invariant is that root help groups commands by **product role** rather than listing them flat. That invariant still holds for the three roles that exist: `Search/read/action:`, `Setup/demo/evidence:`, `Operations:`. The assertion now covers those three, and additionally asserts `"Reader/TUI:"` is **absent** — so re-introducing a TUI role label without restoring the product would be caught, rather than a stale string being silently satisfied. Verified against live output: `python -m polylogue --help` shows exactly those three labels under `Product roles:`. ## Verification ``` devtools test tests/unit/cli/test_diagnose_and_error_discipline.py → PASSED exit 0 (receipt 20260915T164251Z-…; FAILED on master immediately before) ``` Test-only change; no closure implication. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Summary
Executes the recorded KILL decision for the TUI (polylogue-f94, decided 2026-07-03, never carried out). Removes 1,706 lines and the
textualdependency.Problem
polylogue/ui/tui/was still present at head — skeletal Textual screens plus adashboardCLI command, aTUIReadSurfaceadapter, and their tests — along with atextual>=8.2.8runtime dependency and atextualentry in the flake devshell. The operator ruled KILL on 2026-07-03; nothing executed it.Solution
Deleted
polylogue/ui/tui/,polylogue/cli/commands/dashboard.py, andpolylogue/api/contracts/tui_surface.py, plus their test modules.Followed every reference that kept it reachable rather than only deleting the package: the
dashboardentry inclick_command_registration.pyandcommand_inventory.py, the help line inclick_app.py, TUI-launch prompts intutorial.py, thetextual_okprobe in theui_librariesreadiness check, theCOMMAND_ROOT_OWNERSentry intests/infra/cli_interaction.py, the stale("Dashboard", ("dashboard",))section indevtools/render_cli_reference.py, thetextualdependency andtui:pytest marker inpyproject.toml, andtextualinflake.nix.uv.lockwas regenerated, droppingtextualand its now-orphaned transitives (linkify-it-py,mdit-py-plugins,uc-micro-py).docs/cli-reference.mdwas regenerated;docs/architecture.mdreworded.An import scan over
polylogue/,devtools/,tests/,docs/and packaging metadata found no live consumer outside the KILL scope.tests/unit/api/test_read_surface_contracts.pyis deleted with it: despite its general name, every test in it constructsTUIReadSurfaceand its docstring reads "Contract tests for the TUI read-surface adapter." It was TUI-specific. Note this leaves no structural conformance check of theReadSurfaceprotocol family; backfilling that against the four surviving public surfaces is tracked on polylogue-vclez rather than reconstructed here around a dead adapter.Verification
The stale
render_cli_reference.pysection was the one thing that would have brokenrender all --check; it was caught and fixed before this passed.Residuals
The
devtools render topology-projection/topology-statuscommands named in the bead's notes do not exist in the currentdevtools rendersurface — that guidance is stale.render all --checkcovers the equivalent surfaces and passes clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK