opendevbrowser 0.0.28 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/README.md +2 -2
  2. package/dist/accessibility-snapshot-CQ4ZKWKC.js +39 -0
  3. package/dist/accessibility-snapshot-CQ4ZKWKC.js.map +1 -0
  4. package/dist/active-window-TD5HYJ72.js +37 -0
  5. package/dist/active-window-TD5HYJ72.js.map +1 -0
  6. package/dist/annotate-VTLFS2XV.js +205 -0
  7. package/dist/annotate-VTLFS2XV.js.map +1 -0
  8. package/dist/artifacts-KJ6RNDO2.js +120 -0
  9. package/dist/artifacts-KJ6RNDO2.js.map +1 -0
  10. package/dist/attr-BCI5KYCW.js +84 -0
  11. package/dist/attr-BCI5KYCW.js.map +1 -0
  12. package/dist/browser/ops-client.d.ts +1 -0
  13. package/dist/browser/ops-client.d.ts.map +1 -1
  14. package/dist/canvas-5DFEEOKM.js +309 -0
  15. package/dist/canvas-5DFEEOKM.js.map +1 -0
  16. package/dist/capture-desktop-HFTTWY4Z.js +38 -0
  17. package/dist/capture-desktop-HFTTWY4Z.js.map +1 -0
  18. package/dist/capture-window-X63XPIFF.js +40 -0
  19. package/dist/capture-window-X63XPIFF.js.map +1 -0
  20. package/dist/check-LWAUY7GC.js +71 -0
  21. package/dist/check-LWAUY7GC.js.map +1 -0
  22. package/dist/checked-ZSOUKVYT.js +71 -0
  23. package/dist/checked-ZSOUKVYT.js.map +1 -0
  24. package/dist/chunk-2SIMIPLY.js +67 -0
  25. package/dist/chunk-2SIMIPLY.js.map +1 -0
  26. package/dist/chunk-37VSRUW4.js +141 -0
  27. package/dist/chunk-37VSRUW4.js.map +1 -0
  28. package/dist/{chunk-T3VVHJTK.js → chunk-4BEJVZRK.js} +1078 -1458
  29. package/dist/chunk-4BEJVZRK.js.map +1 -0
  30. package/dist/chunk-5SWZDVOW.js +144 -0
  31. package/dist/chunk-5SWZDVOW.js.map +1 -0
  32. package/dist/chunk-6PVZ2ABC.js +429 -0
  33. package/dist/chunk-6PVZ2ABC.js.map +1 -0
  34. package/dist/chunk-7GVOUZMQ.js +64 -0
  35. package/dist/chunk-7GVOUZMQ.js.map +1 -0
  36. package/dist/chunk-7THCPS52.js +84 -0
  37. package/dist/chunk-7THCPS52.js.map +1 -0
  38. package/dist/chunk-AHEWXOKY.js +64 -0
  39. package/dist/chunk-AHEWXOKY.js.map +1 -0
  40. package/dist/chunk-ASMHEEKY.js +10 -0
  41. package/dist/chunk-ASMHEEKY.js.map +1 -0
  42. package/dist/chunk-COAOWH3G.js +3651 -0
  43. package/dist/chunk-COAOWH3G.js.map +1 -0
  44. package/dist/chunk-DBF5OKH3.js +111 -0
  45. package/dist/chunk-DBF5OKH3.js.map +1 -0
  46. package/dist/chunk-DW4TX7MU.js +54 -0
  47. package/dist/chunk-DW4TX7MU.js.map +1 -0
  48. package/dist/chunk-GQJ5S3BL.js +20 -0
  49. package/dist/chunk-GQJ5S3BL.js.map +1 -0
  50. package/dist/chunk-IPE7TF2P.js +54 -0
  51. package/dist/chunk-IPE7TF2P.js.map +1 -0
  52. package/dist/chunk-IQTJHXZJ.js +126 -0
  53. package/dist/chunk-IQTJHXZJ.js.map +1 -0
  54. package/dist/chunk-J47N77VG.js +2969 -0
  55. package/dist/chunk-J47N77VG.js.map +1 -0
  56. package/dist/chunk-JZXD6FWR.js +25 -0
  57. package/dist/chunk-JZXD6FWR.js.map +1 -0
  58. package/dist/{chunk-QVWOPIZJ.js → chunk-KDSNXS6N.js} +75 -149
  59. package/dist/chunk-KDSNXS6N.js.map +1 -0
  60. package/dist/chunk-KZ2IXVQT.js +219 -0
  61. package/dist/chunk-KZ2IXVQT.js.map +1 -0
  62. package/dist/chunk-MD655IPO.js +838 -0
  63. package/dist/chunk-MD655IPO.js.map +1 -0
  64. package/dist/chunk-MX3NFLCE.js +940 -0
  65. package/dist/chunk-MX3NFLCE.js.map +1 -0
  66. package/dist/chunk-OW5HMYMI.js +19 -0
  67. package/dist/chunk-OW5HMYMI.js.map +1 -0
  68. package/dist/chunk-PPUWQKIC.js +26 -0
  69. package/dist/chunk-PPUWQKIC.js.map +1 -0
  70. package/dist/{chunk-I5ZCOZZV.js → chunk-QOMWCRE3.js} +1202 -9561
  71. package/dist/chunk-QOMWCRE3.js.map +1 -0
  72. package/dist/chunk-RCZZGGJS.js +226 -0
  73. package/dist/chunk-RCZZGGJS.js.map +1 -0
  74. package/dist/chunk-RJNI3BHT.js +1 -0
  75. package/dist/chunk-RPXWUCQQ.js +112 -0
  76. package/dist/chunk-RPXWUCQQ.js.map +1 -0
  77. package/dist/chunk-S5KZQJJI.js +107 -0
  78. package/dist/chunk-S5KZQJJI.js.map +1 -0
  79. package/dist/chunk-T4GMCW6Z.js +46 -0
  80. package/dist/chunk-T4GMCW6Z.js.map +1 -0
  81. package/dist/chunk-WHQZBUNY.js +982 -0
  82. package/dist/chunk-WHQZBUNY.js.map +1 -0
  83. package/dist/chunk-WOXBLP7V.js +610 -0
  84. package/dist/chunk-WOXBLP7V.js.map +1 -0
  85. package/dist/cli/commands/inspiredesign.d.ts.map +1 -1
  86. package/dist/cli/commands/macro-resolve.d.ts +4 -1
  87. package/dist/cli/commands/macro-resolve.d.ts.map +1 -1
  88. package/dist/cli/commands/product-video.d.ts.map +1 -1
  89. package/dist/cli/commands/research.d.ts.map +1 -1
  90. package/dist/cli/commands/serve.d.ts.map +1 -1
  91. package/dist/cli/commands/shopping.d.ts.map +1 -1
  92. package/dist/cli/commands/workflow-output.d.ts +2 -0
  93. package/dist/cli/commands/workflow-output.d.ts.map +1 -0
  94. package/dist/cli/daemon-commands.d.ts.map +1 -1
  95. package/dist/cli/daemon.d.ts.map +1 -1
  96. package/dist/cli/index.js +204 -8123
  97. package/dist/cli/index.js.map +1 -1
  98. package/dist/cli/installers/postinstall-skill-sync.js +2 -1
  99. package/dist/cli/installers/postinstall-skill-sync.js.map +1 -1
  100. package/dist/cli/remote-relay.d.ts.map +1 -1
  101. package/dist/click-2AILSEIZ.js +81 -0
  102. package/dist/click-2AILSEIZ.js.map +1 -0
  103. package/dist/clone-component-TPJS3PEG.js +82 -0
  104. package/dist/clone-component-TPJS3PEG.js.map +1 -0
  105. package/dist/clone-page-LE74CIFC.js +69 -0
  106. package/dist/clone-page-LE74CIFC.js.map +1 -0
  107. package/dist/close-HN4YI47K.js +63 -0
  108. package/dist/close-HN4YI47K.js.map +1 -0
  109. package/dist/close-WFERRHX6.js +63 -0
  110. package/dist/close-WFERRHX6.js.map +1 -0
  111. package/dist/connect-RWBV2UCQ.js +107 -0
  112. package/dist/connect-RWBV2UCQ.js.map +1 -0
  113. package/dist/console-poll-PP4YYPDF.js +76 -0
  114. package/dist/console-poll-PP4YYPDF.js.map +1 -0
  115. package/dist/cookie-import-6IP776FC.js +177 -0
  116. package/dist/cookie-import-6IP776FC.js.map +1 -0
  117. package/dist/cookie-list-O2KG6DPU.js +117 -0
  118. package/dist/cookie-list-O2KG6DPU.js.map +1 -0
  119. package/dist/daemon-2BSAZXLT.js +194 -0
  120. package/dist/daemon-2BSAZXLT.js.map +1 -0
  121. package/dist/daemon-fingerprint.json +1 -1
  122. package/dist/debug-trace-snapshot-F3BDVZXS.js +136 -0
  123. package/dist/debug-trace-snapshot-F3BDVZXS.js.map +1 -0
  124. package/dist/dialog-6JQYUWMQ.js +75 -0
  125. package/dist/dialog-6JQYUWMQ.js.map +1 -0
  126. package/dist/disconnect-763TP7GH.js +58 -0
  127. package/dist/disconnect-763TP7GH.js.map +1 -0
  128. package/dist/enabled-DLYQFNIP.js +71 -0
  129. package/dist/enabled-DLYQFNIP.js.map +1 -0
  130. package/dist/extension-extractor-GKWSFHPN.js +11 -0
  131. package/dist/extension-extractor-GKWSFHPN.js.map +1 -0
  132. package/dist/global-D6WLWBXA.js +56 -0
  133. package/dist/global-D6WLWBXA.js.map +1 -0
  134. package/dist/goto-S346TJJH.js +98 -0
  135. package/dist/goto-S346TJJH.js.map +1 -0
  136. package/dist/help-EKKKEDL5.js +491 -0
  137. package/dist/help-EKKKEDL5.js.map +1 -0
  138. package/dist/hover-6JVJFGO7.js +71 -0
  139. package/dist/hover-6JVJFGO7.js.map +1 -0
  140. package/dist/html-EVOSPBIT.js +84 -0
  141. package/dist/html-EVOSPBIT.js.map +1 -0
  142. package/dist/index.d.ts.map +1 -1
  143. package/dist/index.js +87 -38
  144. package/dist/index.js.map +1 -1
  145. package/dist/inspector-H57BVUJP.js +62 -0
  146. package/dist/inspector-H57BVUJP.js.map +1 -0
  147. package/dist/inspector-audit-NQBAJWC7.js +84 -0
  148. package/dist/inspector-audit-NQBAJWC7.js.map +1 -0
  149. package/dist/inspector-plan-ZDIQVND3.js +69 -0
  150. package/dist/inspector-plan-ZDIQVND3.js.map +1 -0
  151. package/dist/inspiredesign-IEUL4PX3.js +234 -0
  152. package/dist/inspiredesign-IEUL4PX3.js.map +1 -0
  153. package/dist/install-autostart-output-5DOMKCQL.js +41 -0
  154. package/dist/install-autostart-output-5DOMKCQL.js.map +1 -0
  155. package/dist/install-autostart-reconciliation-NHKOFYTD.js +73 -0
  156. package/dist/install-autostart-reconciliation-NHKOFYTD.js.map +1 -0
  157. package/dist/launch-EK66VQPF.js +225 -0
  158. package/dist/launch-EK66VQPF.js.map +1 -0
  159. package/dist/list-ADZAQ2IU.js +51 -0
  160. package/dist/list-ADZAQ2IU.js.map +1 -0
  161. package/dist/list-KKUKN467.js +54 -0
  162. package/dist/list-KKUKN467.js.map +1 -0
  163. package/dist/local-HXJLUUNT.js +54 -0
  164. package/dist/local-HXJLUUNT.js.map +1 -0
  165. package/dist/macro-resolve-6DOQJ7CA.js +253 -0
  166. package/dist/macro-resolve-6DOQJ7CA.js.map +1 -0
  167. package/dist/macros/execute-runtime.d.ts +3 -1
  168. package/dist/macros/execute-runtime.d.ts.map +1 -1
  169. package/dist/macros/execute.d.ts +2 -0
  170. package/dist/macros/execute.d.ts.map +1 -1
  171. package/dist/native-UPLVQ2SG.js +22 -0
  172. package/dist/native-UPLVQ2SG.js.map +1 -0
  173. package/dist/network-poll-NUL4PDPY.js +76 -0
  174. package/dist/network-poll-NUL4PDPY.js.map +1 -0
  175. package/dist/new-5NKYPEFT.js +69 -0
  176. package/dist/new-5NKYPEFT.js.map +1 -0
  177. package/dist/onboarding-metadata-7E3KLYSZ.js +27 -0
  178. package/dist/onboarding-metadata-7E3KLYSZ.js.map +1 -0
  179. package/dist/open-NR3BPLXV.js +81 -0
  180. package/dist/open-NR3BPLXV.js.map +1 -0
  181. package/dist/opendevbrowser.d.ts.map +1 -1
  182. package/dist/opendevbrowser.js +87 -38
  183. package/dist/opendevbrowser.js.map +1 -1
  184. package/dist/perf-HJ36ZI6H.js +58 -0
  185. package/dist/perf-HJ36ZI6H.js.map +1 -0
  186. package/dist/pointer-down-IYTTQWXZ.js +55 -0
  187. package/dist/pointer-down-IYTTQWXZ.js.map +1 -0
  188. package/dist/pointer-drag-A2YC5PWI.js +54 -0
  189. package/dist/pointer-drag-A2YC5PWI.js.map +1 -0
  190. package/dist/pointer-move-W5K5FUI4.js +52 -0
  191. package/dist/pointer-move-W5K5FUI4.js.map +1 -0
  192. package/dist/pointer-up-6GWVO64Y.js +55 -0
  193. package/dist/pointer-up-6GWVO64Y.js.map +1 -0
  194. package/dist/press-A3V5WB3S.js +83 -0
  195. package/dist/press-A3V5WB3S.js.map +1 -0
  196. package/dist/product-video-52REKWF3.js +235 -0
  197. package/dist/product-video-52REKWF3.js.map +1 -0
  198. package/dist/providers/artifacts.d.ts +0 -2
  199. package/dist/providers/artifacts.d.ts.map +1 -1
  200. package/dist/providers/blocker.d.ts.map +1 -1
  201. package/dist/providers/bounded-map.d.ts +2 -0
  202. package/dist/providers/bounded-map.d.ts.map +1 -0
  203. package/dist/providers/community/index.d.ts.map +1 -1
  204. package/dist/providers/constraint.d.ts.map +1 -1
  205. package/dist/providers/index.d.ts +1 -0
  206. package/dist/providers/index.d.ts.map +1 -1
  207. package/dist/providers/renderer.d.ts.map +1 -1
  208. package/dist/providers/research-compiler.d.ts +1 -1
  209. package/dist/providers/research-compiler.d.ts.map +1 -1
  210. package/dist/providers/research-executor.d.ts.map +1 -1
  211. package/dist/providers/runtime-factory.d.ts.map +1 -1
  212. package/dist/providers/shared/traversal-url.d.ts +3 -0
  213. package/dist/providers/shared/traversal-url.d.ts.map +1 -1
  214. package/dist/providers/shopping/index.d.ts.map +1 -1
  215. package/dist/providers/social/search-quality.d.ts.map +1 -1
  216. package/dist/providers/workflow-handoff.d.ts +4 -0
  217. package/dist/providers/workflow-handoff.d.ts.map +1 -1
  218. package/dist/providers/workflow-output-root.d.ts +6 -0
  219. package/dist/providers/workflow-output-root.d.ts.map +1 -0
  220. package/dist/providers/workflows.d.ts.map +1 -1
  221. package/dist/{providers-QF2RFB4J.js → providers-IMFYMMHQ.js} +19 -14
  222. package/dist/providers-IMFYMMHQ.js.map +1 -0
  223. package/dist/public-surface/generated-manifest.d.ts +2 -2
  224. package/dist/public-surface/generated-manifest.d.ts.map +1 -1
  225. package/dist/public-surface/source.d.ts +2 -2
  226. package/dist/public-surface/source.d.ts.map +1 -1
  227. package/dist/relay/protocol.d.ts +3 -1
  228. package/dist/relay/protocol.d.ts.map +1 -1
  229. package/dist/relay/relay-server.d.ts +6 -0
  230. package/dist/relay/relay-server.d.ts.map +1 -1
  231. package/dist/research-WB6BBCDD.js +295 -0
  232. package/dist/research-WB6BBCDD.js.map +1 -0
  233. package/dist/review-BGWVY4RA.js +48 -0
  234. package/dist/review-BGWVY4RA.js.map +1 -0
  235. package/dist/review-desktop-LEORC5VS.js +54 -0
  236. package/dist/review-desktop-LEORC5VS.js.map +1 -0
  237. package/dist/rpc-4TSKSFGC.js +159 -0
  238. package/dist/rpc-4TSKSFGC.js.map +1 -0
  239. package/dist/run-3NBLVWXD.js +180 -0
  240. package/dist/run-3NBLVWXD.js.map +1 -0
  241. package/dist/screencast-start-UZVIT3IN.js +67 -0
  242. package/dist/screencast-start-UZVIT3IN.js.map +1 -0
  243. package/dist/screencast-stop-NOSJSIUO.js +59 -0
  244. package/dist/screencast-stop-NOSJSIUO.js.map +1 -0
  245. package/dist/screenshot-LARG4JQG.js +68 -0
  246. package/dist/screenshot-LARG4JQG.js.map +1 -0
  247. package/dist/scroll-VNFMV6TW.js +84 -0
  248. package/dist/scroll-VNFMV6TW.js.map +1 -0
  249. package/dist/scroll-into-view-VYRT3JPT.js +71 -0
  250. package/dist/scroll-into-view-VYRT3JPT.js.map +1 -0
  251. package/dist/select-KJTUZDVO.js +86 -0
  252. package/dist/select-KJTUZDVO.js.map +1 -0
  253. package/dist/serve-EV7K4HKR.js +498 -0
  254. package/dist/serve-EV7K4HKR.js.map +1 -0
  255. package/dist/shopping-DTXHVQ2X.js +273 -0
  256. package/dist/shopping-DTXHVQ2X.js.map +1 -0
  257. package/dist/skill-lifecycle-5UAZGKSN.js +89 -0
  258. package/dist/skill-lifecycle-5UAZGKSN.js.map +1 -0
  259. package/dist/skills-NSXDX6YM.js +26 -0
  260. package/dist/skills-NSXDX6YM.js.map +1 -0
  261. package/dist/snapshot-3XQMCMRJ.js +113 -0
  262. package/dist/snapshot-3XQMCMRJ.js.map +1 -0
  263. package/dist/status-OXSYA5XD.js +35 -0
  264. package/dist/status-OXSYA5XD.js.map +1 -0
  265. package/dist/status-YUMDP5KY.js +132 -0
  266. package/dist/status-YUMDP5KY.js.map +1 -0
  267. package/dist/status-capabilities-P4KDSE2Y.js +57 -0
  268. package/dist/status-capabilities-P4KDSE2Y.js.map +1 -0
  269. package/dist/text-V3B7UVIH.js +84 -0
  270. package/dist/text-V3B7UVIH.js.map +1 -0
  271. package/dist/tools/deps.d.ts +1 -0
  272. package/dist/tools/deps.d.ts.map +1 -1
  273. package/dist/tools/inspiredesign_run.d.ts.map +1 -1
  274. package/dist/tools/macro_resolve.d.ts.map +1 -1
  275. package/dist/tools/product_video_run.d.ts.map +1 -1
  276. package/dist/tools/research_run.d.ts.map +1 -1
  277. package/dist/tools/shopping_run.d.ts.map +1 -1
  278. package/dist/tools/workflow-output.d.ts +3 -0
  279. package/dist/tools/workflow-output.d.ts.map +1 -0
  280. package/dist/type-IYBN3ZLR.js +94 -0
  281. package/dist/type-IYBN3ZLR.js.map +1 -0
  282. package/dist/uncheck-SG737EGI.js +71 -0
  283. package/dist/uncheck-SG737EGI.js.map +1 -0
  284. package/dist/uninstall-KYKGJAX7.js +91 -0
  285. package/dist/uninstall-KYKGJAX7.js.map +1 -0
  286. package/dist/update-SMXPYGXS.js +305 -0
  287. package/dist/update-SMXPYGXS.js.map +1 -0
  288. package/dist/update-skill-modes-BVX7IVMW.js +38 -0
  289. package/dist/update-skill-modes-BVX7IVMW.js.map +1 -0
  290. package/dist/upload-KH6ZABJA.js +56 -0
  291. package/dist/upload-KH6ZABJA.js.map +1 -0
  292. package/dist/use-7YDKO3U4.js +63 -0
  293. package/dist/use-7YDKO3U4.js.map +1 -0
  294. package/dist/value-RZBWSKKM.js +71 -0
  295. package/dist/value-RZBWSKKM.js.map +1 -0
  296. package/dist/visible-BSFTAKXR.js +71 -0
  297. package/dist/visible-BSFTAKXR.js.map +1 -0
  298. package/dist/wait-TMTEAYOP.js +109 -0
  299. package/dist/wait-TMTEAYOP.js.map +1 -0
  300. package/dist/windows-HIZ23OHS.js +37 -0
  301. package/dist/windows-HIZ23OHS.js.map +1 -0
  302. package/extension/dist/background.js +99 -22
  303. package/extension/dist/ops/ops-runtime.js +85 -7
  304. package/extension/dist/ops/ops-session-store.js +3 -0
  305. package/extension/dist/ops/target-session-coordinator.js +3 -0
  306. package/extension/dist/services/CDPRouter.js +9 -0
  307. package/extension/manifest.json +1 -1
  308. package/package.json +1 -1
  309. package/skills/opendevbrowser-best-practices/SKILL.md +8 -6
  310. package/skills/opendevbrowser-best-practices/artifacts/skill-runtime-surface-matrix.md +1 -1
  311. package/skills/opendevbrowser-best-practices/scripts/odb-workflow.sh +3 -2
  312. package/skills/opendevbrowser-best-practices/scripts/validator-fixture-cli.sh +39 -2
  313. package/skills/opendevbrowser-research/SKILL.md +64 -12
  314. package/skills/opendevbrowser-research/artifacts/research-workflows.md +56 -19
  315. package/skills/opendevbrowser-research/assets/templates/compact.md +31 -5
  316. package/skills/opendevbrowser-research/assets/templates/context.json +52 -1
  317. package/skills/opendevbrowser-research/assets/templates/report.md +57 -4
  318. package/skills/opendevbrowser-research/examples/sample-input.json +1 -1
  319. package/skills/opendevbrowser-research/examples/sample-output.md +27 -2
  320. package/skills/opendevbrowser-research/scripts/run-research.sh +2 -6
  321. package/skills/opendevbrowser-research/scripts/validate-skill-assets.sh +115 -1
  322. package/dist/chunk-I5ZCOZZV.js.map +0 -1
  323. package/dist/chunk-QVWOPIZJ.js.map +0 -1
  324. package/dist/chunk-T3VVHJTK.js.map +0 -1
  325. /package/dist/{providers-QF2RFB4J.js.map → chunk-RJNI3BHT.js.map} +0 -0
@@ -13,7 +13,10 @@ const MAX_NETWORK_EVENTS = 300;
13
13
  const SESSION_TTL_MS = 20_000;
14
14
  const SCREENSHOT_TIMEOUT_MS = 8000;
15
15
  const TAB_CLOSE_TIMEOUT_MS = 5000;
16
+ const OPS_SESSION_DETACH_TIMEOUT_MS = 3000;
16
17
  const POPUP_ATTACH_RETRY_DELAY_MS = 100;
18
+ const ROOT_DETACH_VERIFY_DELAY_MS = 250;
19
+ const ROOT_DETACH_VERIFY_ATTEMPTS = 4;
17
20
  const STALE_REF_ERROR_SUFFIX = "Take a new snapshot first.";
18
21
  const DOM_OUTER_HTML_DECLARATION = `
19
22
  function() {
@@ -305,6 +308,12 @@ export class OpsRuntime {
305
308
  });
306
309
  }
307
310
  }
311
+ handleRelayDisconnected() {
312
+ this.cdp.markClientClosed();
313
+ for (const session of this.sessions.list()) {
314
+ void this.cleanupSession(session, "ops_session_expired");
315
+ }
316
+ }
308
317
  handleHello(message) {
309
318
  if (message.version !== OPS_PROTOCOL_VERSION) {
310
319
  const error = {
@@ -2576,10 +2585,19 @@ export class OpsRuntime {
2576
2585
  await this.cdp.setDiscoverTargetsEnabled?.(true);
2577
2586
  }
2578
2587
  catch (error) {
2588
+ if (isAttachBlockedError(error)) {
2589
+ return;
2590
+ }
2579
2591
  logError("ops.discover_targets", error, {
2580
2592
  code: "discover_targets_enable_failed",
2581
2593
  extra: baseDetails
2582
2594
  });
2595
+ if (baseDetails.strict) {
2596
+ throw this.decorateCdpFailure(error, {
2597
+ ...baseDetails,
2598
+ enablementStage: "set_discover_targets"
2599
+ });
2600
+ }
2583
2601
  }
2584
2602
  }
2585
2603
  async enableTargetDomainsOnDebuggee(debuggee, baseDetails) {
@@ -4006,7 +4024,7 @@ export class OpsRuntime {
4006
4024
  }
4007
4025
  throw new Error("Wait for selector timed out");
4008
4026
  }
4009
- cleanupSession(session, event) {
4027
+ async cleanupSession(session, event) {
4010
4028
  this.clearClosingTimer(session.id);
4011
4029
  const waiters = this.parallelWaiters.get(session.id);
4012
4030
  if (waiters) {
@@ -4020,8 +4038,25 @@ export class OpsRuntime {
4020
4038
  this.parallelWaiters.delete(session.id);
4021
4039
  }
4022
4040
  this.sessions.delete(session.id);
4023
- for (const target of session.targets.values()) {
4024
- void this.cdp.detachTab(target.tabId).catch(() => undefined);
4041
+ const targets = Array.from(session.targets.values());
4042
+ try {
4043
+ const results = await withTimeout(Promise.allSettled(targets.map(async (target) => this.cdp.detachTab(target.tabId))), OPS_SESSION_DETACH_TIMEOUT_MS, "Ops session detach timed out");
4044
+ const failedTabIds = results.flatMap((result, index) => {
4045
+ const target = targets[index];
4046
+ return result.status === "rejected" && target ? [target.tabId] : [];
4047
+ });
4048
+ if (failedTabIds.length > 0) {
4049
+ logError("ops.session_detach", new Error("One or more ops session targets failed to detach"), {
4050
+ code: "session_detach_failed",
4051
+ extra: { sessionId: session.id, event, failedTabIds }
4052
+ });
4053
+ }
4054
+ }
4055
+ catch (error) {
4056
+ logError("ops.session_detach", error, {
4057
+ code: "session_detach_failed",
4058
+ extra: { sessionId: session.id, event }
4059
+ });
4025
4060
  }
4026
4061
  this.emitSessionEvent(session, event);
4027
4062
  }
@@ -4036,7 +4071,7 @@ export class OpsRuntime {
4036
4071
  if (!removedTarget)
4037
4072
  return;
4038
4073
  if (targetId === session.targetId || session.targets.size === 0) {
4039
- this.cleanupSession(session, event);
4074
+ void this.cleanupSession(session, event);
4040
4075
  }
4041
4076
  }
4042
4077
  async handleDebuggerDetachForTab(tabId) {
@@ -4044,7 +4079,8 @@ export class OpsRuntime {
4044
4079
  if (!session)
4045
4080
  return;
4046
4081
  if (tabId === session.tabId) {
4047
- // Root tab detach can be transient during child-target shutdown; tab removal handler owns root teardown.
4082
+ // Root tab detach can be transient during child-target shutdown, but it must not retain ownership forever.
4083
+ this.scheduleRootDebuggerDetachVerification(session.id, tabId);
4048
4084
  return;
4049
4085
  }
4050
4086
  const targetId = this.sessions.getTargetIdByTabId(session.id, tabId);
@@ -4064,6 +4100,48 @@ export class OpsRuntime {
4064
4100
  }
4065
4101
  this.handleClosedTarget(tabId, "ops_session_closed");
4066
4102
  }
4103
+ scheduleRootDebuggerDetachVerification(sessionId, tabId) {
4104
+ if (typeof this.cdp.getTabDebuggee !== "function") {
4105
+ return;
4106
+ }
4107
+ setTimeout(() => {
4108
+ void this.verifyRootDebuggerDetach(sessionId, tabId, ROOT_DETACH_VERIFY_ATTEMPTS);
4109
+ }, ROOT_DETACH_VERIFY_DELAY_MS);
4110
+ }
4111
+ async verifyRootDebuggerDetach(sessionId, tabId, attemptsRemaining) {
4112
+ const session = this.sessions.get(sessionId);
4113
+ if (!session || session.tabId !== tabId) {
4114
+ return;
4115
+ }
4116
+ if (this.isConcreteDebuggee(this.cdp.getTabDebuggee?.(tabId))) {
4117
+ return;
4118
+ }
4119
+ let liveTab = null;
4120
+ try {
4121
+ liveTab = await this.tabs.getTab(tabId);
4122
+ }
4123
+ catch {
4124
+ liveTab = null;
4125
+ }
4126
+ const current = this.sessions.get(sessionId);
4127
+ if (!current || current.tabId !== tabId) {
4128
+ return;
4129
+ }
4130
+ if (!liveTab) {
4131
+ void this.cleanupSession(current, "ops_session_closed");
4132
+ return;
4133
+ }
4134
+ if (this.isConcreteDebuggee(this.cdp.getTabDebuggee?.(tabId))) {
4135
+ return;
4136
+ }
4137
+ if (attemptsRemaining > 1) {
4138
+ setTimeout(() => {
4139
+ void this.verifyRootDebuggerDetach(sessionId, tabId, attemptsRemaining - 1);
4140
+ }, ROOT_DETACH_VERIFY_DELAY_MS);
4141
+ return;
4142
+ }
4143
+ void this.cleanupSession(current, "ops_session_closed");
4144
+ }
4067
4145
  async closeTabBestEffort(tabId) {
4068
4146
  try {
4069
4147
  await withTimeout(this.tabs.closeTab(tabId), TAB_CLOSE_TIMEOUT_MS, "Ops tab close timed out");
@@ -4081,7 +4159,7 @@ export class OpsRuntime {
4081
4159
  if (!session) {
4082
4160
  return;
4083
4161
  }
4084
- this.cleanupSession(session, event);
4162
+ void this.cleanupSession(session, event);
4085
4163
  }, 0);
4086
4164
  }
4087
4165
  sendResponse(message, payload) {
@@ -4159,7 +4237,7 @@ export class OpsRuntime {
4159
4237
  this.closingTimers.delete(session.id);
4160
4238
  const current = this.sessions.get(session.id);
4161
4239
  if (current && current.state === "closing") {
4162
- this.cleanupSession(current, "ops_session_expired");
4240
+ void this.cleanupSession(current, "ops_session_expired");
4163
4241
  }
4164
4242
  }, SESSION_TTL_MS);
4165
4243
  this.closingTimers.set(session.id, timeoutId);
@@ -75,6 +75,9 @@ export class OpsSessionStore {
75
75
  listOwnedBy(clientId) {
76
76
  return this.coordinator.listOwnedBy(clientId);
77
77
  }
78
+ list() {
79
+ return this.coordinator.list();
80
+ }
78
81
  delete(sessionId) {
79
82
  return this.coordinator.delete(sessionId);
80
83
  }
@@ -44,6 +44,9 @@ export class TargetSessionCoordinator {
44
44
  listOwnedBy(clientId) {
45
45
  return Array.from(this.sessions.values()).filter((session) => session.ownerClientId === clientId);
46
46
  }
47
+ list() {
48
+ return Array.from(this.sessions.values());
49
+ }
47
50
  delete(sessionId) {
48
51
  const session = this.sessions.get(sessionId) ?? null;
49
52
  if (!session) {
@@ -912,6 +912,9 @@ export class CDPRouter {
912
912
  return;
913
913
  }
914
914
  catch (error) {
915
+ if (this.isExpectedDebuggerCleanupError(error)) {
916
+ continue;
917
+ }
915
918
  logError("cdp.restore_root_attach", error, {
916
919
  code: "restore_root_attach_failed",
917
920
  extra: { tabId }
@@ -2021,6 +2024,9 @@ export class CDPRouter {
2021
2024
  const message = error instanceof Error ? error.message : String(error);
2022
2025
  return STALE_TAB_ERROR_MARKERS.some((marker) => message.includes(marker));
2023
2026
  }
2027
+ isExpectedDebuggerCleanupError(error) {
2028
+ return this.isStaleTabError(error);
2029
+ }
2024
2030
  markExpectedRootDetach(tabId) {
2025
2031
  this.expectedRootDetachDeadlines.set(tabId, Date.now() + 1000);
2026
2032
  }
@@ -2074,6 +2080,9 @@ export class CDPRouter {
2074
2080
  });
2075
2081
  }
2076
2082
  catch (error) {
2083
+ if (this.isExpectedDebuggerCleanupError(error)) {
2084
+ return;
2085
+ }
2077
2086
  logError("cdp.safe_detach", error, { code: "detach_failed" });
2078
2087
  }
2079
2088
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "OpenDevBrowser Relay",
4
- "version": "0.0.28",
4
+ "version": "0.0.30",
5
5
  "description": "Optional bridge to reuse existing Chrome tabs with OpenDevBrowser.",
6
6
  "permissions": [
7
7
  "debugger",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opendevbrowser",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "description": "Browser automation runtime with snapshot-refs-actions, browser replay screencasts, public read-only desktop observation, and browser-scoped computer-use orchestration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -100,7 +100,7 @@ Load this section directly with:
100
100
  opendevbrowser_skill_load opendevbrowser-best-practices "validated capability lanes"
101
101
  ```
102
102
 
103
- Current reliable lanes:
103
+ Current validated lanes:
104
104
 
105
105
  1. Public-first YouTube transcript retrieval.
106
106
 
@@ -113,16 +113,18 @@ Rules:
113
113
  - browser-assisted transcript fallback is opt-in only
114
114
  - if browser fallback is enabled, use an isolated automation profile instead of a daily logged-in Google profile
115
115
 
116
- 2. Generic topical research without shopping contamination.
116
+ 2. Evidence-gated research primitive with explicit public source families.
117
117
 
118
118
  ```bash
119
- npx opendevbrowser research run --topic "Chrome extension debugging workflows" --days 30 --source-selection auto --browser-mode managed --mode json --output-format json
119
+ npx opendevbrowser research run --topic "Chrome extension debugging workflows" --days 30 --sources web,community --browser-mode managed --mode json --output-format json
120
120
  ```
121
121
 
122
122
  Rules:
123
- - use `--source-selection auto` for general research
124
- - use `--source-selection shopping` or explicit `--sources ...shopping...` only when the task is deliberately commercial
125
- - in the current contract, `auto` and `all` both resolve to `web`, `community`, and `social`
123
+ - load `opendevbrowser-research` before research tasks so planning, evidence review, confidence, and limitations stay skill-guided
124
+ - treat `research run` as provider-constrained and low-level; inspect `summary.md`, `report.md`, `records.json`, `context.json`, `meta.json`, and `bundle-manifest.json` before publishing claims
125
+ - use `--source-selection` only to explain selector semantics; use explicit `--sources web,community` for public topical examples
126
+ - add shopping only with `--source-selection shopping` or explicit `--sources ...shopping...` when the task is deliberately commercial
127
+ - in the current contract, `auto` and `all` both resolve to `web`, `community`, and `social`, but neither value guarantees reliability
126
128
 
127
129
  3. Deterministic shopping reruns with explicit providers.
128
130
 
@@ -13,7 +13,7 @@ Canonical inventory of repo-local OpenDevBrowser skill packs and the audit evide
13
13
  | `opendevbrowser-form-testing` | `workflow` | `./skills/opendevbrowser-form-testing/scripts/validate-skill-assets.sh` | snapshot -> type/click -> validation loop, multi-step forms, challenge checkpoints, network correlation | `node scripts/cli-smoke-test.mjs` plus `node scripts/login-fixture-live-probe.mjs` for invalid-submit, MFA, and persistence branches | extension unavailable at start if extension mode is audited separately |
14
14
  | `opendevbrowser-login-automation` | `workflow` | `./skills/opendevbrowser-login-automation/scripts/validate-skill-assets.sh` | login branching, invalid credential handling, MFA step-up, session validation | `node scripts/login-fixture-live-probe.mjs` | none; proof lane is repo-local |
15
15
  | `opendevbrowser-product-presentation-asset` | `workflow` | `./skills/opendevbrowser-product-presentation-asset/scripts/validate-skill-assets.sh` | `product-video run`, asset-pack assembly, screenshots, evidence mapping | `node scripts/product-video-fixture-live-probe.mjs` | none; proof lane is repo-local |
