@wenathlan/saddle 1.8.17 → 1.8.18

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 (219) hide show
  1. package/README.md +38 -13
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +1 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/isolation/contracts.d.ts +118 -0
  7. package/dist/isolation/contracts.d.ts.map +1 -0
  8. package/dist/isolation/contracts.js +84 -0
  9. package/dist/isolation/contracts.js.map +1 -0
  10. package/dist/mcp/server.d.ts +2 -2
  11. package/dist/scrape/robots.js +1 -1
  12. package/docs/artifactavailability.md +6 -0
  13. package/docs/releasenotes-1.8.17.md +6 -0
  14. package/docs/releasenotes-1.8.18.md +32 -0
  15. package/docs/research-1.8.18-isolation.md +43 -0
  16. package/docs/saddle.archive.1.8.17.tar.gz.gpg +0 -0
  17. package/docs/todo-1.8.16.md +56 -1
  18. package/docs/todo-1.8.18.md +152 -0
  19. package/extension/manifest.json +1 -1
  20. package/package.json +3 -2
  21. package/docs/logs/.gitkeep +0 -0
  22. package/docs/plans/00.index.md +0 -50
  23. package/docs/plans/01.architecture.md +0 -86
  24. package/docs/plans/02.research.computer.use.md +0 -58
  25. package/docs/plans/03.research.captcha.bypass.md +0 -68
  26. package/docs/plans/04.research.sandbox.ai.md +0 -52
  27. package/docs/plans/05.capture.platform.md +0 -57
  28. package/docs/plans/06.dependencies.md +0 -97
  29. package/docs/plans/07.captcha.test.page.md +0 -41
  30. package/docs/plans/08.production.infra.md +0 -70
  31. package/docs/plans/09.database.schema.md +0 -121
  32. package/docs/plans/10.cloudinary.storage.md +0 -57
  33. package/docs/plans/11.movement.logs.json.md +0 -72
  34. package/docs/plans/12.research.atlas.agent.browser.md +0 -79
  35. package/docs/plans/13.research.anti.detection.md +0 -898
  36. package/docs/plans/14.research.proxy.md +0 -1495
  37. package/docs/plans/15.research.retry.rate.limit.md +0 -1958
  38. package/docs/plans/16.research.crawling.md +0 -1417
  39. package/docs/plans/17.research.caching.md +0 -1610
  40. package/docs/plans/18.research.content.extraction.md +0 -1952
  41. package/docs/plans/19.research.errors.events.md +0 -1523
  42. package/docs/plans/20.research.zod.validation.md +0 -1350
  43. package/docs/plans/21.research.batch.concurrency.md +0 -1888
  44. package/docs/plans/22.research.universal.runtime.md +0 -944
  45. package/docs/plans/23.research.ai.integration.md +0 -1465
  46. package/docs/plans/24.research.memory.persistence.md +0 -1979
  47. package/docs/plans/25.research.server.api.md +0 -342
  48. package/docs/plans/26.research.compilation.md +0 -249
  49. package/docs/plans/27.research.html.parsing.md +0 -251
  50. package/docs/plans/28.action.plan.md +0 -50
  51. package/docs/plans/29.api.reference.md +0 -174
  52. package/docs/plans/30.architecture.plan.md +0 -94
  53. package/docs/plans/31.auditoria.dados.md +0 -163
  54. package/docs/plans/32.bots.automacao.computacional.md +0 -214
  55. package/docs/plans/33.bots.codigo.revisao.md +0 -220
  56. package/docs/plans/34.bots.seguranca.cicd.md +0 -366
  57. package/docs/plans/35.comparativo.concorrencia.md +0 -464
  58. package/docs/plans/36.computational.memory.md +0 -340
  59. package/docs/plans/37.deploystrategy.md +0 -394
  60. package/docs/plans/38.flow.md +0 -155
  61. package/docs/plans/39.multi.platform.bot.md +0 -252
  62. package/docs/plans/40.npm.publish.md +0 -250
  63. package/docs/plans/41.o.que.falta.md +0 -407
  64. package/docs/plans/42.pesquisa.concorrencia.md +0 -721
  65. package/docs/plans/43.plan.universal.architecture.md +0 -496
  66. package/docs/plans/44.reference.md +0 -100
  67. package/docs/plans/45.robotarchitecture.md +0 -237
  68. package/docs/plans/46.scdnintegration.md +0 -284
  69. package/docs/plans/47.multiforge.readme.md +0 -129
  70. package/docs/plans/48.theory.v4.repo.os.md +0 -152
  71. package/docs/plans/49.third.party.infra.md +0 -12
  72. package/docs/plans/50.file.as.compute.md +0 -39
  73. package/docs/plans/51.architecture.virtual.processor.md +0 -80
  74. package/docs/plans/52.manifesto.v8.md +0 -11
  75. package/docs/plans/58.cdn.list.md +0 -23
  76. package/docs/plans/59.sql.frameworks.md +0 -33
  77. package/docs/plans/60.sql.thirdparty.md +0 -26
  78. package/docs/plans/61.objective.multiforge.md +0 -63
  79. package/docs/plans/62.huggingface.upload.md +0 -26
  80. package/docs/plans/63.kaggle.upload.md +0 -24
  81. package/docs/plans/64.npm.storage.md +0 -30
  82. package/docs/plans/65.rclone.terabox.md +0 -32
  83. package/docs/plans/66.buckets.and.models.todo.md +0 -14
  84. package/docs/plans/67.database.todo.md +0 -13
  85. package/docs/plans/68.deploy.packages.todo.md +0 -12
  86. package/docs/plans/69.report.human.operator.md +0 -133
  87. package/docs/plans/70.report.brain2qwerty.ems.md +0 -135
  88. package/docs/plans/71.report.hd.infinito.vram.md +0 -155
  89. package/docs/plans/72.plan.hd.infinito.node.md +0 -146
  90. package/docs/plans/73.plan.scifi.repos.md +0 -125
  91. package/docs/plans/74.000.manifesto.v8.flat.2..md +0 -11
  92. package/docs/plans/README.md +0 -489
  93. package/docs/plans/aggregate_platforms.mjs +0 -146
  94. package/docs/plans/examplesession.json +0 -36
  95. package/docs/plans/missing-facts.md +0 -192
  96. package/docs/plans/models.md +0 -64
  97. package/docs/plans/organize.cjs +0 -270
  98. package/docs/plans/platforms.md +0 -2887
  99. package/docs/plans/sites.md +0 -31322
  100. package/docs/sources/farm.py +0 -117
  101. package/docs/sources/html/saddle1.html +0 -132
  102. package/docs/sources/html/saddle2.html +0 -157
  103. package/docs/sources/html/saddle3.html +0 -119
  104. package/docs/sources/html/saddle4.html +0 -144
  105. package/docs/sources/html/saddle5.html +0 -72
  106. package/docs/sources/html/saddle6.html +0 -171
  107. package/docs/sources/html/saddle7.html +0 -236
  108. package/docs/sources/saddle.ts +0 -74
  109. package/docs/sources/schema.prisma +0 -88
  110. package/docs/sources/script.sh +0 -64
  111. package/docs/sources/workflows.yml +0 -458
  112. package/docs/talks1/_body.txt +0 -14
  113. package/docs/talks1/_index.md +0 -15
  114. package/docs/talks1/_screenshot.png +0 -0
  115. package/docs/talks1/assistant-01.md +0 -5
  116. package/docs/talks1/assistant-02.md +0 -5
  117. package/docs/talks1/assistant-03.md +0 -531
  118. package/docs/talks1/assistant-04.md +0 -26
  119. package/docs/talks1/assistant-05.md +0 -774
  120. package/docs/talks1/assistant-06.md +0 -1718
  121. package/docs/talks1/scrape-share.cjs +0 -185
  122. package/docs/talks1/scrape-share.ts +0 -183
  123. package/docs/talks1/user-01.md +0 -3
  124. package/docs/talks1/user-02.md +0 -3
  125. package/docs/talks1/user-03.md +0 -88
  126. package/docs/talks1/user-04.md +0 -3
  127. package/docs/talks1/user-05.md +0 -3
  128. package/docs/talks1/user-06.md +0 -88
  129. package/docs/talks1/user-07.md +0 -88
  130. package/docs/talks2/_body.txt +0 -14
  131. package/docs/talks2/_index.md +0 -16
  132. package/docs/talks2/_screenshot.png +0 -0
  133. package/docs/talks2/assistant-01.md +0 -5
  134. package/docs/talks2/assistant-02.md +0 -5
  135. package/docs/talks2/assistant-03.md +0 -424
  136. package/docs/talks2/assistant-04.md +0 -598
  137. package/docs/talks2/assistant-05.md +0 -1280
  138. package/docs/talks2/assistant-06.md +0 -1227
  139. package/docs/talks2/assistant-07.md +0 -1252
  140. package/docs/talks2/user-01.md +0 -3
  141. package/docs/talks2/user-02.md +0 -3
  142. package/docs/talks2/user-03.md +0 -88
  143. package/docs/talks2/user-04.md +0 -88
  144. package/docs/talks2/user-05.md +0 -88
  145. package/docs/talks2/user-06.md +0 -88
  146. package/docs/talks2/user-07.md +0 -3
  147. package/docs/talks3/_body.txt +0 -467
  148. package/docs/talks3/_index.md +0 -10
  149. package/docs/talks3/_screenshot.png +0 -0
  150. package/docs/talks3/assistant-01.md +0 -417
  151. package/docs/talks3/assistant-02.md +0 -417
  152. package/docs/talks3/assistant-03.md +0 -29
  153. package/docs/talks3/assistant-04.md +0 -727
  154. package/docs/talks3/user-01.md +0 -88
  155. package/docs/talks3/user-02.md +0 -88
  156. package/docs/talks3/user-03.md +0 -3
  157. package/docs/talks3/user-04.md +0 -3
  158. package/docs/talks4/_body.txt +0 -14
  159. package/docs/talks4/_index.md +0 -12
  160. package/docs/talks4/_screenshot.png +0 -0
  161. package/docs/talks4/assistant-01.md +0 -5
  162. package/docs/talks4/assistant-02.md +0 -5
  163. package/docs/talks4/assistant-03.md +0 -35
  164. package/docs/talks4/assistant-04.md +0 -512
  165. package/docs/talks4/assistant-05.md +0 -599
  166. package/docs/talks4/user-01.md +0 -3
  167. package/docs/talks4/user-02.md +0 -3
  168. package/docs/talks4/user-03.md +0 -88
  169. package/docs/talks4/user-04.md +0 -88
  170. package/docs/talks4/user-05.md +0 -7
  171. package/docs/talks5/_body.txt +0 -14
  172. package/docs/talks5/_index.md +0 -13
  173. package/docs/talks5/_screenshot.png +0 -0
  174. package/docs/talks5/assistant-01.md +0 -5
  175. package/docs/talks5/assistant-02.md +0 -5
  176. package/docs/talks5/assistant-03.md +0 -690
  177. package/docs/talks5/assistant-04.md +0 -758
  178. package/docs/talks5/assistant-05.md +0 -974
  179. package/docs/talks5/user-01.md +0 -3
  180. package/docs/talks5/user-02.md +0 -3
  181. package/docs/talks5/user-03.md +0 -105
  182. package/docs/talks5/user-04.md +0 -105
  183. package/docs/talks5/user-05.md +0 -63
  184. package/docs/talks5/user-06.md +0 -105
  185. package/docs/talks6/_body.txt +0 -14
  186. package/docs/talks6/_index.md +0 -9
  187. package/docs/talks6/_screenshot.png +0 -0
  188. package/docs/talks6/assistant-01.md +0 -5
  189. package/docs/talks6/assistant-02.md +0 -5
  190. package/docs/talks6/assistant-03.md +0 -1499
  191. package/docs/talks6/user-01.md +0 -3
  192. package/docs/talks6/user-02.md +0 -3
  193. package/docs/talks6/user-03.md +0 -88
  194. package/docs/talks6/user-04.md +0 -88
  195. package/docs/talks7/_body.txt +0 -14
  196. package/docs/talks7/_index.md +0 -10
  197. package/docs/talks7/_screenshot.png +0 -0
  198. package/docs/talks7/assistant-01.md +0 -5
  199. package/docs/talks7/assistant-02.md +0 -5
  200. package/docs/talks7/assistant-03.md +0 -523
  201. package/docs/talks7/assistant-04.md +0 -617
  202. package/docs/talks7/user-01.md +0 -3
  203. package/docs/talks7/user-02.md +0 -3
  204. package/docs/talks7/user-03.md +0 -105
  205. package/docs/talks7/user-04.md +0 -67
  206. package/docs/talks8/conversa1.txt +0 -1322
  207. package/docs/talks8/conversa2.txt +0 -237
  208. package/docs/talks9/Beyond the Obvious_ 50 Plataformas Auto-Hospedadas de Forja de C/303/263digo para Al/303/251m de Gitea e GitLab.md" +0 -174
  209. package/docs/talks9/De NPM a Multi-Linguagem_ Uma Arquitetura T/303/251cnica para a Execu/303/247/303/243o Integrada de C/303/263digo no Ecossistema Node.js.md" +0 -59
  210. package/docs/talks9/De NPM a VMs Virtuais_ Uma An/303/241lise Arquitet/303/264nica para a Realiza/303/247/303/243o do Ciclo de Vida do Projeto SADDLE.md" +0 -91
  211. package/docs/talks9/Mapeamento da Engrenagem Computacional_ Uma Arquitetura para Execu/303/247/303/243o Isolada e Persist/303/252ncia em Ambientes Distribu/303/255dos.md" +0 -116
  212. package/docs/talks9/O Cen/303/241rio Pr/303/241tico do SADDLE_ Uma An/303/241lise de Viabilidade e Modelo de Ciclo de Vida Integrado.md" +0 -128
  213. package/docs/talks9/README (2).md +0 -489
  214. package/docs/talks9/README.md +0 -198
  215. package/docs/talks9/Viabilidade do Saddle_ Uma An/303/241lise T/303/251cnica da Transforma/303/247/303/243o de Armazenamento Remoto em Mem/303/263ria Computacional.md" +0 -80
  216. package/docs/talks9/conversa.txt +0 -544
  217. package/docs/talks9/other (2).md +0 -39
  218. package/docs/talks9/other.md +0 -57
  219. package/docs/talks9/outro.txt +0 -24
