{"ok":true,"contract":"oa.app-adapter/1","transport":"A","app":"openpsy","actions":[{"id":"study.start","version":1,"title":"Start a Study","scope":"study:start","kind":"write","risk":"low","idempotency_key":"required","description":"Prepare a solo Study session for the human: 25 sealed targets, revealed only at the end. It does not begin: the human opens the link and makes every guess. Refused with session_in_progress while they have a solo session open; one nobody opens closes as incomplete, normally after 24 hours.","input_schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]},"output_schema":{"type":"object","additionalProperties":false,"properties":{"receipt":{"type":"object","additionalProperties":false,"properties":{"external_id":{"type":"string","description":"Session id"},"url":{"type":"string","format":"uri","description":"Give this link to the human: it opens the session in their own browser"},"status":{"const":"awaiting_human"},"created_at":{"type":"string","format":"date-time"}},"required":["external_id","url","status","created_at"]},"research":{"type":"object","additionalProperties":false,"properties":{"counts":{"type":"boolean","description":"Whether this session counts in public research results as things stand"},"reason":{"enum":["opted_in","not_opted_in"]},"as_of":{"type":"string","format":"date-time"}},"required":["counts","reason","as_of"]},"protocol":{"const":"research"},"reveal":{"const":"end"},"trials":{"type":"integer"},"baseline":{"type":"number"},"commitments":{"type":"array","items":{"type":"string","description":"SHA-256 of a sealed target"},"description":"Published before any guess"}},"required":["receipt","research","protocol","reveal","trials","baseline","commitments"]}},{"id":"results.summary.get","version":1,"title":"Read totals","scope":"results:read","kind":"read","risk":"low","idempotency_key":"ignored","description":"The human's own totals, one item for Study and one for Practice, never merged: trials, hits, rate, the 20% baseline, Wilson 95% interval and exact p-value. Study sessions in progress are not in it. No name, session or date.","input_schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]},"output_schema":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"protocol":{"enum":["study","practice"]},"trials":{"type":"integer","description":"Valid trials"},"hits":{"type":"integer"},"rate":{"anyOf":[{"type":"number","description":"hits / trials; null without trials"},{"type":"null"}]},"baseline":{"type":"number","description":"Chance: 0.2"},"ci95":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"low":{"type":"number"},"high":{"type":"number"}},"required":["low","high"]},{"type":"null"}]},"p_value":{"anyOf":[{"type":"number","description":"Exact one-sided binomial test against the baseline, not adjusted"},{"type":"null"}]},"source_url":{"type":"string","format":"uri","description":"The person's own Profile page"},"fetched_at":{"type":"string","format":"date-time"}},"required":["protocol","trials","hits","rate","baseline","ci95","p_value","source_url","fetched_at"]}},"note":{"type":"string"}},"required":["items","note"]}},{"id":"sessions.list","version":1,"title":"List ended sessions","scope":"sessions:read","kind":"read","risk":"low","idempotency_key":"ignored","description":"The human's own sessions that have ended and revealed every target, newest first: id, mode, protocol, end time, trials, hits. Invalidated sessions are left out.","input_schema":{"type":"object","additionalProperties":false,"properties":{"protocol":{"enum":["study","practice"]},"limit":{"type":"integer","minimum":1,"maximum":50,"default":20},"cursor":{"type":"string","description":"next_cursor of the previous page"}},"required":[]},"output_schema":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","description":"Session id"},"mode":{"type":"string"},"protocol":{"enum":["study","practice"]},"ended_at":{"type":"string","format":"date-time"},"trials":{"type":"integer","description":"Answered trials, incomplete sessions included"},"hits":{"type":"integer"},"source_url":{"type":"string","format":"uri","description":"The person's own Profile page"},"fetched_at":{"type":"string","format":"date-time"}},"required":["id","mode","protocol","ended_at","trials","hits","source_url","fetched_at"]}},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","next_cursor"]}}]}