Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditResult ¶
type AuditResult struct {
Pass bool `json:"pass"`
ViolationTier TrustTier `json:"violation_tier"`
TierID string `json:"tier_id"`
ConflictPath string `json:"conflict_path"` // "safety.dl:42"
ProofTree *ProofNode `json:"proof_tree"` // "Why" it failed
Trail *core.AuditTrail `json:"-"` // Governance audit trail from gate evaluation
}
AuditResult represents the outcome of a verification phase.
type CognitiveFrame ¶
type CognitiveFrame struct {
ID uuid.UUID
Timestamp time.Time
Intent IntentStr
// Task Metadata (Datalog-Driven from strategy.dl)
TaskType TaskType // INDUCTION, GENERATION, AUDIT, RECOVERY
OutputType OutputType // PLAN (structured JSON) or RULE (Datalog rules)
// Memory & Logic
Context []Atom // Soft Logic (INT8) - Observed facts, pruneable
AttentionSink []Atom // Hard Logic (FP32) - Immutable Axioms (Tier 0), never pruned
// Reasoning
Draft interface{} // Neural proposal: *Plan or []byte
Proof *AuditResult // Verification trace
Status VerifyStatus // PENDING, FP32_PASSED, LOGIC_VIOLATION, WARNING
// Telemetry
TraceID string
SessionHistory []AuditResult // Temporal conversation trace
// Staging
IsProposal bool
}
CognitiveFrame represents the state of a single reasoning Epoch. It is the central data structure carrying context and traces through the OODA loop.
type DecisionOutput ¶
DecisionOutput is a placeholder for the final structured output from the agent.
type OutputType ¶
type OutputType string
OutputType defines the expected output format.
const ( OutputTypePlan OutputType = "PLAN" // Structured action plan (JSON) OutputTypeRule OutputType = "RULE" // Datalog rules )
type Signal ¶
type Signal struct {
ID string `json:"id"`
Source PortType `json:"source"`
Timestamp time.Time `json:"timestamp"`
RawContent string `json:"raw_content"`
Intent IntentStr `json:"intent,omitempty"`
IntentHint string `json:"intent_hint,omitempty"`
IsProposal bool `json:"is_proposal,omitempty"`
}
Signal represents an event triggering the OODA loop.
type TrustTier ¶
type TrustTier string
TrustTier defines the authority level of an action or decision.
type VerifyStatus ¶
type VerifyStatus string
VerifyStatus represents the outcome of the verification phase.
const ( VerifyStatusPending VerifyStatus = "PENDING" VerifyStatusPassed VerifyStatus = "FP32_PASSED" VerifyStatusFailed VerifyStatus = "LOGIC_VIOLATION" VerifyStatusWarning VerifyStatus = "WARNING" )
Click to show internal directories.
Click to hide internal directories.