Skip to content

fix(hygiene_ci): count simulate_if_needed as the simulates lever - #549

Merged
Jammy2211 merged 1 commit into
mainfrom
claude/pyautoarray-simulate-helper-yuqd16
Nov 1, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
claude/pyautoarray-simulate-helper-yuqd16

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Part of PyAutoLabs/autogalaxy_workspace#268 (phase 3 of PyAutoLabs/PyAutoArray#669).

Summary

levers_from_text in agents/conductors/hygiene/_hygiene_ci.py flags a script with the simulates lever when its text contains should_simulate(. The workspaces are being swept onto the one-line wrapper util.dataset.simulate_if_needed(...), which doesn't contain that token, so roughly 490 swept scripts would silently lose the lever. This change matches both names and updates the lever's docstring.

It's a source-text match only, so it can merge independently of the library release.

Testing

  • New test_simulate_if_needed_counts_as_simulates. tests/test_hygiene_ci.py: 11 passed (10 before this change).
  • The tenant-firewall check (repos_sync.py --check --only "tenant firewall (organ code)") passes locally; no repo name appears in the organ code.

Merge mode: human /prm.


Generated by Claude Code

levers_from_text flags a script as `simulates` when its text contains
`should_simulate(`. The workspaces are being swept onto the one-line
wrapper `util.dataset.simulate_if_needed(...)`, which does not contain
that token, so swept scripts would silently lose the lever. Match both,
with a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8NyQo2s3YUk8eUrrB3
@Jammy2211
Jammy2211 merged commit c442bb1 into main Nov 1, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the claude/pyautoarray-simulate-helper-yuqd16 branch November 1, 2026 20:51
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.

2 participants