{"success":true,"name":"brimind-subject-sessions","description":"Know WHEN a piece of work deserves its own session (one session per agent, per subject, per day) and WHY, and write every letter so the worker routes it to the right one. Use before writing a letter to a teammate (its SUBJECT line decides the receiver's session), when a turn lands on \"main\" but is really a client, a project or a hunt, when the same matter comes back in other words, and before deci","category":"unitary","path":"unitary/brimind-subject-sessions/SKILL.md","file":"SKILL.md","content":"---\nname: brimind-subject-sessions\ndescription: Know WHEN a piece of work deserves its own session (one session per agent, per subject, per day) and WHY, and write every letter so the worker routes it to the right one. Use before writing a letter to a teammate (its SUBJECT line decides the receiver's session), when a turn lands on \"main\" but is really a client, a project or a hunt, when the same matter comes back in other words, and before deciding to stay on main or to open a sub-session.\n---\n> Imported from [PRIVATE_HOST] `~/unitary/.claude/skills/brimind-subject-sessions`. Paths are relative to `[PRIVATE_HOST]:[PATH]`; run commands there via `ssh [PRIVATE_HOST] 'cd ~/unitary && ...'`. Owner send rules from skill i7-remote-ops still apply.\n\n\n# One session per subject per day: when, why, and how to get it\n\nOwner, 2026-10-10: *« one session per agent AND subject »*. The same subject resumes\nits session the same day; a new subject starts from zero; \"main\" is the everyday\nsession for whatever has no subject of its own.\n\nThe worker picks the session **before you read the letter** (`telegram/worker/subject.js`,\n`subject-sessions.js`). So two things matter: the rules below for deciding, and the\n**SUBJECT line you write**, because that line is what routes the receiver's turn.\n\n## 1. When is it a subject of its own?\n\n| The work is about… | Session | Why |\n|---|---|---|\n| 🟢 One client (a person, a business, a number) | `cl_…` (its id in the clients collection) | Every message about them, on any rail, in one place: promises and history stay together |\n| 🟢 One project (NartaQ, ENNOVA, 216 Capital, BIGTECH…) | `project-<name>` | Orders, sources and deliverables of the project stay together for the whole day |\n| 🟢 One hunt (niche + city: universités TN, wedding halls, furniture Tazarka) | `hunt-<niche>` | D56, D59, D61 on the same pool are ONE subject, not three |\n| 🟢 A thread with one teammate on one question | the thread's subject (reply to it) | A reply belongs where the question was asked |\n| 🟡 A recurring loop (Growth loop, Store loop) | its loop, one per day | Each round needs only the last round, not the whole day |\n| 🔴 A nudge, \"hi\", \"and?\", a status ping | stay on the held subject | It has no subject of its own |\n| 🔴 An FYI that needs no answer (\"fixed\", \"done\", \"file at …\") | main, or file it without a turn | A new session costs ~90k to start; an FYI is worth less |\n\n**Rule of thumb:** a new subject is worth it when it will take **3+ turns today** or\n**belongs to a client**. Fewer turns than that: stay where you are.\n\n## 2. Why not everything on main\n\n13/10/2026 audit: all 88 team letters to Omar, Artisto and Taz landed on main. Omar's main\nsession carried NartaQ, 216 Capital, BIGTECH, universities, wedding and furniture at once\n(293 model calls), and at 20:31 one turn answered 17 letters on 17 matters. Every call\nre-read all of it; a client's promise was buried under a hunt.\n\nWhy not a session per letter either: each new session starts at ~90k of context. Seven\nletters on seven micro-topics = 630k for nothing (the 10/10 live case that made team\nletters \"closed\"). **Few, stable subjects** is the goal.\n\n## 3. Write letters that route themselves (sender side)\n\n| Do | Example | What the router does with it |\n|---|---|---|\n| 🟢 Put the client's number or `cl_…` IN THE SUBJECT LINE, followed by a space or a dash, never a colon | `La Croche (+[PHONE]) flyer A4 + QR` | Routed to `cl_3e7eba44acda` |\n| 🔴 Not: a colon stuck to the number | `La Croche +[PHONE]: flyer` | The number is not seen (tested 13/10) → main |\n| 🔴 Not: client name only, number in the body | `Flyer QR pour La Croche (cafe, Tunis)` | The name is not resolved (not in capitals, no number next to it) → main |\n| 🟢 Start the subject with the project or hunt word, the SAME word every time | `NartaQ: ENNOVA source`, `NartaQ: first step due 15:00Z` | Same strong word → same session (once the router opens team topics, see §5) |\n| 🔴 Not: a new wording each time | `216 Capital: owner says dig…` / `216 Capital: every team member…` | Drifts into a new key every letter |\n| 🟢 One subject per letter | two matters = two letters | A letter is answered in one session only |\n| 🟢 Answer a letter with the mail tool's reply (keeps `replyTo`) and keep its subject (`Re: …`) | `Re: Location Tazarka 120 DT` | Joins the thread |\n| 🟢 A nudge repeats the subject it nudges: `reprends: <exact subject>` | `reprends: TazMall: 3 new vendor replies` | Today `reprends:` is routine → stays on the held session; write the subject anyway |\n\nNumber shapes the router reads as a client: `+<country>…` (9–15 digits), 8 Tunisian\ndigits, `216` + 8 digits, or `cl_<hex>`. Dates like `20261013` are not.\n\n## 4. When you are the receiver\n\n| Situation | Do |\n|---|---|\n| 🟢 Turn on a client / project / hunt session | Work only that subject; write what you promise with `client save` |\n| 🟡 Turn on main but the letter is really a big subject (3+ turns, heavy research, a whole client) | Do the heavy part in a sub-session (skill `brimind-subsession-tree`), keep only the result on main |\n| 🟡 Several letters on different matters in one turn | Answer each in one line; anything needing real work gets its own sub-session or its own letter back with a proper subject |\n| 🔴 Never | Re-open the same matter under a new wording; put two clients in one letter |\n\n## 5. What the router does (live since 13/10/2026 22:35 CET)\n\n| Rule | Where |\n|---|---|\n| 🟢 `TOPICS` list: project-nartaq, project-216capital, project-bigtech, hunt-language-schools, hunt-education, hunt-wedding, hunt-furniture, taz-vendors, taz-product-cards, loop-growth, loop-store — for every sender | `telegram/worker/subject.js` (a new project or niche = one line there) |\n| 🟢 `reprends: X` → X's session; nothing of its own → the held one | `subject.js` |\n| 🟢 A client named in the SUBJECT line (« La Croche ») is looked up by name; taken only when ONE client matches | `subject-sessions.js clientByName` |\n| 🟢 A client beats a topic | `letterKey` |\n| 🟡 At most 8 topic subjects per seat per day (`SUBJECT_TOPIC_CAP`), then main; clients never capped | `capped` |\n| 🔴 Anything else from a teammate → main (no free-word topics: they drift) | `subject.js` |\n\nNot built yet: a reply inheriting its parent letter's session through `replyTo`.\n","linked_files":[],"origin":"brimind","owner_id":null,"source":"router"}