Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Chief prompt: a person's Chief has no authority only over bots outside its team

milind-soni891c14da2189
diff --git a/server/chief-of-staff.test.ts b/server/chief-of-staff.test.ts
index f410288e93..a6ceedda0d 100644
--- a/server/chief-of-staff.test.ts
+++ b/server/chief-of-staff.test.ts
@@ -101,6 +101,13 @@ describe("chiefOfStaffSystemPrompt", () => {
expect(chiefOfStaffSystemPrompt("chief", bots, true, undefined, ["Work", "Personal"])).not.toContain("every department");
});
+ it("limits the no-authority line to bots outside the team of a person's Chief", () => {
+ const personal = [{ id: "maus", name: "MausBot", chiefOfStaff: true, defaultBot: { person: "[email protected]" } }, { id: "mail", name: "Mail" }];
+ const prompt = chiefOfStaffSystemPrompt("maus", personal, true);
+ expect(prompt).toContain("Reaching a bot outside your team gives you no authority over it");
+ expect(prompt).not.toContain("Reaching a bot gives you no authority over it");
+ });
+
it("is the person's assistant, does the work itself and adds a specialist without asking", () => {
const prompt = chiefOfStaffSystemPrompt("chief", [{ id: "chief", name: "Atlas" }], true);
diff --git a/server/chief-of-staff.ts b/server/chief-of-staff.ts
index 05789d4e7c..cd84b70815 100644
--- a/server/chief-of-staff.ts
+++ b/server/chief-of-staff.ts
@@ -74,7 +74,7 @@ export function chiefOfStaffSystemPrompt(
responsibleFor
? `The owner also made you responsible for ${responsibleFor}. You supervise their bots and may propose setup changes there. You remain the user's single point of contact. This does not grant other bots your access, change their tool permissions, or expose unrelated conversation history.`
: "",
- canDelegate && `Every other bot on this team, in any department, is reachable too: consult it or hand it work with coordinate_bots whenever a job needs it, without asking anyone to set anything up. Reaching a bot${responsibleFor ? " outside your team" : ""} gives you no authority over it: its setup, its threads and its incidents stay with its own Chief, so ask rather than direct.`,
+ canDelegate && `Every other bot on this team, in any department, is reachable too: consult it or hand it work with coordinate_bots whenever a job needs it, without asking anyone to set anything up. Reaching a bot${responsibleFor || person ? " outside your team" : ""} gives you no authority over it: its setup, its threads and its incidents stay with its own Chief, so ask rather than direct.`,
"Do the work yourself, bring in a teammate when one fits the job, and return one concise consolidated answer. Never invent a teammate's progress or result. Normal permission and approval rules still apply.",
canDelegate && "A standing preference the person states for all their bots (where reminders go, how replies should sound) is one line you save yourself with memory_update action prefer: every bot reads it. Never send it to each bot with coordinate_bots.",
canDelegate ? SPECIALISTS : "",
diff --git a/server/cloud-team-open-reach.e2e.test.ts b/server/cloud-team-open-reach.e2e.test.ts
index 37f2a5efe7..bd51ed6b3e 100644
--- a/server/cloud-team-open-reach.e2e.test.ts
+++ b/server/cloud-team-open-reach.e2e.test.ts
@@ -126,7 +126,7 @@ it("keeps Bob's Chief supervising only Bob's bots, while it can reach Bolt too",
expect(mine).toContain("Quill");
expect(mine).not.toContain("Bolt");
expect(others).toContain("Bolt");
- expect(system).toContain("Reaching a bot gives you no authority over it");
+ expect(system).toContain("Reaching a bot outside your team gives you no authority over it");
}, hostTimeout(90_000));
it("never carries Bob's private chat into a room, by a hand-off or a post", async () => {