Repository navigation
Turning iMessage sending off cancels a text still on its way, and --off only reports success it can show (GST-3095) - #9791
Merged
Merged
Conversation
On a managed brain, `gbrain repair generations --kind consolidation --mode restore` refused every cluster, because the adapter asked for the managed page-write path although a consolidation restore only touches database rows. The adapter is now database-only and locks the entity page each cluster belongs to. Reported by @lloydsilvertwo; first fixed by @Masashi-Ono0611 in #9693. Co-Authored-By: Masashi-Ono0611 <98894508+Masashi-Ono0611@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Ollama answers 4xx with "connection refused" when its model runner is down, and gbrain treated that as a permanent error. That body is now a transient error, so callers retry. Reported by @benswinney; first fixed by @Masashi-Ono0611 in #9697. Co-Authored-By: Masashi-Ono0611 <98894508+Masashi-Ono0611@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
A trusted page with `contextual_retrieval: per_chunk_synopsis` in its frontmatter is on the synopsis tier, but the sweep only counted the global tier and source rows, so it said "Nothing to do". The sweep now counts such pages, and the reindex output names page frontmatter as the tier's source. Reported and first fixed by @Masashi-Ono0611 in #9685. Co-Authored-By: Masashi-Ono0611 <98894508+Masashi-Ono0611@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…uto row (#9636) On a managed brain, add_link recorded a Chronicle decision even when no automatic extraction was pending for the page. It now records one only when a pending automatic row for the current extractor exists. Reported by @frxiaobei; first fixed by @Masashi-Ono0611 in #9639. Co-Authored-By: Masashi-Ono0611 <98894508+Masashi-Ono0611@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…nt-job-surface-9669
Conflicts resolved: canonical-writers.tsv (page-body.ts keeps the three segmented-body writers; pages.ts takes master's import writers), module-size ceilings re-measured for engine.ts, pglite-engine.ts and postgres-engine.ts, the parity harness createSource takes master's localPath on every arm and the Rust arm passes it to upsertSource, the new belief and folder fixtures name the Rust arm, check-engine-sql-dynamic keeps master's pageSearchVectorSql entry, and the parity coverage table is regenerated (239/239).
The store now answers getSource, listSourceLocalPaths, getSourceStrictness and getConfigValues, and keeps who claimed each tag (an explicit add or the import's frontmatter) so pruneFrontmatterTags removes only import-owned tags, as PGLite does. addPageTagsById adds many tags to a page by id with the same claim rules. (cherry picked from commit 3b028de)
The six members run on the store, and addTag accepts tagSource 'frontmatter', which import uses to claim a page's frontmatter tags. (cherry picked from commit d847db0)
…py/dedupe-confirm Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…urce, config and tag members
Round two's owner skip of the hidden-row restore deleted a private Facts row for good when an owner token with a holders list read a segmented page's markdown view, which hides the row, and put the page back. The write path is back to master's: every remote writer, the owner included, has the private rows restored, so an owner's edit or delete of a private row does not stick yet (follow-up GST-3064). The segmented markdown read fix stays. Tests now pin both round trips: the owner token's segmented markdown put keeps the private row, and the owner client's unchanged inline put keeps every private row exactly once. Review-Finding: p2/fix-check#1 reader=fix-check Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
# Conflicts: # test/fixtures/goldens/exports/types.json
…edupe-confirm
getChunkPage, getChunkWindows, countChunklessPagesWithContent and listChunklessPagesWithContent now run in the Rust engine and match PGLite on the parity suite. excludePrivate and requireSafeChunks still stop on a typed refusal, and a chunk-page read over several sources refuses because Postgres sums totals across pages. (cherry picked from commit 49feb55) (cherry picked from commit 59e7af880d61afc186b150f6a008aaa3dfcf776d)
The chunkless reads count a segmented page whose body_bytes is positive and return an empty body for it. Chunk windows say segmented for a page with no inline body, and seal by chunker_version. (cherry picked from commit 3cb5e1b) (cherry picked from commit abc399aa3a40a0cdbb5176779cc3c55f530f9bba)
Adds the trigram similarity scorer (similarity, word_similarity, strict_word_similarity, show_trgm and the default thresholds) to the Rust store, so fuzzy title search and take search can rank like Postgres. (cherry picked from commit 098e6c9) (cherry picked from commit 48afc78c11c284c63112d203502a1d1d036e4eab)
…h parser for keyword search Both match PGLite (PG 18.6) on fixture sets taken from PGLite: 50,477 stem cases and 6,172 parser cases. (cherry picked from commit 74b3ba4) (cherry picked from commit 836fb5e6ba20dacd4c75e7b844a25f4bb5e52439)
…r keyword search The Rust store can now build English text-search vectors and queries the way Postgres does (to_tsvector, setweight, ||, plainto/phraseto/websearch queries, the facts OR query, @@) and score them with ts_rank and ts_rank_cd. Golden tests compare 148 vectors, 223 queries and 704 ranked matches against PGLite; all match bit for bit. The chunkless-page reader no longer guesses at a body_bytes page column. It reads NULL until the page_body accessor exists (follow-up chunkless-segmented-body-bytes). (cherry picked from commit d87a64d) (cherry picked from commit 768670d1b3922858b6d8dc1fbb273ebbfbd92531)
Fuzzy title lookup now runs on the Rust engine with the same float4 scores, slug tie order, LIKE wildcards in the folder filter and soft-deleted page handling as PGLite. A new parity case pins it. (cherry picked from commit 776a3c3) (cherry picked from commit 12fe30b4ef1e8b0487cf51f180e293f80ec01902)
Keyword page search turns a frontmatter value into the text Postgres gives it (the ->> operator). The helpers that do that (jsonb_text, jsonb_field_text) were first written inside the Life Chronicle timeline module. They are moved ahead of it, with their unit test, so keyword search can use them without the timeline reads. The timeline reads, which come in the next branch, use the same helpers unchanged.
…aging The Rust store now answers searchKeywordChunks, countKeywordPages and searchKeywordPages with the same rows and scores as PGLite: the same page filters (type, where, dates, sources, hard excludes, quarantine), source boosts, phrase and slug-handle boosts, and keyset paging. Options the store cannot answer exactly (CJK queries, privacy and trust filters, unusual date shapes) refuse instead of guessing. One new parity case pins scores and every filter on both arms. (cherry picked from commit 96ee68e) (cherry picked from commit c01538aebd42395e3e50be88a8b54a0e22b810cf)
…eyword arm's options as PGLite does (cherry picked from commit 266edd8) (cherry picked from commit 2ba77676e021a0b98de15a4c64277f064bfc449e)
…arity); it refuses until the sealed search timeline lands (cherry picked from commit 8b67480) (cherry picked from commit 4a3bbd9250c5a1f1fd5ea690e9094d56ecf9ec92)
… a parity case for timelines, the candidate cut, the OR retry and identifiers (cherry picked from commit 0d2eb38) (cherry picked from commit f3a568948e70aef9ee78ea27deee8c31fe149fd8)
…s PGLite's trigger does The trigger form of the rebuilt page search vector now takes coalesce(timeline, timeline_lead, ''). page_body keeps the lead privately, so a stand-in reads NULL until page_body exposes a reader (follow-up title-vector-segmented-lead). The doc names what the segmented seal must record. (cherry picked from commit 394f0d9) (cherry picked from commit 3e54bf083fce64b89be242ee13c8e762a930e7ae)
…ds its marker (GST-3178) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…send-stop-wins Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # apple/helper/README.md # apple/helper/Sources/HelperCore/SendService.swift # apple/helper/Sources/gbrain-apple-helper/main.swift # apple/helper/Tests/HelperCoreTests/SendTests.swift
…send-stop-cancels Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # .claude-plugin/plugin.json # .codex-plugin/plugin.json # BOOTSTRAP_FOR_AGENTS.md # CHANGELOG.md # VERSION # apple/helper/Sources/HelperCore/SendService.swift # docs/guides/secret-store.md # openclaw.plugin.json # package.json # plugin-variants/gbrain-coding/.claude-plugin/plugin.json # plugin-variants/gbrain-coding/.codex-plugin/plugin.json # plugin-variants/gbrain-coding/README.md # plugin-variants/gbrain-daily/.claude-plugin/plugin.json # plugin-variants/gbrain-daily/.codex-plugin/plugin.json # plugin-variants/gbrain-daily/README.md # plugin/README.md # scripts/engine-raw-sql-baseline.tsv # src/commands/doctor/checks/secret-store.ts # src/commands/secrets.ts # src/core/behavior-changes.generated.ts # src/core/secret-store/backup.ts # src/core/secret-store/store.ts # templates/bootstrap/template-repo/README.md # test/fixtures/goldens/doctor/content-pglite-json.json # test/fixtures/goldens/doctor/hot-checks-pglite-json.json # test/fixtures/goldens/doctor/hot-checks-postgres-json.json # test/fixtures/goldens/doctor/json-pglite-degraded.json # test/fixtures/goldens/doctor/json-pglite-fresh.json # test/fixtures/goldens/doctor/json-postgres-fresh.json # test/postgres-unit-arms.txt # test/publish-redact-unpushed-gst2988.test.ts # test/secret-store-backup.test.ts
…concept-purge-rebuild Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…remember-valid-from-starter
…p for a key that was never there send-setup --off now exits 69 instead of 0 when it can't read the process list. Removing a key that doesn't exist no longer leaves an entry behind in the helper's memory. The README and changelog now give the real worst-case wait, about 40 seconds, and say a send stays cancelled only after a stop the helper confirmed. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…, and never undoes a racing purge Review round 1: tying an old-backup entry to every page holding the marker would bind a copied marker, so that path is gone and a stale-slug entry is skipped. The marker check matches a whole marker, the rename's page-less branch checks only the page at the new slug, and an entry whose places all failed to land is taken back out. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…send-stop-cancels
|
😎 This pull request was merged. |
… trusting any segmented page /ship review: treating every page stored in segments as holding every marker let a restore tie an original to a large page that took its old slug. Restore now reads that page's segments; the rename's page-less branch counts only what SQL reads. Tests cover a marker in segments, frontmatter, raw data and a timeline entry. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Test the take-back of an entry whose page is gone before its place lands, and match the marker in segmented bodies with a fixed pattern instead of one built from the entry id (semgrep detect-non-literal-regexp). Review-Finding: p1/specialist-batched#1 reader=specialist-batched Review-Finding: p1/specialist-batched#2 reader=specialist-batched Review-Finding: p1/red-team#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The restore now locks the pages it checks for the marker and writes each place with that checked page's id, only while the page still holds the slug, so a rename running at the same time cannot hand the original to a page that took the slug. The guide now says a copy of the marker in a timeline entry filed on the page counts as the page holding it. Review-Finding: outside-voice#1 reader=outside-voice Review-Round-Grant: GBRA-108 extra-round at 04df027 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ssify the secret store for it The rebuild's access comparison and the purge preview's member classification read the plain private-pages fragment; neither serves a remote caller, so both are listed as maintenance sites. The secret store's two purge tables are rows derived from the old page's text and are classified as such. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Return the rename's handling of a place with no page id to what master does: it moves with the renamed page, so no page that later takes the old slug can reveal the original. The changelog now says a full copy of the marker still counts as holding it. Review-Finding: v2/outside-voice#1 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…concept-purge-rebuild Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… original The rebuild's purge would delete a sealed original recorded only on the hidden concept's page, which nothing removes today because the automatic expiry skips a held tombstone. A page-level secret occurrence now keeps the concept hidden. A concept that only copied a redaction from a live member stays hidden too, until entries can be compared across pages. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…t its slug with no page The purge deletes a slug's page-level secret occurrences that name the purged page or no page at all, so the hold now matches both, as the purge's own predicate does. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…remember-valid-from-starter Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…send-stop-cancels
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 19, 2026
Releases v0.60.746.0 with five changes since v0.60.745.0, including a security fix: a secret store restore now ties an original only to a page that still holds its marker (#9806). - Turning GBrain Helper's sending off now cancels a text that was still on its way, and `send-setup --off` only reports success when it can show the helper is stopped or has confirmed (#9791) - A concept page hidden because one of its source notes was purged is now rebuilt from its remaining notes, unless anyone wrote something on it (#9794) - An MCP client on the starter tool list can now say when a remembered fact was true by passing `valid_from` to `remember` (#9802) - A secret store restore ties an original only to the page at its backed-up slug, and only when that page still holds its marker (#9806) - Shipping a gbrain change no longer reruns the full test suite on the developer's machine when Linux CI already passed at the same code (#9805) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Co-authored-by: garrytan <garrytan@gmail.com>
garrytan
pushed a commit
that referenced
this pull request
Nov 19, 2026
What users get from master in this sync: - gbrain access member handover hands a leaver's pages to the owner (#9684) - Duplicate-person linking now asks first and confirms people who share an id one at a time (#9762) - Company-brain tutorial explains how imported calls are kept to their attendees; --propose heading fixed for partly matched calls (#9718) - One-script install of GBrain Helper on a Mac that keeps its macOS permissions (#9816) - The brain owner is told when a remote put_page kept private fact rows (#9760) - The brain owner sees the same private fact rows in as_of and known_as_of reads as in get_page (#9733) - Turning iMessage sending off cancels a text still on its way, and --off only reports success it can show (#9791) - Starter MCP clients can date a remembered fact with valid_from (#9802) - A secret store restore ties an original only to a page that still holds its marker (#9806) - Concepts hidden by a purged input come back rebuilt from their current members (#9794) - Nightly test of the OpenClaw skill-resolver plugin inside a real gateway (#9799) - Version stamps v0.60.746.0 and v0.60.747.0 (#9814, #9828) Conflict resolution: valid-time-read.ts keeps the trunk's engine-sql imports and adds master's owner fence view. The generated files (migration registry, CLI flag registry, raw-SQL baseline, export and migration goldens) take master's copy for now and are regenerated in the next commit. Master took migration v327 (access handovers), which clashes with the trunk's v327; the renumber follows.
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.
Turning off iMessage sending at the Mac now also cancels a text that was accepted just before, even if sending is turned back on seconds later. And
send-setup --offonly says it worked when it can show the helper stopped or confirmed.It closes the two gaps left when turning sending off was made to win over a text in progress. Nothing goes onto the owner's Mac until this has landed.
Nothing to do.
What changed
--off, the config switch seen off, andsend-key removeof a key that exists each add one. At the handover to Messages, a send whose count moved is refused withsend_disabledorunknown_send_key. That holds even when sending is on again with the same key. Removing a different key leaves it alone.send-setup --offlooks for another runninggbrain-apple-helperprocess. It reports success (exit 0) only when it can read the process list and finds none. Otherwise it exits 69 and says a text being handed over may still go out. That covers a helper still listening on an old port, or--offpointed at another config with--config. The helper keeps no lock or pid file, so the check reads the process table by executable name. No new setting.overloadedanswer (or one with no code) adds that a text being handed over may still go out. An error from the helper's own settings step doesn't add it, because that step waited for any handover first.--offwaits only for a text already being handed over, which can take up to about 40 seconds. Past that it exits 69. Other helper commands now wait 40 seconds instead of 30.Known limits
gbrain-apple-helperprocess, such as a secondsend-setupwaiting on the config lock, also counts as a running helper. With the helper stopped,--offthen exits 69 when 0 would have been right. That is the safe direction. Counting only processes started by launchd would miss a helper started by hand.--offgot a busy answer or no reply, the config switch still stops new sends, but a send already queued can go out if sending is turned back on before it reaches Messages.Tests
offcouldn't finish while a send waited its turn.--offtests each fail when the logic they cover is removed (the process check, the busy caveat). Removing a key that doesn't exist leaves no count behind (fails on the earlier code). An unreadable process list counts as a running helper./bin/sleepis found by name, and the test process never finds itself.