instar 1.3.356 → 1.3.358

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.
@@ -0,0 +1,46 @@
1
+ # ELI16 — Automatically remembering who the boss is
2
+
3
+ ## The one-sentence version
4
+ When the verified boss sends a message, the agent now automatically writes down
5
+ "this is the boss of this chat" — so it no longer has to be told by hand.
6
+
7
+ ## The backstory
8
+ We've been fixing a real problem: an agent on a shared computer slowly started
9
+ treating a *different real person* (call her Caroline) as its boss, because the
10
+ mix-up lived inside the agent's own writing where nothing was watching. To fix it
11
+ we built three pieces:
12
+
13
+ 1. A filing cabinet that remembers, per chat, who the verified boss is — and the
14
+ rule is strict: the boss is decided ONLY by the verified ID of whoever actually
15
+ sent the message, never a name typed in a document.
16
+ 2. A startup note that hands the agent that "who's your boss" info when it wakes
17
+ up (shipped last step).
18
+ 3. **This step:** actually filling in the filing cabinet automatically.
19
+
20
+ ## What this change adds
21
+ Before, the filing cabinet only got filled in by a manual one-time call. Now,
22
+ whenever a message comes in through the agent's main message pipe, the system
23
+ checks: "is this sender on the allowed list?" If yes, it quietly writes them down
24
+ as the verified boss of that chat. If no, it does NOTHING — an outsider in the
25
+ group can never become the boss. That "only allowed senders count" rule is the
26
+ whole point: it's what stops the Caroline mix-up from happening again. We prove it
27
+ with a test that sends a message from an *un*-allowed person literally named
28
+ "Caroline" and checks that nobody gets written down.
29
+
30
+ ## Why it's safe
31
+ - It only **adds** a step, wrapped so that if anything ever goes wrong, the message
32
+ still gets handled normally — recording the boss can never break the chat.
33
+ - It ignores robot-to-robot messages (those get handled earlier), and it ignores
34
+ anyone not on the allowed list.
35
+ - Writing the same boss twice is harmless, so a re-delivered message can't cause
36
+ trouble.
37
+
38
+ ## What's deliberately left for next time
39
+ This fills in the cabinet on the agent's **main** message pipe (the one the whole
40
+ fleet uses). There's a second, simpler pipe (used when the agent talks to Telegram
41
+ directly without the relay) that this step doesn't cover yet, because that one's
42
+ wiring lives in a harder-to-test startup file. That's tracked as a small follow-up.
43
+ Until then, an agent on that simpler setup just doesn't auto-fill the cabinet —
44
+ which is safe, because no entry means no false boss. The final step after that
45
+ lets the agent's own safety checker USE the binding to catch itself if it ever
46
+ credits a decision to the wrong person.