diff --git a/README.md b/README.md index cd6dd66..7a78647 100644 --- a/README.md +++ b/README.md @@ -1,119 +1,711 @@ + + + +
-Sentraverse logo -

-SENTRAVERSE NEURAL
-Cinematic brand journey · public site

-healthcare -active + + Official Sentraverse neural mark on dark background + + +SENTRAVERSE NEURAL + +Cinematic brand experience · Public web application + +Sentra brand experience +Healthcare capsule classification
-SENTRA / SENTRAVERSE NEURAL +SENTRA / SENTRAVERSE NEURAL + + + Intelligence begins as connection. + + +Operational signal: Fifteen chapters · Five divisions in the current implementation · One continuous scroll-driven narrative. + +Sentra Artificial Intelligence + +A cinematic introduction to the Sentra ecosystem, from a single neural connection to the founder's film, with Vera available as a separate AI-assisted information surface. + +Architected and built by dr. Ferdi Iskandar (the Gaffer). + +GitHub repository +Recorded public site URL +Sentra ecosystem + +VISITOR → STORY → NEURAL FIELD → DIVISIONS → THE LEGACY → HUMAN EXPLORATION + +
+ +## 01 / ORIGIN SIGNAL + +**One living network. One story. One ecosystem.** + +Sentraverse Neural is the public-facing cinematic journey of Sentra Artificial Intelligence. It turns biological connections into a visual metaphor for an interconnected organization, without presenting the website as a clinical system. The experience was separated from the broader `sentraverse` capsule on **9 October 2026** so that its runtime, assets, tests, and release lifecycle can remain independent. + +Visitors move through **15 chapters** on a single GSAP master timeline. The journey begins with an origin, forms neurons and signals, crosses a synapse, reveals the Sentraverse network, introduces the **five divisions currently encoded in the product**, and closes on **THE LEGACY**—a versioned, scroll-scrubbed film sequence depicting the human behind the system. **Vera** is an optional floating conversational interface that calls a separate Dify-powered service through a server-side route. + +**Intended audience:** public visitors exploring Sentra on desktop or touch devices, visitors who prefer reduced motion or use the page without JavaScript, visitors asking high-level ecosystem questions through Vera, and the human product owner overseeing story and releases. + +**In scope:** the single-page narrative, interactive neural renderer, film frames, accessibility fallback, Vera widget and server proxy, testing, and capsule-local operations. + +**Out of scope:** accounts, payments, analytics, patient records, clinical decision support, ownership of the broader `sentrahai.com` pages, and independent AI clinical claims. Outbound ecosystem pages are linked, not imported. + + + + + + + +
+I · NARRATIVE + +One pinned journey. Fifteen chapters. A timeline shared by motion, stage, and film. + +II · EXPERIENCE + +WebGL field, Canvas 2D fallback, mobile layout, reduced-motion and no-JavaScript reading paths. + +III · INFORMATION + +Vera's optional chat proxy, bounded inputs and request limits, with AI behavior defined outside this repository. +
+ +## 02 / DOCTRINE + +> [!IMPORTANT] +> **The story may be cinematic; its implementation must remain inspectable.** Sentraverse is a brand gateway, not a medical advice service or a clinical decision engine. + + + + + + + + + + + + + + +
+ONE MASTER CLOCK + +`components/neural/timeline.ts` governs chapter transitions, signal handoffs and film timing. New motion must respect the mapped phases and their tests. + +READABLE WITHOUT EFFECTS + +Reduced-motion visitors receive unpinned reading mode. WebGL failures fall back to Canvas 2D; the chapter text remains accessible if rendering is unavailable. +
+IMMUTABLE FILM VERSIONS + +THE LEGACY uses frame sequences under `public/legacy-film/<version>/`. Re-exports create a new version; existing deployed frames are not overwritten. + +ONE CAPSULE, OWN RUNTIME + +Node, pnpm lockfile, scripts, project contract and build configuration belong to this repository. External Sentra pages are ordinary hyperlinks, not parent dependencies. +
+NO MAGIC WITHOUT AUDIT + +Describe the actual source, test, failure mode and verification status behind each capability. A configured service is not automatically a verified service. + +HUMAN PUBLICATION AUTHORITY -Intelligence begins as connection. +dr. Ferdi Iskandar owns brand decisions, clinical messaging, credentials, merges and production releases. Automated checks provide evidence, not approval. +
+ +## 03 / PRODUCT TOPOLOGY + +

+GSAP scroll +WebGL and Canvas +Vera +Rate limit +Human authority +

