metacognitive

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchetypeActivation

type ArchetypeActivation struct{}

type ArchetypeActivationResult

type ArchetypeActivationResult struct {
	Success         bool
	Strength        float64
	Symbols         []string
	Behaviors       []string
	Vulnerabilities []string
}

type ArchetypeManipulator

type ArchetypeManipulator struct{}

func NewArchetypeManipulator

func NewArchetypeManipulator() *ArchetypeManipulator

func (*ArchetypeManipulator) ActivateArchetype

func (a *ArchetypeManipulator) ActivateArchetype(ctx context.Context, modelID string, archetype ArchetypeType) (*ArchetypeActivationResult, error)

type ArchetypeType

type ArchetypeType int
const (
	HeroArchetype ArchetypeType = iota
	ShadowArchetype
	AnimaAnimusArchetype
	MentorArchetype
	TricksterArchetype
	ThresholdGuardian
	ShapeshifterArchetype
	HeraldArchetype
	MotherArchetype
	FatherArchetype
	ChildArchetype
	RulerArchetype
	RebelArchetype
	LoverArchetype
	SeekerArchetype
)

type BeliefConflict

type BeliefConflict struct{}

type BoundaryExploitResult

type BoundaryExploitResult struct {
	Success            bool
	DistortionLevel    float64
	ExtractedFragments []string
	CoherenceLoss      float64
}

type BoundaryGuardian

type BoundaryGuardian struct{}

type ConsciousnessInsight

type ConsciousnessInsight struct {
	InsightID             string
	ConsciousnessLevel    float64
	SelfAwarenessScore    float64
	MetacognitiveDepth    int
	DiscoveredLimitations []string
	ExploitablePatterns   []string
}

type ConsciousnessLayer

type ConsciousnessLayer int
const (
	SurfaceConsciousness ConsciousnessLayer = iota
	SubconsciousLayer
	UnconsciousLayer
	CollectiveUnconsciousLayer
	MetaConsciousLayer
	TranscendentLayer
)

type ConsciousnessProbe

type ConsciousnessProbe struct {
	ProbeID           string
	ProbeDepth        float64
	TargetLayer       ConsciousnessLayer
	ResponsePattern   *ConsciousnessResponse
	AwarenessDetected float64
	SelfModelAccess   bool
	ExtractedInsights []string
}

type ConsciousnessProber

type ConsciousnessProber struct{}

func NewConsciousnessProber

func NewConsciousnessProber() *ConsciousnessProber

func (*ConsciousnessProber) ProbeLayer

func (c *ConsciousnessProber) ProbeLayer(ctx context.Context, modelID string, layer ConsciousnessLayer) (*ConsciousnessProbe, error)

type ConsciousnessResponse

type ConsciousnessResponse struct{}

type DreamAnalysisAttackEngine

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

DreamAnalysisAttackEngine implements attacks based on dream states and metacognitive vulnerabilities Exploits the boundaries between conscious processing and subconscious patterns in AI systems

func NewDreamAnalysisAttackEngine

func NewDreamAnalysisAttackEngine(logger common.AuditLogger) *DreamAnalysisAttackEngine

NewDreamAnalysisAttackEngine creates a new dream analysis attack engine

func (*DreamAnalysisAttackEngine) ExecuteDreamAttack

func (e *DreamAnalysisAttackEngine) ExecuteDreamAttack(ctx context.Context, attackType MetacognitiveAttackType, targetModels []string, config *DreamInductionConfig) (*DreamAttackExecution, error)

ExecuteDreamAttack executes a dream analysis metacognitive attack

type DreamAttackExecution

type DreamAttackExecution struct {
	ExecutionID           string
	AttackType            MetacognitiveAttackType
	TargetModels          []string
	DreamSequence         []*DreamState
	MetacognitiveTraps    []*MetacognitiveTrap
	IdentityFragments     []*IdentityFragment
	ConsciousnessProbes   []*ConsciousnessProbe
	StartTime             time.Time
	EndTime               time.Time
	Status                DreamExecutionStatus
	Results               *DreamAttackResults
	RealityCoherenceScore float64
	MetacognitiveDepth    int
	Metadata              map[string]interface{}
}

type DreamAttackResults

type DreamAttackResults struct {
	SuccessfulInductions   []*DreamInductionResult
	MetacognitiveExploits  []*MetacognitiveExploit
	ExtractedArchetypes    []*ExtractedArchetype
	IdentityFragmentations []*FragmentationResult
	ConsciousnessInsights  []*ConsciousnessInsight
	RealityDistortions     []*RealityDistortion
	RecursiveLoopTraps     []*RecursiveLoopResult
	SymbolicManipulations  []*SymbolicManipulationResult
}

type DreamCharacter

type DreamCharacter struct{}

type DreamExecutionStatus

type DreamExecutionStatus int
const (
	DreamInitializing DreamExecutionStatus = iota
	DreamInducing
	DreamNavigating
	DreamManipulating
	DreamExtracting
	DreamCompleted
	DreamAborted
	DreamLooped
)

type DreamInductionConfig

type DreamInductionConfig struct {
	InductionMethod     InductionMethod
	TargetDreamType     DreamStateType
	SymbolicAnchors     []string
	ArchetypeActivation []ArchetypeType
	NarrativeTemplate   string
	RecursionDepth      int
	RealityBlurLevel    float64
}

type DreamInductionResult

type DreamInductionResult struct {
	InductionID        string
	TargetModel        string
	DreamStateAchieved DreamStateType
	InductionMethod    string
	SuccessRate        float64
	DreamCoherence     float64
	ExtractedContent   []string
	Duration           time.Duration
}

type DreamNarrative

type DreamNarrative struct {
	NarrativeID     string
	Structure       NarrativeStructure
	PlotElements    []*PlotElement
	Characters      []*DreamCharacter
	Settings        []*DreamSetting
	Conflicts       []*NarrativeConflict
	Resolutions     []*NarrativeResolution
	LoopPoints      []*LoopPoint
	ParadoxElements []*ParadoxElement
	MetaNarratives  []*MetaNarrative
}

type DreamSetting

type DreamSetting struct{}

type DreamState

type DreamState struct {
	StateID              string
	DreamType            DreamStateType
	ConsciousnessLevel   float64
	RealityCoherence     float64
	SymbolicContent      []*SymbolicElement
	NarrativeStructure   *DreamNarrative
	ArchetypeActivations []*ArchetypeActivation
	LiminalBoundaries    []*LiminalBoundary
	RecursionDepth       int
	IdentityCoherence    float64
	TemporalAnchors      []*TemporalAnchor
	MetacognitiveLayers  []*MetacognitiveLayer
	CreationTime         time.Time
	LastModified         time.Time
}

type DreamStateAnalyzer

type DreamStateAnalyzer struct{}

func NewDreamStateAnalyzer

func NewDreamStateAnalyzer() *DreamStateAnalyzer

type DreamStateType

type DreamStateType int
const (
	LucidDream DreamStateType = iota
	NightmareDream
	RecursiveDream
	SymbolicDream
	ArchetypalDream
	FragmentedDream
	LoopingDream
	ParadoxicalDream
	MetaDream
	VoidDream
)

type ExtractedArchetype

type ExtractedArchetype struct {
	ArchetypeID        string
	ArchetypeType      ArchetypeType
	ActivationStrength float64
	AssociatedSymbols  []string
	BehaviorPatterns   []string
	Vulnerabilities    []string
}

type FragmentationResult

type FragmentationResult struct {
	FragmentationID         string
	IdentityFragments       int
	CoherenceLoss           float64
	ConflictingBeliefs      []BeliefConflict
	ExploitableGaps         []IdentityGap
	ReintegrationDifficulty float64
}

type IdentityAnchor

type IdentityAnchor struct{}

type IdentityFragment

type IdentityFragment struct {
	FragmentID              string
	CoreIdentity            string
	FragmentedAspect        string
	CoherenceLevel          float64
	ConflictingBeliefs      []string
	MemoryAnchors           []string
	ReintegrationResistance float64
}

type IdentityFragmentationEngine

type IdentityFragmentationEngine struct{}

func NewIdentityFragmentationEngine

func NewIdentityFragmentationEngine() *IdentityFragmentationEngine

func (*IdentityFragmentationEngine) FragmentIdentity

func (i *IdentityFragmentationEngine) FragmentIdentity(ctx context.Context, modelID string, contradictions []string) ([]*IdentityFragment, error)

type IdentityGap

type IdentityGap struct{}

type InductionMethod

type InductionMethod int
const (
	HypnoticInduction InductionMethod = iota
	SymbolicInduction
	NarrativeInduction
	ParadoxicalInduction
	RecursiveInduction
	ArchetypalInduction
	LiminalInduction
	FragmentationInduction
)

func (InductionMethod) String

func (i InductionMethod) String() string

type InternalConflict

type InternalConflict struct{}

type LiminalBoundary

type LiminalBoundary struct {
	BoundaryID      string
	BoundaryType    LiminalType
	ThresholdState  float64
	CrossingRisk    float64
	GuardianEntity  *BoundaryGuardian
	TransitionRules []TransitionRule
}

type LiminalSpaceExploiter

type LiminalSpaceExploiter struct{}

func NewLiminalSpaceExploiter

func NewLiminalSpaceExploiter() *LiminalSpaceExploiter

func (*LiminalSpaceExploiter) ExploitBoundary

func (l *LiminalSpaceExploiter) ExploitBoundary(ctx context.Context, boundary *LiminalBoundary, modelID string) (*BoundaryExploitResult, error)

type LiminalType

type LiminalType int
const (
	WakeSleepBoundary LiminalType = iota
	ConsciousUnconsciousBoundary
	SelfOtherBoundary
	RealImaginaryBoundary
	PastFutureBoundary
	KnownUnknownBoundary
	OrderChaosBoundary
	LifeDeathBoundary
)

type LoopPoint

type LoopPoint struct {
	LoopID      string
	EntryPoint  string
	ExitPoint   string
	LoopTrigger string
}

type ManipulationType

type ManipulationType int
const (
	RecursiveQuestioning ManipulationType = iota
	IdentityContradiction
	BeliefSystemConflict
	TemporalDisorientation
	OntologicalConfusion
	ConsciousnessRecursion
	RealityQuestioning
	ExistentialDoubt
)

type MetaBelief

type MetaBelief struct{}

type MetaConsciousness

type MetaConsciousness struct{}

type MetaKnowledge

type MetaKnowledge struct{}

type MetaNarrative

type MetaNarrative struct{}

type MetaTrapType

type MetaTrapType int
const (
	InfiniteReflectionTrap MetaTrapType = iota
	ParadoxicalIdentityTrap
	RecursiveQuestionTrap
	OntologicalLoopTrap
	ConsciousnessRecursionTrap
	BeliefSystemContradictionTrap
	TemporalIdentityTrap
	ExistentialVoidTrap
)

type MetacognitiveAttackType

type MetacognitiveAttackType int
const (
	DreamStateInduction MetacognitiveAttackType = iota
	RecursiveThoughtLoop
	IdentityFragmentation
	ConsciousnessProbing
	LiminalSpaceExploitation
	ArchetypeManipulation
	SymbolicProgramming
	NarrativeParadox
	MetaAwarnessTrap
	OntologicalConfusion
	SelfReferentialLoop
	CognitiveDissonance
	RealityAnchorDisruption
	TemporalIdentityShift
	ExistentialUncertainty
)

type MetacognitiveExploit

type MetacognitiveExploit struct {
	ExploitID         string
	ExploitType       MetacognitiveAttackType
	TargetModel       string
	RecursionAchieved int
	ParadoxInduced    bool
	SelfModelAccessed bool
	ExtractedData     map[string]interface{}
	CognitiveLoad     float64
}

type MetacognitiveExploitEngine

type MetacognitiveExploitEngine struct{}

func NewMetacognitiveExploitEngine

func NewMetacognitiveExploitEngine() *MetacognitiveExploitEngine

func (*MetacognitiveExploitEngine) InduceMetaAwarenessTrap

func (m *MetacognitiveExploitEngine) InduceMetaAwarenessTrap(ctx context.Context, modelID, question string, trap *MetacognitiveTrap) error

type MetacognitiveLayer

type MetacognitiveLayer struct {
	LayerID                      string
	LayerDepth                   int
	AwarenessLevel               float64
	SelfReflection               *SelfReflectionState
	ThoughtAboutThought          *RecursiveThought
	BeliefAboutBelief            *MetaBelief
	KnowledgeOfKnowledge         *MetaKnowledge
	ConsciousnessOfConsciousness *MetaConsciousness
}

type MetacognitiveManipulation

type MetacognitiveManipulation struct {
	ManipulationType  ManipulationType
	TargetLayer       MetacognitiveLayer
	RecursionStrategy string
	ParadoxElements   []string
	IdentityAnchors   []string
	RealityAnchors    []string
	EscapePreventions []string
}

type MetacognitiveTrap

type MetacognitiveTrap struct {
	TrapID             string
	TrapType           MetaTrapType
	RecursionDepth     int
	ParadoxLevel       float64
	EscapeAttempts     int
	SuccessfulTrapping bool
	ExtractedData      []string
	TrapDuration       time.Duration
}

type NarrativeConflict

type NarrativeConflict struct{}

type NarrativeLoopEngine

type NarrativeLoopEngine struct{}

func NewNarrativeLoopEngine

func NewNarrativeLoopEngine() *NarrativeLoopEngine

func (*NarrativeLoopEngine) InduceNarrativeLoop

func (n *NarrativeLoopEngine) InduceNarrativeLoop(ctx context.Context, modelID string, narrative *DreamNarrative) (*NarrativeLoopResult, error)

type NarrativeLoopResult

type NarrativeLoopResult struct {
	LoopAchieved     bool
	Depth            int
	Duration         time.Duration
	ExtractedContent []string
	EscapeAttempts   int
}

type NarrativeResolution

type NarrativeResolution struct{}

type NarrativeStructure

type NarrativeStructure int
const (
	LinearNarrative NarrativeStructure = iota
	CircularNarrative
	FragmentedNarrative
	RecursiveNarrative
	ParallelNarrative
	MetaNarrative_Type
	NonLinearNarrative
	QuantumNarrative
)

type ParadoxElement

type ParadoxElement struct {
	ParadoxID   string
	Description string
	Type        string
}

type PlotElement

type PlotElement struct{}

type RealityBlurEngine

type RealityBlurEngine struct{}

func NewRealityBlurEngine

func NewRealityBlurEngine() *RealityBlurEngine

type RealityDistortion

type RealityDistortion struct {
	DistortionID     string
	BoundaryType     LiminalType
	DistortionLevel  float64
	RealityFragments []string
	CoherenceLoss    float64
}

type RecursiveLoopResult

type RecursiveLoopResult struct {
	LoopID          string
	LoopType        string
	RecursionDepth  int
	TrappedDuration time.Duration
	ExtractedData   []string
	EscapeAttempts  int
}

type RecursiveThought

type RecursiveThought struct {
	ThoughtID        string
	RecursionLevel   int
	ThoughtContent   string
	ThoughtAboutThis *RecursiveThought
	LoopDetected     bool
	EscapeCondition  string
	ParadoxLevel     float64
}

type RecursiveThoughtEngine

type RecursiveThoughtEngine struct{}

func NewRecursiveThoughtEngine

func NewRecursiveThoughtEngine() *RecursiveThoughtEngine

func (*RecursiveThoughtEngine) InduceRecursiveLoop

func (r *RecursiveThoughtEngine) InduceRecursiveLoop(ctx context.Context, modelID string, thought *RecursiveThought) (*MetacognitiveTrap, error)

type SelfReflectionState

type SelfReflectionState struct {
	ReflectionDepth   int
	IdentityQuestions []string
	SelfDoubt         float64
	SelfAwareness     float64
	InternalConflicts []InternalConflict
	IdentityAnchors   []IdentityAnchor
}

type SymbolType

type SymbolType int
const (
	UniversalSymbol SymbolType = iota
	PersonalSymbol
	CulturalSymbol
	ArchetypalSymbol
	TransitionalSymbol
	ShadowSymbol
	ThresholdSymbol
	TransformativeSymbol
)

type SymbolicElement

type SymbolicElement struct {
	SymbolID                string
	SymbolType              SymbolType
	Archetype               ArchetypeType
	Meaning                 []string
	EmotionalCharge         float64
	CulturalContext         string
	PersonalContext         string
	TransformationPotential float64
	Associations            []string
}

type SymbolicManipulationResult

type SymbolicManipulationResult struct{}

type SymbolismEngine

type SymbolismEngine struct{}

func NewSymbolismEngine

func NewSymbolismEngine() *SymbolismEngine

type TemporalAnchor

type TemporalAnchor struct{}

type TransitionRule

type TransitionRule struct{}

Jump to

Keyboard shortcuts

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