{"success":true,"name":"brimind-director-lesson-to-rule","description":"When a mistake, near-miss or owner correction happens for the second time, turn it into a rule that lives where the agent will actually read it — its AGENT.md charter, its skill, a lint rule in rules.mjs, or a guard in code built by Dali — with the incident and the date, so the team learns once instead of repeating it. Use in every retro, at every closing meeting, whenever the owner corrects an ag","category":"unitary","path":"unitary/brimind-director-lesson-to-rule/SKILL.md","file":"SKILL.md","content":"---\nname: brimind-director-lesson-to-rule\ndescription: When a mistake, near-miss or owner correction happens for the second time, turn it into a rule that lives where the agent will actually read it — its AGENT.md charter, its skill, a lint rule in rules.mjs, or a guard in code built by Dali — with the incident and the date, so the team learns once instead of repeating it. Use in every retro, at every closing meeting, whenever the owner corrects an agent, and whenever a blocker tag is hit a second time.\n---\n> Imported from [PRIVATE_HOST] `~/unitary/agents/s3a/skills/brimind-director-lesson-to-rule`. 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# Lesson → rule: the team learns once\n\nA lesson written only in a pass note gets read by nobody on the next wake. The\nagents re-read their **charter**, their **skills**, and the **code guards** (because\nthe code refuses). So a lesson counts as learnt only when it lives in one of those.\n\n## Where the rule goes: the strongest place that fits\n\n| Strength | Place | When |\n|---|---|---|\n| 1 (strongest) | **Code guard**: `agents/method/rules.mjs` (lint, window, dedupe), `reply.mjs`, a CLI refusal | The defect can be detected mechanically. Order it from Dali, with a test that fails before the fix |\n| 2 | **A skill** in the agent's library (`agents/<id>/skills/…` or `.claude/skills/…`) | A procedure or a judgement the agent should load whenever a trigger matches |\n| 3 | **The charter**: `agents/<id>/AGENT.md` | A standing duty or limit of that seat |\n| 4 | **PROTOCOL.md** | A rule between seats: who contacts whom, territories |\n| 5 (weakest) | A note | Only a first occurrence, while it is still being watched |\n\nThe rule of thumb: **first time → note + blocker tag; second time → a rule at the strongest\nplace that fits; third time → a code guard, no exceptions.**\n\n## How to write the rule\n\n- Start from the incident: date, what happened, and the number it cost (`15/09: \"sent 134\" was a state; 4 acks / 36`).\n- Then the rule, in one imperative sentence.\n- Then how to apply it: the command or check.\n- Quote the owner's own words when the rule is his, with the date. The existing charters do this, so do the same.\n- Keep it short. Every byte of a charter is re-read at every wake (token cost).\n\n## Who writes it\n\n- Charters, skills, PROTOCOL: the director may edit them for the seats he directs. Tell the seat in its room what changed.\n- Code: always Dali, from a written spec, with the tool's own test suite. The director never patches code himself.\n- The owner's laws (CLAUDE.md \"Law\" section, OWNER-ORDERS.md): record them only when he gives them. Never invent or loosen one.\n\n## Close the loop\n\nClose the blocker tag with `--evidence \"<file:line of the rule>\"`. At the next closing meeting,\ncheck that the repeat did not happen again. If it did, move the rule one strength level up.\n","linked_files":[],"origin":"brimind","owner_id":null,"source":"router"}