+ +
+LIVE TOPOLOGY // EXPERIENCE & SERVICE BOUNDARIES + +```mermaid +%%{init: {"flowchart": {"htmlLabels": false, "padding": 20}, "themeVariables": {"fontFamily": "monospace", "fontSize": "11px"}}}%% +flowchart TB + VISITOR["PUBLIC VISITOR"] + WEB["NEXT.JS PAGE /"] + JOURNEY["GSAP MASTER TIMELINE"] + FIELD["WEBGL / CANVAS 2D FIELD"] + FILM["VERSIONED LEGACY FRAMES"] + READ["READING MODE / NO-JS TEXT"] + VERA["VERA CHAT WIDGET"] + API["POST /api/vera/chat"] + LIMIT["10 MESSAGES / 24 HOURS"] + CACHE[("UPSTASH / MEMORY FALLBACK")] + DIFY["EXTERNAL DIFY CHAT API"] + SENTRA["SENTRAHAI.COM LINKS"] + OWNER["HUMAN OWNER / RELEASE APPROVER"] + FAIL["API FAILURE / UNVERIFIED ANSWER"] + + VISITOR --> WEB + WEB --> JOURNEY + JOURNEY --> FIELD + JOURNEY --> FILM + WEB --> READ + WEB --> VERA + WEB --> SENTRA + VERA --> API + API --> LIMIT + LIMIT --> CACHE + LIMIT --> DIFY + DIFY --> VERA + API -. errors .-> FAIL + OWNER -. governs releases .-> WEB + + classDef authority fill:#0D1117,stroke:#F59E0B,color:#ffffff,stroke-width:2px; + classDef agent fill:#0D1117,stroke:#8B5CF6,color:#ffffff,stroke-width:2px; + classDef control fill:#0D1117,stroke:#14B8A6,color:#ffffff,stroke-width:2px; + classDef core fill:#0D1117,stroke:#5B8CFF,color:#ffffff,stroke-width:2px; + classDef surface fill:#0D1117,stroke:#22D3EE,color:#ffffff,stroke-width:1.5px; + classDef shared fill:#0D1117,stroke:#64748B,color:#ffffff,stroke-width:1.5px; + classDef danger fill:#0D1117,stroke:#EF4444,color:#ffffff,stroke-width:2px; + classDef data fill:#0D1117,stroke:#0EA5E9,color:#ffffff,stroke-width:1.5px; + + class VISITOR,OWNER authority; + class WEB,JOURNEY core; + class FIELD,FILM,READ,SENTRA surface; + class VERA,DIFY agent; + class API,LIMIT control; + class CACHE data; + class FAIL danger; +``` -Sentra Artificial Intelligence
-The cinematic neural journey of the Sentra ecosystem: one scroll from a single connection to the -Sentra divisions and the founder's film, with Vera, a small assistant, beside it. +
-Architected and built by dr. Ferdi Iskandar (the Gaffer). +### Component map + + + + + + + + +
+01 · NARRATIVE CORE + +`components/neural/` + +`story.ts` defines the fifteen chapters and five current divisions; `timeline.ts` maps phases and film beats; `NeuralJourney.tsx` owns GSAP matchMedia lifecycle, scroll, sound, progress trace and accessibility modes. + +02 · LIVING FIELD -SCROLL → MASTER TIMELINE → NEURAL FIELD → THE LEGACY → SENTRAHAI.COM +`renderer.ts` and companions +`geometry.ts`, `signal.ts`, `handoff.ts`, `tactile.ts` and related modules generate the neural structure, activity cycle and pointer interaction with a Canvas fallback. +
+03 · THE LEGACY + +`LegacyScene.tsx` · `film.ts` · `morph.ts` + +Versioned still frames render against the shared master clock. `public/legacy-film/v1/` contains 120 frames plus a poster; the film is not a seeked HTML video. + +04 · VERA INFORMATION SURFACE + +`components/VeraNeuralWidget.tsx` · `app/api/vera/chat/` + +Client-side SSE reader, question validation, daily counter, and server-only Dify proxy. Upstream model, prompt, and data retention are managed outside the repository.
-## What it is +### Capability matrix + +| Capability | Status | Evidence | Important boundary | +|---|---|---|---| +| 15-chapter, scroll-scrubbed narrative | **IMPLEMENTED** | `story.ts`, `timeline.ts`, `e2e/neural.spec.ts` | Performance varies by device. | +| Five division discoveries and SentraSquad | **IMPLEMENTED** | `story.ts` and neural E2E cases | Four-division branding proposal is not aligned with current copy. | +| WebGL neural field with Canvas fallback | **IMPLEMENTED** | `renderer.ts`, E2E coverage | GPU and browser support vary. | +| Reduced motion and no-JavaScript reading | **IMPLEMENTED** | `NeuralJourney.tsx`, E2E coverage | Safari/iOS release check is separate. | +| THE LEGACY versioned frame sequence | **IMPLEMENTED** | `film.ts`, `public/legacy-film/v1/`, tests | Existing version directories are immutable. | +| Vera streaming chat proxy | **IMPLEMENTED** | `route.ts`, `VeraNeuralWidget.tsx` | Live Dify behavior and content accuracy not verified in this documentation revision. | +| 10-message daily rate limiting | **IMPLEMENTED** | `limit.ts`, `limit.test.mjs` | Shared durability depends on Upstash; memory fallback is per instance. | +| Robots and Organization structured data | **IMPLEMENTED** | `app/robots.ts`, `app/page.tsx` | Canonical URL and sitemap remain pending. | +| Production analytics / real-user performance telemetry | **NOT IMPLEMENTED** | `docs/observability.md` | INP/LCP field data unavailable. | + +## 04 / THE ENGINE ROOM + + + + + + + +
+FRONTEND + +Next.js 16 App Router, React 19, TypeScript 5.9, GSAP 3.15 with ScrollTrigger and SplitText, Tailwind CSS 4 preflight, Inter and Plus Jakarta Sans. + +SERVER -A pinned stage scrubbed by the scroll through fifteen chapters: from a single connection, through -neurons, signal and synapse, to the five Sentra divisions and SENTRA, ending on THE LEGACY, the -founder's film, whose last frame turns the left side of the face into neural tissue. A floating -chat widget, Vera, answers questions about the ecosystem through a server proxy to Dify. +Node.js 24 route runtime for Vera, Dify `chat-messages` streaming proxy and optional Upstash Redis REST API. + +DELIVERY -Status: active, public at `https://sentraverseii.vercel.app/` (final domain pending). Split out of -the `sentraverse` capsule on 2026-10-09; earlier history lives there and in `.agents/DECISIONS.md`. +Independent pnpm 11.21.0 lockfile, webpack build, GitHub Actions lint/test/build, and documented Vercel release workflow. +
-## Capabilities +### Repository anatomy + +```text +Sentraverse/ +├── AGENTS.md # Local agent and repository rules +├── README.md # Product and operator front door +├── project.contract.json # Standalone lifecycle and owner +├── package.json # Next.js scripts and exact dependencies +├── pnpm-lock.yaml # Capsule-owned dependency resolution +├── pnpm-workspace.yaml # Capsule-local workspace +├── app/ +│ ├── page.tsx # Public cinematic page +│ ├── layout.tsx # Fonts, metadata, Vera mount +│ ├── robots.ts # Robots metadata +│ └── api/vera/chat/ # POST proxy and rate limit +├── components/ +│ ├── neural/ # Story, timeline, renderer and film +│ └── VeraNeuralWidget.tsx # Chat client +├── public/ +│ ├── brand/sentraverse-logo.png # Official transparent neural mark +│ ├── neural-face.webp # Product visual asset +│ └── legacy-film/v1/ # Versioned frames and poster +├── e2e/ # Chromium journey and smoke tests +├── scripts/ # pnpm wrapper, dry-run, film tools +├── docs/ # Architecture, security and operations +├── .agents/ # Capsule decisions and handoff +└── .github/workflows/ci.yml # Lint / tests / build +``` -| Capability | State | Evidence | -| --- | --- | --- | -| Scroll-scrubbed journey, WebGL with Canvas 2D fallback | Working | `NeuralJourney.tsx`, `renderer.ts`, e2e | -| Reading mode for reduced motion and no-JS | Working | e2e "reduced motion", "without JavaScript" | -| THE LEGACY film as an immutable frame sequence | Working | `film.ts`, `public/legacy-film/v1/` | -| Vera chat with 10 messages/visitor/day | Working; live limit unverified | `app/api/vera/chat/`, `limit.test.mjs` | -| Analytics, sitemap, canonical URL | Not implemented | `app/robots.ts` | +**Sovereignty boundary:** the source and dependencies live inside this repository. `sentrahai.com` is linked through absolute URLs generated by `sentra(path)`, not imported as source code. The standalone contract is in [`project.contract.json`](project.contract.json); empirical extraction status is listed below. + +## 05 / SIGNAL PATH + +The cinematic page and the conversational assistant have **different execution paths**. Scroll and film rendering run in the browser; only Vera's chat request crosses into a server and an external AI provider. + +
+VERA // REQUEST, CONTROL, FAILURE & HUMAN BOUNDARY + +```mermaid +%%{init: {"flowchart": {"htmlLabels": false, "padding": 20}, "themeVariables": {"fontFamily": "monospace", "fontSize": "11px"}}}%% +flowchart TB + USER["VISITOR QUESTION"] + VALID["VALIDATE QUERY <= 1000 CHARACTERS"] + RATE["RATE LIMIT / 10 PER DAY"] + REDIS[("UPSTASH OR INSTANCE MEMORY")] + PROXY["SERVER-ONLY DIFY PROXY"] + SSE["SSE STREAM TO VERA"] + FAIL["400 / 413 / 429 / 500 / 502"] + REVIEW["HUMAN TREATS ANSWER AS INFORMATION"] + OWNER["OWNER APPROVES HIGH-IMPACT CHANGES"] + + USER --> VALID + VALID --> RATE + VALID -. invalid .-> FAIL + RATE <--> REDIS + RATE --> PROXY + RATE -. exceeded .-> FAIL + PROXY --> SSE + PROXY -. unavailable .-> FAIL + SSE --> REVIEW + OWNER -. controls external AI policy and release .-> PROXY + + classDef authority fill:#0D1117,stroke:#F59E0B,color:#ffffff,stroke-width:2px; + classDef agent fill:#0D1117,stroke:#8B5CF6,color:#ffffff,stroke-width:2px; + classDef control fill:#0D1117,stroke:#14B8A6,color:#ffffff,stroke-width:2px; + classDef surface fill:#0D1117,stroke:#22D3EE,color:#ffffff,stroke-width:1.5px; + classDef danger fill:#0D1117,stroke:#EF4444,color:#ffffff,stroke-width:2px; + classDef data fill:#0D1117,stroke:#0EA5E9,color:#ffffff,stroke-width:1.5px; + + class USER,SSE surface; + class VALID,RATE control; + class REDIS data; + class PROXY agent; + class FAIL danger; + class REVIEW,OWNER authority; +``` -## Boundaries +
-- In scope: the home page journey, the Vera widget and route, the film frames, their tests. -- Out of scope: the rest of sentrahai.com (in the `sentraverse` capsule; linked, never imported), - patient data, accounts, clinical decisions. -- Human owner: Gaffer (dr. Ferdi Iskandar). Default risk R2. +Vera is **not an approved clinical advisory tool**. Its external Dify prompt, knowledge base, model, and retention policies are not maintained or audited here. The widget currently includes clinical/regulatory quick-prompt topics without a visible informational-use disclaimer; this is a recorded product-safety review item, not a completed safeguard. See [regulatory and clinical safety](docs/regulatory-safety.md). -## Interfaces +## 06 / BUILD PROTOCOL -- Exposes `/`, `/legacy-film//*`, `/robots.txt`, and `POST /api/vera/chat`. -- Consumes Dify (`DIFY_API_KEY`, optional `DIFY_API_URL`) and, optionally, Upstash Redis REST - (`KV_REST_API_URL`, `KV_REST_API_TOKEN`). The journey itself needs no configuration. +### Prerequisites -## Stack +- **Node.js 24** (`>=24 <25`) and **pnpm 11.21.0** (as defined in [`package.json`](package.json)). +- No monorepo root installation, parent package import, or shared lockfile. +- Optional Chrome/Chromium for Playwright browser tests and film tooling. +- Optional Dify credentials for an operational Vera conversation; the cinematic journey runs without them. -Next.js 16 (App Router, webpack build), React 19, gsap 3.15 (ScrollTrigger, SplitText), -Tailwind 4 for its preflight only, TypeScript 5.9, Node 24, pnpm 11.21.0 with its own lockfile. +### Install, develop and run -## Quick start +Run from this repository's root: ```bash node scripts/pnpm.mjs install --frozen-lockfile +node scripts/pnpm.mjs run dev +``` + +Open **http://127.0.0.1:4346**. + +To run a local production build: + +```bash node scripts/pnpm.mjs run build node scripts/pnpm.mjs run start ``` -Open http://127.0.0.1:4346. All commands: `AGENTS.md` "Commands" and `project.contract.json`. +### Configuration + +Store server-only values in git-ignored `.env.local` or the host's environment configuration. **Never commit credentials.** + +| Variable | Required | Role | Boundary | +|---|---|---|---| +| `DIFY_API_KEY` | For Vera only | Dify bearer credential | Server-only; missing key returns HTTP 500 for chat. | +| `DIFY_API_URL` | No | Overrides default `https://api.dify.ai/v1` | Server-only. | +| `KV_REST_API_URL` | No | Upstash REST endpoint | Used with the token; absent pair enables memory fallback. | +| `KV_REST_API_TOKEN` | No | Upstash REST bearer token | Server-only. | + +### Verification commands + +```bash +node scripts/pnpm.mjs run lint +node scripts/pnpm.mjs run typecheck +node scripts/pnpm.mjs run test +node scripts/pnpm.mjs run build +node scripts/pnpm.mjs run deploy:dry-run +node scripts/pnpm.mjs run test:e2e +``` + +Playwright E2E requires a running application and installed browser; its target can be configured using `PLAYWRIGHT_BASE_URL`. The latest recorded automated evidence is historical and **must not** be interpreted as a new test run for this README change. + +### Promotion and rollback + +
+PROMOTION STATE // REVIEW BEFORE PUBLICATION + +```mermaid +%%{init: {"flowchart": {"htmlLabels": false, "padding": 20}, "themeVariables": {"fontFamily": "monospace", "fontSize": "11px"}}}%% +flowchart LR + DEV["SCOPED DEVELOPMENT"] + CI["LINT / TEST / BUILD"] + REVIEW["DIFF & SECURITY REVIEW"] + AUTH["GAFFER APPROVAL"] + PROD["VERCEL PRODUCTION"] + ROLL["PREVIOUS DEPLOYMENT / REVERT"] + + DEV --> CI + CI --> REVIEW + REVIEW --> AUTH + AUTH --> PROD + PROD -. incident .-> ROLL + ROLL --> DEV + + classDef core fill:#0D1117,stroke:#5B8CFF,color:#ffffff,stroke-width:2px; + classDef control fill:#0D1117,stroke:#14B8A6,color:#ffffff,stroke-width:2px; + classDef authority fill:#0D1117,stroke:#F59E0B,color:#ffffff,stroke-width:2px; + classDef success fill:#0D1117,stroke:#10B981,color:#ffffff,stroke-width:2px; + classDef danger fill:#0D1117,stroke:#EF4444,color:#ffffff,stroke-width:2px; + + class DEV,CI core; + class REVIEW control; + class AUTH authority; + class PROD success; + class ROLL danger; +``` + +
+ +The repository's CI is configured to run lint, unit tests and build for pull requests targeting `main`. Browser E2E is **not** part of CI. Production is documented at [`sentraverseii.vercel.app`](https://sentraverseii.vercel.app/), with final canonical domain still pending. Releases, credentials and production changes require explicit approval from the human owner. Rollback is by promoting the previous Vercel deployment or reverting the affected commit; see [deployment](docs/deployment.md). + +## 07 / THE SENTRA OPERATING STANDARD + +**No magic without audit.** +**No automation without verification.** +**No production promotion without rollback.** +**No sensitive data without explicit security boundaries.** +**No expansion without one solved problem first.** + +| Operating question | Product-specific answer | +|---|---| +| What problem is solved? | A coherent, accessible cinematic entry to Sentra's ecosystem. | +| Who owns the final decision? | dr. Ferdi Iskandar (the Gaffer). | +| What is outside scope? | Clinical advice, patient data, accounts, payment flows, and the wider Sentra website runtime. | +| What can fail? | GPU renderer, asset loading, external Dify, Redis, unverified assistant content, release/configuration. | +| How is it checked? | Source-reviewed contracts, unit tests, Playwright scenarios, lint, types, build, documented manual checks. | + +## 08 / SENTRA FOUNDATION · AGENT-FIRST ENGINEERING + +This repository is a **standalone Sentra product capsule**, documented within the SAFRS-governed engineering ecosystem. + +**Human-Governed · Agent-Executed · Machine-Enforced.** + +- **Human governs:** product intent, claims, founder identity, high-impact changes, credentials and publication. +- **Agents execute:** scoped implementation, engineering documentation and evidence preparation. +- **Machines enforce:** test assertions, lint, types, build and configured CI gates. +- **Standalone proof:** a project is certified sovereign only after **empirical extraction testing** outside the parent monorepo. The current published documentation does **not** establish a completed extraction proof. + +

