You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(uteke): parent parameter for uteke_document (hierarchical documents) #576
The multi-round discussion design (docs/profiles-collaboration-secrets.md, section A8.4) writes one uteke document per goal and one child document per round digest (goal-<id> → goal-<id>-r<n> → optional goal-<id>-r<n>-<profile>). uteke documents support a parent (max depth 10), but tole's uteke_document tool only accepts slug, markdown and room (crates/tole-core/src/uteke.rs). Without a parent, round digests land as flat top-level documents: no tree to browse, and no way to scope a recall to one goal's subtree.
Proposed solution
Add an optional parent input to uteke_document (a slug), passed to uteke doc create <slug> --parent <parent> --file -.
Validate it exactly like slug ([a-zA-Z0-9-], must not start with -, argv-flag-injection defense) and include it in the approval what: line (uteke doc create <slug> under <parent> (linked to room <r>)).
Unknown parent or depth > 10: surface the CLI error unchanged; no client-side guessing.
Tests: validation (bad charset, leading hyphen), argv shape with and without parent, fake-uteke e2e like the existing ones.
CLI support verified (2026-11-11): uteke's docs/cli-reference.md documents uteke doc create chapter1 --parent book --file ch1.md, and its CHANGELOG lists create-with-parent, children, descendants, move and breadcrumbs with MAX_DEPTH = 10. No uteke change is needed.
Alternatives considered
Encode the hierarchy in the slug only (goal-x-r1): readable, but not a real tree, so no subtree recall and no subtree move.
Use rooms per goal: rooms group documents but carry no order or nesting, and would multiply rooms.
Are you willing to contribute the implementation?
Yes, I can do it
Before submitting
I searched existing issues and didn't find a duplicate
Activity
docs(epics): track E with the four agentic-automation epics and their…
docs(design): agentic automation — scheduler, profiles, skills, secre…
feat(uteke): parent argument for uteke_document (#576)
feat(uteke): parent argument for uteke_document (#576) (#660)
ajianaz commentedon Nov 13, 2026
Done in #660.