René's URL Explorer Experiment


Title: smart-search returns "Invocation stopped" on a large store while the worker keeps re-registering · Issue #1593 · rohitg00/agentmemory · GitHub

Open Graph Title: smart-search returns "Invocation stopped" on a large store while the worker keeps re-registering · Issue #1593 · rohitg00/agentmemory

X Title: smart-search returns "Invocation stopped" on a large store while the worker keeps re-registering · Issue #1593 · rohitg00/agentmemory

Description: Measurements taken 2026-10-19 to 2026-10-20 on one macOS machine. No secrets, hostnames, user data or memory content are included here; redacted daemon.log excerpts and the /health functionMetrics block are available on request. Summary ...

Open Graph Description: Measurements taken 2026-10-19 to 2026-10-20 on one macOS machine. No secrets, hostnames, user data or memory content are included here; redacted daemon.log excerpts and the /health functionMetrics ...

X Description: Measurements taken 2026-10-19 to 2026-10-20 on one macOS machine. No secrets, hostnames, user data or memory content are included here; redacted daemon.log excerpts and the /health functionMetrics ...

Opengraph URL: https://github.com/rohitg00/agentmemory/issues/1593

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"smart-search returns \"Invocation stopped\" on a large store while the worker keeps re-registering","articleBody":"\nMeasurements taken 2026-10-19 to 2026-10-20 on one macOS machine. No secrets, hostnames, user data or memory content are included here; redacted `daemon.log` excerpts and the `/health` `functionMetrics` block are available on request.\n\n## Summary\n\nOn a large local store, `POST /agentmemory/smart-search` fails with HTTP 500 `Invocation stopped` after 6 to 12 seconds, even though the daemon log shows the same search finishing with results. The worker connection to the iii engine drops and re-registers every few minutes, which stops in-flight invocations. The same behaviour appeared on 0.9.28 (engine 0.11.2) and on 0.9.30 (engine 0.22.1).\n\n## Environment\n\n- macOS (Darwin 27), Node v24.18.0, run as a launchd service with KeepAlive.\n- agentmemory 0.9.28 with iii 0.11.2; tested again on 0.9.30 with iii 0.22.1, then rolled back.\n- Store: about 2.0 GB, about 9,000 files under the data directory. Roughly 900 sessions and 50 concurrent MCP proxy processes from separate editor sessions.\n- LLM calls go through a local OpenAI-compatible bridge to a Claude model. Consolidation, graph extraction and reflect were enabled, then turned off to cut load.\n\n## What we saw\n\n1. **`smart-search` 500.** `{\"error\":\"Invocation stopped\"}` (0.9.30: `{\"error\":{\"code\":\"invocation_stopped\",...}}`) after 6 to 12 s. The daemon log for the same query shows `Smart search compact {\"results\":5,\"lessons\":5}`. At other moments the same route returns `Function api::smart-search not found` or 404, which matches the worker being between registrations.\n2. **Worker reconnect churn.** `[iii] Reconnecting in ~1000ms (attempt 1)` followed by `Worker registered with ID: \u003cnew id>` repeated; roughly 6 re-registrations in 15 to 80 minutes on a quiet daemon, dozens per hour under load.\n3. **Invocation timeouts.** `mem::lesson-recall` and `mem::reflect` hit the 180 s bound; `state::set` and `state::list` also timed out during graph extraction. `mem::summarize` shows 10,847 failures of 31,854 calls in `/health` functionMetrics.\n4. **`/health` returns 503 when CPU is high** (alert `cpu_critical`), although the daemon is working. A supervisor that polls `/health` will kill a busy but healthy daemon. `/livez` is fine.\n5. **Index persistence warnings after hard kills.** `index persistence: BM25 shard missing` and `vector shard missing` repeat. After the supervisor force-killed the process about every 11 minutes, newly saved memories were stored (`GET /memories/:id` returns 200) but did not appear in search.\n6. **0.9.30 specifics.**\n   - The CLI waits a fixed 15 s for the worker (`waitForAgentmemoryReady(15e3)`), then exits 1. On a store this size the worker needs longer, so the supervisor restarts it in a loop. Raising the constant to 240 s stopped the loop but not item 1.\n   - REST auth is on by default. Older MCP proxy processes that were already running do not send the secret, and the memory tools then return empty results instead of an error, which looks like \"no memories\" rather than \"unauthorized\".\n   - `MAX_OBS_PER_SESSION=200` moves captures from long sessions to dead letters (`Session observation limit reached (200)`).\n\n## What we tried\n\n- Replaced `/health` with `/livez` in the supervisor: restarts stopped, search still fails.\n- Disabled consolidation, graph extraction and reflect: load dropped, search still fails.\n- Upgraded 0.9.28 to 0.9.30 (engine 0.22.1): search still fails; worker restarted 8 times in 40 minutes; rolled back.\n\n## Questions\n\n1. Is `invocation_stopped` expected when the worker re-registers mid-call, and what makes the worker connection drop on a busy event loop (ping timeout, message size, something else)?\n2. Is there a setting to raise the worker-ready wait, the invocation timeout, or the engine ping interval?\n3. Can the MCP proxy surface a 401 or 500 to the caller instead of returning an empty result list?\n4. Can `/health` report 200 with a degraded flag instead of 503 under load, so supervisors do not kill a working daemon?\n\n## Possibly related\n\n#1378 (worker heartbeat death loop on a large store), #866 (15 s MCP proxy call timeout on large stores), #890 (`Invocation stopped` on large payloads). The behaviour here may share a cause with #1378; happy to test a fix.\n","author":{"url":"https://github.com/chanfox7","@type":"Person","name":"chanfox7"},"datePublished":"2026-10-20T06:23:09Z","url":"https://github.com/rohitg00/agentmemory/issues/1593"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e04de531-5424-85fc-681d-9d4e789200e3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD0C0:30BF61:B838C:EF283:6AEBDF83
html-safe-noncea1ed36553ceaa06e26022d93bb1e74d5d30239a86a6e5eb9cb4b9d377739ef8e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEMwOjMwQkY2MTpCODM4QzpFRjI4Mzo2QUVCREY4MyIsInZpc2l0b3JfaWQiOiI0MTM2NjEyOTQwMjE3MDQ4OTYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd6331b8281da58b1c50e3d07758df2982f79a6f1cbbcea8b22357ee4ca753ac3
hovercard-subject-tagissue:5936990174
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rohitg00/agentmemory/1593/issue_layout
twitter:imagehttps://opengraph.githubassets.com/49e08098faa99d6ab3e02d69234e1ac907cf74515e7fd5b8dcf8eab11b9a979c/rohitg00/agentmemory/issues/1593
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/49e08098faa99d6ab3e02d69234e1ac907cf74515e7fd5b8dcf8eab11b9a979c/rohitg00/agentmemory/issues/1593
og:image:altMeasurements taken 2026-10-19 to 2026-10-20 on one macOS machine. No secrets, hostnames, user data or memory content are included here; redacted daemon.log excerpts and the /health functionMetrics ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechanfox7
hostnamegithub.com
expected-hostnamegithub.com
None701f7e3aecc56e7594e73fa7b7e1483af74322a67f7038be453d0feb05e86e77
turbo-cache-controlno-preview
go-importgithub.com/rohitg00/agentmemory git https://github.com/rohitg00/agentmemory.git
octolytics-dimension-user_id48523873
octolytics-dimension-user_loginrohitg00
octolytics-dimension-repository_id1166408297
octolytics-dimension-repository_nworohitg00/agentmemory
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1166408297
octolytics-dimension-repository_network_root_nworohitg00/agentmemory
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release12d1048a3491dd63e4193b2937cf72f1c24a2a52
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/rohitg00/agentmemory/issues/1593#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frohitg00%2Fagentmemory%2Fissues%2F1593
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%2Frohitg00%2Fagentmemory%2Fissues%2F1593
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=rohitg00%2Fagentmemory
Reloadhttps://github.com/rohitg00/agentmemory/issues/1593
Reloadhttps://github.com/rohitg00/agentmemory/issues/1593
Reloadhttps://github.com/rohitg00/agentmemory/issues/1593
rohitg00https://github.com/rohitg00
agentmemoryhttps://github.com/rohitg00/agentmemory
Codehttps://github.com/rohitg00/agentmemory
Issues238 (238)https://github.com/rohitg00/agentmemory/issues
Pull requests252 (252)https://github.com/rohitg00/agentmemory/pulls
Discussionshttps://github.com/rohitg00/agentmemory/discussions
Actionshttps://github.com/rohitg00/agentmemory/actions
Projectshttps://github.com/rohitg00/agentmemory/projects
Security and qualityhttps://github.com/rohitg00/agentmemory/security
Insightshttps://github.com/rohitg00/agentmemory/pulse
https://github.com/rohitg00/agentmemory
New issuehttps://github.com/login?return_to=https://github.com/rohitg00/agentmemory/issues/1593
New issuehttps://github.com/login?return_to=https://github.com/rohitg00/agentmemory/issues/1593
smart-search returns "Invocation stopped" on a large store while the worker keeps re-registeringhttps://github.com/rohitg00/agentmemory/issues/1593#top
https://github.com/chanfox7
chanfox7https://github.com/chanfox7
on Oct 20, 2026https://github.com/rohitg00/agentmemory/issues/1593#issue-5936990174
#1378https://github.com/rohitg00/agentmemory/issues/1378
#866https://github.com/rohitg00/agentmemory/issues/866
#890https://github.com/rohitg00/agentmemory/issues/890
#1378https://github.com/rohitg00/agentmemory/issues/1378
Sign up for freehttps://github.com/signup?return_to=https://github.com/rohitg00/agentmemory/issues/1593
Sign in to commenthttps://github.com/login?return_to=https://github.com/rohitg00/agentmemory/issues/1593
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.