Commit 8f7a622
fix: you are never your own guest
GitHub logins are case-insensitive, but stats.jq compared them
case-sensitively. $login arrives from the CLI in whatever casing was
typed while API payloads carry the canonical spelling, so `gh-pet
willjames` failed to recognize its own "WillJames/repo" events as its
own.
The visitor list filtered self out via startswith($login + "/") — a
proxy for "not me" that silently stopped holding under a case mismatch,
promoting you to a visitor on your own stage. On a case-insensitive
filesystem the guest cache lookup then resolves to your own state.env,
so the pet renders standing next to itself.
Bind the login downcased once and state the invariant on the extracted
owner rather than trusting the repo-prefix proxy. Same root cause fixed
in two siblings: $outbound7 counted your own repos as outbound comments
on others' repos (inflating social), and the $comms bond ledger could
list you against yourself.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 91d9d62 commit 8f7a622
2 files changed
Lines changed: 35 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
157 | 163 | | |
158 | 164 | | |
159 | 165 | | |
160 | | - | |
| 166 | + | |
161 | 167 | | |
162 | 168 | | |
163 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
164 | 172 | | |
165 | 173 | | |
166 | 174 | | |
167 | 175 | | |
168 | | - | |
169 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
170 | 179 | | |
171 | 180 | | |
172 | 181 | | |
| |||
178 | 187 | | |
179 | 188 | | |
180 | 189 | | |
181 | | - | |
| 190 | + | |
182 | 191 | | |
183 | 192 | | |
184 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
79 | 100 | | |
80 | 101 | | |
81 | 102 | | |
| |||
0 commit comments