Repository navigation
feat(cli): built-in scribe and claim-checker discussion roles, user-config overrides only (#588 part 2b) - #686
Merged
Merged
Conversation
…onfig overrides only (#588 part 2b)
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
# Conflicts: # CHANGELOG.md
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.
What
Part 2b of #588: the discussion's two built-in roles, the scribe (writes a round's digest) and the claim-checker (checks the acceptance criteria), as
tole_cli::discussion_roles: where each role's model comes from, the owner's override and its load-time checks, andtole doctorlines. No provider call yet; the host driver (next PR) uses these.Why
The design (A8.3, A9.3) pins the scribe to a cheap tier and keeps the party that decides apart from the one that summarizes and checks. The roles must be safe by construction: fixed instructions, no tools, and changeable only by the owner, never by a cloned repository.
Changes
Role::{Scribe, ClaimChecker}(scribe,claim-checker) andresolve(cfg, role) -> RoleModel { tier, model, source }.lighttier (role pin, wins over the router) from[router.tiers]in the user config; with no light tier declared, the run's configured model (doctor says so and names the remedy).[profiles.scribe]/[profiles.claim-checker]in the USER config,modelsonly. Tier =models.default, elselight; it must name a model. A missing or unknown tier, or a persona, allow list, skills, grants, memory room or advisor on a role, is a load error fromconfig::check_profile, never a fallback to the built-in.[router.tiers]is ignored as before.tole doctor:discussion scribe: light tier (built-in, [router.tiers])and the like; names only, never the model.Testing
discussion_roles_tests.rs: built-in tier and model, overrides (includingdefault = "heavy"), every load error (no models, missing tier, unknown tier, blank model), refused keys on an override, a project config that tries to override or widen, and doctor lines without model names.models.default, reading the wrong router tier, falling back on an unresolved tier, and skipping the role branch inconfig::check_profileeach made a test fail.cargo fmt --all --check,cargo clippy --workspace --all-targets --all-features -- -D warnings,cargo test --workspace,cargo test -p tole-core --no-default-features,cora review --no-llm --staged: all clean.