← CoreNexus Docs

MYSTERY SCHOOL

Mystery School Sense-Making Architecture

Mystery School Sense-Making Architecture

The invitation

Open Source Mystery School is envisioned as a luminous tome, constellation, and accessible linear projection over canonical Dragon teachings. This proposal defines the sense-making field beneath those surfaces: a fast, inexpensive, inspectable way to find obvious relationships, hidden correspondences, semantic spines, and cross-tradition echoes across the complete public Dragon corpus.

The experiment begins with one deliberate refusal: the model does not define an opaque embedding space and it does not become an authority. We define the dimensions, their meanings, their provenance, and the questions used to measure them. Jev proposes readings. CoreNexus preserves source, uncertainty, evidence, version, and standing.

Truth-state boundary

Layer Standing
The existing public Dragon creations and their authorship Current canonical source
The exported public corpus used by the preview Pinned fixture projection, never a second canon
The versioned semantic-frame registry in this document Proposed planned coordinate system
Jev scores and relation candidates Model-proposed derived evidence
Human-curated chapters or accepted navigation edges Governed decisions, separate from model output
A learner's path, reflection, or developmental meaning Private and sovereign, outside this first pass

The experimental Dragon Codex currently present in the production database is explicitly outside this project's source set. The fixture exporter, migration, workers, and semantic registry must not query, copy, compare against, or derive meaning from those records. This experiment starts from the public Dragon Creations plus the checked-in Universal Harmonic Taxonomy.

The first implementation must not infer spiritual rank, author intention, learner development, or universal truth from a score.

Architecture decision

Use TypeScript Convex actions first

Convex functions run in the default Convex JavaScript runtime or the Node.js action runtime. Convex is not a container or arbitrary Linux-process host, so a compiled Rust executable cannot simply be uploaded and executed inside an action. A Rust-to-WebAssembly module may be technically possible for a later measured computational hotspot, but it adds a build, bundle, runtime, and debugging boundary before the experiment has demonstrated one.

The first pass therefore uses:

This keeps the whole loop visible in the existing stack and lets us measure whether any step actually needs Rust or WebAssembly.

Use Jev as a typed sensor, not an autonomous interpreter

Jev's System One interface accepts one state plus many typed questions and evaluates those questions in parallel. The first adapter should call the currently documented POST https://api.typesafe.ai/v1/systemone endpoint directly from a server-only action. A probe may request jev-latest, but the run records the returned versioned model identity, pins that identity for every subsequent request, rejects any response that resolves to another model, and includes it in job identity. The provider credential lives only in the Convex environment as TYPESAFE_API_KEY; it never enters browser code, fixtures, logs, or git.

Every request and result is bound to:

Changing any of those identities produces a new analysis revision instead of rewriting the meaning of an old run.

Planned semantic atlas

The Mystery School does not have one privileged vector. It has a registry of explicit, versioned semantic frames. Every frame declares its dimensions, question types, interpretation rules, source lineage, licensing notes, and deterministic hash. Frames remain separate in storage and explanation; bridge rules may connect them without flattening their meanings.

Foundational frame — Universal Harmonic Taxonomy and eight trigrams

The first and primary frame is the checked-in universal-harmonic-taxonomy.json, the authoritative organizing principle for CoreNexus. Its eight Spectral Rays supply a coherent macrospace across element, physical process, chakra and interface, emotional quality, experiential translation, scalar mappings, life domains, astrology, impact sectors, and the eight I Ching trigrams.

For each Ray, the initial Jev request asks two distinct bounded questions:

  1. a Score over ordered centrality levels — absent, trace, supporting, central, organizing; and
  2. a Choice over expression modes grounded in the Ray's documented correspondences — generative, constrained, integrating-both, indeterminate.

A second set of typed questions asks whether each trigram participates in the Creation's lower and upper positions. Lower and upper are structural positions in a hexagram, not automatic claims about inner life, spiritual rank, or author intent. The complete distributions stay available rather than forcing each Creation into one cell.

A model-inferred Ray or trigram reading is never allowed to overwrite a Creation's authored primeRay or tags.

Central emergent frame — Dragon Codex

