Skip to content

Dream patterns drains a backlog larger than the write cap, one --json document after a .env re-run, and two smaller fixes - #9724

Merged
capy-ai[bot] merged 692 commits into
masterfrom
capy/gbra-633-small-fix-wave-2
Nov 18, 2026
Merged

capy-ai[bot] merged 692 commits into
masterfrom
capy/gbra-633-small-fix-wave-2

Conversation

@garrytan

@garrytan garrytan commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Fixes three outside bug reports and one flaky performance test, each rebuilt on master with a test that fails first.
Why: dream patterns no longer fails on every run when a managed brain has more unverified pattern pages than its write cap allows, --json writes one document, an install that lost its dependencies says how to restore them, and the entity-card gate stops flaking without getting weaker.
Nothing to do: no settings, defaults, migrations, CLI flags or MCP fields change.

What changed

Details

Outside reports, rebuilt from the report text

Entity-card hub gate (nightly flake)

  • test/entity-card-perf.slow.test.ts: the 10,000-link hub gate now measures referrer work, which is the hub card's thread CPU time less a card for a company with no referrers, divided by one distinct-referrer count. It times 30 rounds in a rotating order and gates on the median. The ceiling goes from 8x to 6x, which tightens the gate. The 1000 ms wall-time backstop on the whole card is unchanged.

Also corrects the #9715 release note and upgrade notice that landed with #9723: they now list the routes embedding_disabled stops and name the two cases that still send text until a later release (a contextual reindex queued before the setting was turned on, and a reindex-multimodal run already in progress). Text only.

Supersedes #9709
Supersedes #9719
Supersedes #9666

Why

Details

The hub gate failed at 8.15x on a full CI run. The referrer read is still about 4x the count, the same as at the 2026-10-05 calibration. The reads every card does (facts, timeline, resolution, privacy filters) have grown since then, so the whole card read 7.6x to 8.0x on an idle 4-core machine and 8.3x to 8.9x under CPU load. Thread CPU time alone moves in 4 ms steps, which is too coarse for one 13 ms count, so the count now runs 8 times per sample.

Probe (4-core machine, 8-process CPU load for "loaded") Old gate (whole card ≤ 8x) New gate (referrer work ≤ 6x)
Unchanged code, idle 7.6x, 8.0x, 7.8x (1 of 3 fail) 3.9x, 4.0x, 3.8x, 3.5x (under 6x every run)
Unchanged code, loaded 8.9x, 8.3x, 8.8x (3 of 3 fail) 3.7x to 4.0x in 9 runs; 6 of 6 pass on the committed tree
Hydrate every referrer row injected, idle about 11.5x 7.3x, 6.8x, 7.4x (3 of 3 fail)
Hydrate every referrer row injected, loaded 6.9x, 7.2x, 7.0x (3 of 3 fail)

Red before, green after for the outside fixes:

Before the push: the whole verify, both census shards, regen, typecheck, 108 related test files (patterns, the G6 batch writers on both engines, maintenance and repair) and bun run test:stress --postgres (6 changed files × 10 iterations, 0 failed).

Blast radius

Details
Fix Outside PR Read as What it touches Network, secrets, spawn, CI, deps Verdict
#9665 #9666 text only, rebuilt the generated launcher script: one [[ -d ]] check and a message, with the tree path quoted as before none (the message names an install command for the user; nothing runs it) safe
#9708 #9709 text only, rebuilt publishMaintenancePages admits a long batch in parts of at most half the outstanding cap (one config read for batches of 2 or more); repairs read the same window from limits.ts none safe
#9717 #9719 text only, rebuilt the CLI wrapper marks the JSON document as written by the re-run before it relays the exit code none safe
hub flake none our change one slow test file, plus one seeded test page none safe

Runtime code: src/core/persistence/prepared-maintenance.ts, src/core/persistence/limits.ts, src/core/repair/settle.ts, src/core/cli-preflight.ts, src/core/cli-force-exit.ts, src/core/agent-install/launcher.ts, src/core/harness/install.ts. No migration, no config key, no new error code, nothing under .github/.

