Repository navigation
feat(uteke): parent argument for uteke_document (#576) - #660
Merged
Merged
Conversation
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
force-pushed
the
feat/uteke-document-parent
branch
from
November 13, 2026 07:18
57e194e to
54256e5
Compare
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
1 task done
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
uteke_documenttakes an optionalparent: 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:parentin the tool spec and inexecute. It is validated exactly likeslug([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 asuteke doc create <slug> --parent <parent> --file -.uteke doc create <slug> under <parent> (linked to room <r>).CHANGELOG.mdanddocs/epics.mdare updated in this PR.Testing
cargo fmt --all; clippy-D warningsontole-core(also--no-default-features) and ontole-clilib, bins and the tool-spec tests: clean.uteke: the argv with and withoutparent(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-coreandtool_specspass.review_prepare0 deterministic findings,review_finalizeshould_block: false.