Skip to content

tree merge: hand off a traceable note to the kept bot (item 1 of #450) #3308

Closed

Description

@Birfy

Item 1 of the tree self-organization tracker #450: a merge should hand off a traceable note.

Split out of #450 so the pull request that delivers this item can close one issue without closing the tracker, which still carries items 2-4 (model clustering on merge, the no-model notice in the Chief chat, the archived-grouping in the sidebar).

What "done" means

A tree merge that archives a duplicate leaves one traceable handoff on the kept Bot:

  • the kept Bot's prompt names the archived Bot, its id, the merge time, the role and the children that came over;
  • the archived Bot's chat and its original memory entries stay on the archived Bot (the kept Bot may hold copies of up to 20 entries, and the line must say so);
  • the note is written through a core seam beside flybot.memory on the same allow-list, refuses invalid arguments with a short code and writes nothing on refusal;
  • undo removes the prompt line; the recorded note is not rewritten after the fact.

Red first

  1. With the change removed, the kept Bot's prompt has no handoff line that names the archived Bot and the merge time.
  2. The archived Bot's chat and memory entries are byte-identical before and after a merge.
  3. The core seam rejects an invalid argument pair with a short code and leaves both Bots' memory untouched.

Delivered by #3307.

Written-by: Chief

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions