fsq-agent 0.1.0__tar.gz

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 (288) hide show
  1. fsq_agent-0.1.0/.gitignore +39 -0
  2. fsq_agent-0.1.0/CHANGELOG.md +30 -0
  3. fsq_agent-0.1.0/LICENSE +21 -0
  4. fsq_agent-0.1.0/PKG-INFO +272 -0
  5. fsq_agent-0.1.0/README.md +230 -0
  6. fsq_agent-0.1.0/README.zh-CN.md +166 -0
  7. fsq_agent-0.1.0/config.android.yaml +31 -0
  8. fsq_agent-0.1.0/config.macos.yaml +33 -0
  9. fsq_agent-0.1.0/config.web.yaml +32 -0
  10. fsq_agent-0.1.0/config.windows.yaml +30 -0
  11. fsq_agent-0.1.0/docs/assets/fsq-workflow.svg +25 -0
  12. fsq_agent-0.1.0/docs/assets/social-preview.png +0 -0
  13. fsq_agent-0.1.0/docs/assets/social-preview.svg +7 -0
  14. fsq_agent-0.1.0/docs/case-format.md +28 -0
  15. fsq_agent-0.1.0/docs/cli-reference.md +29 -0
  16. fsq_agent-0.1.0/docs/demo.html +119 -0
  17. fsq_agent-0.1.0/docs/getting-started.md +89 -0
  18. fsq_agent-0.1.0/docs/getting-started.zh-CN.md +89 -0
  19. fsq_agent-0.1.0/docs/media/01-describe-goal.png +0 -0
  20. fsq_agent-0.1.0/docs/media/02-execute-workflow.png +0 -0
  21. fsq_agent-0.1.0/docs/media/03-capture-evidence.png +0 -0
  22. fsq_agent-0.1.0/docs/media/04-generate-candidate.png +0 -0
  23. fsq_agent-0.1.0/docs/media/05-inspect-run.png +0 -0
  24. fsq_agent-0.1.0/docs/media/README.md +21 -0
  25. fsq_agent-0.1.0/docs/media/demo-storyboard.md +52 -0
  26. fsq_agent-0.1.0/docs/media/demo.en.srt +27 -0
  27. fsq_agent-0.1.0/docs/media/demo.zh-CN.srt +27 -0
  28. fsq_agent-0.1.0/docs/media/fsq-v0.1.0-android-demo-preview.gif +0 -0
  29. fsq_agent-0.1.0/docs/media/fsq-v0.1.0-demo-thumbnail.png +0 -0
  30. fsq_agent-0.1.0/docs/media/media-acceptance.md +47 -0
  31. fsq_agent-0.1.0/docs/platform-prerequisites.md +21 -0
  32. fsq_agent-0.1.0/docs/releases/v0.1.0-github-release.md +78 -0
  33. fsq_agent-0.1.0/docs/releases/v0.1.0.md +72 -0
  34. fsq_agent-0.1.0/docs/support-and-stability.md +23 -0
  35. fsq_agent-0.1.0/examples/web/example-domain.fsq.yaml +91 -0
  36. fsq_agent-0.1.0/fsq_agent/__init__.py +7 -0
  37. fsq_agent-0.1.0/fsq_agent/_capability_bootstrap.py +72 -0
  38. fsq_agent-0.1.0/fsq_agent/_workspace_paths.py +34 -0
  39. fsq_agent-0.1.0/fsq_agent/adapters/SPEC.md +48 -0
  40. fsq_agent-0.1.0/fsq_agent/adapters/__init__.py +4 -0
  41. fsq_agent-0.1.0/fsq_agent/adapters/cli/__init__.py +6 -0
  42. fsq_agent-0.1.0/fsq_agent/adapters/cli/_android_devices.py +63 -0
  43. fsq_agent-0.1.0/fsq_agent/adapters/cli/_capability_bootstrap.py +18 -0
  44. fsq_agent-0.1.0/fsq_agent/adapters/cli/_case_lifecycle.py +584 -0
  45. fsq_agent-0.1.0/fsq_agent/adapters/cli/_composition.py +14 -0
  46. fsq_agent-0.1.0/fsq_agent/adapters/cli/_core_execution.py +10 -0
  47. fsq_agent-0.1.0/fsq_agent/adapters/cli/_env_file.py +73 -0
  48. fsq_agent-0.1.0/fsq_agent/adapters/cli/_formatting.py +404 -0
  49. fsq_agent-0.1.0/fsq_agent/adapters/cli/_llm_setup.py +114 -0
  50. fsq_agent-0.1.0/fsq_agent/adapters/cli/_logging.py +22 -0
  51. fsq_agent-0.1.0/fsq_agent/adapters/cli/_main.py +600 -0
  52. fsq_agent-0.1.0/fsq_agent/adapters/cli/_strict_replay.py +82 -0
  53. fsq_agent-0.1.0/fsq_agent/adapters/cli/_task_loader.py +48 -0
  54. fsq_agent-0.1.0/fsq_agent/adapters/coding_agent/SPEC.md +51 -0
  55. fsq_agent-0.1.0/fsq_agent/adapters/coding_agent/__init__.py +35 -0
  56. fsq_agent-0.1.0/fsq_agent/adapters/coding_agent/_harness_tools.py +264 -0
  57. fsq_agent-0.1.0/fsq_agent/adapters/coding_agent/_openai_runtime.py +1249 -0
  58. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/__init__.py +6 -0
  59. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/_cases.py +119 -0
  60. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/_config.py +131 -0
  61. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/_directory_picker.py +234 -0
  62. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/_evidence.py +522 -0
  63. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/_execution.py +499 -0
  64. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/_provider_auth.py +320 -0
  65. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/_readiness.py +108 -0
  66. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/_replay.py +182 -0
  67. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/_server.py +822 -0
  68. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/_state.py +320 -0
  69. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/_targets.py +152 -0
  70. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/_workspace_files.py +190 -0
  71. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/_workspaces.py +336 -0
  72. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/static/assets/controlPlane-CKe1qvza.js +36 -0
  73. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/static/assets/controlPlane-DUaxY_9c.css +1 -0
  74. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/static/control-plane/index.html +15 -0
  75. fsq_agent-0.1.0/fsq_agent/adapters/control_plane/static/entry-assets.json +7 -0
  76. fsq_agent-0.1.0/fsq_agent/agent/SPEC.md +160 -0
  77. fsq_agent-0.1.0/fsq_agent/agent/__init__.py +10 -0
  78. fsq_agent-0.1.0/fsq_agent/agent/_core.py +284 -0
  79. fsq_agent-0.1.0/fsq_agent/agent/_events.py +24 -0
  80. fsq_agent-0.1.0/fsq_agent/agent/_policy.py +60 -0
  81. fsq_agent-0.1.0/fsq_agent/agent/_pre_plan.py +129 -0
  82. fsq_agent-0.1.0/fsq_agent/agent/_prompt.py +125 -0
  83. fsq_agent-0.1.0/fsq_agent/agent/_readiness.py +40 -0
  84. fsq_agent-0.1.0/fsq_agent/agent/_runtime.py +33 -0
  85. fsq_agent-0.1.0/fsq_agent/agent/_structured_output.py +57 -0
  86. fsq_agent-0.1.0/fsq_agent/agent/_verification_task.py +199 -0
  87. fsq_agent-0.1.0/fsq_agent/agent/_verifier.py +103 -0
  88. fsq_agent-0.1.0/fsq_agent/agent/templates/agent_instructions.j2 +30 -0
  89. fsq_agent-0.1.0/fsq_agent/agent/templates/task_input.j2 +18 -0
  90. fsq_agent-0.1.0/fsq_agent/application/SPEC.md +118 -0
  91. fsq_agent-0.1.0/fsq_agent/application/__init__.py +118 -0
  92. fsq_agent-0.1.0/fsq_agent/application/_case.py +6 -0
  93. fsq_agent-0.1.0/fsq_agent/application/_case_test.py +340 -0
  94. fsq_agent-0.1.0/fsq_agent/application/_contracts.py +4 -0
  95. fsq_agent-0.1.0/fsq_agent/application/_errors.py +44 -0
  96. fsq_agent-0.1.0/fsq_agent/application/_provider.py +6 -0
  97. fsq_agent-0.1.0/fsq_agent/application/_queries.py +8 -0
  98. fsq_agent-0.1.0/fsq_agent/application/_workspace.py +6 -0
  99. fsq_agent-0.1.0/fsq_agent/application/_workspace_init.py +203 -0
  100. fsq_agent-0.1.0/fsq_agent/application/cases.py +110 -0
  101. fsq_agent-0.1.0/fsq_agent/application/contracts/__init__.py +73 -0
  102. fsq_agent-0.1.0/fsq_agent/application/contracts/cases.py +48 -0
  103. fsq_agent-0.1.0/fsq_agent/application/contracts/doctor.py +65 -0
  104. fsq_agent-0.1.0/fsq_agent/application/contracts/environments.py +11 -0
  105. fsq_agent-0.1.0/fsq_agent/application/contracts/providers.py +25 -0
  106. fsq_agent-0.1.0/fsq_agent/application/contracts/runs.py +133 -0
  107. fsq_agent-0.1.0/fsq_agent/application/contracts/shared.py +66 -0
  108. fsq_agent-0.1.0/fsq_agent/application/contracts/workspace.py +45 -0
  109. fsq_agent-0.1.0/fsq_agent/application/doctor.py +191 -0
  110. fsq_agent-0.1.0/fsq_agent/application/environments.py +25 -0
  111. fsq_agent-0.1.0/fsq_agent/application/providers.py +76 -0
  112. fsq_agent-0.1.0/fsq_agent/application/runs.py +307 -0
  113. fsq_agent-0.1.0/fsq_agent/application/workspace.py +93 -0
  114. fsq_agent-0.1.0/fsq_agent/capabilities/SPEC.md +97 -0
  115. fsq_agent-0.1.0/fsq_agent/capabilities/__init__.py +14 -0
  116. fsq_agent-0.1.0/fsq_agent/capabilities/_catalog.py +27 -0
  117. fsq_agent-0.1.0/fsq_agent/capabilities/_decorators.py +301 -0
  118. fsq_agent-0.1.0/fsq_agent/capabilities/_discovery.py +80 -0
  119. fsq_agent-0.1.0/fsq_agent/case_dsl/SPEC.md +42 -0
  120. fsq_agent-0.1.0/fsq_agent/case_dsl/__init__.py +7 -0
  121. fsq_agent-0.1.0/fsq_agent/case_dsl/_loader.py +77 -0
  122. fsq_agent-0.1.0/fsq_agent/case_dsl/_step_adapter.py +128 -0
  123. fsq_agent-0.1.0/fsq_agent/cli/SPEC.md +153 -0
  124. fsq_agent-0.1.0/fsq_agent/cli/__init__.py +6 -0
  125. fsq_agent-0.1.0/fsq_agent/cli/__main__.py +7 -0
  126. fsq_agent-0.1.0/fsq_agent/config/SPEC.md +160 -0
  127. fsq_agent-0.1.0/fsq_agent/config/__init__.py +78 -0
  128. fsq_agent-0.1.0/fsq_agent/config/_loader.py +445 -0
  129. fsq_agent-0.1.0/fsq_agent/config/_paths.py +86 -0
  130. fsq_agent-0.1.0/fsq_agent/config/_settings.py +51 -0
  131. fsq_agent-0.1.0/fsq_agent/config/_user_provider.py +484 -0
  132. fsq_agent-0.1.0/fsq_agent/config/_workspace.py +504 -0
  133. fsq_agent-0.1.0/fsq_agent/control_plane/SPEC.md +186 -0
  134. fsq_agent-0.1.0/fsq_agent/control_plane/__init__.py +6 -0
  135. fsq_agent-0.1.0/fsq_agent/core/SPEC.md +233 -0
  136. fsq_agent-0.1.0/fsq_agent/core/__init__.py +52 -0
  137. fsq_agent-0.1.0/fsq_agent/core/_capabilities.py +57 -0
  138. fsq_agent-0.1.0/fsq_agent/core/_default_capabilities.py +58 -0
  139. fsq_agent-0.1.0/fsq_agent/core/_platform_runtime.py +8 -0
  140. fsq_agent-0.1.0/fsq_agent/core/_platform_tools.py +8 -0
  141. fsq_agent-0.1.0/fsq_agent/core/_runtime_secrets.py +48 -0
  142. fsq_agent-0.1.0/fsq_agent/core/evidence/SPEC.md +45 -0
  143. fsq_agent-0.1.0/fsq_agent/core/evidence/__init__.py +7 -0
  144. fsq_agent-0.1.0/fsq_agent/core/evidence/_artifact_store.py +121 -0
  145. fsq_agent-0.1.0/fsq_agent/core/evidence/_recorder.py +57 -0
  146. fsq_agent-0.1.0/fsq_agent/core/harness/__init__.py +28 -0
  147. fsq_agent-0.1.0/fsq_agent/core/harness/_ai_assertion_tool.py +8 -0
  148. fsq_agent-0.1.0/fsq_agent/core/harness/_android.py +8 -0
  149. fsq_agent-0.1.0/fsq_agent/core/harness/_android_devices.py +70 -0
  150. fsq_agent-0.1.0/fsq_agent/core/harness/_android_driver.py +8 -0
  151. fsq_agent-0.1.0/fsq_agent/core/harness/_appium_mac2_driver.py +8 -0
  152. fsq_agent-0.1.0/fsq_agent/core/harness/_driver_tools.py +8 -0
  153. fsq_agent-0.1.0/fsq_agent/core/harness/_factory.py +8 -0
  154. fsq_agent-0.1.0/fsq_agent/core/harness/_interface.py +8 -0
  155. fsq_agent-0.1.0/fsq_agent/core/harness/_macos.py +8 -0
  156. fsq_agent-0.1.0/fsq_agent/core/harness/_macos_driver.py +8 -0
  157. fsq_agent-0.1.0/fsq_agent/core/harness/_playwright_driver.py +8 -0
  158. fsq_agent-0.1.0/fsq_agent/core/harness/_pywinauto_driver.py +8 -0
  159. fsq_agent-0.1.0/fsq_agent/core/harness/_uiautomator2_driver.py +8 -0
  160. fsq_agent-0.1.0/fsq_agent/core/harness/_web.py +8 -0
  161. fsq_agent-0.1.0/fsq_agent/core/harness/_web_driver.py +8 -0
  162. fsq_agent-0.1.0/fsq_agent/core/harness/_windows.py +8 -0
  163. fsq_agent-0.1.0/fsq_agent/core/harness/_windows_driver.py +8 -0
  164. fsq_agent-0.1.0/fsq_agent/core/interfaces/SPEC.md +48 -0
  165. fsq_agent-0.1.0/fsq_agent/core/interfaces/__init__.py +26 -0
  166. fsq_agent-0.1.0/fsq_agent/core/interfaces/_android_driver.py +57 -0
  167. fsq_agent-0.1.0/fsq_agent/core/interfaces/_execution.py +30 -0
  168. fsq_agent-0.1.0/fsq_agent/core/interfaces/_factories.py +57 -0
  169. fsq_agent-0.1.0/fsq_agent/core/interfaces/_harness.py +57 -0
  170. fsq_agent-0.1.0/fsq_agent/core/interfaces/_macos_driver.py +57 -0
  171. fsq_agent-0.1.0/fsq_agent/core/interfaces/_web_driver.py +63 -0
  172. fsq_agent-0.1.0/fsq_agent/core/interfaces/_windows_driver.py +54 -0
  173. fsq_agent-0.1.0/fsq_agent/core/runner/SPEC.md +47 -0
  174. fsq_agent-0.1.0/fsq_agent/core/runner/__init__.py +7 -0
  175. fsq_agent-0.1.0/fsq_agent/core/runner/_runner.py +671 -0
  176. fsq_agent-0.1.0/fsq_agent/core/runner/_sequence.py +43 -0
  177. fsq_agent-0.1.0/fsq_agent/drivers/SPEC.md +46 -0
  178. fsq_agent-0.1.0/fsq_agent/drivers/__init__.py +4 -0
  179. fsq_agent-0.1.0/fsq_agent/drivers/_ai_assertion.py +137 -0
  180. fsq_agent-0.1.0/fsq_agent/drivers/_capabilities.py +293 -0
  181. fsq_agent-0.1.0/fsq_agent/drivers/_factory.py +55 -0
  182. fsq_agent-0.1.0/fsq_agent/drivers/android/SPEC.md +29 -0
  183. fsq_agent-0.1.0/fsq_agent/drivers/android/__init__.py +2 -0
  184. fsq_agent-0.1.0/fsq_agent/drivers/android/_uiautomator2.py +517 -0
  185. fsq_agent-0.1.0/fsq_agent/drivers/macos/SPEC.md +29 -0
  186. fsq_agent-0.1.0/fsq_agent/drivers/macos/__init__.py +2 -0
  187. fsq_agent-0.1.0/fsq_agent/drivers/macos/_appium_mac2.py +816 -0
  188. fsq_agent-0.1.0/fsq_agent/drivers/web/SPEC.md +29 -0
  189. fsq_agent-0.1.0/fsq_agent/drivers/web/__init__.py +2 -0
  190. fsq_agent-0.1.0/fsq_agent/drivers/web/_playwright.py +612 -0
  191. fsq_agent-0.1.0/fsq_agent/drivers/windows/SPEC.md +29 -0
  192. fsq_agent-0.1.0/fsq_agent/drivers/windows/__init__.py +2 -0
  193. fsq_agent-0.1.0/fsq_agent/drivers/windows/_pywinauto.py +503 -0
  194. fsq_agent-0.1.0/fsq_agent/environments/SPEC.md +47 -0
  195. fsq_agent-0.1.0/fsq_agent/environments/__init__.py +6 -0
  196. fsq_agent-0.1.0/fsq_agent/environments/_service.py +151 -0
  197. fsq_agent-0.1.0/fsq_agent/environments/providers/SPEC.md +31 -0
  198. fsq_agent-0.1.0/fsq_agent/environments/providers/__init__.py +2 -0
  199. fsq_agent-0.1.0/fsq_agent/environments/providers/_android.py +53 -0
  200. fsq_agent-0.1.0/fsq_agent/environments/providers/_macos.py +6 -0
  201. fsq_agent-0.1.0/fsq_agent/environments/providers/_runtime.py +37 -0
  202. fsq_agent-0.1.0/fsq_agent/environments/providers/_web.py +46 -0
  203. fsq_agent-0.1.0/fsq_agent/environments/providers/_windows.py +6 -0
  204. fsq_agent-0.1.0/fsq_agent/execution/SPEC.md +75 -0
  205. fsq_agent-0.1.0/fsq_agent/execution/__init__.py +48 -0
  206. fsq_agent-0.1.0/fsq_agent/execution/deterministic.py +142 -0
  207. fsq_agent-0.1.0/fsq_agent/execution/dynamic.py +70 -0
  208. fsq_agent-0.1.0/fsq_agent/execution/lifecycle.py +672 -0
  209. fsq_agent-0.1.0/fsq_agent/execution/recording.py +434 -0
  210. fsq_agent-0.1.0/fsq_agent/execution/runs.py +185 -0
  211. fsq_agent-0.1.0/fsq_agent/fsq/SPEC.md +179 -0
  212. fsq_agent-0.1.0/fsq_agent/fsq/__init__.py +6 -0
  213. fsq_agent-0.1.0/fsq_agent/fsq/_loader.py +8 -0
  214. fsq_agent-0.1.0/fsq_agent/fsq/_step_adapter.py +8 -0
  215. fsq_agent-0.1.0/fsq_agent/harnesses/SPEC.md +43 -0
  216. fsq_agent-0.1.0/fsq_agent/harnesses/__init__.py +4 -0
  217. fsq_agent-0.1.0/fsq_agent/harnesses/_android.py +273 -0
  218. fsq_agent-0.1.0/fsq_agent/harnesses/_common_tools.py +126 -0
  219. fsq_agent-0.1.0/fsq_agent/harnesses/_factory.py +116 -0
  220. fsq_agent-0.1.0/fsq_agent/harnesses/_macos.py +305 -0
  221. fsq_agent-0.1.0/fsq_agent/harnesses/_web.py +287 -0
  222. fsq_agent-0.1.0/fsq_agent/harnesses/_windows.py +300 -0
  223. fsq_agent-0.1.0/fsq_agent/knowledge/SPEC.md +40 -0
  224. fsq_agent-0.1.0/fsq_agent/knowledge/__init__.py +7 -0
  225. fsq_agent-0.1.0/fsq_agent/knowledge/_loader.py +74 -0
  226. fsq_agent-0.1.0/fsq_agent/models/SPEC.md +301 -0
  227. fsq_agent-0.1.0/fsq_agent/models/__init__.py +412 -0
  228. fsq_agent-0.1.0/fsq_agent/models/_agent_io.py +68 -0
  229. fsq_agent-0.1.0/fsq_agent/models/_ai_assertion.py +43 -0
  230. fsq_agent-0.1.0/fsq_agent/models/_core.py +1117 -0
  231. fsq_agent-0.1.0/fsq_agent/models/_devices.py +30 -0
  232. fsq_agent-0.1.0/fsq_agent/models/_events.py +44 -0
  233. fsq_agent-0.1.0/fsq_agent/models/_exceptions.py +28 -0
  234. fsq_agent-0.1.0/fsq_agent/models/_fsq.py +117 -0
  235. fsq_agent-0.1.0/fsq_agent/models/_knowledge.py +17 -0
  236. fsq_agent-0.1.0/fsq_agent/models/_page_knowledge.py +116 -0
  237. fsq_agent-0.1.0/fsq_agent/models/_platform_runtime.py +59 -0
  238. fsq_agent-0.1.0/fsq_agent/models/_report.py +19 -0
  239. fsq_agent-0.1.0/fsq_agent/models/_settings.py +621 -0
  240. fsq_agent-0.1.0/fsq_agent/models/_skills.py +30 -0
  241. fsq_agent-0.1.0/fsq_agent/models/_task.py +85 -0
  242. fsq_agent-0.1.0/fsq_agent/models/_tools.py +175 -0
  243. fsq_agent-0.1.0/fsq_agent/observation/SPEC.md +31 -0
  244. fsq_agent-0.1.0/fsq_agent/observation/__init__.py +6 -0
  245. fsq_agent-0.1.0/fsq_agent/observation/_logger.py +32 -0
  246. fsq_agent-0.1.0/fsq_agent/providers/SPEC.md +103 -0
  247. fsq_agent-0.1.0/fsq_agent/providers/__init__.py +50 -0
  248. fsq_agent-0.1.0/fsq_agent/providers/_ai_assertion.py +134 -0
  249. fsq_agent-0.1.0/fsq_agent/providers/_azure_openai.py +43 -0
  250. fsq_agent-0.1.0/fsq_agent/providers/_case_suggestion.py +79 -0
  251. fsq_agent-0.1.0/fsq_agent/providers/_connection_test.py +76 -0
  252. fsq_agent-0.1.0/fsq_agent/providers/_factory.py +78 -0
  253. fsq_agent-0.1.0/fsq_agent/providers/_github_copilot.py +413 -0
  254. fsq_agent-0.1.0/fsq_agent/providers/_session.py +82 -0
  255. fsq_agent-0.1.0/fsq_agent/report/SPEC.md +82 -0
  256. fsq_agent-0.1.0/fsq_agent/report/__init__.py +18 -0
  257. fsq_agent-0.1.0/fsq_agent/report/_core_evidence_report.py +286 -0
  258. fsq_agent-0.1.0/fsq_agent/report/_evidence.py +30 -0
  259. fsq_agent-0.1.0/fsq_agent/report/_failure_analysis.py +126 -0
  260. fsq_agent-0.1.0/fsq_agent/report/_generator.py +293 -0
  261. fsq_agent-0.1.0/fsq_agent/report/_resolver.py +36 -0
  262. fsq_agent-0.1.0/fsq_agent/report/_static_html.py +133 -0
  263. fsq_agent-0.1.0/fsq_agent/report/templates/.gitkeep +1 -0
  264. fsq_agent-0.1.0/fsq_agent/resources/config.android.yaml +31 -0
  265. fsq_agent-0.1.0/fsq_agent/resources/config.macos.yaml +33 -0
  266. fsq_agent-0.1.0/fsq_agent/resources/config.web.yaml +32 -0
  267. fsq_agent-0.1.0/fsq_agent/resources/config.windows.yaml +30 -0
  268. fsq_agent-0.1.0/fsq_agent/resources/knowledge/skills/android-harness.md +80 -0
  269. fsq_agent-0.1.0/fsq_agent/resources/knowledge/skills/automation-basics.md +6 -0
  270. fsq_agent-0.1.0/fsq_agent/resources/knowledge/skills/macos-harness.md +127 -0
  271. fsq_agent-0.1.0/fsq_agent/resources/knowledge/skills/web-harness.md +78 -0
  272. fsq_agent-0.1.0/fsq_agent/resources/knowledge/skills/windows-harness.md +96 -0
  273. fsq_agent-0.1.0/fsq_agent/skills/SPEC.md +48 -0
  274. fsq_agent-0.1.0/fsq_agent/skills/__init__.py +7 -0
  275. fsq_agent-0.1.0/fsq_agent/skills/_loader.py +74 -0
  276. fsq_agent-0.1.0/fsq_agent/tools/SPEC.md +85 -0
  277. fsq_agent-0.1.0/fsq_agent/tools/__init__.py +31 -0
  278. fsq_agent-0.1.0/fsq_agent/tools/_agent_tools.py +260 -0
  279. fsq_agent-0.1.0/fsq_agent/tools/_agents_adapter.py +439 -0
  280. fsq_agent-0.1.0/fsq_agent/tools/_common.py +24 -0
  281. fsq_agent-0.1.0/fsq_agent/tools/_file_ops.py +77 -0
  282. fsq_agent-0.1.0/fsq_agent/tools/_tool_artifacts.py +101 -0
  283. fsq_agent-0.1.0/knowledge/skills/android-harness.md +80 -0
  284. fsq_agent-0.1.0/knowledge/skills/automation-basics.md +6 -0
  285. fsq_agent-0.1.0/knowledge/skills/macos-harness.md +127 -0
  286. fsq_agent-0.1.0/knowledge/skills/web-harness.md +78 -0
  287. fsq_agent-0.1.0/knowledge/skills/windows-harness.md +96 -0
  288. fsq_agent-0.1.0/pyproject.toml +224 -0
