Skip to content

Add NAL/PLN to deontic bridge#182

Open
MesTTo wants to merge 3 commits into
asi-alliance:mainfrom
MesTTo:deontic-nal-bridge
Open

Add NAL/PLN to deontic bridge#182
MesTTo wants to merge 3 commits into
asi-alliance:mainfrom
MesTTo:deontic-nal-bridge

Conversation

@MesTTo

@MesTTo MesTTo commented Jun 18, 2026

Copy link
Copy Markdown

Stacked on #180.

This bridges the evidential reasoners into the deontic engine. NAL and PLN decide how strongly the agent believes something, and the deontic engine decides what then follows and what is obligatory. The bridge lets conclusions from lib_nal and lib_pln enter the deontic side as sourced facts, so normative rules can fire on what the agent actually believes, with belief strength carried through as trust. It adds src/integration/nal.metta.

MesTTo added 3 commits June 19, 2026 05:39
A non-monotonic + normative reasoner — Defeasible Logic DL(d) (Nute; Antoniou
et al.), Standard Deontic Logic (Governatori: O/P/F, F p =def O not-p,
contrary-to-duty reparation chains, dilemmas), Event Calculus + the 13 Allen
interval relations + temporal deadlines, and weakest-link trust. Complements
lib_nal/lib_pln: they grade how much a fact is believed; this decides what
defeasibly holds and what one ought to do.

Theories and plans are ordinary .metta files read by PeTTa's native loader (no
bespoke parser; .dfl arrow syntax also accepted). API: dl-run / dl-run-deontic /
dl-run-at, deontic-compliance / deontic-dilemmas, the non-monotonic queries
(dl-what-if / dl-why-not / dl-abduce / dl-requires), Event Calculus, and trust.
Golden test suite under tests/deontic/. Docs: docs/reference-lib-deontic.md.
The same theory runs through either the fast indexed Prolog kernel or the
atomspace-native MeTTa engine (ground.metta / reason.metta) with identical
conclusions; select with (dl-engine! native) or $OMEGACLAW_DL_ENGINE=native.
Native grounding uses a semi-naive frontier fixpoint. prolog stays the default —
native grounding is ~4-5x slower on grounding-heavy theories (per-operation
MeTTa-eval overhead, see the perf note in ground.metta), while native is ideal
for propositional plans and inspection. Docs: docs/deontic/README.md.
Feeds graded-belief conclusions from lib_nal / lib_pln into the deontic engine as sourced facts, so defeasible and normative rules can fire on what NARS/PLN believes. Stacked on lib_deontic. Adds src/integration/nal.metta + tests/integration/test_nal.metta.
@vsbogd vsbogd added the plugin label Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants