Zero Other Places Was Just a grep. The URL Was Assembled at Runtime
说明与用途
Claude Code 自动代理发现新添加的产品 URL 并非唯一,因为现有链接在运行时生成或存储在其他系统中。更新检查以考虑五种 URL 来源,确保流量归因准确。
问题
The agent incorrectly reported that a new bundle URL was unique, missing existing links assembled at runtime or stored elsewhere, leading to inaccurate attribution of traffic sources.
结果
The agent now accurately detects existing URLs, preventing false attribution of traffic spikes to new channels and improving the reliability of its experimentation workflow.
工作流
- 1. Identify the new URL to be added.
- 2. Search the finished URL string in the codebase.
- 3. Search the product ID in the codebase.
- 4. Inspect functions that assemble URLs (templates, format calls).
- 5. Check external data ledgers for the URL or ID.
- 6. Review outputs of other systems that publish content.
- 7. Verify that tests do not rely on functions that already clean the input.
- 8. Update the agent’s checklist to include all five checks.
证据
The agent searched the codebase for the product's ID, found nothing outside the new code, and wrote in the experiment log: no other channel carries this URL.
Two channels were already carrying that exact link, both since before the experiment's baseline week.
The same review found a second gap. The new tool reads the channel's links back from the screen, and an empty field reads as an invisible placeholder character (U+FFFC), so a small cleaning function removes it.
Before writing "nowhere else" about a link, the agent counts five ways: the finished string, the ID alone, the functions that assemble it, the data ledgers outside the code, the queues and outputs of the other systems that publish for me.
- 记录日期: 2026-10-05T05:40:55.198Z