Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
docs(privacy): takes examples use placeholder people and companies, not real ones
garrytanf4c7b99c607d
diff --git a/plugin-variants/gbrain-coding/skills/_brain-filing-rules.md b/plugin-variants/gbrain-coding/skills/_brain-filing-rules.mdindex 89b40b0d2a..fd7984d066 100644--- a/plugin-variants/gbrain-coding/skills/_brain-filing-rules.md+++ b/plugin-variants/gbrain-coding/skills/_brain-filing-rules.md@@ -175,11 +175,11 @@ examples lives in `docs/takes-vs-facts.md`.1. **Holder ≠ subject.** The test: did this person SAY or CLEARLY IMPLY this?- YES → `holder = people/<slug>`- NO, it's your analysis OF them → `holder = brain`- - Example: "Garry has a hero/rescuer pattern" → `holder=brain` (analysis ABOUT Garry, not stated BY Garry)+ - Example: "Alice has a hero/rescuer pattern" → `holder=brain` (analysis ABOUT Alice, not stated BY Alice)2. **Atomic claims.** Split compound rows into separate rows. One claim per row.3. **Amplification ≠ endorsement.** A retweet-only signal caps at `weight 0.55`.The user shared something; they didn't necessarily endorse every clause.-4. **Self-reported ≠ verified.** "Saif reports 7 figures" → `holder=people/saif`,+4. **Self-reported ≠ verified.** "Charlie reports 7 figures" → `holder=people/charlie-example`,`weight=0.75`, NOT `holder=world/1.0`. Self-report is a strong individualsignal, not consensus fact.5. **No false precision.** Use 0.05 increments only (`0.35`, `0.55`, `0.75`).@@ -195,8 +195,8 @@ examples lives in `docs/takes-vs-facts.md`.- `people/<slug>` (individual's stated belief)- `companies/<slug>` (institutional fact, no individual claimant)-Slugs use the standard grammar (`[a-z0-9._-]+`). `Garry`, `people/Garry-Tan`,-and `world/garry-tan` all fail validation.+Slugs use the standard grammar (`[a-z0-9._-]+`). `Alice`, `people/Alice-Example`,+and `world/alice-example` all fail validation.**Write takes with `takes_add`, not by hand.** `takes_add` (and `takes_update`for an existing row) writes the row for you: it allocates the row number,@@ -214,5 +214,5 @@ format in `docs/guides/fence-format.md`.**Founder-describing-own-company rule.** When a founder describes their owncompany, the holder is the FOUNDER, not the company. "We can hit $10M ARR"-said by Bo Lu → `holder=people/bo-lu`, NOT `holder=companies/clipboard-health`.+said by Bob Example → `holder=people/bob-example`, NOT `holder=companies/acme-example`.Companies don't speak; their employees do.diff --git a/plugin-variants/gbrain-daily/skills/_brain-filing-rules.md b/plugin-variants/gbrain-daily/skills/_brain-filing-rules.mdindex 89b40b0d2a..fd7984d066 100644--- a/plugin-variants/gbrain-daily/skills/_brain-filing-rules.md+++ b/plugin-variants/gbrain-daily/skills/_brain-filing-rules.md@@ -175,11 +175,11 @@ examples lives in `docs/takes-vs-facts.md`.1. **Holder ≠ subject.** The test: did this person SAY or CLEARLY IMPLY this?- YES → `holder = people/<slug>`- NO, it's your analysis OF them → `holder = brain`- - Example: "Garry has a hero/rescuer pattern" → `holder=brain` (analysis ABOUT Garry, not stated BY Garry)+ - Example: "Alice has a hero/rescuer pattern" → `holder=brain` (analysis ABOUT Alice, not stated BY Alice)2. **Atomic claims.** Split compound rows into separate rows. One claim per row.3. **Amplification ≠ endorsement.** A retweet-only signal caps at `weight 0.55`.The user shared something; they didn't necessarily endorse every clause.-4. **Self-reported ≠ verified.** "Saif reports 7 figures" → `holder=people/saif`,+4. **Self-reported ≠ verified.** "Charlie reports 7 figures" → `holder=people/charlie-example`,`weight=0.75`, NOT `holder=world/1.0`. Self-report is a strong individualsignal, not consensus fact.5. **No false precision.** Use 0.05 increments only (`0.35`, `0.55`, `0.75`).@@ -195,8 +195,8 @@ examples lives in `docs/takes-vs-facts.md`.- `people/<slug>` (individual's stated belief)- `companies/<slug>` (institutional fact, no individual claimant)-Slugs use the standard grammar (`[a-z0-9._-]+`). `Garry`, `people/Garry-Tan`,-and `world/garry-tan` all fail validation.+Slugs use the standard grammar (`[a-z0-9._-]+`). `Alice`, `people/Alice-Example`,+and `world/alice-example` all fail validation.**Write takes with `takes_add`, not by hand.** `takes_add` (and `takes_update`for an existing row) writes the row for you: it allocates the row number,@@ -214,5 +214,5 @@ format in `docs/guides/fence-format.md`.**Founder-describing-own-company rule.** When a founder describes their owncompany, the holder is the FOUNDER, not the company. "We can hit $10M ARR"-said by Bo Lu → `holder=people/bo-lu`, NOT `holder=companies/clipboard-health`.+said by Bob Example → `holder=people/bob-example`, NOT `holder=companies/acme-example`.Companies don't speak; their employees do.diff --git a/plugin/skills/_brain-filing-rules.md b/plugin/skills/_brain-filing-rules.mdindex 89b40b0d2a..fd7984d066 100644--- a/plugin/skills/_brain-filing-rules.md+++ b/plugin/skills/_brain-filing-rules.md@@ -175,11 +175,11 @@ examples lives in `docs/takes-vs-facts.md`.1. **Holder ≠ subject.** The test: did this person SAY or CLEARLY IMPLY this?- YES → `holder = people/<slug>`- NO, it's your analysis OF them → `holder = brain`- - Example: "Garry has a hero/rescuer pattern" → `holder=brain` (analysis ABOUT Garry, not stated BY Garry)+ - Example: "Alice has a hero/rescuer pattern" → `holder=brain` (analysis ABOUT Alice, not stated BY Alice)2. **Atomic claims.** Split compound rows into separate rows. One claim per row.3. **Amplification ≠ endorsement.** A retweet-only signal caps at `weight 0.55`.The user shared something; they didn't necessarily endorse every clause.-4. **Self-reported ≠ verified.** "Saif reports 7 figures" → `holder=people/saif`,+4. **Self-reported ≠ verified.** "Charlie reports 7 figures" → `holder=people/charlie-example`,`weight=0.75`, NOT `holder=world/1.0`. Self-report is a strong individualsignal, not consensus fact.5. **No false precision.** Use 0.05 increments only (`0.35`, `0.55`, `0.75`).@@ -195,8 +195,8 @@ examples lives in `docs/takes-vs-facts.md`.- `people/<slug>` (individual's stated belief)- `companies/<slug>` (institutional fact, no individual claimant)-Slugs use the standard grammar (`[a-z0-9._-]+`). `Garry`, `people/Garry-Tan`,-and `world/garry-tan` all fail validation.+Slugs use the standard grammar (`[a-z0-9._-]+`). `Alice`, `people/Alice-Example`,+and `world/alice-example` all fail validation.**Write takes with `takes_add`, not by hand.** `takes_add` (and `takes_update`for an existing row) writes the row for you: it allocates the row number,@@ -214,5 +214,5 @@ format in `docs/guides/fence-format.md`.**Founder-describing-own-company rule.** When a founder describes their owncompany, the holder is the FOUNDER, not the company. "We can hit $10M ARR"-said by Bo Lu → `holder=people/bo-lu`, NOT `holder=companies/clipboard-health`.+said by Bob Example → `holder=people/bob-example`, NOT `holder=companies/acme-example`.Companies don't speak; their employees do.diff --git a/skills/_brain-filing-rules.md b/skills/_brain-filing-rules.mdindex 89b40b0d2a..fd7984d066 100644--- a/skills/_brain-filing-rules.md+++ b/skills/_brain-filing-rules.md@@ -175,11 +175,11 @@ examples lives in `docs/takes-vs-facts.md`.1. **Holder ≠ subject.** The test: did this person SAY or CLEARLY IMPLY this?- YES → `holder = people/<slug>`- NO, it's your analysis OF them → `holder = brain`- - Example: "Garry has a hero/rescuer pattern" → `holder=brain` (analysis ABOUT Garry, not stated BY Garry)+ - Example: "Alice has a hero/rescuer pattern" → `holder=brain` (analysis ABOUT Alice, not stated BY Alice)2. **Atomic claims.** Split compound rows into separate rows. One claim per row.3. **Amplification ≠ endorsement.** A retweet-only signal caps at `weight 0.55`.The user shared something; they didn't necessarily endorse every clause.-4. **Self-reported ≠ verified.** "Saif reports 7 figures" → `holder=people/saif`,+4. **Self-reported ≠ verified.** "Charlie reports 7 figures" → `holder=people/charlie-example`,`weight=0.75`, NOT `holder=world/1.0`. Self-report is a strong individualsignal, not consensus fact.5. **No false precision.** Use 0.05 increments only (`0.35`, `0.55`, `0.75`).@@ -195,8 +195,8 @@ examples lives in `docs/takes-vs-facts.md`.- `people/<slug>` (individual's stated belief)- `companies/<slug>` (institutional fact, no individual claimant)-Slugs use the standard grammar (`[a-z0-9._-]+`). `Garry`, `people/Garry-Tan`,-and `world/garry-tan` all fail validation.+Slugs use the standard grammar (`[a-z0-9._-]+`). `Alice`, `people/Alice-Example`,+and `world/alice-example` all fail validation.**Write takes with `takes_add`, not by hand.** `takes_add` (and `takes_update`for an existing row) writes the row for you: it allocates the row number,@@ -214,5 +214,5 @@ format in `docs/guides/fence-format.md`.**Founder-describing-own-company rule.** When a founder describes their owncompany, the holder is the FOUNDER, not the company. "We can hit $10M ARR"-said by Bo Lu → `holder=people/bo-lu`, NOT `holder=companies/clipboard-health`.+said by Bob Example → `holder=people/bob-example`, NOT `holder=companies/acme-example`.Companies don't speak; their employees do.diff --git a/skills/skills.lock.json b/skills/skills.lock.jsonindex 450334a27b..111aa80d80 100644--- a/skills/skills.lock.json+++ b/skills/skills.lock.json@@ -2,7 +2,7 @@"RESOLVER.md": "8b048e1e8834095bb1b5ace4cefff95e94e3994994f1120102b83121282e3290","_AGENT_README.md": "ab51e36e9a0b53f4d0609294b0556444399147834932d9c1acfdc7aa367c70b8","_brain-filing-rules.json": "4e6ecee2d94867d146583d60bf98dccdd9205bb70793af56fe1397a2b258ae0d",- "_brain-filing-rules.md": "5a5792a290e7f48e0123744e3460ea02514d7a514113827a9dde462935565d17",+ "_brain-filing-rules.md": "ff42b331bce542d708f97ff0a73ff0fb5664b46ee9b1862a5478b15dc637487e","_friction-protocol.md": "51353207240142024ff1facc25f225712275ecdb4a034ffffdd83740c8d328e3","_output-rules.md": "0722ec2ecea7f9fa2f065cf12dfe1347956a9709d29898bf9fe95e875c64b800","academic-verify/SKILL.md": "485839f3f35ddebeb99dacc901deed4b5c7c6c7f7c8367a444b8a427530e75a5",diff --git a/src/core/takes-fence.ts b/src/core/takes-fence.tsindex 8e0b24347c..c7e3cf10a8 100644--- a/src/core/takes-fence.ts+++ b/src/core/takes-fence.ts@@ -12,9 +12,9 @@* | # | claim | kind | who | weight | since | source |* |---|-------|------|-----|--------|-------|--------|* | 1 | CEO of Acme | fact | world | 1.0 | 2017-01 | Crustdata |- * | 2 | Strong technical founder | take | garry | 0.85 | 2026-04-29 | OH 2026-04-29 |- * | 3 | ~~Will reach $50B~~ | bet | garry | 0.7 | 2026-04-29 → 2026-06 | superseded by #4 |- * | 4 | Will reach $30B | bet | garry | 0.55 | 2026-06 | revised after Q2 numbers |+ * | 2 | Strong technical founder | take | alice-example | 0.85 | 2026-04-29 | OH 2026-04-29 |+ * | 3 | ~~Will reach $50B~~ | bet | alice-example | 0.7 | 2026-04-29 → 2026-06 | superseded by #4 |+ * | 4 | Will reach $30B | bet | alice-example | 0.55 | 2026-06 | revised after Q2 numbers |* <!--- gbrain:takes:end -->** Parsing rules (Codex P1 #8 fold — strict on canonical, lenient on hand-edits):@@ -60,11 +60,11 @@ export interface ParsedTake {* NO, it's your analysis of them → holder = brain** Examples:- * ✅ holder=people/garry-tan claim="AI will replace 50% of coding" (Garry SAID this)- * ✅ holder=brain claim="Garry has a hero/rescuer pattern" (analysis OF Garry)- * ✅ holder=people/bo-lu claim="We can hit $10M ARR" (Bo Lu SAID this)- * ❌ holder=people/garry-tan claim="Garry has a hero/rescuer pattern" (not his belief)- * ❌ holder=companies/hermes claim="Latency is 15-20s" (Zain said it → people/zain)+ * ✅ holder=people/alice-example claim="AI will replace 50% of coding" (Alice SAID this)+ * ✅ holder=brain claim="Alice has a hero/rescuer pattern" (analysis OF Alice)+ * ✅ holder=people/bob-example claim="We can hit $10M ARR" (Bob SAID this)+ * ❌ holder=people/alice-example claim="Alice has a hero/rescuer pattern" (not her belief)+ * ❌ holder=companies/widgetco-example claim="Latency is 15-20s" (Dana said it → people/dana-example)** Values: 'world' (consensus fact) | 'people/<slug>' (individual's stated belief) |* 'companies/<slug>' (institutional fact, no individual claimant) |@@ -72,7 +72,7 @@ export interface ParsedTake {** Additional rules from production eval:* - Amplification ≠ endorsement: retweet-only → max weight 0.55- * - Self-reported ≠ verified: "Saif reports 7 figures" → people/saif, NOT world+ * - Self-reported ≠ verified: "Charlie reports 7 figures" → people/charlie-example, NOT world* - Founder describing company → people/founder, NOT companies/slug*/holder: string;@@ -94,7 +94,7 @@ export interface ParsedTake {resolvedEvidence?: string; // human note (alias for resolved_source)resolvedValue?: number;resolvedUnit?: string;- resolvedBy?: string; // slug or 'garry'+ resolvedBy?: string; // slug or 'alice-example'}export interface ParseResult {@@ -123,10 +123,10 @@ export const TAKES_FENCE_END = '<!--- gbrain:takes:end -->';* the original PR's `[a-z0-9-]+` would have warned on both).** Catches the eval-flagged error modes:- * - `Garry` — uppercase letter (rejected: not in [a-z0-9._-])- * - `people/Garry-Tan` — mixed case in slug (rejected for same reason)- * - `world/garry-tan` — `world` is a literal, no slash variant- * - `users/garry` — only `people/...` and `companies/...` are namespaced+ * - `Alice` — uppercase letter (rejected: not in [a-z0-9._-])+ * - `people/Alice-Ex` — mixed case in slug (rejected for same reason)+ * - `world/alice-ex` — `world` is a literal, no slash variant+ * - `users/alice` — only `people/...` and `companies/...` are namespaced** The legacy bare-slug form is reserved for v0.33 promotion to error;* v0.32 emits warnings only.diff --git a/test/takes-holder-semantics.test.ts b/test/takes-holder-semantics.test.tsindex 9142602a30..1bdcb9b2c0 100644--- a/test/takes-holder-semantics.test.ts+++ b/test/takes-holder-semantics.test.ts@@ -12,17 +12,17 @@ describe('takes holder semantics', () => {const fence = `<!--- gbrain:takes:begin -->| # | claim | kind | who | weight | since | source ||---|-------|------|-----|--------|-------|--------|-| 1 | AI will replace 50% of coding by 2030 | bet | people/garry-tan | 0.75 | 2026-01 | Lightcone |+| 1 | AI will replace 50% of coding by 2030 | bet | people/alice-example | 0.75 | 2026-01 | podcast |<!--- gbrain:takes:end -->`;const result = parseTakesFence(fence);- expect(result.takes[0].holder).toBe('people/garry-tan');+ expect(result.takes[0].holder).toBe('people/alice-example');});it('analysis ABOUT a person by brain → holder is brain, not the subject', () => {const fence = `<!--- gbrain:takes:begin -->| # | claim | kind | who | weight | since | source ||---|-------|------|-----|--------|-------|--------|-| 1 | Garry has a hero/rescuer pattern from childhood parentification | hunch | brain | 0.75 | 2026-04 | therapy analysis |+| 1 | Alice has a hero/rescuer pattern | hunch | brain | 0.75 | 2026-04 | brain analysis |<!--- gbrain:takes:end -->`;const result = parseTakesFence(fence);expect(result.takes[0].holder).toBe('brain');@@ -33,7 +33,7 @@ describe('takes holder semantics', () => {const fence = `<!--- gbrain:takes:begin -->| # | claim | kind | who | weight | since | source ||---|-------|------|-----|--------|-------|--------|-| 1 | Clipboard Health raised a $100M Series C | fact | world | 1.00 | 2026-03 | TechCrunch |+| 1 | Acme Example raised a $100M Series C | fact | world | 1.00 | 2026-03 | press release |<!--- gbrain:takes:end -->`;const result = parseTakesFence(fence);expect(result.takes[0].holder).toBe('world');@@ -44,10 +44,10 @@ describe('takes holder semantics', () => {const fence = `<!--- gbrain:takes:begin -->| # | claim | kind | who | weight | since | source ||---|-------|------|-----|--------|-------|--------|-| 1 | We can hit $10M ARR by Q3 | bet | people/bo-lu | 0.70 | 2026-04 | OH meeting |+| 1 | We can hit $10M ARR by Q3 | bet | people/bob-example | 0.70 | 2026-04 | OH meeting |<!--- gbrain:takes:end -->`;const result = parseTakesFence(fence);- expect(result.takes[0].holder).toBe('people/bo-lu');+ expect(result.takes[0].holder).toBe('people/bob-example');expect(result.takes[0].kind).toBe('bet');});@@ -55,18 +55,18 @@ describe('takes holder semantics', () => {const fence = `<!--- gbrain:takes:begin -->| # | claim | kind | who | weight | since | source ||---|-------|------|-----|--------|-------|--------|-| 1 | Founded in 2019, incorporated in Delaware | fact | companies/clipboard-health | 1.00 | 2019-01 | SEC filing |+| 1 | Founded in 2019, incorporated in Delaware | fact | companies/acme-example | 1.00 | 2019-01 | SEC filing |<!--- gbrain:takes:end -->`;const result = parseTakesFence(fence);- expect(result.takes[0].holder).toBe('companies/clipboard-health');+ expect(result.takes[0].holder).toBe('companies/acme-example');});it('parser preserves weight values as-is (rounding is at engine layer)', () => {const fence = `<!--- gbrain:takes:begin -->| # | claim | kind | who | weight | since | source ||---|-------|------|-----|--------|-------|--------|-| 1 | Strong technical founder | take | people/garry-tan | 0.85 | 2026-04 | OH |-| 2 | Market timing is risky | hunch | people/garry-tan | 0.74 | 2026-04 | OH |+| 1 | Strong technical founder | take | people/alice-example | 0.85 | 2026-04 | OH |+| 2 | Market timing is risky | hunch | people/alice-example | 0.74 | 2026-04 | OH |<!--- gbrain:takes:end -->`;const result = parseTakesFence(fence);expect(result.takes[0].weight).toBeCloseTo(0.85, 2);diff --git a/test/takes-holder-validation.test.ts b/test/takes-holder-validation.test.tsindex 473700a370..1f976e6104 100644--- a/test/takes-holder-validation.test.ts+++ b/test/takes-holder-validation.test.ts@@ -40,7 +40,7 @@ describe('isValidHolder — canonical forms', () => {});test('companies/<slug> is valid', () => {- expect(isValidHolder('companies/clipboard-health')).toBe(true);+ expect(isValidHolder('companies/acme-example')).toBe(true);});test('codex #3: dots in slug are valid (companies/acme.io)', () => {