Skip to main content

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_traceback turns a standard CPython traceback into a ParsedTraceback (exception type, message, frames). It never raises; unrecognised input returns None.
  • Failure memories. failure_from_traceback + failure_to_markdown produce a markdown note the user owns, with provenance (content_hash, observed_at, trust) and a confidence label.
  • Frame resolution. resolve_frames pairs each frame with a mneme-graph function node when one matches, with a clean fallback to None.

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.md procedural-memory parsing and repo runbook generation.
  • Fix-trajectory wiring: a fix is modelled as a mneme-temporal claim that supersedes the failure memory. That lifecycle lives in mneme-temporal and is reused, not reinvented here.
  • Non-Python tracebacks.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mneme_code-3.6.1.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mneme_code-3.6.1-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file mneme_code-3.6.1.tar.gz.

File metadata

  • Download URL: mneme_code-3.6.1.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for mneme_code-3.6.1.tar.gz
Algorithm Hash digest
SHA256 cdb0db9ed1061922533b51862711b3366ff54b67abea8563e06d1d0353b9c389
MD5 54f839d013820712e59b17a65fbff859
BLAKE2b-256 f453111cca498c5d6cea3b2297f6eb3224a091fe5db5bdaac7fdcd39d2c5d8bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for mneme_code-3.6.1.tar.gz:

Publisher: release.yml on OnourImpram/mneme

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mneme_code-3.6.1-py3-none-any.whl.

File metadata

  • Download URL: mneme_code-3.6.1-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.14

File hashes

Hashes for mneme_code-3.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e19a8056f69aeba91f135c5bc3cbb8e131f41e8a91409629e91ab472276a10e
MD5 5a405abcae249cc44cee8d80711a4330
BLAKE2b-256 96bad58b87d71b741c6ce2ee875127bdc3fc5ae2dc91e3628f6d79bdd94a65f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mneme_code-3.6.1-py3-none-any.whl:

Publisher: release.yml on OnourImpram/mneme

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

4.1.0

2 files

3.6.3

2 files

3.6.2

2 files

This release

3.6.1 This release

2 files

3.5.0

2 files

3.2.0

2 files

3.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page