[P1] Add configurable error and agent-loop detector registry #130
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/prolog-rlm#130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #126
Depends on: #127 and #128. Integrates with existing recursion guards, traces, conversation/agent events, verification and repair APIs.
Goal
Create a detector registry where trusted
config.prologmay define/register executable Prolog detectors for structured errors, repetition, agent loops, and lack of progress.The runtime should not force every detector into a static built-in catalog. The user's XDG config is a programmable extension environment. Trusted project config may register project-scoped detectors only after project trust.
Detector contract
Each registration has stable id/schema/version, supported observation kinds, bounded state requirements, priority/scope, config-generation ownership, sanitized metadata, and a trusted Prolog predicate.
Detector inputs are structured runtime observations/events. Outputs are structured decisions such as
clear,suspected,detected, orindeterminate, with reason/evidence/confidence and a bounded recommended response class.A detector may compute arbitrary trusted Prolog logic, but it does not by itself bypass the runtime that owns cancellation, repair, authority, effects, capabilities, or verification.
Initial loop/non-progress coverage
Error detection/classification
Support trusted classifiers for provider, parsing/structured-output, tool, authority, effect, verification, project/source, and agent-runtime failures. Preserve original structured errors and provenance; classification augments rather than replaces evidence.
Acceptance
config.prologcan define and register a detector predicate.Child of #126; closed with the epic under the restored canonical boundary (#141, 2026-08-31): AgentProlog product configuration/UX belongs to lost-rob0t/agentProlog, and this is not a current prolog-rlm gap blocking a coding agent. Re-file in the product repo if still wanted.