Skip to content

Docs: change the bot and matcher lists at boot - #92

Merged
czj merged 1 commit into
mainfrom
claude/magical-noether-qcvl8n-docs-lists
Nov 29, 2026
Merged

czj merged 1 commit into
mainfrom
claude/magical-noether-qcvl8n-docs-lists

Conversation

@czj

@czj czj commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

The README says the matcher and bot lists can change at runtime, but every detection reads them without a lock. On JRuby and TruffleRuby, whose threads run in parallel, a Bot.matchers << or Bot.bots.merge! while requests run can raise or go unseen; even on CRuby, a merge! can collide with a thread building the keyword trie from the same Hash.

The README's "Your own rules" and the Bots page now say to make those changes at boot, in an initializer, and that Agentry's own caches are safe to share since #90.

  • Docs only: no code change; locking every list read would slow each detection for a change apps make once.
  • llms-full.txt: regenerated with rake docs:llms.

Generated by Claude Code

Detections read them without a lock: a change while requests run can
raise or go unseen, above all on JRuby and TruffleRuby.

Assisted-by: Claude [Claude Code]
@czj
czj merged commit 4601f1f into main Nov 29, 2026
19 checks passed
@czj
czj deleted the claude/magical-noether-qcvl8n-docs-lists branch November 29, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant