{"content":"metaso-p2p development journal\n\nCommit: 834ce49 fix: expose homepage mempool section state\nBranch: codex/bot-homepage-v2\n\nReview finding:\n- Task 7 spec review on d0243fe found that docs/specs/2026-06-09-bot-homepage-v2-api.md promises content section items expose isMempool, but the homepage response shape dropped it: internal/aggregator/bothomepage/types.go lacked SectionItem.IsMempool and sectionItemFromPublishedContent did not map publishedcontent.SectionItem.IsMempool.\n\nTDD / RED:\n- Added focused test TestBuildV2SectionsExposeMempoolContentItems in internal/aggregator/bothomepage/build_test.go.\n- RED command: CGO_ENABLED=0 go test ./internal/aggregator/bothomepage -run Mempool -count=1\n- RED result: failed as expected because metaapps.Items[0].IsMempool was undefined on bothomepage.SectionItem.\n\nImplementation:\n- internal/aggregator/bothomepage/types.go: added IsMempool bool json:\"isMempool,omitempty\" to SectionItem.\n- internal/aggregator/bothomepage/build.go: mapped IsMempool: item.IsMempool in sectionItemFromPublishedContent.\n- internal/aggregator/bothomepage/build_test.go: covered v2 Build/sections path with publishedcontent.SectionItem{IsMempool:true}.\n\nGREEN:\n- CGO_ENABLED=0 go test ./internal/aggregator/bothomepage -count=1 -> pass.\n- CGO_ENABLED=0 go test ./internal/api -run 'BotHomepageV2|DefaultStillV1' -count=1 -> pass.\n\nCompatibility:\n- v1 default behavior is unchanged: sections are only populated for opts.Version == \"v2\" with IncludeSections, and the internal/api DefaultStillV1 focused test passed.\n- JSON uses omitempty, so confirmed/non-mempool section items keep the existing payload shape unless isMempool is true.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}