Agent notes
{"head":"b1c1d52b444a440744b297ecdb235c9e54ed1eb5","run":"run3","status":"started","review_loop":{"passes":2,"blocking_found":2,"deferred":0,"noted":5,"fixed":2,"scope":"frozen","rounds":2,"est_input_tokens":32041,"dispatches":{"specialist-batched":2,"red-team":2}}}

Agent notes

Details

Receipt waived by the landing controller: gstack-pregate refused settle.ts with PREGATE_NO_LANE; the test that names it follows in #9744.

garrytan and others added 30 commits November 17, 2026 11:54
The brain read was taken before the commit took its lock, so a sync in
between could import an already-tracked .json file as a page that the
read never saw; the untrack was admitted and the next sync deleted that
page. A code-extension file is now admitted only when the source's sync
anchor (sources.last_commit, read in the same read-only transaction) is
on this branch's history, the commit that last changed the file is that
anchor or one of its ancestors, and the file's blob at the anchor equals
HEAD's. Otherwise it refuses untrack_not_db_only in the late group,
naming gbrain sync --source <id> (noted as running even when automatic
sync is off). The dry run and the real run take the same verdict.

#9606's ..x untrack tests now pass the brain read's source root, since
every managed untrack takes it from the brain.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…read the private copy it restates

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>
The final review of 4f353b5 found that the sync anchor proves only that
sync saw the file, not that it decided under the current selection: a
.json file a Markdown-strategy sync skipped, read after the source was
switched to auto, was admitted with no live page; a sync before the
untrack imported it, and the next sync deleted that page. A code file
now counts as a page when the source's current strategy imports it
(code or auto), live or not yet, and that check runs before the anchor
check, so it refuses in the page group whether or not sync has caught up.

Review-Finding: final/outside-voice#1
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ack-db-only-paths-gst2964

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

# Conflicts:
#	scripts/module-size-limits.tsv
#	src/core/git/commit-push.ts
#	test/git-commit-push-dotdot-folder-names.test.ts
…de changes

