Fix Python 3.11 CI lint blockers in CLI output flow and L2 expert routing - #3
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix the failing GitHub Actions job build (3.11)
Fix Python 3.11 CI lint blockers in CLI output flow and L2 expert routing
Jul 21, 2026
faresrafat3
marked this pull request as ready for review
July 21, 2026 03:21
There was a problem hiding this comment.
Pull request overview
Restores Python 3.11 CI “hard-error” lint pass by fixing a CLI syntax break and correcting L2 expert routing so dynamic expert generation receives a valid ProjectSpec.
Changes:
- Fixes CLI output flow by replacing an invalid multiline f-string and restoring syntactically valid control flow.
- Updates L2 conductor routing to pass
ProjectSpecthrough_route_expertsand derivedomainfromspecfor routing logic and dynamic expert generation.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| epistemic_forge/pipeline/l2_conductor.py | Passes ProjectSpec into _route_experts and uses it for dynamic expert generation and domain-based routing. |
| epistemic_forge/cli.py | Repairs CLI printing/control flow to avoid syntax errors and ensure budget reporting prints correctly. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
101
to
104
| if hasattr(result, "claims"): | ||
| display_claim_lattice(result.claims) | ||
|
|
||
| console.print(f" | ||
| [bold yellow]💰 {budget_manager.get_report()}[/bold yellow]") | ||
| else: | ||
| console.print("[yellow]Notice: No claims extracted in the final result.[/yellow]") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
build (3.11)Actions job failed in Ruff’s hard-error gate due to a syntax break incli.pyand an undefinedspecreference inl2_conductor.py. This PR applies focused fixes to restore parseability and correct expert routing input flow.CLI syntax and control-flow correction
if/elsestructure so claim rendering and fallback messaging are syntactically valid.L2 conductor routing fix
_route_expertsto acceptProjectSpecinstead of onlydomain.domainfromspecinside_route_experts, allowinggenerate_dynamic_expert(spec)to use a defined symbol.specdirectly.Illustrative diff snippet