Embed Prolog-RLM inside Hackpert as the generative/escalation reasoning tier #48
Labels
No labels
bug
documentation
duplicate
enhancement
feature
good first issue
help wanted
invalid
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/hackmode#48
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?
Current reconciliation — 2026-09-05
Upstream integration epic:
lost-rob0t/prolog-rlm#389.This issue remains the Hackmode-side integration counterpart. The old wording below that suggests
:llm/:rlmas an authority-like Hackpert mode is superseded by the current two-axis architecture in #29 andprolog-rlm#335:Reasoning strategy never grants or widens Hackmode authority. Prolog-RLM #389 owns the generic host/session/capability/expert/verification contract; Hackmode owns operation scope, cyber tools/providers, Tek9/KB state, active-effect admission, StarLang composition, and LISH/Emacs product surfaces.
Implementation should consume #389 rather than create a private Hackmode-only RLM protocol or second expert/runtime stack.
Outcome
Eventually embed prolog-rlm into Hackpert itself as a generative reasoning tier layered on top of Hackpert's direct symbolic passive/active engines.
This is intentionally later work. The direct Hackpert graph/KB/active-effect boundary from #24/#27 should stabilize first so the LLM/RLM tier consumes and produces the same typed structures instead of creating a parallel agent runtime.
Parent architecture: #24
Active engine: #27
Intended uses
1. Rule generation for iPhone/mobile targets
Use Prolog-RLM to synthesize candidate expert rules from observed device/application/version/recon facts, with provenance and validation before promotion.
Generated rules are candidates, not immediately trusted production rules. They should be testable against recorded graph/KB evidence and carry model/prompt/rule-generation provenance.
2. Attack-pattern generation
When the static rule base lacks a useful next pattern, Prolog-RLM may generate candidate attack/recon patterns expressed in Hackpert's typed plan/playbook/action representation.
The model should generate structured symbolic candidates, not raw shell command blobs. Active execution still goes through Hackpert -> Common Lisp -> capability/provider runtime.
3. KB generation
Use RLM over operation graph/history/evidence to generate candidate:
Operational candidates may be accepted by the active engine under its normal policy. Long-term/global promotion retains explicit lifecycle/provenance controls.
4. Escalation after normal Hackpert reasoning
Hackpert should have an explicit escalation path when deterministic/symbolic reasoning stalls, exhausts known rules, or reaches a state requiring synthesis.
Example control flow:
RLM is therefore a reasoning escalation tier, not the owner of canonical state or effects.
5. Optional LLM mode after recon
Support a mode transition where normal recon runs first, graph + KB are populated, and then an LLM/RLM-backed Hackpert mode may be entered for deeper synthesis.
Possible high-level modes eventually become:
:passive— symbolic observation/reasoning only;:active— symbolic orchestration + canonical mutation through Hackmode;:llm/:rlm— generative reasoning over the same graph/KB, capable of emitting typed candidate rules, plans, KB deltas, and active actions subject to the same validation/effect boundary.The exact public mode names can be decided later; the important property is that recon can complete before invoking expensive/generative reasoning.
Architectural requirements
LISH integration eventually
LISH should expose enough state to understand when Hackpert:
Sequencing
Do not implement before these are stable enough to serve as the substrate:
Acceptance direction