Repository navigation
feat(cli): owner-only tole discuss command for multi-round discussions - #697
Merged
Merged
Conversation
#588 part 3a) start, resume, list and show a discussion from a shell. The contract is typed by the owner, participants are read-only inline voices at depth 0, the budget is a hard cap, and --dry-run shows what a discussion may cost.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
| /// (kept under its old name) overrides it. A missing uteke binary degrades to a warning + no-op | ||
| /// (the same probe contract as the uteke tools). | ||
| #[cfg(feature = "shell-tools")] | ||
| /// `tole discuss` (#588): the owner-only entry point. |
discuss_command was inserted between the cfg attribute and the function it gates, which broke the build without shell-tools.
This was referenced Nov 14, 2026
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
tole discuss start|resume|list|show: the owner-only entry point of the multi-round discussion (#588), step 1 of the owner's decision (c) indocs/automation-design.md"Entry point".Why
The discussion library (
discussion_host) works end to end but nothing could start one. Starting from a shell needs no new trust decision: the owner types the contract, so there is no injection path. It also shows the owner what a discussion costs and exercises the library for real. The model-facing tool follows in a separate PR.Changes
tole discuss start --question Q --criterion C... --participant P... --budget N [--max-rounds R] [--id ID] [--dry-run]: the contract is exactly what was typed. Participants are user-config profiles voiced inline and read-only (no tools, no process), depth 0. The budget is the hard cap the ledger already enforces; a stop at the budget or--max-roundsis an escalation printed to the owner.--dry-runvalidates and prints participants, rounds, most model calls and the cap, with no provider call and no write. A real run prints the same plan first and the tokens used at the end.tole discuss resume <ID>: continues from the ledger after a crash or a failed call (finished turns are not rerun, the contract's own budget applies); a finished discussion prints its outcome again.tole discuss list|show [--json]: thetole audit --discussionsview; they skip config loading and need no provider.tole_cli::discuss; theDiscusscommand is wired inmain.rs(config gate:start/resumemay prompt likerun,list/showskip it).docs/epics.mdanddocs/automation-design.md(decision recorded) updated.Testing
discuss_tests.rs) and 4 end-to-end tests (tests/discuss_cli.rs, real binary against a mock provider): owner-typed contract stored verbatim, budget hard cap with escalation, bad contract or participant (unknown profile, built-in role) refused with nothing written and no provider call, duplicate id refused, dry run runs nothing, crash then resume without rerunning finished turns and within the same budget, a tool call from a participant runs nothing, redaction, list/show without config or provider.cargo fmt,clippy --workspace --all-targets --all-features -D warnings,cargo test --workspace,tole-core --no-default-featurespass, exceptagents::parent_spawns_child_polls_until_settledandcompaction_e2e::doctor_warns_non_fatally_about_a_missing_window, which also fail on cleandevelopin this environment.Refs #588