Skip to content

refactor(ai): delete devops ai pipeline and persona leftovers - #5044

Merged
dan-petty merged 2 commits into
mainfrom
refactor/4827-delete-ai-pipeline
Nov 12, 2026
Merged

dan-petty merged 2 commits into
mainfrom
refactor/4827-delete-ai-pipeline

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Delete devops ai pipeline: it asked a chain of personas to find defects, which ADR 0005 rejected, and it did not store or score its output. Delete its defaults, help texts, dry-run plan, constant and tests. No shim stays.

#1151 deleted the persona stage, but the review still labelled its result with the DevSecOps persona. The runner now returns ReviewResult | str items, so the pull request comment has no Personas: line and no Review by heading. The routed-file message no longer names personas.

Delete the unread scratchpad models and persona fields of models/ai.py. Fix ARCHITECTURE.md, docs/SELF_IMPROVEMENT.md and k8s/README.md, and regenerate the references.

Closes #4827

Change: openspec/changes/archive/2026-11-12-4827-delete-ai-pipeline/

Delete the `devops ai pipeline` command, which asks a chain of personas to
find defects (ADR 0005 rejected that approach), with its defaults, help
texts, dry-run plan and tests.

The review runner returns its results without a persona, so a pull request
comment no longer names the DevSecOps persona for a review that ran none.
Delete the unread scratchpad models and persona fields, rename the routed
file messages, and fix the documents that still describe persona review.
@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/ai AI review pipeline, personas, prompts, LLM client, or RAG labels Nov 12, 2026
@dan-petty

dan-petty commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner Author

Measurements and checks

Effect on the roadmap jobs (census of 2026-11-11: 439 open issues, 437 job records). This change touches no roadmap job file, so it cannot change the stage or implement pass rates of the census. The census data shows that:

  • 0 job records, 0 per-issue entries and 0 stall groups name devops ai pipeline.
  • 5 of 439 open issues mention personas. 1 of them (test(ai): compare review eval scores for manual index change #4110) cites the line of docs/SELF_IMPROVEMENT.md that said the run record names "the personas that replied". The code does not record that field (review_setup in ai/run_store.py and score_corpus_runs in ai/review/defects.py), and this pull request removes that text. A stage plan that reads the document now gets the fields that the code records.
  • 1 job record (test(review): mutation cleanup of 18 test files #2162) waits on ai/personas/__init__.py. This change does not touch that file.

Size. 34 files, +225 and -605 lines. src/: +42 and -366. tests/: +39 and -126. One command, 4 defaults, 5 help texts, 1 constant, 2 models and 6 fields less.

Test first. The changed comment tests failed before the runner change: 6 failed, 21 passed (too many values to unpack in 5 comment tests, and the old routed-file message in test_a_branch_with_only_routed_files_makes_no_model_call). After the change:

  • uv run devops ci test tests/commands/test_review_pr_post.py tests/ai/client/test_batch_2_review_defects.py tests/ai/review tests/commands/test_ai_cmd.py tests/commands/test_ai_model_gateway_dry_run.py tests/commands/test_all_commands_help_dryrun.py tests/models/test_resource_schemas.py tests/review/test_review_group_analysis.py tests/commands/test_review_scope.py tests/git/test_review_worktree_regression.py: 980 passed.
  • pytest tests/ai tests/telemetry/test_telemetry_instruments.py tests/invariants: 4020 passed after the update of the MCP tool listing snapshot (the --explain help text) and of the performance/sre line that test_agents_md.py checks.
  • pytest tests/commands tests/config tests/core tests/docs tests/dry_run tests/gate tests/golden tests/lang tests/models tests/output tests/review tests/server tests/design: 5992 passed, 2 failed. The 2 failures are tests/core/test_git_contract.py[review_window], which also fail on origin/main (87ae9ee) and are fix(roadmap): the review_window git transcript does not match the code #4865.
  • uv run devops ai pipeline --help exits with No such command 'pipeline'.
  • uv run devops openspec check passed. uv run devops ci --check --only docs passed after devops docs generate --sync-readme.

Not in this change. Persona text stays in review modules outside the files of the issue: docstrings of ai/review/pipeline.py and ai/review/profile.py, render_review_result and render_review_raw of output/formatters/panels.py (only a test calls them), and the Persona: badge of the finding panel in commands/review.py. #5046 holds them.

No live step is necessary: no manifest, ConfigMap or Secret changes.

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 11:46
@dan-petty
dan-petty merged commit d5fefde into main Nov 12, 2026
25 checks passed
@dan-petty
dan-petty deleted the refactor/4827-delete-ai-pipeline branch November 12, 2026 12:13
@dan-petty

Copy link
Copy Markdown
Owner Author

Review finding and result:

Severity Finding Verdict Action
major docs/SELF_IMPROVEMENT.md keeps present-tense persona review text (section 2 step 4, the samples validate --review paragraph, sections 5.1 and 5.2), one line names a --all option that does not exist, and commands/review.py:2014 prints devops review path <corpus>/files --all Confirmed. devops review path --help shows no --all. A test that runs the printed command with --dry-run exits with code 2 (No such option). No review call sends the Finding schema to a model, and code_review_prompt.md, review_output_instruction.md and consolidate_duplicate_findings are gone. This pull request merged at 12:13Z, before the fix. The items, with the evidence and new acceptance criteria, moved to #5046: #5046 (comment)

The fix is written and tested on a local branch: the new test failed before the change and passed after it, and devops ci docs and the doc tests passed. It goes in with #5046.

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/ai AI review pipeline, personas, prompts, LLM client, or RAG type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(ai): delete devops ai pipeline and the persona review leftovers

1 participant