humanish 0.133.1 → 0.135.0

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 (68) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/actors/computer-use/loop/actions.d.ts +2 -0
  3. package/dist/actors/computer-use/loop/actions.js +11 -5
  4. package/dist/actors/computer-use/loop/backstop.d.ts +23 -2
  5. package/dist/actors/computer-use/loop/backstop.js +40 -7
  6. package/dist/actors/computer-use/loop/session.d.ts +3 -0
  7. package/dist/actors/computer-use/loop/session.js +3 -0
  8. package/dist/actors/computer-use/loop/streak.d.ts +18 -0
  9. package/dist/actors/computer-use/loop/streak.js +47 -0
  10. package/dist/actors/computer-use/loop/types.d.ts +5 -1
  11. package/dist/actors/computer-use/loop/watch.d.ts +22 -4
  12. package/dist/actors/computer-use/loop/watch.js +83 -27
  13. package/dist/actors/computer-use/loop.js +18 -6
  14. package/dist/actors/contract.d.ts +3 -1
  15. package/dist/analysis/automatic-config.js +5 -3
  16. package/dist/analysis/execute.js +2 -1
  17. package/dist/analysis/service.js +5 -3
  18. package/dist/analysis/source.d.ts +6 -0
  19. package/dist/analysis/source.js +15 -13
  20. package/dist/cli/commands/run-signals.js +6 -2
  21. package/dist/evidence/encoded-text.d.ts +13 -3
  22. package/dist/evidence/encoded-text.js +88 -25
  23. package/dist/observer/page-data.d.ts +6 -0
  24. package/dist/observer/page-data.js +34 -7
  25. package/dist/observer/participant-items.d.ts +15 -1
  26. package/dist/observer/participant-items.js +4 -3
  27. package/dist/observer/render.js +5 -3
  28. package/dist/observer/run-routes.js +4 -4
  29. package/dist/observer-app.html +4 -4
  30. package/dist/routes/computer-use/bundle-parts.d.ts +9 -0
  31. package/dist/routes/computer-use/bundle-parts.js +24 -4
  32. package/dist/routes/computer-use/fanout-bundle.js +8 -6
  33. package/dist/routes/computer-use/participant-runs.js +2 -2
  34. package/dist/routes/computer-use/single-bundle.js +5 -5
  35. package/dist/routes/scripted/setup.js +62 -17
  36. package/dist/routes/shared-world/bundle.js +3 -3
  37. package/dist/routes/shared-world/participant-specs.js +2 -2
  38. package/dist/routes/terminal/bundle.js +2 -2
  39. package/dist/run/locate.d.ts +8 -2
  40. package/dist/run/locate.js +10 -4
  41. package/dist/run/run.js +22 -5
  42. package/dist/run/sandbox-ids.d.ts +4 -3
  43. package/dist/run/sandbox-ids.js +8 -6
  44. package/dist/run/stream-trace.d.ts +8 -2
  45. package/dist/run/stream-trace.js +13 -7
  46. package/dist/run-study.d.ts +3 -3
  47. package/dist/run-study.js +3 -3
  48. package/dist/study/bundle-estimate.d.ts +0 -2
  49. package/dist/study/bundle-estimate.js +33 -33
  50. package/dist/study/config.d.ts +4 -3
  51. package/dist/study/config.js +8 -5
  52. package/dist/study/parse/actors.d.ts +6 -0
  53. package/dist/study/parse/actors.js +14 -0
  54. package/dist/study/parse/subject-state.js +4 -4
  55. package/dist/study/participant-assignment.js +2 -2
  56. package/dist/study/persona.d.ts +7 -1
  57. package/dist/study/persona.js +13 -5
  58. package/dist/study/plan-base.js +4 -3
  59. package/dist/verify/artifacts.d.ts +7 -1
  60. package/dist/verify/artifacts.js +15 -4
  61. package/dist/verify/verify.js +29 -8
  62. package/docs/architecture/actor-contract.md +3 -1
  63. package/docs/architecture/observer.md +24 -7
  64. package/docs/architecture/state-driven-executor.md +7 -4
  65. package/docs/contracts/run-bundle.md +16 -2
  66. package/docs/contracts/study-analysis.md +8 -5
  67. package/docs/decisions/0002-observer-is-one-self-contained-file.md +3 -3
  68. package/package.json +1 -1
