docs(#7035): document provider-qualification invariant for model alias values - #7036
docs(#7035): document provider-qualification invariant for model alias values#7036fullsend-ai-coder[bot] wants to merge 2 commits into
Conversation
…s values Add a subsection to the pi runtime internals in runtime-implementation.md documenting the three-way dispatch pattern that any code transforming model alias values must follow. The section explains the three alias value formats (bare ids, provider-qualified ids, xai-vertex specs), references translatePiModel and normalizeXaiVertexModel as canonical implementations, states the invariant, and notes that tests must cover all three formats. This prevents recurrence of the double-prefixing bug fixed in PR #7028, where piAgentModels blindly prepended a provider prefix to already-qualified values. Also updates the AGENTS.md table entry for runtime-implementation.md to make the new section discoverable. Closes #7035
|
🤖 Finished Review · ✅ Success · Started 1:20 AM UTC · Completed 1:39 AM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $5.49 |
Site previewPreview: https://8c5aeb7a-site.fullsend-ai.workers.dev Commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Risk Assessment: moderate (2/5) DetailsSmall documentation-only PR (2 files, 57 lines) from a known bot author; elevated above low by high file churn (49.5 avg commits/30d) and multi-author contention (9 authors/90d) on the changed files, but mitigated by small scope, low-priority linked issue, no security/dependency impact, and trivial rollback safety. Previous runRisk Assessment: moderate (2/5) DetailsSmall documentation-only PR (2 files, 57 lines) from a known bot author adding provider-qualification invariant docs; elevated above low by high file churn (37-60 commits/30d) and multi-author contention on the changed files, but mitigated by the small scope, low-priority linked issue, no security/dependency impact, and trivial rollback safety. |
ReviewFindingsMedium
Previous runReviewFindingsMedium
Low
Next steps:
|
|
🤖 Finished Fix · ✅ Success · Started 1:41 AM UTC · Completed 1:46 AM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $1.06 |
- Qualify the `piAgentModels` / `translatePiModel` statement to clarify the restriction applies to the alias resolution loop, not the "default" entry - Change `PR #7028` to bare `#7028` to match the document's reference convention - Remove inline Markdown link from AGENTS.md table cell to follow the plain-text convention used by all other rows Addresses #7036
🔧 Fix agent — iteration 1 (bot-triggered)Addressed all four review findings: qualified the imprecise piAgentModels/translatePiModel statement, normalized the PR #7028 reference to bare #7028 format, removed the inline Markdown link from the AGENTS.md table cell, and recorded reasoned disagreement on the protected-path informational finding. Fixed (3):
Disagreed (1):
Tests: passed Decision points
Next steps:
|
|
🤖 Finished Review · ✅ Success · Started 1:48 AM UTC · Completed 2:06 AM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.58 |
Superseded by updated review
Summary
Documents the provider-qualification invariant for model alias values in the pi runtime internals section of
docs/contributing/runtime-implementation.md. This prevents recurrence of the double-prefixing bug fixed in PR #7028, wherepiAgentModelsblindly prependedanthropic-vertex/to already-qualified alias values.Changes
translatePiModelandnormalizeXaiVertexModelas canonical implementations of the three-way dispatchruntime-implementation.mdto include a direct link to the new section, making it discoverable for future contributors and agentsTesting
make lint-md-linkspasses — all markdown links (including the new anchor) resolve correctlygitlintpassesCloses #7035
Post-script verification
agent/7035-document-model-alias-patterns)6d496c4ce54bcccefdcbd5bec1ab44f775a33de8..HEAD)