BPHEN/DIS Master Copy

v3.1.0 + v3.1.1 + v3.1.2 + v3.1.3 + v3.1.4 · Updated 2026-09-01

BPHEN/DIS Master Copy Repository

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.

DEPLOYED: v3.1.4 BASELINE: v3.1.0 ARCHIVED: v3.1.3 ARCHIVED: v3.1.2 ARCHIVED: v3.1.1

Versioned Master Copies

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.

DIS_BASE_v3.1.0_pre_upgrade.js BASELINE

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.

3,902
Lines
186 KB
Size
4
Tools
SHA-256: 15f593437cfb5dbb4037bece23c3bbe9dfd90b53b27cae43beeb518cdf998767
DIS_v3.1.1_ida_tool_upgrade.js ARCHIVED

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.

4,304
Lines
207 KB
Size
6
Tools
SHA-256: 326f68374cb8eff95ea24532dc887728daae32c14b21f895d9e515dcbc0afe38
DIS_v3.1.2_pens_removed.js ARCHIVED

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.

4,025
Lines
195 KB
Size
6
Tools
SHA-256: see VERSION_MANIFEST.md
DIS_v3.1.3_apps_updated.js ARCHIVED

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.

4,122
Lines
197 KB
Size
7
Apps
SHA-256: 0d488c99b07c9ccbff5907c6d0b53bef5943ab682d6dc7abd9170fec4d0c97b2
DIS_v3.1.4_popout_redesign.js DEPLOYED

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.

4,290
Lines
203 KB
Size
7
Apps
SHA-256: 4500b6a070a64f2064f0699f3c46305fea4a1d56be0f69b2a618c58fdff1d69d
RESOLVED: PENS Removal (v3.1.2 — DEPLOYED)

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.

Documentation

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.

DIS Master Copy — Conceptual Documentation
8 parts: What makes the DIS the DIS, 4 Microcycles, 7 Phenomena, 11 Eras, System Architecture, Database (Supabase tables), API Endpoints, What should/shouldn't be in the DIS
16 KB View
DIS Master Copy — Code Documentation
10 layers: Auth & Session, Client-Side UI, HTML Proxying, Supabase Integration, Archive API, Ida AI Analyst (tools, agentic loop, system prompts), Workspace API, Main Router, Response Utilities. Includes complete API endpoint map and concept→code mapping.
37 KB View
DIS Master Copy — Front-End Documentation (NEW)
Front-end UI documentation: file inventory (index.html, styles-navy.css, main-navy.js, era-data.js, version.js, manifest.json, icon-192.png), architecture (worker proxy + CLIENT_SCRIPT injection), v3.1.2 PENS removal changes, deployment instructions
5 KB View
Version Manifest
Versioning system: base + upgrade + PENS-removed versions, revert instructions, what constitutes a version, storage locations, PENS extraction details, going-forward update protocol
9 KB View
PENS Embedding Investigation
Root cause analysis: why Ida focused on PENS framework instead of cycles. Identifies IDA_SYSTEM_PROMPT as the source. Three layers documented. Fix now implemented in v3.1.2.
10 KB View

What Makes the DIS the DIS

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.

4 Microcycles

  • C1 FREEDOM_SUPPRESSION
  • C2 ADVANCEMENT_RESISTANCE
  • C3 INSTITUTIONAL_RESPONSE
  • C4 CULTURAL_POWER_DYNAMICS

7 Phenomena

  • ECLIPSE
  • DORMANCY
  • EXODUS
  • COVERT_MODE
  • CATALYST
  • REVERSAL
  • CONVERGENCE

11 Eras

  • Eras 1–10: Historical
  • Era 11 BLM Era (2013–Present)
  • Archive: 980 records
  • 356 HISTORICAL / 623 LIVE

Ida Tool Architecture (v3.1.1 — Current)

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.

6 Tools (Upgraded)

  • search_archive (metadata fields)
  • cycle_distribution (NEW)
  • detect_transitions (NEW)
  • web_search
  • list_project_folders
  • append_project_note

4 Tools (Base v3.1.0)

  • search_archive (text-only)
  • web_search
  • list_project_folders
  • append_project_note

5 Upgrades Applied

  • 1. cycle_distribution tool
  • 2. detect_transitions tool
  • 3. Metadata field filtering
  • 4. maxTurns 5→12
  • 5. System prompt rewrite

Front-End Files (UI / Cosmetics)

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.

index.html HTML SHELL

HTML structure: page layout, workspace sidebar, chat interface, archive overlay. PENS Methodology folder removed in v3.1.2.

6.6 KB
Size
styles-navy.css STYLING

All CSS: navy theme, CRT overlay, terminal, panels, workspace, archive browser, responsive design.

37 KB
Size
main-navy.js CLIENT JS

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.

100 KB
Size
era-data.js + version.js DATA

Era data definitions (historical eras, categories, metadata) and version display/changelog logic.

26 KB
Size
manifest.json + icon-192.png PWA

PWA manifest (app name, icons, theme) and 192x192 app icon.

8 KB
Size
NOTE: Front-End Deployment

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.

Storage Locations

The master copy is saved in two places as JU directed: Supabase (the immutable source of truth) and Cloudflare (this site, accessible via browser).

Supabase

SAVED

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.

URL: https://pjiwmrtlbehhgdocofzd.supabase.co
Table: bphen_dis_master_versions
Versions stored: 5 total (2 prior + 2 master + 1 test probe)
Folder: DIS Master Copy (workspace notes)

Cloudflare Pages

DEPLOYED

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.

Project: bphen-dis-master-copy
URL: bphen-dis-master-copy.pages.dev
Files: index.html + CSS + 5 docs + 3 code files + 8 front-end files
Worker: ida-archive-supabase (live at ida.bphen.us)
Front-end: bphen-dis.pages.dev (separate Pages project)

How to Revert

If v3.1.2 causes problems, revert to v3.1.1 (with PENS) or v3.1.0 (the base):

Step 1: Download the base code
Download DIS_BASE_v3.1.0_pre_upgrade.js from this site or retrieve it from the Supabase workspace_notes table.
Step 2: Verify the SHA-256 hash
Confirm the file hash matches: 15f593437cfb5dbb4037bece23c3bbe9dfd90b53b27cae43beeb518cdf998767
Step 3: Replace the worker file
Copy the verified file to ida-archive-worker.js in the deploy-worker-v2 directory.
Step 4: Deploy with Wrangler
Run npx wrangler deploy from the deploy-worker-v2 directory to push the base version to Cloudflare.