verisight 2.2.4__tar.gz → 2.2.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {verisight-2.2.4/verisight.egg-info → verisight-2.2.5}/PKG-INFO +1 -1
  2. {verisight-2.2.4 → verisight-2.2.5}/backend/__init__.py +1 -1
  3. {verisight-2.2.4 → verisight-2.2.5}/backend/agent.py +29 -6
  4. {verisight-2.2.4 → verisight-2.2.5}/backend/main.py +4 -4
  5. {verisight-2.2.4 → verisight-2.2.5}/backend/mcp_server.py +2 -2
  6. {verisight-2.2.4 → verisight-2.2.5}/pyproject.toml +1 -1
  7. {verisight-2.2.4 → verisight-2.2.5/verisight.egg-info}/PKG-INFO +1 -1
  8. {verisight-2.2.4 → verisight-2.2.5}/LICENSE +0 -0
  9. {verisight-2.2.4 → verisight-2.2.5}/README.md +0 -0
  10. {verisight-2.2.4 → verisight-2.2.5}/backend/aws_adapter.py +0 -0
  11. {verisight-2.2.4 → verisight-2.2.5}/backend/benchmark_runner.py +0 -0
  12. {verisight-2.2.4 → verisight-2.2.5}/backend/cli.py +0 -0
  13. {verisight-2.2.4 → verisight-2.2.5}/backend/forensics.py +0 -0
  14. {verisight-2.2.4 → verisight-2.2.5}/backend/generate_demo_samples.py +0 -0
  15. {verisight-2.2.4 → verisight-2.2.5}/backend/generate_real_life_samples.py +0 -0
  16. {verisight-2.2.4 → verisight-2.2.5}/backend/test_mcp_tools.py +0 -0
  17. {verisight-2.2.4 → verisight-2.2.5}/backend/test_sanity.py +0 -0
  18. {verisight-2.2.4 → verisight-2.2.5}/setup.cfg +0 -0
  19. {verisight-2.2.4 → verisight-2.2.5}/verisight.egg-info/SOURCES.txt +0 -0
  20. {verisight-2.2.4 → verisight-2.2.5}/verisight.egg-info/dependency_links.txt +0 -0
  21. {verisight-2.2.4 → verisight-2.2.5}/verisight.egg-info/entry_points.txt +0 -0
  22. {verisight-2.2.4 → verisight-2.2.5}/verisight.egg-info/requires.txt +0 -0
  23. {verisight-2.2.4 → verisight-2.2.5}/verisight.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: verisight
3
- Version: 2.2.4
3
+ Version: 2.2.5
4
4
  Summary: Sub-3ms Physical Multi-Spectral Image Forensics & Presentation Attack Detection engine powered by OpenCV 5 and Model Context Protocol (MCP).
5
5
  Author-email: Aditya Raj Tiwari <adityasantosh2026@gmail.com>
6
6
  License-Expression: Apache-2.0
@@ -30,7 +30,7 @@ from forensics import (
30
30
  tool_perceptual_hash
31
31
  )
32
32
 
33
- __version__ = "2.2.4"
33
+ __version__ = "2.2.5"
34
34
  __author__ = "Aditya Raj Tiwari"
35
35
  __license__ = "Apache-2.0"
36
36
 
@@ -38,7 +38,7 @@ class ForensicAgent:
38
38
  JPEG Ghost Sweeper, and PRNU Sensor Noise.
39
39
  """
40
40
  def __init__(self):
41
- self.version = "2.2.4"
41
+ self.version = "2.2.5"
42
42
 
43
43
  def run_investigation(
44
44
  self,
@@ -478,14 +478,37 @@ class ForensicAgent:
478
478
  (ghost_discrepancy >= 1.60 and chrom_diff >= 45.0)
479
479
  )
480
480
  pillar_ghost = (has_ghost_mismatch and ela_score >= 30.0 and has_isolated_cluster)
481
- pillar_noise = (noise_divergence >= 50.0 and (has_ghost_mismatch or is_feathered or sensor_noise_std < 1.15) and has_isolated_cluster)
481
+
482
+ # Seam boundary feathering requires concurrence with compression or noise divergence
483
+ # (prevents high-contrast organic edges with 0 ghost from falsely triggering)
484
+ pillar_seam = (
485
+ is_feathered and
486
+ (has_ghost_mismatch or ghost_discrepancy >= 0.70 or noise_divergence >= 60.0 or sensor_noise_std < 1.15) and
487
+ has_isolated_cluster
488
+ )
489
+
490
+ # Sensor noise divergence: requires corroborating physical void, ghost mismatch, or seam
491
+ pillar_noise = (
492
+ noise_divergence >= 50.0 and
493
+ (has_ghost_mismatch or (is_feathered and ghost_discrepancy >= 0.70) or sensor_noise_std < 1.15) and
494
+ has_isolated_cluster
495
+ )
496
+
497
+ # High-noise inpainting concurrence (e.g. broken phone screens, spliced textures):
498
+ # Strong noise divergence (>= 80%) corroborated by elevated ghost discrepancy (>= 1.20)
499
+ # and significant chrominance shift (>= 18.0%) on isolated physical regions
482
500
  pillar_ghost_noise = (
483
- ((has_ghost_mismatch and noise_divergence >= 35.0) or
484
- (ghost_discrepancy >= 1.30 and noise_divergence >= 65.0 and ela_score >= 40.0 and (rw >= 45 and rh >= 45)))
501
+ (
502
+ (has_ghost_mismatch and noise_divergence >= 35.0) or
503
+ (ghost_discrepancy >= 1.20 and noise_divergence >= 80.0 and ela_score >= 45.0 and chrom_diff >= 18.0 and (rw >= 45 and rh >= 45))
504
+ )
485
505
  and has_isolated_cluster
486
506
  )
487
- pillar_seam = (is_feathered and has_isolated_cluster)
507
+
508
+ # Spectral diffusion lattice harmonics
488
509
  pillar_spectral = (harmonic_ratio >= 2.6 and fft_energy >= 82.0 and has_isolated_cluster)
510
+
511
+ # Sensor noise void (AI generated flat pixel patches)
489
512
  pillar_sensor_void = (sensor_noise_std < 1.15 and noise_divergence >= 30.0 and ela_score >= 26.0 and has_isolated_cluster)
490
513
 
491
514
  is_generative_ai = (
@@ -531,7 +554,7 @@ class ForensicAgent:
531
554
 
532
555
  noise_contrib = max(0.0, (noise_divergence - 70.0) * 0.35) if (has_isolated_cluster and has_corroboration) else 0.0
533
556
  ghost_contrib = max(0.0, (ghost_discrepancy - 0.8) * 6.0) if (has_isolated_cluster and has_corroboration) else 0.0
534
- seam_contrib = 25.0 if (is_feathered and has_isolated_cluster) else 0.0
557
+ seam_contrib = 25.0 if (has_corroboration and is_feathered and has_isolated_cluster) else 0.0
535
558
  software_contrib = 35.0 if provenance.get("is_edited_software_flag") else 0.0
536
559
 
537
560
  # Sensitivity modifier
@@ -31,7 +31,7 @@ from mcp_server import MCP_TOOLS_MANIFEST, handle_json_rpc
31
31
  app = FastAPI(
32
32
  title="VeriSight MCP - OpenCV 5 Agentic Forensics Engine",
33
33
  description="Multi-spectral forensic vision agent powered by OpenCV 5 on AWS Graviton Arm64",
34
- version="2.2.4"
34
+ version="2.2.5"
35
35
  )
36
36
 
37
37
  app.add_middleware(
@@ -47,7 +47,7 @@ def root_status():
47
47
  return {
48
48
  "service": "VeriSight MCP - Autonomous Physical AI Forensics Engine",
49
49
  "status": "ONLINE",
50
- "version": "2.2.4",
50
+ "version": "2.2.5",
51
51
  "engine": "OpenCV 5.0.0 (ARM64 SIMD)",
52
52
  "docs_url": "/docs",
53
53
  "api_url": "/api",
@@ -56,7 +56,7 @@ def root_status():
56
56
 
57
57
  @app.get("/health")
58
58
  def health_check():
59
- return {"status": "healthy", "service": "verisight-backend", "version": "2.2.4"}
59
+ return {"status": "healthy", "service": "verisight-backend", "version": "2.2.5"}
60
60
 
61
61
  @app.get("/api")
62
62
  @app.get("/api/")
@@ -64,7 +64,7 @@ def api_index():
64
64
  return {
65
65
  "service": "VeriSight MCP REST API",
66
66
  "status": "ONLINE",
67
- "version": "2.2.4",
67
+ "version": "2.2.5",
68
68
  "documentation": "/docs",
69
69
  "endpoints": {
70
70
  "health": "/health",
@@ -251,7 +251,7 @@ def handle_json_rpc(payload: Dict[str, Any], agent_pipeline_callback) -> Optiona
251
251
  },
252
252
  "serverInfo": {
253
253
  "name": "verisight-mcp-engine",
254
- "version": "2.2.4"
254
+ "version": "2.2.5"
255
255
  }
256
256
  }
257
257
  }
@@ -268,7 +268,7 @@ def handle_json_rpc(payload: Dict[str, Any], agent_pipeline_callback) -> Optiona
268
268
  "protocol_version": "2024-11-05",
269
269
  "server_info": {
270
270
  "name": "verisight-mcp-engine",
271
- "version": "2.2.4",
271
+ "version": "2.2.5",
272
272
  "capabilities": {"tools": True, "resources": False, "prompts": False}
273
273
  }
274
274
  }
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "verisight"
7
- version = "2.2.4"
7
+ version = "2.2.5"
8
8
  authors = [
9
9
  { name="Aditya Raj Tiwari", email="adityasantosh2026@gmail.com" },
10
10
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: verisight
3
- Version: 2.2.4
3
+ Version: 2.2.5
4
4
  Summary: Sub-3ms Physical Multi-Spectral Image Forensics & Presentation Attack Detection engine powered by OpenCV 5 and Model Context Protocol (MCP).
5
5
  Author-email: Aditya Raj Tiwari <adityasantosh2026@gmail.com>
6
6
  License-Expression: Apache-2.0
File without changes
File without changes
File without changes
File without changes