Unified Context Engine
Project description
Unified Context Engine (UCE)
What It Does
UCE is a deterministic semantic governance engine for agentic systems. It builds a Neo4j knowledge graph across code, schema, requirements, policies, APIs, and services, then performs multi-hop reasoning to produce explainable impact analysis and risk scoring.
Why It Matters
Traditional RAG is probabilistic and not auditable. UCE provides deterministic, traceable reasoning paths that enterprises can validate before allowing agents to execute changes.
Architecture Overview
- File graph and import dependencies
- Function graph and call edges
- Table/column schema layer
- Requirement and policy governance
- API exposure and service ownership
- Deterministic risk scoring
Quick Start
python ingest/file_graph.py
python ingest/function_graph.py
python ingest/db_schema.py
python ingest/requirements.py
python ingest/policies.py
python ingest/api_graph.py
python -c "from impact import explain_change; print(explain_change('table','meetings'))"
Example Output
{
"entity": "meetings",
"affected_files": ["app/api/webhook/route.ts"],
"affected_functions": ["POST@app/api/webhook/route.ts"],
"affected_apis": ["POST /api/webhook"],
"affected_services": ["webhook"],
"violated_requirements": ["RQ-003"],
"enforced_policies": ["P-001"],
"risk_breakdown": {
"backend_files": 1,
"violated_requirements": 1,
"enforced_policies": 1,
"affected_apis": 1,
"risk_score": 15
},
"risk_score": 15,
"trace_paths": [
"Table meetings -> File app/api/webhook/route.ts -> Function POST -> API POST /api/webhook -> Service webhook",
"Table meetings -> Requirement RQ-003 -> Policy P-001"
]
}
Risk Model
risk_score =
2 * backend_files
4 * violated_requirements
6 * enforced_policies
3 * affected_apis
Roadmap
- Cross-repository dependency linking
- Temporal graph snapshots
- CI integration for pre-merge governance
- Schema change impact automation
License
Apache 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uce_engine-0.1.0.tar.gz.
File metadata
- Download URL: uce_engine-0.1.0.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de244bac95d3bab5674898ea17849db3dfaed8f42665799cc598387b1d2fbfd6
|
|
| MD5 |
5d1165ec82e1b4f78fa5455b5092921c
|
|
| BLAKE2b-256 |
f3234611ea85c86c711b25b0ada41f1f6e406c13f41ab19d44d05edc50074b5c
|
File details
Details for the file uce_engine-0.1.0-py3-none-any.whl.
File metadata
- Download URL: uce_engine-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73dc9b1ef126453edebbb27223ffba25e0170a571a2335a322da2a593b3cbe24
|
|
| MD5 |
d790e4af2b472f884d175275499dac7b
|
|
| BLAKE2b-256 |
f66e13b457165aa0d128ff183e2bd9d1c9ec2c4fe18fa985eda2cdfd735a7dcf
|