NervaFlow is a supply-risk decision product built for operations teams that need clarity under disruption.
Instead of a noisy dashboard, it gives one high-confidence decision packet with impact context, quantified risk, and recommended action.
Supply incidents are rarely blocked by lack of data. They are blocked by slow decision synthesis across ports, suppliers, SKUs, routes, and external signals.
NervaFlow compresses that synthesis into a single operator flow:
- define scope,
- run scenario,
- act on an evidence-backed recommendation.
- Old identity:
AetherChain(engineering project name) - Product identity now:
NervaFlow Intelligence Platform - Experience goal: calm, decision-first, operator-grade workflow
- Choose target: location or supplier
- Narrow scope with SKU/route token filters
- Add horizon and business priority
- Generate decision packet
- Review impacted assets + supporting evidence
GET /- NervaFlow web appGET /healthz/- health checkGET /experience/catalog/- live options for ports/suppliers/skus/routesPOST /experience/simulate/- non-destructive scenario run
The following numbers are current and verifiable in this repository/runtime path:
| Metric | Value | Where it comes from |
|---|---|---|
| Automated core tests passing | 29 | python manage.py test aetherchain.core.tests |
| Production rollout commit slices | 30 | git log commit stream pushed to origin/main |
| Decision metrics per run | 4 | risk, confidence, delay, cost |
| Public experience endpoints | 4 | /, /healthz/, /experience/catalog/, /experience/simulate/ |
| Fallback catalog inventory | 62 records | 20 ports, 15 suppliers, 15 SKUs, 12 routes |
| UI scope capacity | up to 12 SKU tokens + 12 route tokens | enforced in frontend token logic |
Each simulation returns a structured decision packet:
summary_descriptionimpact_analysisrecommended_actionevent_typeevent_targetrisk_scoreconfidence_scoreestimated_delay_daysestimated_cost_impact_usdevidence_summaryraw_context(includes impacted assets and scenario inputs)
flowchart LR
A["Operator Input (Port/Supplier/SKU/Route)"] --> B["Scenario API (/experience/simulate)"]
B --> C["Graph Impact Lookup (Neo4j)"]
C --> D["Fallback Impact Synthesis"]
C --> E["Evidence Retrieval (Vertex AI Search)"]
D --> F["Decision Engine"]
E --> F
F --> G["Optional GenAI Narrative"]
G --> H["Decision Packet (Risk/Confidence/Delay/Cost)"]
src/aetherchain/core/views.py- web/API entrypoints and payload normalizationsrc/aetherchain/core/catalog.py- catalog provider for selectable scenario optionssrc/aetherchain/core/tasks.py- impact orchestration, graph lookups, fallback logicsrc/aetherchain/core/retrieval.py- Vertex Search evidence retrievalsrc/aetherchain/core/decision_engine.py- deterministic scoring and action synthesissrc/aetherchain/core/genai.py- optional narrative refinement layer
Query params:
kind:all | ports | suppliers | skus | routesq: text filterlocation: optional context filtersupplier_name: optional context filterlimit: bounded results (5..50)
Response includes source attribution (neo4j vs fallback) and option arrays.
Accepted fields:
location(optional)supplier_name(optional)product_skusorproduct_sku(optional)route_idsorroute_id(optional)event_type(optional)horizon_days(optional)business_priority(optional)context_note(optional)
Validation:
- At least one target is required from location/supplier/SKU/route scope.
- Vertex AI Search / Discovery Engine for evidence and summaries
- Direct load scripts for Search answers + Conversational Agent playbooks
- Optional Vertex narrative model when enabled
- GDELT extract -> normalize -> dedupe -> Discovery import
- Cost guardrails and billing-aware ingest controls
- SQL observability pack for credit attribution
- Python
3.11 - Docker
- Google Cloud SDK
- GCP project access
git clone https://github.com/RitwijParmar/aetherchain-project.git
cd aetherchain-project
python3 -m venv venv
source venv/bin/activate
pip install -r src/requirements.txtPOSTGRES_URI=
NEO4J_URI=
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=
GCP_PROJECT_ID=
GCP_QUOTA_PROJECT_ID=
DJANGO_SECRET_KEY=
API_TOKEN=
VERTEX_SEARCH_SERVING_CONFIG=
VERTEX_SEARCH_MAX_RESULTS=8
VERTEX_SEARCH_ENABLE_SUMMARY=true
VERTEX_SEARCH_SUMMARY_RESULT_COUNT=3
CREDIT_FIRST_MODE=true
VERTEX_GENAI_MODEL=
VERTEX_GENAI_LOCATION=us-central1
VERTEX_GENAI_MAX_OUTPUT_TOKENS=350
ENABLE_GRAPH_FALLBACK=true
EXTERNAL_REQUEST_TIMEOUT_SECONDS=20cd src
python manage.py migrate
python manage.py runserverOpen http://127.0.0.1:8000/.
cd src
python manage.py test aetherchain.core.tests- Cloud Run serves the product UI + API
- Cloud Build handles image build and push
- GitHub Actions workflow supports CI/CD path
Scripts in scripts/ handle:
- GenAI service provisioning
- Discovery and playbook setup
- Automated ingest scheduling
- Direct GenAI load testing
SQL in sql/ covers:
- daily GenAI vs non-GenAI trends
- credit attribution
- guardrail leakage checks
- monthly budget checks
- Fallback catalog values are static by design; production master-data integration is next.
- Discovery indexing is asynchronous, so ingest-to-search visibility can lag.
- Local Python 3.9 environments can break new gcloud command groups; use Python 3.10+.
- Replace fallback catalog with enterprise master data source.
- Add scenario history and decision comparison views.
- Add tenant-aware access control for teams.
- Add SLA-aware recommendation policies.
- Add collaboration notes and handoff tracking in the decision packet workflow.