Repository navigation
Link companies that share an id automatically, and keep a rejected pair apart after renames and moves (GST-3127) - #9839
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>
…py/company-auto-link
…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>
…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>
…e owner identity branch
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # src/core/schema-migrations/registry.generated.ts # test/fixtures/goldens/migrations/records.json
Migrations renumbered (filename, export name, version literal): v329 -> v330 src/core/schema-migrations/v330-entity-identity-reviews-evidence.ts Golden regeneration: migrations/records.json follows the renumbered versions. 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>
…ys just before search_mode Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…erage check Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.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.
Companies that are plainly one company across sources now link on their own after each sync, and
gbrain dedupe rejectkeeps a wrong pair apart even after a rename or a move. People are never linked automatically.Why: Garry approved automatic company linking (A1) and its stored data (E1 to E3); this is GST-3127 PR 2, the rebuild that closes the findings that pulled the first version out of #9762.
Reader: this branch contains #9831 (PR 1), which lands first. Its migration is written as v329, which master has since taken; it is renumbered to the next free number before landing.
What changed
clean, its pages share a LinkedIn company page or their own site's domain (a site value with no URL path), and no two name different countries. Ids are read from links with query strings, fragments and trailing slashes too. The rows areentity_identitieswithestablished_by: dedupe:auto(entity iddedupe-auto/<decision id>), database only; rankings and enrichment count them once. Pages in a group a person linked or confirmed, pages in a "same" decision and pairs a "different" decision covers are never linked; on a brain that keeps decisions in git, a group with an owner-only or restricted page is not linked and a host without the checkout does not sweep.gbrain dedupe reconcileand a first sync sweep every company. Pages written bygbrain import,put_pageorcapturelink at the next sync or reconcile.applyIdentityDecisionswrites it in the decisions' locked transaction, in set-based statements, and skips a group whose pages changed or joined another group since.evidence:) and in a newentity_identity_reviews.evidencecolumn, so a rebuilt database keeps it. A page with no strong key gets no fingerprint, so rejecting it never hides an unrelated pair that only shares a name. Rejects recorded before this get fingerprints from their pages at the next sync or reconcile (database only).gbrain dedupe rejectalso accepts an automatic group's identity id or its group id.entity_identity_unlinkrefuses a page the sync linked (as it already did for confirmed groups), changes nothing, and offersgbrain dedupe reject <entity id>instead, since a removed link would come back at the next sync.listEntityKeyRowsrows (page id, generation, created_at, identity); the deletion inventory lists the new column.Measurements
Tests
test/entity-company-auto-link.test.ts(new, PGLite and Postgres, 18 cases): linking and main page, namesakes with different domains or countries, names that differ, contact-only pairs, a domain that is a page on another site, ids in links with query strings, fragments or trailing slashes, a person page carrying a company's LinkedIn page, reject then rename, move and rebuild from git, a keyless reject next to an unrelated same-name pair, reject by group id, stale plans, hand move versus refused unlink, confirm takeover, a later page that splits a group, deleting the main page of a three-page group, one-page cleanup, fingerprint backfill, rankings counting a linked company once, a folder source without git, owner-only and no-checkout on a git brain.Agent notes
GBRA-631 for GBRA-108; lands by hand after #9831.
dedupe reconcile --jsonomits the sweep result; the migration's comment says "strict name" and theentity_identity_linkop description still says manual-only (the comment goes with the renumber); two-hop chains are not followed; a host with no checkout and no decisions; the fingerprint backfill runs again on each sync.listPagesand the apply's cleanup; no baseline row was raised.identity_link_owned_by_dedupetext, which now covers the automatic unlink refusal (error-codes guide regenerated); the re-audit updated the key-files entries and endedupdatedwith no blockers. Thesrc/core/entity-identity.tsheader comment still says no auto-matching.Agent notes