feat: Model Aliases with Chaining and Circular Detection (F07)#94
Merged
leocamello merged 3 commits intomainfrom Feb 8, 2026
Merged
feat: Model Aliases with Chaining and Circular Detection (F07)#94leocamello merged 3 commits intomainfrom
leocamello merged 3 commits intomainfrom
Conversation
F07: Model Aliases - Enhancement to existing F06 alias functionality: - Alias chaining up to 3 levels (gpt-4 → llama-large → llama3:70b) - Circular alias detection at config load - DEBUG logging for alias resolution Includes: spec.md, plan.md, tasks.md, requirements-validation.md (54 passed, 11 N/A)
…gging - Add alias chaining support (max 3 levels) in resolve_alias() - Add validate_aliases() for circular alias detection at config load - Add CircularAlias error variant - Add DEBUG level logging for alias resolution - Add comprehensive unit and integration tests Tests: All 305 tests passing (14 new unit, 3 integration) Closes #88 Closes #89 Closes #90 Closes #91 Closes #92 Closes #93
leocamello
added a commit
that referenced
this pull request
Feb 17, 2026
* docs(f07): add Model Aliases spec with chaining and circular detection F07: Model Aliases - Enhancement to existing F06 alias functionality: - Alias chaining up to 3 levels (gpt-4 → llama-large → llama3:70b) - Circular alias detection at config load - DEBUG logging for alias resolution Includes: spec.md, plan.md, tasks.md, requirements-validation.md (54 passed, 11 N/A) * feat(f07): implement alias chaining, circular detection, and DEBUG logging - Add alias chaining support (max 3 levels) in resolve_alias() - Add validate_aliases() for circular alias detection at config load - Add CircularAlias error variant - Add DEBUG level logging for alias resolution - Add comprehensive unit and integration tests Tests: All 305 tests passing (14 new unit, 3 integration) Closes #88 Closes #89 Closes #90 Closes #91 Closes #92 Closes #93 * docs(f07): complete verification checklist (109 passed, 86 N/A)
leocamello
added a commit
that referenced
this pull request
Feb 17, 2026
* docs(f07): add Model Aliases spec with chaining and circular detection F07: Model Aliases - Enhancement to existing F06 alias functionality: - Alias chaining up to 3 levels (gpt-4 → llama-large → llama3:70b) - Circular alias detection at config load - DEBUG logging for alias resolution Includes: spec.md, plan.md, tasks.md, requirements-validation.md (54 passed, 11 N/A) * feat(f07): implement alias chaining, circular detection, and DEBUG logging - Add alias chaining support (max 3 levels) in resolve_alias() - Add validate_aliases() for circular alias detection at config load - Add CircularAlias error variant - Add DEBUG level logging for alias resolution - Add comprehensive unit and integration tests Tests: All 305 tests passing (14 new unit, 3 integration) Closes #88 Closes #89 Closes #90 Closes #91 Closes #92 Closes #93 * docs(f07): complete verification checklist (109 passed, 86 N/A)
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.
Summary
Enhances the existing model alias functionality from F06 with:
gpt-4→llama-large→llama3:70bChanges
Core Implementation
src/routing/mod.rs: Updatedresolve_alias()to support iterative chaining with max 3 levelssrc/config/routing.rs: Addedvalidate_aliases()function for circular detectionsrc/config/error.rs: AddedCircularAliaserror variantsrc/config/mod.rs: Integrated validation into config loadTests
Example Usage
Closes
Closes #88
Closes #89
Closes #90
Closes #91
Closes #92
Closes #93
Testing
cargo test cargo clippy --all-targets -- -D warnings cargo fmt --all -- --check