Skip to content

Adds offline jsPsych deployment and streamed JATOS results - #20

Open
aaronstevenwhite wants to merge 2 commits into
mainfrom
feat/offline-jspsych-result-stream
Open

aaronstevenwhite wants to merge 2 commits into
mainfrom
feat/offline-jspsych-result-stream

Conversation

@aaronstevenwhite

Copy link
Copy Markdown
Collaborator

Description

Enables locally packaged jsPsych 8.4.0 studies, named cloze fields, and
append-only JATOS results. The generator registers the slopit extension
class and activates capture only on eligible trials after consent. The
JATOS exporter writes native study archives. The result reader retains
partial runs and turns answered fields into annotation records.

Motivation

Experiment N requires three shared response fields, replayable item and
trial identities, and interaction events with an explicit capture scope.
The deployment started from a regular bead ItemTemplate, ExperimentList,
and jsPsych generator.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change
  • Documentation update
  • Refactoring
  • Tests

Checklist

  • I have read the CONTRIBUTING guidelines
  • The changes follow the project's style guidelines
  • Ruff lint and format pass on changed Python packages
  • uv run pyright passes
  • Added tests for named fields, partial streams, and archives
  • Full repository test suite (uv run pytest tests/)
  • Updated the deployment guide and Unreleased changelog

Testing

The deployment and result-collection suite passed 153 Python tests. The
deployment package passed 83 TypeScript tests. The installed wheel
contained and matched the pinned runtime manifest. Chromium completed the
N archive with all external requests blocked. The installed wheel
built two byte-identical N archives. A local JATOS 3.11.3 instance
imported the native archive, served the real client script, and
retained 11 records after Chromium closed during the session. Bead
downloaded the ZIP through the JATOS API and recovered three completed
cloze trials and three named target annotations. The partial stream
had response-control telemetry and no terminal record.

The existing JATOS response-capture implementation is retained as the
legacy profile. The new response-control profile uses the browser artifact
built by the companion slopit branch until a release packages it. slopit PR #40

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant