Expert: Beagle KB-guided user-message rewrite engine #17
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/llm-log#17
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: #8
Depends on: #10, #12
Goal
Create Beagle, an expert system that rewrites user requests using an advanced symbolic KB built from observed user messages, task context, project facts, classifications, prior corrections and explicit durable rules.
Beagle is not a generic prompt-polisher. It is a provenance-preserving symbolic rewrite engine.
Core contract
Input:
Output:
rewrite_idlinked to original message/taskThe original message is always retained verbatim.
Modes
offNo Beagle evaluation.
shadowRun Beagle, persist proposal/provenance, but send the original request unchanged. This is the initial production mode and is required for dataset/evaluation work.
applyAfter separate conformance evidence, allow the configured rewrite boundary to submit the rewritten request downstream while retaining both original and rewritten forms in the corpus.
No hidden rewrite mode.
Advanced KB
The KB should support reusable rules/facts such as:
Rules should be inspectable/versioned Prolog, backed by Tek9 facts/provenance. Do not convert raw conversation history into unconditional rules.
Rewrite behavior
Beagle may:
Beagle must not:
Learning/evolution
Beagle can improve from outcome data, but rule creation/promotion must remain explicit and versioned. The fail/success expert may provide evidence about rewrite quality; it does not automatically promote arbitrary generated rules to trusted production policy.
Track rewrite -> outcome correlations so later research can identify useful/harmful rules.
RED-first shadow-mode acceptance
Create fixtures proving baseline lacks KB-guided rewrites and that naive rewriting would lose constraints. Required cases should include:
Apply-mode gate
Do not enable
applyby default in the same slice as initial Beagle implementation. Apply mode requires a separate RED-first conformance gate proving:Analysis
Expose queries for:
This is intended to become a dataset for improving the symbolic rewriting KB itself.