fix(setup-gbrain): warn about the ZeroEntropy sunset before Sept 4

ZeroEntropy was acquired by Notion and sunsets its hosted API on September 4, 2026. A gbrain configured with the zeroentropyai embedding recipe keeps importing pages after that date but embedding silently fails — pages land structurally with no semantic search, this repo's tracker P1 (TODOS.md NEXT PRIORITY). Nothing in gstack ever recommended ZeroEntropy (the dependency is gbrain-internal), so the gstack side is detection + advisory: the wireup helper warns when ~/.gbrain/config.json names the recipe (fail-open grep — a missing, unreadable, or other-provider config stays silent and never blocks a working setup), the setup-gbrain provider-default comments say never to select the legacy recipe for a new brain, and USING_GBRAIN_WITH_GSTACK.md gains a troubleshooting entry. The gbrain-side provider migration stays open upstream.

Refs #2365
This commit is contained in:
Garry Tan
2026-08-22 02:02:33 +00:00
parent 361dfebcbe
commit 8b426b3050
5 changed files with 61 additions and 0 deletions
+9
View File
@@ -316,6 +316,15 @@ do_wireup() {
;;
esac
# ZeroEntropy sunset advisory (#2365): the provider shuts down Sept 4, 2026,
# after which brains on gbrain's zeroentropyai recipe stop embedding new
# pages silently. Detection is a fail-open grep of gbrain's config — any
# missing/unreadable/other-provider config stays silent (grep -qs), never
# blocking a working setup.
if grep -qsi 'zeroentropyai' "$GBRAIN_CONFIG" 2>/dev/null; then
warn "gbrain config appears to use the ZeroEntropy embedding recipe. ZeroEntropy sunsets on September 4, 2026 — after that, new pages stop embedding silently. Migration options: https://github.com/garrytan/gstack/issues/2365"
fi
if [ "${GSTACK_BRAIN_NO_SYNC:-0}" = "1" ]; then
echo "source_id=$id"
echo "worktree=$WORKTREE"