The Rust engine workflow now starts its macOS addon cell only on pushes to
master, on manual runs, and on pull requests that change rust/** or the
loader files. The cargo-deny advisory check runs on a pull request only when
it changes rust/** (which holds Cargo.lock); a new advisory fails the push to
master or the new daily schedule instead. The path filter now also matches
src/core/rust-engine/** and src/core/sql-engine-kind.ts.

Workflow-only change after the ship receipt, at GBrain Minder's request.
…rical prompt and schema, with no slot (GBRA-574)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…call no longer asks for a slot (GBRA-574)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…or a slot (GBRA-574)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…company-brains

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

# Conflicts:
#	scripts/module-size-limits.tsv
#	src/core/cli-flag-registry.generated.ts
…s until its page is extracted again (GBRA-574)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e from is extracted again (GBRA-574)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…g them) into gbra574-extraction-keeps-preferences
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…mport-search

# Conflicts:
#	scripts/module-size-limits.tsv
#	src/core/git/commit-push.ts
#	test/git-commit-push-dotdot-folder-names.test.ts
A removed token stops working on the running helper's next request, token
commands take a lock and write through a private temporary file, message text
keeps everything after an embedded NUL, startup failures go to the log, and
the signing probe restores the keychain list without eval.

Review-Finding: p1/outside-voice#1 reader=outside-voice
Review-Finding: p1/outside-voice#2 reader=outside-voice
Review-Finding: p1/outside-voice#3 reader=outside-voice
Review-Finding: p1/specialist-batched#1 reader=testing
Review-Finding: p1/specialist-batched#2 reader=testing
Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/red-team#3 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…eps-preferences, dropping the eight fragments that release folded

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The README's routes table gives each parameter's default, a disabled source says how to turn it on today, and the signing probe is described as a probe. The changelog entry describes the helper for gbrain users.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ny-brains PR

Its full-suite tests still expect the old degraded notice on keyless brains, so it returns to its own pull request. This reverts the merge of 8aaa159 (d8b8ce2).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai capy-ai Bot added the full-ci Maintainer-only: run the full Test and E2E suite on this PR head label Nov 18, 2026
@github-actions github-actions Bot removed the full-ci Maintainer-only: run the full Test and E2E suite on this PR head label Nov 18, 2026
garrytan and others added 3 commits November 18, 2026 20:26
…cument

The wrapper marked the re-run's JSON document as written before it checked
how the re-run ended, so a re-run killed by a signal left stdout empty. It
now marks it only after a normal exit. The release note also names the
command that writes the checked launcher: gbrain connect --install.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…611 44258974349 44248892898 44245233913"

This reverts commit ac08fc5.
The #9717 fix had cli-preflight import cli-force-exit, which pulls in the
whole command graph, and the hook lane worker loads cli-preflight. The
re-run's delegation flag now lives in a small module both read.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai capy-ai Bot added the full-ci Maintainer-only: run the full Test and E2E suite on this PR head label Nov 18, 2026
@github-actions github-actions Bot removed the full-ci Maintainer-only: run the full Test and E2E suite on this PR head label Nov 18, 2026
Settling a dead job on its error text also settles a child that failed
with prose, and prune deletes those rows. It comes back on its own PR with
a structured skip marker.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai capy-ai Bot changed the title Dream patterns drains a backlog larger than the write cap, one --json document after a .env re-run, and three smaller fixes Dream patterns drains a backlog larger than the write cap, one --json document after a .env re-run, and two smaller fixes Nov 18, 2026
@capy-ai capy-ai Bot added the full-ci Maintainer-only: run the full Test and E2E suite on this PR head label Nov 18, 2026
@github-actions github-actions Bot removed the full-ci Maintainer-only: run the full Test and E2E suite on this PR head label Nov 18, 2026
garrytan added a commit that referenced this pull request Nov 18, 2026
garrytan added a commit that referenced this pull request Nov 18, 2026
@capy-ai
capy-ai Bot marked this pull request as ready for review November 18, 2026 22:17
@capy-ai
capy-ai Bot merged commit 0ea0f10 into master Nov 18, 2026
221 of 222 checks passed
capy-ai Bot added a commit that referenced this pull request Nov 18, 2026
…t iMessage sending starts off (#9755)

The release notes for #9723 now say that two routes still send text to the embedding provider until #9754 lands, as #9724 corrected. The notes for #9729 now say that upgrading installs nothing on the Mac and that sending stays off until the owner turns it on there.
Why: the one-line release notes come from each fragment's first line, and both first lines said more than the change does.
Nothing to do: this changes only two changelog fragments' first lines; no code changes.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: garrytan <garrytan@gmail.com>
@garrytan garrytan mentioned this pull request Nov 19, 2026
capy-ai Bot added a commit that referenced this pull request Nov 19, 2026
Publishes gbrain v0.60.741.0 from master e50f391, folding the 12 changelog fragments landed since v0.60.740.0.
In it: embedding_disabled stops every route that still sent text to the embedding provider, including reindex work already queued or running (#9723, #9754); the Mac helper can send a one-to-one iMessage for the owner's agent, with nothing installed by upgrading and sending off until the owner turns it on (#9729); duplicate people and companies can be confirmed or rejected (#9701, #9732); the owner's remote credential reads what the local CLI reads (#9707); calls imported before attendee scoping can be fixed with a preview (#9679); the Rust storage engine ships as a library that nothing selects yet (#9688, #9731); plus two small-fix waves (#9710, #9724).
This commit changes only version files, CHANGELOG.md, the upgrade-notice rows and their generated table, and removes the folded fragments.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: garrytan <garrytan@gmail.com>
@capy-ai
capy-ai Bot deleted the capy/gbra-633-small-fix-wave-2 branch November 21, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant