René's URL Explorer Experiment


Title: fix(knowledge): preserve live document processing during recovery by waleedlatif1 · Pull Request #7993 · simstudioai/sim · GitHub

Open Graph Title: fix(knowledge): preserve live document processing during recovery by waleedlatif1 · Pull Request #7993 · simstudioai/sim

X Title: fix(knowledge): preserve live document processing during recovery by waleedlatif1 · Pull Request #7993 · simstudioai/sim

Description: Summary Extend the existing recovery guard with bounded database and cancellable Trigger checks, preserve work when status is unknown, and recheck the full observed generation before resetting it. Apply the same protection to scheduled recovery, connector sweeps, manual retry, and legacy queue redelivery. Add sanitized OCR response and Google token-transport diagnostics without changing provider retries, permission checks, or public errors. Type of Change Bug fix Testing 912 focused unit tests and 44 disposable PostgreSQL/Redis integration tests passed, including queue delays, generation races, legacy upload redelivery, durable delivery, lifecycle guards, SDK request cancellation, database acquisition deadlines, and diagnostic redaction. Full monorepo type-check, lint and lint:check, 47 audits, API boundary validation, block registry and docs-manifest checks passed. Cleanup and final independent reviews completed. No schema migration is required. Live verification after deployment remains necessary; this does not reset exhausted attempts or resolve provider access and database infrastructure failures. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Extend the existing recovery guard with bounded database and cancellable Trigger checks, preserve work when status is unknown, and recheck the full observed generation before resetting it....

X Description: Summary Extend the existing recovery guard with bounded database and cancellable Trigger checks, preserve work when status is unknown, and recheck the full observed generation before resetting it....

