4
Files
25
Nodes
34
Edges
14
Impact targets
5
Data values
1
State regions
0
Defects
2
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": 4,
"nodes": 25,
"edges": 34,
"node_types": {
"file": 4,
"function": 5,
"data_value": 5,
"data_sink": 4,
"control": 1,
"state_region": 1,
"data_use": 1,
"effect": 1,
"boundary_call": 3
},
"edge_types": {
"contains": 5,
"imports": 3,
"defines": 5,
"contains_data": 5,
"returns_value": 3,
"calls": 6,
"controls": 1,
"reads_state": 2,
"writes_state": 1,
"flows_to": 2,
"effect": 1
},
"resolved_local_calls": 3,
"boundary_calls": 3,
"findings_by_category": {},
"findings_by_severity": {},
"motif_instances": 2,
"motif_clusters": 2,
"data_values": 5,
"phi_nodes": 0,
"data_edges": 10,
"alias_edges": 0,
"state_regions": 1,
"state_reads": 2,
"state_writes": 1,
"module_binding_reads": 0,
"exception_handlers": 0,
"explicit_raises": 0,
"unresolved_local_uses": 0,
"warnings": 0
}Highest review breadth
| Kind | Target | Review breadth | Path |
|---|---|---|---|
| function | 10 | tests/test_a.py | |
| function | 10 | a.py | |
| function | 10 | b.py | |
| function | 10 | c.py | |
| state_region | 2 | ||
| function | 1 | b.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 9 of 9 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@5 | a.py:5 | observed |
| flows_to | handle#1 | expr@11 | b.py:11 | observed |
| flows_to | old#1 | expr@11 | b.py:11 | observed |
| returns_value | x#0 | return@12 | b.py:12 | observed |
| returns_value | x#0 | return@2 | c.py:2 | observed |
State regions
| Access | Function | Region | Kind | Evidence |
|---|---|---|---|---|
| reads_state | middle | b:global:CACHE | module_global | b.py:8 |
| writes_state | middle | b:global:CACHE | module_global | b.py:9 |
| reads_state | observe | b:global:CACHE | module_global | b.py:17 |
Module binding reads
| Function | Binding | Evidence |
|---|
Explicit exception flow
| Relation | Source | Target | Evidence | Status |
|---|
Findings
| Severity | Class | Type | Location | Symbol | Evidence statement |
|---|
Deterministic motif candidates
| Kind | Path | Symbol | Confidence | Structural rule |
|---|---|---|---|---|
| read_modify_write | b.py | middle | 0.86 | same function reads and writes the same state target |
| resource_scope | b.py | middle | 0.92 | with/async-with establishes bounded resource scope |
Name-independent structural signature clusters
| Motif ID | Members | Identity basis |
|---|---|---|
| motif_coarse_c03889665559 | 2 | name-independent coarse structural feature signature |
| motif_coarse_fca123bd72d6 | 2 | name-independent coarse structural feature signature |
Per-file SHA-256
| Path | Bytes | SHA-256 |
|---|---|---|
| a.py | 57 | ed421b0a3ed16047… |
| b.py | 238 | a9af3ee8d84e48ef… |
| c.py | 30 | a9809ee1c71cf4fb… |
| tests/test_a.py | 62 | 3c5756cfd4cc615d… |
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