PBSOI CISG MVP v1.0 — Impact Engine

/mnt/data/PSMR_Runtime_MVP_v0.7/demo_projection/base_source · Python repository · evidence-grounded static graph

1
Files
10
Nodes
12
Edges
3
Impact targets
3
Data values
0
State regions
0
Defects
0
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": 10,
  "edges": 12,
  "node_types": {
    "file": 1,
    "function": 2,
    "data_value": 3,
    "data_sink": 2,
    "boundary_call": 2
  },
  "edge_types": {
    "contains": 2,
    "defines": 3,
    "contains_data": 2,
    "returns_value": 3,
    "calls": 2
  },
  "resolved_local_calls": 0,
  "boundary_calls": 2,
  "findings_by_category": {},
  "findings_by_severity": {},
  "motif_instances": 0,
  "motif_clusters": 0,
  "data_values": 3,
  "phi_nodes": 0,
  "data_edges": 6,
  "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
function2app.py
function0app.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": 6, "source_hash": "a6c0ac940fa6426d1c5436d216ec661c6b200cb956d62474317603b16631ce45", "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_2b8e2406051a50fe36d197c5", "fragment_source_hash": "52e8f368cebcce13bb59eb1c384ad1ebbd90f298bc2024b9b6761039e7a1d2bc", "fragment_context_fingerprint": "ctx_9f20ffb551ac0ae80098d2ca", "evidence": {"path": "app.py", "line": 5, "end_line": 6, "source_hash": "52e8f368cebcce13bb59eb1c384ad1ebbd90f298bc2024b9b6761039e7a1d2bc", "source_kind": "code"}, "shape_signature": "shape_221b76f495bf0a6b", "motif_signature": "motif_exact_83e42922287b", "motif_coarse_signature": "motif_coarse_fca123bd72d6", "features": {"controls": [], "effects": [], "state_reads": 0, "state_writes": 0, "state_read_targets": [], "state_write_targets": [], "local_calls": 0, "boundary_calls": 0}}

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
returns_valueamount#0return@+1app.py:6observed
returns_valuetax#0return@+1app.py:6observed

State regions

AccessFunctionRegionKindEvidence

Module binding reads

FunctionBindingEvidence

Explicit exception flow

RelationSourceTargetEvidenceStatus

Findings

SeverityClassTypeLocationSymbolEvidence statement

Deterministic motif candidates

KindPathSymbolConfidenceStructural rule

Name-independent structural signature clusters

Motif IDMembersIdentity basis

Per-file SHA-256

PathBytesSHA-256
app.py119a6c0ac940fa6426d…

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