Opengraph URL: https://github.com/simstudioai/sim/pull/7993

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a55450de-93fc-5353-1def-d992e987d3d7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBF9C:9464C:14B3432:1C3DDA8:6AFB75D0
html-safe-nonce00c038d5fc3d26fb5e96c006181ee87de37369ac2716a8e55b55c079941abf49
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjlDOjk0NjRDOjE0QjM0MzI6MUMzRERBODo2QUZCNzVEMCIsInZpc2l0b3JfaWQiOiI4MDExNjAwMDI0NTY5NjA3NjMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf45af2f50ec317953f7a47b07b7c79843b9fe3f9e1fc9424fdf27f6b49e9faff
hovercard-subject-tagpull_request:4574307861
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/7993/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Extend the existing recovery guard with bounded database and cancellable Trigger checks, preserve work when status is unknown, and recheck the full observed generation before resetting it....
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2e8872b770cc4d5d0cc1f2026afab747a268e2ce
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/7993/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7993%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7993%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/7993/files
Reloadhttps://github.com/simstudioai/sim/pull/7993/files
Reloadhttps://github.com/simstudioai/sim/pull/7993/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests201 (201)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
codex/processing-recovery-diagnosticshttps://github.com/simstudioai/sim/tree/codex/processing-recovery-diagnostics
Conversation 26 https://github.com/simstudioai/sim/pull/7993
Commits 4 https://github.com/simstudioai/sim/pull/7993/commits
Checks 34 https://github.com/simstudioai/sim/pull/7993/checks
Files changed https://github.com/simstudioai/sim/pull/7993/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7993/files
fix(knowledge): preserve live document processing during recovery https://github.com/simstudioai/sim/pull/7993/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/7993/files
254f8c2 fix(knowledge): preserve live document processing during recovery waleedlatif1 Sep 18, 2026 https://github.com/simstudioai/sim/pull/7993/commits/254f8c2e22666f63707a99e16b7aec97a056f819
6553135 fix(knowledge): recover abandoned redelivery and cancel liveness requ… waleedlatif1 Sep 18, 2026 https://github.com/simstudioai/sim/pull/7993/commits/655313546ab175a79d2f2a589ec9777b90c5a7d9
e27c6b5 fix(knowledge): fence recovery against concurrent protection waleedlatif1 Sep 19, 2026 https://github.com/simstudioai/sim/pull/7993/commits/e27c6b52d8c1369a952720d52aa951fe70a4be25
f211b90 fix(knowledge): bound recovery database checks and sync staging waleedlatif1 Sep 19, 2026 https://github.com/simstudioai/sim/pull/7993/commits/f211b9086082ff35da1ea5cc68c55f9e43f91c03
Clear filters https://github.com/simstudioai/sim/pull/7993/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7993/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7993/files
client.test.ts https://github.com/simstudioai/sim/pull/7993/files#diff-a45fa38f52cf61c2cf2012f94c91076223d19000415e5e3ce92889be4ecd7379
client.ts https://github.com/simstudioai/sim/pull/7993/files#diff-6a4c5e285f96d0a930e4826853fab09995a86437c64784e173879aae7ca31d7b
error-diagnostics.test.ts https://github.com/simstudioai/sim/pull/7993/files#diff-7643a05d4b5c7b716b0200dd0876b8c380526c20808454b19172e806aed0c59d
error-diagnostics.ts https://github.com/simstudioai/sim/pull/7993/files#diff-150454fdb168067e90e344a4f93c7a472eb5344d26b023f82457c5186043320c
stored-document-recovery.integration.ts https://github.com/simstudioai/sim/pull/7993/files#diff-7163ab8c4dbf1e9f6bfc6a789516964647d039d52fe966b75264ac0e8c1152f6
sync-primitives.ts https://github.com/simstudioai/sim/pull/7993/files#diff-f03702ab1eda626483984539879fd0475efc6ee2b6bf9c1df86cca4ead80a1fb
document-processor.ts https://github.com/simstudioai/sim/pull/7993/files#diff-caef18c7f5680f8ad0ec1e40b90e7635fe8f182b55d4fd20ef78fbe881f11205
pdf-ocr-triage.test.ts https://github.com/simstudioai/sim/pull/7993/files#diff-d93c6c0c2f53dbf88d4a592072609bfbef74f8b0c7a5189ac6818b2d5e1eee7e
processing-queue.test.ts https://github.com/simstudioai/sim/pull/7993/files#diff-61f9b64ff566f2114b69c46afe5ee47845d13fc0758de1de3797e5322c2b1fad
processing-recovery-queue-transport.test.ts https://github.com/simstudioai/sim/pull/7993/files#diff-96ce3c2c328a1be687ca17d9fe32cb35e90262a40971f7d5077d01cf7b2635e1
processing-recovery-queue.test.ts https://github.com/simstudioai/sim/pull/7993/files#diff-2bf36c02271fe4ad5a2a99b27d55a689e648fe8646f9521e3d1fc81724704609
processing-recovery-queue.ts https://github.com/simstudioai/sim/pull/7993/files#diff-60fc0eb28565acdb16392bff1fd54c3e89707beb2cfa7d3f83c0d27eae14c3db
processing-recovery.ts https://github.com/simstudioai/sim/pull/7993/files#diff-2f6f9ad334323675ccb3ac6e09f90845c0531ee9a3236de15e951ffdeae56632
retry-processing-grace.test.ts https://github.com/simstudioai/sim/pull/7993/files#diff-24e9b3a40786dff73fbb7dc3d959893039829339609677b1b55c06fd4f2ccddd
service.ts https://github.com/simstudioai/sim/pull/7993/files#diff-12adff6ec055d413ec20f1debed4ca207b994d23df6de9aa4ef79bf47f2857b2
google-service-account-transport.test.ts https://github.com/simstudioai/sim/pull/7993/files#diff-b19455a53ad537b06b1341546c6e0ee1d9e0c5767fa3fa9d4c786dac7bde2236
google-service-account-transport.ts https://github.com/simstudioai/sim/pull/7993/files#diff-b13290168dd55b420bd43f3178bda3d874d7d9f408f839b3ab980bc5497497a5
apps/sim/lib/internal/mistral/client.test.tshttps://github.com/simstudioai/sim/pull/7993/files#diff-a45fa38f52cf61c2cf2012f94c91076223d19000415e5e3ce92889be4ecd7379
View file https://github.com/simstudioai/sim/blob/f211b9086082ff35da1ea5cc68c55f9e43f91c03/apps/sim/lib/internal/mistral/client.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7993/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7993/files#diff-a45fa38f52cf61c2cf2012f94c91076223d19000415e5e3ce92889be4ecd7379
https://github.com/simstudioai/sim/pull/7993/files#diff-a45fa38f52cf61c2cf2012f94c91076223d19000415e5e3ce92889be4ecd7379
https://github.com/simstudioai/sim/pull/7993/files#diff-a45fa38f52cf61c2cf2012f94c91076223d19000415e5e3ce92889be4ecd7379
https://github.com/simstudioai/sim/pull/7993/files#diff-a45fa38f52cf61c2cf2012f94c91076223d19000415e5e3ce92889be4ecd7379
https://github.com/simstudioai/sim/pull/7993/files#diff-a45fa38f52cf61c2cf2012f94c91076223d19000415e5e3ce92889be4ecd7379
apps/sim/lib/internal/mistral/client.tshttps://github.com/simstudioai/sim/pull/7993/files#diff-6a4c5e285f96d0a930e4826853fab09995a86437c64784e173879aae7ca31d7b
View file https://github.com/simstudioai/sim/blob/f211b9086082ff35da1ea5cc68c55f9e43f91c03/apps/sim/lib/internal/mistral/client.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7993/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7993/files#diff-6a4c5e285f96d0a930e4826853fab09995a86437c64784e173879aae7ca31d7b
https://github.com/simstudioai/sim/pull/7993/files#diff-6a4c5e285f96d0a930e4826853fab09995a86437c64784e173879aae7ca31d7b
https://github.com/simstudioai/sim/pull/7993/files#diff-6a4c5e285f96d0a930e4826853fab09995a86437c64784e173879aae7ca31d7b
https://github.com/simstudioai/sim/pull/7993/files#diff-6a4c5e285f96d0a930e4826853fab09995a86437c64784e173879aae7ca31d7b
apps/sim/lib/internal/mistral/error-diagnostics.test.tshttps://github.com/simstudioai/sim/pull/7993/files#diff-7643a05d4b5c7b716b0200dd0876b8c380526c20808454b19172e806aed0c59d
View file https://github.com/simstudioai/sim/blob/f211b9086082ff35da1ea5cc68c55f9e43f91c03/apps/sim/lib/internal/mistral/error-diagnostics.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7993/{{ revealButtonHref }}
apps/sim/lib/internal/mistral/error-diagnostics.tshttps://github.com/simstudioai/sim/pull/7993/files#diff-150454fdb168067e90e344a4f93c7a472eb5344d26b023f82457c5186043320c
View file https://github.com/simstudioai/sim/blob/f211b9086082ff35da1ea5cc68c55f9e43f91c03/apps/sim/lib/internal/mistral/error-diagnostics.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7993/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/7993/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7993/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.