Repository navigation
Fix three nightly flakes and five small bugs, three from outside reports (GBRA-633) - #9710
Merged
Merged
Conversation
…e proposal (GST-2904) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…og fragment Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ges work Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d the stress gate's shard-limit error names its own reason Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
An already-removed full-ci label (HTTP 404) no longer turns the dispatch job red after both full runs were dispatched; any other removal error still fails it. Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/adversarial-native#1 reader=adversarial-native 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>
… written (#9681) A managed connector save of the sync position is staged with the page writes it covers and publishes once they commit, so a sweep that outlives its wait budget keeps its progress. Reported by @PropFunderBrett (#9681). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…lled-walk test wait for batch two A Gmail backfill that banks a later position no longer drops the freshness an earlier, superseded save carried, so the source stops looking stale once its writes are durable. The killed-walk test now ends batch three only after batch two's page writes commit, so a slow runner cannot leave the floor at batch one. Review-Finding: p1/red-team#3 reader=red-team Review-Finding: p1/specialist-batched#1 reader=specialist-batched Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ing held in flight When a run reaches the same position as a still-pending save that an earlier, killed run admitted, it no longer adopts that save as its own. Its later page writes would carry the old cursor and be refused once the other run's save published. The run stops as it did before #9681, and the next run resumes once that save commits. Review-Finding: p1/red-team#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
A run now lists the unfinished page writes it inherited from an earlier run beside its own when it stages a cursor save. If one of those writes fails, the cursor stays behind it instead of moving past content that never landed. Review-Finding: p1/outside-voice#1 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ss (#9681) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The manifest takes each job at its newest attempt, marks files that passed only on the re-run, and tree.json lists every file with rerun_files; a re-run pass never clears a failure. 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>
…quest ids (#9681) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…g-gmail-backfills-on
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…un-keeps-full-evidence
The stdio boot-deadline tests measured real wall time, so a stalled CI runner could push a phase past its window and fail them. serve now takes an optional boot clock in its options (default: Date.now and unref'd timers), and the three window tests drive it by hand. Fails 2/2 with an 80 ms stall before, passes after. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The owner's lease was two 200 ms heartbeats, so one late renewal on a busy runner handed it to the second resident and the test saw the wrong owner. The test that checks ownership now gives the first owner a 60 s heartbeat. Fails with a 700 ms renewal delay before, passes after. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
A held move's planning reads waited without a bound for a pool connection, so reads queued on the same config lock could hold it past its deadline (5015 ms against a 4000 ms limit, as in the nightly). The reads now carry an abort signal for the remaining time and a timeout maps to the existing preparation-deadline error. The test saturates the pool before timing; its bound is unchanged. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
test/e2e/doctor-hot-checks-golden.test.ts writes a golden that regen:all never regenerated, so it went stale silently. It is now in the Postgres goldens list, and a test checks that every golden only a Postgres E2E file writes is listed. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The hint about turning shared-source reads back on printed for every narrowing, including one that set --read-shared off on purpose. It now shows only when shared reads were off before and after and the token still reads some source. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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>
|
😎 This pull request was merged. |
Drop the #9692 consolidation restore from this wave: on a managed brain a consolidate closes fenced members in the entity page's facts fence, and a database-only restore would reopen them in the database while the page still holds them closed. Managed restores keep refusing, as before. The synopsis frontmatter check uses the indexable containment form, and a held move's planning reads share one deadline signal. Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/red-team#2 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>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This was referenced Nov 18, 2026
…a-633-small-fix-wave
Closed
This was referenced Nov 18, 2026
garrytan
pushed a commit
that referenced
this pull request
Nov 18, 2026
…9707, small-fix wave #9710) into rust-store The three new BrainEngine members (listIdentityDecisions, listRestrictedIdentityMembers, applyIdentityDecisions) are classified 'pages' in the Rust member table and refuse with a typed engine_capability_missing; the pages capability was already unreported. Goldens, coverage table and module-size ceilings re-summed at the merge.
This was referenced Nov 18, 2026
Merged
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>
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.
Fixes three tests that turned the nightly red on busy runners (#6040) and five small bugs, three of them from outside reports, each rebuilt on master with a test that fails first.
Why: a green nightly, and outside reports with a real repro fixed quickly.
Nothing to do: no settings, defaults, migrations, CLI flags or MCP fields change.
What changed
Details
Nightly flakes (#6040)
test/serve-stdio-lifecycle.test.tsdrive a manual clock through a new optionalbootClockin serve's options, so a stalled runner can't push a phase past its window. Failed 2/2 with an 80 ms stall before, passes after.test/pathological/s-notifier-residents.test.tsgives the first owner a 60 s heartbeat where it checks ownership, so one late renewal no longer hands the lease to the second resident. Failed with a 700 ms renewal delay before, passes after.Our fixes
bun run regen:allnow rewrites the doctor hot-checks golden, and a test checks that every golden only a Postgres E2E file writes is listed.gbrain auth rescopeshows the hint about--read-shared ononly when shared reads were off before and after and the key still reads a source.Outside reports, rebuilt from the report text
gbrain reindex --synopsissweeps pages that choose the synopsis tier in their own trusted frontmatter, instead of saying "Nothing to do". Reported and first fixed by @Masashi-Ono0611.embedding_configuration; error body is discarded #9696: Ollama's "connection refused" 4xx while its runner restarts is a retryable error. Reported by @benswinney; first fixed by @Masashi-Ono0611.add_linkrecords a Chronicle decision only when an automatic extraction is pending. Reported by @frxiaobei; first fixed by @Masashi-Ono0611.Supersedes #9697
Supersedes #9685
Supersedes #9639
Why
Details
The nightly (#6040) failed on timing, not on product bugs: two tests measured wall-clock time and one bound raced a saturated pool. Each fix was proven with a forced probe that fails before and passes after. The outside fixes are small, have a repro on master, and change no defaults.
Blast radius
Details
@>), CLI wordingRuntime code:
serve.ts(test-only clock seam, default unchanged),held-fact-move.ts(planning read bound),synopsis-sweep.ts,reindex-synopsis.ts,ai/errors.ts,chronicle/ledger.ts,auth-read-shared.ts. No migration, no config key, no new error code.Documentation
Status: current, no documentation edits needed.
Scope: 20 selected files (19 committed, 1 staged changelog fragment) on capy/gbra-633-small-fix-wave against master a37d6f7. Changes covered: the synopsis reindex honoring trusted page frontmatter (#9683), Ollama connection-refused errors now retryable (#9696), add_link Chronicle decisions only when an automatic extraction is pending (#9636), the auth rescope shared-read hint, the held-move planning deadline covering the wait for a pool connection, regen:all regenerating the doctor hot-checks golden, and test-only clock seams.
Documentation health:
Coverage debt: the per-page
contextual_retrieval: per_chunk_synopsisfrontmatter override has no dedicated user doc. This gap existed before this change. Diagram drift: none.Dropped
.serial.test.tsfile shares a bun process with other files:test/cycle-patterns-timeline-appends.serial.test.ts's top-levelmock.modulereplaces the AI gateway for every later file. The serial runner gives each serial file its own process, so CI never sees it.node_modulesand fails withCannot find package 'js-yaml'after the install dir is restored without dependencies #9665 (install path), fix(purge): re-published derived rows replace their derivation input edges (#9653) #9655/Purging a retired atom soft-deletes concepts that were already re-synthesized without it (derivation_inputs edges are never replaced) #9653 (over 40 lines, not reproduced, purge path), fix(claude-cli): kill a child that ignores SIGTERM after an aborted call (#9553) #9557 (61 lines): outside the small-fix bar.Agent notes
Refs #9636
Refs #9639
Refs #9681
Refs #9683
Refs #9685
Refs #9692
Refs #9693
Refs #9696
Refs #9697
Thread GBRA-633. /ship review: pass 1 full panel (specialists, red team) found 1 blocking issue (#9692, dropped) and 3 informational ones (2 fixed: indexable frontmatter predicate, one deadline signal per held-move view; 1 noted: doctor's synopsis_tier_coverage still ignores the frontmatter-only tier). Pass 2 on the fix range, then the voices (native adversarial, second-model review, targeted money/auth): no blocking findings. The second-model review flagged the #9692 revert as removing managed restores; that is master's behaviour, so it is not a regression. Documentation audit: current.
The full Test and E2E runs passed at 582bb58 (tree 7f73e585, the same tree as this head). The /ship lanes and the remote gate carry from them; macOS validation run 44289986913 passed at this head.
Agent notes