Onboarding Paths
Beginner
Master UniversalInput, run_canonical_pipeline(), and graph extraction.
Intermediate
Authenticated session continuation, Kaalka management, DOM stabilization.
Enterprise / Security
State diffing across deployments, replay proofs, policy enforcement.
Deployment State Diffing Tutorial
Compare staging and production using deterministic graph hashes to detect structural drift.
diff_audit.py
from webweavex import UniversalInput, run_canonical_pipeline
def audit_deployment_diff(staging_url: str, production_url: str):
staging = run_canonical_pipeline(UniversalInput(source=staging_url, sourceType="web"))
prod = run_canonical_pipeline(UniversalInput(source=production_url, sourceType="web"))
if staging.pipeline_hash == prod.pipeline_hash:
print("Staging and Production are mathematically EQUIVALENT.")
print(f" Hash: {staging.pipeline_hash}")
else:
print("Structural divergence detected!")
print(f" Staging: {staging.pipeline_hash}")
print(f" Production: {prod.pipeline_hash}")
audit_deployment_diff("https://staging.example.com", "https://app.example.com")
Migration Matrix
| Feature | Legacy Scrapers | WebWeaveX |
|---|---|---|
| Element Selection | Fragile CSS Selectors | Deterministic Node UUIDs |
| Auth Continuity | Re-login every run | Kaalka v5 Encrypted Persistence |
| Output Verification | String diffing | SHA-256 State Hash Verification |
| SPA Support | Breaks on dynamic content | DOM Stabilization |
| Replay | Not possible | Topological Equivalence Proofs |
| Cross-Language | Language-specific hacks | Identical Parity Across 5 SDKs |
Troubleshooting
Hash Mismatch
Verify all SDK versions match v3.0.0 and Kaalka key derivation parameters are identical.
Session Expiry
Encrypted sessions expire based on Kaalka time-indexed key. Re-initialize with fresh credentials.
DOM Volatility
Check for framework-generated volatile attributes (React keys, Vue UIDs) that the stabilizer should filter.
Memory Overhead
Use max_depth parameter in UniversalInput to limit graph traversal depth.