Repository navigation
Purge on a brain without a write owner removes the page's text from the write journal - #9835
Merged
Merged
Conversation
…s (GST-3170) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…els into fundraise (GST-3170) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… reads (GST-3170) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…aces too (GST-3170) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ll commands, no crash line on inspect, doctor re-checks the host skill list Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… so every reader sees the old value end (GST-3170) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…of failing the write (GST-3170) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…es and Postgres arm in their inventories (GST-3170) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-running full setup Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…L.C. as LLC; judge restricted pages in the engine scope (GST-3127) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…he scoped check Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…y lets it load; bound doctor's skills list probe at 20 s Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…olicy lets the plugin load Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tials never read as a title Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…blish at once, keep the newest-first fact scans on their index, and stop folding runway, loan and target labels into fundraise (GST-3170) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ng does The owner-only tests built their engines without the connect-time version read, so on a snapshot-restored PGLite or a cloned Postgres brain the restricted-page check fell back to treating every page as owner-only. The two new owner-only tests also wrote the source config as a JSON string on Postgres; they now write a real JSON object. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…w each reader's trust floor and access, so they go to a follow-up (GST-3170) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…art instead of matching or merging it, and keep managed imports as read (GST-3170) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…approved Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ules at their previewed prefix Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…6143) The race hunt planned each shard at 55 minutes of tests while the shards of the 2026-11-19 nightly took 30 to 45 minutes with setup, so the 3-iteration floor filled long before the runners did. Re-mine the stress iteration weights from that night's 24 shard logs, and schedule the files listed in test/postgres-unit-arms.txt before the importers of changed helpers, so a widely imported helper can no longer push listed arms out of the night. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…cept rebuild included The unmanaged expiry now pages through all of the purged pages' journal rows instead of stopping at the first 10,000, redacts the entry text kept in their timeline receipts (compacted ones included) as an explicit purge does, and the unmanaged concept rebuild's hard purge redacts too. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…included The edit_page receipt keeps a unified diff of the page text in its outcome. Both the unmanaged expiry and the explicit purge now read the page's edit receipts with its timeline receipts and redact that diff. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…claw-skill-resolver-followups
…claw-skill-resolver-followups
…ip-nul-page-writes
…page writes strip U+0000 Frontmatter parsing now removes U+0000 for page writes, which also reached two readers that must not change: - Rename identity (S-51) read a frontmatter title holding U+0000 with the character removed. Such a title reads as no value again, so the pair takes the unconfirmed-rename path and never matches a page with the plain title. A lone surrogate still reads as no value, as before. - The skill resolver's module graph gained src/core/text-safe.ts through data-frontmatter.ts. The helper now lives in data-frontmatter.ts itself, so the resolver loads exactly the modules it loaded before. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ip-nul-page-writes
The mock's first prose answer now gets one re-ask (#9648) before the job falls back, so the mock answers that re-ask in prose too and the agentic loop's tool call moves to the third call. Every assertion stays; the call count floor rises from 2 to 3. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan
added a commit
that referenced
this pull request
Nov 20, 2026
garrytan
pushed a commit
that referenced
this pull request
Nov 20, 2026
…ture-dated fact order, purge receipts Brings master up to 3132308 (10 commits, including #9834 handover preview binding, GST-3170 fact ordering, #9835 purge without a write owner, and #9838 gbrain identity). No new schema migrations. Conflicts (3): docs/architecture/key-files/memory-purge.md (master's intent-redaction and page-purge text, the trunk's Rust raw_sql line), src/core/search/fact-relevance.ts (kept the trunk's engine.listFactsForRelevance call; master's new SQL moved into engine-sql), test/fixtures/goldens/exports/types.json (regenerated). Parity ports so a Rust brain answers like PGLite and Postgres: - listFactsByEntity and the relevance entity arms rank a fact dated in the future by when it was written (engine-sql/facts-trust.ts and the Rust store). New parity test fact-future-order: red on PGLite (old engine-sql) and on Rust (old addon) 0/1; green 1/0 on PGLite, Postgres and Rust. - purgeDeletedPages returns the purged pages on a real run too (Rust store), as master's engine-sql now does. pages parity on Rust: red 38/1 (realHasPages), green 39/0 on all 3 arms. Master's new tests on 3 arms (PGLite / Postgres / Rust): handover 8/16/8, owner-identity 12/24/12, doctor-owner-identity 5/10/5, strip-nul 4/7/4, purge-unmanaged 3/6/3, facts-future-valid-from 1/2/1, all 0 fail. verify 104/104, cargo gbrain-store + gbrain-napi 1255/0.
garrytan
pushed a commit
that referenced
this pull request
Nov 20, 2026
… and Postgres do Master's purgeDeletedPages (#9835) now returns pages: [{ slug, source_id, deleted_at }] on the destructive run too, and the purge-deleted journal redaction reads that list. The Rust store returned the list only on a dry run, so a purge on a Rust brain would skip that redaction. The shared parity case 'purgeDeletedPages skips excludeIds and treats an empty list as no filter' failed on the Rust arm before this change and passes after it.
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.
On a brain without a write owner, the automatic purge now removes a purged page's text from the write journal too, including journal rows written while the brain had a write owner. Before, those rows kept the page's stored requests, timeline entry text and edit diffs after the page itself was gone.
What changed
redactExpiredPageJournalin page-purge.ts) pages through every row in sequence order, 1,000 at a time. It clears the stored request and removes the text that the page's timeline receipts and edit receipts keep, compacted ones included. A request still pending keeps its stored request.gbrain delete --purgenow also removes the diff kept in the page's compacted edit receipts. It shares the receipt lookup with the expiry.Tests
test/purge-unmanaged-redacts-managed-journal.test.tsruns on PGLite and Postgres. It covers the bulk expiry, the belief-ledger expiry and the explicit purge, each with timeline and edit receipts, compacted ones included. The two expiry tests fail on master. Related purge suites also pass: concept purge rebuild, page purge, purge eval fixes, claim sweep, belief-ledger purge, engine parity pages, concept hold and parks. Verify passes 103/103 and typecheck is clean.Agent notes
--owner-ref;gstack-ship-release finishstops with "behavior, tests or build inputs changed since review", so this PR has no /ship receipt and lands by hand.