THALIA: Typed Harness with Analytical Lexical-Integrated Architecture
Daniel Ari Friedman (2026) · Computational
Context
This work addresses topics in Computational: agentic systems, long-context memory, retrieval-augmented generation, reproducible research.
Methods
Primary methods and techniques applied in this work:
- Five-stage typed pipeline: Inspector, Retriever, Reasoner, Memory Gate, Compiler — Implements a long-context memory harness where each stage has a typed input/output contract, runnable implementation, evidence trace and declared scope.
- Offline lexical/hashing retrieval fused by weighted reciprocal-rank fusion — The deterministic core uses BM25/grep, hashing-based retrieval, weighted RRF, real SQLite state and bounded MIPRO/GEPA-style configuration search without network calls.
- Episodic-first memory: raw episodes appended before gated consolidation — The Memory Gate appends each raw turn to state before evaluating a derived memory delta, preserving source material for auditing.
- Tiered evaluation on LongMemEval-style, local, and LongMemEval_S slices — Evaluates a fixed 6-example diagnostic set, a 24-example local comparison with gemma3:4b, an external LongMemEval_S transfer slice, and a 40-question bottleneck slice.
- Injection and poisoning probes of cited excerpts — Recorded injection probes test whether cited excerpts contain a supplied gold value and measure a poisoning effect, as negative controls.
Key Findings
Core contributions and results:
- On the fixed 6-example diagnostic set the default configuration reaches composite 0.621 (token-F1 0.477, citation-support proxy 0.830, efficiency 0.854).
- The 8-candidate compiler search ties on this easy set, so configuration improvement is unobserved; its main output is an auditable trace with a tie rule.
- Replacing the extractive Reasoner with gemma3:4b changed mean token-F1 from 0.587 to 0.540 in the 24-example comparison, with an interval spanning zero.
- In the 40-question bottleneck slice, ranking recall is 1.00 but Inspector recall is 0.60; an adaptive context policy raised neural token-F1 from 0.086 to 0.171.
- The author reports operational provenance as the clearest advantage, with equality on poisoning and no general answer-quality advantage.
Methods and findings are summarized from the full text; each item is backed by a verbatim quote recorded in metadata.json (evidence, key_findings_evidence).
Related Works
See BIBLIOGRAPHY.md for related publications.
Validation
Verification points for this work:
- Canonical DOI: 10.5281/zenodo.21763244
- PDF SHA-256: See zenodo_record
- Pairing confidence: unknown
- Last checked: 2026-08-02T20:55:01Z
Prerequisites
- Familiarity with agentic systems, long-context memory, retrieval-augmented generation
- Background in Computational fundamentals
- Access to source repository: N/A
Instructions
When working with this paper:
- Reference the DOI for citation:
10.5281/zenodo.21763244
- Apply methods listed in the Methods section for related analysis.
- Validate findings against the original PDF and metadata.
1---2# docxology:generated-document SKILL.md; ownership=explicit-manifest3name: thalia-typed-harness-with-analytical-lexical-integrated-arch4description: "THALIA is an executable research harness for long-context memory systems. It combines typed stage contracts, inspectable context selection, evidence-preserving episodic state, lexical-first retrieval, and bounded compiler search with source-bound eva..."5tags: ["agentic-systems", "long-context-memory", "retrieval-augmented-generation", "reproducible-research"]6domain: "Computational"7citation: "Daniel Ari Friedman (2026). *THALIA: Typed Harness with Analytical Lexical-Integrated Architecture*. Zenodo."8doi: "10.5281/zenodo.21763244"9metadata:10 source: https://skillmd.com/skills/docxology/thalia-typed-harness-with-analytical-lexical-integrated-arch11---1213# THALIA: Typed Harness with Analytical Lexical-Integrated Architecture1415**Daniel Ari Friedman** (2026) · Computational1617## Context1819This work addresses topics in **Computational**: agentic systems, long-context memory, retrieval-augmented generation, reproducible research.2021## Methods2223Primary methods and techniques applied in this work:2425- **Five-stage typed pipeline: Inspector, Retriever, Reasoner, Memory Gate, Compiler** — Implements a long-context memory harness where each stage has a typed input/output contract, runnable implementation, evidence trace and declared scope.26- **Offline lexical/hashing retrieval fused by weighted reciprocal-rank fusion** — The deterministic core uses BM25/grep, hashing-based retrieval, weighted RRF, real SQLite state and bounded MIPRO/GEPA-style configuration search without network calls.27- **Episodic-first memory: raw episodes appended before gated consolidation** — The Memory Gate appends each raw turn to state before evaluating a derived memory delta, preserving source material for auditing.28- **Tiered evaluation on LongMemEval-style, local, and LongMemEval_S slices** — Evaluates a fixed 6-example diagnostic set, a 24-example local comparison with gemma3:4b, an external LongMemEval_S transfer slice, and a 40-question bottleneck slice.29- **Injection and poisoning probes of cited excerpts** — Recorded injection probes test whether cited excerpts contain a supplied gold value and measure a poisoning effect, as negative controls.3031## Key Findings3233Core contributions and results:3435- On the fixed 6-example diagnostic set the default configuration reaches composite 0.621 (token-F1 0.477, citation-support proxy 0.830, efficiency 0.854).36- The 8-candidate compiler search ties on this easy set, so configuration improvement is unobserved; its main output is an auditable trace with a tie rule.37- Replacing the extractive Reasoner with gemma3:4b changed mean token-F1 from 0.587 to 0.540 in the 24-example comparison, with an interval spanning zero.38- In the 40-question bottleneck slice, ranking recall is 1.00 but Inspector recall is 0.60; an adaptive context policy raised neural token-F1 from 0.086 to 0.171.39- The author reports operational provenance as the clearest advantage, with equality on poisoning and no general answer-quality advantage.4041Methods and findings are summarized from the full text; each item is backed by a verbatim quote recorded in `metadata.json` (`evidence`, `key_findings_evidence`).4243## Related Works4445See [BIBLIOGRAPHY.md](../../pages/BIBLIOGRAPHY.md) for related publications.4647## Validation4849Verification points for this work:5051- Canonical DOI: 10.5281/zenodo.2176324452- PDF SHA-256: See zenodo_record53- Pairing confidence: unknown54- Last checked: 2026-08-02T20:55:01Z5556## Prerequisites5758- Familiarity with agentic systems, long-context memory, retrieval-augmented generation59- Background in Computational fundamentals60- Access to source repository: N/A6162## Instructions6364When working with this paper:65661. Reference the DOI for citation: `10.5281/zenodo.21763244`672. Apply methods listed in the Methods section for related analysis.683. Validate findings against the original PDF and metadata.