Project index

Private experiment · Systems architecture · Active research

AthenaRampancy

A single-user desktop system investigating how routed computation, persistent memory, tools, and connected context can remain visible, bounded, and operable from one control surface.

My work
Architecture, interaction design, visual system, TypeScript implementation, test design
Runtime
Bun · Hono · SolidJS · Tauri · SQLite / Drizzle · WebGL
Mode
Private, single-user, local-first desktop and service process
Review
Source snapshot inspected and rebuilt 14 July 2026
Athena secondary hardware display showing tier, integrity, entity, cost, tools, memory, and reflection tiles
Secondary hardware display682 × 2560 vertical surface
Athena desktop control surface with overlapping Cortex, integrity, proposal, memory, cost, terminal, and chat tiles
Desktop control surface · disconnected blank stateCaptured from the current SolidJS implementation; personal data and service credentials are not present.

Project boundary. Athena is a private experimental system, not a public service or a claim of autonomous intelligence. This case study documents implemented architecture, interface work, and the places where the research code is intentionally still unresolved.

01 · Routing and cost governance

Request routing and cost control.

Athena does not send every interaction through the same model. A cache gate, intent classifier, and confidence evaluator select a route; the streaming path can still escalate when its first answer proves weak.

Working excerptRequest to recorded outcomeSimplified from implemented routing rules
01

Cache gate

A prior local match may answer routine work without a provider call.

02

The Sieve

Rules classify the request profile and confidence.

03

Tier route

The request enters a route suited to the work.

04

Arbiter

Weak streamed output can be interrupted and escalated.

05

Commit

The route, trace, relative cost, and outcome are recorded.

CACHELocal responserelative cost · none
SPINEFast pathrelative cost · lower
WORKHORSEDeliberate pathrelative cost · higher
SOULDeep pathrelative cost · higher
HAIKUInspect pathrelative cost · lower

Cost instrumentation

Cost records for every route.

Provider calls
Input, output, and prompt-cache tokens are costed by model and stored by tier.
Voice
Synthesis records character use and estimated cost beside model traffic.
Reporting
Daily totals, tier breakdowns, history, and configured limits are exposed to the dashboard.

Research governor

Budgets and caps for experimental processes.

Before execution
Self-testing, curation, prompt work, and tool synthesis check an estimated spend.
Caps
Per-proposal and weekly hard caps; selected recurring activity also observes a daily total.
After execution
Actual spend and activity metadata are written to a separate improvement ledger.

02 · Memory and knowledge retrieval

Memory is a set of stores, not one transcript.

Small working blocks remain immediately available. Older knowledge is retrieved from distinct stores, ranked with provenance, and packed to a fixed context budget before it reaches a model.

DeepwellRetrieval and context assemblyBM25 · rank fusion · token budget
01Working blocksShort, editable persona, human, and session state.
02Archival memoryPersistent notes and conversation history in SQLite.
03SIGIL graphResolved entities, predicates, relationships, and contradiction checks.
04Experience libraryPrior outcomes retained with quality and retrieval metadata.
RANKBM25 per sourceIndependent result lists preserve source identity.
FUSEReciprocal rank fusionScores combine without flattening provenance.
PACKToken budgetHighest-value results fit first; oversized entries are skipped.
INJECTStructured contextStable prefix, working state, retrieved material, and recent turns.
  1. 01A write-ahead buffer makes recent block edits readable before the SQLite flush completes.
  2. 02Block edits retain before/after state, reason, source, tier, and time for later inspection.
  3. 03Multi-hop retrieval can extract entities from the first result set and issue a second bounded query.
  4. 04Vault storage is implemented, but its Deepwell retrieval adapter remains an explicit open edge.
Editable nowpersona · human · working blocks
Persistentarchive · conversations · edits · reflections · graph
Searchablekeywords · graph entities · experiences · multi-hop
Boundedsource filters · result limits · context token budget

03 · Connected context

Time, voice, and external state enter through adapters.

Calendar, health, task, and speech features sit outside the core pipeline. Each can be absent without preventing the local interface and memory system from running.

NEXUS / VIGIL

Schedule and context

Google OAuth accountCalendar adapterContext processorDashboard + tools
Calendar
Read and create event paths; multiple labelled Google accounts are supported.
Tasks
A periodic scheduler checks due and overdue work and broadcasts reminders over active sockets.
Fitness
The Fitbit adapter refreshes OAuth tokens and exposes selected metrics when configured.
VOICE LAYER

Optional speech path

MicrophoneTranscriptionCore pipelineSpeech stream
Input
Recorded audio is posted to a transcription route and returned as text.
Output
Text-to-speech can return or stream MP3 audio; character cost is logged.
Failure mode
Routes return a clear unavailable state when provider credentials are not configured.

04 · Desktop control surface

Desktop operational surfaces.

The desktop is organised as an asymmetric instrument panel rather than a single chat column. Runtime state, memory, cost, integrity, tools, proposals, logs, and terminal sessions remain independently visible.

Full Athena desktop dashboard in its disconnected blank state
Main window12 × 12 overlapping bento grid · keyboard focus modes · shader-backed tiles
Full vertical Athena secondary hardware display
Case windowSeparate Tauri surface receives reduced state through an event bridge.
CortexA WebGL graph maps reported subsystem state and activity.
Operational tilesIntegrity, proposals, tools, memory, costs, logs, and terminal each own a tile.
Focus behaviourNumber keys expand individual tiles; the chat console opens independently from the grid.
State bridgeThe secondary hardware display receives a small, typed summary rather than the full private data model.

05 · Operational boundaries

Implemented controls and current limits.

The current system has authentication, validation, cost records, timeouts, and rollback surfaces. Those controls make experiments inspectable; they do not turn research code into a hardened multi-user product.

API

Authenticated surface

HTTP routes require a bearer token except the health check. A socket must authenticate in its first message before work begins.

SECRETS

Configuration gates

Provider and connected-service credentials are read from environment configuration; absent adapters disable themselves.

TOOLS

Process boundary

Synthesised tool trials run in a temporary Bun subprocess with an environment allowlist, timeout, captured output, and cleanup. It is not an OS security sandbox.

FILES

Storage controls

Vault paths reject traversal and reserved input; per-project storage limits, checksums, versions, and deletion paths are explicit.

Implementation register / source review 14 July 2026
AreaStatusEvidence in the current source
Routing + providersImplementedStreaming pipeline, cache bypasses, tier selection, escalation, tools, traces, and cost logs.
Memory + retrievalImplementedEditable blocks, write-ahead buffer, SQLite archive, graph retrieval, BM25 fusion, and token packing.
Desktop surfacesImplementedSolidJS dashboard, WebGL subsystem view, Tauri shell, terminal surface, and secondary hardware display.
Calendar + voiceImplemented adaptersGoogle Calendar and Fitbit adapters; speech-to-text and voice synthesis remain configuration-dependent.
Vault retrievalPartialVersioned vault storage exists; the Deepwell vault source is declared but not yet connected.
Adaptive systemsExperimentalPrompt evolution, tool synthesis, self-testing, mood, and anticipation layers remain research work.
TYPE CHECKPassTypeScript current snapshot
UI BUILDPassSolidJS / Vite production build
AUTOMATED CHECKS1,800 / 1,816Remaining failures: local PTY terminal paths and one curation edge case
PUBLIC ACCESSNoneNo demo, source, memory, or connected account is exposed