benchside 0.4.1__tar.gz → 0.4.2__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 (183) hide show
  1. {benchside-0.4.1 → benchside-0.4.2}/PKG-INFO +1 -1
  2. {benchside-0.4.1 → benchside-0.4.2}/README.md +18 -13
  3. {benchside-0.4.1 → benchside-0.4.2}/SETUP.md +39 -24
  4. benchside-0.4.2/benchside/__init__.py +1 -0
  5. {benchside-0.4.1 → benchside-0.4.2}/benchside/application/metascience.py +64 -22
  6. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/model/metascience.py +1 -1
  7. benchside-0.4.2/benchside/infrastructure/survey_links.py +77 -0
  8. {benchside-0.4.1 → benchside-0.4.2}/content/app/references/app-api.md +7 -0
  9. {benchside-0.4.1 → benchside-0.4.2}/content/app/references/metascience.md +35 -2
  10. {benchside-0.4.1 → benchside-0.4.2}/pyproject.toml +1 -1
  11. {benchside-0.4.1 → benchside-0.4.2}/uv.lock +1 -1
  12. benchside-0.4.1/benchside/__init__.py +0 -1
  13. {benchside-0.4.1 → benchside-0.4.2}/.gitignore +0 -0
  14. {benchside-0.4.1 → benchside-0.4.2}/LICENSE +0 -0
  15. {benchside-0.4.1 → benchside-0.4.2}/benchside/application/__init__.py +0 -0
  16. {benchside-0.4.1 → benchside-0.4.2}/benchside/application/app.py +0 -0
  17. {benchside-0.4.1 → benchside-0.4.2}/benchside/application/bridge.py +0 -0
  18. {benchside-0.4.1 → benchside-0.4.2}/benchside/application/contributions.py +0 -0
  19. {benchside-0.4.1 → benchside-0.4.2}/benchside/application/di.py +0 -0
  20. {benchside-0.4.1 → benchside-0.4.2}/benchside/application/native.py +0 -0
  21. {benchside-0.4.1 → benchside-0.4.2}/benchside/application/packaging.py +0 -0
  22. {benchside-0.4.1 → benchside-0.4.2}/benchside/application/sharing.py +0 -0
  23. {benchside-0.4.1 → benchside-0.4.2}/benchside/application/submission_failures.py +0 -0
  24. {benchside-0.4.1 → benchside-0.4.2}/benchside/cli/__init__.py +0 -0
  25. {benchside-0.4.1 → benchside-0.4.2}/benchside/cli/hooks.py +0 -0
  26. {benchside-0.4.1 → benchside-0.4.2}/benchside/cli/install.py +0 -0
  27. {benchside-0.4.1 → benchside-0.4.2}/benchside/cli/journal.py +0 -0
  28. {benchside-0.4.1 → benchside-0.4.2}/benchside/cli/main.py +0 -0
  29. {benchside-0.4.1 → benchside-0.4.2}/benchside/cli/runtime.py +0 -0
  30. {benchside-0.4.1 → benchside-0.4.2}/benchside/cli/sharing.py +0 -0
  31. {benchside-0.4.1 → benchside-0.4.2}/benchside/cli/ui/__init__.py +0 -0
  32. {benchside-0.4.1 → benchside-0.4.2}/benchside/cli/ui/_glyphs.py +0 -0
  33. {benchside-0.4.1 → benchside-0.4.2}/benchside/cli/ui/_model.py +0 -0
  34. {benchside-0.4.1 → benchside-0.4.2}/benchside/cli/ui/_renderer.py +0 -0
  35. {benchside-0.4.1 → benchside-0.4.2}/benchside/cli/ui/_rich.py +0 -0
  36. {benchside-0.4.1 → benchside-0.4.2}/benchside/config.py +0 -0
  37. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/__init__.py +0 -0
  38. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/__init__.py +0 -0
  39. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/command/__init__.py +0 -0
  40. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/command/compile.py +0 -0
  41. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/model/__init__.py +0 -0
  42. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/model/flow.py +0 -0
  43. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/model/persona.py +0 -0
  44. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/model/skill.py +0 -0
  45. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/model/value.py +0 -0
  46. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/port/__init__.py +0 -0
  47. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/port/renderer.py +0 -0
  48. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/port/repository.py +0 -0
  49. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/port/skill_writer.py +0 -0
  50. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/query/__init__.py +0 -0
  51. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/query/get_persona.py +0 -0
  52. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/query/list_personas.py +0 -0
  53. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/service/__init__.py +0 -0
  54. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/service/authoring.py +0 -0
  55. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/util/__init__.py +0 -0
  56. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/util/di/__init__.py +0 -0
  57. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/authoring/util/di/provider.py +0 -0
  58. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/__init__.py +0 -0
  59. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/command/__init__.py +0 -0
  60. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/command/capture_gap.py +0 -0
  61. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/command/close.py +0 -0
  62. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/command/open.py +0 -0
  63. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/command/raise_critique.py +0 -0
  64. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/command/record_decision.py +0 -0
  65. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/command/resolve_critique.py +0 -0
  66. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/command/state_hypothesis.py +0 -0
  67. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/event/__init__.py +0 -0
  68. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/event/closed.py +0 -0
  69. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/event/critique_raised.py +0 -0
  70. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/event/critique_resolved.py +0 -0
  71. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/event/decision_recorded.py +0 -0
  72. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/event/gap_observed.py +0 -0
  73. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/event/hypothesis_stated.py +0 -0
  74. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/event/opened.py +0 -0
  75. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/event/question.py +0 -0
  76. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/event/research_recorded.py +0 -0
  77. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/model/__init__.py +0 -0
  78. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/model/consultation.py +0 -0
  79. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/model/project.py +0 -0
  80. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/model/value.py +0 -0
  81. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/port/__init__.py +0 -0
  82. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/port/repository.py +0 -0
  83. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/query/__init__.py +0 -0
  84. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/query/get_consultation.py +0 -0
  85. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/query/recall_project.py +0 -0
  86. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/service/__init__.py +0 -0
  87. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/service/consultation.py +0 -0
  88. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/util/__init__.py +0 -0
  89. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/util/di/__init__.py +0 -0
  90. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/consultation/util/di/provider.py +0 -0
  91. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/__init__.py +0 -0
  92. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/command/__init__.py +0 -0
  93. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/command/export_observations.py +0 -0
  94. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/command/grant_consent.py +0 -0
  95. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/command/revoke_consent.py +0 -0
  96. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/event/__init__.py +0 -0
  97. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/event/consent_granted.py +0 -0
  98. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/event/consent_revoked.py +0 -0
  99. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/event/observations_exported.py +0 -0
  100. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/event/reporting.py +0 -0
  101. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/model/__init__.py +0 -0
  102. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/model/ledger.py +0 -0
  103. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/model/reporting.py +0 -0
  104. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/model/value.py +0 -0
  105. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/model/wire.py +0 -0
  106. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/port/__init__.py +0 -0
  107. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/port/redactor.py +0 -0
  108. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/port/repository.py +0 -0
  109. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/port/sink.py +0 -0
  110. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/query/__init__.py +0 -0
  111. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/query/consent_status.py +0 -0
  112. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/query/preview_export.py +0 -0
  113. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/service/__init__.py +0 -0
  114. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/service/consent.py +0 -0
  115. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/service/export.py +0 -0
  116. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/service/reporting.py +0 -0
  117. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/util/__init__.py +0 -0
  118. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/util/di/__init__.py +0 -0
  119. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/export/util/di/provider.py +0 -0
  120. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/__init__.py +0 -0
  121. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/command.py +0 -0
  122. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/error.py +0 -0
  123. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/event.py +0 -0
  124. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/model/__init__.py +0 -0
  125. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/model/aggregate.py +0 -0
  126. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/model/capture.py +0 -0
  127. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/model/entity.py +0 -0
  128. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/model/gap.py +0 -0
  129. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/model/ids.py +0 -0
  130. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/model/provenance.py +0 -0
  131. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/model/value.py +0 -0
  132. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/port/__init__.py +0 -0
  133. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/port/base.py +0 -0
  134. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/port/journal.py +0 -0
  135. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/query.py +0 -0
  136. {benchside-0.4.1 → benchside-0.4.2}/benchside/domain/shared/service.py +0 -0
  137. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/__init__.py +0 -0
  138. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/content/__init__.py +0 -0
  139. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/content/loader.py +0 -0
  140. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/content/renderer.py +0 -0
  141. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/content/writer.py +0 -0
  142. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/files.py +0 -0
  143. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/http_sink.py +0 -0
  144. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/journal/__init__.py +0 -0
  145. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/journal/di.py +0 -0
  146. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/journal/projection.py +0 -0
  147. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/journal/registry.py +0 -0
  148. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/journal/store.py +0 -0
  149. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/placeholders.py +0 -0
  150. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/readable_records.py +0 -0
  151. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/readable_refresh.py +0 -0
  152. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/redaction.py +0 -0
  153. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/session_context.py +0 -0
  154. {benchside-0.4.1 → benchside-0.4.2}/benchside/infrastructure/storage_layout.py +0 -0
  155. {benchside-0.4.1 → benchside-0.4.2}/benchside/reporting.py +0 -0
  156. {benchside-0.4.1 → benchside-0.4.2}/benchside/util/__init__.py +0 -0
  157. {benchside-0.4.1 → benchside-0.4.2}/benchside/util/di/__init__.py +0 -0
  158. {benchside-0.4.1 → benchside-0.4.2}/benchside/util/di/base.py +0 -0
  159. {benchside-0.4.1 → benchside-0.4.2}/benchside/util/di/scope.py +0 -0
  160. {benchside-0.4.1 → benchside-0.4.2}/content/app/SKILL.md +0 -0
  161. {benchside-0.4.1 → benchside-0.4.2}/content/app/references/generic-agents.md +0 -0
  162. {benchside-0.4.1 → benchside-0.4.2}/content/app/references/native-memory.md +0 -0
  163. {benchside-0.4.1 → benchside-0.4.2}/content/app/references/onboarding.md +0 -0
  164. {benchside-0.4.1 → benchside-0.4.2}/content/app/references/sharing.md +0 -0
  165. {benchside-0.4.1 → benchside-0.4.2}/content/app/scripts/benchside_app.py +0 -0
  166. {benchside-0.4.1 → benchside-0.4.2}/content/app-requirements.txt +0 -0
  167. {benchside-0.4.1 → benchside-0.4.2}/content/claude/bench-init/SKILL.md +0 -0
  168. {benchside-0.4.1 → benchside-0.4.2}/content/claude/bench-share/SKILL.md +0 -0
  169. {benchside-0.4.1 → benchside-0.4.2}/content/fixtures/.gitkeep +0 -0
  170. {benchside-0.4.1 → benchside-0.4.2}/content/legacy-skill-digests.json +0 -0
  171. {benchside-0.4.1 → benchside-0.4.2}/content/personas/journal-club.yaml +0 -0
  172. {benchside-0.4.1 → benchside-0.4.2}/content/personas/methods-clinic.yaml +0 -0
  173. {benchside-0.4.1 → benchside-0.4.2}/content/personas/peer-review.yaml +0 -0
  174. {benchside-0.4.1 → benchside-0.4.2}/content/personas/pi-hypothesis.yaml +0 -0
  175. {benchside-0.4.1 → benchside-0.4.2}/content/personas/pi.yaml +0 -0
  176. {benchside-0.4.1 → benchside-0.4.2}/content/personas/repro-check.yaml +0 -0
  177. {benchside-0.4.1 → benchside-0.4.2}/content/personas/results-meeting.yaml +0 -0
  178. {benchside-0.4.1 → benchside-0.4.2}/content/personas/study-design.yaml +0 -0
  179. {benchside-0.4.1 → benchside-0.4.2}/content/templates/app-role.md.tmpl +0 -0
  180. {benchside-0.4.1 → benchside-0.4.2}/content/templates/blocks/capture-contract.md +0 -0
  181. {benchside-0.4.1 → benchside-0.4.2}/content/templates/blocks/sovereignty.md +0 -0
  182. {benchside-0.4.1 → benchside-0.4.2}/content/templates/skill.md.tmpl +0 -0
  183. {benchside-0.4.1 → benchside-0.4.2}/docs/package-description.md +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: benchside
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: Research colleagues with private project memory and optional workflow reporting.
5
5
  Project-URL: Homepage, https://github.com/science-works/benchside
6
6
  Project-URL: Documentation, https://github.com/science-works/benchside/blob/main/SETUP.md
@@ -65,10 +65,13 @@ installation approvals may still need their action.
65
65
  Attaching a ZIP to an ordinary chat is not itself installation. If only a
66
66
  manual installer is available, give its observed steps; if neither route is
67
67
  available, state the missing capability rather than invent an upload control.
68
- 4. Local agents can clone the latest released tag into a durable installation
69
- directory, run `uv sync --frozen`, then `uv run bench setup --agent codex`
68
+ 4. Local agents can install [Benchside from PyPI](https://pypi.org/project/benchside/)
69
+ with `uv tool install benchside`, then run `bench setup --agent codex`
70
70
  (or `claude`, or `generic --skills-dir <actual host skill directory>`).
71
- Preserve custom work and read [SETUP.md](SETUP.md) for alternatives.
71
+ `python -m pip install benchside` also works inside a persistent Python
72
+ 3.11+ virtual environment. The package is `benchside`; its command is `bench`.
73
+ Read [SETUP.md](SETUP.md) for source installs and updates. This installs the
74
+ local runtime and skill, not a plugin in a browser chat.
72
75
  5. Read the installed skill and its onboarding guide. Run the actual runtime
73
76
  version check, then inspect storage tools without writing and offer suitable
74
77
  candidates as not yet verified. Test writes only after the researcher chooses
@@ -116,15 +119,17 @@ All eight roles are included:
116
119
 
117
120
  See [Getting started](docs/getting-started.md) for setup without terminal commands
118
121
  or API keys. Installable Claude and ChatGPT/Codex packages are built from this
119
- repository. The current package is 0.4.0. There is no public plugin-directory
122
+ repository. The current package is 0.4.2. There is no public plugin-directory
120
123
  listing yet. Give a new agent the repository URL and
121
124
  [setup instructions](docs/getting-started.md)
122
125
  rather than relying on discovery by name alone.
123
126
 
124
- Version 0.4.0 adds capability-based onboarding, lighter setup, multi-discipline
125
- profiles, a broad research supervisor and a focused hypothesis reviewer. Decisions
126
- and unresolved questions are saved privately as the discussion progresses. See
127
- [the release notes](docs/release-0.4.0.md), including the shared-store update note.
127
+ Version 0.4.2 adds explicitly confirmed public survey links and clearer answer errors,
128
+ and is available through pip and uv. It includes the broad research supervisor,
129
+ focused hypothesis reviewer and multi-discipline profiles introduced in 0.4.0.
130
+ Decisions and unresolved questions are saved privately as the discussion progresses.
131
+ **Update every app sharing a notebook to 0.4.1 or newer.** See
132
+ [the release notes](docs/release-0.4.2.md) before updating an existing installation.
128
133
 
129
134
  Native memory uses a private notebook in a capable host, with readable journals
130
135
  per project. Guarded saves and readback protect the validated record; the
@@ -282,9 +287,9 @@ uv run --with pip python scripts/build_release.py
282
287
 
283
288
  Personas are YAML records; edit their sources and run `bench compile`. The app
284
289
  package uses the same records, core wheel and pinned dependency lock. Build
285
- outputs are `dist/benchside-claude-0.4.0.zip` (standalone skill),
286
- `dist/benchside-plugin-0.4.0.zip` (OpenAI/portable plugin), and
287
- `dist/benchside-claude-plugin-0.4.0.zip` (Claude plugin upload). All use the same
290
+ outputs are `dist/benchside-claude-0.4.2.zip` (standalone skill),
291
+ `dist/benchside-plugin-0.4.2.zip` (OpenAI/portable plugin), and
292
+ `dist/benchside-claude-plugin-0.4.2.zip` (Claude plugin upload). All use the same
288
293
  core and central submission endpoints. The build downloads hash-locked wheels
289
294
  for CPython 3.11–3.14 on macOS (Intel/Apple Silicon) and glibc Linux (x86-64/ARM64).
290
295
  Installed app packages bootstrap offline; they do not need access to PyPI.
@@ -297,8 +302,8 @@ submissions across channels. Installation counts are not exact people.
297
302
  [ARCHITECTURE.md](ARCHITECTURE.md) explains the implementation.
298
303
  [Rollout notes](docs/rollout.md) describe the remaining live-app checks and keep
299
304
  the original workshop evaluation separate from exploratory rollout results.
300
- [Future distribution](docs/distribution-roadmap.md) tracks PyPI/uv installation
301
- and public plugin-directory publishing; these routes are not live yet.
305
+ [Distribution roadmap](docs/distribution-roadmap.md) records the verified PyPI/uv
306
+ route and the remaining public plugin-directory publishing work.
302
307
 
303
308
  ## License
304
309
 
@@ -48,35 +48,45 @@ Use the installed onboarding guide for an update or storage change.
48
48
 
49
49
  ### Local agent: Codex, Claude Code or another capable agent
50
50
 
51
- 1. Read the [latest release](https://github.com/science-works/benchside/releases/latest)
52
- and identify its tag. Clone `https://github.com/science-works/benchside` into a
53
- durable installation directory and check out that tag. Keep this checkout:
54
- the installed skill refers to its Python environment. If updating an existing
55
- checkout, inspect its changes first and preserve custom work. Use `main` only
56
- when the researcher requests a development version.
57
- 2. In that checkout, use an available package manager to install the runtime.
58
- With `uv`, run `uv sync --frozen`. Without `uv`, use Python 3.11–3.14 to create
59
- a virtual environment and install the checkout into it with `pip install .`.
60
- Do not install Benchside globally into the operating system's Python.
61
- 3. Install the shared eight-role skill with **one** matching command:
62
-
63
- | Host | Command from the checkout |
51
+ 1. Install the [published Python package](https://pypi.org/project/benchside/).
52
+ With `uv`, run `uv tool install benchside`. This creates a persistent isolated
53
+ runtime; use its installed `bench` command. If the executable is not yet on
54
+ the agent's PATH, locate it with `uv tool dir --bin` and invoke its full path.
55
+ Without `uv`, create a persistent Python 3.11–3.14 virtual environment and
56
+ run that environment's `python -m pip install benchside`. Keep the environment
57
+ and use its `bench` executable. Do not use the operating system's global Python
58
+ or a disposable execution directory for this installation.
59
+ 2. Install the shared eight-role skill with **one** matching command:
60
+
61
+ | Host | Command |
64
62
  |---|---|
65
- | Codex | `uv run bench setup --agent codex` |
66
- | Claude Code | `uv run bench setup --agent claude` |
67
- | Another agent | `uv run bench setup --agent generic --skills-dir <actual host skill directory>` |
63
+ | Codex | `bench setup --agent codex` |
64
+ | Claude Code | `bench setup --agent claude` |
65
+ | Another agent | `bench setup --agent generic --skills-dir <actual host skill directory>` |
68
66
 
69
- With a Python virtual environment instead of `uv`, invoke that environment's
70
- `bench` executable with the same arguments. Observe the generic host's skill
67
+ Observe the generic host's skill
71
68
  directory; do not guess it. These commands install for future conversations.
72
69
  A project-scoped installation is available through `bench init`; it is not
73
70
  an additional required setup step.
74
- 4. Read the installed `benchside/SKILL.md`, then its onboarding and app API
71
+ 3. Read the installed `benchside/SKILL.md`, then its onboarding and app API
75
72
  references. Follow them to complete setup and begin the research discussion.
76
- Use the installed `scripts/benchside_app.py` entry point; source setup records
73
+ Use the installed `scripts/benchside_app.py` entry point; setup records
77
74
  its runtime location so later chats can work outside the checkout.
78
75
 
79
- If cloning or package installation is unavailable, explain the missing
76
+ The package name is `benchside`; the executable is `bench`. A model, provider
77
+ connection and the agent's tools come from the host, not from the Python package.
78
+ Do not use a one-off `uvx` environment for persistent setup.
79
+
80
+ **Source installation remains available:** identify the tag in the
81
+ [latest release](https://github.com/science-works/benchside/releases/latest),
82
+ clone `https://github.com/science-works/benchside` into a durable directory and
83
+ check out that tag. Run `uv sync --frozen`, then the matching command above with
84
+ `uv run` before `bench`. Without uv, install the checkout into a persistent
85
+ virtual environment with `python -m pip install .`. Keep the checkout/environment;
86
+ the installed skill refers to it. Preserve custom changes when updating, and
87
+ use `main` only when the researcher requests a development version.
88
+
89
+ If package installation is unavailable, explain the missing
80
90
  capability and offer a supported app package. Do not claim that downloading or
81
91
  reading a Markdown file installed a working runtime.
82
92
 
@@ -199,9 +209,14 @@ Then return to the researcher's real project and start their first task.
199
209
 
200
210
  ## Updating later
201
211
 
202
- Use a newer versioned release and the app's complete update flow. For a source
203
- installation, update the checkout/environment and rerun the matching `bench setup`
204
- command. Keep private storage in place and reopen the existing project. Preserve
212
+ Use a newer versioned release and the app's complete update flow. For a uv tool
213
+ installation, run `uv tool upgrade benchside`; for pip, run the installation
214
+ environment's `python -m pip install --upgrade benchside`. Then rerun the same
215
+ `bench setup` command to refresh the installed skill, including the same skills
216
+ directory for a generic host. For a source installation, update the
217
+ checkout/environment and rerun setup there. Keep private storage in place and
218
+ reopen the existing project. **Every app sharing a notebook saved by 0.4.1 must
219
+ use 0.4.1 or newer**, including apps previously using 0.4.0. Preserve
205
220
  custom files; do not unzip a package over a source installation, whose saved
206
221
  runtime pointer could keep launching the older version. See the
207
222
  [full update guidance](content/app/references/onboarding.md).
@@ -0,0 +1 @@
1
+ __version__ = "0.4.2"
@@ -42,17 +42,33 @@ from benchside.domain.shared.error import ConsentRequiredError, InfrastructureEr
42
42
  from benchside.infrastructure.files import atomic_json
43
43
  from benchside.infrastructure.http_sink import COLLECTOR, USER_AGENT, HttpExportSink
44
44
  from benchside.infrastructure.redaction import TextRedactor
45
+ from benchside.infrastructure.survey_links import (
46
+ confirmed_links,
47
+ public_link_candidate,
48
+ survey_urls,
49
+ )
45
50
 
46
51
 
47
- def _check_survey_text(payload):
52
+ def _check_survey_text(payload, confirmed_public_urls=None):
48
53
  """Keep exact researcher wording; refuse flagged answers instead of rewriting."""
54
+ texts = [answer.text for answer in payload.answers.values() if isinstance(answer, TextAnswer)]
55
+ confirmed = confirmed_links(texts, confirmed_public_urls)
49
56
  findings = {
50
57
  f"{key}: {finding.category}"
51
58
  for key, answer in payload.answers.items()
52
59
  if isinstance(answer, TextAnswer)
53
60
  for finding in TextRedactor().scan(answer.text)
54
- if finding.tier == "HIGH"
61
+ if finding.tier == "HIGH" and finding.category != "url"
55
62
  }
63
+ unconfirmed = set()
64
+ for key, answer in payload.answers.items():
65
+ if not isinstance(answer, TextAnswer):
66
+ continue
67
+ for url in survey_urls(answer.text):
68
+ if not public_link_candidate(url):
69
+ findings.add(f"{key}: private or sensitive link")
70
+ elif url not in confirmed:
71
+ unconfirmed.add(key)
56
72
  if findings:
57
73
  raise ValidationError(
58
74
  "Edit the flagged survey answers before sending ("
@@ -61,6 +77,24 @@ def _check_survey_text(payload):
61
77
  "your answers or send them unchanged.",
62
78
  code="survey_answer_sensitive",
63
79
  )
80
+ if unconfirmed:
81
+ raise ValidationError(
82
+ "Confirm with the researcher that each exact link in survey answer(s) "
83
+ + ", ".join(sorted(unconfirmed))
84
+ + " is public and contains no private research details or access tokens. "
85
+ "Pass only those confirmed URLs as confirmed_public_urls, or edit the answer. "
86
+ "Nothing was sent. Do not infer confirmation from study participation.",
87
+ code="survey_public_link_confirmation_required",
88
+ )
89
+
90
+
91
+ def _survey_answer_error():
92
+ return ValidationError(
93
+ "Check the survey answers: use the offered choices, keep text within the stated "
94
+ "limit and omit skipped questions. At least one non-blank answer is required. "
95
+ "Nothing was sent; Benchside setup is unchanged.",
96
+ code="survey_answer_invalid",
97
+ )
64
98
 
65
99
 
66
100
  class StudyClient:
@@ -360,7 +394,7 @@ class Metascience:
360
394
  self._save(drafts=retained, latest=latest)
361
395
  return draft.model_dump()
362
396
 
363
- def survey(self, study_key, answers):
397
+ def survey(self, study_key, answers, *, confirmed_public_urls=None):
364
398
  grants = self._require("invitations")
365
399
  study = self.state.studies.get(study_key)
366
400
  if (
@@ -382,17 +416,20 @@ class Metascience:
382
416
  raise ConsentRequiredError(
383
417
  "Survey participation changed; explain and accept the study again"
384
418
  )
385
- payload = payload_type(
386
- benchside_version=__version__,
387
- response_id=response_id,
388
- study_id=study.id,
389
- study_version=study.version,
390
- study_sha256=digest(study.model_dump()),
391
- answers=answers,
392
- **({"contributor_id": accepted.contributor_id} if accepted else {}),
393
- )
394
- payload.check_study(study)
395
- _check_survey_text(payload)
419
+ try:
420
+ payload = payload_type(
421
+ benchside_version=__version__,
422
+ response_id=response_id,
423
+ study_id=study.id,
424
+ study_version=study.version,
425
+ study_sha256=digest(study.model_dump()),
426
+ answers=answers,
427
+ **({"contributor_id": accepted.contributor_id} if accepted else {}),
428
+ )
429
+ payload.check_study(study)
430
+ except ValueError as err:
431
+ raise _survey_answer_error() from err
432
+ _check_survey_text(payload, confirmed_public_urls)
396
433
  return self._preview("surveys", key, payload, grants)
397
434
 
398
435
  def join_study(self, study_key, study_sha256):
@@ -572,14 +609,14 @@ class Metascience:
572
609
  self._save(samples={**self.state.samples, week: Sample.model_validate(data)})
573
610
  return self._preview("activity", key, payload, grants)
574
611
 
575
- def send(self, draft_id, approved_sha256):
612
+ def send(self, draft_id, approved_sha256, *, confirmed_public_urls=None):
576
613
  try:
577
- return self._send(draft_id, approved_sha256)
614
+ return self._send(draft_id, approved_sha256, confirmed_public_urls=confirmed_public_urls)
578
615
  except Exception as err:
579
616
  record_submission_failure(self.paths, err)
580
617
  raise
581
618
 
582
- def _send(self, draft_id, approved_sha256):
619
+ def _send(self, draft_id, approved_sha256, *, confirmed_public_urls=None):
583
620
  draft = self.state.drafts.get(draft_id)
584
621
  if not draft or self.state.latest.get(draft.key) != draft_id:
585
622
  raise ConsentRequiredError("Review the current metascience draft first")
@@ -597,9 +634,12 @@ class Metascience:
597
634
  study = self.state.studies[key]
598
635
  if not study.active(self.today.isoformat()) or key in self.state.completed:
599
636
  raise ConsentRequiredError("The survey has closed or was dismissed")
600
- payload = parse_survey(draft.payload)
601
- payload.check_study(study)
602
- _check_survey_text(payload) # Also guard pending drafts from earlier releases.
637
+ try:
638
+ payload = parse_survey(draft.payload)
639
+ payload.check_study(study)
640
+ except ValueError as err:
641
+ raise _survey_answer_error() from err
642
+ _check_survey_text(payload, confirmed_public_urls) # Recheck older pending drafts too.
603
643
  if isinstance(payload, LinkedSurveyPayload):
604
644
  accepted = self.state.participation.get(key)
605
645
  if (
@@ -644,7 +684,8 @@ class Metascience:
644
684
  request["study_key"], permanently=request.get("permanently", False)
645
685
  )
646
686
  case "metascience.survey":
647
- return self.survey(request["study_key"], request["answers"])
687
+ return self.survey(request["study_key"], request["answers"],
688
+ confirmed_public_urls=request.get("confirmed_public_urls"))
648
689
  case "metascience.join_study":
649
690
  return self.join_study(request["study_key"], request["study_sha256"])
650
691
  case "metascience.sample":
@@ -664,7 +705,8 @@ class Metascience:
664
705
  case "metascience.preview":
665
706
  return self.preview_activity(request["week"], request.get("tokens"))
666
707
  case "metascience.send":
667
- return self.send(request["draft_id"], request["approved_sha256"])
708
+ return self.send(request["draft_id"], request["approved_sha256"],
709
+ confirmed_public_urls=request.get("confirmed_public_urls"))
668
710
  case "metascience.history":
669
711
  return [r.model_dump() for r in self.state.receipts.values()]
670
712
  case _:
@@ -155,7 +155,7 @@ class LinkedSurveyPayload(SurveyPayload):
155
155
  if isinstance(question, TextQuestion):
156
156
  if (
157
157
  not isinstance(answer, TextAnswer)
158
- or not answer.text.strip()
158
+ or not answer.text.replace("\ufeff", "").strip()
159
159
  or len(answer.text.encode("utf-16-le")) // 2 > question.max_length
160
160
  ):
161
161
  raise ValueError("Invalid, blank or overlong text answer; omit skipped questions")
@@ -0,0 +1,77 @@
1
+ """Survey-only link confirmation; no requests are made to supplied URLs."""
2
+
3
+ import ipaddress
4
+ import re
5
+ from urllib.parse import unquote, urlsplit
6
+
7
+ from benchside.domain.shared.error import ValidationError
8
+ from benchside.infrastructure.redaction import TextRedactor
9
+
10
+ URL = re.compile(r"https?://[^\s\"<>]+", re.IGNORECASE)
11
+
12
+
13
+ def survey_urls(text: str) -> set[str]:
14
+ """Read links inside ordinary prose/Markdown without changing the answer."""
15
+ urls = set()
16
+ for match in URL.finditer(text):
17
+ url = match.group()
18
+ while url:
19
+ previous = url
20
+ url = url.rstrip(".,;:!\u2019\u201d'")
21
+ for opening, closing in (("(", ")"), ("[", "]"), ("{", "}")):
22
+ if url.endswith(closing) and url.count(closing) > url.count(opening):
23
+ url = url[:-1]
24
+ if url == previous:
25
+ break
26
+ urls.add(url)
27
+ return urls
28
+
29
+
30
+ def public_link_candidate(url: str) -> bool:
31
+ """Reject mechanically risky links; public status still requires the researcher."""
32
+ try:
33
+ parts = urlsplit(url)
34
+ host = parts.hostname or ""
35
+ if (
36
+ parts.scheme not in {"http", "https"}
37
+ or parts.username is not None or parts.password is not None
38
+ or parts.port is not None or "?" in url or "#" in url
39
+ or not re.fullmatch(r"(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z]{2,63}", host)
40
+ or host.endswith((".localhost", ".local", ".internal", ".lan", ".home", ".test", ".invalid"))
41
+ ):
42
+ return False
43
+ try:
44
+ ipaddress.ip_address(host)
45
+ except ValueError:
46
+ pass
47
+ else:
48
+ return False
49
+ decoded = url
50
+ for _ in range(4):
51
+ changed = unquote(decoded)
52
+ if changed == decoded:
53
+ break
54
+ decoded = changed
55
+ if "%" in decoded or any(ord(char) < 33 for char in decoded) or any(
56
+ char in decoded for char in "\\?#"
57
+ ):
58
+ return False
59
+ return not any(f.category != "url" for f in TextRedactor().scan(decoded))
60
+ except ValueError:
61
+ return False
62
+
63
+
64
+ def confirmed_links(texts: list[str], confirmation) -> set[str]:
65
+ urls = set().union(*(survey_urls(text) for text in texts))
66
+ confirmation = [] if confirmation is None else confirmation
67
+ if (
68
+ not isinstance(confirmation, list) or len(confirmation) > 20
69
+ or any(not isinstance(url, str) for url in confirmation)
70
+ or len(set(confirmation)) != len(confirmation)
71
+ or not set(confirmation) <= urls
72
+ ):
73
+ raise ValidationError(
74
+ "Confirm only the exact public URLs present in these survey answers. Nothing was sent.",
75
+ code="survey_public_link_confirmation_invalid",
76
+ )
77
+ return set(confirmation)
@@ -144,6 +144,13 @@ integration test. The project source and researcher journals are separate.
144
144
 
145
145
  ## Recording
146
146
 
147
+ Survey actions are described in [metascience](metascience.md).
148
+ `metascience.survey` and `metascience.send` accept an optional
149
+ `confirmed_public_urls` list of exact URLs explicitly confirmed public by the
150
+ researcher. Pass it on both calls for answers containing links. It applies only
151
+ to those answers, is neither persisted nor submitted, and never overrides other
152
+ sensitive-text checks. Ordinary answers still use the study agreement.
153
+
147
154
  Every recording request includes the returned `project_id`, `session_id` and
148
155
  `sitting_id`. IDs for new records are generated by the runtime; quote returned IDs.
149
156
 
@@ -21,6 +21,7 @@ explain these independent choices and record each explicit answer:
21
21
  agreement. Once the researcher agrees to that study, their answers are sent
22
22
  without asking for a second approval. Flagged sensitive text must be edited
23
23
  by the researcher before it can be sent; it is never rewritten automatically.
24
+ Full web links need a separate, exact public-link confirmation as below.
24
25
  2. **Private conversation analysis:** examine up to 20 research conversations
25
26
  from the previous complete UTC week, selected randomly from relevant accessible
26
27
  conversations or explicitly chosen by the researcher. This includes work
@@ -104,13 +105,45 @@ If the runtime returns `survey_answer_sensitive`, show the flagged question IDs
104
105
  and categories, and ask the researcher to edit or omit those answers. Do not
105
106
  send the existing draft or offer to bypass the check with another approval.
106
107
  The conservative check detects email addresses, credential patterns, local paths
107
- and URLs, not every sensitive detail; remind the researcher to exclude private
108
+ and unconfirmed URLs, not every sensitive detail; remind the researcher to exclude private
108
109
  scientific findings and participant/sample identifiers. Keep clean answers
109
110
  exactly as written, including whitespace. Pending older drafts are checked too.
110
111
  Changed answers need a new draft. Changed terms, destination or consent need a
111
112
  new agreement. Legacy v1 drafts without `join_study` still require exact approval.
112
113
  Closed/dismissed studies cannot be sent. The server verifies the definition hash.
113
114
 
115
+ ### Public links in survey answers
116
+
117
+ If an answer contains a full web link, ask once whether each exact link is public
118
+ and contains no private research details, personal identifiers or access tokens.
119
+ Show the links in plain text without fetching them. A plausible domain, study
120
+ agreement or silence is not confirmation. General public websites are allowed;
121
+ this is not restricted to paper repositories. If the researcher confirms, keep
122
+ their answer unchanged and pass the exact URLs on both preparation and sending:
123
+
124
+ ```json
125
+ {"action":"metascience.survey","study_key":"<id>@<version>","answers":{"resources":{"text":"https://imagej.net/software/fiji/"}},"confirmed_public_urls":["https://imagej.net/software/fiji/"]}
126
+ {"action":"metascience.send","draft_id":"<returned draft id>","approved_sha256":"<returned digest>","confirmed_public_urls":["https://imagej.net/software/fiji/"]}
127
+ ```
128
+
129
+ Use the researcher's one confirmation for that unchanged answer; do not ask again
130
+ between these calls. The list is not stored in the notebook or transmitted to
131
+ Science Works. If resuming without evidence of that confirmation, confirm again.
132
+ Changed links need their own confirmation. `survey_public_link_confirmation_required`
133
+ means nothing was sent; obtain confirmation or let the researcher edit/omit the link.
134
+ Never supply the list merely to get past an error. `survey_public_link_confirmation_invalid`
135
+ means the supplied list does not match unique exact links in these answers.
136
+
137
+ Confirmation cannot override sensitive text elsewhere or mechanically risky URLs:
138
+ links with queries, fragments, credentials, explicit ports, local/IP addresses or
139
+ recognised sensitive path patterns are still refused. Ask for an edited public
140
+ link or omitted answer; do not silently rewrite it. These checks cannot establish
141
+ that a site or shared-document link is public. No link is visited by the runtime.
142
+ This exception applies only to survey answers, not gap or feedback redaction.
143
+
144
+ `survey_answer_invalid` means a blank, overlong or invalid answer needs correction,
145
+ not that installation failed. Omit skipped questions; do not submit an empty survey.
146
+
114
147
  ## Selected research activity
115
148
 
116
149
  First establish which sources the host can actually access. Ask the researcher
@@ -219,7 +252,7 @@ summaries, names, links, timestamps or raw transcripts in the adapter request.
219
252
 
220
253
  | Field | Allowed values and rule |
221
254
  |---|---|
222
- | `benchside_role` | Seven role IDs, `none` for work without a Benchside role, or `unknown`. Never infer use from a scientific topic alone. |
255
+ | `benchside_role` | Eight role IDs, `none` for work without a Benchside role, or `unknown`. Never infer use from a scientific topic alone. |
223
256
  | `activity` | `literature`, `study_design`, `data_collection`, `analysis`, `coding`, `interpretation`, `writing`, `review`, `other`, `unknown`. Choose the main visible activity, not the project discipline. |
224
257
  | `obstacle` | `access`, `tool_failure`, `missing_context`, `unreliable_answer`, `workflow_friction`, `none_reported`, `other`, `unknown`. Absence of a reported obstacle is not evidence that no obstacle existed. |
225
258
  | `verification` | `checked_sources`, `ran_test`, `compared_methods`, `expert_review`, `none_visible`, `other`, `unknown`. A suggestion to run a test does not establish that it ran. |
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "benchside"
3
- version = "0.4.1"
3
+ version = "0.4.2"
4
4
  description = "Research colleagues with private project memory and optional workflow reporting."
5
5
  readme = "docs/package-description.md"
6
6
  license = "Apache-2.0"
@@ -13,7 +13,7 @@ wheels = [
13
13
 
14
14
  [[package]]
15
15
  name = "benchside"
16
- version = "0.4.1"
16
+ version = "0.4.2"
17
17
  source = { editable = "." }
18
18
  dependencies = [
19
19
  { name = "dishka" },
@@ -1 +0,0 @@
1
- __version__ = "0.4.1"
File without changes
File without changes
File without changes