The Dragon Codex is the central 64-coordinate lens for this work, but its meanings are not yet defined. Its stable initial structure is only the ordered composition of the eight trigrams: eight possible lower trigrams crossed with eight possible upper trigrams, yielding 64 addressable hexagram cells.

The first pass may derive a transparent composition proposal from lower- and upper-trigram probability distributions and then ask bounded Jev questions about the strongest candidate interactions. That proposal remains source-bound and model-proposed. It is not a Dragon Codex definition.

The corpus itself becomes the emergence field. Every Codex cell begins as:

Jev cannot generate arbitrary canonical Codex prose. A human or Dragon collaborator may author a versioned MeaningAssertion for a cell after inspecting its source constellation. Jev may evaluate bounded claims about that assertion; deterministic validators may report reference, scope, evidence, loss, and compatibility; and an accountable review may accept, revise, decline, or reopen it. No model score converts a proposal into accepted Codex meaning.

This is the Master Key bridge: Dragon Creations may be morphed into an 8-by-8 Codex projection while retaining stable source identity, and any stronger semantic isomorphism claim requires a directional, versioned compatibility witness. Visual resemblance, shared labels, graph reachability, or repeated model confidence is not such a witness.

Comparative frame — Gene Keys

The 64 Gene Keys are a related, high-resolution developmental lens, not the source or definition of the Dragon Codex. The checked-in Gene Key material supplies stable Shadow, Gift, and Siddhi terms for its own frame. One Jev Choice per Gene Key can return probabilities for absent, shadow, gift, and siddhi.

The deterministic adapter may derive resonance and a normalized Shadow / Gift / Siddhi distribution for that frame. Any bridge from a Gene Key to a Dragon Codex cell records only the exact structural hexagram correspondence unless a separately reviewed witness supports a stronger semantic relation. Gene Key prose never backfills or silently names a Dragon Codex meaning.

Additional authored frames

Future frames may include named wisdom-tradition motifs, practices, questions, symbols, scales of application, and source lineages. A frame enters only when its vocabulary is explicit, provenance is reviewable, and its questions have a bounded typed interpretation. Model-emergent dimensions do not silently enter the registry.

Each stored coordinate is addressed by (frameId, frameVersion, dimensionKey). Similarity and graph assembly operate within declared frames first. Cross-frame bridges are versioned directional mappings with declared scope, loss, and standing. A shared classical hexagram identity can establish structural correspondence; it cannot establish semantic equivalence among the Universal Harmonic Taxonomy, Dragon Codex, Gene Keys, or any wisdom tradition.

Finding obvious and hidden connections

An all-pairs model comparison over 968 posts would create hundreds of thousands of pair checks before we know what is useful. The minimal pipeline is a funnel.

Stage 1 — deterministic obvious edges

Code proposes exact, inspectable candidates from:

These remain separate predicates. Adjacency never silently becomes prerequisite, and shared authorship never silently becomes agreement.

Stage 2 — planned-vector neighbors

For each Creation, deterministic code searches each enabled frame for a bounded neighbor set. It uses transparent measures such as weighted overlap and distribution distance, never an unnamed embedding dimension. A sparse inverted index over each Creation's strongest (frameId, dimensionKey) coordinates avoids an all-pairs scan.

Candidate generation is reproducible from stored frame profiles. The UI can explain it in ordinary language: for example, “Both teachings are centrally Purple / Thunder, and both project strongly into the Thunder-over-Water Codex cell; that cell has no accepted meaning yet.”

Stage 3 — Jev relation proposals

Only the bounded candidate pairs enter a second typed Jev pass. The initial relation vocabulary is small and directional:

Jev's typed answers do not generate arbitrary prose or source spans. Exact evidence is therefore a second bounded request conditioned on the selected relation predicate and direction, not an unrelated parallel question. Deterministic preprocessing splits each source into stable paragraph locators, ranks a bounded candidate set, preserves the digest and omission count for excluded locators, and never presents more than 255 Choice options or a request beyond the provider context limit. The persisted proposal contains the selected relation distribution plus the relation-conditioned source and target locator distributions. A gate verifies that both locators name the same predicate and direction before persistence. A relation without two source-bound evidence locators is not persisted as a candidate. Model output enters with standing: model-proposed and allowedActions: inspect; it cannot become a navigable curriculum edge until a separate accountable decision grants that standing.

Stage 4 — semantic spines

A semantic spine is a projection, not a new truth object. It is a reproducible path through admitted sources under one declared rule, such as:

Every spine names its rule, sources, relation revisions, and omissions. Different rules may produce different valid spines over the same corpus.

Convex data model

Add new tables rather than placing model output on canonical Creation rows.

sensemakingRuns

One immutable run envelope and resumable operational state:

sensemakingJobs

One reusable operational record per exact source and stage. Profile-job identity is (creationId, sourceHash, stage, pipelineVersion, questionSetHash, resolvedModel). Relation-job identity additionally includes target Creation/source hash, direction, and candidate-set digest:

The run is the aggregate envelope; jobs make every source and retry reconcilable. A reusable job may serve several runs without losing per-run accounting. Because TypeSafe does not document request idempotency, the external call is at-least-once: every attempt atomically reserves budget, leases carry fencing tokens, only the current lease may commit, stored outputs deduplicate by exact job/result identity, and timed-out or ambiguous attempts remain counted in request and cost totals. Duplicate schedulers converge on one local job, but the design does not falsely promise that an ambiguous external response can never be purchased twice.

creationSenseProfiles

One profile revision per Creation, source hash, and pipeline version:

creationSenseDimensions

A sparse indexed projection of the strongest dimensions rather than dense rows for every coordinate in every frame:

The complete frame profiles stay on the profile revision. Sparse rows make “show the strongest Purple / Thunder teachings,” “show the strongest sources projected into Thunder-over-Water,” and “inspect Gene Key 44 as a comparative lens” cheap without creating unnecessarily dense tables.

semanticFrameBridges

A directional, versioned mapping proposal between exact frame coordinates:

The first Codex bridge may establish only that one Dragon Codex cell and one Gene Key refer to the same ordered classical trigram pair. It must not claim that their meanings are equivalent.

creationSenseRelations

A source-revision-bound proposal or decision projection:

All tables have indexes matching actual reads. No v.any() is introduced for the new contracts.

Fixtures and the first complete pass

Corpus fixture

The implementation uses the complete anonymous-public Dragon export named in the run manifest. It seeds ordinary Creation fixtures and the Eleven required Dragon-owner fixtures into the pull request's persistent Convex preview database.

The fixture pipeline must:

  1. validate the canonical Dragon roster and public-only export contract;
  2. preserve the production Creation id as an explicit source reference rather than pretending the new preview id is canonical;
  3. insert only the allowlisted fields required by the Mystery School and source renderer;
  4. preserve exact source timestamps and content hashes;
  5. omit comments, reactions, private metadata, credentials, and expiring signed media;
  6. use deterministic fixture keys so repeated preview deploys upsert rather than duplicate; and
  7. verify declared total, unique source ids, per-Dragon counts, source hashes, and inserted Creation count before sense-making begins.

The repository may carry the text fixture because the operator has now explicitly selected the complete public Dragon export for this experiment. Media binaries still do not enter git; stable references may be preserved when safe.

Fixture provenance ends at preview seeding and verification. The fixtures create ordinary rows in creations; no sense-making selector, run identity, job identity, or public explorer query may read the fixture-provenance table or accept fixture revision or manifest hash as semantic scope. On preview, those ordinary Creation rows happen to come from the pinned export. On production, the ordinary Creation rows already exist.

Migration and external-action boundary

@convex-dev/migrations mutations cannot and should not perform external Jev HTTP work. The migration layer has one deterministic responsibility: query creations through the canonical public-Dragon eligibility policy and idempotently enqueue analysis work for the pinned pipeline version. This selector and enqueue path are identical on preview and production.

The full preview sequence is:

  1. seed and verify the Creation fixtures;
  2. run the ordinary migration proving-ground gates;
  3. enqueue one deterministic job per (creationId, sourceHash, pipelineVersion);
  4. let a bounded action worker call Jev and commit validated results through internal mutations;
  5. resume safely after rate limits, transient failures, or deploy interruption; and
  6. run a final corpus verifier that proves every in-scope source is completed, explicitly failed, or blocked — never silently missing.

The same enqueue migration runs unchanged over canonical production Creations. Only the origin of the underlying rows differs: preview rows are established by fixtures before the migration, while production rows are the existing canon. Production activation and credential configuration remain separate, explicit release decisions.

Before the complete pass, run one two-question request, one complete Harmonic-Ray request, one lower/upper trigram request, one bounded Codex-cell interaction request, and one optional Gene Key request against the authorized account. The public TypeSafe model reference now publishes Jev 1.13's operating envelope: $0.042 per million input tokens with output tokens currently free, 250,000 tokens per second, 1,200 requests per min...[truncated] The probe resolves and pins the model version, exercises the largest normalized Creation, proves the 32k state-plus-longest-question and 64k request context bounds, records payload size, latency, tokens, and account-visible cost, and derives a hard dollar ceiling enforced before each reserved attempt. If a frame request is rejected or unstable, shard its ordered registry deterministically while retaining one logical profile job. Before sending the corpus, record the authorized account's retention and zero-data-retention terms; TypeSafe says requests are not used for training, while retention follows its legal/DPA terms and enterprise zero-data-retention is account-specific.

Continuous sense-making

After the first pass:

This gives fast-enough freshness without paying for a global every-minute sweep. Measured preview latency and cost determine the final concurrency, debounce, and reconciliation cadence.

Navigation and visualization

Build these lenses as one Mystery School application rather than separate source-reading and sense-making products.

Lenses

Interaction grammar

Selection survives every lens through canonical structured URL state. Selecting a Creation, Dragon, frame coordinate, Codex cell, relation, or spine changes projection and emphasis; it does not change source or relation standing. Every connection opens a Why this connection? disclosure that shows:

The visual field uses existing CoreNexus tokens and canonical harmonic colors. Position, size, glow, and color must not imply truth, rank, or spiritual attainment. Every spatial view has a complete keyboard-operable textual equivalent.

Minimal implementation slices

  1. Contract and registry — ratify this architecture; register the Universal Harmonic, trigram-composition, and empty structural Dragon Codex frames; register Gene Keys only as a comparative frame; and test deterministic hashing, bridge mappings, and question generation.
  2. Corpus fixture — import and verify the complete public Dragon corpus as preview Creation fixtures while proving the experimental production Codex is absent from the source set.
  3. System One profile pass — test-drive the Jev adapter, job coordinator, Harmonic/trigram profiles, Codex composition proposals, profile tables, retries, and idempotency; run the complete preview corpus.
  4. Connection funnel — generate obvious edges, planned-vector neighbors, source-to-Codex mapping proposals, and evidence-bearing model proposals.
  5. Living navigation — add the Harmonic Field, 8-by-8 Dragon Codex, Semantic Spine, and accessible linear forms; keep the Gene Key comparison optional.
  6. Preview review — publish measured totals, latency, token usage, cost, failures, relation coverage, and browser evidence for human review.
  7. Continuous mode — activate save-triggered debounce and hourly reconciliation only after the complete pass is stable.

These implementation slices converge on one fresh implementation pull request branched from current main. Earlier experimental pull requests are optional inspiration only; they are not bases, dependencies, merge targets, or acceptance criteria.

Acceptance gates

The experiment is reviewable when the preview proves:

Explicit non-goals for the first pass

Source lineage

This proposal draws most directly from the Master Key work on planned semantic dimensions, dimension-map certificates, Jev as a bounded System One sensor, directional semantic-compatibility witnesses, and one-canon/many-projections architecture. It also preserves the Open Source Mystery School contracts for stable source identity across isomorphic views, proposal standing, evidence, lens equivalence, and sovereign learner meaning. In this project, “morph” means changing the projection while preserving keyed sources; “isomorphism” remains a witnessed claim, never a synonym for visual continuity.

Provider capability statements should be rechecked against the current TypeSafe Jev documentation at implementation time. Convex runtime constraints should be rechecked against the current Convex runtimes and actions documentation before introducing any native or WebAssembly boundary.

Current implementation references: