Repository navigation
Releases
Cortex v1.5.0: interim research milestone
Cortex v1.5.0: interim research milestone
This release packages the completed engineering changes and research record as
of October 22, 2026. It adds host-checked consolidation of explicitly selected
sources and improved classifier diagnostics, and includes paper revision 8.
The research program is paused at this checkpoint. Its comparative quality
target has not been met, and learned classifiers remain advisory.
Code changes since v1.4.0
ConsolidateSelectedaccepts exact observation and memory selections. Its
required host guard checks current permissions before inference and again
inside the atomic memory commit. Empty memory selection supplies no existing
memory context. The host owns authentication and source selection.- The selected path makes one model call, with no automatic splitting,
truncation, format repair, or provider retry. Changed or rejected sources
leave observations pending. Saved outcomes support reconciliation after a
cancellation or lost response. - Classifier tools add optional class balancing, per-class confusion and
calibration diagnostics, training-majority baselines, and separate reports
for human, teacher, and synthetic labels. Defaults remain unweighted.
The database schema is unchanged. Existing Observe, Recall, and Consolidate
operations retain their behavior. Classification does not write memories,
suppress observations, or authorize forgetting.
Research checkpoint
Paper revision 8, Cortex: Sleep-Inspired Memory Consolidation for Language
Agents, includes the LaTeX source, a 33-page PDF, aggregate measurements, and
an artifact manifest. Earlier paper editions remain unchanged.
Source audits found automation and mixed-provenance records in data previously
marked with the user role, plus related projects across earlier partitions.
The earlier scores are preserved and qualified as historical diagnostics.
After conservative exclusion and copy screening, the corrected study contains
5,548 training candidates and 424 development candidates. Training forms one
connected source component; development has thirty. All labels are provisional
model judgments, with zero independent human reviews.
Twenty-two pairs of frozen-encoder classification heads compare source counts
and class balancing:
| Full-source result | Unweighted | Class-balanced |
|---|---|---|
| Retention macro-F1 | 0.393 | 0.372 |
| Type macro-F1 across six configured classes | 0.256 | 0.255 |
| Durable examples recovered | 0/14 | 5/14 |
| Joint acceptance coverage | 151/424 | 28/424 |
| Provisional-label disagreements among accepted predictions | 14/151 | 7/28 |
The balanced model predicts durable for seventy examples, with sixty-five
disagreements. Type evaluation has no behavior or relationship examples and
only one routine. Development calibration is selected on the same set used
for these selective scores. These limitations prevent promoting either model.
Twelve adaptation runs show that retaining synthetic training examples reduces
forgetting on the designed classification tasks. Generated replay does not meet
the joint improvement criteria on the qualified historical development cohorts.
These classification scores do not measure factual knowledge retention.
Thirty fictional memory episodes show that original-source retrieval can conceal
information omitted by learned source selection. Six stale-current flags arose
where the correcting observation was withheld. A separate assertion-boundary
study retains 19/20 required phase-level claims with 0/28 forbidden claims
detected. Eight historical-ingestion episodes retain 16/16 required claims with
0/12 forbidden claims detected. These are small model-judged diagnostics over
repeated fictional fixtures, not evidence of safety on natural conversations.
The earlier sixty-case public retrieval study remains 47/60 reference-aligned
answers for the source-checked reader, including eleven conditional answers,
versus 45/60 for the direct reader. The call budgets differ and the result does
not establish a reliable advantage. No matched platform comparison is complete.
The sleep analogy motivates source capture, offline integration, grounded replay,
and controlled recombination. Cortex does not simulate REM physiology. The
paper's ten propositions and two theorems establish conditional software
properties; they do not prove semantic truth or learning convergence.
Validation and downloads
Release validation passed 86 Go tests with PostgreSQL 17 and the race detector,
with no skipped tests; eleven classifier and three embedding Python tests;
go vet; builds; vulnerability checks; and Git-history and working-tree secret
scans. The paper passed XeLaTeX, BibTeX, the desktop compiler, and visual review.
These checks cover software contracts, not general semantic quality.
Downloads include command archives for macOS and Linux on amd64/arm64 and
Windows amd64, the paper PDF, LaTeX source, manifest, and SHA256 checksums.
Command archives include the license, dependency notices, and build identity.
Optional Python dependencies and model weights are installed separately.
Private conversations, email, datasets, annotations, per-example outputs,
provider responses, experiment scripts, and weights remain outside GitHub.
Email has not entered these training runs. No new inference or training runs
were needed to prepare this release.
Remaining work
Independent human review and better minority-class coverage are needed before
further quality claims. The next development experiment should compare encoder
adaptation and loss weighting against the frozen corrected-source baselines.
Any selected design still needs fresh conversation groups, matched ordinary and
repeated-example controls, downstream/API checks, and no increase in unsupported
memories. Reserved natural confirmation records and 421 unexamined public
LongMemEval-S cases remain untouched. Research stays paused until resumed.
Cortex v1.4.0
Cortex v1.4.0 adds an optional evidence reader and improves consolidation reliability on larger conversation histories. The database schema is unchanged.
- Short request-local references resolve to exact stored IDs before consolidation validation. Historical source lists stay in storage and are omitted from inference.
- The evidence reader returns exact quotations, citations, explicit date assumptions and checked arithmetic. It has bounded format/copy repair and rechecks source eligibility before returning an answer.
- Nonempty whitespace windows no longer interrupt indexing. Model timestamps use the requested timezone.
- The versioned academic paper connects the design to complementary learning systems and sleep research, with conditional proofs, evaluation results and limitations.
Validation includes PostgreSQL race tests, Python contract tests, static checks, builds, vulnerability checks and secret scanning. The private study ingested 2,814 user-role records from 119 sessions and 35 directory-derived groups. Later audits found automated or mixed-provenance records and related conversations across those groups; these counts do not establish independent human-authored examples. All 2,814 observations were acknowledged exactly once in the completed consolidation tests, with no missing or foreign source references.
Answer quality remains experimental. A development run reached 12/12 reference matches, but repeated runs did not consistently reproduce it; the later release-model run matched 11/12. On the frozen 60-case study, the source-checked reader matched 47 references (11 conditionally), compared with 45 for a direct reader. This does not establish a reliable performance advantage. Learned classifiers remain advisory.
Private conversations, labels, per-example outputs and trained weights are excluded. Downloads include command archives and the paper sources, manifests and SHA256 checksums. The original 17-page paper remains available alongside the revision below.
Paper revision 6
Cortex: Sleep-Inspired Memory Consolidation for Language Agents is the 22-page manuscript distributed with this release. It expands the sleep analogy, documents the trained classifier components, adds class-imbalance and calibration analysis, and specifies a controlled comparison with other memory platforms.
The existing experiments are unchanged. The added analysis shows that the classifier accuracy is below constant-label checks on this imbalanced test set; learned classification remains advisory. The benchmark protocol is proposed work, not a completed platform comparison.
This documentation update preserves the v1.4.0 software tag and binaries. Use the original SHA256SUMS for the original assets and cortex-paper-v6-SHA256SUMS for revision 6. The main README documents current capabilities, configuration, measured results, and limitations.
Subsequent research qualification
Paper revision 7 reports subsequent replay development experiments. A later source audit links 35 of its 42 primary development candidates to training components and finds automated or mixed-provenance source envelopes behind 34 of the 42. The same authorship issue affects training. Those recorded scores are historical regression diagnostics and do not establish transfer to independent human conversations. The frozen papers and software assets remain unchanged. No trained classifier has been promoted, and no replay learning advantage has been established.
Cortex v1.3.0
Cortex v1.3.0 adds exact input-budget enforcement and source-linked evidence tools while keeping classification advisory.
- Optional tokenizer-aware windows preserve the full source and use a separate vector namespace. The local ONNX adapter checks every embedding input and rejects oversize text.
- Classification training and serving use the same explicit input format and token limit. Incomplete teacher annotations remain flagged for review.
- Bounded multi-query retrieval reports its coverage limits. Exact source spans can resolve supported date expressions in an explicit timezone; civil-day subtraction avoids daylight-saving errors.
- The revised academic paper reports the expanded private classification study and frozen public retrieval probe, including failures. No private sessions, annotations, per-example outputs or weights are published.
Validation: PostgreSQL race/integration tests, Python contracts, static checks, builds, vulnerability and full-history secret scans, live classifier/date API checks, and local retrieval regression tests. Classification remains shadow-only: the study has no human-reviewed test labels. Query expansion did not improve the aggregate score in the 12-case public diagnostic and remains optional.
No new database migration is required beyond v1.2.0. Hosts continue to own authentication, authorization, provider permissions and scheduling. See docs/production-release.md and the paper manifest for the tested scope.
v1.2.0
Cortex v1.2.0 adds source-window retrieval and a private workflow for training and evaluating memory classifiers. Existing consolidation behavior remains unchanged.
- Retrieve overlapping source excerpts with exact offsets, attribution, and lifecycle checks. Indexing raw sources remains opt-in.
- Classify candidate spans by retention and memory type through a shadow API. Predictions cannot change stored memories.
- Train a frozen-encoder baseline or SetFit model locally, preserve label provenance, and check conversation-group splits. Data and weights stay outside Git.
- Read the new academic manuscript, including six conditional proofs, measured results, limitations, and a conclusion. The historical paper includes a grading erratum.
The local retrieval diagnostic passed 19/19 expected-answer checks in each condition. The seven-case public probe still exposes counting and temporal-reasoning failures. Synthetic classifier gains did not transfer to provisional session labels, so neither trained model is promoted or distributed.
Validation includes PostgreSQL race tests, Python split-safety tests, vet, builds, vulnerability and secret scans, and a native release smoke test. Migration 006 is additive. The HTTP service continues to require host-supplied authentication and authorization.
Downloads include binaries for macOS, Linux, and Windows, the PDF, a complete LaTeX source bundle, and SHA-256 checksums. No private conversations, annotations, per-example outputs, or model weights are included.
Cortex v1.1.0
Cortex v1.1.0 adds explicit factual memories and optional retrieval of original observations. Applications can recover source evidence without changing the memory-only Recall contract.
- New
factkind and a 512-character summary limit preserve qualified factual statements. RecallObservationsandIndexObservationsreturn source text with attribution and timestamps. Indexing raw text requires an explicit call.- Source retrieval respects supersession, archival and expiry.
ForgetObservationremoves unretained evidence, exact-content copies and derived memories. - Consolidation reports unreferenced observations and allows one bounded format-repair attempt. Transport errors are not automatically retried.
Migration 005 is additive. Upgrade all writers before using the new memory kind. The HTTP service still trusts local callers; the host owns authorization and source consent.
Validation includes PostgreSQL integration and race tests, vet, build, vulnerability and secret scans, and a native release smoke test. Release archives contain all three commands; verify them with SHA256SUMS.
The versioned paper and LaTeX source report the evaluation and limitations. On 19 questions from 51 selected local Codex and Claude messages, expected-answer checks passed 7 times with v1.0.1 memory retrieval, 14 with v1.1.0 memory retrieval, and 19 with original evidence. These are small development checks, not general answer-accuracy estimates. A seven-case LongMemEval-S smoke test passed 3 checks with memory retrieval and 5 with original evidence; multi-session counting and elapsed-time cases remain open. No private session content or evaluation corpus is published.
Cortex v1.0.1
Cortex v1.0.1 adds optional semantic retrieval, explicit memory lifecycle operations and retry-safe outcome feedback while keeping scheduling and authorization in the host application.
Changes:
- Optional embeddings and hybrid lexical/cosine retrieval, stored in PostgreSQL without a required vector extension.
- Time-based relevance decay, pinning, expiry, archival and restoration.
- Explicit forgetting of connected memories and source evidence, with exact reimport suppression.
- Idempotent feedback events and a small outcome-based utility estimate.
- Evidence timestamps, returned model provenance and bounded consolidation context.
- Default chat model changed to
gpt-6-luna-mediumthrough Open Agent API.
Upgrade notes:
Migration 004 is additive. Upgrade every writer before enabling maintenance or forgetting; older binaries do not enforce the new policies. Back up the database before migration. The HTTP API still trusts local callers; the application must provide authentication and authorization.
Embeddings are optional. Configure an independent /embeddings endpoint or implement the Go interface. Exact retrieval supports up to 10,000 active memories per user. Maintenance runs only when called. Confidence is kept separate from age-dependent relevance.
Validation: PostgreSQL integration tests with the race detector, Go vet/build, govulncheck, secret scanning, and local synthetic model/retrieval diagnostics. CI for this release commit.
Archives contain the cortex, cortex-import and cortex-once commands. Verify downloads with SHA256SUMS.
The new paper (PDF) documents the implementation, development diagnostics, extraction omissions and next experiments. The March original is archived unchanged in the repository.
Cortex v1.0.0
Cortex v1.0.0 is the first public release of a small Go and PostgreSQL memory engine for AI agents.
Included
Observe,Recall, andConsolidatethrough the Go library.- A localhost HTTP service and the
cortex,cortex-import, andcortex-oncecommands. - Source provenance, contradiction history, strict model-output validation, and atomic memory updates with exact observation acknowledgement.
- A replaceable model interface and a documented Open Agent API setup.
- Synthetic examples, an engineering note, MIT licensing, and dependency notices.
Install
go get github.com/teslashibe/cortex@v1.0.0
go install github.com/teslashibe/cortex/cmd/cortex@v1.0.0Prebuilt archives contain all three commands for macOS, Linux, and Windows. Verify downloads against SHA256SUMS. Running the service requires PostgreSQL with pg_trgm and a configured model endpoint. Building or installing with Go requires Go 1.26.10 or newer.
Supported scope
The HTTP service trusts its local caller. Applications own authentication, authorization, and source consent. Recall uses text matching; the package does not include a background scheduler, vector search, or automatic source-permission revocation. Model quality depends on the configured model. See the README and security documentation before deploying.
Validation covers unit and PostgreSQL regression tests with the race detector, vet, build, vulnerability checks, secret scanning, and a synthetic HTTP workflow with fake inference. No live-model benchmark is claimed.