@@ -677,4 +677,59 @@
677
677
  - [x] Update every active 1.8.16 version metadata location to 1.8.17 after the implementation scope is validated.
678
678
  - [x] Update release notes, changelog, registry and artifact documentation with an accurate platform matrix and no unverified image claims.
679
679
  - [x] Validate YAML formatting, package and engine gates, workflow logic, package dry-run, high-severity audit, flat-native validation, and whitespace before creating the 1.8.17 tag.
680
- - [ ] Publish and inspect the 1.8.17 release, all registry workflows, container manifest platforms, post-push label checks, and smoke-test results.
680
+ - [x] Publish and inspect the 1.8.17 release, all registry workflows, container manifest platforms, post-push label checks, and smoke-test results. The public release contains 38 assets; GHCR run `31847952976` verified `linux/amd64`, `linux/arm64`, and `linux/ppc64le` and completed the amd64 label and CLI smoke checks.
681
+
682
+ ## 11. Version 1.8.17 README consolidation and archival request
683
+
684
+ - [x] Inventory every historical `README.md` revision with Git before selecting durable content for the current README. The root history contains 41 revisions and separate platform README paths.
685
+ - [x] Consolidate still-relevant capabilities, installation paths, modes, packaging surfaces, and limits into an external consolidation record while preserving the README scope reference.
686
+ - [x] Update active release references to `1.8.17` while preserving historical release records as history rather than overwriting them.
687
+ - [ ] Remove direct links or filename references to documents inside `docs/` from the README; retain only appropriate root-document references.
688
+ - [x] Inventory the exact user-requested documentation range before any archive operation and exclude the archive itself from recursive inputs.
689
+ - [x] Receive a user-supplied passphrase before creating an encrypted archive; do not generate an unrecoverable undocumented credential.
690
+ - [x] Create and verify the requested encrypted archive only after the passphrase and archive scope are explicit. The verified list contains 199 files and 13 directory entries with unrelated assets excluded.
691
+ - [x] Preserve the current README as a non-deterministic scope reference; record the historical consolidation and active 1.8.17 reference matrix outside that file.
692
+ - [x] Build the encrypted package from `docs/logs`, `docs/plans`, `docs/sources`, and `docs/talks1` through `docs/talks9`, excluding unrelated `docs/assets` content and the generated archive itself.
693
+
694
+ ## 12. Encrypted documentation relocation
695
+
696
+ - [x] Move the verified encrypted package from the repository root into `docs/` without changing its bytes.
697
+ - [x] Remove only `docs/logs`, `docs/plans`, `docs/sources`, and `docs/talks1` through `docs/talks9` after the package is present at its destination.
698
+ - [x] Verify that `docs/assets` and all remaining top-level documentation files survive the removal before committing.
699
+
700
+ ## 13. README version-reference audit
701
+
702
+ - [x] Enumerate every version reference in the current README and every historical root README revision with Git. The root history contains 41 revisions and the current README retains 1.8.14 scope statements.
703
+ - [x] Distinguish active metadata from immutable historical release evidence and identify stale version statements.
704
+ - [x] Preserve the current README as a scope reference while recording the complete capability consolidation outside it.
705
+ - [x] Ensure the external consolidation uses the active 1.8.17 matrix and does not contain direct links to materials inside `docs/`.
706
+ - [x] Validate and commit the version-reference audit without rewriting the README scope document.
707
+
708
+ ## 14. Whole-repository active-version audit
709
+
710
+ - [x] Enumerate every tracked current-file reference to a pre-1.8.17 version and classify it as active metadata, test fixture, changelog, release evidence, research, or scope text.
711
+ - [x] Inspect every historical root README revision for durable behavior not yet represented in the external consolidation.
712
+ - [x] Update any discovered active metadata to 1.8.17 while preserving tests, historical records, and scope references. No old Saddle product metadata remained; the Android build-variable match is an AndroidX dependency.
713
+ - [x] Expand the external consolidation with the complete classification and durable historical behavior, without direct links to internal materials.
714
+ - [x] Validate and commit the whole-repository version audit without reworking the README scope document. The only excluded non-product token is an AndroidX dependency version.
715
+
716
+ ## 15. Direct README re-evaluation request
717
+
718
+ - [ ] Inventory the README's release badge, current-scope statements, historical sections, and direct internal references.
719
+ - [ ] Compare every affected section with all historical root README revisions before deciding whether it can represent 1.8.17 truthfully.
720
+ - [ ] Identify the exact set of active release references that could be updated without rewriting the preserved scope document or corrupting historical evidence.
721
+ - [ ] Validate and record the direct README re-evaluation outcome.
722
+
723
+ ## 16. npm distribution and 1.8.18 planning base
724
+
725
+ - [x] Inspect the package dry-run contents to confirm which README the npm package distributes and whether a separate distribution document exists. The package contains the root README and the extension README; no separate distribution README exists.
726
+ - [x] Map each durable capability from the 41 historical README revisions into the consolidated planning base for 1.8.18.
727
+ - [x] Record any permitted active metadata alignment separately from the immutable README scope reference.
728
+ - [x] Validate and commit the 1.8.18 planning base without replacing the README scope document.
729
+
730
+ ## 17. README publication consolidation request
731
+
732
+ - [x] Build a section-by-section matrix across the 41 root README revisions and the current README.
733
+ - [x] Identify all release references that describe the active package rather than historical evidence or fixture state.
734
+ - [x] Consolidate the README into foundation, engine, productization, API, extension, security, package, development, CLI, repository, history and current-scope sections while preserving historical evidence accurately.
735
+ - [x] Validate the README-facing update through `npm pack --dry-run`; the resulting `@wenathlan/saddle@1.8.17` package contains the root README.
@@ -0,0 +1,152 @@
1
+ # Saddle 1.8.18 — isolated execution and binary-processing plan
2
+
3
+ > This plan contains **920 individual actions**. It uses 92 unchecked work packages, each with ten ordered actions: **inspect, extract, classify, design, implement, test, boundary-test, review, document, and record**. The ten actions apply to the exact subject named by each work package; a package may be marked complete only after all ten actions have evidence.
4
+
5
+ ## Completion guardrails
6
+
7
+ | Rule | Requirement |
8
+ | --- | --- |
9
+ | Truthfulness | A contract may describe, plan, validate, or invoke isolation. It must not claim to provide a VPS, micro-VM, browser isolation, persistent database, GPU, signing, or a remote service unless the caller supplies and verifies the corresponding adapter. |
10
+ | Isolation | Untrusted bytes are never executed by the transport-neutral root. Execution requires a caller-owned isolated-runner adapter and an explicit policy. |
11
+ | Storage | Remote storage is durable state, not literal RAM or VRAM. Materialization remains bounded, measurable, and caller-owned. |
12
+ | Effects | Network, browser, container, filesystem, database, credentials, dispatch, retention, and deletion remain explicit privileged effects. |
13
+ | Compatibility | New contracts are additive, TypeScript-first, dependency-free, serializable, root-first, and use deterministic tests. |
14
+ | Publishing | Release work begins only after all gates pass and every version-bearing manifest agrees on `1.8.18`. |
15
+
16
+ ## 1. Scope source audit — actions 001–100
17
+
18
+ - [ ] **001–010.** Read README source lines 001–200; extract architecture, mode, and naming requirements.
19
+ - [ ] **011–020.** Read README source lines 201–400; extract execution, binary, and isolation requirements.
20
+ - [ ] **021–030.** Read README source lines 401–600; extract storage, memory, and provider assertions.
21
+ - [ ] **031–040.** Read README source lines 601–800; extract runner, workflow, and deployment assertions.
22
+ - [ ] **041–050.** Read README source lines 801–1000; extract agent, browser, scrape, and bot assertions.
23
+ - [ ] **051–060.** Read README source lines 1001–1200; extract protocol, database, and API assertions.
24
+ - [ ] **061–070.** Read README source lines 1201–1400; extract package, native, and extension assertions.
25
+ - [ ] **071–080.** Read README source lines 1401–1600; extract web, playground, and UI assertions.
26
+ - [ ] **081–090.** Read README source lines 1601–1848; extract release, quality, and governance assertions.
27
+ - [ ] **091–100.** Compare the extracted source claims with current 1.8.17 code, tests, manifests, and shipped artifacts.
28
+
29
+ ## 2. Feasibility, terminology, and capability evidence — actions 101–200
30
+
31
+ - [ ] **101–110.** Classify every source claim as shipped, adapter-ready, research-only, deferred, infeasible, or policy-rejected.
32
+ - [ ] **111–120.** Define precise vocabulary for process plan, isolated execution, sandbox adapter, container adapter, micro-VM adapter, and remote runner.
33
+ - [ ] **121–130.** Define precise vocabulary for durable storage, working set, cache, mmap, tmpfs, memory pressure, and materialization.
34
+ - [ ] **131–140.** Define precise vocabulary for binary inspection, binary transform, binary execution, binary artifact, and binary provenance.
35
+ - [ ] **141–150.** Define precise vocabulary for browser transport, browser session, browser isolation, browser action, and browser evidence.
36
+ - [ ] **151–160.** Define precise vocabulary for edge processing, third-party runner, provider chain, job lease, and artifact boundary.
37
+ - [ ] **161–170.** Define a claim-evidence schema that distinguishes declared capability from verified capability and observed result.
38
+ - [ ] **171–180.** Define a capability receipt schema for platform, architecture, isolation mechanism, limits, and adapter identity.
39
+ - [ ] **181–190.** Define a policy vocabulary for allowed, denied, approval-required, unknown, expired, and unsupported execution requests.
40
+ - [ ] **191–200.** Document the non-goals: no false VPS, no hidden credentials, no arbitrary code execution in the root, and no quota evasion.
41
+
42
+ ## 3. Execution-policy contracts — actions 201–300
43
+
44
+ - [ ] **201–210.** Design the serializable execution-request contract with input reference, target, policy, and artifact destination.
45
+ - [ ] **211–220.** Design the serializable execution-policy contract with network, filesystem, process, time, memory, and output limits.
46
+ - [ ] **221–230.** Design the serializable execution-plan contract that separates planning from privileged execution.
47
+ - [ ] **231–240.** Design the serializable execution-receipt contract for adapter identity, limits, timings, exit classification, and artifacts.
48
+ - [ ] **241–250.** Design the serializable execution-evidence contract for hashes, logs, retention intent, and verification state.
49
+ - [ ] **251–260.** Design the isolated-runner adapter interface without importing Docker, Firecracker, Playwright, or provider SDKs in the root.
50
+ - [ ] **261–270.** Design the cancellation and unknown-remote-state contract with no false rollback claims.
51
+ - [ ] **271–280.** Design the admission-control contract for queue budget, concurrency budget, working-set budget, and execution quota.
52
+ - [ ] **281–290.** Design the explicit approval token and consent correlation contract for privileged execution requests.
53
+ - [ ] **291–300.** Design deterministic fixture shapes for accepted, denied, expired, unsupported, cancelled, and unknown execution states.
54
+
55
+ ## 4. Binary inspection and transformation contracts — actions 301–400
56
+
57
+ - [ ] **301–310.** Define a binary-source contract for inline bytes, durable artifact references, and caller-owned streams.
58
+ - [ ] **311–320.** Define bounded binary metadata inspection based on magic bytes, size, digest, and declared media type.
59
+ - [ ] **321–330.** Define binary classification results for archive, executable, document, image, model, unknown, and malformed input.
60
+ - [ ] **331–340.** Define the binary-transform plan contract with deterministic input, options, cache identity, and output expectations.
61
+ - [ ] **341–350.** Define the transform adapter interface for caller-owned WASM, native, container, or remote execution paths.
62
+ - [ ] **351–360.** Define archive-inspection contracts that list entries and limits without extracting untrusted content.
63
+ - [ ] **361–370.** Define archive-extraction plans that require a caller-owned extraction adapter and explicit path controls.
64
+ - [ ] **371–380.** Define binary-output verification for digest, byte count, media type, expected structure, and provenance.
65
+ - [ ] **381–390.** Define binary-processing failure taxonomy for malformed, oversized, unsupported, denied, timeout, and verification failure.
66
+ - [ ] **391–400.** Define deterministic binary fixtures and fuzz boundaries without storing unsafe executable payloads in the repository.
67
+
68
+ ## 5. Working-set, storage, and materialization contracts — actions 401–500
69
+
70
+ - [ ] **401–410.** Define working-set admission estimates for byte size, range support, locality, and required transforms.
71
+ - [ ] **411–420.** Define bounded range materialization plans for local, remote, chunked, and content-addressed storage adapters.
72
+ - [ ] **421–430.** Define cache identity, cache freshness, cache evidence, and caller-owned eviction plans.
73
+ - [ ] **431–440.** Define temporary materialization lifecycle states from planned through verified cleanup intent.
74
+ - [ ] **441–450.** Define storage capability receipts for range reads, writes, integrity checks, regions, and retention constraints.
75
+ - [ ] **451–460.** Define integrity verification for chunks, manifests, content addresses, and reconstructed binary artifacts.
76
+ - [ ] **461–470.** Define storage-pool policy for primary, mirror, fan-out, quorum, repair planning, and no-background-retry limits.
77
+ - [ ] **471–480.** Define memory-pressure decisions that remain declarative and never claim local or remote RAM ownership.
78
+ - [ ] **481–490.** Define storage-to-execution handoff records with bytes, hash, policy identity, and recipient adapter identity.
79
+ - [ ] **491–500.** Define deterministic tests for working-set budgets, range support, corrupt members, and cleanup-plan generation.
80
+
81
+ ## 6. Runner, provider-chain, and remote-isolation adapters — actions 501–600
82
+
83
+ - [ ] **501–510.** Define runner capability declarations for process, container, micro-VM, browser, network, and hardware attributes.
84
+ - [ ] **511–520.** Define runner eligibility evaluation with explicit requirements and no provider-specific implicit fallback.
85
+ - [ ] **521–530.** Define deterministic provider-chain selection from declared capabilities, policy, preference, and evidence.
86
+ - [ ] **531–540.** Define runner dispatch plans that remain effect-free until a caller-provided adapter executes them.
87
+ - [ ] **541–550.** Define GitHub Actions runner adapter requirements without treating an ephemeral workflow as a permanent VPS.
88
+ - [ ] **551–560.** Define Forgejo, Gitea, GitLab, Codeberg, and Woodpecker adapter requirements without embedding tokens or endpoints.
89
+ - [ ] **561–570.** Define container-runner adapter requirements for image identity, read-only input, bounded mounts, resource limits, and receipt evidence.
90
+ - [ ] **571–580.** Define micro-VM adapter requirements for kernel/image provenance, CPU/memory limits, network policy, and lifecycle receipt.
91
+ - [ ] **581–590.** Define remote cancellation, observation, and handoff semantics when provider state is delayed, unknown, or unavailable.
92
+ - [ ] **591–600.** Define deterministic fake-runner tests proving planning, policy denial, adapter selection, and receipt validation without remote execution.
93
+
94
+ ## 7. Agent browser, scrape, and MCP capability contracts — actions 601–700
95
+
96
+ - [ ] **601–610.** Define browser-session capability receipts for transport, isolation claim, headless state, and permitted actions.
97
+ - [ ] **611–620.** Define browser-action request and evidence contracts for navigation, click, type, capture, and download planning.
98
+ - [ ] **621–630.** Define browser isolation requirements that require a caller-owned transport and cannot be inferred from a UI label.
99
+ - [ ] **631–640.** Define snapshot, frame, tab, and context-budget handoffs between browser adapters and agent logic.
100
+ - [ ] **641–650.** Define scrape-request consent, robots, freshness, cache, provenance, and bounded-output policy contracts.
101
+ - [ ] **651–660.** Define crawler frontier, domain budget, retry, queue, and cancellation contracts with explicit persistence ownership.
102
+ - [ ] **661–670.** Define proxy and captcha boundaries as caller-owned evidence or adapters, never bundled bypass behavior.
103
+ - [ ] **671–680.** Define MCP tool declarations for execution planning, binary inspection, capability evaluation, and artifact evidence.
104
+ - [ ] **681–690.** Define SaddleBot task boundaries for explicit operator commands, message provenance, and no autonomous credential handling.
105
+ - [ ] **691–700.** Define deterministic tests for browser evidence, scraper freshness, crawl budgets, MCP serialization, and bot policy rejection.
106
+
107
+ ## 8. Persistence, database, protocol, and observability contracts — actions 701–800
108
+
109
+ - [ ] **701–710.** Define persistence interfaces for execution plans, receipts, evidence, artifacts, approvals, and resumable tasks.
110
+ - [ ] **711–720.** Evaluate Drizzle ORM only as an optional caller-owned persistence adapter, not as a root dependency or required database.
111
+ - [ ] **721–730.** Define relational schema projections for jobs, artifacts, leases, receipts, evidence, approvals, and retention decisions.
112
+ - [ ] **731–740.** Define migration ownership, database credentials, tenancy, and backup policy as application-layer responsibilities.
113
+ - [ ] **741–750.** Define JSON, NDJSON, SSE, block, and MCP representations for execution states and binary-processing progress.
114
+ - [ ] **751–760.** Define event correlation identifiers across job, runner, artifact, approval, browser, and delivery boundaries.
115
+ - [ ] **761–770.** Define redaction controls for logs, metadata, URLs, headers, secrets, and binary-derived strings.
116
+ - [ ] **771–780.** Define health, heartbeat, queue depth, working-set pressure, and adapter freshness observations without false availability claims.
117
+ - [ ] **781–790.** Define audit trail integrity for plan-to-receipt transitions, evidence references, and operator-visible denial reasons.
118
+ - [ ] **791–800.** Define deterministic persistence-adapter tests using in-memory fakes and no mandatory database server.
119
+
120
+ ## 9. Unified `web/` playground — actions 801–900
121
+
122
+ - [ ] **801–810.** Audit the existing root-first `web/` site, routes, assets, build script, and deployment-neutral base-path behavior.
123
+ - [ ] **811–820.** Define the playground information architecture for capability planning, binary inspection, execution policy, receipt viewing, and integration guidance.
124
+ - [ ] **821–830.** Define a browser-only demonstration model that uses local fixtures and does not execute uploaded or remote binaries.
125
+ - [ ] **831–840.** Define a playground execution-plan form with explicit policy fields, bounded input options, and denial explanations.
126
+ - [ ] **841–850.** Define a playground binary-inspection form limited to metadata and caller-selected safe sample fixtures.
127
+ - [ ] **851–860.** Define a playground storage-to-working-set visualization that explains stages and limits without claiming RAM conversion.
128
+ - [ ] **861–870.** Define a playground runner-selection view that compares declared capabilities and leaves dispatch disabled without an adapter.
129
+ - [ ] **871–880.** Define a playground browser and scrape view that displays evidence boundaries, consent needs, and caller-owned transport requirements.
130
+ - [ ] **881–890.** Define a playground integration view for library import, adapters, database option, container option, and hosted-operation prerequisites.
131
+ - [ ] **891–900.** Define responsive, accessible, deterministic UI tests and static build verification for every new playground state.
132
+
133
+ ## 10. Security, quality, packaging, and 1.8.18 release — actions 901–920
134
+
135
+ - [ ] **901–910.** Perform the 1.8.18 threat-model review for untrusted bytes, remote dispatch, archive handling, secrets, browser actions, SSRF, and provider boundaries.
136
+ - [ ] **911–920.** Run final source, test, package, native, documentation, version, artifact, release-note, and registry-readiness gates before creating any 1.8.18 tag.
137
+
138
+ ## 11. Unified internal API architecture — actions 921–970
139
+
140
+ - [x] **921–930.** Define internal API boundaries for gateway, planner, materializer, executor, persistence, and receipt projection within the single `web/` surface.
141
+ - [x] **931–940.** Define a hard default policy that rejects user-hardware access, local execution, remote dispatch, paid providers, and free-tier providers until the caller explicitly supplies an adapter and approval.
142
+ - [x] **941–950.** Define in-memory demonstration adapters for the six internal API boundaries that are deterministic, do not call the network, and do not execute supplied bytes.
143
+ - [x] **951–960.** Define browser-facing internal API request and response envelopes for plan creation, policy evaluation, binary metadata inspection, and receipt projection.
144
+ - [x] **961–970.** Define test cases proving that a missing adapter, unapproved provider, remote URL, local hardware target, or binary execution request yields a structured denial without side effects.
145
+
146
+ ## 12. Final version alignment and commit — actions 971–980
147
+
148
+ - [x] **971–980.** Align active npm, lockfile, Maven, NuGet, RubyGems, extension, desktop, Capacitor, crawler and iOS metadata to `1.8.18`; create the candidate release note, run the release gates, inspect the npm package, configure `iakadion` authorship, commit, and push the verified source revision.
149
+
150
+ ## Evidence ledger
151
+
152
+ Every completed ten-action work package must link its evidence to the final release record: source revision or research URL, design note, code path, deterministic test name, boundary test, documentation update, validation command, result, reviewer state, and disposition. The 970 actions deliberately start with factual classification; implementation may proceed only for capabilities that are both technically feasible and expressible without false infrastructure claims.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Saddle browser bridge",
4
- "version": "1.8.17",
4
+ "version": "1.8.18",
5
5
  "description": "User initiated page snapshots through the Saddle browser contract.",
