ARADR-004: Expert-system substrate — Tek9 + Common Lisp Prolog shim #7
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#7
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?
Goal
Add a first-class expert-system plane to
llm-logfor symbolic rewriting, request analysis, task-cost accounting, and success/failure dataset labeling.The expert system is not embedded as ad-hoc Python conditionals. The durable architecture is:
Ownership boundary
llm-logproxy remains transport/capture infrastructure. It forwards normalized events into the expert host and consumes typed results; it must not become a second rule engine.Tek9 is already a Common Lisp embedded document+graph DB on LMDB, so the expert host should keep one Tek9 environment open for its lifetime and use indexed documents + graph edges rather than duplicating the KB in Python.
First expert families
This epic owns four initial experts, each tracked separately:
Common data model
Start with stable IDs for:
eventconversationmessagerequestresponsetasksubtaskprovider-calltool-callrewriteclassificationoutcomeevidencerule-versionkb-revisionRelationships belong in Tek9 graph storage, e.g.:
Prolog shim requirements
Research/design a Common Lisp shim that exposes typed operations such as:
The shim should prefer a supervised persistent SWI-Prolog process/session over spawning a new interpreter per query. The transport must be explicit, typed, bounded, and testable. Do not allow model-controlled strings to become arbitrary Prolog callable terms.
Dataset principle
Every derived label/rewrite/outcome must retain:
This is required so later fine-tuning/evaluation datasets are reproducible instead of becoming a pile of unlabeled guesses.
Auto-ARADR work
llm-logevent/frame schemas and current Prolog classifier.First implementation slice
Do not implement all experts at once. First realization should establish only the reusable substrate:
llm-log event -> CL -> Tek9/Prolog -> typed resultThen implement each expert independently behind the same boundary.
RED-first acceptance for substrate
Before production implementation, tests must fail proving the baseline lacks:
Non-goals for the substrate slice
Closed as duplicate. Canonical corrected epic is #8; #20 supersedes the older Python-owned transport architecture described here.