Deterministic Python code-failure memory layer for mneme: redact-before-store, provenance-labelled FailureMemory, vault-ready markdown output.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mneme_code-3.1.0.tar.gz.
File metadata
- Download URL: mneme_code-3.1.0.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c29af7ffc7a892c8c755ec46fc068d5d94d0297cd6368021fb32f9724277e6f
|
|
| MD5 |
0f978d22216535a0171ce2510c4f0372
|
|
| BLAKE2b-256 |
d45141982b957a47210aa95a2b3047db4b0b8635d49b07b2c94c18020ec8a5e8
|
Provenance
The following attestation bundles were made for mneme_code-3.1.0.tar.gz:
Publisher:
release.yml on TheGoatPsy/mneme
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mneme_code-3.1.0.tar.gz -
Subject digest:
6c29af7ffc7a892c8c755ec46fc068d5d94d0297cd6368021fb32f9724277e6f - Sigstore transparency entry: 1803907497
- Sigstore integration time:
-
Permalink:
TheGoatPsy/mneme@2dfbe828f61e2451a57cea79bb857d104dcab4d4 -
Branch / Tag:
refs/tags/v3.1.0 - Owner: https://github.com/TheGoatPsy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2dfbe828f61e2451a57cea79bb857d104dcab4d4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mneme_code-3.1.0-py3-none-any.whl.
File metadata
- Download URL: mneme_code-3.1.0-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe459c57f728ce75a555f10a334838bb19565baf0461e2e1297e5b36ba49281a
|
|
| MD5 |
40e0df136447df9c751a93564e438bb1
|
|
| BLAKE2b-256 |
ad735bb7fc1f0b1758a2af3fa89afb7af54b6acb994a526761d1443318526a57
|
Provenance
The following attestation bundles were made for mneme_code-3.1.0-py3-none-any.whl:
Publisher:
release.yml on TheGoatPsy/mneme
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mneme_code-3.1.0-py3-none-any.whl -
Subject digest:
fe459c57f728ce75a555f10a334838bb19565baf0461e2e1297e5b36ba49281a - Sigstore transparency entry: 1803907577
- Sigstore integration time:
-
Permalink:
TheGoatPsy/mneme@2dfbe828f61e2451a57cea79bb857d104dcab4d4 -
Branch / Tag:
refs/tags/v3.1.0 - Owner: https://github.com/TheGoatPsy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2dfbe828f61e2451a57cea79bb857d104dcab4d4 -
Trigger Event:
push
-
Statement type: