Skip to content

refactor: use _validate_elite_for_profession helper in _decode_agent - #78

Merged
Roddygithub merged 1 commit into
mainfrom
fix/decode-agent-use-helper
Jul 25, 2026
Merged

Roddygithub merged 1 commit into
mainfrom
fix/decode-agent-use-helper

Conversation

@Roddygithub

Copy link
Copy Markdown
Owner

Changements

Dans parser.py, le _decode_agent (legacy) utilisait une validation
inline qui dupliquait exactement le helper _validate_elite_for_profession
existant au niveau module.

  • 5 lignes de validation inline → 1 appel de fonction
  • Cohérent avec _decode_agent_2025 qui utilise déjà ce helper
  • Commentaire mis à jour (ne référençait plus _LEGACY_ELITE_OVERRIDE)

Validation

  • ruff lint ✅
  • ruff format ✅
  • Tests Python ✅

…ofession call

- _decode_agent now calls the existing _validate_elite_for_profession helper

  instead of duplicating the validation inline (5 lines → 1 line).

- This makes the legacy path consistent with _decode_agent_2025 which

  already uses the same helper.

- Updated the stale comment that still referenced _LEGACY_ELITE_OVERRIDE.

Signed-off-by: RoddyGitHub <roddy@users.noreply.github.com>
@Roddygithub
Roddygithub merged commit b278d9f into main Jul 25, 2026
11 checks passed
@Roddygithub
Roddygithub deleted the fix/decode-agent-use-helper branch July 25, 2026 07:38
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