2
Files
14
Nodes
20
Edges
7
Impact targets
3
Data values
1
State regions
1
Defects
1
Motifs
MVP pipeline
Repository → CISG → Data/State Closure → Impact Engine → review scope
v0.6 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": 2,
"nodes": 14,
"edges": 20,
"node_types": {
"file": 2,
"function": 3,
"data_value": 3,
"data_sink": 2,
"control": 1,
"state_region": 1,
"data_phi": 1,
"data_undefined": 1
},
"edge_types": {
"contains": 3,
"imports": 1,
"defines": 4,
"contains_data": 2,
"returns_value": 2,
"controls": 1,
"writes_state": 1,
"reads_state": 1,
"guards": 1,
"phi_input": 2,
"calls": 2
},
"resolved_local_calls": 2,
"boundary_calls": 0,
"findings_by_category": {
"defect": 1
},
"findings_by_severity": {
"high": 1
},
"motif_instances": 1,
"motif_clusters": 0,
"data_values": 3,
"phi_nodes": 1,
"data_edges": 9,
"alias_edges": 0,
"state_regions": 1,
"state_reads": 1,
"state_writes": 1,
"module_binding_reads": 0,
"exception_handlers": 0,
"explicit_raises": 0,
"unresolved_local_uses": 1,
"warnings": 0
}Highest review breadth
| Kind | Target | Review breadth | Path |
|---|---|---|---|
| function | 3 | test_app.py | |
| function | 3 | app.py | |
| function | 3 | app.py | |
| state_region | 1 |
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 5 of 5 file/class/function entities. Full graph is in cisg.json / cisg.graphml.
Node evidence
Click a node.
SSA-like data flow
Local data footprint feeds Impact Engine but is not transitive across function boundaries.
| Relation | Source | Target | Evidence | Status |
|---|---|---|---|---|
| returns_value | x#0 | return@4 | app.py:4 | observed |
| guards | flag#0 | branch | app.py:9 | observed |
| phi_input | value#1 | value#2 | app.py:9 | strongly_inferred |
| phi_input | value:undefined | value#2 | app.py:9 | unresolved |
| returns_value | value#2 | return@11 | app.py:11 | observed |
State regions
| Access | Function | Region | Kind | Evidence |
|---|---|---|---|---|
| writes_state | root | app:global:CACHE | module_global | app.py:8 |
| reads_state | root | app:global:CACHE | module_global | app.py:10 |
Module binding reads
| Function | Binding | Evidence |
|---|
Explicit exception flow
| Relation | Source | Target | Evidence | Status |
|---|
Findings
| Severity | Class | Type | Location | Symbol | Evidence statement |
|---|---|---|---|---|---|
| high | defect | possibly_undefined_local | app.py:11 | root | Local variable 'value' may be undefined on at least one reaching control-flow path. |
Deterministic motif candidates
| Kind | Path | Symbol | Confidence | Structural rule |
|---|---|---|---|---|
| read_modify_write | app.py | root | 0.86 | same function reads and writes the same state target |
Name-independent structural signature clusters
| Motif ID | Members | Identity basis |
|---|
Per-file SHA-256
| Path | Bytes | SHA-256 |
|---|---|---|
| app.py | 151 | 806edd292e6487fe… |
| test_app.py | 63 | d5edaf7f6b190e3f… |
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