Skip to content

feat(uteke): parent argument for uteke_document (#576) - #660

Merged
ajianaz merged 1 commit into
developfrom
feat/uteke-document-parent
Nov 13, 2026
Merged

ajianaz merged 1 commit into
developfrom
feat/uteke-document-parent

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

What

uteke_document takes an optional parent: the slug of an existing uteke document to nest the new one under (#576).

Why

The multi-round discussion design (#588) writes one document per goal and one child per round digest. Without a parent those land as flat top-level documents: no tree to browse and no way to scope a recall to one goal's subtree. uteke already supports uteke doc create <slug> --parent <parent> (depth 10), so no uteke change is needed.

Changes

  • crates/tole-core/src/uteke.rs: parent in the tool spec and in execute. It is validated exactly like slug ([a-zA-Z0-9-], not starting with a hyphen) before anything is spawned, because it reaches the argv as the value of --parent. A blank value means none. It is passed as uteke doc create <slug> --parent <parent> --file -.
  • The approval line reads uteke doc create <slug> under <parent> (linked to room <r>).
  • An unknown parent or a tree deeper than 10 is uteke's error, surfaced unchanged: no client-side guessing.
  • CHANGELOG.md and docs/epics.md are updated in this PR.

Testing

  • cargo fmt --all; clippy -D warnings on tole-core (also --no-default-features) and on tole-cli lib, bins and the tool-spec tests: clean.
  • 4 new unit tests with a fake uteke: the argv with and without parent (and a blank one), a bad parent (flag-like, space, slash, underscore, non-ASCII) rejected before any spawn, the CLI error for an unknown parent surfaced unchanged, and the describe line. cargo test -p tole-core and tool_specs pass.
  • Cora agent review: review_prepare 0 deterministic findings, review_finalize should_block: false.

An optional parent slug nests the new document under an existing one,
validated like a slug, shown in the approval line and passed as --parent.
@ajianaz
ajianaz force-pushed the feat/uteke-document-parent branch from 57e194e to 54256e5 Compare November 13, 2026 07:18
@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 28d9414 into develop Nov 13, 2026
15 checks passed
@ajianaz
ajianaz deleted the feat/uteke-document-parent branch November 20, 2026 08:37
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.

1 participant