Skip to content

docs: privacy page for the osc.earth deployment; feedback sends the page address only when shared - #707

Merged
neuromechanist merged 4 commits into
developfrom
docs/privacy-disclosure
Nov 11, 2026
Merged

neuromechanist merged 4 commits into
developfrom
docs/privacy-disclosure

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Adds PRIVACY.md, the disclosure the NEMAR owner asked for on 2026-11-11, and fixes one gap it found.

The page

What the widget sends with a question, where it goes, what is stored, what stays in the browser, the reader's choices, and what OSA does not do, for the osc.earth deployment. Every statement was checked against origin/develop:

  • Sent: the message, the conversation id, the page's address and title only with page sharing on, the page's dataset id and instructions regardless (as docs/community-widget.md already says), earlier turns' text when reseeding (Reseed a resumed chat after the server session expired #659), approved code results (stdout, summary, up to three figures; the reader's own runs never), the memory budget, the search overview's query and results (Search overview endpoint on the quick model #702), and a reader's own key from Settings.
  • Where: the Cloudflare Worker (uses the IP address for rate-limit counters that expire within two hours, does not forward it; logs no request bodies), the OSA server, and the model provider: Claude on the Claude Platform on AWS (every community's default), and GPT-6 Luna, Qwen3 Next and gpt-oss-120b on Amazon Bedrock in US regions when a reader picks them. Zero data retention for both is as stated by the operator. A reader's own key goes to Anthropic or OpenRouter under their terms. Community tools (NEMAR's MCP server) receive the lookups; recordings go from the data host to the browser directly.
  • Stored: the conversation in memory for up to 24 hours (images replaced), never on disk; usage metrics with no question, reply, page address or IP address, and no automatic deletion yet; feedback only when sent; server logs without question or reply text (the shared page's address is logged when the assistant reads it).
  • Not done: LangFuse tracing is off on osc.earth (the image does not install the package, and the operator confirmed); no analytics, advertising or tracking scripts in the widget.

The README links the page, and its "Production-ready observability via LangFuse" line now says tracing is optional for self-hosted deployments and off on osc.earth.

The fix

General feedback ("Send feedback") posted page_url even with page sharing off. It now sends it only when the reader shares the page, as a question does. frontend/test-widget-feedback-page-url.js (new, in the frontend-tests job) covers shared, private, the default and a page that disables page context; without the fix two of its six checks fail.

Follow-ups

  • Widget: Privacy choices control with page use and usage data choices #706 (in progress) replaces the footer checkbox with a "Privacy choices" control and adds a usage-data choice; it updates the "Your choices" section here.
  • The same disclosure for docs.osc.earth goes to OpenScience-Collective/documentation, and NEMAR's privacy policy (nemarOrg/docs#112) will list OSA and its providers.

Tests

  • bun frontend/test-widget-feedback-page-url.js: 6 passed (2 fail without the fix).
  • uv run pytest tests/test_frontend: 172 passed (the documentation hygiene tests).
  • actionlint on tests.yml: clean.

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Preview Deployment

Name Link
Preview URL https://docs-privacy-disclosure-demo.osc.earth
Branch docs/privacy-disclosure
Commit e084ab6

This preview will be updated automatically when you push new commits.

…lly hold, the full page address, run results and plan decisions, the API key path, jsDelivr and the zero-retention terms; test covers the in-page toggle
@neuromechanist

Copy link
Copy Markdown
Member Author

Review round 1 outcomes (fixes in 703a8e3):

  • Server logs overstated (important): fixed. The page now says logs do not record questions or replies as such, but a failure line can hold the search words, the address of a page being read, and a provider's error text; the summary bullet points to that section.
  • 24-hour lifetime is lazy (important): fixed. Kept 24 hours, cannot be continued after that, removed the next time a new chat starts in that community, so a quiet community can hold one longer; a restart or a busy server clears it sooner.
  • Feedback sent without pressing Send (important): fixed. A clicked thumbs down is sent on Send or Skip, and also on the next question, a new chat or closing the window, with whatever was typed; only the "Send feedback" form carries the page's address, and only when shared; no automatic deletion.
  • Full page address (important): fixed. The row says the full address, including anything after ? or #, and asks the reader to check the address bar.
  • Run results and plan decisions (important): fixed. Error text, file names, run time and figures are listed, and a plan's edited steps and note.
  • Zero data retention wording (important): fixed. "Zero data retention agreements": not to store prompts or replies once answered, apart from a short in-memory prompt cache (five minutes by default), not to train on them. The operator has not described a legal carve-out, so none is stated.
  • jsDelivr (important): fixed. The Python runtime download from jsDelivr, which sees the IP address, is listed for the widget and the notebook.
  • API key path (important): fixed. Sent with each request through the Worker and the OSA server, which do not write it to disk; stored unencrypted in local storage.
  • Worker and IP wording (suggestion): fixed. Counters are named by the IP address; Cloudflare sees it as any host does; the Worker does not forward it to the OSA server.
  • Metrics columns (suggestion): fixed. Added whether the reader's own key paid and the short failure note.
  • History deletion and the public issue tracker (suggestion): fixed. Deleting clears the browser's copy and the server's copy expires on its own; issues are public, so no personal information.
  • Search overview (suggestion): fixed. "When AI Mode is on in a community's dataset search (NEMAR's Discover page, once it offers it)", and the shared cached overview.
  • Conversation id (suggestion): fixed. From the second message on.
  • Abbreviations (suggestion): fixed for NEMAR, HED, BIDS and AWS (also in CHANGELOG). The "URL" inside the quoted footer label is fixed interface text; Widget: Privacy choices control with page use and usage data choices #706 replaces that label.
  • Test: in-page toggle and closing windows (suggestion): fixed. A case unticks #osa-page-context-checkbox and sends feedback; each window is closed. 8 passed.

@neuromechanist

Copy link
Copy Markdown
Member Author

Review round 2 outcomes (fixes in c81667c):

  • CHANGELOG still had round-1 wording (suggestion): fixed. It now matches the page: thumbs down sent on moving on, the 24-hour hold and its removal, and the server logs.
  • Removal implied at exactly 24 hours (suggestion): fixed. The summary and Your choices say the conversation cannot be continued after 24 hours and is removed at the next new chat in that community or on a restart.
  • "No row" ambiguous beside feedback (suggestion): fixed. "No usage-metrics row".
  • URL and AI undefined (suggestion): fixed. AI is expanded in the opening sentence; URL is explained beside the quoted footer label.

@neuromechanist
neuromechanist merged commit 2e7a73e into develop Nov 11, 2026
10 checks passed
@neuromechanist
neuromechanist deleted the docs/privacy-disclosure branch November 11, 2026 10:04
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