16
- | `opendevbrowser-research` | `workflow` | `./skills/opendevbrowser-research/scripts/validate-skill-assets.sh` | `research run`, timebox resolution, multi-source artifact generation | `opendevbrowser research run --topic "<topic>" --source-selection auto --mode json` via `scripts/skill-runtime-audit.mjs` | auth walls, rate limits, upstream source failure |
16
+ | `opendevbrowser-research` | `workflow` | `./skills/opendevbrowser-research/scripts/validate-skill-assets.sh` | `research run`, timebox resolution, multi-source artifact generation | `opendevbrowser research run --topic "<topic>" --sources web,community --mode json` via `scripts/skill-runtime-audit.mjs` | auth walls, rate limits, upstream source failure |
17
17
  | `opendevbrowser-shopping` | `workflow` | `./skills/opendevbrowser-shopping/scripts/validate-skill-assets.sh` | `shopping run`, offer normalization, market analysis, direct provider workflows | `node scripts/provider-direct-runs.mjs` | auth walls, anti-bot challenges, rate limits, upstream outage |
18
18
 
19
19
  ## Shared runtime families
@@ -188,8 +188,9 @@ EOF
188
188
  # Public-first YouTube transcript probe
189
189
  node $TRANSCRIPT_PROBE_PATH --url "https://www.youtube.com/watch?v=aircAruvnKk" --youtube-mode auto --out artifacts/capability-fix/youtube-transcript-auto.json
190
190
 
191
- # Generic topical research without shopping contamination
192
- $CLI_PREFIX research run --topic "Chrome extension debugging workflows" --days 30 --source-selection auto --mode json --output-format json
191
+ # Evidence-gated research primitive with explicit public source families
192
+ # Load opendevbrowser-research first, then inspect records.json, context.json, meta.json, and report.md before publishing claims.
193
+ $CLI_PREFIX research run --topic "Chrome extension debugging workflows" --days 30 --sources web,community --mode json --output-format json
193
194
 
194
195
  # Deterministic shopping reruns with explicit providers
195
196
  $CLI_PREFIX shopping run --query "wireless ergonomic mouse" --providers shopping/bestbuy,shopping/ebay --budget 150 --browser-mode managed --mode json --output-format json
@@ -118,7 +118,29 @@ if (domain === "research" && command === "run") {
118
118
  );
119
119
  fs.writeFileSync(
120
120
  path.join(bundleDir, "report.md"),
121
- `# Research Report\n\n- Topic: ${topic}\n- Days: ${days}\n- Source selection: ${sourceSelection}\n- Sources: ${sources}\n`
121
+ [
122
+ "# Research Report",
123
+ "",
124
+ `- Topic: ${topic}`,
125
+ `- Days: ${days}`,
126
+ `- Source selection: ${sourceSelection}`,
127
+ `- Sources: ${sources}`,
128
+ "",
129
+ "## Search Direction",
130
+ "Fixture provider pass suggested destination follow-up.",
131
+ "",
132
+ "## Candidate Triage",
133
+ "Accepted fixture destination and rejected shell candidates.",
134
+ "",
135
+ "## Rejected Candidates",
136
+ "Rejected privacy, login, and search shell examples.",
137
+ "",
138
+ "## Deep Dives",
139
+ "Opened the fixture destination page.",
140
+ "",
141
+ "## Synthesis Feedback",
142
+ "Remaining gap is independent corroboration."
143
+ ].join("\n")
122
144
  );
123
145
  fs.writeFileSync(
124
146
  path.join(bundleDir, "compact.md"),
@@ -148,7 +170,22 @@ if (domain === "research" && command === "run") {
148
170
  `- Days: ${days}`,
149
171
  `- Source selection: ${sourceSelection}`,
150
172
  `- Sources: ${sources}`,
151
- "- Finding: ISSUE-09 pagination/result drift across sources"
173
+ "- Finding: ISSUE-09 pagination/result drift across sources",
174
+ "",
175
+ "## Search Direction",
176
+ "Fixture provider pass suggested destination follow-up.",
177
+ "",
178
+ "## Candidate Triage",
179
+ "Accepted fixture destination and rejected shell candidates.",
180
+ "",
181
+ "## Rejected Candidates",
182
+ "Rejected privacy, login, and search shell examples.",
183
+ "",
184
+ "## Deep Dives",
185
+ "Opened the fixture destination page.",
186
+ "",
187
+ "## Synthesis Feedback",
188
+ "Remaining gap is independent corroboration."
152
189
  ]);
153
190
  process.exit(0);
154
191
  }
@@ -1,12 +1,14 @@
1
1
  ---
2
2
  name: opendevbrowser-research
3
- description: Deterministic multi-source research workflow with strict timebox and artifact outputs.
3
+ description: Skill-guided, evidence-gated research workflow for provider-constrained public source gathering and auditable artifact review.
4
4
  version: 2.1.0
5
5
  ---
6
6
 
7
7
  # Research Skill
8
8
 
9
- Use this skill when you need benchmark-style research across public `web|community|social` sources by default, with explicit shopping opt-in only for commercial comparison tasks.
9
+ Load this skill before research tasks. Use it to plan source families, gather provider-constrained evidence, review artifacts, and publish only claims that survive the evidence gate.
10
+
11
+ `opendevbrowser research run` is a low-level, best-effort primitive. It can collect and render provider results, but the skill owns source planning, blocker review, confidence, limitations, and final synthesis.
10
12
 
11
13
  ## Pack Contents
12
14
 
@@ -24,7 +26,7 @@ Use this skill when you need benchmark-style research across public `web|communi
24
26
 
25
27
  ```bash
26
28
  ./skills/opendevbrowser-research/scripts/validate-skill-assets.sh
27
- ./skills/opendevbrowser-research/scripts/run-research.sh "browser automation" 30 context
29
+ ./skills/opendevbrowser-research/scripts/run-research.sh "browser automation" 30 context "web,community"
28
30
  ./skills/opendevbrowser-research/scripts/render-output.sh "browser automation" compact
29
31
  ```
30
32
 
@@ -37,11 +39,59 @@ Use this skill when you need benchmark-style research across public `web|communi
37
39
  ## Core Rules
38
40
 
39
41
  - Define timebox first (`--days` or `--from/--to`).