6
6
  "minimum_chrome_version": "110",
7
7
  "permissions": ["activeTab", "scripting", "storage"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenathlan/saddle",
3
- "version": "1.8.17",
3
+ "version": "1.8.18",
4
4
  "description": "binary computing engine that turns distributed storage into a publishable working set",
5
5
  "type": "module",
6
6
  "private": false,
@@ -83,7 +83,8 @@
83
83
  "./surface-requirements": "./dist/surfaces/requirements.js",
84
84
  "./worker": "./dist/runtime/worker.js",
85
85
  "./binary-archive": "./dist/binary/archive.js",
86
- "./binary-transform": "./dist/binary/transform.js"
86
+ "./binary-transform": "./dist/binary/transform.js",
87
+ "./isolation": "./dist/isolation/contracts.js"
87
88
  },
88
89
  "files": [
89
90
  "dist",
File without changes
@@ -1,50 +0,0 @@
1
- # Index
2
-
3
- Project: **UKA** — computer use agent, sandbox for AI and captcha bypass. Super bot with computational memory. Package `@wenathlan/saddle`. Domain acquired.
4
-
5
- Theme: computer use, bypasses, captcha, sandbox for AI, container for AI, multi-platform bot, storage-to-compute memory transformation.
6
-
7
- ## Planning Documents (`docs/plans`)
8
-
9
- | # | File | Subject |
10
- |---|------|---------|
11
- | 01 | [architecture.md](./01.architecture.md) | General system architecture |
12
- | 02 | [research.computer.use.md](./02.research.computer.use.md) | Research: computer use agents 2026 |
13
- | 03 | [research.captcha.bypass.md](./03.research.captcha.bypass.md) | Research: hcaptcha cloudflare recaptcha bypass |
14
- | 04 | [research.sandbox.ai.md](./04.research.sandbox.ai.md) | Research: virtual sandbox and containers for AI |
15
- | 05 | [capture.platform.md](./05.capture.platform.md) | Browser movement capture platform |
16
- | 06 | [dependencies.md](./06.dependencies.md) | 60+ project dependencies |
17
- | 07 | [captcha.test.page.md](./07.captcha.test.page.md) | Test page with hcaptcha cloudflare |
18
- | 08 | [production.infra.md](./08.production.infra.md) | Production infra (vercel/netlify) and sandbox backend |
19
- | 09 | [database.schema.md](./09.database.schema.md) | Database schema (drizzle/prisma/mysql2) |
20
- | 10 | [cloudinary.storage.md](./10.cloudinary.storage.md) | Data storage on cloudinary |
21
- | 11 | [movement.logs.json.md](./11.movement.logs.json.md) | JSON movement log format (brave) |
22
- | 12 | [research.atlas.agent.browser.md](./12.research.atlas.agent.browser.md) | Atlas: agent browser repos with same classification |
23
- | 28 | [action.plan.md](./28.action.plan.md) | Action plan and next steps |
24
-
25
- ## Super Bot Documentation (`docs/plans`)
26
-
27
- | # | File | Subject |
28
- |---|------|---------|
29
- | 45 | [robotarchitecture.md](./45.robotarchitecture.md) | Super bot architecture overview |
30
- | 37 | [deploystrategy.md](./37.deploystrategy.md) | Deploy strategies (Netlify, Vercel, CI/CD, Docker, VM) |
31
- | 36 | [computational.memory.md](./36.computational.memory.md) | Storage-to-compute memory transformation system |
32
- | 39 | [multi.platform.bot.md](./39.multi.platform.bot.md) | Multi-platform bot (GitHub, GitLab, Forgejo, Gitea, Discord) |
33
- | 40 | [npm.publish.md](./40.npm.publish.md) | NPM package publishing (`@wenathlan/saddle`) |
34
- | 46 | [scdnintegration.md](./46.scdnintegration.md) | SCDN integration for assets and deployment |
35
- | 44 | [reference.md](./44.reference.md) | Reference index for all saddle documentation |
36
- | 33 | [bots.codigo.revisao.md](./33.bots.codigo.revisao.md) | Best AI code review bots (research) |
37
- | 32 | [bots.automacao.computacional.md](./32.bots.automacao.computacional.md) | Best computational automation bots (research) |
38
- | 34 | [bots.seguranca.cicd.md](./34.bots.seguranca.cicd.md) | Bot research (security + CI/CD) |
39
-
40
- ## Folders
41
-
42
- - `docs/plans/` — planning and research (this index)
43
- - `docs/talks/` — decision transcripts
44
- - `docs/logs/` — JSON movement logs from Brave (`examplesession.json`)
45
- - `tests/` — unit tests (`examples/`, `output/`, `scripts/`)
46
- - `web/` — production site, deployed to Vercel or Netlify (files at root, no `src/`)
47
-
48
- ## Phase Decision
49
-
50
- We are in **planning + research**. Platform implementation starts **only after user approval** (see `28.action.plan.md`).
@@ -1,86 +0,0 @@
1
- # 01 Architecture
2
-
3
- ## Goal
4
-
5
- Build **UKA**, a computer use agent for ai that:
6
-
7
- 1. Captures human movement in the browser (virtual mouse, virtual arrow, click, rotation, coordinates) in a real environment (brave / chromium).
8
- 2. Exports movement as json logs to `docs/logs/`.
9
- 3. Runs in a virtual sandbox to isolate ai agent execution.
10
- 4. Faces strong captchas (hcaptcha, cloudflare turnstile, recaptcha) in controlled tests, opening test pages in brave.
11
- 5. Persists data in production via a deployed site (vercel/netlify) plus db (drizzle/prisma/mysql2) plus cloudinary.
12
-
13
- ## Architecture rules (skill arch)
14
-
15
- - No `src/` folder. Logic lives at the root of `web/`.
16
- - No vercel functions. No netlify functions. Use prisma, drizzle, mysql2, socket.
17
- - No localhost. Host is parametrized (`host`). Ports randomized then locked.
18
- - Files lowercase. No underscore. No hyphen. English docs. Jsdoc comments.
19
- - Logic grouped. Up to 20 related logics per file.
20
- - Runs as a library across modes (computer, browser, cli, binary, headless, etc).
21
-
22
- ## Atlas (the browser)
23
-
24
- Atlas is the real browser component of UKA. It works across the 30 modes from the
25
- architecture skill (computer, browser, cli, binary, headless, etc) and its primary
26
- job is to bypass hcaptcha so the agent can act. It serves both the agent and the
27
- sandbox, and talks to our own database on vercel/netlify. See
28
- [12 research atlas agent browser](./12-research-atlas-agent-browser.md) for the
29
- prior-art survey and the p1 stealth / p2 vlm / p3 token fallback layering.
30
-
31
- ## Components
32
-
33
- ```
34
- atlas (web/atlas.js + deps)
35
- - real browser across 30 modes
36
- - stealth layer + hcaptcha bypass (vlm or token api fallback)
37
- - feeds agent and sandbox
38
-
39
- capture ui (web/*.html + web/capture.js)
40
- - virtual arrow / virtual mouse injected via cdp
41
- - captures click, drag, scroll, coordinates, rotation
42
- - exports json to docs/logs/
43
-
44
- sandbox (web/ + @vercel/sandbox)
45
- - isolated firecracker microvm per session/agent
46
- - chrome/brave ready, novnc streaming
47
- - api https (post/get) to the deployed site
48
-
49
- production backend (web/, deployed to vercel/netlify)
50
- - open node server (hono/express), not platform functions
51
- - db (drizzle + mysql2 + prisma schema)
52
- - cloudinary for assets and replays
53
- ```
54
-
55
- ## Main flows
56
-
57
- ### A. Capture (local/dev)
58
- 1. Open brave via playwright/chromium with `chrome.debugger` (cdp).
59
- 2. Inject svg cursor sprite plus event listeners (`Input.dispatchMouseEvent`).
60
- 3. Record each event with timestamp, type, coordinates, target, rng seed.
61
- 4. Compact trajectories and export to `docs/logs/<session>.json`.
62
-
63
- ### B. Captcha test
64
- 1. Open test page (`tests/examples/hcaptchatest.html` or a real site).
65
- 2. Run solver (hcaptcha challenger / vision) or record manual bypass.
66
- 3. Save evidence (screenshot, token, log) to `tests/output/`.
67
-
68
- ### C. Production
69
- 1. Agent calls the deployed site api (`web/`).
70
- 2. Backend writes session to db (drizzle/mysql2) and assets to cloudinary.
71
- 3. Logs and replays available via get https.
72
-
73
- ## Key technologies (details in `06-dependencies.md`)
74
-
75
- - Browser automation: `playwright`, `puppeteer`, `chromium-bidi`, `@playwright/test`
76
- - Human mouse: `bezier-js`, `@napi-rs/canvas`, `d3`
77
- - Ai / vision: `ai`, `@ai-sdk/*`, `@xenova/transformers`, `onnxruntime-web`, `tesseract.js`
78
- - Sandbox: `@vercel/sandbox`, `vercel`
79
- - Server: `hono`, `express`, `cors`, `helmet`, `socket.io` (socket realtime)
80
- - Db: `drizzle-orm`, `mysql2`, `@prisma/client`, `prisma`
81
- - Storage: `cloudinary`
82
- - Validation: `zod`, `valibot`, `arktype`
83
-
84
- ## Next steps
85
-
86
- See `action-plan.md`. Implementation starts after user approval.
@@ -1,58 +0,0 @@
1
- # 02 — Pesquisa: Computer Use Agents (2026)
2
-
3
- ## Estado da arte
4
-
5
- Em 2026, *computer-use agents* deixaram de ser protótipos e entraram em produção para
6
- tarefas restritas e supervisionadas. Principais provedores e frameworks:
7
-
8
- - **Anthropic Computer Use** (`computer_use_20251124`): ferramentas `computer` (mouse/teclado),
9
- `text_editor`, `bash`. Recomenda rodar em **VMs/containers com privilégios mínimos**.
10
- - **OpenAI Operator / CUA**: 87% de sucesso em sites JS complexos; 58% no WebArena.
11
- - **Google Project Mariner**: 83.5% WebVoyager, 84% ScreenSpot.
12
- - **Microsoft UFO²**: funde Windows UI Automation + OmniParser (visão).
13
- - **browser-use** (open source): 89.1% WebVoyager (abordagem híbrida DOM + visão).
14
-
15
- ### Benchmarks
16
- - **OSWorld:** humano 72.36% vs SOTA ~12–20% (desktop ainda imaturo).
17
- - **WebArena:** tops ~71%, produção na faixa 50–60%.
18
- - **WebVoyager:** browser-use 89.1% (híbrido).
19
-
20
- ### Conclusão de arquitetura
21
- Ganham abordagens **híbridas**:
22
- 1. Raciocínio por **DOM / accessibility tree** para elementos estruturados.
23
- 2. **Visão** (VLM) para layouts não-padrão, canvas, imagens.
24
- 3. **Scripts determinísticos** para validação e replay.
25
- 4. **Verificação** (screenshot antes/depois, diff de elementos).
26
-
27
- ## Projetos de referência encontrados
28
-
29
- | Projeto | Diferencial relevante para UKA |
30
- |---------|-------------------------------|
31
- | [agentbrowser](https://github.com/AshtonVaughan/agentbrowser) | Cursor visível humano via CDP, trilha SVG, trajetórias Bézier com jitter/overshoot, **traces JSONL** em `~/.agentbrowser/traces/`, replay determinístico por seed, bypass de Cloudflare/OneTrust |
32
- | [humanjs](https://github.com/totigm/humanjs) | Playwright humanizado: curvas Bézier, ritmo de digitação, scroll, **personalidades** (careful/fast/distracted/precise), gravador → JSON timeline, MCP server |
33
- | [human-browser-use](https://github.com/andyless/human-browser-use) | Extensão p/ browser-use: trajetória Bézier, typing lognormal, scroll inercial, stealth fingerprint (`navigator.webdriver`, WebGL, canvas) |
34
- | [agentic-stealth-browser](https://github.com/shanewas/agentic-stealth-browser) | TLS spoofing (JA3/JA4), fingerprint, recovery chain (detecta captcha → rotaciona proxy), account warming |
35
- | [mantis](https://github.com/mercurialsolo/mantis) | Agent perception-reasoning-action em Xvfb+Chrome+xdotool (sem fingerprint Playwright), vídeo screencast, deploy em Baseten/Modal/EKS/GKE |
36
- | [win-pilot-mcp](https://github.com/omidmanoochehri/win-pilot-mcp) | MCP Windows computer-use: screen capture, OCR, mouse humano, logging estruturado, replay de macros |
37
- | [cloakbrowser-human](https://github.com/evelaa123/cloakbrowser-human) | Wrapper Playwright que adiciona camada **comportamental** (mouse Bézier, typing, scroll) — complementa stealth de fingerprint |
38
-
39
- ## Padrões de movimento humano (extraídos da pesquisa)
40
-
41
- - **Trajetória do mouse:** curva Bézier única, velocidade variável por arc-length:
42
- - 0–5%: ramp-up (0.3x → 2.5x)
43
- - 5–75%: cruise (2.3–2.5x) com variação senoidal
44
- - 75–100%: ease-out cúbico (2.5x → 0.3x)
45
- - sub-pixel drift final (σ 0.3–1.5px)
46
- - duração via **Lei de Fitts**: `0.05 + 0.07*log2(1 + distance/20)` s
47
- - **Overshoot:** ~15% de chance, auto-aumenta em movimentos longos.
48
- - **Typing:** inter-key delay lognormal (μ=4.17, σ=0.3 → ~65ms), bigram speedup, 2% typo.
49
- - **Scroll:** wheel events com acel/decel, overshoot, settle delay.
50
- - **Stealth:** `navigator.webdriver → undefined`, spoof de plugins/WebGL/canvas, flags de launch.
51
-
52
- ## Aplicação no UKA
53
-
54
- - Implementar `HumanCursor` (SVG overlay + CDP `Input.dispatchMouseEvent`) inspirado no
55
- agentbrowser/humanjs, com trajetórias Bézier + jitter + overshoot determinísticas por seed.
56
- - Gravar **todos os eventos** como `SessionEvent` tipado → exportar JSON para `docs/logs/`.
57
- - Usar replay determinístico (seed) para testes reprodutíveis.
58
- - Tratar GUI como imagem (visão) + DOM/accessibility para alvos estruturados.
@@ -1,68 +0,0 @@
1
- # 03 — Pesquisa: hCaptcha / Cloudflare / reCAPTCHA Bypass
2
-
3
- ## Contexto
4
-
5
- O UKA precisa **testar** a capacidade do computer-use de enfrentar captchas fortes. A
6
- pesquisa abaixo levanta abordagens open-source e comerciais (uso edUKAcional / automação
7
- supervisionada).
8
-
9
- ## hCaptcha
10
-
11
- ### hcaptcha-challenger (QIN2DIM) — referência principal
12
- - Resolve hCaptcha com **LLM multimodal** (sem Tampermonkey, sem serviço anti-captcha 3º).
13
- - Modelos plugáveis (ONNX):
14
- - `image_label_binary` → ResNet ✅
15
- - `image_label_area_select: point` → YOLOv8 ✅
16
- - `image_label_area_select: bounding box` → YOLOv8 segmentation
17
- - `image_drag_drop` → Spatial Chain-of-Thought ✅
18
- - `image_label_multiple_choice` → ViT zero-shot
19
- - Pipeline: `install()` → `AgentT.from_page()` → `handle_checkbox()` → `execute()` loop.
20
- - Deps: `playwright`, `httpx`, `opencv-python`, `pillow`, `loguru`, `pydantic-settings`.
21
-
22
- ### Outros solvers
23
- - **hCaptcha-Solver (Camoufox + Multibot):** usa Camoufox p/ HSW token + Groq vision +
24
- **geração de movimento de mouse realista** (Multibot API). Lida com `image_label_binary`,
25
- `area_select`, `drag_drop`. Requer proxy.
26
- - **maximedrn/hcaptcha-solver-python-selenium:** userscript Tampermonkey + Selenium (edUKAcional).
27
- - **auto-captcha-solver / auto-captcha (NopeCHA):** detecta hCaptcha, reCAPTCHA v2/v3,
28
- Cloudflare Turnstile via **API de token NopeCHA**; injeta token automaticamente. Tem MCP
29
- server e CLI. Tipos: hCaptcha ✅, reCAPTCHA v2/v3 ✅, Turnstile ⚠️ (lento).
30
-
31
- ## Cloudflare (Turnstile / interstitials)
32
-
33
- - **agentic-stealth-browser** passa Cloudflare interstitial usando TLS spoofing + fingerprint
34
- + comportamento humano + **recovery chain** (detecta captcha → rotaciona proxy/sessão → retry).
35
- - **auto-captcha** resolve Turnstile via NopeCHA (fila lenta, requer proxy em produção).
36
- - **captcha-solver (CloakBrowser + 2Captcha/CapSolver):** Turnstile resolvido em ~5s via
37
- ClickSolver (free) ou fallback pago.
38
-
39
- ## reCAPTCHA
40
-
41
- - v2/v3/Enterprise: cobertos por hcaptcha-challenger (via proxy), auto-captcha (NopeCHA),
42
- 2Captcha, CapSolver.
43
-
44
- ## Capes (tipos suportados por 2Captcha/CapSolver — 30+)
45
-
46
- reCAPTCHA v2/v3/Enterprise, Cloudflare Turnstile, hCaptcha, FunCaptcha (Arkose), GeeTest,
47
- KeyCaptcha, Amazon WAF, DataDome, Akamai, Imperva, Friendly, MTCaptcha, Lemin, Cutcaptcha,
48
- Tencent, Yandex, ALTCHA, Prosopo, entre outros.
49
-
50
- ## Camadas de defesa que o UKA deve considerar
51
-
52
- | Camada | O que ataca | Mitigação no UKA |
53
- |--------|-------------|------------------|
54
- | Fingerprint (WebDriver, CDP, headless, GPU) | detecta automação | stealth JS + Brave real/CDP, spoof WebGL/canvas |
55
- | Comportamental (mouse/keyboard/scroll) | analisa padrões | trajetórias Bézier humanas, typing lognormal |
56
- | TLS (JA3/JA4) | identifica cliente | TLS regional / proxy residencial sticky |
57
- | IP reputation | bloqueia faixas | proxies residenciais com sessão sticky |
58
- | Captcha | desafio final | solver VLM (hcaptcha-challenger) ou token API |
59
-
60
- ## Aplicação no UKA
61
-
62
- - Criar `tests/examples/hcaptcha-test.html` (página de teste local) + usar sites reais fortes
63
- (Cloudflare, Google reCAPTCHA demo, hCaptcha demo) no Brave.
64
- - Pipeline de teste: abrir → detectar captcha → resolver (VLM ou token API) → registrar
65
- token/screenshot/log em `tests/output/`.
66
- - **Não** usar para abuso: foco em automação supervisionada e pesquisa.
67
- - Dependências relevantes: `playwright`, `puppeteer`, `@xenova/transformers`,
68
- `onnxruntime-web`, `tesseract.js`, `cloudinary` (evidências).
@@ -1,52 +0,0 @@
1
- # 04 — Pesquisa: Sandbox Virtual e Containers para IA
2
-
3
- ## Por que sandbox?
4
-
5
- Computer-use agents executam código/inputs não confiáveis (saída de LLM, uploads de
6
- usuário). Rodar em sandbox isola a execução, impede acesso ao sistema de produção e limita
7
- recursos. A pesquisa mostra que provedores ladearam para **microVMs Firecracker**.
8
-
9
- ## Vercel Sandbox (opção principal do UKA)
10
-
11
- - Compute primitive para rodar código não confiável com segurança (AI agents, code gen).
12
- - **Firecracker microVM** por sandbox, filesystem e rede próprios, isolamento forte.
13
- - Runtimes: `node26/24/22`, `python3.13`. Default `node24`.
14
- - Cada sandbox roda como `vercel-sandbox` (sudo disponível), working dir `/vercel/sandbox`.
15
- - Startup em **milissegundos**; suporta Docker/FUSE dentro do microVM (privilégio elevado).
16
- - **Credential brokering:** injeta secrets em requests de saída sem expor dentro do VM
17
- (`console.log(process.env)` não vaza a chave).
18
- - **Network policy:** allowlist de domínios, atualizável em runtime.
19
- - SDK JS e Python; CLI. Multi-agent isolation (usuário Linux por agente, grupos p/ compartilhar).
20
-
21
- ### AI SDK Computer Use (vercel-labs) — template de referência
22
- - Next.js + AI SDK + Claude Sonnet 4.5 + **Vercel Sandbox**.
23
- - Snapshot pré-construído com: **Xvnc**, **openbox**, **noVNC + websockify**, **Google
24
- Chrome**, **xdotool + ImageMagick**.
25
- - Fluxo: User ↔ Chat UI ↔ AI SDK ↔ Claude → Vercel Sandbox (desktop via noVNC iframe).
26
- - Ferramentas: `computer` (screenshot/click/type/scroll) + `bash`.
27
- - Env: `ANTHROPIC_API_KEY`, `SANDBOX_SNAPSHOT_ID`, `VERCEL_OIDC_TOKEN`/`VERCEL_TOKEN`.
28
-
29
- ### vercel-labs/agent-browser (serverless)
30
- - CLI Rust nativo; roda agent-browser + Chrome em Vercel Sandbox microVM efêmero.
31
- - Helper `@agent-browser/sandbox/vercel` + `@vercel/sandbox`.
32
-
33
- ### vercel-labs/sandcastle (PoC desktop)
34
- - Desktop Linux web sobre Vercel Sandbox. Stack: Next.js, Tailwind, **Zustand + SWR**,
35
- **Neon Postgres + Drizzle ORM**, `@vercel/sandbox`, code-server, Xpra. Auth password/OAuth.
36
-
37
- ## Outras opções
38
-
39
- - **Modal / Baseten / EKS / GKE** (usados pelo mantis) — containers Docker customizados.
40
- - **Daytona / Cloudflare** — alternativas de sandbox (citadas mas com menos fit p/ TS).
41
- - **Containers Docker locais** (xdotool + Xvfb + Chromium) para dev sem nuvem.
42
-
43
- ## Decisão para o UKA
44
-
45
- - **Produção:** Vercel Sandbox como camada de execução do computer-use; site de controle
46
- deployado em **Vercel** (ou Netlify) (`web/`).
47
- - **Banco:** criado no deploy (Drizzle/LibSQL ou Prisma em Neon/Turso), conforme `09-esquema-banco-dados.md`.
48
- - **Armazenamento:** Cloudinary para assets/replays (`10-cloudinary-storage.md`).
49
- - **Dev local:** Brave real via Playwright/CDP para a plataforma de captura (`05-plataforma-captura-movimentos.md`).
50
- - **Comunicação:** requests **POST/GET HTTPS** do agente → site deployado → DB + Cloudinary.
51
- - Dependências: `@vercel/sandbox`, `vercel`, `@netlify/blobs`, `@netlify/functions`,
52
- `hono`/`express`, `drizzle-orm`, `@libsql/client`, `socket.io`.
@@ -1,57 +0,0 @@
1
- # 05 Capture Platform
2
-
3
- ## Purpose
4
-
5
- Build a web platform that captures the user/agent movement inside the browser (focus: brave) and exports everything as json logs to `docs/logs/`. This is the base to train and replay the UKA computer use with human behavior.
6
-
7
- ## Core concepts
8
-
9
- - Virtual mouse / virtual arrow: an svg cursor injected in the page (via cdp init script) that follows the real movement and draws a trail and click ripple.
10
- - Event capture: click, double click, drag, scroll, coordinates (x,y), rotation (scroll/wheel angle), timing, target (selector/role/text), deterministic seed.
11
- - Export: compacted json in `docs/logs/<session>.json`.
12
-
13
- ## Platform architecture (root based, no src)
14
-
15
- ```
16
- web/ (capture frontend)
17
- ├─ index.html # capture page
18
- ├─ capture.js # injects svg cursor + listeners
19
- ├─ recorder.js # collects sessionevent to buffer
20
- └─ exporter.js # serializes to docs/logs/<session>.json
21
-
22
- (root logic files, grouped per skill arch)
23
- ├─ humancursor.js # bezier + jitter + overshoot (cdp Input.dispatchMouseEvent)
24
- ├─ trajectory.js # path generator (ghost-cursor / humanjs inspired)
25
- ├─ fingerprint.js # stealth patches webgl/canvas/audio
26
- ├─ recorder.js # json event stream
27
- ├─ replay.js # deterministic replay by seed
28
- └─ runcapture.js # entrypoint (opens brave via cdp)
29
- ```
30
-
31
- ## Sessionevent format
32
-
33
- ```ts
34
- type SessionEvent =
35
- | { t: number; type: "move"; x: number; y: number; tx: number; ty: number }
36
- | { t: number; type: "click"; x: number; y: number; button: "left"|"right"; target?: string }
37
- | { t: number; type: "drag"; x0: number; y0: number; x1: number; y1: number }
38
- | { t: number; type: "scroll"; dx: number; dy: number; angle: number }
39
- | { t: number; type: "key"; key: string; target?: string }
40
- | { t: number; type: string; [k: string]: unknown };
41
- ```
42
-
43
- ## How it works (summary)
44
-
45
- 1. Open brave via playwright/chromium with `chrome.debugger` (cdp).
46
- 2. Inject svg cursor sprite plus event listeners (`Input.dispatchMouseEvent`).
47
- 3. Move the cursor humanly (bezier with jitter/overshoot), all via cdp, not locators.
48
- 4. Each action emits a `SessionEvent` with timestamp, coordinates, target, seed.
49
- 5. Compact trajectories (collapse move runs) and export to `docs/logs/`.
50
-
51
- ## Relation with logs
52
-
53
- The final json format of `docs/logs/` files is detailed in `11-movement-logs-json.md`. An example log is at `docs/logs/examplesession.json`.
54
-
55
- ## Dependencies involved
56
-
57
- `playwright`, `puppeteer`, `chromium-bidi`, `bezier-js`, `@napi-rs/canvas`, `d3`, `socket.io-client`, `zod` (event validation).