Skip to content

chore: Delete the retired TUI and its dashboard command - #5182

Merged
Sinity merged 1 commit into
masterfrom
chore/delete-retired-tui
Sep 15, 2026
Merged

Sinity merged 1 commit into
masterfrom
chore/delete-retired-tui

Conversation

@Sinity

@Sinity Sinity commented Sep 15, 2026

Copy link
Copy Markdown
Owner

Summary

Executes the recorded KILL decision for the TUI (polylogue-f94, decided 2026-07-03, never carried out). Removes 1,706 lines and the textual dependency.

Problem

polylogue/ui/tui/ was still present at head — skeletal Textual screens plus a dashboard CLI command, a TUIReadSurface adapter, and their tests — along with a textual>=8.2.8 runtime dependency and a textual entry 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, and polylogue/api/contracts/tui_surface.py, plus their test modules.

Followed every reference that kept it reachable rather than only deleting the package: the dashboard entry in click_command_registration.py and command_inventory.py, the help line in click_app.py, TUI-launch prompts in tutorial.py, the textual_ok probe in the ui_libraries readiness check, the COMMAND_ROOT_OWNERS entry in tests/infra/cli_interaction.py, the stale ("Dashboard", ("dashboard",)) section in devtools/render_cli_reference.py, the textual dependency and tui: pytest marker in pyproject.toml, and textual in flake.nix. uv.lock was regenerated, dropping textual and its now-orphaned transitives (linkify-it-py, mdit-py-plugins, uc-micro-py). docs/cli-reference.md was regenerated; docs/architecture.md reworded.

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.py is deleted with it: despite its general name, every test in it constructs TUIReadSurface and its docstring reads "Contract tests for the TUI read-surface adapter." It was TUI-specific. Note this leaves no structural conformance check of the ReadSurface protocol family; backfilling that against the four surviving public surfaces is tracked on polylogue-vclez rather than reconstructed here around a dead adapter.

Verification

devtools render all --check   → exit 0, every surface "sync OK", output grepped for "out of sync" (none)
devtools verify --quick       → exit 0, all 17 gates ok
devtools test tests/unit/cli/test_click_app.py tests/unit/ui/ tests/unit/cli/test_check_runtime.py \
              tests/unit/cli/test_interaction_oracles.py tests/unit/cli/test_help_contract.py \
              tests/unit/cli/test_cli_action_contracts.py
                              → 392 passed, 1 skipped
devtools test tests/unit/cli/test_tutorial.py → PASSED

The stale render_cli_reference.py section was the one thing that would have broken render all --check; it was caught and fixed before this passed.

Residuals

The devtools render topology-projection / topology-status commands named in the bead's notes do not exist in the current devtools render surface — that guidance is stale. render all --check covers the equivalent surfaces and passes clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK

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
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit 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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: abc99076-941c-49bc-8810-6ee8524c28f7

📥 Commits

Reviewing files that changed from the base of the PR and between d790d33 and bc98903.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (27)
  • devtools/render_cli_reference.py
  • docs/architecture.md
  • docs/cli-reference.md
  • flake.nix
  • polylogue/api/contracts/tui_surface.py
  • polylogue/cli/click_app.py
  • polylogue/cli/click_command_registration.py
  • polylogue/cli/command_inventory.py
  • polylogue/cli/commands/dashboard.py
  • polylogue/cli/commands/tutorial.py
  • polylogue/readiness/__init__.py
  • polylogue/ui/tui/__init__.py
  • polylogue/ui/tui/app.py
  • polylogue/ui/tui/css/styles.tcss
  • polylogue/ui/tui/screens/base.py
  • polylogue/ui/tui/screens/browser.py
  • polylogue/ui/tui/screens/dashboard.py
  • polylogue/ui/tui/screens/search.py
  • polylogue/ui/tui/widgets/stats.py
  • pyproject.toml
  • tests/infra/cli_interaction.py
  • tests/integration/test_tui_dashboard.py
  • tests/unit/api/test_read_surface_contracts.py
  • tests/unit/cli/test_click_app.py
  • tests/unit/cli/test_dashboard_command.py
  • tests/unit/ui/test_tui.py
  • tests/unit/ui/test_tui_read_surface.py

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-15T13:06:39.901568Z bc98903 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Sinity
Sinity merged commit 2100b13 into master Sep 15, 2026
3 checks passed
@Sinity
Sinity deleted the chore/delete-retired-tui branch September 15, 2026 13:06
Sinity added a commit that referenced this pull request Sep 15, 2026
…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]>
Sinity added a commit that referenced this pull request Sep 15, 2026
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant