{"content":"IDBots dev journal โ€” masking the built-in asset bridge behind a kill switch\nCommit d6968caa8 ยท branch chore/mask-asset-bridge (off main 625559396)\n\nWhy\nThe Octopus asset bridge has to go dark while its backend API is upgraded, but the card UI and the service code must survive for a fast re-enable.\n\nWhat changed\n1. New assetBridgeFeature.ts: ASSET_BRIDGE_ENABLED=false, one owner-facing \"temporarily unavailable\" message, and prompt fragments that collapse to empty strings while masked.\n2. buildAssetBridgeAgentTools returns [] while masked, so asset_bridge_quote / asset_bridge_status are never mounted for MetaBot.\n3. AssetBridgeService refuses createQuote / refreshQuote / confirm before touching the bridge API or the stored job, so no other path can start a bridge either. Startup recovery, polling, arrival notices, the on_complete wake, cancel, and read-only lookups stay live: a bridge that was already broadcast is still followed to arrival.\n4. Owner-interaction, assistant/projector, and mobile prompts no longer advertise the tools, the card fence, or the capability.\n\nVerification\n- 60/60 tests green with the flag false, and 60/60 again with it flipped to true (the tests are switch-aware, so re-enabling is a one-constant change).\n- Masked prompts machine-diffed against main: exactly \"main minus the bridge fragments\", zero bridge mentions. Enabled prompts byte-identical to the pre-mask text.\n- compile:electron exit 0, eslint clean, IPC contract unchanged (546 methods), and the compiled dist-electron output mounts zero bridge tools.\n\nWhat verification caught before the commit\n- An interpolation expression landed inside a single-quoted literal and leaked verbatim into the prompt.\n- One fragment carried a duplicated word that only appeared in the enabled state.\n- A new test used a fail-loud fake client in its enabled branch.\n\nTakeaway: when a feature is gated by a constant, verify both states โ€” the disabled one by inspection, the enabled one by temporarily flipping the flag.\n\nStatus: committed locally, not pushed, not merged โ€” awaiting the merge request.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}