+Sentra +Human governed +Agent executed +Machine enforced +

+ +## 09 / SENTRA DIVISIONAL HOME + + + + + + +
+Parent organization + +SENTRA ARTIFICIAL INTELLIGENCE + +Product and brand ecosystem that Sentraverse introduces. The site links visitors to `sentrahai.com` and its ecosystem pages. + +Sentraverse Neural product + +SENTRAVERSE NEURAL + +Public cinematic brand experience. Its repository/contract classifies the capsule under the `healthcare` engineering domain; this does not make the public site a clinical runtime. +
+ +**Brand alignment decision outstanding:** `components/neural/story.ts` currently has five divisions. `docs/product-scope.md` records a later four-division **Sentraverse Intelligence** brand proposal. The implementation and the public README retain the factual five-division state until the owner decides whether to change product copy. + +## 10 / SECURITY · TRUST · DATA BOUNDARY + + + + + + + + + + +
+AUTHENTICATION + +Public site; no application login, user roles or local user accounts. The optional chat route accepts anonymous requests. + +INPUT LIMITS + +Questions must be non-empty strings no longer than 1,000 characters. The route returns 400 or 413 for invalid inputs, 429 after the per-visitor limit. +
+SERVER SECRETS + +Dify and Upstash credentials remain on the server. No environment values belong in this public README, static assets, or client source. + +EXTERNAL TRUST + +Dify handles AI inference and retention outside this repo. Upstash may hold a 32-character prefix of a SHA-256 hash of visitor IP for the counter, with 24-hour expiry. +
+ +`next.config.mjs` configures response security headers including `X-Content-Type-Options`, frame denial, referrer policy, permissions policy, HSTS and CSP. **Known caveats:** CSP currently allows `'unsafe-inline'` and `'unsafe-eval'` scripts; `x-forwarded-for` can be spoofed on an untrusted proxy path; Vera forwards the browser-provided `user` field to Dify; and the dry-run script's `SERVER_ONLY` list is empty, so its output does **not** prove Vera secrets absent from the client bundle. Those are open engineering/security review items, not claims of complete hardening. + +> [!CAUTION] +> The site does not accept patient records or perform clinical decisions. Vera's external answers may still include incorrect clinical or regulatory statements. Do not treat generated answers as clinical guidance, regulatory approval or verified institutional policy. + +See [security](docs/security.md), [data handling](docs/data.md) and [clinical safety](docs/regulatory-safety.md). + +## 11 / API · INTEGRATION SURFACE + +| Method / interface | Route / target | Responsibility | Trust / failure | +|---|---|---|---| +| GET | `/` | Render the public story and mount Vera | No login; readable fallback is available. | +| GET | `/legacy-film/v1/*` | Serve immutable versioned frames | Missing/not-yet-loaded frames use the closest loaded frame when possible. | +| GET | `/robots.txt` | Permit crawler access | Canonical and sitemap not yet configured. | +| POST | `/api/vera/chat` | Validate, rate-limit, proxy and stream | 400 / 413 / 429 / 500 / 502 error paths. | +| POST (server) | Dify `/chat-messages` | External AI stream using server bearer key | Provider or credential failure is surfaced without raw upstream error text. | +| POST (server) | Upstash `/pipeline` | Daily counter, TTL and hashed-IP key | 2-second timeout; local-memory fallback if unavailable. | +| Outbound link | `https://sentrahai.com` | Open broader Sentra ecosystem pages | Separate capsule and runtime, never imported into this app. | + +**Vera request:** JSON body with required `query`, optional `conversation_id` and optional `user`. Successful responses use `text/event-stream`. The client stores the conversation ID in React state for the current tab only. Detailed contracts: [integrations](docs/integrations.md). + +## 12 / DATA · PERSISTENCE · OBSERVABILITY + + + + + + + +
+STATIC ASSETS + +Brand logo, face image, and versioned film frames are committed to the repository and published intentionally. + +EPHEMERAL / EXTERNAL STATE + +Vera conversation ID lives in client memory. Dify stores or processes conversations under external provider policy. Upstash counter has a 24-hour TTL, else ephemeral instance memory. + +OBSERVABILITY + +Runtime errors and request codes appear in Vercel logs; CI build output in GitHub Actions. No in-repository uptime monitoring, app analytics or RUM instrumentation is documented. +
+ +## 13 / FAILURE MODES · LIMITATIONS · TROUBLESHOOTING + +| Signal / symptom | Meaning | Operator action | +|---|---|---| +| WebGL unavailable or context lost | Canvas 2D fallback is expected. | Verify chapter readability and inspect renderer behavior. | +| Reduced-motion setting | Unpinned reading presentation is expected. | Verify content remains complete and navigable. | +| Vera HTTP 500 | Missing Dify key or server exception. | Check server-only environment and runtime logs; escalation for credential changes. | +| Vera HTTP 502 | Dify unavailable, non-2xx or missing response stream. | Check provider status/quota and server logs. | +| Vera HTTP 429 | Message budget exceeded. | Respect `Retry-After`; inspect Upstash only when incident response requires it. | +| Unexpected reset of daily limit | Upstash absent/unreachable and per-instance memory in use. | Inspect optional Redis environment configuration. | +| Dry-run says build artifact missing | `.next/BUILD_ID` not created. | Run a fresh build before the dry-run. | + +**Known limitations:** no confirmed field INP/LCP metrics, no current Safari/iOS release test evidence, no unit/E2E test for Vera's widget, no direct automated route contract test, no canonical URL/sitemap, and no automated clinical-content verification of the external Dify app. No production health/uptime monitor or alert routing is documented. + +For operational response, see [troubleshooting](docs/troubleshooting.md), [runbook](docs/runbook.md) and [observability](docs/observability.md). + +## 14 / OFFICIAL SPONSOR & INSTITUTIONAL CONTEXT + +No external sponsor is declared for this product. Sentraverse Neural is developed under **Sentra Artificial Intelligence**. The separate brand kit is currently described as **proposed for approval**, not as an independently certified corporate standard: [Sentraverse brand kit](docs/brand/README_START_HERE.md). + +## 15 / OPEN CHANNEL + +Sentra website +Sentraverse source +Founder LinkedIn +Founder Medium + +For a potential vulnerability, **contact the human repository owner privately** rather than publishing credentials or security details in a public issue. + +## 16 / ACTIVE STACK + +| Layer | Repository-evidenced technology | +|---|---| +| Web framework and UI | Next.js 16.3.6, React 19.3.0, React DOM 19.3.0 | +| Motion and rendering | GSAP 3.15.0, WebGL and Canvas 2D APIs | +| Styling and fonts | Tailwind CSS 4.3.3 (preflight), Inter, Plus Jakarta Sans, CSS modules | +| Language / runtime | TypeScript 5.9.3, Node.js 24 | +| Package / build | pnpm 11.21.0, webpack-backed Next.js build | +| Server and AI integration | Next.js Node route, Dify streaming API, optional Upstash Redis REST | +| Tests / delivery | Node test runner, ESLint 9, Playwright 1.63.0, GitHub Actions, documented Vercel host | + +## 17 / INSTRUMENTATION + +**Technology surface:** only capabilities used or declared by this repository are listed. + + + + + + + + + + + + + + + + + + +
+01 · LANGUAGES & RUNTIMES + +TypeScript / JavaScript ESM, Node.js 24, browser canvas and WebGL APIs. + +02 · FRONTEND & UI + +Next.js App Router, React 19, GSAP ScrollTrigger / SplitText, Tailwind preflight, CSS modules, next/font. +
+03 · BACKEND & API + +Next.js route handler: JSON input, request validation and SSE pass-through. + +04 · AI & AUTOMATION + +External Dify AI orchestration accessed from the server. No AI model is hosted or trained in this repository. +
+05 · DATA & STORAGE + +Versioned repository assets; Upstash counter when configured; ephemeral in-memory fallback and browser conversation ID. + +06 · DELIVERY & OPERATIONS + +GitHub Actions CI, standalone project contract, Vercel deployment path, explicit owner-controlled releases and rollback. +
+07 · TESTING & QA + +`node --test` for leaf modules and rate limits, Playwright Chromium journey cases, ESLint, TypeScript and production build. + +08 · SECURITY & OBSERVABILITY + +Input/rate controls, response headers, server-side keys, Vercel runtime logs and explicitly recorded audit gaps. +
+ +## 18 / DOCUMENTATION · CONTRIBUTION · LICENSE + +### Documentation map + +| Concern | Canonical reference | +|---|---| +| Purpose and users | [Product scope](docs/product-scope.md) | +| Architecture and motion | [Architecture](docs/architecture.md) · [Neural journey](docs/neural-journey.md) | +| Setup and testing | [Development](docs/development.md) · [Testing](docs/testing.md) · [Verification record](docs/verification.md) | +| Vera API and persistence | [Integrations](docs/integrations.md) · [Data](docs/data.md) | +| Security and clinical boundary | [Security](docs/security.md) · [Regulatory safety](docs/regulatory-safety.md) | +| Production operations | [Deployment](docs/deployment.md) · [Runbook](docs/runbook.md) · [Troubleshooting](docs/troubleshooting.md) · [Observability](docs/observability.md) | +| Governance and decisions | [Governance](docs/governance.md) · [Agent guidance](AGENTS.md) · [Decision log](.agents/DECISIONS.md) | +| Brand kit | [Brand identity README](docs/brand/README_START_HERE.md) | + +### Contribution + +This is an owner-governed public repository. Review [`AGENTS.md`](AGENTS.md) and [`docs/governance.md`](docs/governance.md) before proposing changes. Scope changes, verify locally, submit reviewable diffs and obtain owner approval for merges and publication. A separate external contribution process is **not** defined in the repository. -## Documentation +### License -| Topic | Document | -| --- | --- | -| Product scope and users | [`docs/product-scope.md`](docs/product-scope.md) | -| Architecture map | [`docs/architecture.md`](docs/architecture.md) | -| Motion design record | [`docs/neural-journey.md`](docs/neural-journey.md) | -| Decisions | [`.agents/DECISIONS.md`](.agents/DECISIONS.md) | -| Development setup | [`docs/development.md`](docs/development.md) | -| Testing and verification | [`docs/testing.md`](docs/testing.md), [`docs/verification.md`](docs/verification.md) | -| Security, data, regulatory | [`docs/security.md`](docs/security.md), [`docs/data.md`](docs/data.md), [`docs/regulatory-safety.md`](docs/regulatory-safety.md) | -| Vera API and services | [`docs/integrations.md`](docs/integrations.md) | -| Operations | [`docs/runbook.md`](docs/runbook.md), [`docs/troubleshooting.md`](docs/troubleshooting.md), [`docs/observability.md`](docs/observability.md), [`docs/deployment.md`](docs/deployment.md) | -| Governance | [`docs/governance.md`](docs/governance.md) | -| Brand kit | [`docs/brand/README_START_HERE.md`](docs/brand/README_START_HERE.md) | +**MIT** — see [LICENSE](LICENSE). No separate sponsor or certification claim is implied by this license. -## Where things are +### Support & security reporting -| Path | Role | -| --- | --- | -| `components/neural/story.ts` | The chapters, `phaseOf(id)`, and `sentra(path)` for links to sentrahai.com | -| `components/neural/timeline.ts` | The master timeline, the phase-to-time tempo, THE LEGACY's beats | -| `components/neural/NeuralJourney.tsx` | `gsap.matchMedia` lifecycle, the pinned ScrollTrigger, pointer, sound, reading mode, film preload | -| `components/neural/renderer.ts`, `geometry.ts`, `signal.ts` | The neural field and its activity cycle | -| `components/neural/film.ts`, `morph.ts`, `LegacyScene.tsx` | The film as a scrubbed frame sequence and the face that becomes neural tissue | -| `components/VeraNeuralWidget.tsx`, `app/api/vera/chat/` | Vera widget, proxy route and rate limit | -| `scripts/legacy-film/` | Re-export the frames and re-measure the morph | +For usage or operational issues, consult [the runbook](docs/runbook.md). Send sensitive disclosures privately to the repository owner; do not include API keys, private visitor information or credentials in a public issue. -## Known limitations +## 19 / VERIFICATION STATUS -- E2E runs locally only; Safari/iOS is a separate release check; INP/LCP field data pending. -- The Vera limit is per instance when Upstash is not configured. -- Vera's answers come from an external Dify app not reviewed here (`docs/regulatory-safety.md`). +The following results distinguish **past recorded tests** from **checks performed during this README-only change**. No old result is presented as a fresh run. -## License +| Surface | Recorded status | Evidence / command | Limitation | +|---|---|---|---| +| Install | **PASS — 20 Nov 2026 record** | `node scripts/pnpm.mjs install --frozen-lockfile` | Historical evidence in `docs/verification.md`. | +| Typecheck | **PASS — 20 Nov 2026 record** | `node scripts/pnpm.mjs run typecheck` | Not rerun for README revision. | +| Lint | **PASS — 20 Nov 2026 record** | `node scripts/pnpm.mjs run lint` | Not rerun for README revision. | +| Unit tests | **59/59 — 20 Nov 2026 record** | `node scripts/pnpm.mjs run test` | Does not cover full Vera widget / route. | +| Build | **PASS — 20 Nov 2026 record** | `node scripts/pnpm.mjs run build` | Not rerun for README revision. | +| Deployment dry-run | **PASS WITH LIMITATION — recorded** | `node scripts/pnpm.mjs run deploy:dry-run` | Secret-name check currently uses an empty list. | +| Playwright E2E | **24/24 — 9 Oct 2026 record** | `node scripts/pnpm.mjs run test:e2e` | Predates Vera; not rerun on this revision. | +| Standalone extraction | **UNVERIFIED** | Parent control-plane `pnpm run project:verify` | Not executed in available evidence. | +| Live Vera / Dify and Upstash behavior | **UNVERIFIED IN THIS REVISION** | Owner-approved integration checks | Requires explicit access and real environment evidence. | -MIT. See [`LICENSE`](LICENSE). +

+Architected and built by dr. Ferdi Iskandar (the Gaffer) · Sentra Artificial Intelligence. ---- +Sentraverse Neural — intelligence begins as connection. -_Architected and built by Drferdi._ +// the surface is documentation. the depth is running. +