Skip to content

fix(service): delete the stream route that sends canned verified text - #5038

Merged
dan-petty merged 2 commits into
mainfrom
fix/4825-delete-stream-route
Nov 12, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4825-delete-stream-route

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The Service REST API served GET /v1/stream/events (SSE) and /v1/ws/reasoning (WebSocket). Both sent four canned events for each persona. The last event said that the zero-trust invariants were verified and that no unvalidated egress was found, but no check ran. Only the tests called the routes.

This change deletes src/devops_cli/server/routes/stream.py with both routes, its router wiring in app.py, the two stream persona constants in defaults.py, its tests and its row in the swallowed-failure ceiling fixture. A new test makes sure that the app answers 404 for /v1/stream/events and that the OpenAPI schema and the route table hold no /v1/stream or /v1/ws path. The knowledge base no longer names an SSE stream. The WebSocket route is in the scope because it sends the same canned events.

Closes #4825

Change: openspec/changes/archive/2026-11-12-4825-delete-the-stream-route-that-sends/

The routes /v1/stream/events and /v1/ws/reasoning sent four canned events for each persona. The last event said that the security invariants were verified, but no check ran. Delete the module, its wiring, its persona constants and its tests. A new test makes sure that the app serves neither path.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/service The long-running devops Service and its lanes labels Nov 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence

uv run devops ci fail-to-pass --base origin/main (base 87ae9ee):

failed on base: tests.server.test_server::test_the_app_serves_no_canned_reasoning_feed (AssertionError: assert 200 == 404)
1 failed on base (1 failed and 25 passed in tests/server/test_server.py; 0 errored).

On the branch:

  • uv run devops ci test tests/server/: 153 passed.
  • uv run devops ci test tests/ai/test_kb.py tests/invariants/test_architectural_invariants.py tests/invariants/test_source_tree.py: 124 passed.
  • uv run devops ci --only swallowed-failures: pass. uv run devops ci docs: all documents are up to date, so no generated document changes.
  • ruff check, ruff format --check and mypy on the changed Python files: no issues. uv run devops openspec check: pass.

Measurements

  • Source and tests: 7 files changed, 10 lines added, 196 lines deleted.
  • Routes of create_app(): 11 on the base, 9 on the branch. No /v1 path is left, and the OpenAPI schema lists 7 paths.
  • Swallowed-failure sites under src/: 1 fewer (the except Exception of the WebSocket route).
  • A search for stream/events, ws/reasoning, STREAM_PERSONA and routes.stream in src, docs, README.md and ARCHITECTURE.md finds nothing. Only the new test names the two paths.
  • Roadmap job success: the census of the issue stewards plan has no record that this route touches. No roadmap job calls the route, so this change does not change a roadmap job success rate.

Live steps

None. The routes ran only in devops serve. No manifest, ConfigMap or Secret names them.

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 11:18
@dan-petty
dan-petty merged commit e9d51b5 into main Nov 12, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/4825-delete-stream-route branch November 12, 2026 12:11
dan-petty pushed a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.118.0](v0.117.2...v0.118.0)
(2026-11-12)


### Features

* **ci:** devops ci stops its rows when timeout ends it
([#5031](#5031))
([1fa4e9c](1fa4e9c))
* **roadmap:** keep the stage gate problems as a list with a code
([#5022](#5022))
([5819627](5819627))
* **roadmap:** log one result line for each roadmap job attempt
([#4966](#4966))
([2b6fe3f](2b6fe3f))
* **telemetry:** record each CLI usage error by name and kind
([#4973](#4973))
([a179fd9](a179fd9))


### Bug Fixes

* **ai:** chat loads each persona prompt and challenger gets tools
([#5037](#5037))
([c40b0ad](c40b0ad))
* **ai:** keep the HTTP status of a Claude reply after retries
([#4976](#4976))
([5bf9466](5bf9466))
* **deps:** keep Renovate uv bumps green and groups on Monday
([#4987](#4987))
([b19e153](b19e153))
* **k8s:** raise the limits that 7 d of use shows are too low
([#5030](#5030))
([028c62b](028c62b))
* **roadmap:** a job posts no comment that repeats a recent one
([#4978](#4978))
([fff903a](fff903a))
* **service:** alert when GitHub cannot deliver a webhook
([#5045](#5045))
([2bfbfcb](2bfbfcb))
* **service:** delete the stream route that sends canned verified text
([#5038](#5038))
([e9d51b5](e9d51b5))
* **telemetry:** keep one upstream status series per service
([#4986](#4986))
([3e4ca56](3e4ca56))
* **tests:** remove the runner variable in the test floor
([#4988](#4988))
([093aa61](093aa61))


### Performance Improvements

* **ai:** make the ast graph walk and call search faster
([#5039](#5039))
([3b25cc6](3b25cc6)),
closes [#4662](#4662)
* **ci:** build the devcontainer only on its own inputs
([#4977](#4977))
([c5b15ac](c5b15ac))
* **ci:** test each merge once, on the push to main
([#5043](#5043))
([c6992b1](c6992b1))
* **tests:** remove fixed waste in six slow tests
([#4995](#4995))
([1c7044e](1c7044e))


### Code Refactoring

* **ai:** delete devops ai pipeline and persona leftovers
([#5044](#5044))
([d5fefde](d5fefde)),
closes [#4827](#4827)
* **openspec:** split big capabilities into nested ones
([#4981](#4981))
([dfb09bd](dfb09bd))
* **pr:** devops pr update acts only on a failed check
([#4990](#4990))
([aa4fa1a](aa4fa1a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/service The long-running devops Service and its lanes type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(server): delete the stream route that sends canned verified text

1 participant