@@ -194,8 +194,10 @@ item's text. A run.json past 16 MiB is refused as `ANALYSIS_SOURCE_TOO_LARGE`, a
194
194
  a run.json or trace without the fields analysis reads as `ANALYSIS_SOURCE_INVALID`;
195
195
  each message names the file, says why, and says no request was sent. Analysis
196
196
  verifies the run before it reads a trace, so a trace that does not match its
197
- index in run.json, or whose index records more than 32 MiB, fails verify and
198
- `humanish analyze` reports `ANALYSIS_VERIFY_FAILED`. Count and text budgets are
197
+ index in run.json fails verify and `humanish analyze` reports
198
+ `ANALYSIS_VERIFY_FAILED`. A trace past 32 MiB leaves the run `local_only`, and
199
+ analysis refuses it as `ANALYSIS_SOURCE_TOO_LARGE`, naming the participant and
200
+ the file. Count and text budgets are
199
201
  distributed across included participants, with unused capacity from short
200
202
  sessions available to longer ones. Reclaimed capture slots go first to eligible
201
203
  participants with fewer admitted images, including those deferred by their
@@ -285,9 +287,10 @@ value inside a bracketed span, such as `[REDACTED_373433393231]`, is found too:
285
287
  humanish writes (`[REDACTED_SECRET]`, `[REDACTED_LOCAL_PATH]`, `[REDACTED_RUNTIME_PATH]`,
286
288
  `[REDACTED_PROMPT_TEXT]`, `[REDACTED_LOBBY_CODE]`) are left as they are. If another reading of
287
289
  the stored field still holds a value (decoded once more, with percent escapes as UTF-8, with
288
- transfer escapes expanded, or with Latin-1 characters read as UTF-8 bytes), as for a value encoded
289
- twice, the whole field becomes `[REDACTED_SECRET]`. A known value in any of
290
- these forms in an ID, enum or reference refuses the response.
290
+ transfer escapes expanded, with Latin-1 characters read as UTF-8 bytes, with HTML references
291
+ left as written, or with only HTML references decoded), as for a value encoded twice, the whole
292
+ field becomes `[REDACTED_SECRET]`. A known value in any of these forms in an ID, enum or
293
+ reference refuses the response.
291
294
 
292
295
  When a reviewer amends a finding, its headline and experience describe the replaced claim.
293
296
  Text output, the Observer and feedback drafts show the reviewer's claim in their place and say the
@@ -13,9 +13,9 @@ exactly those cases.
13
13
  The `observer/` workspace builds with Vite into a single HTML file with fonts inlined and no
14
14
  network references. The root build copies it to `dist/observer-app.html`. `renderObserverHtml`
15
15
  is the one path every surface (observe, observe --all, watch, studies) uses; it injects the run's
16
- `humanish.observer-data.v3` snapshot into that file, with the participants' trace items beside it
17
- gzip-compressed (docs/architecture/observer.md). There is no second renderer and no feature
18
- flag; rolling back means pinning an older package version.
16
+ `humanish.observer-data.v3` snapshot into that file, with each participant's trace items beside
17
+ it, gzip-compressed on their own (docs/architecture/observer.md). There is no second renderer and
18
+ no feature flag; rolling back means pinning an older package version.
19
19
 
20
20
  ## Consequences
21
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "humanish",
3
- "version": "0.133.1",
3
+ "version": "0.135.0",
4
4
  "description": "Synthetic user research for apps, CLIs, and agent-facing product flows.",
5
5
  "keywords": [
6
6
  "cli",