ports

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReasoningPort

type ReasoningPort interface {
	// Verify checks the subject (Plan or Content) against the loaded policy.
	Verify(ctx context.Context, subject interface{}) (*domain.AuditResult, error)

	// VerifyAtoms checks a raw set of atoms against the loaded policy.
	VerifyAtoms(ctx context.Context, atoms []domain.Atom) (*domain.AuditResult, error)

	// Query executes a raw Datalog query against the loaded policy.
	Query(ctx context.Context, query string) ([]domain.Atom, error)
}

ReasoningPort executes formal logic verification (Datalog evaluation).

NOTE: the former "GenePool" abstraction (DomainGene, GenePoolPort, the genome parameter on every verify call) was removed in v0.9: no engine path ever consumed it. Runtime adaptation lives in ooda.Memory; learning that affects enforcement goes through policy sources (mkit gen -> review -> ReloadPolicy). See docs/adr/003-gene-pool-removed-from-kernel.md.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL