Repository navigation
Commit bae548c
fix(comms): the Apple Mail ingest never authenticated, so every 401 read as "no messages"
Third layer of the same failure. `iris atlas:comms ingest --channel apple_mail` called the
bridge with no X-Bridge-Key, got 401 on every request, silently fell through to the Gmail
fallback, and reported whatever that returned as the complete answer. Lead anomalyco#10394 has 70
messages in Apple Mail across his three addresses; the ingest logged 1 and printed
"1 new, 0 skipped".
The Discord ingest twelve lines up in this same file has always sent the header. Mail simply
never did, and because an unauthenticated read is indistinguishable from an empty mailbox
downstream, nothing ever said so.
Failures are now printed per address with the status code, and a 401 names the fix. Falling
through to a lesser source without a word is what kept this invisible for months. Timeout
raised 5s → 15s: Mail.app search over a large mailbox is genuinely slow, and a timeout here
produced the same silent zero.
Fixing the auth immediately exposed the layer underneath — the bridge now answers 503,
because the daemon has no Full Disk Access and cannot read Mail at all:
[mail/search] No permission to read Mail — grant Full Disk Access in System Settings
That one is a macOS permission, not a code change. Grant it to
~/.iris/runtime/node-v22.11.0-darwin-arm64/bin/node and the ingest works. Until then it now
says so on every run instead of returning an empty list that looks like an answer.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FEVuQjtBdw2Mq3EpE56GFY1 parent 38c136a commit bae548c
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
249 | 258 | | |
250 | 259 | | |
251 | | - | |
| 260 | + | |
| 261 | + | |
252 | 262 | | |
253 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
254 | 269 | | |
255 | 270 | | |
256 | 271 | | |
| |||
0 commit comments