Repository navigation
chore: release 0.5.0 - #27
Conversation
There was a problem hiding this comment.
💡 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".
| - `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. |
There was a problem hiding this comment.
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.
da214e3 to
e474d29
Compare
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 — pushingv0.5.0is 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
xfail(strict=True)markers — the roadmap that lived in the test suite rather than a document — are at zero.~/.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:
picks.jsonis now the one file that cannot be rebuilt from history;securitytruncates a command over ~4 KB and executes the remainder, so oversized values are refused;mem fixneeds explicit exit codes, so imported shell history is invisible to it;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:
pyproject.tomlandsrc/mem/__init__.py— all three are0.5.0;twine check --strict;mem, version 0.5.0;mem tui --helpmust work through the new console-script dispatch;Requires the
PYPI_TOKENandTAP_TOKENsecrets. There is a standing TODO to move to PyPI Trusted Publishing and retire the long-lived token.