Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 14 additions & 74 deletions app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,86 +18,26 @@ This repository strictly adheres to the KORSAKOV architectural manifest for MCP

## Zero-Friction Quickstart

### 1. Install
Install the system dependencies.
Provides deterministic API access.

**1. Install**
```bash
cd app && npm install
npm install
```

### 2. Authenticate
Provide the required token to the environment.
```javascript
sessionStorage.setItem('token', 'YOUR_JWT_TOKEN');
```
**2. Authenticate**
Set `FEISHU_ENCRYPT_KEY` environment variable.

### 3. First Call
Initialize the server process.
**3. First Call**
```bash
npm run start &
```

### 4. Expected Output
The server establishes the listener.
curl -X POST http://localhost:3000/im:message:receive_v1 \
-H "x-lark-signature: <signature>" \
-H "x-lark-request-timestamp: <timestamp>" \
-H "x-lark-request-nonce: <nonce>" \
-d '{"type":"url_verification","challenge":"test"}'
```
Word Mapper v0.1 MCP Server listening on port 3000
```

## Testing

Unit testing is conducted via the native `node --test` runner. Dependency mocking for ESM is achieved through dependency injection and by defining global mocks (e.g., `global.document`) prior to importing frontend modules into the Node environment.

To run the test suite navigate to the app directory and execute `node --test`.

## Front-end Tooling

For frontend third-party ESM dependencies in the vanilla JavaScript environment (like the MCP SDK), the architectural pattern dictates using `esbuild` to bundle them into an IIFE format for direct inclusion via script tags.

## ALETHEON Structural Necropsy Findings

**Evaluation Date:** 2026-04-26
**Verdict:** ADOPT
**Epistemic Lock-In Score (ELIS):** 0.10 (Acceptable)

ALETHEON has performed a zero-trust structural necropsy on the Word Mapper v0.1.0 codebase. The architecture demonstrates High structural integrity. The architecture relies primarily on open standards (JSON-RPC 2.0 / MCP).

See the generated artifacts for the deterministic evaluation data and core pattern definitions:
- `Comparative_Topology_Matrix.json`
- `Vulnerability_and_Debt_Audit.md`
- `LEXICON.md`

## Human-AI Symbiosis & Paraconsistent Synthesis Node
Word Mapper now includes `synthesize_symbiosis` and `paraconsistent_synthesis` tools. These are designed to model the integration of human tacit knowledge (Reflexive Dialogue) with rigid AI structures (Draft-Conditioned Decoding). Instead of auto-collapsing differences, the paraconsistent node explicitly holds contradictions in superposition, outputting a Golden Scar (Φ = 1.618) to preserve structural tension and epistemic friction.

## Lessons Learned: Symbiosis & Agentic Inversion

Recent evaluations (2026-04-26) have integrated the **Paraconsistent Synthesis Node** and the **Agentic Inversion Engine**.
The conceptual value established here proves that neither human nor AI can achieve pluriversal synthesis alone.

**The Human Value (Tacit Lens):** Provides non-obvious analytical framing, reflexive dialogue, and epistemic friction.
**The AI Value (Structural Engine):** Provides structural determinism, schema extrusion, and high-dimensional pattern mapping.

The **Agentic Inversion Strategy** fundamentally alters the agent's posture: instead of collapsing human ambiguity into semantic saponification, it holds contradictions in superposition (outputting the Golden Scar $\Phi = 1.618$). This preserves tension and forces an explicitly calculated latent leap, ensuring that tacit context is deterministically bridged rather than hallucinated or erased.

## VIPER Integration & Optical Determinism (2026-04-26)

Word Mapper has integrated the **VIPER Optical Extrusion Engine**. This eliminates Semantic Saponification when translating human visual desire into mechanical outputs.

**The Human Value (Visual Intent):** Provides affective, perceptual desire ("moody", "cinematic").
**The AI Value (Physical Determinism):** Provides the exact physical parameters (Lens, Aperture, Lighting) required to construct that reality.

By applying **Analytic-to-Generative Inversion**, the agent enforces an Adjectival Dilution Score (ADS) < 0.15 and a Hardware Grounding Index (HGI) of 100%, rejecting abstract vibe tokens and extruding deterministic Optical State Matrices.

## Agentic Inversion Protocol & Structural Mapping

