RED: seed Tek9/Common Lisp/Prolog expert runtime #18
No reviewers
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!18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rage/10-expert-runtime-red"
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?
Starts #10 under #8 and consumes the zero-Python correction in #20.
Canonical research/design
research/LLM-LOG-RESEARCH-004-symbolic-expert-plane.orgresearch/LLM-LOG-RESEARCH-005-persistent-prolog-supervisor.orgresearch/LLM-LOG-RESEARCH-006-runtime-reconciliation.orgresearch/LLM-LOG-RESEARCH-007-expert-service-transaction.orgresearch/LLM-LOG-RESEARCH-008-reasoner-crash-recovery.orgresearch/LLM-LOG-RESEARCH-009-reasoner-timeout.orgresearch/LLM-LOG-RESEARCH-010-reasoner-result-validation.orgresearch/LLM-LOG-RESEARCH-011-zero-python-rewrite.orgresearch/LLM-LOG-RESEARCH-012-common-lisp-transport-red.orgresearch/LLM-LOG-RESEARCH-013-common-lisp-red-runner.orgresearch/LLM-LOG-RESEARCH-014-hosted-common-lisp-red-execution.orgresearch/LLM-LOG-RESEARCH-015-http-fidelity-black-box-red.orgresearch/LLM-LOG-RESEARCH-016-http-bootstrap-green.orgresearch/LLM-LOG-RESEARCH-017-immutable-http-capture-redaction.orgresearch/LLM-LOG-RESEARCH-018-single-writer-recorder-crash-contract.orgImplementation/test evidence is kept separately under
evidence/.Architecture
Existing expert substrate
Retained #10 behavior includes persistent supervised SWI-Prolog, closed named operations, Tek9 event projections/KB revision, idempotent replay with explicit contradiction conflicts, bounded point retrieval, crash/timeout/malformed-result handling, and provenance-bearing typed results. No Tek9 API change is currently justified.
RED → GREEN ordinary HTTP
Authoritative pre-implementation RED:
0359d92e4e637d888079ddf55e72d2c9124de81a33282707089The bounded Common Lisp HTTP implementation is GREEN for lifecycle, provider selector routing, method/path/query fidelity, end-to-end request headers, binary bodies with NUL, upstream status, and distinct duplicate
Set-Cookieresponse fields.Evidence:
evidence/LLM-LOG-EVIDENCE-002-http-fidelity-green.org.RED → GREEN immutable finite-HTTP capture/redaction
Canonical design:
research/LLM-LOG-RESEARCH-017-immutable-http-capture-redaction.org.Valid pre-implementation RED:
31426657f5bb68871e66a723cde33ce4a845a4bc33287657011Implementation:
e3830e76a4713fa331c67e71739453247a9c8a01GREEN:
33287732659, job991937804621041c2267a8edc9a2a94f86bbdb79a3e289ca629also GREEN in run33287815155Evidence:
evidence/LLM-LOG-EVIDENCE-003-http-capture-red-green.org.Recorder concurrency/crash RED
Canonical design:
research/LLM-LOG-RESEARCH-018-single-writer-recorder-crash-contract.org.Executed pre-implementation RED:
b0773366f830424ce49ab955ab22860a49803dec33289740093, job99199157484nix build -L .#checks.x86_64-linux.common-lisp-transport-contractAll prior HTTP and immutable-redaction contracts remained GREEN. The new recorder concurrency and crash contracts failed for the intended missing production boundary:
SIMPLE-ERROR: Missing recorder contract function LLM-LOG-EXPERT::START-RECORDEREvidence:
evidence/LLM-LOG-EVIDENCE-004-recorder-concurrency-crash-red.org.No recorder production mutation followed this RED yet. The selected design requires a Sento/cl-gserver single-writer actor and atomic staging→committed publication. Reproducible Sento/cl-gserver consumption through the pinned Nix/ASDF build must be established before implementation; do not substitute ad-hoc shared locking merely to make the contract GREEN.
Still RED/not implemented
This PR remains draft. Current work does not claim:
lost-rob0t/dotfilesremains consumer-only and pinned to merged llm-log main with~/Documents/AI/proxy; PR #5 remains a separate configuration transaction.Do not merge until the exact final head is GREEN through the remaining #10 gates, required discussions/reviews are satisfied, and Python migration debt is removed.
Next bounded slice landed on this existing transaction:
26df268implementsllm_log.expert_protocol; the exacttests/test_expert_protocol.pycontract was reproduced locally with Python 3.13 and is 6/6 green.e886999documents the Common Lisp expert-runtime ownership boundary underexpert/README.org.1b194a4,2da0602,40b5f54establish thellm-log-expertASDF/package/Tek9 lifecycle skeleton.start-expert-hostowns one reusable Tek9 environment; no per-query Prolog process behavior was introduced.lost-rob0t/tek9#7: its current flake has a dev shell but no consumable package output, so llm-log will not assume a developer Quicklisp checkout.Truthful gate state: Python protocol contract is green. The black-box CL/Tek9/SWI service contract remains intentionally RED/unexecuted here because this execution environment has Python but no SBCL, SWI-Prolog, Nix, or network-resolvable checkout. Do not merge yet.
Next implementation slice: persistent supervised SWI-Prolog session + named JSON-lines operation dispatcher, then
llm-log-expertexecutable/Nix wiring once Tek9 package consumption is available.