PBSOI CISG MVP v1.0 — Impact Engine

/mnt/data/PSMR_Runtime_MVP_v0.6/demo_projection/workspace_bad/projection_candidates/candidate_07904731763916525f5b/source · Python repository · evidence-grounded static graph

1
Files
18
Nodes
24
Edges
4
Impact targets
5
Data values
0
State regions
0
Defects
1
Motifs

MVP pipeline

Repository → CISG → Data/State Closure → Impact Engine → review scope

v1.0 technical view preserves one-hop direct evidence from bounded derived impact. Derived impact uses resolved local-call reachability and shared-state coupling; it is review scope, not a claim that every reachable entity will change at runtime.

Metrics

{
  "loaded_files": 1,
  "nodes": 18,
  "edges": 24,
  "node_types": {
    "file": 1,
    "function": 2,
    "data_value": 5,
    "data_sink": 2,
    "boundary_call": 5,
    "control": 1,
    "data_use": 1,
    "effect": 1
  },
  "edge_types": {
    "contains": 2,
    "defines": 5,
    "contains_data": 3,
    "returns_value": 3,
    "calls": 6,
    "controls": 1,
    "flows_to": 3,
    "effect": 1
  },
  "resolved_local_calls": 1,
  "boundary_calls": 5,
  "findings_by_category": {},
  "findings_by_severity": {},
  "motif_instances": 1,
  "motif_clusters": 0,
  "data_values": 5,
  "phi_nodes": 0,
  "data_edges": 11,
  "alias_edges": 0,
  "state_regions": 0,
  "state_reads": 0,
  "state_writes": 0,
  "module_binding_reads": 0,
  "exception_handlers": 0,
  "explicit_raises": 0,
  "unresolved_local_uses": 0,
  "warnings": 0
}

Highest review breadth

KindTargetReview breadthPath
function8app.py
function8app.py

Warnings

  • None

Impact Engine

Direct = one-hop graph evidence. Derived = bounded resolved call paths + shared-state coupling. No single impact score is treated as truth.

Choose a target.

Code-Induced Semantic Graph

Overview shows 3 of 3 file/class/function entities. Full graph is in cisg.json / cisg.graphml.
app.pyapp.py{"id": "file_13cce7fd076299c8", "type": "file", "label": "app.py", "path": "app.py", "module": "app", "status": "observed", "confidence": 1.0, "evidence": {"path": "app.py", "line": 1, "end_line": 9, "source_hash": "b4369db8bb85e316b08d6a62b7f9d1946a21e4c676454fb3bfcb3fbad31f5c32", "source_kind": "code"}}normalize_amountnormalize_amount{"id": "fn_6278c5659b6dfdf9", "type": "function", "label": "normalize_amount", "path": "app.py", "module": "app", "symbol": "normalize_amount", "async": false, "status": "observed", "confidence": 1.0, "fragment_fingerprint": "frag_a77d239a65125dc8c13a4a20", "fragment_source_hash": "a8b7db13f6e2771dd05012e37b685a6e81d2d58918e0e249f1c9fd67c41e20ed", "fragment_context_fingerprint": "ctx_9f20ffb551ac0ae80098d2ca", "evidence": {"path": "app.py", "line": 1, "end_line": 2, "source_hash": "a8b7db13f6e2771dd05012e37b685a6e81d2d58918e0e249f1c9fd67c41e20ed", "source_kind": "code"}, "shape_signature": "shape_6812fdf9000aab68", "motif_signature": "motif_exact_493e8810c279", "motif_coarse_signature": "motif_coarse_e3a6d82c57d0", "features": {"controls": [], "effects": [], "state_reads": 0, "state_writes": 0, "state_read_targets": [], "state_write_targets": [], "local_calls": 0, "boundary_calls": 2}}calculate_totalcalculate_total{"id": "fn_6226bd83d14ddff6", "type": "function", "label": "calculate_total", "path": "app.py", "module": "app", "symbol": "calculate_total", "async": false, "status": "observed", "confidence": 1.0, "fragment_fingerprint": "frag_4e348b641a7c1bd55a87fef2", "fragment_source_hash": "b5ae8116ade840cd64b20f5623e50d01d6f385c35fddc182313d24cbf0d29594", "fragment_context_fingerprint": "ctx_9f20ffb551ac0ae80098d2ca", "evidence": {"path": "app.py", "line": 5, "end_line": 9, "source_hash": "b5ae8116ade840cd64b20f5623e50d01d6f385c35fddc182313d24cbf0d29594", "source_kind": "code"}, "shape_signature": "shape_c06bbdb947f5562b", "motif_signature": "motif_exact_9019bebeb4d5", "motif_coarse_signature": "motif_coarse_223461ecf23d", "features": {"controls": ["with_scope"], "effects": ["file_io"], "state_reads": 0, "state_writes": 0, "state_read_targets": [], "state_write_targets": [], "local_calls": 1, "boundary_calls": 3}}

Node evidence

Click a node.

SSA-like data flow

Local data footprint feeds Impact Engine but is not transitive across function boundaries.

RelationSourceTargetEvidenceStatus
returns_valuevalue#0return@+1app.py:2observed
flows_toamount#0amount#1app.py:6observed
flows_tohandle#1expr@+3app.py:8observed
flows_toamount#1expr@+3app.py:8observed
returns_valueamount#1return@+4app.py:9observed
returns_valuetax#0return@+4app.py:9observed

State regions

AccessFunctionRegionKindEvidence

Module binding reads

FunctionBindingEvidence

Explicit exception flow

RelationSourceTargetEvidenceStatus

Findings

SeverityClassTypeLocationSymbolEvidence statement

Deterministic motif candidates

KindPathSymbolConfidenceStructural rule
resource_scopeapp.pycalculate_total0.92with/async-with establishes bounded resource scope

Name-independent structural signature clusters

Motif IDMembersIdentity basis

Per-file SHA-256

PathBytesSHA-256
app.py234b4369db8bb85e316…

Epistemic contract

observed

  • Python AST definitions
  • imports
  • call syntax
  • control syntax
  • source spans
  • local file hashes
  • SSA-like local definitions/uses
  • self/cls/explicit-global state accesses
  • module-binding reads
  • explicit raise/except syntax
  • definition-time Python name aliases

strongly_inferred

  • local call target resolution
  • parameter-container state regions
  • effect hints
  • branch/loop phi merges
  • explicit exception catch matching
  • structural motif candidates

unresolved

  • runtime dispatch
  • reflection
  • native extension behavior
  • external library semantics
  • precise heap points-to beyond definition-time alias
  • dynamic exception behavior from calls
  • concurrency semantics