Skip to content

fix(discussion): write goal and round documents to uteke on every entry point - #720

Merged
ajianaz merged 1 commit into
developfrom
fix/discussion-round-docs
Nov 14, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/discussion-round-docs

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What

Discussion goal and round documents now reach uteke from every production path.

Why

UtekeDocs / Driver::with_docs were only called from tests, so Driver::from_config produced docs: None and no discussion ever wrote goal-<id> or <goal>-rN. Closes #717.

Changes

  • Driver::from_config (the one builder used by tole discuss start/resume, the dry-run check and the model-facing discuss tool, including reviewer participants) wires UtekeDocs when the uteke binary is available. The tool is secret-redacted; slug, parent and room are host-built; text is redacted then capped as before.
  • Without uteke (or without shell-tools), one note (round documents are off: ...) is added per discussion, not per round.
  • A failed write remains the uteke document {slug} was not written note and does not abort the discussion or change the gate. For the discuss tool the outcome notes are now added to the delegate node's risks so they are not dropped.
  • docs: epics.md, threat model row, CHANGELOG (0.11.0 / Fixed).

Testing

  • New unit tests: the production builder carries a RoundDocs sink when uteke is available (guards docs: None) and the single off note otherwise; a failing put surfaces the note and leaves gate/rounds/tokens unchanged; uteke-absent gives exactly one note over several rounds; resuming a finished discussion writes no documents again.
  • Mutation-checked: ignoring the uteke probe, dropping the off note, swallowing the put error, a per-round off note and writing on resume each fail a test.
  • fmt, clippy --workspace --all-targets --all-features -D warnings, cargo test --workspace, tole-core and tole-cli --no-default-features pass.
  • No live check: no uteke binary on PATH or built under /home/user/uteke.

@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

…ry point (#717)

Driver::from_config now wires UtekeDocs when uteke is available, so tole discuss start/resume and the discuss tool write goal-<id> and one digest per round. A failed write stays a note (and a delegate risk), and without uteke one note says documents are off.
@ajianaz
ajianaz force-pushed the fix/discussion-round-docs branch from 8beae72 to 840a589 Compare November 14, 2026 07:14
@ajianaz
ajianaz merged commit 7546963 into develop Nov 14, 2026
15 checks passed
@ajianaz
ajianaz deleted the fix/discussion-round-docs branch November 20, 2026 08:38
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.

Discussion round documents never reach uteke: docs seam only wired in tests (docs: None in production)

2 participants