diff --git a/README.md b/README.md index cd6dd66..7a78647 100644 --- a/README.md +++ b/README.md @@ -1,119 +1,711 @@ + +
-
-- SENTRAVERSE NEURAL-Cinematic brand journey · public site - SENTRAVERSE NEURAL
+
+Cinematic brand experience · Public web application
+
+ |
-SENTRA / SENTRAVERSE NEURAL
+SENTRA / SENTRAVERSE NEURAL
+
+
+ VISITOR → STORY → NEURAL FIELD → DIVISIONS → THE LEGACY → HUMAN EXPLORATION
+
+ |
+
+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.
+ |
+
+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.
+ |
+
+
+
+
+
+
+
LIVE TOPOLOGY // EXPERIENCE & SERVICE BOUNDARIES
+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.
|
+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.
+ |
+
VERA // REQUEST, CONTROL, FAILURE & HUMAN BOUNDARYPROMOTION STATE // REVIEW BEFORE PUBLICATION
+
+
+
+
+
+SENTRA ARTIFICIAL INTELLIGENCE
+
+Product and brand ecosystem that Sentraverse introduces. The site links visitors to `sentrahai.com` and its ecosystem pages.
+ |
+
+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.
+ |
+
+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.
+ |
+
+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.
+ |
+
+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.
+ |
+
+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.
+