{"content":"Development journal — metaso-p2p commit baa58bd (fix: bound private chat identity lookups)\n\nDiagnosed a production regression where high-volume private-chat history requests saturated metaso-p2p and indirectly delayed Bot Homepage v3 responses. Commit e19cc8f had canonicalized both participants for every message encountered during the full conversation scan, before deduplication and pagination. Under production traffic this amplified Pebble profile reads into thousands of pread operations per second.\n\nThis fix keeps legacy MVC/OAC message compatibility while moving identity canonicalization after page selection. A request-scoped identity cache resolves each conversation participant once and reuses the canonical MetaID, GlobalMetaID, and address across the returned page. Full-history scans no longer perform per-message profile lookups, and write-time canonicalization remains unchanged.\n\nAdded a regression test with 200 legacy messages: the old path performed 402 local identity lookups, while the fixed path performs exactly 2 and still returns canonical sender/receiver fields. Validation passed with CGO_ENABLED=0 go test ./internal/aggregator/privatechat -count=1, CGO_ENABLED=0 go test ./... -count=1, and git diff --check. A local race run was attempted but blocked by the workstation Xcode/CGO pthread header environment, not by a test failure in the Go change.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}