Repository navigation
feat(core): discussion contract, sanitizer, digest validator and gate (#588 part 1a) - #665
Merged
Merged
Conversation
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
ajianaz
force-pushed
the
feat/discussion-core
branch
from
November 13, 2026 08:23
7c042bd to
03bd3f4
Compare
ajianaz
force-pushed
the
feat/discussion-core
branch
from
November 13, 2026 08:40
03bd3f4 to
c21a95b
Compare
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 1a of #588: the pure core of the multi-round discussion,
tole_core::discussion. No model is called and there is no command yet. The append-only ledger (1b) and the orchestration that calls the models follow as their own PRs, to keep this reviewable.Why
Profiles should debate a goal over several rounds without re-reading the whole history each round, without losing a dissenting voice and with stop rules that do not rest on the orchestrator grading itself (design
profiles-collaboration-secrets.mdA8.3: the MAST failure modes, Minority Sentinel). The checks that make that true are deterministic, so they come first and can be tested without a model. #576 (theparentfor round documents) is merged.Changes
Contract: question, 1 to 12 acceptance criteria, 1 to 8 participants (profile names), a token budget, max rounds (default 4, at most 10). Question and criteria go through the sanitizer.<<<>>>fence markers neutralized, sizes capped.gate, in a fixed order: pending approval or an owner-only disagreement hands over at once, then a report only when every criterion is met on the checker's evidence, then budget, the round limit, two rounds with an empty delta, else continue.CHANGELOG.mdanddocs/epics.mdare updated in this PR.Testing
cargo fmt --all; clippy-D warningsontole-core(also--no-default-features): clean.cargo test -p tole-core: all pass.review_prepare0 deterministic findings,review_finalizeshould_block: falsewith one info note (profile existence is the host's job).