Repository navigation
gbrain memory lookups find the artifacts source, product pages and newest timeline rows - #4685
Merged
Merged
Conversation
…west timeline rows GSTACK_BRAIN_SOURCE_ID now names the artifacts source for /sync-gbrain's duplicate-import guard (#4443) and for gstack-decision-search --semantic (#4327). Brain-cache page digests read compiled_truth under the lowercase slug gbrain stores (#4265). Each artifacts sync advances the brain worktree after its own commit (#4179). Oversized .jsonl logs keep their newest complete rows in the brain (#4362). Co-authored-by: Barack-zero-to-one <[email protected]> Co-authored-by: exGeni <[email protected]> Co-authored-by: atharva081106 <[email protected]> Co-authored-by: extremenelson <[email protected]> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
An oversized .jsonl whose last row alone passes the cap now keeps a non-empty body instead of an empty page. Review-Finding: p1/specialist-batched#1 reader=testing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… passes Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… commit A drain whose push the transcript consent or the letter-case check refuses no longer advances gbrain's worktree to that local commit. Review-Finding: p1v/outside-voice#2 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This was referenced Nov 22, 2026
Closed
[feature] gstack-decision-search --semantic: let GSTACK_BRAIN_SOURCE_ID name the memory source
#4327
Closed
Merged
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/sync-gbrainandgstack-decision-search --semanticnow find a brain host's artifacts source throughGSTACK_BRAIN_SOURCE_ID, planning skills read their product and brand digests from current gbrain, and the brain gets each sync's newest artifacts and timeline rows.Why: five outside reports (#4443, #4327, #4265, #4179, #4362), each reproduced on main by a test that fails before this change and passes after it.
Nothing to do unless your artifacts source lives outside
~/.gstack-brain-worktree; then setGSTACK_BRAIN_SOURCE_IDto its id.What changed, item by item
/sync-gbrain's guard found the federated artifacts source only at the worktree path or state root, so a brain host whose source is a gbrain clone re-imported every plan and design doc into the default sourcefederatedCuratedSourceIdtakes the idGSTACK_BRAIN_SOURCE_IDnames (still required to be federated, with no fallback to the path match), asbrainSyncIndexVerdictand the wireup already didtest/regression-2922-memory-ingest-sources.test.ts--semanticfound the memory source only by a path ending in.gstack-brain-worktreetest/gstack-decision-semantic.test.tsgstack-brain-cachereadpage.body, which current gbrain'sget --jsonuses for the read-mode name, and asked for the mixed-case slug gbrain never stores, so every product, brand and persona digest missedcompiled_truth(contentfor a streamed page) under the lowercased slugtest/brain-cache-page-read.test.tstest/gbrain-source-worktree-advance.test.ts(its old test pinned the daily window and is replaced).jsonllog keeps its newest complete rows; markdown keeps its start as before; the cap is unchangedtest/memory-artifact-body.test.tsLeft out on purpose: #4316's not-found versus unreachable message and markdown fallback for gbrain 0.46; #4179's
glab auth statusmove; #4362's 24 MiB ceiling,--projectscoped repair and readback changes.Security read
No CI, install script, dependency, auth or new network path changes.
gstack-brain-sync's advance calls the samegstack-gbrain-source-wireup --advance-onlyas before (no force-remove, refuses dirty or foreign worktrees) from the exit trap while the drain lock is still held; INT/TERM disarm it.GSTACK_BRAIN_SOURCE_IDonly selects among sourcesgbrain sources listalready reports and scopes reads to it; it never widens a search.Issues
Fixes #4179
Fixes #4265
Fixes #4327
Fixes #4362
Fixes #4443
Documentation
Status: current. The docs already match this branch's changes, so nothing was edited.
Scope: committed changes from c2b4f0d2 to HEAD on gbrain-memory-lookups-find-their-pages (nothing staged, unstaged or untracked). That covers the
GSTACK_BRAIN_SOURCE_IDsource selection, the brain worktree advance on every sync, the gbrain page-text fix and the newest-rows rule for jsonl logs.Documentation health
docs/gbrain-sync.md: current. It documentsGSTACK_BRAIN_SOURCE_IDand the advance on every sync with a 24-hour wait after a failure.USING_GBRAIN_WITH_GSTACK.md: current. The--advance-onlyflag row is unchanged and still accurate.changelog.d/gbrain-memory-lookups-find-their-pages.md: current. It matches the code.Coverage debt: none. Diagram drift: none.
Agent notes
Outside items triaged under GSTA-799 and rebuilt on main per R45; no outside branch was checked out or run. Co-authored-by trailers credit the PR authors whose approach was carried over.
Approvals
Approved: yes (record r-740f1a3afd22). The full approval record stays private.
Plan: exempt: bug fix (--kind fix), failing-first tests in the PR
Plan check: exempt bug fix
Ruled note: test/gbrain-source-worktree-advance.test.ts:152:adversarial at b46aaa0 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-804:2026-11-22T06:30Z) at 2026-11-22T06:46:59.431Z: refuted: test-setup.ts clears GSTACK_STATE_ROOT; a sentinel rerun stayed empty (approval a-a45b9967ca4f)
Ruled note: lib/memory-artifact-body.ts:15:outside at b46aaa0 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-804:2026-11-22T06:30Z) at 2026-11-22T06:46:59.532Z: needs one row over 200K characters; the source log is untouched; below the floor (approval a-9bde07958502)
Review-loop exception: accepted by Captain GStack Minder (GSTA-36) 2026-11-22 via relayed from GSTA-804:2026-11-22T06:30Z: one scoped fix round for outside-voice #2 at the round cap; #1 and #3 closed as ruled notes (fix-check at 8d51fe1, 1 finding)