Skip to content

feat(cli): built-in scribe and claim-checker discussion roles, user-config overrides only (#588 part 2b) - #686

Merged
ajianaz merged 2 commits into
developfrom
feat/discussion-roles
Nov 13, 2026
Merged

ajianaz merged 2 commits into
developfrom
feat/discussion-roles

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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, and tole doctor lines. 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) and resolve(cfg, role) -> RoleModel { tier, model, source }.
  • Built-in: the light tier (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).
  • Override: [profiles.scribe] / [profiles.claim-checker] in the USER config, models only. Tier = models.default, else light; 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 from config::check_profile, never a fallback to the built-in.
  • A project config cannot define profiles (existing layering), so it can neither override nor widen a role; its [router.tiers] is ignored as before.
  • tole doctor: discussion scribe: light tier (built-in, [router.tiers]) and the like; names only, never the model.
  • CHANGELOG.

Testing

  • discussion_roles_tests.rs: built-in tier and model, overrides (including default = "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.
  • Mutation checks: dropping the refused-key check, ignoring models.default, reading the wrong router tier, falling back on an unresolved tier, and skipping the role branch in config::check_profile each 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.

@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit a7a1781 into develop Nov 13, 2026
15 checks passed
@ajianaz
ajianaz deleted the feat/discussion-roles branch November 20, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants