Skip to content

chore: release 0.5.0 - #27

Merged
matinsaurralde merged 1 commit into
masterfrom
release/0.5.0
Aug 4, 2026
Merged

matinsaurralde merged 1 commit into
masterfrom
release/0.5.0

Conversation

@matinsaurralde

Copy link
Copy Markdown
Owner

Version bumped in both files the release workflow checks against the tag, plus the changelog entries for everything that landed after it was first written.

Merging this does not publish anything. The release workflow fires on a v* tag, not on a merge — pushing v0.5.0 is what builds, uploads to PyPI, cuts the GitHub release and updates the Homebrew tap. That step is yours to take, because a PyPI release cannot be replaced, only yanked.

Where 0.5.0 ended up

  • 1,355 tests, 91% branch coverage, on Python 3.10–3.13. The audit's 62 xfail(strict=True) markers — the roadmap that lived in the test suite rather than a document — are at zero.
  • Verified from a clean wheel in a fresh venv: all three hooks byte-identical to source, capture and search working, the finder degrading correctly with no terminal, agent access off by default, and nothing written outside ~/.mem.

Added to the changelog since it was written

Selection-aware ranking, mem fix, Keychain-backed variables, and the concept map — plus, under Fixed, the query prefilter that was matching JSON field names instead of commands.

And five more entries under Known limitations, including the ones these features introduce rather than only the ones they resolve:

  • a cold start gains nothing from selection-aware ranking, and picks.json is now the one file that cannot be rebuilt from history;
  • a machine with no usable Keychain can no longer store variables at all — deliberate, but a capability that used to work;
  • security truncates a command over ~4 KB and executes the remainder, so oversized values are refused;
  • mem fix needs explicit exit codes, so imported shell history is invisible to it;
  • the 0.039 → 0.575 ranking figure is a simulation, not a field study.

Release checklist, for when you tag it

The workflow already enforces most of this and fails before the upload, since nothing after it is reversible:

  1. tag version must match pyproject.toml and src/mem/__init__.py — all three are 0.5.0;
  2. twine check --strict;
  3. the built wheel is installed in a clean venv and must report mem, version 0.5.0;
  4. all three hooks must come out of that wheel byte-identical to source — added this release, because serving a stale hook is the failure that reached every pip user without anything noticing;
  5. mem tui --help must work through the new console-script dispatch;
  6. only then: PyPI, GitHub release, Homebrew tap (with a 64-char sha256 guard so a 404 page cannot become a checksum).

Requires the PYPI_TOKEN and TAP_TOKEN secrets. There is a standing TODO to move to PyPI Trusted Publishing and retire the long-lived token.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: da214e35b6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CHANGELOG.md
Comment on lines +166 to +168
- `security` truncates a command longer than ~4 KB **and executes the
remainder**, so mem refuses to store a value that large rather than
silently keeping a truncated secret.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge State the effective Keychain value limit accurately

For values around 2–4 KB, this release note gives the wrong compatibility boundary: set_secret() hex-encodes the value for -X, doubling its size, and _interactive_line() rejects the resulting command at 3900 bytes, so the effective value limit is roughly 2 KB. The observed security -i behavior documented in src/mem/keychain.py is also execution of the truncated head, not the remainder. Describe this as a ~4 KB command-line/~2 KB value limit with the truncated head being executed.

Useful? React with 👍 / 👎.

Version bumped in both files the release workflow checks against the tag.

The changelog gains the three features that landed after it was written —
selection-aware ranking, `mem fix`, and Keychain-backed variables — and five
more entries under Known limitations, including the ones those features
introduce: a cold start gains nothing from picks, picks.json is now the one
file that cannot be rebuilt from history, a machine without a usable Keychain
can no longer store variables at all, and `mem fix` is blind to imported
history because it records no exit codes.
@matinsaurralde
matinsaurralde merged commit 77f57b3 into master Aug 4, 2026
5 checks passed
@matinsaurralde
matinsaurralde deleted the release/0.5.0 branch August 4, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant