PBSOI CISG MVP v0.7 — Impact Engine

/mnt/data/PBSOI_CISG_MVP_v0.7/semantic_diff_demo/base · Python repository · evidence-grounded static graph

3
Files
12
Nodes
14
Edges
7
Impact targets
3
Data values
0
State regions
0
Defects
0
Motifs

MVP pipeline

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

v0.7 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": 3,
  "nodes": 12,
  "edges": 14,
  "node_types": {
    "file": 3,
    "function": 3,
    "data_value": 3,
    "data_sink": 3
  },
  "edge_types": {
    "contains": 3,
    "imports": 1,
    "defines": 3,
    "contains_data": 3,
    "returns_value": 3,
    "calls": 1
  },
  "resolved_local_calls": 1,
  "boundary_calls": 0,
  "findings_by_category": {},
  "findings_by_severity": {},
  "motif_instances": 0,
  "motif_clusters": 1,
  "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
function1app.py
function1helper.py
function0extra.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 6 of 6 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": "9aeb874c18f3e60ca1fc718009b36e64689f02628b262d6c5bc37e2cb323b4f7", "source_kind": "code"}}rootroot{"id": "fn_4e3d7579479d3d25", "type": "function", "label": "root", "path": "app.py", "module": "app", "symbol": "root", "async": false, "status": "observed", "confidence": 1.0, "evidence": {"path": "app.py", "line": 5, "end_line": 6, "source_hash": "9aeb874c18f3e60ca1fc718009b36e64689f02628b262d6c5bc37e2cb323b4f7", "source_kind": "code"}, "motif_signature": "motif_exact_8066e141245f", "motif_coarse_signature": "motif_coarse_c03889665559", "features": {"controls": [], "effects": [], "state_reads": 0, "state_writes": 0, "state_read_targets": [], "state_write_targets": [], "local_calls": 1, "boundary_calls": 0}}extra.pyextra.py{"id": "file_4d74821404433b49", "type": "file", "label": "extra.py", "path": "extra.py", "module": "extra", "status": "observed", "confidence": 1.0, "evidence": {"path": "extra.py", "line": 1, "end_line": 2, "source_hash": "447d7f48d560011b5f744931ff87d1284705dbedc18599487dcd90ca32d89273", "source_kind": "code"}}persistpersist{"id": "fn_381caeb25920760b", "type": "function", "label": "persist", "path": "extra.py", "module": "extra", "symbol": "persist", "async": false, "status": "observed", "confidence": 1.0, "evidence": {"path": "extra.py", "line": 1, "end_line": 2, "source_hash": "447d7f48d560011b5f744931ff87d1284705dbedc18599487dcd90ca32d89273", "source_kind": "code"}, "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}}helper.pyhelper.py{"id": "file_a687d2222eff87c4", "type": "file", "label": "helper.py", "path": "helper.py", "module": "helper", "status": "observed", "confidence": 1.0, "evidence": {"path": "helper.py", "line": 1, "end_line": 2, "source_hash": "ae12b83043de4abfc42b6f4826ae17dce8077ac3189cee4137fcd08c7a103603", "source_kind": "code"}}helperhelper{"id": "fn_48ffdf8ff0705994", "type": "function", "label": "helper", "path": "helper.py", "module": "helper", "symbol": "helper", "async": false, "status": "observed", "confidence": 1.0, "evidence": {"path": "helper.py", "line": 1, "end_line": 2, "source_hash": "ae12b83043de4abfc42b6f4826ae17dce8077ac3189cee4137fcd08c7a103603", "source_kind": "code"}, "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_valuex#0return@6app.py:6observed
returns_valuex#0return@2extra.py:2observed
returns_valuex#0return@2helper.py:2observed

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
motif_coarse_fca123bd72d62name-independent coarse structural feature signature

Per-file SHA-256

PathBytesSHA-256
app.py729aeb874c18f3e60c…
extra.py29447d7f48d560011b…
helper.py32ae12b83043de4abf…

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