40
- - Prefer explicit sources for high-stakes claims.
42
+ - Choose explicit source families before invoking the CLI primitive: `web`, `community`, `social`, `shopping`, or a deliberate combination such as `web,community`.
43
+ - Treat `auto` as a source-family selector, not a reliability guarantee.
41
44
  - Persist artifacts and return reproducible paths.
42
- - Mark unsupported claims as tentative; do not overstate certainty.
45
+ - Mark unsupported claims as tentative or exclude them from the final answer.
43
46
  - Honor bounded retries and backoff windows under 429 pressure.
44
47
 
48
+ ## Evidence Gate
49
+
50
+ Review artifacts before publishing claims. A successful command exit or rendered report is not enough.
51
+
52
+ Preserved artifact files:
53
+
54
+ - `summary.md`
55
+ - `report.md`
56
+ - `records.json`
57
+ - `context.json`
58
+ - `meta.json`
59
+ - `bundle-manifest.json`
60
+
61
+ Required review:
62
+
63
+ 1. Read `records.json` for fetched source records, timestamps, providers, extraction quality, and blockers.
64
+ 2. Read `context.json` for source ledger, evidence gaps, unsupported claims, staleness checks, and search-engine provenance when used.
65
+ 3. Read `meta.json` for provider limits, warnings, no-evidence failures, cookie diagnostics, challenge/auth/token failures, and artifact generation details.
66
+ 4. When gated providers such as Reddit block evidence, rerun with user-authorized recovery only after candidate triage has exhausted relevant public destination pages: `--browser-mode extension` for an existing signed-in relay session, `--use-cookies` only when legitimate cookies are available, and `--challenge-automation-mode browser_with_helper` for browser-scoped assistance.
67
+ 5. Use `report.md` and `summary.md` only after confirming claims map back to accepted evidence.
68
+ 6. Do not use shell-only, stale-only, login-only, not-found-only, or zero-source-evidence runs to support final claims.
69
+
70
+ ## Guided Research Loop
71
+
72
+ Research is iterative. Do not stop at the first provider page or SERP shell.
73
+
74
+ 1. Start with provider or search-engine direction: query, capture candidate URLs, rank, title, and blocker notes.
75
+ 2. Reject navigation dead ends before treating them as evidence: login routes, privacy or cookie preference pages, consent gates, search result shells, not-found pages, and JavaScript-only shells.
76
+ 3. Open destination pages from the candidate set, not account, privacy, cookie, or login links. For Reddit, prefer concrete `/r/.../comments/...` result URLs over `/login`, `/search`, `/account`, `/submit`, or root navigation.
77
+ 4. If a destination is blocked, record the blocker and choose the next candidate from the same result set before escalating to cookies or an authenticated browser.
78
+ 5. Escalate to `--browser-mode extension`, `--use-cookies`, or `--challenge-automation-mode browser_with_helper` only when the selected evidence page itself needs authorized browser recovery and the user has legitimate access.
79
+ 6. Continue until you have enough accepted destination evidence for the claims, or every relevant candidate is blocked, stale, irrelevant, or unsupported.
80
+ 7. Synthesize only after the loop produces accepted evidence. If no destination evidence survives, return limitations and next-step options instead of a research answer.
81
+
82
+ ## Search Engine Discovery Lane
83
+
84
+ This lane is optional, skill-guided, provider-constrained, and discovery-only. It can improve breadth, but it is not a reliable default and does not replace `opendevbrowser research run` or the evidence gate.
85
+
86
+ 1. Choose up to five engines based on topic and availability. Candidate set: Google, Bing, Brave, DuckDuckGo or Yahoo for overlap checks, Yandex for regional or index diversity, Baidu for China-specific topics, and Kagi only when the user has account access.
87
+ 2. Record engine choice rationale, query variants, region and language assumptions, auth or cookie needs, and blockers.
88
+ 3. Collect up to 10 result URLs per selected engine. Preserve engine, query, rank, URL, title if available, and retrieval notes.
89
+ 4. Dedupe canonical URLs, then select the strongest 5 to 10 destination pages for extraction.
90
+ 5. Extract selected destination pages through OpenDevBrowser browsing primitives when useful, including DOM interaction and screenshots. Use cookies or authenticated browsing only after destination-candidate triage shows the selected evidence page itself requires authorized access.
91
+ 6. Do not violate robots restrictions, login walls, consent gates, CAPTCHAs, rate limits, anti-bot controls, or access controls. Stand down and record limitations instead.
92
+ 7. Keep SERPs discovery-only. SERP snippets, result pages, shells, and blocked pages cannot be final evidence.
93
+ 8. Final claims must cite destination pages or other fetched evidence that survived review.
94
+
45
95
  ## Parallel Multitab Alignment
46
96
 
47
97
  - Apply shared concurrency policy from `../opendevbrowser-best-practices/SKILL.md` ("Parallel Operations").
@@ -60,22 +110,24 @@ Matrix source: `../opendevbrowser-best-practices/artifacts/browser-agent-known-i
60
110
  ## Workflow
61
111
 
62
112
  1. Resolve timebox (`days` or `from/to`).
63
- 2. Choose sources (`auto|web|community|social|shopping|all`).
64
- 3. Run `opendevbrowser research run`.
65
- 4. Return requested mode output and artifact path.
113
+ 2. Choose explicit source families and document why they fit the topic.
114
+ 3. Optionally run the search-engine discovery lane to find destination candidates.
115
+ 4. Run `opendevbrowser research run` as a low-level best-effort primitive.
116
+ 5. Review `records.json`, `context.json`, and `meta.json` before trusting `report.md`.
117
+ 6. If `meta.json` shows auth, token, challenge, or cookie-gated providers, make the next run skill-first only after the candidate queue has no relevant public destination evidence left: use the existing signed-in browser session when authorized, cookies only when legitimate cookies are available, and browser-scoped challenge assistance only for that browser session.
118
+ 7. Return final claims only when they are supported by accepted evidence.
66
119
 
67
120
  ## Commands
68
121
 
69
122
  ```bash
70
- opendevbrowser research run --topic "<topic>" --days 30 --source-selection auto --mode context
71
- opendevbrowser research run --topic "<topic>" --source-selection auto --mode json
123
+ opendevbrowser research run --topic "<topic>" --days 30 --sources web,community --mode context
124
+ opendevbrowser research run --topic "<topic>" --sources web --mode json
72
125
  opendevbrowser research run --topic "<topic>" --sources web,shopping --mode md
73
126
  ```
74
127
 
75
128
  ## Notes
76
129
 
77
- - `auto` is the recommended default for topical research.
78
- - In the current contract, both `auto` and `all` resolve to `web|community|social`.
130
+ - `auto` and `all` are selector values in the current source-family contract, not promises of reliable coverage.
79
131
  - Use `--source-selection shopping` or explicit `--sources ...shopping...` to include shopping only when commercial intent is explicit.
80
132
  - Use `--mode path` with `scripts/write-artifacts.sh` when you need replayable handoff bundles.
81
133
  - For browser-backed release proof and mode sweeps, follow the canonical direct-run evidence policy in `../opendevbrowser-best-practices/SKILL.md`.
@@ -1,29 +1,66 @@
1
1
  # Research Workflows
2
2
 
3
- ## Deterministic baseline workflow
3
+ Use these workflows to plan evidence first, run provider-constrained collection second, and publish only claims that pass review.
4
4
 
5
- 1. Define topic and strict time window
6
- 2. Resolve source selection (`auto|all|explicit`)
7
- 3. Run research workflow command
8
- 4. Persist context/report artifacts
9
- 5. Validate source diversity and freshness
5
+ ## Evidence-gated baseline workflow
10
6
 
11
- ## Cross-source corroboration workflow
7
+ 1. Define topic, scope, and strict time window.
8
+ 2. Choose explicit source families before invoking the CLI primitive. Prefer `--sources web,community` for broad public research when both destination pages and community corroboration are useful.
9
+ 3. Record why each source family is in scope and which families are intentionally excluded.
10
+ 4. Run `opendevbrowser research run` as a low-level best-effort primitive.
11
+ 5. Inspect candidates and follow useful destination pages before synthesis. Never treat account, privacy, cookie, login, consent, search shell, not-found, or JavaScript shell pages as final evidence.
12
+ 6. If a selected destination is blocked, record the blocker and continue to the next relevant candidate before escalating to cookies or authenticated browser recovery.
13
+ 7. Persist `summary.md`, `report.md`, `records.json`, `context.json`, `meta.json`, and `bundle-manifest.json`.
14
+ 8. Review `records.json`, `context.json`, and `meta.json` before using `report.md`.
15
+ 9. If the selected evidence page itself proves auth, token, challenge, or cookie gating after public candidate triage, rerun through user-authorized browser recovery only after relevant public destination pages are exhausted: `--browser-mode extension` for an existing signed-in relay session, `--use-cookies` only when legitimate cookies are available, and `--challenge-automation-mode browser_with_helper` for browser-scoped assistance.
16
+ 10. Publish supported claims, mark weak claims as tentative, and exclude unsupported claims.
12
17
 
13
- 1. Identify claims from first-pass output
14
- 2. Require at least two independent source records for critical claims
15
- 3. Mark unsupported claims as tentative
16
- 4. Escalate when corroboration is missing
18
+ ## Iterative destination-follow workflow
17
19
 
18
- ## Backoff/retry workflow
20
+ Use this when the first pass returns shells, login pages, privacy/cookie pages, or search result pages.
19
21
 
20
- 1. Detect repeated 429/upstream throttling
21
- 2. Honor retry windows and bounded retries
22
- 3. Resume from persisted context artifact
23
- 4. Report partial coverage when limits persist
22
+ 1. Build a candidate queue from provider output or search-engine discovery: URL, rank, source family, title, and blocker notes.
23
+ 2. Remove dead-end routes from the queue: `/login`, `/account`, `/submit`, privacy preference pages, cookie preference pages, search result pages, consent-only pages, static assets, and not-found URLs.
24
+ 3. Open the highest-value remaining destination page with OpenDevBrowser.
25
+ 4. Extract text, source URL, title, timestamp, and visible limitations.
26
+ 5. If extraction returns a shell or blocker, mark that candidate rejected and continue with the next candidate.
27
+ 6. If extraction succeeds, add it to the claim map and decide whether more evidence is needed for corroboration.
28
+ 7. Stop only when accepted evidence is sufficient or every relevant candidate has a recorded rejection reason.
29
+
30
+ ## Claim-to-source review workflow
31
+
32
+ 1. Extract the claims that the final answer would make.
33
+ 2. Map each claim to accepted destination evidence in `records.json`.
34
+ 3. Check source date, fetch date, provider, extraction quality, and source independence.
35
+ 4. Require corroboration for critical claims when the topic allows it.
36
+ 5. Record evidence gaps, stale pages, login walls, challenge pages, rate limits, and extraction limits.
37
+ 6. Do not use shell-only, stale-only, login-only, not-found-only, or zero-source-evidence runs as final support.
38
+
39
+ ## Search Engine Discovery Lane
40
+
41
+ This optional lane is skill-guided, provider-constrained, and discovery-only. It is for richer candidate discovery, not for runtime source-family expansion.
42
+
43
+ 1. Choose up to five engines based on topic and availability: Google, Bing, Brave, DuckDuckGo or Yahoo, Yandex, Baidu, and Kagi only with user account access.
44
+ 2. Record search_engine_passes with engine, query, region, language, rationale, cookie or auth needs, and blockers.
45
+ 3. Collect up to 10 SERP candidate URLs per engine with engine, query, rank, URL, title if available, and retrieval notes.
46
+ 4. Dedupe canonical URLs across engines.
47
+ 5. Select the strongest 5 to 10 destination pages for extraction.
48
+ 6. Fetch selected destination pages with OpenDevBrowser browsing primitives when useful, including DOM interaction and screenshots. Use cookies or authenticated browsing only after destination-candidate triage shows the selected evidence page itself requires legitimate user-authorized access.
49
+ 7. Stand down on robots restrictions, login walls, consent gates, CAPTCHAs, rate limits, anti-bot controls, and access controls. Record the limitation instead.
50
+ 8. Keep SERPs discovery-only. SERP snippets, search result pages, shells, and blocked pages cannot be final evidence.
51
+ 9. Cite destination-page evidence or other fetched evidence that passed review.
52
+
53
+ ## Backoff and blocker workflow
54
+
55
+ 1. Detect repeated 429 responses, provider throttling, challenge pages, login walls, token gates, consent gates, cookie diagnostics, or extraction failures.
56
+ 2. Honor retry windows and bounded retries.
57
+ 3. For gated providers such as Reddit, prefer a skill-first recovery rerun with an existing signed-in relay session, legitimate cookies only when available, and browser-scoped challenge assistance only after concrete result URLs from the candidate queue have been attempted or rejected with reasons.
58
+ 4. Resume from persisted artifacts only when the next run can add evidence without violating controls.
59
+ 5. Report partial coverage, provider constraints, and skipped lanes when limits persist.
24
60
 
25
61
  ## Compact handoff workflow
26
62
 
27
- 1. Produce compact summary with key findings
28
- 2. Include unresolved risks and missing evidence
29
- 3. Attach artifact paths for replay
63
+ 1. Produce a compact summary with accepted claims only.
64
+ 2. Include evidence gaps, provider constraints, and limitations.
65
+ 3. Attach artifact paths for replay and review.
66
+ 4. Name unsupported claims that were excluded or left tentative.
@@ -1,7 +1,33 @@
1
1
  # Compact Research Template
2
2
 
3
- - Top findings:
4
- - Source diversity:
5
- - Key risks:
6
- - Rate-limit/backoff notes:
7
- - Open evidence gaps:
3
+ - Topic and timebox:
4
+ - Source families used:
5
+ - Evidence-gated status:
6
+ - Accepted claims:
7
+ - Tentative or excluded claims:
8
+ - Evidence gaps:
9
+ - Provider constraints:
10
+ - Staleness checks:
11
+ - Search engine discovery, if used:
12
+ - direction from providers/search:
13
+ - candidate_triage:
14
+ - rejected_candidates:
15
+ - rejected privacy/login/shell pages:
16
+ - replacement destination followed:
17
+ - remaining candidate queue:
18
+ - deep-dive pages:
19
+ - next query or evidence gap:
20
+ - search_engine_passes:
21
+ - serp_candidates reviewed:
22
+ - selected_destination_pages:
23
+ - engine_failures:
24
+ - provenance:
25
+ - synthesis_feedback:
26
+ - Limitations:
27
+ - Artifact paths:
28
+ - summary.md:
29
+ - report.md:
30
+ - records.json:
31
+ - context.json:
32
+ - meta.json:
33
+ - bundle-manifest.json: