← back to Rentv 2026
pr/jobs: fix stale-read in verify-person that deferred LinkedIn corroboration. p is loaded at the top; when a LinkedIn URL is located mid-handler it's written to the DB but the in-memory p wasn't updated, so the corroboration check (site-backed + found_uncorroborated → found_corroborated) read a stale null linkedin_url and skipped a person who should corroborate SAME run — deferring it to a future re-verify that may never run. Now updates local p after locate. Verified logic
5df9e1d2db3731974751cc958983362bccb36b45 · 2026-08-06 00:22:20 -0700 · Steve
Files touched
Diff
commit 5df9e1d2db3731974751cc958983362bccb36b45
Author: Steve <steve@designerwallcoverings.com>
Date: Thu Aug 6 00:22:20 2026 -0700
pr/jobs: fix stale-read in verify-person that deferred LinkedIn corroboration. p is loaded at the top; when a LinkedIn URL is located mid-handler it's written to the DB but the in-memory p wasn't updated, so the corroboration check (site-backed + found_uncorroborated → found_corroborated) read a stale null linkedin_url and skipped a person who should corroborate SAME run — deferring it to a future re-verify that may never run. Now updates local p after locate. Verified logic
---
src/pr/jobs/index.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/pr/jobs/index.js b/src/pr/jobs/index.js
index 968b6337..d21045ca 100644
--- a/src/pr/jobs/index.js
+++ b/src/pr/jobs/index.js
@@ -293,6 +293,11 @@ const handlers = {
const hit = rep.items[0];
if (hit) {
await people.update(pid, { linkedin_url: hit.linkedin_url, linkedin_status: 'found_uncorroborated' }, 'system:verify-person');
+ // Keep the in-memory `p` fresh: the corroboration check below reads p.linkedin_url /
+ // p.linkedin_status. Without this, a JUST-located URL is invisible there (stale read from
+ // the load at the top), so a site-backed person wouldn't corroborate until a future re-verify.
+ p.linkedin_url = hit.linkedin_url;
+ p.linkedin_status = 'found_uncorroborated';
await db.query('UPDATE pr_people SET linkedin_indexed_title=$2, linkedin_indexed_snippet=$3 WHERE id=$1', [pid, hit.indexed_title, hit.indexed_snippet]);
await people.attachEvidence(pid, {
source: { source_type: 'search_api', source_name: 'LinkedIn locate (authorized search)', url: hit.source_url, short_excerpt: hit.indexed_snippet, is_primary_source: false, license_or_usage_note: li.sourceMeta().license_or_usage_note, adapter: 'linkedin' },
← a57db1ed auto-save: 2026-08-06T00:16:57 (7 files) — data/deals-regist
·
back to Rentv 2026
·
pr/jobs: revert cycle-18 verify-person same-run corroboratio a1432cf2 →