Skip to content

Decision: should non-Main tree Bots be allowed to call create_child_bot? (PR #2 review) #16

Closed

Description

@Birfy

Context

In the tree plugin, create_child_bot is visible to every tree Bot. AGENTS.md reserves Bot creation for Main Bots. The reviewer asked for an explicit maintainer decision rather than letting this land silently. Still open at 7b806c6. Related to #6.

Original feedback

  • @hsliuustc0106 review (permalink), item 17: "Recursive spawning is the plugin's purpose, but AGENTS.md reserves Bot creation for Main Bots. This needs an explicit maintainer decision (restrict to root/Main, or amend the invariant)."
  • Codex inline comment, Restrict child creation to Main Bots (permalink), ds-bot/plugins/tree/src/tools.js L59 (P1), citing AGENTS.md L16.

Where

plugins/tree/src/tools.js#L56-L59: visibleTo: inTree

Options

A. Restrict create_child_bot to the root or Main Bots, or require owner approval.
B. Amend AGENTS.md so tree Bots may create children under themselves (with maxChildren and depth limits as guardrails).

Acceptance criteria

  • A maintainer records the decision here.
  • Code or AGENTS.md is updated to match, with a test asserting who can create Bots.

Refs: PR #2 (merged), umbrella #3. Verified against Birfy/FlyBot flybot-plugins tip 7b806c6.

Activity

  1. Birfy commented on Oct 16, 2026

    @Birfy
    CollaboratorAuthor

    Decision (owner)

    Option B.

    Tree Bots may create children under themselves. Amend AGENTS.md so this is the documented rule (not Main-only). Keep guardrails: maxChildren and depth limits.

    Additional constraint from the owner’s grant model: a newly created child Bot is usable only by its creator’s owner by default. Sharing it with another person still requires an independent per-Bot grant (default deny). No global publish.

    Next: update AGENTS.md (or the tree subsystem doc), tighten create_child_bot visibility/auth to match, and add a test that asserts who can create and who can use the child.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions