Skip to content

fix(install): pin Python 3.12 in every uvx line; demo gif fits one screen - #76

Merged
tonydzi merged 2 commits into
mainfrom
docs/demo-gif-payoff-visible
Nov 4, 2026
Merged

tonydzi merged 2 commits into
mainfrom
docs/demo-gif-payoff-visible

Conversation

@tonydzi

@tonydzi tonydzi commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Two defects in the README's first screen.

1. On an Intel Mac whose uv defaults to Python 3.14, the install line silently installs an old release. onnxruntime has no x86_64 macOS wheels for 3.14, so uv backtracks to 0.3.5, which has no [lite], and warns once. sgm-index then stops with a hint to install [embeddings], which sends the reader the wrong way.

uvx [--python X] --from 'sqlite-graph-memory[lite]' sgm-index ./notes on this Intel Mac result
no pin, uv default 3.14 exit 1, sqlite-graph-memory==0.3.5 does not have an extra named lite
--python 3.12 exit 0, indexed 204 chunks from 202 files

Every uvx line in README.md, examples/README.md, llms.txt and server.json now pins --python 3.12. It is the newest version that resolves both [lite] and [embeddings] on all five platforms below. The README and llms.txt also tell Intel Mac users of pip install to use 3.12, because pip can quietly install 0.3.5 too. The server.json change reaches the MCP Registry only with the next release.

Who this hits, by resolver (uv pip compile, no Mac needed): Intel Mac on 3.14 for [lite], Intel Mac on 3.13+ for [embeddings], and Apple Silicon on 3.14 only below macOS 14. Linux, Windows and Apple Silicon on macOS 14+ resolve on 3.12, 3.13 and 3.14.

2. The gif hid its own result. It was 829 px tall, with the one line that matters at the bottom, below the fold. Now 515 px: top 5 of each list, as in the README's output block, with tool-lanternfish <== +graph in green. The trim is a display filter documented in docs/demo.sh. Re-recorded from the recipe in docs/demo.sh on [lite], so the recipe reproduces the gif.

Guards:

  • tests/test_uvx_python_pin.py checks the pin value and its position across every doc except the changelog. On main: 3 failed, 1 passed. Here: pytest -q 266 passed, 2 skipped.
  • The installable CI job resolves [lite] and [embeddings] on 3.12 for five platforms and checks each extra brings its dependency. All ten pass locally. A missing extra and [lite] on Intel Mac with 3.14 both fail it. It resolves this checkout, not the published package, and Windows ARM is not covered ([embeddings] does not resolve there).
  • docs/demo.sh stops if sgm-index or sgm-ask is missing. Bugbot was right about the earlier version: command -v a b returned 0 when only one existed.

Known gap: the guide linked from the README, second-brain-starter-kit/docs/EXISTING-SETUP.ru.md, has its own unpinned ==0.3.5 uvx lines. Separate repo, separate fix.

What was run: on this Intel Mac, the pinned index and sgm-ask --ab lines with [lite]. Not run: the Claude Code, Cursor, VS Code and Codex config blocks in those clients on this revision, and any install on Apple Silicon, Linux or Windows (resolver only).

Anton Dziatkovskii

🤖 Generated with Claude Code


Note

Low Risk
Changes are documentation, install metadata, CI checks, and demo scripting; no changes to recall, indexing, or MCP runtime logic.

Overview
Install docs and MCP registry metadata now pin --python 3.12 on every uvx path (README client blocks, examples/README.md, llms.txt, server.json), with prose explaining that unpinned uv on Intel Mac / older Apple Silicon can resolve an ancient release without [lite] and mislead users toward [embeddings]. Intel Mac pip install guidance is added in the same places.

Regression guards: new tests/test_uvx_python_pin.py scans markdown/JSON/TOML examples for unpinned uvx lines; the installable CI job runs uv pip compile for [lite] → onnxruntime and [embeddings] → sentence-transformers on five platforms at Python 3.12.

README demo: docs/demo.sh filters sgm-ask --ab output to top 5 per list (green highlight on +graph hits), hides indexer progress noise, tightens asciinema geometry, and fails fast if CLI tools are missing. CHANGELOG records both the pin and the shorter gif.

Reviewed by Cursor Bugbot for commit 32a6b04. Bugbot is set up for automated code reviews on this repo. Configure here.

@tonydzi
tonydzi force-pushed the docs/demo-gif-payoff-visible branch from ff4e6d1 to 13f4fd0 Compare November 2, 2026 12:00

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 13f4fd0. Configure here.

Comment thread docs/demo.sh Resolved
…reen

On an Intel Mac whose uv defaults to Python 3.14, the README's uvx line does not fail
outright. onnxruntime has no wheels there, so uv falls back to 0.3.5, a release without
[lite], warns once, and sgm-index stops with a hint to install [embeddings]. Measured on
MacPro192: exit 1 on the default, exit 0 with --python 3.12, top hits and scores equal
to the gif.

- README, examples, llms.txt and server.json pin --python 3.12.
- tests/test_uvx_python_pin.py checks the value: 3 failed on main, passes here.
- CI resolves [lite] and [embeddings] on 3.12 for five platforms with uv pip compile.
- The gif is 515 px instead of 829 px, top 5 of each list, the graph hit in green.
- docs/demo.sh stops if sgm-index or sgm-ask is missing, instead of writing a blank gif.

Assisted-by: Claude Code/claude-opus-5-5
Machine: MacPro192
Account: tonydzi
Operator: Anton
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tonydzi
tonydzi force-pushed the docs/demo-gif-payoff-visible branch from 13f4fd0 to 89aa85f Compare November 4, 2026 19:34
Review of the pin found statements of mine that were wrong, and guards that missed cases:
- The pip note was false below macOS 13. It now says to use Python 3.12 on an Intel Mac.
- Apple Silicon below macOS 14 falls back the same way on 3.14; the docs now say so.
- The server.json description claimed a fallback its ==0.3.6 pin rules out.
- The CI step stayed green for a missing extra. It now checks the extra brings its dependency.
- The test missed the prose form, a pin after the tool name, and --python 3.120. It now
  checks all of these and scans every doc except the changelog.
- demo.sh on [lite] printed progress lines and overflowed the screen. It now filters them,
  and the gif is re-recorded from that recipe.

Assisted-by: Claude Code/claude-opus-5-5
Machine: MacPro192
Account: tonydzi
Operator: Anton
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tonydzi
tonydzi merged commit a22da11 into main Nov 4, 2026
8 checks passed
tonydzi added a commit to tonydzi/second-brain-starter-kit that referenced this pull request Nov 4, 2026
)

Without the pin, an Intel Mac whose uv defaults to a newer Python cannot install
[embeddings]: torch has no wheels there for 3.13+. Resolver on x86_64-apple-darwin for
[embeddings]==0.3.5: 3.14 fails, 3.12 passes with torch 2.2.2. Same fix as
tonydzi/sqlite-graph-memory#76. Versions in the guide are unchanged, since it is a dated
snapshot.

Assisted-by: Claude Code/claude-opus-5-5
Machine: MacPro192
Account: tonydzi
Operator: Anton

Co-authored-by: Anton Dziatkovskii <194927794+tonydzi@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@tonydzi
tonydzi deleted the docs/demo-gif-payoff-visible branch November 18, 2026 18:50
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