Repository navigation
Python Jarvis Symbol Reference
Coverage: 16 modules, 57 classes, 171 functions, 5875 source lines.
Source-linked AST index for the T-Zero Algorithm Python package.
Scope: Modules under tzero/tzero_jarvis/. Command execution and policy boundaries are summarized in Codebase-Internals.
- Every declaration is extracted from Python AST and linked to its current source location.
- Signatures show parsed arguments and annotations; default expressions are included after personal-identifier, contact, and wallet redaction.
- Source docstrings are quoted, not independently verified claims. Personal identifiers, contact details, and wallet-like values are redacted.
- Missing docstrings are marked explicitly; behavior is not guessed.
- This is a symbol map, not a line-by-line explanation of function bodies. Follow the source links for control flow and side effects.
- Detailed Anti-REA implementation internals are intentionally excluded; see Anti-REA-Safe-Overview.
Source: tzero/tzero_jarvis/init.py
Source size: 148 lines | 0 classes | 0 functions
Module docstring:
T-Zero Jarvis Autonomous Engine & Semantic Memory Package
---------------------------------------------------------
Developer: [redacted] (Siber Akademi)
Version: 6.0.0
Source: tzero/tzero_jarvis/agent_guard.py
Source size: 626 lines | 11 classes | 24 functions
Module docstring:
Deterministic, Zero-Spend AI Agent Guardrails and Execution Safety Engine.
Provides multi-layer security policies, path protection, command risk assessment,
secret redaction, transactional file modification, and AI grounding verification.
Operates 100% locally and offline with zero cloud API dependencies.
Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:29-34
Declaration:
class CommandRiskLevel(str, enum.Enum):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:38-64
Declaration:
class CommandEvaluation:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:51-64
Signature:
def to_dict(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:67-193
Declaration:
class CommandRiskAssessor:Source docstring:
Evaluates commands for shell injection, network access, and risk level.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:100-114
Signature:
def parse_argv(cls, command: str) -> Optional[List[str]]:Source docstring:
Attempt safe lexical splitting without invoking a host shell.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:117-193
Signature:
def assess(cls, command: str) -> CommandEvaluation:Source docstring:
Classify command risk level and identify dangerous primitives.
Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:197-238
Declaration:
class CommandExecutionPolicy:Source docstring:
Operator-controlled permission policy separated from agent inputs.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:209-219
Signature:
def from_environment(cls) -> 'CommandExecutionPolicy':Source docstring:
Read permissions strictly from server operator environment variables.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:221-238
Signature:
def is_command_allowed(self, evaluation: CommandEvaluation) -> Tuple[bool, str]:Source docstring:
Check whether the evaluated command is permitted under the active policy.
Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:245-344
Declaration:
class PathGuard:Source docstring:
Guards against directory traversal, symlink escape, and protected file mutation.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:266-344
Signature:
def validate_target_path(cls, file_path: Union[str, Path], work_dir: Union[str, Path], for_write: bool = True) -> Tuple[bool, str, Optional[Path]]:Source docstring:
Validate target file path against workspace boundaries, symlinks, and protected paths.
Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:351-408
Declaration:
class SecretRedactor:Source docstring:
Masks API keys, tokens, high-entropy strings, and credentials from diagnostics.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:367-375
Signature:
def calculate_shannon_entropy(cls, s: str) -> float:Source docstring:
Calculate Shannon entropy in bits per character.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:378-408
Signature:
def sanitize(cls, text: str) -> str:Source docstring:
Redact sensitive patterns and suspicious high-entropy tokens from text.
Kind: Function
Source: tzero/tzero_jarvis/agent_guard.py:387-390
Signature:
def replace_generic(match: re.Match) -> str:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:415-513
Declaration:
class AIGroundingVerifier:Source docstring:
Verifies that files, symbols, and line numbers claimed by AI exist in the workspace.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:419-424
Signature:
def verify_file(cls, work_dir: Union[str, Path], file_path: str) -> Tuple[bool, str, Optional[Path]]:Source docstring:
Verify that a referenced file exists within the workspace.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:427-438
Signature:
def verify_line(cls, work_dir: Union[str, Path], file_path: str, line_no: int) -> Tuple[bool, str]:Source docstring:
Verify that a referenced line number is within file boundaries.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:441-467
Signature:
def verify_python_symbol(cls, work_dir: Union[str, Path], file_path: str, symbol_name: str) -> Tuple[bool, str, Optional[str], Optional[int]]:Source docstring:
Verify that a function, class, or method symbol exists in a Python file's AST.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:470-499
Signature:
def audit_traceback_evidence(cls, work_dir: Union[str, Path], traceback_text: str) -> Dict[str, Any]:Source docstring:
Extract all File and line claims from traceback and verify their workspace ground truth.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:502-513
Signature:
def flag_unverified_claims(cls, text: str) -> List[str]:Source docstring:
Detect and flag absolute or ungrounded claims in text.
Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:521-526
Declaration:
class TransactionEntry:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:529-561
Declaration:
class MultiFileRollbackStack:Source docstring:
Manages transactional file modifications with safe reverse-order rollback.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:532-533
Signature:
def __init__(self):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:535-536
Signature:
def push(self, path: Path, original: bytes, applied: bytes, diff: str) -> None:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:538-555
Signature:
def rollback_all(self) -> List[str]:Source docstring:
Roll back all modified files in reverse order if they haven't been concurrently modified.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:557-558
Signature:
def clear(self) -> None:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:560-561
Signature:
def __len__(self) -> int:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:569-585
Declaration:
class SecurityAuditEvent:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:577-585
Signature:
def to_dict(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/agent_guard.py:588-622
Declaration:
class SecurityAuditLogger:Source docstring:
Thread-safe, bounded, in-memory security audit log with secret sanitization.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:591-593
Signature:
def __init__(self, capacity: int = 500):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:595-614
Signature:
def record(self, event_type: str, target: str, verdict: str, reason: str, metadata: Optional[Dict[str, Any]] = None) -> SecurityAuditEvent:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:616-619
Signature:
def get_events(self, event_type: Optional[str] = None) -> List[Dict[str, Any]]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/agent_guard.py:621-622
Signature:
def clear(self) -> None:Source docstring: none; consult the linked implementation rather than inferring behavior.
Source: tzero/tzero_jarvis/causal_graph.py
Source size: 310 lines | 4 classes | 12 functions
Module docstring:
T-ZERO CAUSAL & TEMPORAL KNOWLEDGE GRAPH ENGINE (4D GRAPH)
Developer: [redacted] (Siber Akademi)
Version: 4.4.0
Bu modül, anlamsal üçlüleri (Semantic Triplet) 4 boyutlu uzayda (zaman + nedensellik)
birleştiren akıllı çizge motorudur.
Temel Yetenekler:
1. Zamansal Sıralama (Temporal Sequencing): precedes, follows, simultaneous, timestamping
2. Nedensellik Bağları (Causal Edges): causes, triggered_by, fixes, resolves, mitigates, fails_with
3. Kök Neden Analizi (Root-Cause Analysis via Causal DAG Traversal)
4. Geri Alma Sıralaması (Rollback Order Planning)
5. Döngü Tespiti (Causal Cycle Detection)
Kind: Class
Source: tzero/tzero_jarvis/causal_graph.py:26-35
Declaration:
class CausalRelationType:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/causal_graph.py:39-48
Declaration:
class CausalEdge:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:47-48
Signature:
def to_dict(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/causal_graph.py:52-61
Declaration:
class CausalNode:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:60-61
Signature:
def to_dict(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/causal_graph.py:64-310
Declaration:
class CausalTemporalGraph:Source docstring:
4 Boyutlu Nedensellik ve Zaman Çizgesi Motoru.
Gelişmiş DAG algoritmaları ile kök neden ve geri alma zincirlerini hesaplar.
Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:70-75
Signature:
def __init__(self, codebook: Optional[VectorQuantizedCodebook] = None):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:77-98
Signature:
def add_node(self, node_id: str, label: str, entity_type: str = 'GENERIC', triplet_code: Optional[int] = None, timestamp: Optional[float] = None, attributes: Optional[Dict[str, Any]] = None) -> CausalNode:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:100-117
Signature:
def add_edge(self, source_id: str, target_id: str, relation: str = CausalRelationType.CAUSES, weight: float = 1.0, metadata: Optional[Dict[str, Any]] = None) -> CausalEdge:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:119-158
Signature:
def record_triplet_event(self, triplet: SemanticTriplet, preceding_triplet_code: Optional[int] = None, causes_triplet_code: Optional[int] = None) -> Tuple[int, str]:Source docstring:
Bir semantik üçlüyü çizgeye zamansal düğüm olarak ekler ve nedensellik bağlarını kurar.
Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:160-199
Signature:
def get_root_causes(self, target_node_id: str, max_depth: int = 10) -> List[Dict[str, Any]]:Source docstring:
Hedef düğümün (örn: bir hata veya arıza durumu) tüm kök nedenlerini (Root Causes)
nedensellik çizgisi boyunca geriye doğru izleyerek bulur.
Kind: Nested function
Source: tzero/tzero_jarvis/causal_graph.py:171-196
Signature:
def dfs(curr_id: str, depth: int, path: List[str]):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:201-232
Signature:
def trace_effect_chain(self, start_node_id: str, max_depth: int = 10) -> List[Dict[str, Any]]:Source docstring:
Başlangıç düğümünün tetiklediği tüm zincirleme sonuçları (Downstream Effects) çıkarır.
Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:234-258
Signature:
def compute_rollback_order(self, target_node_id: str) -> List[Dict[str, Any]]:Source docstring:
Bir hata durumunda veya işlemin geri alınması gerektiğinde,
ters topolojik sıralama (Reverse Topological Order) ile güvenli geri alma adımlarını hesaplar.
Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:260-276
Signature:
def get_timeline(self, limit: int = 50) -> List[Dict[str, Any]]:Source docstring:
Kronolojik olay akışını döndürür.
Kind: Method
Source: tzero/tzero_jarvis/causal_graph.py:278-310
Signature:
def to_graph_data(self) -> Dict[str, Any]:Source docstring:
Görselleştirme için nodes ve links JSON verisi üretir.
Source: tzero/tzero_jarvis/creative_director.py
Source size: 333 lines | 4 classes | 4 functions
Module docstring:
T-ZERO JARVIS MULTI-MODAL CREATIVE DIRECTOR & PROMPT ENGINE
------------------------------------------------------------
Developer: [redacted] (Siber Akademi)
Version: 5.1.0 | License: AGPL-3.0-only
Autonomous creative director that synthesizes ultra-photorealistic image prompts
(Midjourney v6.1, Flux.1 Pro, Imagen 3) and cinematic video generation prompts
(OpenAI Sora, Kling 1.5, Runway Gen-3 Alpha, Luma Dream Machine), as well as
viral 5-scene tech product launch storyboards directly from source code and AST.
Kind: Class
Source: tzero/tzero_jarvis/creative_director.py:25-34
Declaration:
class VideoPromptSpec:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/creative_director.py:38-46
Declaration:
class PhotoPromptSpec:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/creative_director.py:50-59
Declaration:
class StoryboardScene:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/creative_director.py:62-333
Declaration:
class JarvisCreativeDirector:Source docstring:
Enterprise multi-modal prompt synthesis and storyboard director.
Kind: Method
Source: tzero/tzero_jarvis/creative_director.py:90-127
Signature:
def generate_video_prompt(cls, topic: str, style: str = 'cinematic', duration: int = 5, camera_work: Optional[str] = None, lighting: Optional[str] = None, audio_mood: Optional[str] = None) -> VideoPromptSpec:Source docstring:
Synthesize high-fidelity prompt for Sora, Kling, Runway Gen-3, Luma.
Kind: Method
Source: tzero/tzero_jarvis/creative_director.py:130-166
Signature:
def generate_photo_prompt(cls, subject: str, style: str = 'portrait', lens_type: str = 'cinematic', lighting_style: str = 'golden_hour', aspect_ratio: str = '16:9', negative_extra: str = '') -> PhotoPromptSpec:Source docstring:
Synthesize ultra-photorealistic image generation prompt for Midjourney v6.1 / Flux.1.
Kind: Method
Source: tzero/tzero_jarvis/creative_director.py:169-234
Signature:
def generate_launch_storyboard(cls, product_name: str, core_feature: str, metric_highlight: str = '95% Token Reduction & 0 Hallucinations', target_audience: str = 'AI Engineers, Tech Leads & DevOps') -> List[StoryboardScene]:Source docstring:
Creates a viral 5-scene 30-second tech launch video storyboard.
Kind: Method
Source: tzero/tzero_jarvis/creative_director.py:237-333
Signature:
def synthesize_from_code(cls, code: str, file_name: str = 'module.py') -> Dict[str, Any]:Source docstring:
Analyzes code AST and synthesizes matched video and photo campaign prompts.
Source: tzero/tzero_jarvis/graph_visualizer.py
Source size: 395 lines | 1 classes | 3 functions
Module docstring:
T-ZERO CYBERPUNK KNOWLEDGE & CAUSAL GRAPH VISUALIZER
Developer: [redacted] (Siber Akademi)
Version: 4.4.0
Bu modül, T-Zero 4D Nedensellik ve Bilgi Çizgesini tamamen bağımsız (Offline),
neon siberpunk estetiğine sahip interaktif bir HTML5 / SVG Force-Directed Graph
olarak render eder ve dışa aktarır.
Kind: Class
Source: tzero/tzero_jarvis/graph_visualizer.py:35-395
Declaration:
class CyberpunkGraphVisualizer:Source docstring:
Siberpunk Temalı Çizge Görselleştirici.
Hiçbir CDN veya internet bağlantısına ihtiyaç duymadan saf HTML5/SVG/Canvas üretir.
Kind: Method
Source: tzero/tzero_jarvis/graph_visualizer.py:41-42
Signature:
def __init__(self, causal_graph: Optional[CausalTemporalGraph] = None):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/graph_visualizer.py:44-388
Signature:
def generate_html(self, title: str = 'T-ZERO JARVIS KNOWLEDGE & CAUSAL GRAPH') -> str:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/graph_visualizer.py:390-395
Signature:
def export_to_file(self, target_path: str, title: str = 'T-ZERO JARVIS KNOWLEDGE & CAUSAL GRAPH') -> str:Source docstring: none; consult the linked implementation rather than inferring behavior.
Source: tzero/tzero_jarvis/hybrid_search.py
Source size: 214 lines | 3 classes | 7 functions
Module docstring:
T-ZERO ZERO-VECTOR-DB HYBRID IN-MEMORY SEARCH ENGINE
Developer: [redacted] (Siber Akademi)
Version: 4.4.0
Bu modül, harici hiçbir ağır Vektör Veritabanına (ChromaDB, Pinecone, FAISS vb.)
ihtiyaç duymadan; saf bellek içi (In-Memory) Ters İndeksleme (Inverted Index),
BM25 Anlamsal Sıralama ve T-Zero Latent Codebook (#code) eşleştirmesini
birleştiren mikro-saniye (<1 ms) hızında hibrit arama motorudur.
Kind: Class
Source: tzero/tzero_jarvis/hybrid_search.py:23-31
Declaration:
class SearchDocument:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/hybrid_search.py:35-55
Declaration:
class SearchResult:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/hybrid_search.py:45-55
Signature:
def to_dict(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/hybrid_search.py:58-214
Declaration:
class ZeroVectorDBSearchEngine:Source docstring:
Sıfır Dış Bağımlılıklı, Bellek İçi BM25 + T-Zero Latent Codebook Hibrit Arama Motoru.
Kind: Method
Source: tzero/tzero_jarvis/hybrid_search.py:63-71
Signature:
def __init__(self, k1: float = 1.5, b: float = 0.75):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/hybrid_search.py:74-79
Signature:
def tokenize(text: str) -> List[str]:Source docstring:
Gelişmiş regex tabanlı küçük harfe dönüştürücü ve temizleyici tokenizer.
Kind: Method
Source: tzero/tzero_jarvis/hybrid_search.py:81-112
Signature:
def add_document(self, doc_id: str, doc_type: str, title: str, content: str, discrete_code: Optional[int] = None, domain: str = 'GENERIC', metadata: Optional[Dict[str, Any]] = None) -> SearchDocument:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/hybrid_search.py:114-183
Signature:
def search(self, query: str, top_k: int = 10, target_domain: Optional[str] = None) -> List[SearchResult]:Source docstring:
Hibrit BM25 + Latent Codebook Arama Algoritması.
Kind: Method
Source: tzero/tzero_jarvis/hybrid_search.py:185-205
Signature:
def index_codebase_scanner_results(self, scanner_report: Dict[str, Any]) -> int:Source docstring:
T-Zero CodebaseScanner (AST) sonuçlarını anında arama indeksine katar.
Kind: Method
Source: tzero/tzero_jarvis/hybrid_search.py:207-214
Signature:
def get_stats(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Source: tzero/tzero_jarvis/latent_press.py
Source size: 137 lines | 2 classes | 4 functions
Module docstring:
T-ZERO LATENTPRESS: PRE-PREFILL CONTEXT COMPRESSION & QUANTIZATION ENGINE
Developer: [redacted] (Siber Akademi)
Version: 4.5.0
Bu modül, 2024-2025 "Latent Context Language Models (LCLM)" ve "LatentPress"
araştırma literatürünü uygulayarak; on binlerce kelimelik devasa log veya
kod bloklarını LLM prefill aşamasına girmeden önce upstream seviyede sıkıştırır,
MinHash LSH ile gereksiz tekrarları eler ve ultra-kompakt sanal bellek dizgisine
(<|tzero:mem:ID|>) dönüştürür.
Kind: Class
Source: tzero/tzero_jarvis/latent_press.py:24-51
Declaration:
class LatentPressResult:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/latent_press.py:38-51
Signature:
def to_dict(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/latent_press.py:54-137
Declaration:
class LatentPressCompressor:Source docstring:
Upstream Pre-Prefill Bağlam Sıkıştırıcı ve Uyarlamalı Kuantizasyon Motoru.
Kind: Method
Source: tzero/tzero_jarvis/latent_press.py:59-61
Signature:
def __init__(self, injector: Optional[DynamicVirtualMemoryInjector] = None):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/latent_press.py:64-77
Signature:
def _calculate_shannon_entropy(text: str) -> float:Source docstring:
Karakter dağılımı üzerinden Shannon Entropisini hesaplar.
Kind: Method
Source: tzero/tzero_jarvis/latent_press.py:79-137
Signature:
def compress_large_context(self, context_text: str, near_dup_threshold: float = 0.65) -> LatentPressResult:Source docstring:
Geniş metni anlamsal bloklara ayırır, MinHash ile yakın-kopyaları eler
ve Latent Soft-Prompt akışına dönüştürür.
Source: tzero/tzero_jarvis/memory_consolidation.py
Source size: 212 lines | 4 classes | 9 functions
Module docstring:
T-ZERO DUAL-MEMORY CONSOLIDATION ENGINE (HIPPOCAMPAL REPLAY)
Developer: [redacted] (Siber Akademi)
Version: 4.4.0
Bu modül, insan beynindeki hipokampus-neokorteks bellek konsolidasyonunu taklit eder:
1. EpisodicMemory (Kısa süreli epizodik tampon bellek)
2. Semantic Consolidation (Derin konsolidasyon / Gece rüyası döngüsü):
- Benzer epizotları kümeleme (Clustering)
- Çoklu adımlardan Makro-Üçlü (Macro-Triplet) sentezleme
- Çelişki Çözümleme (Contradiction Resolution & Temporal Superseding)
- Kalıcı Latent Codebook'a terfi ettirme (Promotion)
Kind: Class
Source: tzero/tzero_jarvis/memory_consolidation.py:25-45
Declaration:
class Episode:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:35-45
Signature:
def to_dict(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/memory_consolidation.py:49-60
Declaration:
class MacroTriplet:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:59-60
Signature:
def to_dict(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/memory_consolidation.py:63-89
Declaration:
class EpisodicMemoryBuffer:Source docstring:
Kısa süreli epizodik bellek tamponu (Rolling Ring-Buffer).
Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:68-70
Signature:
def __init__(self, max_capacity: int = 1000):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:72-86
Signature:
def record_episode(self, content: str, source: str = 'user', tags: Optional[List[str]] = None) -> Episode:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:88-89
Signature:
def get_active_episodes(self) -> List[Episode]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/memory_consolidation.py:92-212
Declaration:
class ConsolidationEngine:Source docstring:
Derin Bellek Konsolidasyonu ve Çelişki Giderme Motoru.
Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:97-100
Signature:
def __init__(self, codebook: Optional[VectorQuantizedCodebook] = None):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:102-174
Signature:
def consolidate(self) -> Dict[str, Any]:Source docstring:
Konsolidasyon Döngüsünü (Replay Cycle) çalıştırır.
1. Çelişki ve durum güncellemelerini yakalar (Örn: hata -> başarı).
2. Varlık kümeleri üzerinden makro kavramlar türetir.
3. Codebook'a deterministik hashlerle ekler.
Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:176-201
Signature:
def _resolve_contradictions(self, episodes: List[Episode]) -> int:Source docstring:
Zaman içindeki zıtlıkları tespit eder ve eskiyen bilgileri geçersiz (superseded) kılar.
Kind: Method
Source: tzero/tzero_jarvis/memory_consolidation.py:203-212
Signature:
def get_summary(self) -> Dict[str, Any]:Source docstring:
Konsolide edilmiş bellek özetini döndürür.
Source: tzero/tzero_jarvis/minhash_lsh.py
Source size: 184 lines | 2 classes | 8 functions
Module docstring:
T-ZERO SUB-MICROSECOND MINHASH LSH TRIPLET SIMILARITY ENGINE
Developer: [redacted] (Siber Akademi)
Version: 4.5.0
Bu modül, en son 2024-2025 LSH (Locality-Sensitive Hashing) ve MinHash
literatüründen esinlenilmiş; harici hiçbir nöral kütüphaneye ihtiyaç duymadan,
anlamsal üçlüler (Semantic Triplets) arasındaki Jaccard benzerliğini
mikrosaniyenin altında (<1 µs / nanosecond-tier) hesaplayan ve yakın-kopyaları
(near-duplicates) anında kümeleyen deterministik hash motorudur.
Kind: Function
Source: tzero/tzero_jarvis/minhash_lsh.py:29-37
Signature:
def _generate_hash_seeds(k: int = NUM_PERMUTATIONS) -> List[Tuple[int, int]]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/minhash_lsh.py:43-54
Declaration:
class MinHashSignature:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/minhash_lsh.py:49-54
Signature:
def jaccard_similarity(self, other: MinHashSignature) -> float:Source docstring:
İki imza arasındaki Jaccard benzerliğini hesaplar (Bitwise/Integer çarpışma oranı).
Kind: Class
Source: tzero/tzero_jarvis/minhash_lsh.py:57-184
Declaration:
class MinHashLSHEngine:Source docstring:
Sub-Mikrosaniye MinHash LSH Çizge Benzerlik ve Kümeleme Motoru.
Banding tekniği ile O(1) yakın-komşu araması yapar.
Kind: Method
Source: tzero/tzero_jarvis/minhash_lsh.py:63-69
Signature:
def __init__(self, bands: int = BANDS, rows_per_band: int = ROWS_PER_BAND):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/minhash_lsh.py:72-87
Signature:
def _shingle_triplet(triplet: SemanticTriplet) -> Set[str]:Source docstring:
Üçlünün bileşenlerinden 1-gram ve 2-gram anlamsal shingle'lar üretir.
Kind: Method
Source: tzero/tzero_jarvis/minhash_lsh.py:89-107
Signature:
def compute_signature(self, triplet: SemanticTriplet, code: int) -> MinHashSignature:Source docstring:
Üçlü için 64 boyutlu kompakt MinHash imzasını hesaplar.
Kind: Method
Source: tzero/tzero_jarvis/minhash_lsh.py:109-125
Signature:
def insert(self, triplet: SemanticTriplet, code: int) -> MinHashSignature:Source docstring:
Üçlüyü LSH tablosuna ekler ve bant kovalarına yerleştirir.
Kind: Method
Source: tzero/tzero_jarvis/minhash_lsh.py:127-157
Signature:
def query_near_duplicates(self, triplet: SemanticTriplet, threshold: float = 0.5) -> List[Dict[str, Any]]:Source docstring:
LSH kovaları üzerinden O(1) hızında adayları çeker ve
Jaccard benzerliği threshold üzerinde olanları döndürür.
Kind: Method
Source: tzero/tzero_jarvis/minhash_lsh.py:159-184
Signature:
def find_clusters(self, min_similarity: float = 0.7) -> List[List[int]]:Source docstring:
Tüm kayıtlı kodlar arasındaki benzerlik kümelerini (Clusters) çıkarır.
Source: tzero/tzero_jarvis/orchestrator.py
Source size: 337 lines | 2 classes | 15 functions
Module docstring:
T-ZERO JARVIS AUTONOMOUS AGENT ORCHESTRATOR
-------------------------------------------
Developer: [redacted] (Siber Akademi)
Version: 4.2.0
T-Zero'nun AST analiz ve token sıkıştırma motorunu, otonom çoklu ajan icra gücüyle
birleştiren ana orkestrasyon sistemi.
Özellikler:
- Hedef Ayrıştırma ve Planlama (Planner)
- T-Zero 3-Katmanlı Anlamsal Bellek Sıkıştırması (Layers A, B, C)
- Sıfır Maliyetli / API Key'siz Çıkarım Motoru
- Terminal Çalıştırma ve Otonom Kendi Kendini İyileştirme (Self-Healing Loop)
- %100 Zero-Leak Güvenlik Taraması
Kind: Class
Source: tzero/tzero_jarvis/orchestrator.py:50-80
Declaration:
class AutonomousGoalResult:Source docstring:
Otonom görev icra sonucu.
Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:52-60
Signature:
def __init__(self, goal: str):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:62-69
Signature:
def add_step(self, stage: str, message: str, status: str = 'done', details: Optional[Dict[str, Any]] = None):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:71-80
Signature:
def to_dict(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/orchestrator.py:83-292
Declaration:
class JarvisOrchestrator:Source docstring:
T-Zero Jarvis Otonom Süper-Ajan Orkestratörü.
Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:86-90
Signature:
def __init__(self, workspace_root: str = '.'):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:92-134
Signature:
def execute_terminal(self, command: str, cwd: Optional[str] = None, timeout: int = 40) -> Dict[str, Any]:Source docstring:
PowerShell / Komut satırı üzerinden komut çalıştırır.
Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:136-149
Signature:
def run_self_healing_command(self, command: str, max_retries: int = 2) -> Dict[str, Any]:Source docstring:
Komutu çalıştırır, hata oluşursa traceback'i analiz edip
otonom iyileştirme adımlarıyla tekrar dener.
Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:151-210
Signature:
def orchestrate_goal(self, goal: str, auto_heal: bool = True) -> AutonomousGoalResult:Source docstring:
Verilen hedefi T-Zero zekası ve anlamsal bellek sıkıştırmasıyla baştan sona icra eder.
Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:214-229
Signature:
def orchestrate_workspace(self, auto_apply_rules: bool = True, run_swarm: bool = True, run_diagnostics: bool = False) -> Dict[str, Any]:Source docstring:
Çalışma alanını (workspace) bir yönetici (executive orchestrator) gibi analiz eder,
tüm AI kural dosyalarını (.cursorrules, AGENT.md, ARCHITECTURE.md vb.) üretir/günceller,
PBFT konsensüsü ile denetler ve kendi kendini iyileştirir.
Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:231-233
Signature:
def profile_workspace(self) -> Dict[str, Any]:Source docstring:
Çalışma alanının detaylı profilini sözlük olarak döner.
Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:235-247
Signature:
def tune_workspace_rules(self, auto_apply: bool = True) -> Dict[str, Any]:Source docstring:
Yalnızca yönetişim ve AI kural dosyalarını (.md) sentezler ve uygular.
Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:249-251
Signature:
def diagnose_and_heal_workspace(self, command: Optional[str] = None) -> Dict[str, Any]:Source docstring:
Çalışma alanı test/derleme komutunu çalıştırır ve otonom cerrahi yamalar uygular.
Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:253-255
Signature:
def generate_plan(self, goal: str = '', context: str = '') -> Dict[str, Any]:Source docstring:
Hedefe veya projeye özel çok fazlı mühendislik eylem planı hazırlar.
Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:257-259
Signature:
def present_capabilities(self) -> str:Source docstring:
Jarvis'in çalışma alanındaki yetenek kataloğunu sunar.
Kind: Method
Source: tzero/tzero_jarvis/orchestrator.py:261-292
Signature:
def run_autonomous_benchmark(self, target_budget: int = 64000) -> Dict[str, Any]:Source docstring:
Otonom olarak çok modelli (Claude, GPT-4o, Gemini, DeepSeek) token tasarruf ve
finansal ROI benchmarkını çalıştırır, bağlam sıkıştırma bütçesini otomatik optimize eder.
Kind: Function
Source: tzero/tzero_jarvis/orchestrator.py:299-332
Signature:
def main():Source docstring:
CLI Giriş Noktası: python -m tzero_jarvis.orchestrator --workspace . --apply
Source: tzero/tzero_jarvis/self_healing.py
Source size: 383 lines | 3 classes | 10 functions
Module docstring:
Conservative, local Python repair with verification, policy guards, and rollback.
Commands are run locally with risk assessment and secret redaction.
Repairs are intentionally limited to cases that can be checked syntactically
and verified against local workspace ground truth.
Kind: Function
Source: tzero/tzero_jarvis/self_healing.py:37-39
Signature:
def agent_command_execution_enabled() -> bool:Source docstring:
Require the server operator to opt in before agent shell execution.
Kind: Class
Source: tzero/tzero_jarvis/self_healing.py:43-62
Declaration:
class ExecutionResult:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:61-62
Signature:
def to_dict(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/self_healing.py:66-72
Declaration:
class RepairProposal:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/self_healing.py:75-383
Declaration:
class SelfHealingExecutionEngine:Source docstring:
Propose limited repairs, then retain them only after command success.
Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:78-90
Signature:
def __init__(self, causal_graph: Optional[CausalTemporalGraph] = None, work_dir: Optional[str] = None, policy: Optional[CommandExecutionPolicy] = None, enforce_agent_policy: bool = False):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:92-203
Signature:
def run_command(self, command: str, timeout: int = 30, dry_run: Optional[bool] = None) -> ExecutionResult:Source docstring:
Execute command with risk assessment, policy gate, and secret sanitization.
Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:205-214
Signature:
def diagnose_error(self, error_text: str) -> Tuple[Optional[str], Optional[str], Optional[int]]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:216-222
Signature:
def _target(self, file_path: str) -> Optional[Path]:Source docstring:
Validate target path within workspace boundary and without symlink escapes.
Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:224-267
Signature:
def propose_repair(self, file_path: str, error_type: str, error_line: Optional[int], stderr: str) -> Optional[RepairProposal]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:269-278
Signature:
def auto_repair_python_file(self, file_path: str, error_type: str, error_line: Optional[int], stderr: str) -> bool:Source docstring:
Legacy direct repair: syntax checked, but not command verified.
Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:280-308
Signature:
def _replace_if_unchanged(self, path: Path, expected: bytes, replacement: bytes) -> bool:Source docstring:
Replace from a same-directory temporary file; refuse observed changes.
This is not a compare-and-swap: another process can still race the final
check. Atomic replacement avoids exposing a partially written file.
Kind: Method
Source: tzero/tzero_jarvis/self_healing.py:310-383
Signature:
def execute_and_heal(self, command: str, max_retries: int = 3, dry_run: Optional[bool] = None) -> ExecutionResult:Source docstring:
Execute command and apply verified, syntax-checked repairs with rollback on failure.
Source: tzero/tzero_jarvis/semantic_compressor.py
Source size: 887 lines | 6 classes | 29 functions
Module docstring:
T-ZERO JARVIS UNIVERSAL 3-LAYER SEMANTIC MEMORY & COMPRESSION ENGINE
---------------------------------------------------------------------
Developer: [redacted] (Siber Akademi)
Version: 4.3.0
Evrensel 3-Katmanlı Anlamsal Çekirdek ve Vektör Bellek Mimarisi:
Katman A: Çok Dilli ve Çok Alanlı Anlamsal Graf Çıkarımı (TR + EN + 12 Alanlı NER)
Katman B: Deterministik Vektör Kuantizasyon Sözlüğü (VQ Codebook + Graf Topolojisi)
Katman C: Dinamik Soft-Prompt Sanal Bellek Enjeksiyonu (<|tzero:mem:ID|>) + Bellek Arama
Kind: Class
Source: tzero/tzero_jarvis/semantic_compressor.py:23-36
Declaration:
class EntityType:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/semantic_compressor.py:40-47
Declaration:
class TypedEntity:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:44-47
Signature:
def to_tagged_string(self) -> str:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/semantic_compressor.py:51-80
Declaration:
class SemanticTriplet:Source docstring:
Saf anlamsal çizge üçlüsü (Graph Triplet) with NER.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:58-64
Signature:
def to_graph_string(self) -> str:Source docstring:
Kompakt çizge gösterimi üretir: (Özne)->[Yüklem]->(Nesne:TIP + Nesne:TIP | Bağlam:TIP)
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:66-70
Signature:
def to_compact_code(self) -> str:Source docstring:
Token tasarrufu sağlayan ultra sıkışık format: &S:Özne#P:Eylem#O:Nesneler#C:Bağlamlar
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:72-80
Signature:
def to_dict(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/semantic_compressor.py:83-447
Declaration:
class SemanticTripletExtractor:Source docstring:
Katman A: Dolgu kelimeleri temizleyip mantıksal çizgeye dönüştüren evrensel çıkarıcı.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:218-238
Signature:
def strip_turkish_suffixes(cls, word: str) -> str:Source docstring:
Kesme işaretini ve yönelme/ayrılma eklerini atar (ESP32'yi -> ESP32).
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:242-296
Signature:
def classify_entity(cls, token: str) -> str:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:300-310
Signature:
def detect_compound_predicate(cls, tokens: List[str]) -> Optional[Tuple[str, int, int]]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:313-344
Signature:
def _normalize_predicate(cls, raw_verb: str) -> str:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:347-447
Signature:
def extract_triplets(cls, text: str) -> List[SemanticTriplet]:Source docstring:
Metinden anlamsal graf üçlülerini eksiksiz ve deterministik çıkarır.
Kind: Class
Source: tzero/tzero_jarvis/semantic_compressor.py:450-725
Declaration:
class VectorQuantizedCodebook:Source docstring:
Katman B: VQ Codebook, Graf Topolojisi ve Kalıcı Disk Depolama.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:453-456
Signature:
def __init__(self, seed_code: int = 8421):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:458-547
Signature:
def _seed_reference_codes(self):Source docstring:
12 Temel Evrensel Bilim ve Mühendislik Alanı için Çekirdek Referans Senaryolar.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:549-554
Signature:
def _compute_signature(self, triplet: SemanticTriplet) -> str:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:556-569
Signature:
def register_triplet(self, triplet: SemanticTriplet) -> int:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:571-574
Signature:
def register_triplet_with_code(self, code_id: int, triplet: SemanticTriplet):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:576-577
Signature:
def lookup(self, code_id: int) -> Optional[SemanticTriplet]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:579-580
Signature:
def size(self) -> int:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:583-598
Signature:
def codes(self) -> Dict[int, Dict[str, Any]]:Source docstring:
Sözlükteki tüm kodları metadata sözlüğü olarak döndürür.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:603-647
Signature:
def query_graph(self, entity: Optional[str] = None, predicate: Optional[str] = None, context: Optional[str] = None, text_query: Optional[str] = None) -> List[Dict[str, Any]]:Source docstring:
Hafıza sözlüğünde kayıtlı çizgeleri varlık, eylem veya bağlam bazında filtreler.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:652-688
Signature:
def get_topology(self) -> Dict[str, Any]:Source docstring:
Tüm hafıza çizgelerinden düğüm (Node) ve kenar (Edge) listesi çıkarır.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:693-705
Signature:
def save_to_disk(self, filepath: Optional[str] = None) -> str:Source docstring:
Kayıtlı hafızayı diske JSON olarak serialize eder.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:707-725
Signature:
def load_from_disk(self, filepath: Optional[str] = None) -> int:Source docstring:
Diskteki kayıtlı hafızayı bellek sözlüğüne yükler.
Kind: Class
Source: tzero/tzero_jarvis/semantic_compressor.py:728-878
Declaration:
class DynamicVirtualMemoryInjector:Source docstring:
Katman C: Dinamik Çözücü & Soft-Prompt / Virtual KV-Cache Enjeksiyonu.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:731-732
Signature:
def __init__(self, codebook: Optional[VectorQuantizedCodebook] = None):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:734-773
Signature:
def compress_text_to_virtual_tokens(self, text: str) -> Dict[str, Any]:Source docstring:
Tekil veya kısa cümleleri 3 katmandan geçirir.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:778-817
Signature:
def compress_document(self, doc_text: str) -> Dict[str, Any]:Source docstring:
Geniş teknik dokümanları, logları veya konuşma geçmişlerini (1000+ kelime)
tam bir bilgi grafiğine ve kompozit sanal token zincirine dönüştürür.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:819-846
Signature:
def decode_virtual_token(self, token_or_code: Union[str, int]) -> Optional[Dict[str, Any]]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:848-850
Signature:
def query_memory(self, query: str) -> List[Dict[str, Any]]:Source docstring:
Hafıza sözlüğünde doğal dil veya varlık araması yapar.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:852-863
Signature:
def build_soft_prompt_prefix(self, virtual_tokens: List[str]) -> str:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/semantic_compressor.py:869-878
Signature:
def compress_statement(self, text: str) -> Dict[str, Any]:Source docstring:
Tekil bir cümleyi hızlıca sanal bellek tokenına dönüştürür.
Kind: Function
Source: tzero/tzero_jarvis/semantic_compressor.py:883-884
Signature:
def get_global_compressor() -> DynamicVirtualMemoryInjector:Source docstring: none; consult the linked implementation rather than inferring behavior.
Source: tzero/tzero_jarvis/swarm.py
Source size: 282 lines | 7 classes | 13 functions
Module docstring:
T-ZERO AUTONOMOUS SWARM MULTI-AGENT ORCHESTRATION ENGINE
Developer: [redacted] (Siber Akademi)
Version: 4.4.0
Bu modül, JARVIS liderliğinde birbirleriyle T-Zero anlamsal tokenları (<|tzero:mem:...|>)
üzerinden haberleşen 5 uzman ajandan oluşan otonom bir sürüyü (Swarm) yönetir:
1. SecuritySentinelAgent (Sıfır Sızıntı & Siber Güvenlik)
2. EmbeddedHardwareAgent (ESP32, STM32, Donanım & Protokoller)
3. ASTOptimizerAgent (T-1 -> T-4 Mimari ve Token Tasarrufu)
4. AutonomousDevOpsAgent (Build, Test ve Ortam Doğrulama)
5. OrchestratorPrimeAgent (JARVIS - Sürü Lideri & Karar Motoru)
Kind: Class
Source: tzero/tzero_jarvis/swarm.py:27-49
Declaration:
class SwarmAgentReport:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/swarm.py:38-49
Signature:
def to_dict(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/swarm.py:52-59
Declaration:
class BaseSwarmAgent:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/swarm.py:53-56
Signature:
def __init__(self, name: str, role: str, injector: DynamicVirtualMemoryInjector):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/swarm.py:58-59
Signature:
def evaluate(self, mission_goal: str, context: str = '') -> SwarmAgentReport:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/swarm.py:62-96
Declaration:
class SecuritySentinelAgent(BaseSwarmAgent):Source docstring:
Siber Güvenlik ve Zero-Leak Muhafızı.
Kind: Method
Source: tzero/tzero_jarvis/swarm.py:64-65
Signature:
def __init__(self, injector: DynamicVirtualMemoryInjector):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/swarm.py:67-96
Signature:
def evaluate(self, mission_goal: str, context: str = '') -> SwarmAgentReport:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/swarm.py:99-133
Declaration:
class EmbeddedHardwareAgent(BaseSwarmAgent):Source docstring:
Gömülü Donanım, Mikrodenetleyiciler ve Veriyolu Uzmanı.
Kind: Method
Source: tzero/tzero_jarvis/swarm.py:101-102
Signature:
def __init__(self, injector: DynamicVirtualMemoryInjector):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/swarm.py:104-133
Signature:
def evaluate(self, mission_goal: str, context: str = '') -> SwarmAgentReport:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/swarm.py:136-161
Declaration:
class ASTOptimizerAgent(BaseSwarmAgent):Source docstring:
T-Zero AST ve Mimari Token Tasarruf Uzmanı.
Kind: Method
Source: tzero/tzero_jarvis/swarm.py:138-139
Signature:
def __init__(self, injector: DynamicVirtualMemoryInjector):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/swarm.py:141-161
Signature:
def evaluate(self, mission_goal: str, context: str = '') -> SwarmAgentReport:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/swarm.py:164-189
Declaration:
class AutonomousDevOpsAgent(BaseSwarmAgent):Source docstring:
Build, Test ve Ortam Doğrulayıcısı.
Kind: Method
Source: tzero/tzero_jarvis/swarm.py:166-167
Signature:
def __init__(self, injector: DynamicVirtualMemoryInjector):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/swarm.py:169-189
Signature:
def evaluate(self, mission_goal: str, context: str = '') -> SwarmAgentReport:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/swarm.py:192-282
Declaration:
class SwarmCoordinator:Source docstring:
JARVIS Otonom Sürü Orkestratörü (Swarm Coordinator).
5 ajanı aynı anda veya sıralı olarak koşturup nihai kararı sentezler.
Kind: Method
Source: tzero/tzero_jarvis/swarm.py:198-209
Signature:
def __init__(self, injector: Optional[DynamicVirtualMemoryInjector] = None, causal_graph: Optional[CausalTemporalGraph] = None):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/swarm.py:211-282
Signature:
def coordinate_mission(self, mission_goal: str, context: str = '') -> Dict[str, Any]:Source docstring:
Görevi sürüye dağıtır, tüm uzman raporlarını toplar ve JARVIS liderliğinde sentezler.
Source: tzero/tzero_jarvis/swarm_bft.py
Source size: 144 lines | 2 classes | 3 functions
Module docstring:
T-ZERO BYZANTINE FAULT-TOLERANT (BFT) MULTI-AGENT CONSENSUS PROTOCOL
Developer: [redacted] (Siber Akademi)
Version: 4.5.0
Bu modül, dağıtık sistemlerdeki PBFT (Practical Byzantine Fault Tolerance)
ve Raft konsensüs mekanizmalarını otonom AI ajan sürüsüne uyarlar:
1. Dinamik Ajan İtibar & Güven Ağırlıkları (w_i in [0.1, 1.0])
2. Halüsinasyon ve Aykırı Değer (Outlier) İzolasyonu
3. Güvenlik Muhafızı Mutlak Veto Yetkisi (Zero-Leak Veto Protection)
4. 3-Aşamalı BFT Oylama: Pre-Prepare -> Prepare -> Commit (2/3 Ağırlıklı Quorum)
Kind: Class
Source: tzero/tzero_jarvis/swarm_bft.py:24-52
Declaration:
class BFTConsensusCertificate:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/swarm_bft.py:38-52
Signature:
def to_dict(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/swarm_bft.py:55-144
Declaration:
class ByzantineFaultTolerantSwarm:Source docstring:
PBFT / Raft Tabanlı Otonom Ajan Konsensüs Yöneticisi.
Kind: Method
Source: tzero/tzero_jarvis/swarm_bft.py:68-71
Signature:
def __init__(self, coordinator: Optional[SwarmCoordinator] = None):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/swarm_bft.py:73-144
Signature:
def reach_consensus(self, mission_goal: str, context: str = '') -> BFTConsensusCertificate:Source docstring:
3 Aşamalı BFT Konsensüs Protokolünü çalıştırır.
Source: tzero/tzero_jarvis/workspace_orchestrator.py
Source size: 1178 lines | 4 classes | 25 functions
Module docstring:
T-ZERO JARVIS MASTER WORKSPACE ORCHESTRATOR & EXECUTIVE GOVERNANCE ENGINE
------------------------------------------------------------------------
Developer: [redacted] (Siber Akademi)
Version: 5.0.0
Evrensel Çalışma Alanı Yöneticisi ve Otonom Orkestratör:
Herhangi bir yazılım projesini (Python, TypeScript, JavaScript, Rust, Go, C++,
Java, C#, Monorepo, Microservice vb.) derinlemesine analiz eder, teknoloji yığınını
ve mimari katmanlarını tespit eder; yapay zeka kodlama ajanları (Cursor, Antigravity,
Cline, Windsurf, Claude Code, GitHub Copilot) için en gelişmiş, projeye özel
kuralları (.cursorrules, AGENT.md, ARCHITECTURE.md, .clinerules vb.) otomatik
üretir ve çoklu-ajan PBFT konsensüsü ile yönetir.
Temel Yetenekler:
1. Derin Poliglot Çalışma Alanı Profilleme (WorkspaceProfiler)
2. Akıllı Mimari Katman ve İçe Aktarma Sınırı Tespiti (Layer Boundary Detection)
3. Özelleştirilmiş Yapay Zeka Kural ve Doküman Sentezi (WorkspaceGovernanceSynthesizer)
4. PBFT Sürü Güvenlik & Mimari Denetimi (Swarm Orchestration)
5. Çapraz Yığın Otonom Kendi Kendini Onarma ve Hata Teşhisi (Self-Healing Loop)
6. %100 Çevrimdışı, Sıfır Maliyetli ve Sıfır Sızıntı (%100 Zero-Leak)
Kind: Class
Source: tzero/tzero_jarvis/workspace_orchestrator.py:44-99
Declaration:
class WorkspaceProfile:Source docstring:
Çalışma alanının çok boyutlu teknik ve mimari profili.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:72-99
Signature:
def to_dict(self) -> Dict[str, Any]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/workspace_orchestrator.py:102-496
Declaration:
class WorkspaceProfiler:Source docstring:
Evrensel çalışma alanı tarayıcısı ve teknoloji yığını çözümleyicisi.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:137-140
Signature:
def __init__(self, workspace_root: str):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:142-157
Signature:
def _read_gitignore_patterns(self) -> List[str]:Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:159-496
Signature:
def profile(self) -> WorkspaceProfile:Source docstring:
Çalışma alanını baştan sona analiz ederek kapsamlı bir profil üretir.
Kind: Class
Source: tzero/tzero_jarvis/workspace_orchestrator.py:499-822
Declaration:
class WorkspaceGovernanceSynthesizer:Source docstring:
Teknoloji yığınına özel, en gelişmiş yapay zeka ajan yönetişim dokümanları üreticisi.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:503-549
Signature:
def generate_cursorrules(profile: WorkspaceProfile) -> str:Source docstring:
Cursor IDE için projeye özel .cursorrules dosyası üretir.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:552-619
Signature:
def generate_agent_md(profile: WorkspaceProfile) -> str:Source docstring:
Antigravity, AutoGPT ve Otonom Ajanlar için AGENT.md / AGENTS.md yönergesi üretir.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:622-641
Signature:
def generate_clinerules(profile: WorkspaceProfile) -> str:Source docstring:
Cline & Roo-Code için özel .clinerules üretir.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:644-654
Signature:
def generate_windsurfrules(profile: WorkspaceProfile) -> str:Source docstring:
Windsurf Cascade için .windsurfrules üretir.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:657-676
Signature:
def generate_claude_instructions(profile: WorkspaceProfile) -> str:Source docstring:
Claude Code CLI için CLAUDE.md yönergeleri üretir.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:679-687
Signature:
def generate_copilot_instructions(profile: WorkspaceProfile) -> str:Source docstring:
GitHub Copilot için .github/copilot-instructions.md üretir.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:690-731
Signature:
def generate_cursor_mdc_rules(profile: WorkspaceProfile) -> Dict[str, str]:Source docstring:
Modern Cursor modular .cursor/rules/*.mdc formatı üretir.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:734-781
Signature:
def generate_architecture_md(profile: WorkspaceProfile) -> str:Source docstring:
Mermaid topoloji diyagramlı kapsamlı ARCHITECTURE.md üretir.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:784-801
Signature:
def generate_tzero_rules_json(profile: WorkspaceProfile) -> str:Source docstring:
tzero.rules.json mimari sınır doğrulama matrisini üretir.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:804-822
Signature:
def synthesize_all(cls, profile: WorkspaceProfile) -> Dict[str, str]:Source docstring:
Tüm yönetişim ve AI kural dosyalarını tek seferde üretir.
Kind: Class
Source: tzero/tzero_jarvis/workspace_orchestrator.py:825-1178
Declaration:
class WorkspaceOrchestrator:Source docstring:
JARVIS MASTER WORKSPACE ORCHESTRATOR
------------------------------------
Çalışma alanını otonom bir yönetici gibi analiz eden, yapılandıran,
AI kural dosyalarını (.md) en gelişmiş şekilde üreten, PBFT konsensüsüyle
denetleyen ve kendi kendini iyileştiren ana sistem.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:834-839
Signature:
def __init__(self, workspace_root: str = '.'):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:841-843
Signature:
def profile_workspace(self) -> WorkspaceProfile:Source docstring:
Çalışma alanının detaylı profilini çıkarır.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:845-848
Signature:
def synthesize_rules(self, profile: Optional[WorkspaceProfile] = None) -> Dict[str, str]:Source docstring:
Çalışma alanına özel tüm AI yönetişim dosyalarının içeriğini hazırlar.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:850-871
Signature:
def apply_governance_rules(self, rules: Optional[Dict[str, str]] = None, overwrite: bool = True) -> List[str]:Source docstring:
Üretilen .md ve konfigürasyon kurallarını diske yazar.
Mevcut dosyalar güvenli bir şekilde güncellenir.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:873-890
Signature:
def run_swarm_audit(self, profile: Optional[WorkspaceProfile] = None) -> Dict[str, Any]:Source docstring:
5-Ajanlı PBFT Sürüsünü (Security, Hardware, AST Optimizer, DevOps, JARVIS Prime)
çalışma alanı denetimi için göreve çağırır.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:892-901
Signature:
def run_workspace_diagnostics_and_heal(self, command: Optional[str] = None) -> Dict[str, Any]:Source docstring:
Çalışma alanı test komutunu çalıştırır, hata oluşursa T-Zero otonom
cerrahi yama (self-healing) motoru ile analiz edip çözer.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:903-966
Signature:
def orchestrate_workspace(self, auto_apply_rules: bool = True, run_swarm: bool = True, run_diagnostics: bool = False) -> Dict[str, Any]:Source docstring:
JARVIS ANA ORKESTRASYON AKIŞI:
1. Çalışma alanını poliglot olarak tara ve profille
2. Özel .md yönetişim kurallarını (.cursorrules, AGENT.md, ARCHITECTURE.md vb.) üret
3. Talep edilirse diske uygula (auto-apply)
4. 5-Ajanlı PBFT Sürüsü ile güvenlik ve mimari konsensüsü sağla
5. Talep edilirse testleri çalıştır ve kendi kendini iyileştir
6. Master Yönetişim Raporu (WORKSPACE_ORCHESTRATION.md) oluştur
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:968-1035
Signature:
def _generate_master_report_md(self, profile: WorkspaceProfile, applied_files: List[str], swarm_result: Optional[Dict[str, Any]], diag_result: Optional[Dict[str, Any]], duration_ms: float) -> str:Source docstring:
Kapsamlı WORKSPACE_ORCHESTRATION.md metnini biçimlendirir.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:1037-1093
Signature:
def format_capabilities_catalog(self, profile: Optional[WorkspaceProfile] = None) -> str:Source docstring:
Kullanıcıya veya yapay zeka asistanına Jarvis'in neler yapabileceğini sunan interaktif katalog.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:1095-1154
Signature:
def generate_executive_plan(self, goal: str = '', context: str = '') -> Dict[str, Any]:Source docstring:
Verilen hedefe veya genel çalışma alanına özel çok fazlı mühendislik eylem planı hazırlar.
Kind: Method
Source: tzero/tzero_jarvis/workspace_orchestrator.py:1156-1178
Signature:
def _format_plan_markdown(self, goal: str, prof: WorkspaceProfile, phases: List[Dict[str, Any]]) -> str:Source docstring: none; consult the linked implementation rather than inferring behavior.
Source: tzero/tzero_jarvis/zero_key_router.py
Source size: 105 lines | 2 classes | 5 functions
Module docstring:
JARVIS ZERO-KEY INTELLIGENCE ROUTER
-----------------------------------
Developer: [redacted] (Siber Akademi)
Version: 4.2.0
Runs keyless inference through a local Ollama API and exposes a separate web
search helper.
Kind: Class
Source: tzero/tzero_jarvis/zero_key_router.py:17-33
Declaration:
class ZeroCostSecurityGuard:Source docstring:
Ücretli hiçbir modelin çağrılmamasını garanti eden güvenlik kalkanı.
Kind: Method
Source: tzero/tzero_jarvis/zero_key_router.py:26-33
Signature:
def assert_free(cls, model_name: str):Source docstring: none; consult the linked implementation rather than inferring behavior.
Kind: Class
Source: tzero/tzero_jarvis/zero_key_router.py:36-101
Declaration:
class ZeroKeyAIRouter:Source docstring:
API Key gerektirmeyen, hatasız ve yedekli yapay zeka motoru.
Kind: Method
Source: tzero/tzero_jarvis/zero_key_router.py:40-47
Signature:
def check_ollama_available(cls) -> bool:Source docstring:
Yerel makinede Ollama'nın çalışıp çalışmadığını yoklar.
Kind: Method
Source: tzero/tzero_jarvis/zero_key_router.py:50-57
Signature:
def call_ollama(cls, prompt: str, model: str = 'qwen2.5:3b') -> str:Source docstring:
Yerel Ollama servisi üzerinden tamamen internetsiz çıkarım yapar.
Kind: Method
Source: tzero/tzero_jarvis/zero_key_router.py:60-73
Signature:
def search_duckduckgo_free(cls, query: str, max_results: int = 4) -> str:Source docstring:
API anahtarı olmadan canlı internet araması yapar.
Kind: Method
Source: tzero/tzero_jarvis/zero_key_router.py:76-99
Signature:
def query_intelligence(cls, prompt: str, system_prompt: Optional[str] = None) -> Dict[str, Any]:Source docstring:
Return an Ollama completion or report that local inference is unavailable.