mneme-code
Deterministic Python code-failure memory for mneme. Parses CPython tracebacks into structured failures, renders them as vault-ground-truth markdown memories, and resolves stack frames to mneme-graph function nodes.
Part of the mneme memory engine.
What it does (v1)
- Traceback parsing.
parse_tracebackturns a standard CPython traceback into aParsedTraceback(exception type, message, frames). It never raises; unrecognised input returnsNone. - Failure memories.
failure_from_traceback+failure_to_markdownproduce a markdown note the user owns, with provenance (content_hash,observed_at,trust) and a confidence label. - Frame resolution.
resolve_framespairs each frame with a mneme-graphfunctionnode when one matches, with a clean fallback toNone.
Redaction (mneme_core.privacy.redact) is applied to every user-derived string
(exception message, code context, file path) before it is stored or rendered.
No LLM, no network; library functions are pure (the caller injects timestamps).
Scope and deferrals (v1)
The following are not implemented yet and are documented here for honesty:
- Live test-runner integration.
- Branch-aware failure tracking.
AGENTS.mdprocedural-memory parsing and repo runbook generation.- Fix-trajectory wiring: a fix is modelled as a
mneme-temporalclaim that supersedes the failure memory. That lifecycle lives inmneme-temporaland is reused, not reinvented here. - Non-Python tracebacks.
Metadata
Release files for mneme-code 4.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mneme_code-4.1.0.tar.gz | 25.4 kB | With provenance | Details for mneme_code-4.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mneme_code-4.1.0-py3-none-any.whl | Python 3 | none | any | Details for mneme_code-4.1.0-py3-none-any.whl |
Total release size: 46.9 kB
Release files / mneme_code-4.1.0.tar.gz
| Download URL | mneme_code-4.1.0.tar.gz |
|---|---|
| Size | 25.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfa7f57f152e9607013567b838428e73b6dfd34721497f78dd1c07460fa1d162
|
|
BLAKE2b-256 checksum How to use checksums |
927f09eec0ab957e95101a72bea8f1af194577accb34ea0d0e1a83a9c1b6a178
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency logRelease files / mneme_code-4.1.0-py3-none-any.whl
| Download URL | mneme_code-4.1.0-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13afa15186d38cf9b827320d59ead53f8519f766bfdb52f33ec6b3bd329b4ed2
|
|
BLAKE2b-256 checksum How to use checksums |
3b0d6446b5e3e20f57c250296b8c2b154687e4e03b109cf49b5e43e34cf79ce9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency logSecurity for mneme-code 4.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mneme_code-4.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.