Open-source, local-first social media research agent for Instagram, TikTok, and LinkedIn. Jev routes read-only steps; socai CLI captures cited browser evidence.
JavaScript agent-skillsai-agentsbrowser-agentbrowser-automationdecision-modeldeep-researchinstagramjevlinkedinlocal-firstopen-sourceosintresearch-agentsocaisocial-listeningsocial-mediasocial-media-researchsocmintsystem-onetiktok
docs(site): publish privacy and data flow guide (#95)
Asklv4a6d2d93a3d8
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.ymlindex 885d5ad..294c6f8 100644--- a/.github/workflows/pages.yml+++ b/.github/workflows/pages.yml@@ -33,10 +33,11 @@ jobs:- uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0- name: Assemble the static siterun: |- mkdir -p _site/assets/platforms _site/local-system-one _site/social-research+ mkdir -p _site/assets/platforms _site/local-system-one _site/social-research _site/privacycp site/index.html site/styles.css site/favicon.svg site/robots.txt site/sitemap.xml site/llms.txt site/a7d8dcce78db561a70661682fc57f53cd04f3b50f3bddb6bf62627d5024afb57.txt _site/cp site/local-system-one/index.html _site/local-system-one/cp site/social-research/index.html _site/social-research/+ cp site/privacy/index.html _site/privacy/cp docs/banner.png docs/social-preview.jpg docs/jev-social.gif _site/assets/cp docs/platforms/instagram.png docs/platforms/tiktok.png docs/platforms/linkedin.svg _site/assets/platforms/touch _site/.nojekylldiff --git a/site/index.html b/site/index.htmlindex c982b67..36b0117 100644--- a/site/index.html+++ b/site/index.html@@ -214,6 +214,7 @@<div class="run-actions"><a class="button button-pink" href="https://github.com/socai-io/jev-social" rel="noreferrer">Star Jev Social ★</a><a class="text-link" href="./social-research/">Explore social workflows ↗</a>+ <a class="text-link" href="./privacy/">Privacy and data flow ↗</a><a class="text-link" href="./local-system-one/">Run with local System One ↗</a><a class="text-link" href="https://github.com/socai-io/jev-social#run-it" rel="noreferrer">Install for Codex, OpenCode, or OpenClaw ↗</a><a class="text-link" href="https://skills.sh/socai-io/jev-social/jev-social" rel="noreferrer">Browse the Agent Skill on skills.sh ↗</a>@@ -243,6 +244,7 @@<div><a href="https://typesafe.ai/" rel="noreferrer">TypeSafe</a><a href="./social-research/">Workflows</a>+ <a href="./privacy/">Privacy</a><a href="https://github.com/socai-io/jev-social" rel="noreferrer">GitHub</a><a href="./llms.txt">llms.txt</a></div>diff --git a/site/llms.txt b/site/llms.txtindex 732c4a0..3e60093 100644--- a/site/llms.txt+++ b/site/llms.txt@@ -7,6 +7,7 @@ Source: https://github.com/socai-io/jev-socialLicense: MITLocal System One guide: https://socai-io.github.io/jev-social/local-system-one/Social research workflow guide: https://socai-io.github.io/jev-social/social-research/+Privacy and data flow guide: https://socai-io.github.io/jev-social/privacy/## What it does@@ -105,6 +106,7 @@ No live benchmark results are published yet. After initialization, failed, parti- README and setup: https://github.com/socai-io/jev-social#readme- Instagram, TikTok, and LinkedIn workflow guide: https://socai-io.github.io/jev-social/social-research/+- Privacy and data flow: https://socai-io.github.io/jev-social/privacy/- Real evidence report: https://github.com/socai-io/jev-social/blob/main/docs/example-report.md- TikTok search and media evidence: https://github.com/socai-io/jev-social/blob/main/docs/tiktok-evidence.md- OSSDrop award and live listing: https://ossdrop.com/tool/jev-socialdiff --git a/site/local-system-one/index.html b/site/local-system-one/index.htmlindex 041903e..874db61 100644--- a/site/local-system-one/index.html+++ b/site/local-system-one/index.html@@ -143,6 +143,7 @@</div><div class="run-actions"><a class="button button-pink" href="https://github.com/socai-io/jev-social#run-it" rel="noreferrer">Open full setup ↗</a>+ <a class="text-link" href="../privacy/">Privacy and data flow ↗</a><a class="text-link" href="https://github.com/socai-io/jev-social/blob/main/docs/simple-jev.md" rel="noreferrer">Simple Jev matrix ↗</a><a class="text-link" href="https://github.com/socai-io/jev-social/blob/main/docs/troubleshooting.md" rel="noreferrer">Troubleshooting ↗</a></div>@@ -225,6 +226,7 @@<p>Local decisions meet real social browser evidence.</p><div><a href="../">Home</a>+ <a href="../privacy/">Privacy</a><a href="https://github.com/socai-io/jev-social" rel="noreferrer">GitHub</a><a href="../llms.txt">llms.txt</a></div>diff --git a/site/privacy/index.html b/site/privacy/index.htmlnew file mode 100644index 0000000..0b7c5c2--- /dev/null+++ b/site/privacy/index.html@@ -0,0 +1,328 @@+<!DOCTYPE html>+<html lang="en">+ <head>+ <meta charset="utf-8">+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>Jev Social privacy and data flow — what leaves your machine</title>+ <meta name="description" content="See exactly what Jev Social sends to Chrome, OpenRouter or a local Jev provider, what stays on disk, and how socai telemetry is disabled by default.">+ <meta name="theme-color" content="#ff4fc8">+ <meta property="og:type" content="article">+ <meta property="og:site_name" content="Jev Social">+ <meta property="og:title" content="Jev Social privacy and data flow">+ <meta property="og:description" content="A plain-English map of browser data, Jev decisions, report synthesis, socai telemetry, and local retention.">+ <meta property="og:url" content="https://socai-io.github.io/jev-social/privacy/">+ <meta property="og:image" content="https://socai-io.github.io/jev-social/assets/social-preview.jpg">+ <meta property="og:image:width" content="1280">+ <meta property="og:image:height" content="640">+ <meta property="og:image:alt" content="Jev Social — typed decisions, real social data">+ <meta name="twitter:card" content="summary_large_image">+ <meta name="twitter:title" content="Jev Social privacy and data flow">+ <meta name="twitter:description" content="Know what leaves your machine, what stays local, and which settings change the boundary.">+ <meta name="twitter:image" content="https://socai-io.github.io/jev-social/assets/social-preview.jpg">+ <link rel="canonical" href="https://socai-io.github.io/jev-social/privacy/">+ <link rel="sitemap" type="application/xml" href="../sitemap.xml">+ <link rel="alternate" type="text/plain" href="../llms.txt" title="Jev Social machine-readable overview">+ <link rel="icon" href="../favicon.svg" type="image/svg+xml">+ <link rel="stylesheet" href="../styles.css">+ <script type="application/ld+json">+ {+ "@context": "https://schema.org",+ "@graph": [+ {+ "@type": "TechArticle",+ "headline": "Jev Social privacy and data flow",+ "description": "What Jev Social sends to browser, decision, and report providers; what stays on disk; and how child-process telemetry is controlled.",+ "url": "https://socai-io.github.io/jev-social/privacy/",+ "mainEntityOfPage": "https://socai-io.github.io/jev-social/privacy/",+ "image": "https://socai-io.github.io/jev-social/assets/social-preview.jpg",+ "dateModified": "2026-09-28",+ "author": {+ "@type": "Organization",+ "name": "socai-io",+ "url": "https://github.com/socai-io"+ },+ "about": {+ "@type": "SoftwareSourceCode",+ "name": "Jev Social",+ "codeRepository": "https://github.com/socai-io/jev-social",+ "programmingLanguage": "JavaScript",+ "runtimePlatform": "Node.js 20+",+ "license": "https://opensource.org/license/mit"+ }+ },+ {+ "@type": "FAQPage",+ "mainEntity": [+ {+ "@type": "Question",+ "name": "Is Jev Social offline?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "No. The application and UI run locally, but Chrome and the selected social platform still use the network. OpenRouter is also used for decisions and report synthesis by default."+ }+ },+ {+ "@type": "Question",+ "name": "Does Jev Social copy Chrome cookies?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "No. Login state remains in the Chrome or socai profile chosen by the installed CLI; Jev Social does not read or copy the browser cookie store directly."+ }+ },+ {+ "@type": "Question",+ "name": "Can OpenRouter report synthesis be disabled?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "Yes. Set OPENROUTER_REPORT_MODEL=off to generate the deterministic evidence report without the separate synthesis call."+ }+ },+ {+ "@type": "Question",+ "name": "When are local runs deleted?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "There is no automatic cleanup schedule. After stopping Jev Social, inspect and remove only the specific Jev Social run files and socai run directories you no longer need."+ }+ }+ ]+ }+ ]+ }+ </script>+ </head>+ <body>+ <a class="skip-link" href="#main">Skip to content</a>++ <header class="site-header">+ <a class="wordmark" href="../" aria-label="Jev Social home">+ <span class="mark" aria-hidden="true"></span>+ <span>JEV <b>×</b> socai</span>+ </a>+ <nav aria-label="Primary navigation">+ <a href="../">Overview</a>+ <a class="star-link" href="https://github.com/socai-io/jev-social" rel="noreferrer">Star on GitHub ★</a>+ </nav>+ </header>++ <main id="main">+ <section class="hero guide-hero" id="top">+ <div class="hero-glow" aria-hidden="true"></div>+ <div class="eyebrow">PRIVACY AND DATA FLOW</div>+ <h1>Know what leaves<br><span>your machine.</span></h1>+ <p class="hero-copy">+ Jev Social runs locally, but it is not an offline application. This page separates browser traffic, onboarding credentials, Jev decisions, report synthesis, child-process telemetry, and files saved on your machine.+ </p>+ <div class="hero-actions">+ <a class="button button-dark" href="#data-flow">Trace the data flow ↓</a>+ <a class="button button-light" href="https://github.com/socai-io/jev-social/blob/main/SECURITY.md" rel="noreferrer">Read the security policy ↗</a>+ </div>+ <p class="trust-line">Local UI · direct provider calls · child telemetry off by default · manual local retention</p>+ </section>++ <section class="flow reveal" id="data-flow" aria-labelledby="flow-heading">+ <div class="section-label">FOUR SEPARATE PATHS</div>+ <div class="section-heading compact">+ <h2 id="flow-heading">Follow each payload.</h2>+ <p>“Local” describes where Jev Social runs. It does not collapse every browser, model, and storage boundary into one.</p>+ </div>+ <ol class="flow-grid">+ <li>+ <span class="step">01</span>+ <h3>Browser and social site</h3>+ <p>The selected social site loads in your Chrome session through the installed socai CLI. Jev Social does not read or copy the browser cookie store directly.</p>+ </li>+ <li>+ <span class="step">02</span>+ <h3>Onboarding credentials</h3>+ <p>Default onboarding can send the OpenRouter key to <code>https://openrouter.ai/api/v1/auth/key</code> for validation. A key entered interactively is saved in <code>config.json</code>; an existing <code>OPENROUTER_API_KEY</code> is used without writing a second copy.</p>+ </li>+ <li>+ <span class="step">03</span>+ <h3>Jev decisions</h3>+ <p>OpenRouter receives the goal, typed choices, observed URLs, action summaries, and up to 400 characters of visible text per captured item by default.</p>+ </li>+ <li>+ <span class="step">04</span>+ <h3>Report synthesis</h3>+ <p>A separate OpenRouter call receives a bounded evidence summary by default. Set <code>OPENROUTER_REPORT_MODEL=off</code> to use the deterministic report path.</p>+ </li>+ </ol>+ </section>++ <section class="evidence reveal" aria-labelledby="provider-heading">+ <div class="section-label">PROVIDER BOUNDARIES</div>+ <div class="section-heading">+ <h2 id="provider-heading">Choose the path.<br>Keep the distinction.</h2>+ <p>Decision routing, report generation, and browser execution are independent choices.</p>+ </div>+ <div class="evidence-grid">+ <article class="evidence-card">+ <span class="evidence-kicker">DEFAULT DECISIONS</span>+ <h3>OpenRouter Jev</h3>+ <p>Decision requests go directly from Jev Social to OpenRouter. They do not pass through a Jev Social analytics service.</p>+ <dl>+ <div><dt>Payload</dt><dd>Bounded choices</dd></div>+ <div><dt>Browser tools</dt><dd>None</dd></div>+ </dl>+ </article>+ <article class="evidence-card">+ <span class="evidence-kicker">LOCAL DECISIONS</span>+ <h3>Loopback System One</h3>+ <p>An explicit Kev or Simple Jev endpoint can receive the same decision payload on exact loopback HTTP. The OpenRouter key is not attached.</p>+ <dl>+ <div><dt>Host</dt><dd>Loopback only</dd></div>+ <div><dt>Route</dt><dd>/v1/systemone</dd></div>+ </dl>+ <a href="../local-system-one/">Open the local provider guide ↗</a>+ </article>+ <article class="evidence-card">+ <span class="evidence-kicker">REPORT PATH</span>+ <h3>Separate and optional</h3>+ <p>Report synthesis has no browser or shell tools. Disable it independently when evidence must stay on the deterministic reporting path.</p>+ <dl>+ <div><dt>Disable</dt><dd>MODEL=off</dd></div>+ <div><dt>Input</dt><dd>Sanitized evidence</dd></div>+ </dl>+ </article>+ </div>+ <p class="evidence-note">Provider-side storage and retention are governed by OpenRouter and the selected model provider. A local decision server has its own model, log, and retention behavior; Jev Social does not manage that server.</p>+ </section>++ <section class="proof reveal" aria-labelledby="telemetry-heading">+ <div class="proof-copy">+ <div class="section-label">CHILD PROCESS</div>+ <h2 id="telemetry-heading">Telemetry starts off.</h2>+ <p>Jev Social starts socai with <code>SOCAI_TELEMETRY=0</code> when that setting is absent. Only the exact value <code>1</code> opts the spawned process in.</p>+ <ul>+ <li><code>OPENROUTER_API_KEY</code>, <code>TYPESAFE_API_KEY</code>, and <code>SOCAI_API_KEY</code> are excluded from the child environment.</li>+ <li>Session-token variables are excluded too.</li>+ <li>An independently running desktop process has its own process-level setting; configure that process separately.</li>+ </ul>+ <p>For the audited socai v0.6.1 release, opting in sends structured events to <code>socai.io/v1/events</code>, which forwards client-supplied scalar fields to Axiom. Events can include a stable install ID, process and request IDs, device context, status, timing, search query text, and target arguments; available authenticated cloud context can include the full phone number, point balance, Pro expiry, and subscription status. That public contract does not specify a server-side deletion or retention period. Other socai versions can differ.</p>+ </div>+ <figure class="terminal-card" aria-label="Jev Social provider and telemetry controls">+ <div class="terminal-bar"><i></i><i></i><i></i><span>privacy-controls.env</span></div>+ <pre><code><span class="muted"># deterministic report</span>+<span>OPENROUTER_REPORT_MODEL=off</span>++<span class="muted"># default for spawned socai commands</span>+<span>SOCAI_TELEMETRY=0</span>++<span class="muted"># optional local decisions</span>+<span>JEV_SOCIAL_SYSTEM_ONE_URL=http://127.0.0.1:8009/v1/systemone</span></code></pre>+ </figure>+ </section>++ <section class="flow reveal" aria-labelledby="storage-heading">+ <div class="section-label">LOCAL STORAGE AND RETENTION</div>+ <div class="section-heading compact">+ <h2 id="storage-heading">Local does not mean disposable.</h2>+ <p>Research output can contain personal or sensitive social content even when API keys and cookies are absent.</p>+ </div>+ <ol class="flow-grid">+ <li>+ <span class="step">01</span>+ <h3>State root</h3>+ <p>The default Jev Social root is <code>~/.jev-social</code>. <code>JEV_SOCIAL_HOME</code> can select another location.</p>+ </li>+ <li>+ <span class="step">02</span>+ <h3>File modes</h3>+ <p>Config and run JSON files use mode <code>0600</code>; their directories are created with mode <code>0700</code>.</p>+ </li>+ <li>+ <span class="step">03</span>+ <h3>Separate artifacts</h3>+ <p>socai keeps its own run directory. An expiring loopback media URL does not delete the underlying media file.</p>+ </li>+ <li>+ <span class="step">04</span>+ <h3>Manual cleanup</h3>+ <p>No automatic retention or cleanup schedule applies. Stop the app, inspect the files, and remove only specific runs you no longer need.</p>+ </li>+ </ol>+ </section>++ <section class="evidence reveal" aria-labelledby="effects-heading">+ <div class="section-label">REMOTE EFFECTS</div>+ <div class="section-heading">+ <h2 id="effects-heading">Read-only by construction.</h2>+ <p>Supported operations gather evidence; they do not change the social account or fabricate success.</p>+ </div>+ <div class="evidence-grid">+ <article class="evidence-card">+ <span class="evidence-kicker">ACCOUNT STATE</span>+ <h3>No engagement actions</h3>+ <p>Jev Social does not post, like, follow, message, purchase, or change settings.</p>+ </article>+ <article class="evidence-card">+ <span class="evidence-kicker">MEDIA</span>+ <h3>Explicit intent only</h3>+ <p>TikTok media download appears only when the research goal explicitly requests it. The selected action records that authorization.</p>+ </article>+ <article class="evidence-card">+ <span class="evidence-kicker">FAILURE</span>+ <h3>Partial stays partial</h3>+ <p>Login gates, empty searches, low-confidence decisions, access limits, and interruptions remain visible stop conditions.</p>+ </article>+ </div>+ </section>++ <section class="run reveal" aria-labelledby="run-heading">+ <div class="run-copy">+ <div class="section-label">INSPECT BEFORE YOU RUN</div>+ <h2 id="run-heading">One release. Public boundaries.</h2>+ <p>Review the security policy, use a separate browser profile for sensitive targets, and start with a small evidence set.</p>+ </div>+ <div class="code-block">+ <div class="code-label">TERMINAL</div>+ <pre><code><span>npx github:socai-io/jev-social#v0.1.10 onboard</span>+<span>npx github:socai-io/jev-social#v0.1.10</span></code></pre>+ </div>+ <div class="run-actions">+ <a class="button button-pink" href="https://github.com/socai-io/jev-social" rel="noreferrer">View Jev Social on GitHub ↗</a>+ <a class="text-link" href="https://github.com/socai-io/jev-social/blob/main/SECURITY.md" rel="noreferrer">Security policy ↗</a>+ <a class="text-link" href="https://github.com/socai-io/jev-social/releases/tag/v0.1.10" rel="noreferrer">Release v0.1.10 ↗</a>+ <a class="text-link" href="../social-research/">Explore social workflows ↗</a>+ </div>+ </section>++ <section class="share reveal" aria-labelledby="faq-heading">+ <div>+ <div class="section-label">QUICK ANSWERS</div>+ <h2 id="faq-heading">Four boundaries to remember.</h2>+ </div>+ <dl class="faq-list">+ <div>+ <dt>Is Jev Social offline?</dt>+ <dd>No. It runs locally, while Chrome and the chosen social platform still use the network. OpenRouter is also the default decision and report provider.</dd>+ </div>+ <div>+ <dt>Does it copy Chrome cookies?</dt>+ <dd>No. Login state stays in the Chrome or socai profile selected by the installed CLI; Jev Social does not read the cookie store directly.</dd>+ </div>+ <div>+ <dt>Can report synthesis stay deterministic?</dt>+ <dd>Yes. Set <code>OPENROUTER_REPORT_MODEL=off</code> to prevent the separate synthesis call.</dd>+ </div>+ <div>+ <dt>When are runs deleted?</dt>+ <dd>They are not deleted automatically. Inspect and remove only the specific Jev Social and socai run artifacts you no longer need.</dd>+ </div>+ </dl>+ </section>+ </main>++ <footer>+ <span>JEV × socai</span>+ <p>Know the boundary before the browser opens.</p>+ <div>+ <a href="../">Overview</a>+ <a href="../social-research/">Workflows</a>+ <a href="https://github.com/socai-io/jev-social" rel="noreferrer">GitHub</a>+ <a href="../llms.txt">llms.txt</a>+ </div>+ </footer>+ </body>+</html>diff --git a/site/sitemap.xml b/site/sitemap.xmlindex 8f3fde4..a7b0957 100644--- a/site/sitemap.xml+++ b/site/sitemap.xml@@ -18,4 +18,10 @@<changefreq>monthly</changefreq><priority>0.9</priority></url>+ <url>+ <loc>https://socai-io.github.io/jev-social/privacy/</loc>+ <lastmod>2026-09-28</lastmod>+ <changefreq>monthly</changefreq>+ <priority>0.9</priority>+ </url></urlset>diff --git a/site/social-research/index.html b/site/social-research/index.htmlindex b57bfeb..9a17f74 100644--- a/site/social-research/index.html+++ b/site/social-research/index.html@@ -264,6 +264,7 @@ Find AI product managers in San Francisco and compare the public experience and</div><div class="run-actions"><a class="button button-pink" href="https://github.com/socai-io/jev-social#run-it" rel="noreferrer">Open full setup ↗</a>+ <a class="text-link" href="../privacy/">Privacy and data flow ↗</a><a class="text-link" href="../local-system-one/">Use local System One ↗</a><a class="text-link" href="https://github.com/socai-io/jev-social/blob/main/docs/troubleshooting.md" rel="noreferrer">Troubleshooting ↗</a></div>@@ -300,6 +301,7 @@ Find AI product managers in San Francisco and compare the public experience and<p>Jev Social keeps browser evidence attached to the research report.</p><div><a href="../">Overview</a>+ <a href="../privacy/">Privacy</a><a href="https://github.com/socai-io/jev-social" rel="noreferrer">GitHub</a><a href="../llms.txt">llms.txt</a></div>diff --git a/site/styles.css b/site/styles.cssindex de53ee0..af37656 100644--- a/site/styles.css+++ b/site/styles.css@@ -294,7 +294,7 @@ h1 span {.section-label {margin-bottom: 22px;- color: #77716a;+ color: #605a55;}.section-heading {diff --git a/test/distribution-docs.test.js b/test/distribution-docs.test.jsindex a8b3e8f..e293363 100644--- a/test/distribution-docs.test.js+++ b/test/distribution-docs.test.js@@ -53,6 +53,7 @@ const publicDocs = [["site/index.html", new URL("../site/index.html", import.meta.url)],["site/local-system-one/index.html", new URL("../site/local-system-one/index.html", import.meta.url)],["site/social-research/index.html", new URL("../site/social-research/index.html", import.meta.url)],+ ["site/privacy/index.html", new URL("../site/privacy/index.html", import.meta.url)],["site/llms.txt", new URL("../site/llms.txt", import.meta.url)],];@@ -392,6 +393,7 @@ test("the social research guide is shipped with exact platform and safety bounda);assert.ok(structuredData, "the social research guide must include JSON-LD");const graph = JSON.parse(structuredData[1])["@graph"];+ const visibleGuide = normalizedVisibleText(guide);assert.ok(Array.isArray(graph));const article = graph.find((entry) => entry["@type"] === "TechArticle");const faq = graph.find((entry) => entry["@type"] === "FAQPage");@@ -455,20 +457,89 @@ test("the social research guide is shipped with exact platform and safety bounda"does not post, like, follow, message, purchase, or change settings","partial evidence",]) {- assert.match(guide, new RegExp(expected.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "i"));+ assert.match(visibleGuide, new RegExp(expected.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "i"));}assert.doesNotMatch(guide, /github\.com\/socai-io\/socai/);assert.doesNotMatch(llms, /github\.com\/socai-io\/socai/);assertNoAffirmativeOfflineClaim(guide);assert.match(sitemap, /https:\/\/socai-io\.github\.io\/jev-social\/social-research\//);assert.match(llms, /https:\/\/socai-io\.github\.io\/jev-social\/social-research\//);- assert.match(workflow, /mkdir -p _site\/assets\/platforms _site\/local-system-one _site\/social-research/);+ assert.match(workflow, /mkdir -p _site\/assets\/platforms _site\/local-system-one _site\/social-research _site\/privacy/);assert.match(workflow,/cp site\/social-research\/index\.html _site\/social-research\//,);});+test("the privacy guide publishes the exact provider and retention boundaries", async () => {+ const [guide, sitemap, workflow, llms, landing, localGuide, socialGuide, styles] = await Promise.all([+ readFile(new URL("../site/privacy/index.html", import.meta.url), "utf8"),+ readFile(new URL("../site/sitemap.xml", import.meta.url), "utf8"),+ readFile(new URL("../.github/workflows/pages.yml", import.meta.url), "utf8"),+ readFile(new URL("../site/llms.txt", import.meta.url), "utf8"),+ readFile(new URL("../site/index.html", import.meta.url), "utf8"),+ readFile(new URL("../site/local-system-one/index.html", import.meta.url), "utf8"),+ readFile(new URL("../site/social-research/index.html", import.meta.url), "utf8"),+ readFile(new URL("../site/styles.css", import.meta.url), "utf8"),+ ]);+ const structuredData = guide.match(+ /<script type="application\/ld\+json">\s*([\s\S]*?)\s*<\/script>/,+ );+ assert.ok(structuredData, "the privacy guide must include JSON-LD");+ const graph = JSON.parse(structuredData[1])["@graph"];+ const visibleGuide = normalizedVisibleText(guide);+ assert.ok(Array.isArray(graph));+ const article = graph.find((entry) => entry["@type"] === "TechArticle");+ const faq = graph.find((entry) => entry["@type"] === "FAQPage");+ assert.equal(article?.url, "https://socai-io.github.io/jev-social/privacy/");+ assert.equal(article?.headline, "Jev Social privacy and data flow");+ assert.equal(article?.about?.["@type"], "SoftwareSourceCode");+ assert.equal(article?.about?.codeRepository, "https://github.com/socai-io/jev-social");+ assert.equal(faq?.mainEntity?.length, 4);++ for (const expected of [+ "Jev Social runs locally, but it is not an offline application",+ "OpenRouter key to https://openrouter.ai/api/v1/auth/key for validation",+ "A key entered interactively is saved in config.json",+ "an existing OPENROUTER_API_KEY is used without writing a second copy",+ "does not read or copy the browser cookie store directly",+ "up to 400 characters",+ "OPENROUTER_REPORT_MODEL=off",+ "SOCAI_TELEMETRY=0",+ "OPENROUTER_API_KEY",+ "TYPESAFE_API_KEY",+ "SOCAI_API_KEY",+ "An independently running desktop process has its own process-level setting",+ "audited socai v0.6.1 release",+ "socai.io/v1/events",+ "Axiom",+ "stable install ID",+ "full phone number",+ "does not specify a server-side deletion or retention period",+ "Provider-side storage and retention are governed by OpenRouter",+ "local decision server has its own model, log, and retention behavior",+ "~/.jev-social",+ "0600",+ "0700",+ "No automatic retention or cleanup schedule",+ "does not post, like, follow, message, purchase, or change settings",+ "only when the research goal explicitly requests it",+ ]) {+ assert.match(visibleGuide, new RegExp(expected.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "i"));+ }+ assertNoAffirmativeOfflineClaim(guide);+ assert.doesNotMatch(guide, /github\.com\/socai-io\/socai(?:\.git)?(?=$|[\s/?#)"'<])/i);+ assert.doesNotMatch(guide, /https:\/\/(?:www\.)?socai\.io/);+ assert.match(sitemap, /https:\/\/socai-io\.github\.io\/jev-social\/privacy\//);+ assert.match(llms, /Privacy and data flow guide: https:\/\/socai-io\.github\.io\/jev-social\/privacy\//);+ assert.match(workflow, /mkdir -p _site\/assets\/platforms _site\/local-system-one _site\/social-research _site\/privacy/);+ assert.match(workflow, /cp site\/privacy\/index\.html _site\/privacy\//);+ assert.match(styles, /\.section-label\s*\{[^}]*color:\s*#605a55;/s);+ for (const contents of [landing, localGuide, socialGuide]) {+ assert.match(contents, /href="(?:\.\/|\.\.\/)privacy\/"/);+ }+});+test("the local System One guide is shipped and keeps its local boundary honest", async () => {const [readme, troubleshooting, guide, sitemap, workflow] = await Promise.all([readFile(new URL("../README.md", import.meta.url), "utf8"),