Documentation of what makes the DIS the DIS (conceptual framework in words), the code that turns those concepts into functions for Ida, and the front-end UI (HTML/CSS/JS cosmetics). Front-end and back-end in one master copy.
Saved in two places: Supabase (immutable version registry + workspace notes) and Cloudflare Pages (this site). Every future update updates both sites.
Four versions are stored: the clean base (pre-upgrade, the revert target), the archived upgrade (v3.1.1 with Ida tool architecture), the archived PENS-removed version (v3.1.2), and the current deployed version (v3.1.3 with app launcher updates). Each version includes its full source code with SHA-256 integrity hashes.
The true pre-upgrade base worker code. This is the clean DIS before the Ida tool architecture upgrade. It is the revert target if any upgrade breaks the system. Extracted from the bak_before_round5_sidebar backup.
The previous production worker code (now superseded by v3.1.2). Contains the Ida tool architecture upgrade: 5 fixes (cycle_distribution tool, detect_transitions tool, metadata field filtering, maxTurns 5→12, rewritten system prompt). PENS was still embedded in this version.
The previous production worker code (now superseded by v3.1.3). PENS was completely removed from the DIS — system prompt, API routes, API functions, UI functions, folder constants, sidebar references, and app descriptions. All 6 PENS analyses + methodology catalog extracted and saved before removal. Front-end PENS references also removed.
The previous production worker code (now superseded by v3.1.4). App launcher updated: "Private Workspace" renamed to "Perceptual Epistemology Notation System™ — Supabase PENS Records" (JU's PENS analysis application). New "Media Player — Analytical Viewing" application added (generic video/audio player with URL and file loading; will eventually connect to the DIS tracker for live feeds). Application count updated from 6 to 7.
The current deployed production worker code. Left sidebar pop-out window redesign (JU's v4 FINAL approved design). All pop-out windows now share a universal style with a gold left header trim and just two header buttons: a gold "…" pop-down trigger and a "×" close button. The minimize button was removed entirely. Each pop-out is sized by function: TERMINAL (860px wide, 420px console), QUICK TASK and NEW THREAD (520px, standard), PROJECT FOLDERS (380px, slim). Title icons were removed and content is left-aligned. The big stretched action buttons (SEND, CREATE THREAD, etc.) were replaced with a clean pop-down menu triggered by the "…" button. Terminal keeps its specialized options (Copy Session, Save to Notes, Re-run Task, Expand View, Print); Quick Task, New Thread, and Project Folders use a simple SUBMIT/RESET pop-down. Project Folders is now create-only (folder management — rename/delete/reorder — will move to the Utility Tab). Utility Tab pop-out was deferred per JU.
PENS has been completely removed from the DIS as JU directed. All PENS content (system prompt, API routes, API functions, UI functions, front-end references) has been removed. The 6 PENS training analyses + methodology catalog were extracted and saved to the SuperNinja workspace before removal. See the investigation document for the original analysis.
The master copy consists of three parts: the conceptual framework (what makes the DIS the DIS, in words), the code documentation (what turns those concepts into functions), and the front-end documentation (HTML/CSS/JS UI cosmetics). Plus a version manifest and the PENS embedding investigation.
The Deterministic Inference System (DIS) is JU's proprietary engine for analyzing the Dependency Loop™ reparations research. It operates on a fixed conceptual framework of four microcycles, seven phenomena, and eleven eras.
Ida's tool architecture was upgraded with 5 fixes. The upgraded version gives Ida the tools she needs to perform cycle analysis: distribution data, transition detection, and metadata field filtering.
The front-end is part of the master copy as JU directed. These are the HTML, CSS, and JavaScript files that render Ida's workspace in the browser. Served from bphen-dis.pages.dev (separate Cloudflare Pages project) and proxied through the worker.
HTML structure: page layout, workspace sidebar, chat interface, archive overlay. PENS Methodology folder removed in v3.1.2.
All CSS: navy theme, CRT overlay, terminal, panels, workspace, archive browser, responsive design.
Main client JavaScript: chat, project folders, archive browser, Ida interaction. PENS folder seed removed in v3.1.2. Worker appends CLIENT_SCRIPT at serve time.
Era data definitions (historical eras, categories, metadata) and version display/changelog logic.
PWA manifest (app name, icons, theme) and 192x192 app icon.
Front-end files are deployed to bphen-dis.pages.dev (separate from this documentation site). The worker (ida-archive-supabase) proxies these files and modifies them at serve time: HTML gets stripPwaShell + stripWorkspaceMetadata + rewriteRetiredWorkspaceLanguage; main-navy.js gets CLIENT_SCRIPT appended. See front-end documentation for details.
The master copy is saved in two places as JU directed: Supabase (the immutable source of truth) and Cloudflare (this site, accessible via browser).
Version Registry: bphen_dis_master_versions table — append-only, immutable. Contains public_contract (conceptual framework as JSON), integrity_manifest (hashes + deployment info), and SHA-256 integrity hashes for all files.
Full Content: workspace_notes table — "DIS Master Copy" project folder with notes containing the full text of all documentation, code files, and front-end files. Accessible through the Private Workspace app.
This site: A static documentation site deployed to Cloudflare Pages. Contains browseable documentation, downloadable code files, front-end files, and integrity hashes.
Code Files: Three versioned .js files are available for direct download with SHA-256 verification. Front-end files also available.
If v3.1.2 causes problems, revert to v3.1.1 (with PENS) or v3.1.0 (the base):
DIS_BASE_v3.1.0_pre_upgrade.js from this site or retrieve it from the Supabase workspace_notes table.15f593437cfb5dbb4037bece23c3bbe9dfd90b53b27cae43beeb518cdf998767ida-archive-worker.js in the deploy-worker-v2 directory.npx wrangler deploy from the deploy-worker-v2 directory to push the base version to Cloudflare.