Repository navigation
Release executables for Linux and macOS with a verified installer - #6
Conversation
3349f42 to
0b109ec
Compare
Release workflow builds and verifies linux-x64, linux-arm64, darwin-x64 and darwin-arm64 tarballs on native runners, writes SHA256SUMS and publishes a GitHub Release for v* tags matching package.json. install.sh installs the verified executable to ~/.local/bin. Node-API headers now come from the pinned node-api-headers devDependency, and the CLI reports --version. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
macOS /tmp and TMPDIR have symlinked ancestors. Credential storage rejects those, and worktree discovery reports physical roots, so fixtures resolve the temporary directory first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The harness stopped reading the PTY after the first prompt; macOS timed out when the CLI wrote its retry prompt. Report captured output on timeout. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bun build --compile embeds the Bun 1.4.2 runtime, which statically links JavaScriptCore/WebKit (LGPL-2) and other libraries. The generated notices now add a Bun runtime section built from files fetched at the bun-v1.4.2 commit and the WebKit commit Bun pins, each checked against a recorded size and SHA-256 and cached by digest for offline builds: Bun's license statement and license page, the LGPL-2, LGPL-2.1, WebKit Apple and Apache-2.0 texts, and where to get the exact WebKit, tinycc and Bun sources for relinking. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ship retrieval v2 as the pre-1.0 default despite the failed frozen gates, with the evidence, the caveats and the 1.0 requirement recorded under roadmap U1. Add curated notes for the first release. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Run the platform matrix on every push to main; keep the PR paths filter. - Refuse a tag whose commit is not on main. - Publish with curated notes when docs/release-notes/<tag>.md exists, and attest build provenance for the tarballs in SHA256SUMS. - Check that packaged notices contain the Bun runtime section. - Installer: resolve releases/latest to one tag and fetch both files from it, require curl for https, show the download URL when it overrides the version, and mention noexec when the smoke run fails. - Mention --version in the ARGUMENT_INVALID message. Co-Authored-By: Claude Opus 5.5 <[email protected]>
0b109ec to
e0bf2a8
Compare
|
Council verdict: APPROVE (unanimous, round 2, head |
Rebased onto the release work (#6). The README install section now matches install.sh: next step after install, --version output, IGLO_MEMORY_DOWNLOAD_URL, curl-only downloads and attestation verification. CONTRIBUTING uses the pinned node-api-headers default, describes both workflows, qa-install.sh and the cached build inputs. The retrieval decision separates the evaluation's missing clean-machine check from the CI qa-clean runs, and the held-out report points to that decision. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…#9) * Rewrite README for end users; move internals to docs and CONTRIBUTING The README now covers what the tool is, install, a three-command quick start with real output, agent usage, a short how-it-works, privacy, configuration, a troubleshooting table for every error code, migration and prior art. Technical detail moves to docs/how-it-works.md (command contract, sources, prepare/search/status/gc behavior, locking, credential storage, provider data, cron) and CONTRIBUTING.md (build, tokenizer cache, source launcher, QA). docs/decisions.md: replace the stale v1 ranking paragraph with the v2 pipeline (BM25 + vector + typed expansion, RRF k=60 with x2 original weight, Voyage rerank, 0.435546875 cutoff) and mark the v1 chunking details as superseded by markdown-lossless-v2. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Make the README quick start reach a first result; fix credential recovery - Quick start: run init yourself in a terminal (no TTY gives API_KEY_MISSING), add a paste-able auth.md note, then prepare and search. Example output is re-captured from that exact note and marked as shortened. - Install: the installer prints the PATH line when ~/.local/bin is missing; the OpenRouter key needs credit because every model is billed per use. - CREDENTIALS_INVALID: --reset-credentials validates the existing folder and file first, so unsafe permissions need chmod (or removing the file). Same note in docs/how-it-works.md. - EXPANSION_FAILED/RERANK_FAILED mention key and credit; CREDENTIALS_SAVE_FAILED points at ~/.config/iglo.memory. - Index commit guidance (~16 KiB per passage vector with the default model). - Privacy: generated rephrasings are embedded too. - decisions.md: results at or above the reranker cutoff. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Rewrite the README pitch in a calmer, confident voice Keep the first screen to what, why, install and quick start with no internals: drop model names and response metadata from the example (still real output, shortened), and point to docs for field details, which model receives what, and the configuration file. Make "Is it a good fit?" brief, plain-language the troubleshooting rows for the rephrasing and ordering requests, and say the installer needs curl. Add a CREDENTIALS_INVALID fix to the migration section: reset credentials (it never reads the old file) or chmod the old folder. Move the 16 KiB per-vector note to docs/how-it-works.md and rewrap long lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Reconcile end-user docs with the release workflow Rebased onto the release work (#6). The README install section now matches install.sh: next step after install, --version output, IGLO_MEMORY_DOWNLOAD_URL, curl-only downloads and attestation verification. CONTRIBUTING uses the pinned node-api-headers default, describes both workflows, qa-install.sh and the cached build inputs. The retrieval decision separates the evaluation's missing clean-machine check from the CI qa-clean runs, and the held-out report points to that decision. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Users no longer have to build by hand. Tagged releases publish tarballs for four platforms, and a POSIX
install.shinstalls one only after its SHA-256 matchesSHA256SUMS. Rebased onto currentmain(through #8), so every release name isiglo.memory.curl -fsSL https://raw.githubusercontent.com/iglo-tech/iglo.memory/main/install.sh | shNo tags or releases were pushed. The first release is cut after merge; see docs/releasing.md.
Release workflow (
.github/workflows/release.yml)Triggers:
v*tags publish. Every push tomain, pull requests that touch release-related files, andworkflow_dispatchrun the same matrix without publishing, so macOS/arm64 regressions show up before tag time.Permissions:
contents: readeverywhere. Only the tag-onlypublishjob getscontents: write, plusid-token/attestations/artifact-metadata: writefor provenance. Actions are pinned by SHA.versionjob:vdiffers frompackage.jsonversion, which is now0.1.0.main(git merge-base --is-ancestor, full-history checkout).buildjob: runs on a native runner per platform:ubuntu-24.04ubuntu-24.04-armmacos-15-intelmacos-15Each runs
check.sh,build.sh,package.sh(and checks the packaged notices contain the Bun runtime section), then the QA steps listed below, then uploads the tarball.matrix.platformreachesrun:only throughenv:.assemblejob: needs all four platforms, so a missing platform means no release. It writesSHA256SUMSand installs linux-x64 from the combined directory.publishjob: re-checks the sums, attests build provenance for every tarball inSHA256SUMS(actions/attestv4.2.2; verify withgh attestation verify), then runsgh release create --verify-tag --generate-notes, prefixed by--notes-file docs/release-notes/<tag>.mdwhen that file exists. Tags containing-get--prerelease.Assets:
iglo.memory-<os>-<arch>.tar.gz(executable mode 0755 plusTHIRD_PARTY_NOTICES.txt) andSHA256SUMS.Node-API headers: come from the pinned
[email protected]devDependency (MIT; integrity-checked bybun.lock).scripts/native.shuses them by default, andNODE_INCLUDE_DIRstill overrides them.check.ymlno longer installslibnode-dev.scripts/package.sh: checks that the executable's architecture matches the platform name. It also holds the singledist/iglo.memorypath.--version: the CLI now prints{"version":"0.1.0"}, read frompackage.json. It works outside a Git repository, and theARGUMENT_INVALIDmessage lists it.Installer (
install.sh)x86_64/amd64map to x64,aarch64/arm64to arm64.github.com/…/releases/latestto one tag (no API or token), validates it, and downloads both the tarball andSHA256SUMSfromreleases/download/<tag>/; the banner shows that version. It errors clearly when no release is published.IGLO_MEMORY_VERSIONpins a version (0.1.0andv0.1.0both work).IGLO_MEMORY_DOWNLOAD_URLpoints at a directory overhttps://orfile://(other schemes are rejected); it overridesIGLO_MEMORY_VERSION, which the installer says, and the banner shows the URL.--proto =https,file --tlsv1.2). The wget fallback is gone: wget may follow an https→http redirect and BusyBox wget may skip TLS verification. Without curl,file://sources still work throughcp.sha256sumorshasum -a 256. A missing, malformed or mismatched entry aborts.chmod 755, and runs--versionon the staged file. A binary that doesn't run is never installed; the error mentions a possiblenoexecinstall directory.mvinto place.~/.local/bin;IGLO_MEMORY_INSTALL_DIRoverrides it.${XDG_DATA_HOME:-~/.local/share}/iglo.memory/.export PATH=...line. Also warns when anotheriglo.memoryearlier on PATH shadows the new one. Printsiglo.memory initas the next step.set -eu, a privatemktemp -dcleaned up by a trap, and the whole script wrapped inmainso a truncated pipe can't run part of it.scripts/qa-install.shcovers, with fake assets:IGLO_MEMORY_VERSION;curlon PATH that serves only the expected URLs: an explicit version is fetched without resolution; the default resolvesreleases/latestexactly once and fetches both files from that tag;SHA256SUMS, an invalid version and anhttp://URL, each of which must leave the existing install untouched;--versionagainstEXPECT_VERSION, and runsinit,prepare,search,statusandgcin a fixture repository.Third-party notices for the embedded Bun runtime
bun build --compileembeds the Bun 1.4.2 runtime, soscripts/third-party-notices.tsnow appends a Bun runtime section toTHIRD_PARTY_NOTICES.txt(about 110 KB in total). Its inputs are fetched fromoven-sh/bunat744846f844374847c902b5e7fd59b4342a51ef99(tagbun-v1.4.2, resolved withgit ls-remote;bun --versionreports the same744846f84) and fromoven-sh/WebKitat2e2aa2290fac856d6f451ceacb58f7f5b44dd057, theWEBKIT_VERSIONBun pins. Each file is checked against a recorded size and SHA-256 and cached by digest in ignored.cache/third-party-notices/, so builds work offline after the first fetch. The script also refuses to run if Bun'swebkit.tsdoesn't pin that WebKit commit.LICENSE.md(MIT statement, linked libraries, polyfills)LICENSE.mdb9caf527…4c984b1adocs/project/license.mdx1fac2ad9…3087f3ecscripts/build/deps/webkit.ts21d39795…5ac4b343Source/JavaScriptCore/COPYING.LIB5094ecb9…5a445547Source/WebCore/LICENSE-LGPL-2.1f2b3bd09…5c8050ceSource/WebCore/LICENSE-APPLE0b5d3a7c…6094edb4packages/bun-usockets/LICENSEc71d239d…f35d0ab4The section also includes an LGPL source and relinking notice. It names the exact WebKit commit and links to its source, points to Bun's pinned tinycc revision, links the Bun source, and explains how to rebuild this executable with
scripts/build.shagainst a modified Bun.Known gaps, documented in
docs/third-party.md: Bun's repository has no MIT text with a copyright line for Bun itself, and it doesn't carry license texts for the other libraries it links (BoringSSL, ICU, zlib-ng, zstd, c-ares, mimalloc, lol-html, libarchive, …). For those, the notices give the license name, the upstream URL and the pin in Bun'sscripts/build/deps/, not the full text. This PR doesn't claim that is legally sufficient.Retrieval v2 release decision and notes
docs/decisions.mdadds "Ship retrieval v2 as the 0.x default despite the failed frozen gates". It records the three-model decision delegated by the owner, the evidence (38/39 vs 23/39 baseline and 17/39 QMD; interval lower bounds +20.51 and +35.90 points), the failed gates and the open caveats. 1.0 needs a fresh frozen evaluation that passes. Roadmap U1 notes that the decision is recorded and that U1 stays open for 1.0.docs/release-notes/v0.1.0.mdholds the curated release notes (10 lines): the install one-liner, platforms and AVX2, the OpenRouter key, whatprepareandsearchsend (including up to 40 stored passages for reranking), the quality caveat with links,iglo.memkey migration, andSHA256SUMS.Verified
Local (linux-x64):
check.sh(lint, fmt, 190 tests, tsc),build.sh,package.sh(the tarball's notices include the Bun section and matchdist/),EXPECT_VERSION=0.1.0 qa-install.sh dist/release,qa-cli.ts,qa-terminal.pyandqa-clean.pyon the packaged executable, and shellcheck (stableandv0.9.0). All pass.CI at the new head runs all four platforms; see the PR checks. At the previous head
0b109ecall four were green (run). The attestation and release-notes steps run only on a tag push, so they are first exercised whenv0.1.0is tagged.macOS isn't proven on a clean machine, so the owner still needs to hand-verify it.
docs/decisions.mdsays this.Fixes needed for macOS
/tmp: 11 tests failed on macOS because/tmp(and$TMPDIR) have symlinked ancestors there. Credential storage deliberately rejects those ancestors, and worktree discovery reports physical paths. Tests,qa-cli.ts,qa-terminal.pyandqa-install.shnow root fixtures at the resolved temp path. Product behavior is unchanged. A macOS user whoseHOMEhas a symlinked ancestor getsCREDENTIALS_INVALID; that is pre-existing, and the normal/Users/<name>is fine.qa-terminal.pystopped reading the PTY after the first prompt, and on macOS the empty-Enter retry case then timed out. The harness now keeps draining the terminal until the child exits, and puts captured output in the error on timeout.Other notes
gh run downloadcan't fetch the unarchived (archive: false) PR artifacts.gh api repos/:owner/:repo/actions/artifacts/<id>/zipreturns the raw tarball. This affects CI artifacts only, not release assets.🤖 Generated with Claude Code