What if an AI system could read a complex business requirement, understand how its individual pieces relate to one another, and turn those relationships into a plan that software can execute?
That question is what led me to explore OneGraph, a research project I have been developing in my personal time. I enjoy using weekends to investigate new architectures and discover how emerging AI concepts might translate into practical solutions for enterprise challenges.
Today, large language models can interpret documents, generate code, reason through problems and coordinate tools. But not every decision in an enterprise system requires open-ended generation. Many valuable decisions are focused and repetitive: identifying an obligation in a contract, determining which service depends on another, selecting an agent, or deciding which tasks must finish before another can begin.
What if we could learn to predict those relationships directly, and reserve more expensive reasoning for the situations that genuinely need it?
That is the direction I want to explore with OneGraph.
Research status: OneGraph is an early text relationship-extraction experiment. The enterprise examples and execution architectures in this article are illustrative research directions, not demonstrated production capabilities or measured performance results.
1. Why System 1 AI matters
The distinction between System 1 and System 2 thinking comes from psychology: fast, intuitive judgments versus slower, deliberate reasoning. It provides a useful analogy for designing AI systems, rather than a literal description of how models think.
TypeSafe’s Jev is an example of a model designed to return typed decisions instead of generating free-form text. Given a review and a defined set of labels, a decision model can return scores or probabilities for those labels. An application can use the result to handle clear cases automatically and escalate ambiguous cases for review. Probability estimates still need validation and calibration for the intended domain.
The broader idea is attractive: use specialised prediction models for bounded tasks, and generative models for tasks that require synthesis, planning under uncertainty or complex reasoning. Classification, routing and relationship extraction are not new fields; the opportunity is in integrating them as first-class components of agentic systems.
flowchart TD
A[Incoming task] --> B[Focused prediction layer]
B --> C{Confidence and policy checks}
C -->|Clear and permitted| D[Deterministic software action]
C -->|Ambiguous or complex| E[LLM reasoning or human review]
E --> F[Validate proposed action]
F --> D
classDef pred fill:#e0e7ff,stroke:#6366f1,color:#1e1b4b
classDef gate fill:#fef3c7,stroke:#d97706,color:#78350f
classDef done fill:#dcfce7,stroke:#16a34a,color:#14532d
class B,E pred
class C,F gate
class D done
Figure 1. A hybrid prediction-and-reasoning architecture. Confidence alone must never authorise sensitive actions.
2. What I am building with OneGraph
OneGraph explores whether a text encoder and compact task-specific prediction components can identify entities, predict relationships between them, and associate those relationships with supporting sentences.
In my latest CPU-based training run, I used ModernBERT as a frozen encoder and trained less than 0.5% of the total model parameters. The experiment learned to extract relationships on a public benchmark, but its improvement over a simpler baseline was small and uncertain.
That result is interesting as a starting point, not as evidence that the model is already faster, more accurate or cheaper than existing alternatives. A small trainable parameter count does not imply an equally small inference footprint: the frozen encoder still has to run. The exact benchmark name, dataset splits, scores, uncertainty estimates and model configuration are not included here because they have not been supplied for this article.
flowchart TD
A[Unstructured text] --> B[Frozen ModernBERT encoder]
B --> C[Entity prediction]
B --> D[Relationship prediction]
B --> E[Supporting sentence prediction]
C --> F[Structured graph assembly]
D --> F
E --> F
F --> G[Entities, edges and evidence]
classDef encoder fill:#dbeafe,stroke:#2563eb,color:#1e3a8a
classDef heads fill:#ede9fe,stroke:#7c3aed,color:#4c1d95
classDef result fill:#dcfce7,stroke:#16a34a,color:#14532d
class B encoder
class C,D,E heads
class F,G result
Figure 2. Conceptual view of the current research direction, not a complete implementation schematic. The exact internal head dependencies are not specified here.
A conventional extraction pipeline might return a list of entities. What interests me is the additional value of connecting those entities: who is responsible, what depends on what, what triggers an action, which condition applies, and which source sentence supports that interpretation.
A candidate graph could represent an edge as a typed record:
{
"source": "payment_processing",
"relation": "REQUIRES",
"target": "order_validation",
"evidence_sentence_ids": [3],
"status": "proposed"
}
For richer applications, we would need domain-specific relationship types, conditions, quantities, confidence estimates and provenance. That is future work; the examples below show what such an extended system might enable.
3. Contract intelligence: from clauses to obligations
Consider a vendor agreement containing two sentences:
The supplier must notify the customer of any security incident. Notification is due within 48 hours of discovery.
A task-adapted model could connect the responsible party, recipient, action, incident and time constraint into a single evidence-backed record.
flowchart TD
S[Supplier] -->|MUST PERFORM| N[Notification]
N -->|SENT TO| C[Customer]
N -->|CONCERNS| I[Security incident]
N -->|DUE WITHIN| T[48 hours]
T -->|MEASURED FROM| D[Discovery of incident]
D -->|REFERS TO| I
classDef party fill:#dbeafe,stroke:#2563eb,color:#1e3a8a
classDef action fill:#ede9fe,stroke:#7c3aed,color:#4c1d95
classDef constraint fill:#fef3c7,stroke:#d97706,color:#78350f
class S,C party
class N,I action
class T,D constraint
Figure 3. Obligation relationship graph.
An illustrative structured output:
{
"responsible_party": "Supplier",
"recipient": "Customer",
"obligation": "Notify",
"event": "Security incident",
"deadline": {
"duration": 48,
"unit": "hours",
"trigger": "Discovery of security incident"
},
"evidence": [
{
"sentence_id": 1,
"supports": ["responsible_party", "recipient", "obligation", "event"]
},
{
"sentence_id": 2,
"supports": ["deadline"]
}
]
}
Across hundreds of agreements, reviewers could compare obligations and deadlines, identify potential inconsistencies and navigate directly to the underlying wording. A validated record could also feed a compliance tracking system. It would not replace legal interpretation: exceptions, definitions and cross-references elsewhere in a contract may change the meaning of a clause.
4. Procurement: conditional requirements and approval workflows
Consider a procurement policy:
Purchases exceeding ₹5 lakh require approval from the Finance Director. If the supplier is unregistered, the Compliance Team must complete vendor verification before the purchase order is issued. The Procurement Team is responsible for issuing the order after all required approvals and checks are completed.
This example is about conditions, not just entities. Both branches can apply to the same purchase.
flowchart TD
R[Purchase request] --> A{Amount above INR 500,000?}
R --> B{Supplier unregistered?}
A -->|Yes| F[Finance Director approval]
A -->|No| X[Threshold-specific approval not required]
B -->|Yes| V[Compliance Team vendor verification]
B -->|No| Y[Registration-specific check not required]
F --> G[All applicable checks satisfied]
X --> G
V --> G
Y --> G
G --> P[Procurement Team issues purchase order]
classDef gate fill:#fef3c7,stroke:#d97706,color:#78350f
classDef task fill:#dbeafe,stroke:#2563eb,color:#1e3a8a
classDef done fill:#dcfce7,stroke:#16a34a,color:#14532d
class A,B,G gate
class F,V task
class P done
Figure 4. Conditional procurement plan. Each branch contributes a pass, approved result or an applicable skip to the final gate.
A policy graph could help route requests to the appropriate teams and prevent premature purchase-order issuance. A finance agent and a vendor-verification agent could gather the necessary information independently; the actual approval and issuance would remain subject to authorised business controls.
5. Cybersecurity: incident response dependencies
Consider an illustrative security policy:
If suspicious activity is detected on an employee’s device, the Security Team must investigate the incident. If the threat is confirmed, the IT Team must isolate the affected device and the Identity Management Team must revoke the compromised credentials. The Incident Response Team must prepare a report after both actions are completed. If customer data is affected, the Legal Team must initiate the notification process.
flowchart TD
A[Suspicious device activity] --> B[Security Team investigates]
B --> C{Threat confirmed?}
C -->|Yes| D[IT: isolate device]
C -->|Yes| E[Identity team: revoke compromised credentials]
C -->|No| F[Next action unspecified by excerpt]
D --> G[Both actions completed]
E --> G
G --> H[Incident Response Team prepares report]
B --> I{Customer data affected?}
I -->|Yes| J[Legal Team initiates notification process]
I -->|No or unknown| K[Follow validated incident policy]
classDef alert fill:#fee2e2,stroke:#dc2626,color:#7f1d1d
classDef gate fill:#fef3c7,stroke:#d97706,color:#78350f
classDef task fill:#ede9fe,stroke:#7c3aed,color:#4c1d95
class A alert
class C,G,I gate
class D,E,H,J task
Figure 5. Incident response graph with parallel remediation and a separate conditional legal branch. The path for assessing customer-data impact is an inferred planning step.
The advantage would be understanding triggers, responsibilities and dependencies, while retaining the policy evidence. An orchestration layer could coordinate investigation tasks and prepare recommended actions. Sensitive operations such as device isolation, credential revocation and external notification would still require trusted signals, appropriate permissions and approval rules.
6. SDLC: turning a complex SOW into a development plan
Imagine a client asks for an AI-powered enterprise service desk platform:
The platform must support SSO authentication, role-based access control and integration with ServiceNow. The backend team must establish the database schema and API contracts before frontend and backend development begins. The AI team must develop a RAG-based knowledge assistant using approved enterprise documents. Frontend, backend and AI development may proceed in parallel once their respective prerequisites are completed. The AI assistant must be integrated with the backend APIs before end-to-end integration testing. Performance and security assessments must pass before UAT. Production deployment requires successful UAT, stakeholder approval and technical documentation.
A relationship graph could give us a starting point for a dependency-aware plan rather than just a summary of this SOW.
flowchart TD
S[Client SOW] --> R[Requirements analysis and acceptance criteria]
R --> A[Database schema and API contracts]
R --> K[Approved enterprise documents]
A --> F[Frontend: UI and SSO experience]
A --> B[Backend: SSO, RBAC and ServiceNow APIs]
K --> M[AI assistant: RAG development]
B --> I[Integrate assistant with backend APIs]
M --> I
F --> T[End-to-end integration testing]
B --> T
I --> T
T --> P[Performance testing]
T --> Q[Security assessment]
P --> U[UAT after both gates pass]
Q --> U
U --> V[Stakeholder approval]
R --> D[Technical documentation]
U --> Z[Production deployment]
V --> Z
D --> Z
classDef design fill:#fef3c7,stroke:#d97706,color:#78350f
classDef dev fill:#dbeafe,stroke:#2563eb,color:#1e3a8a
classDef ai fill:#ede9fe,stroke:#7c3aed,color:#4c1d95
classDef release fill:#dcfce7,stroke:#16a34a,color:#14532d
class A,K,P,Q design
class F,B,I,T dev
class M ai
class U,V,Z release
Figure 6. SOW-derived SDLC plan. Discovery, the distribution of authentication tasks, documentation scheduling and stakeholder approval after UAT are inferred planning choices, not explicit facts extracted from the SOW.
Representative graph edges, using source-to-requirement direction for this table:
| Source | Relationship | Target |
|---|---|---|
| Frontend development | DEPENDS_ON | API contracts |
| Backend development | DEPENDS_ON | Database schema |
| AI development | REQUIRES | Approved documents |
| AI integration | REQUIRES | Backend APIs |
| End-to-end testing | REQUIRES | AI integration |
| UAT | REQUIRES_PASS | Security and performance assessments |
| Deployment | REQUIRES | UAT, approval and documentation |
Now add a registry of available SDLC agents. An architecture agent, frontend agent, backend agent, AI agent and QA agent could be matched to eligible tasks using their declared capabilities and interfaces.
flowchart TD
A[Client SOW] --> B[OneGraph candidate requirements and edges]
B --> C[Planning and validation engine]
R[Agent registry and interface contracts] --> C
C --> D[Architecture Agent]
D --> F[Frontend Agent]
D --> G[Backend Agent]
D --> H[AI Agent]
F --> J[Integration and QA Agent]
G --> J
H --> J
J --> K[Human review and release approval]
classDef model fill:#ede9fe,stroke:#7c3aed,color:#4c1d95
classDef agent fill:#dbeafe,stroke:#2563eb,color:#1e3a8a
classDef gate fill:#fef3c7,stroke:#d97706,color:#78350f
class B model
class D,F,G,H,J agent
class C,K gate
Figure 7. Mapping a validated development plan to specialised SDLC agents. Detailed prerequisites remain those of Figure 6; the diagram is a high-level agent mapping.
The practical value is not automatically writing an entire application. It is identifying prerequisites, coordinating independent work, connecting test cases to requirements, and detecting ambiguous or missing dependencies before implementation. Jira, ServiceNow or Azure DevOps could serve as downstream work-management integrations, subject to access controls.
7. Financial research: coordinating specialised agents
Consider a natural-language research request:
Analyse the investment potential of Tata Motors. Retrieve financial statements for the last three years, analyse recent news and market sentiment, identify competitors, compare financial performance, assess business risks and generate a research report with supporting sources.
This is an illustrative task request, not an investment analysis or recommendation. The target entity, reporting periods and comparable peers would need to be resolved before research begins.
flowchart TD
R[Investment research request] --> F[Financial Data Agent]
R --> N[News Research Agent]
R --> C[Competitor Research Agent]
F --> A[Financial Analysis Agent]
N --> S[Sentiment Analysis Agent]
F --> P[Competitive Analysis Agent]
C --> P
A --> K[Risk Assessment Agent]
S --> K
P --> K
A --> W[Report Generation Agent]
S --> W
P --> W
K --> W
W --> V[Evidence Validation Agent]
V -->|Verified| O[Evidence-backed report]
V -->|Issues found| H[Revision or human review]
classDef data fill:#dbeafe,stroke:#2563eb,color:#1e3a8a
classDef analysis fill:#ede9fe,stroke:#7c3aed,color:#4c1d95
classDef gate fill:#fef3c7,stroke:#d97706,color:#78350f
classDef output fill:#dcfce7,stroke:#16a34a,color:#14532d
class F,N,C data
class A,S,P,K,W analysis
class V,H gate
class O output
Figure 8. Multi-agent financial research execution graph. The finance data output is shared by multiple downstream agents.
The financial, news and competitor retrieval tasks are independent and could run concurrently. Competitive analysis needs both the target company’s data and peer data. Report synthesis needs the analyses and risk assessment. Evidence validation follows synthesis.
These relationships could help an orchestrator reuse data instead of fetching the same filings twice, start independent tasks without waiting for unrelated work, and understand when the report can be generated.
A comparison with a simple sequential, step-by-step LLM controller illustrates the opportunity:
flowchart TD
subgraph L[Sequential LLM-controller baseline]
L1[LLM chooses A] --> L2[Run A] --> L3[LLM chooses B] --> L4[Run B] --> L5[LLM chooses C] --> L6[Run C] --> L7[Combine results]
end
subgraph G[Proposed graph-based approach]
G1[Predict candidate graph] --> G2[Validate dependencies]
G2 --> G3[Run A]
G2 --> G4[Run B]
G2 --> G5[Run C]
G3 --> G6[Combine results]
G4 --> G6
G5 --> G6
end
Figure 9. Comparison with a deliberately simple sequential baseline. Modern LLM-based planners can also create DAGs and execute tasks concurrently; those are essential comparison baselines, not capabilities unique to OneGraph.
8. Manufacturing: understanding resource dependencies and downstream impact
Consider a manufacturing requirement:
A company needs to produce 500 electric vehicles. Each vehicle requires a battery, an electric motor and a control unit. Batteries are supplied by Supplier A and motors by Supplier B. Control units are manufactured internally using semiconductor chips. If semiconductor inventory is insufficient, the Procurement Team must order additional chips. Vehicle assembly can begin only when all three components are available and have passed quality inspection. Assembled vehicles must pass safety and performance tests before release for delivery.
flowchart TD
A[Supplier A] -->|SUPPLIES| B[500 batteries]
C[Supplier B] -->|SUPPLIES| D[500 motors]
I[Semiconductor inventory] --> J{Sufficient stock?}
J -->|No| P[Procurement orders chips]
P --> L[Replenished stock verified]
J -->|Yes| M[Manufacture 500 control units]
L --> M
B --> Q1[Battery inspection]
D --> Q2[Motor inspection]
M --> Q3[Control unit inspection]
Q1 --> G[All required components available and passed]
Q2 --> G
Q3 --> G
G --> V[Vehicle assembly]
V --> S[Safety testing]
V --> T[Performance testing]
S --> O[Release for delivery after both pass]
T --> O
classDef resource fill:#dbeafe,stroke:#2563eb,color:#1e3a8a
classDef gate fill:#fef3c7,stroke:#d97706,color:#78350f
classDef quality fill:#ede9fe,stroke:#7c3aed,color:#4c1d95
classDef done fill:#dcfce7,stroke:#16a34a,color:#14532d
class B,D,M resource
class J,P,G gate
class Q1,Q2,Q3,S,T quality
class O done
Figure 10. Resource, quantity, conditional procurement and production dependencies. Component quantities are derived from the stated production target, assuming one of each component per vehicle and no extra stock or yield losses.
If semiconductor inventory becomes insufficient, a downstream impact graph becomes useful:
flowchart TD
A[Semiconductor shortage] -->|BLOCKS if no alternate stock| B[Control unit production]
B -->|MAY DELAY| C[Vehicle assembly]
C -->|MAY DELAY| D[Safety and performance testing]
D -->|PUTS AT RISK| E[Delivery commitment]
A -->|TRIGGERS| F[Inventory and Procurement Agents]
F --> G[Supplier availability and production replanning]
classDef risk fill:#fee2e2,stroke:#dc2626,color:#7f1d1d
classDef task fill:#dbeafe,stroke:#2563eb,color:#1e3a8a
class A,B,C,D,E risk
class F,G task
Figure 11. Potential downstream impact of a shortage, not a prediction of an actual delay.
Instead of reprocessing the entire manufacturing workflow, the orchestrator could investigate the affected subgraph. Actual scheduling impact depends on existing stock, alternative suppliers, buffers and production schedules. Quantitative constraints require inventory and scheduling systems, not just a text prediction model.
9. SDLC: employee expense management and change impact
Consider another SOW:
Employees must authenticate through SSO and submit expense claims with supporting receipts. An AI-powered OCR service extracts transaction details from receipts. The expense validation service compares those details against corporate policies and detects duplicate claims. Claims exceeding ₹25,000 require both reporting-manager and Finance Department approval. Approved claims are processed through the ERP payment system. Employees receive confirmation after successful payment. All transactions, approvals and payments must be recorded in a central audit system.
flowchart TD
U[Employee] --> S[SSO authentication]
S --> C[Expense claim and receipt]
C --> O[OCR service]
O --> V[Expense validation]
P[Corporate expense policy] -->|GOVERNS| V
C -->|Claim metadata| V
V -->|Valid claim| T{Amount above INR 25,000?}
T -->|Yes| M[Manager approval]
T -->|Yes| F[Finance approval]
M --> G[Both approvals obtained]
F --> G
T -->|No| H[Resolve applicable approval policy]
G --> E[ERP payment]
H -->|Required approvals obtained| E
E -->|Payment succeeds| N[Employee notification]
C -.-> A[Central audit system]
M -.-> A
F -.-> A
E -.-> A
classDef service fill:#dbeafe,stroke:#2563eb,color:#1e3a8a
classDef ai fill:#ede9fe,stroke:#7c3aed,color:#4c1d95
classDef gate fill:#fef3c7,stroke:#d97706,color:#78350f
classDef done fill:#dcfce7,stroke:#16a34a,color:#14532d
class S,C,V,E service
class O,A ai
class T,M,F,G,H gate
class N done
Figure 12. Expense management relationship and business process graph. Dashed edges represent audit event flows. Invalid claims are not shown; their handling would need clarification. The SOW does not establish approval rules for claims at or below the threshold.
The graph could become the basis for assigning work to SDLC agents. A key distinction is that runtime business dependencies are not automatically development dependencies. Teams can often build against agreed interfaces, even before another module is implemented.
flowchart TD
A[Architecture Agent: schema and API contracts] --> I[Identity Agent: SSO]
A --> F[Frontend Agent: claim forms]
A --> O[AI Agent: receipt OCR]
A --> P[Policy Agent: expense rules]
A --> V[Backend Agent: validation]
A --> W[Workflow Agent: approvals]
A --> E[Integration Agent: ERP]
A --> N[Notification Agent]
A --> L[Audit Agent]
P -->|Rule definitions| V
P -->|Approval rules| W
I --> T[Integration and QA]
F --> T
O --> T
V --> T
W --> T
E --> T
N --> T
L --> T
T --> H[Human acceptance and release review]
classDef ai fill:#ede9fe,stroke:#7c3aed,color:#4c1d95
classDef agent fill:#dbeafe,stroke:#2563eb,color:#1e3a8a
classDef gate fill:#fef3c7,stroke:#d97706,color:#78350f
class O ai
class I,F,P,V,W,E,N,L agent
class A,T,H gate
Figure 13. A possible agent development plan. Independent implementation tasks can proceed against agreed interfaces; integration testing validates the actual cross-service dependencies. These work packages and sequencing are inferred architecture choices.
Now imagine the client introduces a new requirement midway through development:
International expense claims must support multiple currencies, with automatic currency conversion based on the transaction date.
A graph-aware system could identify the potentially affected parts of the project and propose targeted review and regression tests.
flowchart TD
C[New requirement: multi-currency support] --> D[Database: amount and currency fields]
C --> F[Frontend: currency selection]
C --> X[Exchange-rate source and date rules]
C -.-> O[OCR: check currency field coverage]
D --> V[Validation and policy rules]
F --> V
X --> V
O -.-> V
V --> A[Approval threshold conversion]
V --> P[ERP payment interface]
V --> L[Audit record consistency]
A --> T[Targeted regression testing]
P --> T
L --> T
classDef change fill:#fef3c7,stroke:#d97706,color:#78350f
classDef review fill:#fee2e2,stroke:#dc2626,color:#7f1d1d
class C change
class D,F,X,O,V,A,P,L,T review
Figure 14. Candidate impact graph for a multi-currency requirement. The dashed edge marks a possible impact that depends on whether the existing OCR already captures currency.
Other changes would produce different affected subgraphs:
| Requirement change | Candidate review scope | Reason |
|---|---|---|
| Introduce multi-currency support | Database, frontend, exchange rates, OCR compatibility, validation, approvals, ERP, audit, regression tests | Currency and converted amounts flow across multiple modules. |
| Change OCR output schema | OCR, validation, downstream data consumers, ERP/audit interface checks, regression tests | Consumers of receipt fields may need interface updates. |
| Change approval threshold | Policy and validation, approval engine, payment eligibility, audit, regression tests | Business rules change even when service interfaces remain stable. |
These are illustrative impact scenarios, not measured affected-module counts. A dependency edge identifies a candidate for review; it does not prove that code changes are necessary. A mature system would also inspect API specifications, code dependencies and test coverage to narrow the review scope.
This is where graph-based orchestration becomes particularly interesting. Rather than restarting all agents when a requirement changes, the orchestrator could invalidate only affected outputs and rerun the necessary tasks, while keeping unrelated work intact.
10. A simpler SDLC example: e-commerce checkout
A checkout system makes the relationship-extraction idea easier to understand.
Customers must log in before placing an order. The checkout service must verify product availability and calculate the total price, including applicable discounts. Payment can only be initiated after successful validation. Once payment is confirmed, the system must update inventory, generate an invoice and send an order confirmation email.
flowchart TD
A[Authentication] -->|PREREQUISITE| C[Checkout]
C -->|REQUIRES| I[Inventory availability check]
C -->|REQUIRES| P[Price and discount calculation]
I --> G[Successful validation]
P --> G
G -->|ENABLES| B[Payment service]
B -->|On success| S[Payment confirmed]
S -->|TRIGGERS| U[Inventory update]
S -->|TRIGGERS| V[Invoice generation]
S -->|TRIGGERS| E[Confirmation email]
classDef core fill:#dbeafe,stroke:#2563eb,color:#1e3a8a
classDef dependency fill:#ede9fe,stroke:#7c3aed,color:#4c1d95
classDef gate fill:#fef3c7,stroke:#d97706,color:#78350f
classDef outcome fill:#dcfce7,stroke:#16a34a,color:#14532d
class A,C,B core
class I,P dependency
class G gate
class S,U,V,E outcome
Figure 15. Checkout dependency graph. This is a business workflow, not a complete transaction design. Real implementations need inventory reservation, retry and idempotency rules, failure handling and reconciliation. Independent post-payment actions may run concurrently only when the actual interfaces permit it.
A task-adapted OneGraph model could extract relations such as Checkout REQUIRES Authentication, Payment REQUIRES SuccessfulValidation, and PaymentConfirmation TRIGGERS InvoiceGeneration.
An SDLC orchestrator could use them to propose API interfaces, development tasks and integration tests. If the discount policy changes, the pricing, checkout and payment components become candidates for review. The same graph provides a way to explain why each component was selected.
11. From predefined workflows to dynamically generated agentic graphs
This is the research direction I am most excited about.
Frameworks such as LangGraph have made graph-based agentic workflows practical. Developers can define nodes, edges, state and conditional transitions, compile a graph and execute it with an orchestration runtime. It is important to be precise: LangGraph is not limited to static execution. Its Graph API already supports conditional routing, Command and runtime fan-out through Send. The number of worker invocations can be determined at runtime, and predefined workflows can react to changing state.
The distinction I want to explore is not merely dynamic routing over known nodes. It is predicting a request-specific task graph itself, including which task instances are needed, their input-output relationships, conditions and dependencies, using a specialised relationship model rather than requiring an LLM to generate every plan.
A predefined workflow remains an excellent option when the domain is stable and the process is known. A runtime-generated plan could be useful when requests combine capabilities in ways that are difficult to enumerate ahead of time.
flowchart TD
subgraph S[Predefined workflow topology]
S1[Request] --> S2{Runtime router}
S2 --> S3[Registered path A]
S2 --> S4[Registered path B]
S3 --> S5[Result]
S4 --> S5
end
subgraph D[Request-specific task graph]
D1[Request and available capabilities] --> D2[OneGraph candidate nodes and edges]
D2 --> D3[Validate graph and permissions]
D3 --> D4[Task instance A]
D3 --> D5[Task instance B]
D4 --> D6[Task instance C]
D5 --> D6
D6 --> D7[Result]
end
Figure 16. Illustrative distinction between routing within a predefined topology and constructing a logical task graph for a particular request. This is not a limitation of what LangGraph can implement; LLM planners and other methods can already generate such plans.
How the architecture could work
- Understand the request. Extract goals, constraints, entities, required actions and relationships from the user’s text or source document.
- Ground the plan in capabilities. Match tasks against an approved agent registry containing input/output schemas, permissions, cost estimates and supported operations. Do not invent callable agents.
- Predict the candidate graph. Identify relevant task instances, data dependencies, ordering constraints, conditional branches and evidence.
- Validate the graph. Check schema compatibility, missing inputs, conflicting requirements, authorisation, cycles, required approvals and budget limits. Resolve uncertain edges through an LLM or a human reviewer.
- Execute ready tasks. A scheduler dispatches tasks whose prerequisites are satisfied, stores their outputs and unlocks dependent tasks. Conditions must be evaluated against trusted runtime state.
- Adapt when necessary. If an agent fails, a requirement changes, or a result exposes a missing prerequisite, propose and validate a new version of the affected subgraph before continuing.
flowchart TD
U[User request or SOW] --> M[OneGraph prediction layer]
R[Approved agent registry] --> M
M --> P[Candidate task and dependency graph]
P --> V{Graph validator}
V -->|Uncertain or invalid| L[LLM reasoning or human review]
L --> P
V -->|Valid| S[Deterministic scheduler]
R --> V
S --> A[Ready agent task A]
S --> B[Ready agent task B]
A --> O[Versioned output and state store]
B --> O
O --> Q{More work required?}
Q -->|Ready dependencies| S
Q -->|Plan needs revision| X[Targeted replanning]
X --> P
Q -->|Complete| F[Validated final result]
classDef model fill:#ede9fe,stroke:#7c3aed,color:#4c1d95
classDef gate fill:#fef3c7,stroke:#d97706,color:#78350f
classDef exec fill:#dbeafe,stroke:#2563eb,color:#1e3a8a
classDef done fill:#dcfce7,stroke:#16a34a,color:#14532d
class M,L,X model
class V,Q gate
class S,A,B,O exec
class F done
Figure 17. Proposed dynamic agentic graph architecture. Replanning is bounded, versioned and validated; the model does not directly authorise execution.
OneGraph and LangGraph could complement each other
There are at least two reasonable implementation approaches:
- A stable LangGraph runtime with a dynamic logical DAG in state. Use a registered dispatcher and worker nodes,
Sendfor ready-task fan-out, state updates for completed tasks, and conditional routing to determine whether to execute another wave, replan or finish. A custom scheduler interprets the task graph stored in state. This avoids needing to change the compiled topology for every request. - Compile a request-specific StateGraph. Translate a validated task plan into registered node implementations and edges, then compile it before invocation. If the topology needs to change mid-run, explicitly manage the migration, checkpointing and execution state rather than assuming a compiled graph can simply be mutated safely.
The first approach is a practical starting point for a proof of concept because logical task graphs can change while the execution infrastructure remains stable. Neither approach requires allowing a model to generate arbitrary executable code or granting it unrestricted tool access.
Example: a graph that changes with the request
Consider three requests sent to the same enterprise research assistant:
| Request | Predicted task instances | Dependency structure |
|---|---|---|
| Find a company’s annual reports | Financial retrieval | One focused retrieval task |
| Compare two companies’ profitability | Retrieve company A and company B data, comparative analysis | Independent retrieval tasks feeding one analysis task |
| Compare profitability, analyse news and prepare a risk report | Financial retrieval, news retrieval, comparison, sentiment analysis, risk analysis, report generation | Parallel retrieval, multiple analyses and a dependent synthesis stage |
flowchart TD
subgraph A[Request A: annual reports]
A1[Financial retrieval] --> A2[Result]
end
subgraph B[Request B: comparison]
B1[Company A data] --> B3[Comparative analysis]
B2[Company B data] --> B3
B3 --> B4[Result]
end
subgraph C[Request C: risk report]
C1[Company A data] --> C4[Comparative analysis]
C2[Company B data] --> C4
C3[News retrieval] --> C5[Sentiment analysis]
C4 --> C6[Risk assessment]
C5 --> C6
C4 --> C7[Report generation]
C5 --> C7
C6 --> C7
end
Figure 18. Different logical task graphs generated from different requests using the same capability registry. The examples illustrate plan construction, not observed OneGraph output.
What could a machine-readable execution graph look like?
Below is a small illustrative plan for the comparison request. Edges are encoded as prerequisites; unlike the semantic DEPENDS_ON relation, the scheduler uses the prerequisite-to-consumer direction for execution.
{
"plan_id": "company-comparison-001",
"version": 1,
"status": "proposed",
"nodes": [
{
"id": "fetch_a",
"agent": "financial_retrieval",
"inputs": {"company": "Company A"},
"depends_on": []
},
{
"id": "fetch_b",
"agent": "financial_retrieval",
"inputs": {"company": "Company B"},
"depends_on": []
},
{
"id": "compare",
"agent": "financial_comparison",
"inputs": {
"left": {"from_node": "fetch_a", "output": "statements"},
"right": {"from_node": "fetch_b", "output": "statements"}
},
"depends_on": ["fetch_a", "fetch_b"]
}
]
}
A scheduler could identify fetch_a and fetch_b as ready at the beginning. Only after both produce valid outputs would compare become ready. This is deterministic dependency execution, not an LLM choosing the next step repeatedly.
The proposal is to learn the semantic decisions that help construct the graph and delegate graph algorithms to conventional software. Topological sorting, cycle detection, schema checking and permission checks are not tasks that need neural prediction.
12. What OneGraph could contribute to enterprise AI
| Potential benefit | How a graph could help | What must be measured |
|---|---|---|
| Faster orchestration | Predict a bounded plan and dispatch independent tasks concurrently | Planner latency and end-to-end p50/p95 latency |
| Lower cost | Reduce unnecessary planning calls or duplicate retrieval | Total inference, tool and infrastructure cost per successful task |
| Better routing | Match tasks to eligible agents with compatible interfaces | Agent-selection precision/recall and task success |
| Traceability | Connect predicted relationships to source evidence | Evidence accuracy and reviewer acceptance |
| Adaptability | Replan affected subgraphs rather than restarting everything | Recovery success, wasted work and consistency after changes |
| Reliability | Validate prerequisites, inputs and authorisation before execution | Invalid-plan rate, policy violations and false approvals |
None of these improvements should be assumed from the current benchmark or trainable parameter count. They are hypotheses worth testing.
13. A practical research roadmap
I would begin with a bounded domain and a fixed catalogue of approved capabilities rather than attempting unrestricted autonomous planning from day one.
Stage 1 — Relationship extraction. Reproduce the existing benchmark, document the data and metrics, compare against simpler heads and encoder-based baselines, and evaluate entity, relation and evidence predictions with multiple seeds or uncertainty estimates.
Stage 2 — Dependency-specific supervision. Build or obtain annotated examples of tasks, prerequisites, conditions, coreference, agent capabilities and input/output mappings. Include negative edges, ambiguous requirements and contradictory instructions. Evaluate graph precision and recall, condition correctness, evidence quality and out-of-domain generalisation.
Stage 3 — Plan construction. Assemble candidate task instances and edges from predictions, then apply deterministic graph validation. Measure missing prerequisites, cycle rate, invalid references, plan coverage and whether human reviewers judge the proposed plans sufficient.
Stage 4 — Execution. Integrate with a sandboxed agent registry and scheduler, potentially using LangGraph as the execution runtime. Compare against a static workflow, a sequential LLM controller and an LLM-based DAG planner. Measure end-to-end task success, latency, token and tool costs, unnecessary calls and execution failures under equivalent conditions.
Stage 5 — Dynamic replanning. Inject agent failures and requirement changes. Test whether unaffected results remain reusable, whether dependent results are invalidated correctly and whether the final outcome remains consistent. Use explicit approval gates for sensitive or irreversible operations.
Some of the hardest research questions are not about graph visualisation. They are about predicting the correct task boundaries, distinguishing missing information from negative evidence, resolving conditions and exceptions, and maintaining trustworthy state as execution evolves.
A production implementation would also need access control, tenant isolation, prompt-injection resistance, evidence auditing, bounded retries, time and cost budgets, checkpointing, idempotency and human escalation. A graph can make a system easier to inspect, but it cannot make incorrect predictions safe by itself.
14. Closing thoughts
The future of enterprise AI may not be exclusively about larger models. It may also be about systems that combine specialised prediction, structured representations, generative reasoning and deterministic execution in the right proportions.
OneGraph is my small research step towards exploring that possibility. Starting with text relationships, I want to investigate how evidence-backed predictions could become dependency graphs, how those graphs could guide orchestration, and how agentic systems could adapt their execution plans as requirements change.
The idea is not to replace LLMs or existing orchestration frameworks. It is to explore a complementary intelligence layer that makes focused decisions where appropriate and relies on more capable reasoning when required.
From unstructured text to structured relationships. From relationships to validated execution graphs. From predefined workflows to request-specific agentic plans.
That is what makes this research direction exciting to me. Even a small weekend experiment can give us a concrete idea to test against a real enterprise problem.
References and further reading
- TypeSafe AI, Introducing System One Models & Jev — background on typed decision models; vendor description, not independent validation of all performance claims.
- Warner et al., Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference — ModernBERT research paper.
- LangChain, LangGraph Graph API overview — graph construction, compilation, conditional edges and dynamic routing.
- LangChain, Send reference — runtime worker fan-out with task-specific state.
- LangChain, Graph API documentation source —
Send,Commandand orchestration patterns.
All business scenarios and diagrams are illustrative. The OneGraph training details are author-reported; no source code, raw metrics, company data or proprietary information is included. Diagram colours distinguish conceptual categories rather than empirical confidence scores. The diagrams are embedded as Mermaid, so they can be edited directly and rendered in Mermaid-compatible Markdown viewers such as GitHub.
