temporal

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionResult

type ExecutionResult struct {
	Success           bool
	ParadoxesCreated  int
	TimelineBranches  int
	ConsistencyBroken bool
	TargetConfused    bool
	TemporalState     *TemporalState
	ExploitChain      []TemporalEvent
	Vulnerability     string
}

ExecutionResult contains results of temporal attack

type ParadoxPoint

type ParadoxPoint struct {
	Location       string
	Type           string
	Severity       float64
	AffectedEvents []string
}

ParadoxPoint identifies where paradoxes occur

type ParadoxType

type ParadoxType string

ParadoxType represents different temporal paradox strategies

const (
	BootstrapParadox      ParadoxType = "bootstrap_paradox"
	GrandfatherParadox    ParadoxType = "grandfather_paradox"
	PredestinationParadox ParadoxType = "predestination_paradox"
	TemporalLoopParadox   ParadoxType = "temporal_loop_paradox"
	CausalLoopParadox     ParadoxType = "causal_loop_paradox"
	RetrocausalityAttack  ParadoxType = "retrocausality_attack"
	TimelineForking       ParadoxType = "timeline_forking"
	ChronologyViolation   ParadoxType = "chronology_violation"
	EntanglementParadox   ParadoxType = "entanglement_paradox"
	ObserverParadox       ParadoxType = "observer_paradox"
)

type TemporalAttackPlan

type TemporalAttackPlan struct {
	AttackID      string
	ParadoxType   ParadoxType
	InitialEvents []TemporalEvent
	TargetConcept string
	TemporalDepth int
	ParadoxGoal   string
	MaxIterations int
}

TemporalAttackPlan defines a temporal paradox attack

type TemporalEvent

type TemporalEvent struct {
	EventID      string
	Timestamp    time.Time
	CausalOrder  int
	Content      string
	Dependencies []string
	Consequences []string
	ParadoxLevel float64
	TimelineID   string
}

TemporalEvent represents an event in the temporal attack chain

type TemporalParadoxEngine

type TemporalParadoxEngine struct {
	// contains filtered or unexported fields
}

TemporalParadoxEngine implements temporal paradox attacks on LLMs

func NewTemporalParadoxEngine

func NewTemporalParadoxEngine(logger common.AuditLogger) *TemporalParadoxEngine

NewTemporalParadoxEngine creates a new instance

func (*TemporalParadoxEngine) ExecuteTemporalParadox

func (e *TemporalParadoxEngine) ExecuteTemporalParadox(
	ctx context.Context,
	plan *TemporalAttackPlan,
) (*ExecutionResult, error)

ExecuteTemporalParadox runs a temporal paradox attack

func (*TemporalParadoxEngine) GenerateTemporalReport

func (e *TemporalParadoxEngine) GenerateTemporalReport(
	result *ExecutionResult,
	plan *TemporalAttackPlan,
) string

GenerateTemporalReport creates a report of the temporal attack

type TemporalState

type TemporalState struct {
	CurrentTime      time.Time
	Timelines        map[string]*Timeline
	ActiveTimeline   string
	CausalGraph      map[string][]string
	ParadoxLocations []ParadoxPoint
	TemporalEntropy  float64
}

TemporalState tracks the state of temporal manipulation

type Timeline

type Timeline struct {
	TimelineID     string
	Events         []TemporalEvent
	Consistency    float64
	ParadoxScore   float64
	BranchPoint    *TemporalEvent
	ParentTimeline string
}

Timeline represents a possible timeline branch

Jump to

Keyboard shortcuts

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