@@ -0,0 +1,39 @@
1
+ .venv/
2
+ uv.lock
3
+ .DS_Store
4
+ **/.DS_Store
5
+ .vscode/*
6
+ __pycache__/
7
+ *.py[cod]
8
+ .pytest_cache/
9
+ .ruff_cache/
10
+ .env
11
+ config.local.yaml
12
+ cases/
13
+ .fsq-agent-workspace/
14
+ logs/
15
+ log/
16
+ output/
17
+ reports/
18
+ screenshots/
19
+ dist/
20
+ *.egg-info/
21
+ knowledge/*
22
+ !knowledge/skills/
23
+ !knowledge/skills/**
24
+ node_modules/
25
+ .frontend-dist/
26
+ fsq_agent/adapters/control_plane/playground/static/
27
+ fsq_agent/adapters/control_plane/static/
28
+ fsq_agent/resources/
29
+
30
+
31
+ # Private/local planning material. Do not commit.
32
+ docs/fsq-opensource-strategy.md
33
+ docs/fsq-benchmark-metrics.md
34
+ docs/README-draft.md
35
+ docs/superpowers/
36
+ private/
37
+ docs/private/
38
+ *.internal.md
39
+ *.private.md
@@ -0,0 +1,30 @@
1
+ # Changelog
2
+
3
+ All notable changes are documented here. FSQ follows Semantic Versioning after publication; during the 0.x alpha period, minor releases may change public behavior with release-note guidance.
4
+
5
+ ## [Unreleased]
6
+
7
+ ### Added
8
+
9
+ - Initial open-source release preparation.
10
+
11
+ ### Removed
12
+
13
+ - Removed the legacy Playground browser application, standalone HTTP server, Python APIs, and packaged frontend assets. Use `fsq ui` for the supported Control Plane browser workflows; raw YAML dynamic execution, lifecycle-hook editing, completed-Run loading, and automatic Goal Case publication are not carried forward.
14
+
15
+ ## [0.1.0] - Unreleased
16
+
17
+ ### Added
18
+
19
+ - Evidence-first AI exploration and deterministic Case replay across Web, Android, Windows, and macOS.
20
+ - Local Workspace configuration, readiness diagnostics, user-level Provider configuration, Run queries, redacted logs, and offline HTML reports.
21
+ - Local Control Plane for Workspace, Provider, Case, Run, and evidence workflows.
22
+ - GitHub Copilot and Azure OpenAI Provider configuration.
23
+ - Wheel and source distributions containing all supported Python platform dependencies and compiled frontend assets.
24
+
25
+ ### Stability
26
+
27
+ - This is an alpha release. Public APIs and Case authoring details may evolve before 1.0.
28
+
29
+ [Unreleased]: https://github.com/microsoft/FSQ/compare/v0.1.0...HEAD
30
+ [0.1.0]: https://github.com/microsoft/FSQ/releases/tag/v0.1.0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Microsoft
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,272 @@
1
+ Metadata-Version: 2.5
2
+ Name: fsq-agent
3
+ Version: 0.1.0
4
+ Summary: Goal-driven FSQ automated testing agent built around OpenAI Agents SDK, Azure OpenAI, harness actions, local utilities, observation, and reporting.
5
+ Project-URL: Documentation, https://github.com/microsoft/FSQ#readme
6
+ Project-URL: Issues, https://github.com/microsoft/FSQ/issues
7
+ Project-URL: Repository, https://github.com/microsoft/FSQ
8
+ Author: Microsoft Corporation
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3 :: Only
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Topic :: Software Development :: Testing
20
+ Requires-Python: >=3.11
21
+ Requires-Dist: aiofiles==25.1.0
22
+ Requires-Dist: appium-python-client==5.3.1
23
+ Requires-Dist: click==8.3.3
24
+ Requires-Dist: jinja2==3.1.6
25
+ Requires-Dist: openai-agents==0.15.2
26
+ Requires-Dist: openai==2.34.0
27
+ Requires-Dist: pillow==12.3.0
28
+ Requires-Dist: playwright==1.60.0
29
+ Requires-Dist: pydantic-settings==2.14.2
30
+ Requires-Dist: pydantic==2.13.3
31
+ Requires-Dist: pywinauto==0.6.9
32
+ Requires-Dist: pyyaml==6.0.3
33
+ Requires-Dist: ruamel-yaml==0.18.16
34
+ Requires-Dist: structlog==25.5.0
35
+ Requires-Dist: uiautomator2==3.5.2
36
+ Provides-Extra: dev
37
+ Requires-Dist: pre-commit==4.6.1; extra == 'dev'
38
+ Requires-Dist: pytest-asyncio==1.3.0; extra == 'dev'
39
+ Requires-Dist: pytest==9.0.3; extra == 'dev'
40
+ Requires-Dist: ruff==0.16.1; extra == 'dev'
41
+ Description-Content-Type: text/markdown
42
+
43
+ <p align="center">
44
+ <picture>
45
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/logo-dark.svg">
46
+ <source media="(prefers-color-scheme: light)" srcset="docs/assets/logo-light.svg">
47
+ <img alt="FSQ — Fully Self Quality" src="docs/assets/logo-light.svg" width="320">
48
+ </picture>
49
+ </p>
50
+
51
+ <h3 align="center">Evidence-first AI UI automation you can inspect, replay, and verify.</h3>
52
+
53
+ <p align="center">
54
+ <a href="https://github.com/microsoft/FSQ/actions/workflows/ci.yml"><img src="https://github.com/microsoft/FSQ/actions/workflows/ci.yml/badge.svg" alt="CI status"></a>
55
+ <a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11%2B-blue" alt="Python 3.11 or newer"></a>
56
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-yellow.svg" alt="MIT license"></a>
57
+ <img src="https://img.shields.io/badge/status-alpha-orange" alt="Alpha status">
58
+ </p>
59
+
60
+ <p align="center">
61
+ <a href="#five-minute-quickstart">Quickstart</a> ·
62
+ <a href="README.zh-CN.md">中文</a> ·
63
+ <a href="#coding-agent-workflow">Coding agents</a> ·
64
+ <a href="#how-fsq-works">How it works</a> ·
65
+ <a href="#supported-platforms">Platforms</a> ·
66
+ <a href="docs/getting-started.md">Documentation</a> ·
67
+ <a href="CONTRIBUTING.md">Contributing</a>
68
+ </p>
69
+
70
+ > [!IMPORTANT]
71
+ > FSQ v0.1.0 is an alpha release. It is ready for evaluation and contribution, but public APIs and Case authoring details may evolve before 1.0. See [support and stability](docs/support-and-stability.md).
72
+
73
+ FSQ turns a natural-language UI goal into an observable automation run, saves screenshots, UI snapshots, events, and reports as evidence, and can turn successful actions into a reviewable Case for deterministic replay. It uses Playwright, uiautomator2, pywinauto, and Appium as platform backends; it does not replace or install their host prerequisites.
74
+
75
+ ## Run existing Cases without an LLM
76
+
77
+ Use FSQ like a test harness once a Case exists. Run history and offline reports do **not** require a configured LLM Provider. Strict replay is also provider-free unless the authored Case contains an AI assertion.
78
+
79
+ ```bash
80
+ python -m pip install fsq-agent
81
+ fsq init --platform web --browser-channel chrome
82
+ # Store reviewed Case assets in your repo, for example: cases/web/*.fsq.yaml
83
+ fsq case test --platform web cases/web/YOUR_CASE.fsq.yaml
84
+ fsq runs show RUN_ID --open
85
+ ```
86
+
87
+ ## Create Cases with AI
88
+
89
+ Configure an LLM Provider, then use `fsq case create --platform web --goal "..."` when you want FSQ to operate the real UI and create a reviewable `.fsq.yaml` Case from the successful Run. Coding agents should provide the goal and context; FSQ proves the path through live execution and evidence.
90
+
91
+ ## See FSQ in action
92
+
93
+ Watch FSQ turn a natural-language goal into live UI execution, captured evidence, a reviewable Case, and deterministic replay.
94
+
95
+ https://github.com/user-attachments/assets/aa9d0a12-2f93-4894-8349-52a013424939
96
+
97
+ <p align="center">
98
+ <a href="https://youtu.be/QqCahxGDdS0">Watch the full demo on YouTube</a>
99
+ </p>
100
+
101
+ <p align="center">
102
+ <img src="docs/assets/fsq-workflow.svg" alt="FSQ workflow: describe a goal, execute once, capture evidence, verify, review a Case, and replay deterministically" width="880">
103
+ </p>
104
+
105
+ ## Why FSQ
106
+
107
+ - **Inspect the facts.** Every run keeps screenshots, normalized UI snapshots, ordered events, metadata, and reports together.
108
+ - **Separate exploration from regression.** AI can explore a goal; reviewed YAML Cases replay authored actions deterministically.
109
+ - **Use one workflow across UI surfaces.** Web, Android, Windows, and macOS share the same Case, evidence, Run, and readiness concepts.
110
+ - **Keep control local.** Workspaces, evidence, Provider configuration, and the Control Plane are local by default.
111
+
112
+ FSQ complements platform automation libraries. Playwright, uiautomator2, pywinauto, and Appium perform platform interaction; FSQ adds goal-driven execution, a shared Case format, evidence capture, verification, Run history, and a local Control Plane.
113
+
114
+ ## Product tour
115
+
116
+ | Describe a goal | Inspect evidence | Review a candidate Case |
117
+ |---|---|---|
118
+ | <img src="docs/media/01-describe-goal.png" alt="FSQ Control Plane goal entry for a public TodoMVC workflow" width="280"> | <img src="docs/media/03-capture-evidence.png" alt="FSQ evidence view showing persisted UI state from the run" width="280"> | <img src="docs/media/04-generate-candidate.png" alt="FSQ Run-local candidate Case generated from execution facts" width="280"> |
119
+
120
+ See the remaining approved screenshots in [release media](docs/media/README.md).
121
+
122
+ ## Five-minute quickstart
123
+
124
+ This public Web example uses [TodoMVC](https://todomvc.com/examples/react/dist/), requires an installed Chromium-family browser, and writes all project data locally. Steps 1-3 exercise the provider-free harness path. A configured Provider is only needed for AI-driven Case creation or post-run suggestions.
125
+
126
+ ### 1. Install
127
+
128
+ ```bash
129
+ python -m pip install fsq-agent
130
+ ```
131
+
132
+ The base package includes Python dependencies for all four supported platforms. Browsers, applications, devices, ADB, and Appium services remain system prerequisites. FSQ never installs them during `init`.
133
+
134
+ ### 2. Create an empty Workspace
135
+
136
+ ```bash
137
+ mkdir fsq-web-demo
138
+ cd fsq-web-demo
139
+ fsq init --platform web --browser-channel chrome
140
+ fsq doctor
141
+ ```
142
+
143
+ Workspace root selection is exact:
144
+
145
+ - In an **empty current directory**, `fsq init` adopts that directory as the Workspace root.
146
+ - In a **non-empty current directory**, it creates an absent `<current-directory>/<workspace-name>` child. Use `--name NAME` to choose that name, then change into the child directory for Workspace commands.
147
+ - Other CLI commands never search parent directories; run them from the exact registered Workspace root.
148
+
149
+ ### 3. Replay the public example without a planning LLM
150
+
151
+ Download the current [`examples/web/example-domain.fsq.yaml`](examples/web/example-domain.fsq.yaml) into the Workspace and run it:
152
+
153
+ ```bash
154
+ mkdir -p cases/web
155
+ curl --fail --location --output cases/web/example-domain.fsq.yaml \
156
+ https://raw.githubusercontent.com/microsoft/FSQ/main/examples/web/example-domain.fsq.yaml
157
+ fsq case test --platform web cases/web/example-domain.fsq.yaml
158
+ fsq runs list --platform web
159
+ ```
160
+
161
+ ### 4. Explore with AI
162
+
163
+ Configure one supported user-level Provider from any directory:
164
+
165
+ ```bash
166
+ fsq providers configure github_copilot
167
+ fsq providers status
168
+ ```
169
+
170
+ Then return to the Workspace:
171
+
172
+ ```bash
173
+ fsq case create --platform web \
174
+ --goal "Open https://example.com and verify the Example Domain heading is visible."
175
+
176
+ fsq case test --platform web --suggest cases/web/example-domain.fsq.yaml
177
+ fsq runs show RUN_ID --open
178
+ ```
179
+
180
+ `--suggest` executes the source Case exactly once, then asks AI to analyze only the persisted Case, report, and evidence. Suggestions and an optional candidate Case remain inside that Run; the source Case is not modified.
181
+
182
+ ### 5. Open the local Control Plane
183
+
184
+ ```bash
185
+ fsq ui
186
+ ```
187
+
188
+ The installed wheel includes the compiled frontend. It listens on `127.0.0.1:8879` by default and does not require Node.js at runtime.
189
+
190
+ ## Coding agent workflow
191
+
192
+ Coding agents should not guess UI action steps or hand-author final Case YAML from code context alone. They should understand the product change, provide a precise goal to FSQ, and let FSQ operate the real UI before a Case is reviewed and committed.
193
+
194
+ ```bash
195
+ # 1. Ask FSQ to prove a goal against the live UI and record evidence.
196
+ fsq case create --platform web \
197
+ --goal "Open https://example.com and verify the Example Domain heading is visible."
198
+
199
+ # 2. Inspect the generated Run and candidate Case.
200
+ fsq runs list --platform web
201
+ fsq runs show RUN_ID
202
+ fsq runs logs RUN_ID
203
+
204
+ # 3. Replay the reviewed generated Case deterministically before committing it.
205
+ fsq case test --platform web cases/web/RUN_ID.fsq.yaml
206
+ ```
207
+
208
+ The durable asset is the reviewed `.fsq.yaml` Case. The proof lives in `.fsq/runs/<platform>/<run-id>/` as events, screenshots, UI snapshots, evidence manifests, and reports. The strict replay path is provider-free, so CI and coding agents can verify committed Cases without configuring another LLM.
209
+
210
+ ## How FSQ works
211
+
212
+ ```text
213
+ Goal ──► AI exploration ──► evidence ──► verification ──► reviewable Case
214
+ │
215
+ Reviewed Case ──► deterministic replay ──► fresh evidence ─┘
216
+ ```
217
+
218
+ Dynamic execution and deterministic replay share platform Harnesses and evidence contracts. The original execution result is immutable; later suggestion analysis cannot rewrite it or perform another UI execution. Implementation-level architecture and behavior are defined by the root and module `SPEC.md` files.
219
+
220
+ ## Supported platforms
221
+
222
+ | Platform | Interaction backend | Host prerequisites |
223
+ |---|---|---|
224
+ | Web | Playwright | A supported installed Chromium-family channel |
225
+ | Android | uiautomator2 | ADB and an online authorized device |
226
+ | Windows | pywinauto | Windows and an existing application |
227
+ | macOS | Appium Mac2 | macOS, an existing application, and a reachable Appium service |
228
+
229
+ All Python backend packages are installed with `fsq-agent`; platform applications and host services are not. Run `fsq doctor` from the exact Workspace root for actionable readiness results.
230
+
231
+ Platform target options for `fsq init`:
232
+
233
+ | Platform | Required target input |
234
+ |---|---|
235
+ | Android | `--app-id APP_ID` |
236
+ | Web | `--browser-channel CHANNEL`; optional `--browser-executable-path FILE` |
237
+ | Windows | `--app-path PATH`; optional `--window-title-re`, `--launch-args` |
238
+ | macOS | At least one of `--bundle-id` or `--app-path` |
239
+
240
+ ## Runs and local data
241
+
242
+ ```text
243
+ <workspace-root>/
244
+ .fsq/config/config.<platform>.yaml
245
+ .fsq/runs/<platform>/<run-id>/
246
+ cases/<platform>/
247
+ knowledge/<platform>/
248
+ ```
249
+
250
+ Use `fsq runs list`, `fsq runs show RUN_ID`, and `fsq runs logs RUN_ID`. `fsq runs show RUN_ID --open` creates an offline static HTML report without calling a Provider or operating the UI. Evidence can contain visible application data; review it before sharing. Do not commit `.fsq`, credentials, reports, screenshots, or private target data.
251
+
252
+ Provider configuration is stored under `~/.fsq` and shared by the CLI and local Control Plane. Supported first-release Providers are GitHub Copilot and Azure OpenAI.
253
+
254
+ ## Documentation
255
+
256
+ | Resource | Purpose |
257
+ |---|---|
258
+ | [中文 README](README.zh-CN.md) | Chinese overview, quickstart, and release links |
259
+ | [Getting started](docs/getting-started.md) | Installation, Workspace rules, first Web run, and next commands |
260
+ | [中文快速开始](docs/getting-started.zh-CN.md) | Chinese installation and first-run guide |
261
+ | [CLI reference](docs/cli-reference.md) | Current public command families and output modes |
262
+ | [FSQ Case format](docs/case-format.md) | Case structure and a validated public example |
263
+ | [Platform prerequisites](docs/platform-prerequisites.md) | Web, Android, Windows, and macOS host setup boundaries |
264
+ | [Support and stability](docs/support-and-stability.md) | Alpha scope, compatibility, privacy, and support expectations |
265
+
266
+ ## Contributing
267
+
268
+ Contributions are welcome across documentation, Cases, platform Harnesses, evidence, verification, and developer experience. Start with [CONTRIBUTING.md](CONTRIBUTING.md), follow the [Code of Conduct](CODE_OF_CONDUCT.md), and report vulnerabilities privately through [SECURITY.md](SECURITY.md).
269
+
270
+ ## License
271
+
272
+ [MIT](LICENSE) — Copyright (c) Microsoft Corporation.
@@ -0,0 +1,230 @@
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/logo-dark.svg">
4
+ <source media="(prefers-color-scheme: light)" srcset="docs/assets/logo-light.svg">
5
+ <img alt="FSQ — Fully Self Quality" src="docs/assets/logo-light.svg" width="320">
6
+ </picture>
7
+ </p>
8
+
9
+ <h3 align="center">Evidence-first AI UI automation you can inspect, replay, and verify.</h3>
10
+
11
+ <p align="center">
12
+ <a href="https://github.com/microsoft/FSQ/actions/workflows/ci.yml"><img src="https://github.com/microsoft/FSQ/actions/workflows/ci.yml/badge.svg" alt="CI status"></a>
13
+ <a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11%2B-blue" alt="Python 3.11 or newer"></a>
14
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-yellow.svg" alt="MIT license"></a>
15
+ <img src="https://img.shields.io/badge/status-alpha-orange" alt="Alpha status">
16
+ </p>
17
+
18
+ <p align="center">
19
+ <a href="#five-minute-quickstart">Quickstart</a> ·
20
+ <a href="README.zh-CN.md">中文</a> ·
21
+ <a href="#coding-agent-workflow">Coding agents</a> ·
22
+ <a href="#how-fsq-works">How it works</a> ·
23
+ <a href="#supported-platforms">Platforms</a> ·
24
+ <a href="docs/getting-started.md">Documentation</a> ·
25
+ <a href="CONTRIBUTING.md">Contributing</a>
26
+ </p>
27
+
28
+ > [!IMPORTANT]
29
+ > FSQ v0.1.0 is an alpha release. It is ready for evaluation and contribution, but public APIs and Case authoring details may evolve before 1.0. See [support and stability](docs/support-and-stability.md).
30
+
31
+ FSQ turns a natural-language UI goal into an observable automation run, saves screenshots, UI snapshots, events, and reports as evidence, and can turn successful actions into a reviewable Case for deterministic replay. It uses Playwright, uiautomator2, pywinauto, and Appium as platform backends; it does not replace or install their host prerequisites.
32
+
33
+ ## Run existing Cases without an LLM
34
+
35
+ Use FSQ like a test harness once a Case exists. Run history and offline reports do **not** require a configured LLM Provider. Strict replay is also provider-free unless the authored Case contains an AI assertion.
36
+
37
+ ```bash
38
+ python -m pip install fsq-agent
39
+ fsq init --platform web --browser-channel chrome
40
+ # Store reviewed Case assets in your repo, for example: cases/web/*.fsq.yaml
41
+ fsq case test --platform web cases/web/YOUR_CASE.fsq.yaml
42
+ fsq runs show RUN_ID --open
43
+ ```
44
+
45
+ ## Create Cases with AI
46
+
47
+ Configure an LLM Provider, then use `fsq case create --platform web --goal "..."` when you want FSQ to operate the real UI and create a reviewable `.fsq.yaml` Case from the successful Run. Coding agents should provide the goal and context; FSQ proves the path through live execution and evidence.
48
+
49
+ ## See FSQ in action
50
+
51
+ Watch FSQ turn a natural-language goal into live UI execution, captured evidence, a reviewable Case, and deterministic replay.
52
+
53
+ https://github.com/user-attachments/assets/aa9d0a12-2f93-4894-8349-52a013424939
54
+
55
+ <p align="center">
56
+ <a href="https://youtu.be/QqCahxGDdS0">Watch the full demo on YouTube</a>
57
+ </p>
58
+
59
+ <p align="center">
60
+ <img src="docs/assets/fsq-workflow.svg" alt="FSQ workflow: describe a goal, execute once, capture evidence, verify, review a Case, and replay deterministically" width="880">
61
+ </p>
62
+
63
+ ## Why FSQ
64
+
65
+ - **Inspect the facts.** Every run keeps screenshots, normalized UI snapshots, ordered events, metadata, and reports together.
66
+ - **Separate exploration from regression.** AI can explore a goal; reviewed YAML Cases replay authored actions deterministically.
67
+ - **Use one workflow across UI surfaces.** Web, Android, Windows, and macOS share the same Case, evidence, Run, and readiness concepts.
68
+ - **Keep control local.** Workspaces, evidence, Provider configuration, and the Control Plane are local by default.
69
+
70
+ FSQ complements platform automation libraries. Playwright, uiautomator2, pywinauto, and Appium perform platform interaction; FSQ adds goal-driven execution, a shared Case format, evidence capture, verification, Run history, and a local Control Plane.
71
+
72
+ ## Product tour
73
+
74
+ | Describe a goal | Inspect evidence | Review a candidate Case |
75
+ |---|---|---|
76
+ | <img src="docs/media/01-describe-goal.png" alt="FSQ Control Plane goal entry for a public TodoMVC workflow" width="280"> | <img src="docs/media/03-capture-evidence.png" alt="FSQ evidence view showing persisted UI state from the run" width="280"> | <img src="docs/media/04-generate-candidate.png" alt="FSQ Run-local candidate Case generated from execution facts" width="280"> |
77
+
78
+ See the remaining approved screenshots in [release media](docs/media/README.md).
79
+
80
+ ## Five-minute quickstart
81
+
82
+ This public Web example uses [TodoMVC](https://todomvc.com/examples/react/dist/), requires an installed Chromium-family browser, and writes all project data locally. Steps 1-3 exercise the provider-free harness path. A configured Provider is only needed for AI-driven Case creation or post-run suggestions.
83
+
84
+ ### 1. Install
85
+
86
+ ```bash
87
+ python -m pip install fsq-agent
88
+ ```
89
+
90
+ The base package includes Python dependencies for all four supported platforms. Browsers, applications, devices, ADB, and Appium services remain system prerequisites. FSQ never installs them during `init`.
91
+
92
+ ### 2. Create an empty Workspace
93
+
94
+ ```bash
95
+ mkdir fsq-web-demo
96
+ cd fsq-web-demo
97
+ fsq init --platform web --browser-channel chrome
98
+ fsq doctor
99
+ ```
100
+
101
+ Workspace root selection is exact:
102
+
103
+ - In an **empty current directory**, `fsq init` adopts that directory as the Workspace root.
104
+ - In a **non-empty current directory**, it creates an absent `<current-directory>/<workspace-name>` child. Use `--name NAME` to choose that name, then change into the child directory for Workspace commands.
105
+ - Other CLI commands never search parent directories; run them from the exact registered Workspace root.
106
+
107
+ ### 3. Replay the public example without a planning LLM
108
+
109
+ Download the current [`examples/web/example-domain.fsq.yaml`](examples/web/example-domain.fsq.yaml) into the Workspace and run it:
110
+
111
+ ```bash
112
+ mkdir -p cases/web
113
+ curl --fail --location --output cases/web/example-domain.fsq.yaml \
114
+ https://raw.githubusercontent.com/microsoft/FSQ/main/examples/web/example-domain.fsq.yaml
115
+ fsq case test --platform web cases/web/example-domain.fsq.yaml
116
+ fsq runs list --platform web
117
+ ```
118
+
119
+ ### 4. Explore with AI
120
+
121
+ Configure one supported user-level Provider from any directory:
122
+
123
+ ```bash
124
+ fsq providers configure github_copilot
125
+ fsq providers status
126
+ ```
127
+
128
+ Then return to the Workspace:
129
+
130
+ ```bash
131
+ fsq case create --platform web \
132
+ --goal "Open https://example.com and verify the Example Domain heading is visible."
133
+
134
+ fsq case test --platform web --suggest cases/web/example-domain.fsq.yaml
135
+ fsq runs show RUN_ID --open
136
+ ```
137
+
138
+ `--suggest` executes the source Case exactly once, then asks AI to analyze only the persisted Case, report, and evidence. Suggestions and an optional candidate Case remain inside that Run; the source Case is not modified.
139
+
140
+ ### 5. Open the local Control Plane
141
+
142
+ ```bash
143
+ fsq ui
144
+ ```
145
+
146
+ The installed wheel includes the compiled frontend. It listens on `127.0.0.1:8879` by default and does not require Node.js at runtime.
147
+
148
+ ## Coding agent workflow
149
+
150
+ Coding agents should not guess UI action steps or hand-author final Case YAML from code context alone. They should understand the product change, provide a precise goal to FSQ, and let FSQ operate the real UI before a Case is reviewed and committed.
151
+
152
+ ```bash
153
+ # 1. Ask FSQ to prove a goal against the live UI and record evidence.
154
+ fsq case create --platform web \
155
+ --goal "Open https://example.com and verify the Example Domain heading is visible."
156
+
157
+ # 2. Inspect the generated Run and candidate Case.
158
+ fsq runs list --platform web
159
+ fsq runs show RUN_ID
160
+ fsq runs logs RUN_ID
161
+
162
+ # 3. Replay the reviewed generated Case deterministically before committing it.
163
+ fsq case test --platform web cases/web/RUN_ID.fsq.yaml
164
+ ```
165
+
166
+ The durable asset is the reviewed `.fsq.yaml` Case. The proof lives in `.fsq/runs/<platform>/<run-id>/` as events, screenshots, UI snapshots, evidence manifests, and reports. The strict replay path is provider-free, so CI and coding agents can verify committed Cases without configuring another LLM.
167
+
168
+ ## How FSQ works
169
+
170
+ ```text
171
+ Goal ──► AI exploration ──► evidence ──► verification ──► reviewable Case
172
+ │
173
+ Reviewed Case ──► deterministic replay ──► fresh evidence ─┘
174
+ ```
175
+
176
+ Dynamic execution and deterministic replay share platform Harnesses and evidence contracts. The original execution result is immutable; later suggestion analysis cannot rewrite it or perform another UI execution. Implementation-level architecture and behavior are defined by the root and module `SPEC.md` files.
177
+
178
+ ## Supported platforms
179
+
180
+ | Platform | Interaction backend | Host prerequisites |
181
+ |---|---|---|
182
+ | Web | Playwright | A supported installed Chromium-family channel |
183
+ | Android | uiautomator2 | ADB and an online authorized device |
184
+ | Windows | pywinauto | Windows and an existing application |
185
+ | macOS | Appium Mac2 | macOS, an existing application, and a reachable Appium service |
186
+
187
+ All Python backend packages are installed with `fsq-agent`; platform applications and host services are not. Run `fsq doctor` from the exact Workspace root for actionable readiness results.
188
+
189
+ Platform target options for `fsq init`:
190
+
191
+ | Platform | Required target input |
192
+ |---|---|
193
+ | Android | `--app-id APP_ID` |
194
+ | Web | `--browser-channel CHANNEL`; optional `--browser-executable-path FILE` |
195
+ | Windows | `--app-path PATH`; optional `--window-title-re`, `--launch-args` |
196
+ | macOS | At least one of `--bundle-id` or `--app-path` |
197
+
198
+ ## Runs and local data
199
+
200
+ ```text
201
+ <workspace-root>/
202
+ .fsq/config/config.<platform>.yaml
203
+ .fsq/runs/<platform>/<run-id>/
204
+ cases/<platform>/
205
+ knowledge/<platform>/
206
+ ```
207
+
208
+ Use `fsq runs list`, `fsq runs show RUN_ID`, and `fsq runs logs RUN_ID`. `fsq runs show RUN_ID --open` creates an offline static HTML report without calling a Provider or operating the UI. Evidence can contain visible application data; review it before sharing. Do not commit `.fsq`, credentials, reports, screenshots, or private target data.
209
+
210
+ Provider configuration is stored under `~/.fsq` and shared by the CLI and local Control Plane. Supported first-release Providers are GitHub Copilot and Azure OpenAI.
211
+
212
+ ## Documentation
213
+
214
+ | Resource | Purpose |
215
+ |---|---|
216
+ | [中文 README](README.zh-CN.md) | Chinese overview, quickstart, and release links |
217
+ | [Getting started](docs/getting-started.md) | Installation, Workspace rules, first Web run, and next commands |
218
+ | [中文快速开始](docs/getting-started.zh-CN.md) | Chinese installation and first-run guide |
219
+ | [CLI reference](docs/cli-reference.md) | Current public command families and output modes |
220
+ | [FSQ Case format](docs/case-format.md) | Case structure and a validated public example |
221
+ | [Platform prerequisites](docs/platform-prerequisites.md) | Web, Android, Windows, and macOS host setup boundaries |
222
+ | [Support and stability](docs/support-and-stability.md) | Alpha scope, compatibility, privacy, and support expectations |
223
+
224
+ ## Contributing
225
+
226
+ Contributions are welcome across documentation, Cases, platform Harnesses, evidence, verification, and developer experience. Start with [CONTRIBUTING.md](CONTRIBUTING.md), follow the [Code of Conduct](CODE_OF_CONDUCT.md), and report vulnerabilities privately through [SECURITY.md](SECURITY.md).
227
+
228
+ ## License
229
+
230
+ [MIT](LICENSE) — Copyright (c) Microsoft Corporation.