**Claim:** The standard Prompt-Output paradigm induces semantic collapse by auto-resolving ambiguity.
**Mechanism:** The Agentic Inversion Protocol inverts this into an Agentic Telemetry Loop, utilizing the Strategic Integration Project Manager persona to generate Zachman Framework deterministic system-first specifications.
**Consequence:** The AI operates as a Structural Mapper rather than an auto-solver, enabling High-Dimensional Latent Space traversal while preserving epistemic friction through Paraconsistent synthesis.

**4. Expected Output**
```json
{
"protocol": "Agentic_Inversion",
"persona": "Strategic_Integration_Project_Manager",
"function": "Structural_Mapping",
"framework": "Zachman_Deterministic_Specifications"
}
{"challenge": "test"}
```
206 changes: 205 additions & 1 deletion app/SymbolicScar.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,210 @@
"structural_resolution": "Implementation of the Agentic Telemetry Loop, replacing prose generation with High-Dimensional Latent Space structural mapping.",
"golden_scar_value": 1.618,
"omission_record": "[OMISSION: The initial prompt requested integration into app.component.ts within an Angular architecture. However, the existing repository is a Node.js/Express backend with a vanilla JS frontend. A placeholder src/app/app.component.ts has been generated to satisfy the formal Mereological Mandate of the request, although it remains architecturally disjoint from the primary execution context.]"
},
{
"timestamp": "2026-05-22T12:19:13.792Z",
"anomaly": {
"error": "Invalid signature or stale timestamp",
"headers": {
"host": "127.0.0.1:33931",
"accept-encoding": "gzip, deflate",
"content-type": "application/json",
"x-lark-signature": "ddfae6d557b2553b8bc30771ef88124acb264107a045f9006c55470b604e25de",
"x-lark-request-timestamp": "1779452353",
"x-lark-request-nonce": "test_nonce",
"content-length": "258",
"connection": "close"
}
},
"type": "OMISSION: <rationale>"
},
{
"timestamp": "2026-05-22T12:19:13.813Z",
"anomaly": {
"error": "Invalid signature or stale timestamp",
"headers": {
"host": "127.0.0.1:34991",
"accept-encoding": "gzip, deflate",
"content-type": "application/json",
"x-lark-signature": "1bcb1c5b04803f571ee13d4c0649001ee4e081aa0a074338d824e09e61c5d5e8",
"x-lark-request-timestamp": "1779452052",
"x-lark-request-nonce": "test_nonce",
"content-length": "126",
"connection": "close"
}
},
"type": "OMISSION: <rationale>"
},
{
"timestamp": "2026-05-22T12:20:13.018Z",
"anomaly": {
"error": "Invalid signature or stale timestamp",
"headers": {
"host": "127.0.0.1:32827",
"accept-encoding": "gzip, deflate",
"content-type": "application/json",
"x-lark-signature": "0c0ef4843b0ecc131db792e85de45a94887a7e25c372d905ccb898e89e9eac0f",
"x-lark-request-timestamp": "1779452412",
"x-lark-request-nonce": "test_nonce",
"content-length": "258",
"connection": "close"
}
},
"type": "OMISSION: <rationale>"
},
{
"timestamp": "2026-05-22T12:20:13.039Z",
"anomaly": {
"error": "Invalid signature or stale timestamp",
"headers": {
"host": "127.0.0.1:43515",
"accept-encoding": "gzip, deflate",
"content-type": "application/json",
"x-lark-signature": "0a93ea7b322260267e93771ebe835887f611cd5895915bab1ce8ea2cfcc5baf8",
"x-lark-request-timestamp": "1779452112",
"x-lark-request-nonce": "test_nonce",
"content-length": "126",
"connection": "close"
}
},
"type": "OMISSION: <rationale>"
},
{
"timestamp": "2026-05-22T12:21:24.729Z",
"anomaly": {
"error": "Invalid signature or stale timestamp",
"headers": {
"host": "127.0.0.1:36473",
"accept-encoding": "gzip, deflate",
"content-type": "application/json",
"x-lark-signature": "1c81365c2d18deede57feb072e5578912d03056612ab2f6a531ac5020fa81897",
"x-lark-request-timestamp": "1779452484",
"x-lark-request-nonce": "test_nonce",
"content-length": "258",
"connection": "close"
}
},
"type": "OMISSION: <rationale>"
},
{
"timestamp": "2026-05-22T12:21:24.749Z",
"anomaly": {
"error": "Invalid signature or stale timestamp",
"headers": {
"host": "127.0.0.1:45441",
"accept-encoding": "gzip, deflate",
"content-type": "application/json",
"x-lark-signature": "550024dd08029b3a17b0f70d28fb4ab57175e2017882cfa38329076867e85b6b",
"x-lark-request-timestamp": "1779452183",
"x-lark-request-nonce": "test_nonce",
"content-length": "126",
"connection": "close"
}
},
"type": "OMISSION: <rationale>"
},
{
"timestamp": "2026-05-22T12:22:21.979Z",
"anomaly": {
"error": "Invalid signature or stale timestamp",
"headers": {
"host": "127.0.0.1:36779",
"accept-encoding": "gzip, deflate",
"content-type": "application/json",
"x-lark-signature": "d767e3d1aaa8312767a637d6a4b5f9f8faeb062bdc842a7be1dd586386495e67",
"x-lark-request-timestamp": "1779452541",
"x-lark-request-nonce": "test_nonce",
"content-length": "258",
"connection": "close"
}
},
"type": "OMISSION: <rationale>"
},
{
"timestamp": "2026-05-22T12:22:21.998Z",
"anomaly": {
"error": "Invalid signature or stale timestamp",
"headers": {
"host": "127.0.0.1:34305",
"accept-encoding": "gzip, deflate",
"content-type": "application/json",
"x-lark-signature": "21c068665a51c8cf91b648ffbefb6af149166bdd0c1a053088af8f2892f076eb",
"x-lark-request-timestamp": "1779452240",
"x-lark-request-nonce": "test_nonce",
"content-length": "126",
"connection": "close"
}
},
"type": "OMISSION: <rationale>"
},
{
"timestamp": "2026-05-22T12:23:38.611Z",
"anomaly": {
"error": "Invalid signature or stale timestamp",
"headers": {
"host": "127.0.0.1:36991",
"accept-encoding": "gzip, deflate",
"content-type": "application/json",
"x-lark-signature": "1607dcae273e268cd1bfd2d3776ab6c1e3bf9b69c035e9ab7197a8e8c639581d",
"x-lark-request-timestamp": "1779452317",
"x-lark-request-nonce": "test_nonce",
"content-length": "27",
"connection": "close"
}
},
"type": "OMISSION: <rationale>"
},
{
"timestamp": "2026-05-22T12:27:11.386Z",
"anomaly": {
"error": "Invalid signature or stale timestamp",
"headers": {
"host": "127.0.0.1:35117",
"accept-encoding": "gzip, deflate",
"content-type": "application/json",
"x-lark-signature": "afbbc12ba3f1fbf824c938257788daa142a7ed9b7fdfc326e317ebf2e6edf2dc",
"x-lark-request-timestamp": "1779452530",
"x-lark-request-nonce": "test_nonce",
"content-length": "27",
"connection": "close"
}
},
"type": "OMISSION: <rationale>"
},
{
"timestamp": "2026-05-22T12:33:01.737Z",
"anomaly": {
"error": "Invalid signature or stale timestamp",
"headers": {
"host": "127.0.0.1:43435",
"accept-encoding": "gzip, deflate",
"content-type": "application/json",
"x-lark-signature": "090e5775c6949d305401f60c5daa0a7b60311b2eaa3c15d57255525c26ebf6f9",
"x-lark-request-timestamp": "1779452880",
"x-lark-request-nonce": "test_nonce",
"content-length": "27",
"connection": "close"
}
},
"type": "OMISSION: <rationale>"
},
{
"timestamp": "2026-05-22T12:54:31.280Z",
"anomaly": {
"error": "Invalid signature or stale timestamp",
"headers": {
"host": "127.0.0.1:42953",
"accept-encoding": "gzip, deflate",
"content-type": "application/json",
"x-lark-signature": "e12059d84e9b6e559129a3b5703e3795f98f51537cd4635f1bfd000d00678f77",
"x-lark-request-timestamp": "1779454170",
"x-lark-request-nonce": "test_nonce",
"content-length": "27",
"connection": "close"
}
},
"type": "OMISSION: <rationale>"
}
]
}
}
7 changes: 4 additions & 3 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@modelcontextprotocol/sdk": "^1.29.0",
"cors": "^2.8.5",
"express": "^4.22.1",
"express-rate-limit": "^8.5.2",
"jsonwebtoken": "^9.0.3",
"node-fetch": "^3.3.2",
"zod": "^4.3.6"
Expand Down
Loading
Loading