Repository navigation
feat: add provider-aware model aliases and delegation selectors - #2019
Conversation
AI-driven review (not a human review)
Reviewed PR #2019 ( Summary
Blocker
Important findings
Advisory
Security review found no additional concrete security issue. |
3b4f1c7 to
a8d80f2
Compare
a8d80f2 to
3f847a1
Compare
AI-driven follow-up review (not a human review)
I reviewed the current PR head The actual post-review additions are Correction to the previous AI reviewThe previous comment's sole blocker was incorrect. The AC1.3 two-provider plan-slot fail-soft test was already present in the previously reviewed head and remains at What the new changes fixed
Remaining findings from the previous review
New test gap introduced by the follow-upImportant: Advisory: AC1.3 asserts warning presence but not that the warning remains bounded/value-free ( Focused verificationThe current head passed: No live-provider tests were run. Because merge conflicts remain, these results apply only to current head |
3f847a1 to
ee9980d
Compare
Largely AI-automated follow-up review
Reviewed at current head Blocker: an explicit undefined Team member can run on the wrong providerA bare Team model selector correctly resolves contextually to the parent provider at The undefined-member factories first initialize the member from the global child default, which may use another provider ( A reachable example is:
The resulting member instead runs as Suggested fix: for undefined/no-FS members, use Additional advisory gaps
|
43347e0 to
6ae1b2d
Compare
AI-review feedback disposition (current head
|
471bc1c to
b79b988
Compare
b7c8a0e to
95a7e86
Compare
kantord
left a comment
There was a problem hiding this comment.
Largely AI-automated approval
This review was produced through a largely AI-automated process using multiple automated reviewers. It is not a substitute for a human review or merge decision.
Thank you for the substantial follow-up work. At current head 95a7e864dcb3ecab87bcf2b9a9fd7a37b52a2bfc, the previously reported correctness blockers appear resolved: contextual Team selectors use the correct provider, Parallel and Team persist actual child identity, and the explicit Build/catalog plus writable/no-FS paths now have meaningful regression coverage. I found no remaining blocker in the reviewed patch, so I am approving it.
GitHub's PR API currently labels the branch CONFLICTING / DIRTY. Curiously, GitHub also publishes a merge ref whose parents are the exact current base and head, and a local git merge-tree succeeds, so I cannot substantiate a specific or large set of conflicting files. Please refresh or reconcile the branch state before merge. Any subsequent rebase or conflict-resolution push should be re-reviewed because this approval applies only to the exact head above.
Two non-blocking nits remain:
- The durable-identity test at
engine/agent/adr0369_parallel_team_selectors_test.go:134covers rejected-route fallback. Adding persistedProviderID/ModelIDassertions for successful explicit/routed cross-provider Parallel and Team children would close the remaining mutation gap. docs/architecture/subagents-and-teams.md:95still says that “A scalar alias uses the parent provider.” Configured scalar aliases bind tomodels.default_provider; only contextual selectors and unbound/CLI aliases remain parent-relative. This should matchdocs/architecture/providers.md:552-563and ADR 0369.
Thanks again for addressing the earlier findings and documenting their disposition clearly.
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Unify provider-aware factory seams, preserve truthful Parallel and Team child session identity, and cover real catalog selection. Refresh operator model documentation and generated config reference. Co-authored-by: Mecatl <[email protected]>
Use the resolved provider for bare model and scalar-alias selections when the global child default points elsewhere, including no-FS teams. Co-authored-by: Mecatl <[email protected]>
Preserve provider-aware routing, delegation, plan fallback, and discovery guidance in the new canonical session pages; regenerate the CLI reference after rebasing. Co-authored-by: Mecatl <[email protected]>
Restore full provider/model route identity, Jev input-limit behavior, remote debugging, routing evidence, and shipped header cues after the docs restructure. Co-authored-by: Mecatl <[email protected]>
Clarify configured scalar alias binding and remove stale model-policy comments after rebasing. Co-authored-by: Mecatl <[email protected]>
95a7e86 to
3622e2e
Compare
Summary
Add operator-owned provider/model aliases and bindings, provider-aware delegation selectors for Subagent, Parallel, and Team, router-category discovery/selection, and accurate child model provenance. Mecatui now distinguishes the resolved provider/model identity (
ProviderLabel) from the inventory's friendly name (FriendlyName; customization protocol v5).The contract amendment originated in #1971 and was folded into this implementation PR. Current architecture and user documentation live in
docs/architecture/providers.mdanduser-docs/; the retired acceptance/ADR files are not restored.Behavior
models:. Project-tier model settings are ignored regardless of project trust; the legacy operatormodels.allowlistis parsed for compatibility but has no effect and warns.--model-alias-providerpairs a CLI alias with its provider without parsing delimiters out of opaque model IDs.model-routercategories. Explicit selections fail when unavailable; automatic routes fall back. Parallel uses one selector per call; Team validates the roster before adding members. Named specialist scope is preserved.DiscoverModelslists selectable provider/model handles and enabled virtual router categories without disclosing category targets. Jev classification sends eligible task text and category descriptions to Typesafe when configured; the LLM backend remains the default.Verification
After the latest code change,
task lint,task test,task test:race, focused ordinary/no-FS Team contextual-selector tests,git diff --check, and the offlinego run ./cmd/mecademopassed. Earlier on this rebased series,task generate,task docs, andtask api:checkpassed; the latest change touches only Go composition and tests. CI re-runs on the pushed head. No live-provider e2e was run locally.The AI-generated review findings and the disposition of non-blocking suggestions are summarized in a separate PR comment. Humans alone decide when to merge.
Relates to #1971