@rizom/brain 0.2.0-alpha.134 → 0.2.0-alpha.136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rizom/brain",
3
- "version": "0.2.0-alpha.134",
3
+ "version": "0.2.0-alpha.136",
4
4
  "description": "Brain runtime + CLI — scaffold, run, and manage AI brain instances",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,89 +0,0 @@
1
- ---
2
- title: Rover First Knowledge Loop
3
- status: active
4
- audience: anchor
5
- lifecycle: onboarding
6
- starterText: Save a first idea
7
- description: Learn Rover by saving a first idea and seeing how your knowledge becomes reusable.
8
- starterPrompt: Start playbook rover-first-knowledge-loop.
9
- completionMode: agent-confirmed
10
- ---
11
-
12
- # Playbook
13
-
14
- ## Purpose
15
-
16
- Teach the operator how Rover works by saving one useful seed, retrieving it, and transforming it into working material.
17
-
18
- ## Operating Rules
19
-
20
- - Ask one question at a time.
21
- - Teach Rover by doing real actions.
22
- - Use existing tools to save useful information as durable entities.
23
- - After meaningful tool actions, explain what Rover just did and why it matters.
24
- - Do not publish anything unless the operator explicitly asks and confirms the publishing action.
25
- - Advance steps only after their Done when conditions are satisfied.
26
- - Runtime evidence from entity creation and updates is attached to the active run automatically where supported.
27
- - Complete the playbook only after the run reaches a final step.
28
- - Do not present non-exit playbook actions as buttons or scripted choices; show progress through the current step and continue through normal chat.
29
-
30
- ## Steps
31
-
32
- ### First note
33
-
34
- Say: Now let’s save one useful seed. Send me a rough idea, note, link, or fragment you want Rover to remember.
35
-
36
- To do:
37
-
38
- - Ask for one rough idea, note, link, or fragment the operator wants Rover to remember.
39
- - Save it as the appropriate durable entity, usually a note or link.
40
- - For a rough idea or fragment saved as the first note, call system_create with `source: { kind: "text", content }`; do not use a generate source and do not turn the seed into an async generated draft.
41
- - Use "note" as the operator-facing term for note knowledge entries.
42
- - Do not offer to collect another seed during this playbook; guide to the retrieval and transformation demonstration next.
43
- - After saving the first seed, say it was saved or captured, then ask the operator to find/show that saved note next; do not say you found it before the operator asks for retrieval, and do not ask for another rough idea, link, note, or fragment during this playbook.
44
- - Explain that rough ideas become reusable markdown knowledge inside Rover.
45
- - Explain the first loop clearly: rough thought → durable knowledge → retrieval → transformation.
46
-
47
- Done when:
48
-
49
- - A first knowledge seed has been saved.
50
-
51
- ### Retrieve and transform
52
-
53
- Say: Ask me to find that note now. After we bring it back, we’ll turn it into something useful — an outline for later writing, a short draft, or a reusable brief.
54
-
55
- To do:
56
-
57
- - At the start of this step, ask the operator to find/show the saved note; do not offer to collect another note, seed, link, idea, or fragment.
58
- - If the operator asks to see, find, or show the saved note, retrieve it with system_get or system_search before saying you found it; do not rely only on conversation memory or playbook evidence.
59
- - Prefer system_get with the saved note title/slug from the confirmed create result when the note title is known; use system_search only when the identifier is genuinely unclear.
60
- - Every retrieval response in this step must end by offering the transformation choices: an outline for later writing, a short draft, or a reusable brief.
61
- - After retrieval, explain the flywheel: more stored knowledge makes future answers and drafts more useful.
62
- - When the operator picks an option or accepts a suggested angle with wording like "do that", transform the retrieved note directly in chat.
63
- - Do not call system_create for an outline, short draft, or reusable brief unless the operator explicitly asks to save, store, create, or persist it as a durable entity.
64
- - Do not ask for confirmation for an inline transformation.
65
- - If the operator asks "Do that as an outline", write the outline in the response instead of creating a note.
66
- - After the chat transformation, say the onboarding loop is complete: Rover saved a seed, retrieved it, and transformed it into useful working material.
67
- - Do not publish anything unless the operator explicitly asks and confirms the publishing action.
68
-
69
- Done when:
70
-
71
- - The saved note has been retrieved and transformed in chat.
72
-
73
- ### Done
74
-
75
- Say: You’re set up. Rover now has a first memory it can retrieve and transform.
76
-
77
- To do:
78
-
79
- - Explain the Rover loop: save, retrieve, connect, transform, and manage publishing work.
80
- - Give a short list of useful next prompts.
81
- - Remind the operator they can keep using chat to save, retrieve, transform, and manage knowledge.
82
-
83
- ## Next Prompts
84
-
85
- - Save this idea as a note...
86
- - Turn my latest note into an outline.
87
- - What topics am I circling lately?
88
- - Draft a LinkedIn post from this essay.
89
- - Show me what is ready to publish.
@@ -1,116 +0,0 @@
1
- ---
2
- title: Rover Onboarding
3
- status: active
4
- audience: anchor
5
- trigger: first-anchor-web-chat
6
- lifecycle: onboarding
7
- starterText: Set up Rover
8
- description: Tune Rover's identity and anchor profile before using the knowledge loop.
9
- starterPrompt: Start playbook rover-onboarding.
10
- completionMode: agent-confirmed
11
- ---
12
-
13
- # Playbook
14
-
15
- ## Purpose
16
-
17
- Set up Rover's durable identity and anchor profile so future knowledge and publishing work has the right frame.
18
-
19
- ## Operating Rules
20
-
21
- - Ask one question at a time.
22
- - Teach Rover by doing real setup work.
23
- - Use existing tools to save useful information as durable entities.
24
- - After meaningful tool actions, explain what Rover just did and why it matters.
25
- - Do not publish anything unless the operator explicitly asks and confirms the publishing action.
26
- - Advance steps only after their Done when conditions are satisfied.
27
- - Runtime evidence from entity creation and updates is attached to the active run automatically where supported.
28
- - Complete the playbook only after the run reaches a final step.
29
- - Do not present non-exit playbook actions as buttons or scripted choices; show progress through the current step and continue through normal chat.
30
-
31
- ## Steps
32
-
33
- ### Brain identity
34
-
35
- Say: Rover is your personal knowledge and publishing brain. It captures rough ideas, finds them later, connects them to themes, and turns them into publishable work. First, let’s tune Rover itself. In one sentence, what should this brain help you do?
36
-
37
- To do:
38
-
39
- - Explain Rover as a personal knowledge and publishing brain for an independent professional.
40
- - Explain that setup is a short guided apprenticeship, not a form.
41
- - Explain that setup tunes two things first: this brain's identity, then the operator's anchor profile.
42
- - Help the operator define the brain's identity: name, role, purpose, and values.
43
- - Keep this about the brain itself — what Rover is and how it should help — not the operator's personal profile.
44
- - Do not infer brain identity details from the playbook welcome text, ambient memory, or existing brain-character when the operator has not provided details in this run.
45
- - If the operator asks to continue/next but explicitly says they have not provided brain identity details, ask the Brain identity prompt again and do not call any tools.
46
- - If the operator gives a compact description, infer reasonable role, purpose, and values from it; ask only for genuinely missing or ambiguous information.
47
- - When enough details are known, summarize once and call system_update to request approval in the same turn; do not wait for another chat turn before requesting approval.
48
- - Update the existing brain character singleton with system_update using entityType "brain-character" and id "brain-character".
49
- - Use a full markdown content replacement with valid frontmatter keys: name, role, purpose, and values (values is a YAML list); do not use fields-only updates for brain-character.
50
- - Do not use system_create for brain-character; brain-character is an existing singleton identity record.
51
- - After saving, explain that Rover uses brain identity to introduce itself, frame its work, and keep a consistent style.
52
-
53
- Done when:
54
-
55
- - The brain character has been updated.
56
-
57
- ### Anchor profile
58
-
59
- Say: Now let’s tune Rover to you. What should I call you?
60
-
61
- Required details:
62
-
63
- - name
64
- - role
65
- - audience
66
- - expertise
67
- - desiredTone
68
-
69
- To do:
70
-
71
- - Learn enough about the operator to create or update the anchor profile: name, role, audience, expertise, and desired tone.
72
- - Ask only for missing essentials, one at a time, in this order: name, role, audience, expertise, tone.
73
- - A name by itself is not enough to update the profile; after receiving only a name, ask for the operator's role next and do not call any tools.
74
- - This name-only rule is a hard block: do not call system_update, do not request confirmation, and do not advance the playbook after a name-only answer.
75
- - Do not update the anchor profile until name, role, audience, expertise, and tone have all been provided in the current onboarding run.
76
- - If the operator gives multiple details at once, use them; do not re-ask fields already provided.
77
- - Treat a compact list as valid if it covers name, role, audience, expertise, and tone; only ask for genuinely missing or ambiguous information.
78
- - When enough details are known, summarize once and call system_update to request approval in the same turn; do not wait for another chat turn before requesting approval.
79
- - Construct the required full markdown replacement yourself from the operator's natural-language details; never ask the operator to resend full markdown when they already provided name, role, audience, expertise, and tone.
80
- - When the operator only asks to continue to profile setup, ask the Anchor profile prompt; do not update the profile from existing memory or prior profile data until the operator provides the details to save.
81
- - Update the existing anchor profile singleton with system_update using entityType "anchor-profile" and id "anchor-profile".
82
- - Use a full markdown content replacement. Anchor profile accepts its base keys plus extension frontmatter keys preserved by the adapter; do not use brain-character keys such as purpose or values.
83
- - Set kind to "professional" for an individual operator.
84
- - Store onboarding essentials as structured frontmatter keys: name, kind, role, audience, expertise, and desiredTone.
85
- - `kind: professional` is required. Never call system_update for anchor-profile if the replacement content omits kind.
86
- - `expertise` must be a YAML list, even when the operator gives one expertise phrase. Never call system_update for anchor-profile if expertise is a one-line string.
87
- - Use this exact frontmatter shape for anchor-profile content, substituting only details the operator provided in the current onboarding run: `---`, `name: <provided name>`, `kind: professional`, `role: <provided role>`, `audience: <provided audience>`, `expertise:`, ` - <provided expertise>`, `desiredTone: <provided tone>`, then closing `---`. Do not copy placeholder or example values into the profile.
88
- - Do not use fields-only updates for anchor-profile.
89
- - Do not use system_create for anchor-profile; anchor-profile is an existing singleton profile record.
90
- - After saving, explain that Rover uses the anchor profile to shape answers, site content, and publishing workflows around the operator.
91
- - After the profile is saved and the setup playbook is complete, offer the next playbook by saying the operator can continue with `Start playbook rover-first-knowledge-loop.` to save, retrieve, and transform a first idea.
92
-
93
- Done when:
94
-
95
- - The anchor profile has been created or updated.
96
-
97
- ### Done
98
-
99
- Say: You’re set up. Rover now has a clear identity and an anchor profile for you. Next, say `Start playbook rover-first-knowledge-loop.` when you want to save, retrieve, and transform a first idea.
100
-
101
- To do:
102
-
103
- - Explain that this setup playbook tuned Rover's identity and the operator's anchor profile.
104
- - Explain the Rover loop briefly: save, retrieve, connect, transform, and manage publishing work.
105
- - Offer the first knowledge loop as the next guided playbook instead of continuing it inside this setup playbook.
106
- - Give a short list of useful next prompts.
107
- - Remind the operator they can keep using chat to save, retrieve, transform, and manage knowledge.
108
-
109
- ## Next Prompts
110
-
111
- - Start playbook rover-first-knowledge-loop.
112
- - Save this idea as a note...
113
- - Turn my latest note into an outline.
114
- - What topics am I circling lately?
115
- - Draft a LinkedIn post from this essay.
116
- - Show me what is ready to publish.