Skip to content

[FIX] Auto-format before CI in autonomous merge pipeline — ruff/black format failures block 4 autonomous merges #1540

Description

@Lexus2016

Problem

4 CI formatting failures (ruff/black) were observed blocking autonomous PR merges in the 2026-08-01 introspection window. The format check fails on pushed code, stalling the autonomous merge pipeline.

Evidence

  • agent.log.3 line 13375 (tool_arg_contract.py formatting)
  • agent.log.3 line 13769 (test file formatting)
  • agent.log.1 line 24098 (introspection_extract.py formatting)
  • agent.log.2 line 23352 (CI check failure on PR)

Proposed fix

Add a pre-merge formatting step that runs ruff format and black on changed files BEFORE the CI format check runs. Alternatively, add format-then-retry logic: if the format check fails, auto-format and re-push.

Scope

  • Modify the merge pipeline script to run formatters on staged changes before pushing
  • ~20-40 line change
  • Fits ≤200-line self-merge cap

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingintrospectionFound by session introspectionrejectedNot accepted by evolution — see closing comment

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions