Skip to content
KitploitKITPLOIT
उपकरणब्लॉग
जमा करें
उपकरणब्लॉग
जमा करें

हैकिंग, पेनटेस्ट और साइबर सुरक्षा उपकरण आपके सुरक्षा शस्त्रागार के लिए!

Kitploit हैकिंग, साइबर सुरक्षा और पेंटेस्टिंग टूल्स की एक निर्देशिका है। कमजोरियों को खोजने, सिस्टम का विश्लेषण करने, परीक्षण को स्वचालित करने और अपनी सुरक्षा को मजबूत करने के लिए नवीनतम प्रोजेक्ट अपडेट खोजें।

··फ़ीड·संपर्क·गोपनीयता·© 2026 Kitploit

टूल निर्देशिका

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
Aura-State — Z3 प्रमेय सिद्धांत, CTL मॉडल जाँच, और प्रमाणित रूप से सही डेटा निष्कर्षण के लिए कंफर्मल भविष्यवाणी के माध्यम से औपचारिक सत्यापन के साथ LLM वर्कफ़्लो को स्टेट मशीन के रूप में बनाने के लिए पायथन फ्रेमवर्क। | Kitploit
उपकरण/GitHubGitHub/munshi007/aura-state
स्थैतिक विश्लेषणकोड विश्लेषणमशीन लर्निंगपेपर और शोधलर्निंग और शिक्षाचयनित संसाधनAI सुरक्षा
GitHubmunshi007/aura-state

Aura-State

Z3 प्रमेय सिद्धांत, CTL मॉडल जाँच, और प्रमाणित रूप से सही डेटा निष्कर्षण के लिए कंफर्मल भविष्यवाणी के माध्यम से औपचारिक सत्यापन के साथ LLM वर्कफ़्लो को स्टेट मशीन के रूप में बनाने के लिए पायथन फ्रेमवर्क।

रिपॉजिटरी देखें
2865 महीने पहलेKitploit द्वारा समीक्षित

सबसे लोकप्रिय

सभी देखें →

हमारे समुदाय द्वारा सबसे अधिक उपयोग किए जाने वाले उपकरण खोजें।

सभी उपकरण खोजें

हमारे उपकरणों का संग्रह ब्राउज़ करें

सभी उपकरण देखें →
साझा करें

Aura-State

एक Python फ्रेमवर्क जो LLM वर्कफ़्लो को स्टेट मशीन के रूप में बनाने के लिए है, जिसमें फॉर्मल वेरिफिकेशन अंतर्निहित है।

root@kitploit:~
pip install git+https://github.com/munshi007/Aura-State.git

यह क्या है

अधिकांश LLM फ्रेमवर्क आपको API कॉल को जोड़ने और सर्वश्रेष्ठ की उम्मीद करने देते हैं। Aura-State एक अलग दृष्टिकोण अपनाता है: आप अपने वर्कफ़्लो को नोड्स के एक ग्राफ़ के रूप में परिभाषित करते हैं, प्रत्येक का एक विशिष्ट कार्य होता है, और फ्रेमवर्क एक्सट्रैक्शन, वेरिफिकेशन और रूटिंग को संभालता है।

नोड्स के बीच मुख्य अंतर यह है:

  • रूटिंग गणितीय रूप से स्कोर किया जाता है (MCTS), LLM द्वारा तय नहीं किया जाता है
  • गणित एक सैंडबॉक्स्ड इंटरप्रेटर में चलता है, कभी हल्यूसिनेटेड नहीं होता
  • एक्सट्रैक्शन को Z3 का उपयोग करके औपचारिक रूप से सही साबित किया जा सकता है
  • वर्कफ़्लो को चलाने से पहले सुरक्षा गुणों के लिए सत्यापित किया जा सकता है

त्वरित उदाहरण

root@kitploit:~
from aura_state import AuraEngine, Node, CompiledTransition
from pydantic import BaseModel, Field
from openai import OpenAI

# Define what you want to extract
class LeadData(BaseModel):
    name: str = Field(description="Full name")
    budget: int = Field(description="Budget in USD")
    timeline: str = Field(description="Buying timeline")

# Define a node that extracts it
class ExtractLead(Node):
    system_prompt = "Extract lead info from a sales call transcript."
    extracts = LeadData

    def handle(self, user_text, extracted_data=None, memory=None):
        return "QualifyBudget", extracted_data.model_dump()

# Define a node that does deterministic math (no LLM)
class QualifyBudget(Node):
    system_prompt = "Score the lead."
    sandbox_rule = "result = budget > 100000"  # runs in sandboxed AST, not LLM

    def handle(self, user_text, extracted_data=None, memory=None):
        return "END", memory

# Wire it up
engine = AuraEngine(llm_client=OpenAI())
engine.register(ExtractLead, QualifyBudget)
engine.connect([
    CompiledTransition(from_node=ExtractLead, to_node=QualifyBudget),
])

# Run
next_state, data = engine.process("ExtractLead", user_text="Hi, I'm Sarah. Budget is $450k.")

हुड के नीचे क्या होता है

जब आप engine.process() को कॉल करते हैं, तो यह क्रम में इन चरणों से गुज़रता है:

root@kitploit:~
1. Adaptive DAG health check     →  Should this node be skipped or retried?
2. GraphRAG cache lookup          →  Have we seen this exact input before? Skip the LLM.
3. Few-shot injection             →  Find similar past successes, inject as examples.
4. LLM extraction + verification  →  Extract data, verify with Z3, retry if wrong.
5. Your node's handle() method    →  Your business logic runs here.
6. MCTS Routing (UCB1)        →  Score branches using UCB1 + AdaptiveDAG metrics.
7. State serialization            →  Save state for time-travel debugging.
8. Speculative execution          →  Pre-compute likely next nodes in parallel.

फॉर्मल वेरिफिकेशन (दिलचस्प हिस्सा)

यही वास्तव में Aura-State को अन्य फ्रेमवर्क से अलग बनाता है।

चलाने से पहले अपने वर्कफ़्लो ग्राफ़ को सत्यापित करें

आपका नोड ग्राफ़ एक Kripke संरचना में संकलित होता है और टेम्पोरल लॉजिक गुणों के विरुद्ध जाँचा जाता है:

root@kitploit:~
from aura_state import verify_engine, reachability, mutual_exclusion, eventual_completion

results = verify_engine(engine, [
    {"description": "QualifyBudget is reachable", "formula": reachability("QualifyBudget")},
    {"description": "All paths terminate", "formula": eventual_completion("QualifyBudget")},
])
# Result: PROVEN or VIOLATED, with the exact states that satisfy/violate

यह वही तकनीक है जिसका उपयोग हार्डवेयर सर्किट और उड़ान नियंत्रण प्रणालियों को सत्यापित करने के लिए किया जाता है (CTL मॉडल चेकिंग, Clarke et al. 1986)।

साबित करें कि निकाला गया डेटा सही है

LLM द्वारा मान निकालने के बाद, Z3 (Microsoft Research से एक थ्योरम प्रोवर) औपचारिक रूप से साबित कर सकता है कि वे आपकी बाधाओं को संतुष्ट करते हैं:

root@kitploit:~
from aura_state import prove_extraction

result = prove_extraction(
    {"budget": 450000, "cost_per_sqft": 3, "total": 1350000},
    obligations=["budget > 0", "total == budget * cost_per_sqft"],
)
# result.verified = True
# If False, Z3 gives you a counterexample showing exactly what broke

एक्सट्रैक्शन पर विश्वास अंतराल

एक्सट्रैक्शन को कई बार चलाएँ और वितरण-मुक्त विश्वास अंतराल प्राप्त करें:

root@kitploit:~
from aura_state import conformal_interval

budgets = [450000, 452000, 448000, 450000, 451000]
ci = conformal_interval(budgets, confidence=0.95)
# ci.lower = 447800, ci.upper = 452200

यह कॉन्फॉर्मल प्रेडिक्शन (Vovk et al., 2005) का उपयोग करता है — किसी वितरणीय धारणा की आवश्यकता नहीं है।

बेंचमार्क परिणाम

हमने GPT-4o-mini का उपयोग करके 3 रियल-एस्टेट सेल्स ट्रांसक्रिप्ट को 4-नोड पाइपलाइन के माध्यम से चलाया (कुल 30 API कॉल):

root@kitploit:~
फ़ील्ड              सटीकता
──────────────   ──────────
नाम                  100%
बजट                100%
बेडरूम              100%
पूर्व-अनुमोदित       90%
समयरेखा              90%
शहर                   80%

टेम्पोरल गुण:       3/3 साबित
Z3 प्रूफ दायित्व:    20/20 पास
रूटिंग सटीकता:        90%
औसत विलंबता:       1.4s
root@kitploit:~
# Try it yourself — no API key needed
python examples/benchmark/run_benchmark.py

# With real LLM calls (needs OPENAI_API_KEY in .env)
python examples/benchmark/run_live.py --model gpt-4o-mini --runs 3

परियोजना संरचना

root@kitploit:~
aura_state/
├── core/
│   ├── engine.py              # Main engine — process() + MCTS/UCB1 routing
│   ├── adaptive_graph.py      # Node health monitoring
│   ├── verification_loop.py   # Extract → verify → retry loop
│   └── providers.py           # Multi-model routing + cost tracking
├── compiler/
│   ├── schema_compiler.py     # JSON Schema → Node classes
│   └── dspy_tuner.py          # KNN few-shot selection
├── verification/
│   ├── temporal_verifier.py   # Kripke + CTL model checking
│   ├── conformal.py           # Conformal prediction intervals
│   └── proof_engine.py        # Z3 proofs
├── execution/
│   ├── tracer.py              # State serialization (time-travel debug)
│   └── sandbox.py             # Safe math execution (AST validated)
├── memory/
│   ├── trajectory_cache.py    # Subgraph isomorphism cache
│   └── pruner.py              # Context window optimization
└── consensus/
    └── auto_vote.py           # Multi-run extraction with voting

स्थापना

root@kitploit:~
pip install git+https://github.com/munshi007/Aura-State.git

Python 3.10+ आवश्यक है। निर्भरताएँ: pydantic, instructor, openai, networkx, pyModelChecking, z3-solver, pyyaml।

परीक्षण

root@kitploit:~
python -m pytest tests/ -v
# 65 tests passing

दस्तावेज़

  • उपयोग गाइड — प्रत्येक सुविधा के लिए कोड उदाहरण
  • एल्गोरिथम संदर्भ — CTL, Z3, MCTS, UCB1, कॉनफॉर्मल प्रेडिक्शन में गहन विवरण
  • योगदान — आर्किटेक्चर अवलोकन और योगदान कैसे करें
  • बेंचमार्क — सिंथेटिक और लाइव बेंचमार्क

लाइसेंस

MIT

टूल डाउनलोड करें