Skip to content

feat(ai): Add devops ai agent-audit for repeated failures - #5748

Merged
dan-petty merged 10 commits into
mainfrom
feat/2346-add-devops-ai-agent-audit-for
Nov 15, 2026
Merged

dan-petty merged 10 commits into
mainfrom
feat/2346-add-devops-ai-agent-audit-for

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

The same problems return in session after session of this project. A warning that every run prints, a command that agents get wrong, and a manual sequence return often. Nothing counts them today. None of them becomes an issue until a person notices. AGENTS.md rule 11 asks for an issue for each recurring problem (#2346). Related work includes #4840, which ranks devops usage errors from the telemetry ledger.

Closes #2346

Change: openspec/changes/archive/2026-11-15-2346-add-devops-ai-agent-audit-for/

@devops-cli-service
devops-cli-service Bot force-pushed the feat/2346-add-devops-ai-agent-audit-for branch 7 times, most recently from 0d463ad to 6ae90d3 Compare November 14, 2026 23:13
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Stopped at group 9.

Failure class: refused_tool.
Action taken: none.
Action left: wait: wait for a person.

Step Status Attempts Tokens in/out Last failing command
group 1 done 2 4141548/33367 pytest on base: tests/ai/agent_audit/test_transcript.py
group 2 done 1 3074180/34104 pytest on base: tests/ai/agent_audit/test_signature.py
group 3 done 1 3239373/33310 pytest on base: tests/ai/agent_audit/test_findings.py
group 4 done 1 3953317/27582 pytest on base: tests/ai/agent_audit/test_store.py
group 5 done 2 8125123/36202 pytest on base: tests/ai/agent_audit/test_tracked.py
group 6 done 1 3583649/27258 pytest on base: tests/ai/agent_audit/test_grouping.py
group 7 done 1 7363167/49009 pytest on base: tests/ai/agent_audit/test_agent_files.py, tests/ai/agent_audit/test_shell.py, tests/ai/agent_audit/test_sources.py
group 8 done 1 12429560/42193 pytest on base: tests/ai/agent_audit/test_filing.py
group 9 stopped 1 218545/808 -

Reason:

UnexpectedModelBehavior: Too many consecutive commands refused by policy: the limit is 3.
Refused commands: other:97e7ab9774a0 3. Other retries: 0.

Last message of the agent (a claim that no check verified): I'll start by exploring the existing agent_audit modules and the command structure.

The item is Blocked, and the job will not run it. Fix the cause. Then comment implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item allow it.

Step Status Attempts Tokens in/out Last failing command
group 1 done 2 4141548/33367 pytest on base: tests/ai/agent_audit/test_transcript.py
group 2 done 1 3074180/34104 pytest on base: tests/ai/agent_audit/test_signature.py
group 3 done 1 3239373/33310 pytest on base: tests/ai/agent_audit/test_findings.py
group 4 done 1 3953317/27582 pytest on base: tests/ai/agent_audit/test_store.py
group 5 done 2 8125123/36202 pytest on base: tests/ai/agent_audit/test_tracked.py
group 6 done 1 3583649/27258 pytest on base: tests/ai/agent_audit/test_grouping.py
group 7 done 1 7363167/49009 pytest on base: tests/ai/agent_audit/test_agent_files.py, tests/ai/agent_audit/test_shell.py, tests/ai/agent_audit/test_sources.py
group 8 done 1 12429560/42193 pytest on base: tests/ai/agent_audit/test_filing.py
group 9 stopped 1 218545/808 -
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.ai.agent_audit.test_transcript::test_unknown_record_type_does_not_stop_the_reader, tests.ai.agent_audit.test_transcript::test_subagent_transcripts_roll_into_parent_session, tests.ai.agent_audit.test_transcript::test_mtime_filter_skips_older_files, tests.ai.agent_audit.test_transcript::test_tokens_emails_and_private_hosts_are_masked.
  • fail-to-pass of group 2: fails on the base commit. Tests that fail on the base commit: tests.ai.agent_audit.test_signature::test_first_error_line_skips_the_exit_code_line, tests.ai.agent_audit.test_signature::test_error_signature_keeps_the_exit_status, tests.ai.agent_audit.test_signature::test_paths_and_numbers_are_replaced, tests.ai.agent_audit.test_signature::test_subcommands_flags_and_flag_values_are_kept_apart, tests.ai.agent_audit.test_signature::test_a_long_command_is_cut_to_a_bounded_signature, tests.ai.agent_audit.test_signature::test_a_failed_call_holds_its_command_and_its_failure, tests.ai.agent_audit.test_signature::test_a_secret_never_reaches_a_signature, tests.ai.agent_audit.test_signature::test_tool_result_exit_status_extraction.
  • fail-to-pass of group 3: fails on the base commit. Tests that fail on the base commit: tests.ai.agent_audit.test_findings::test_the_elapsed_time_spans_the_first_and_the_last_occurrence, tests.ai.agent_audit.test_findings::test_the_report_holds_the_group_of_a_finding, tests.ai.agent_audit.test_findings::test_an_unknown_report_format_is_refused, tests.ai.agent_audit.test_findings::test_ranking_puts_a_finding_with_more_sessions_first, tests.ai.agent_audit.test_findings::test_one_finding_for_three_sessions, tests.ai.agent_audit.test_findings::test_a_session_that_meets_a_problem_twice_has_one_pointer, tests.ai.agent_audit.test_findings::test_a_tracked_finding_renders_apart_from_the_new_ones, tests.ai.agent_audit.test_findings::test_two_different_failures_are_two_findings, tests.ai.agent_audit.test_findings::test_the_table_report_names_each_finding_and_its_counts, tests.ai.agent_audit.test_findings::test_the_json_report_holds_masked_text_and_each_pointer, tests.ai.agent_audit.test_findings::test_a_tie_of_sessions_is_broken_by_recurrences_then_by_time.
  • fail-to-pass of group 4: fails on the base commit. Tests that fail on the base commit: tests.ai.agent_audit.test_store::test_the_store_of_a_day_is_a_file_under_the_audit_store, tests.ai.agent_audit.test_store::test_a_second_run_keeps_the_count, tests.ai.agent_audit.test_store::test_a_line_that_the_store_does_not_hold_raises_the_count, tests.ai.agent_audit.test_store::test_a_session_that_the_store_does_not_hold_raises_the_count, tests.ai.agent_audit.test_store::test_the_stored_counts_mask_a_secret_and_hold_no_raw_line, tests.ai.agent_audit.test_store::test_a_counts_file_that_the_audit_cannot_read_is_refused.
  • fail-to-pass of group 5: fails on the base commit. Tests that fail on the base commit: tests.ai.agent_audit.test_tracked::test_a_closed_issue_names_no_finding, tests.ai.agent_audit.test_tracked::test_warning_named_by_an_open_issue_is_tracked, tests.ai.agent_audit.test_tracked::test_marking_a_finding_keeps_its_counts, tests.ai.agent_audit.test_tracked::test_a_finding_that_no_issue_names_stays_new, tests.ai.agent_audit.test_tracked::test_the_masked_host_of_a_signature_matches_the_host_of_an_issue, tests.ai.agent_audit.test_tracked::test_the_body_of_an_open_issue_names_a_warning.
  • fail-to-pass of group 6: fails on the base commit. Tests that fail on the base commit: tests.ai.agent_audit.test_grouping::test_the_group_name_of_the_model_is_masked, tests.ai.agent_audit.test_grouping::test_only_masked_signatures_reach_the_model, tests.ai.agent_audit.test_grouping::test_a_run_with_no_finding_makes_no_call, tests.ai.agent_audit.test_grouping::test_the_report_holds_the_group_of_the_model, tests.ai.agent_audit.test_grouping::test_the_groups_hold_their_findings_in_the_order_of_the_report, tests.ai.agent_audit.test_grouping::test_the_draft_body_holds_the_sections_of_the_bug_report_template, tests.ai.agent_audit.test_grouping::test_a_signature_that_no_finding_holds_is_left_ungrouped.
  • fail-to-pass of group 7: fails on the base commit. Tests that fail on the base commit: tests.ai.agent_audit.test_agent_files::test_a_line_that_names_a_failure_is_kept, tests.ai.agent_audit.test_agent_files::test_a_directory_that_does_not_exist_gives_no_record, tests.ai.agent_audit.test_agent_files::test_two_files_are_two_sessions, tests.ai.agent_audit.test_agent_files::test_a_secret_of_an_agent_file_is_masked, tests.ai.agent_audit.test_shell::test_a_secret_and_a_private_host_are_masked, tests.ai.agent_audit.test_shell::test_a_command_over_several_lines_is_one_record, tests.ai.agent_audit.test_shell::test_a_history_that_does_not_exist_gives_no_record, tests.ai.agent_audit.test_shell::test_a_line_without_the_extended_prefix_is_a_command, tests.ai.agent_audit.test_shell::test_an_extended_entry_names_its_command_and_its_time, tests.ai.agent_audit.test_sources::test_source_shell_returns_the_history_file, tests.ai.agent_audit.test_sources::test_the_transcripts_of_a_worktree_are_read, tests.ai.agent_audit.test_sources::test_source_transcripts_returns_no_shell_path, tests.ai.agent_audit.test_sources::test_a_named_source_list_keeps_its_order, tests.ai.agent_audit.test_sources::test_source_agent_files_returns_the_files_below_the_agent_directory, tests.ai.agent_audit.test_sources::test_read_sources_reads_each_named_source, tests.ai.agent_audit.test_sources::test_the_default_source_is_the_transcripts, tests.ai.agent_audit.test_sources::test_a_source_that_the_audit_does_not_know_is_refused.
  • fail-to-pass of group 8: fails on the base commit. Tests that fail on the base commit: tests.ai.agent_audit.test_filing::test_confirm_files_one_draft_for_each_group, tests.ai.agent_audit.test_filing::test_a_secret_of_a_group_name_reaches_no_title_and_no_body, tests.ai.agent_audit.test_filing::test_the_title_of_a_long_group_name_is_a_short_commit_title, tests.ai.agent_audit.test_filing::test_the_drafts_are_filed_in_the_named_checkout, tests.ai.agent_audit.test_filing::test_the_body_file_of_a_draft_holds_its_body, tests.ai.agent_audit.test_filing::test_a_draft_that_intake_does_not_file_stops_the_audit, tests.ai.agent_audit.test_filing::test_a_draft_whose_intake_prints_no_number_is_reported_without_one.

@dan-petty
dan-petty force-pushed the feat/2346-add-devops-ai-agent-audit-for branch from 6ae90d3 to 4fb7bed Compare November 15, 2026 02:48
@dan-petty dan-petty changed the title feat(ai): Add agent-audit for repeated failures feat(ai): Add devops ai agent-audit for repeated failures Nov 15, 2026
@dan-petty
dan-petty force-pushed the feat/2346-add-devops-ai-agent-audit-for branch from 4fb7bed to 29a135e Compare November 15, 2026 03:15
@dan-petty
dan-petty marked this pull request as ready for review November 15, 2026 03:23
@dan-petty
dan-petty self-requested a review as a code owner November 15, 2026 03:23
@dan-petty
dan-petty merged commit fb2926f into main Nov 15, 2026
24 checks passed
@dan-petty
dan-petty deleted the feat/2346-add-devops-ai-agent-audit-for branch November 15, 2026 04:06
dan-petty pushed a commit that referenced this pull request Nov 15, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.149.0](v0.148.0...v0.149.0)
(2026-11-15)


### Features

* **ai:** Add devops ai agent-audit for repeated failures
([#5748](#5748))
([fb2926f](fb2926f))
* **roadmap:** the phase of each item drives the stuck-item alert
([#5782](#5782))
([5f2466b](5f2466b))


### Bug Fixes

* **security:** add MCP server Trivy ignore for kubectl CVE-2026-78661
([#5785](#5785))
([8e4d6e2](8e4d6e2))

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ai): add devops ai agent-audit for recurring problems

1 participant