Add explanation rules for catches, editable over MCP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4086fa3da3
commit
2437880013
37 files changed
+1867
-37
No files matched your search
@@ -6,6 +6,22 @@ All notable changes to Flypaper are documented in this file. The format follows
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- Explanations for catches: rules in the database (kind `Target`, `ClientInfo` or `Outcome`, regular expression,
|
||||
German plain text, priority, on/off, note, creator) explain what a bot wanted, with which tool and how it ended.
|
||||
Rules are matched when a catch is displayed, so new rules also apply to old catches; per kind the rule with
|
||||
the highest priority wins. Patterns run with `NonBacktracking` and a timeout, are validated and length-limited
|
||||
when saved, and compiled rules are cached until a rule changes. No rules are shipped.
|
||||
- Dashboard: expanded rows of the catch list show „Was ist passiert?“ (or a muted „Unbekanntes Ziel“), the catch
|
||||
filter has „Erklärung: Ohne Erklärung“, and the new page „Erklärungen“ lists the rules with pattern, text,
|
||||
number of matches, on/off switch and delete.
|
||||
- MCP: read-only tools `list_explanation_rules`, `list_unexplained` and `test_explanation_rule`; tools
|
||||
`create_explanation_rule`, `update_explanation_rule`, `set_explanation_rule_enabled` and
|
||||
`delete_explanation_rule` for tokens with write permission.
|
||||
- MCP tokens: write permission is back (switch on the settings page, database column `CanWrite`, new migration).
|
||||
Tokens without it neither see nor can call the write tools. The server description mentions the new tools.
|
||||
|
||||
### Changed
|
||||
|
||||
- Dashboard: the expanded row of the catch list no longer repeats the strategy name, explanation and
|
||||
|
||||
Reference in new issue
Block a user