AWS Builder Center
Agentic AWS DataOps (Project Ullo)

Agentic AWS DataOps (Project Ullo)

Building an AI-Assisted Incident Triage and Recovery Platform for Data Pipelines

AI/ML Developer & Data Scientist | AWS Studend Builder Group Lead


Introduction: When Data Pipelines Fail, What Happens Next?

Data pipelines rarely fail at convenient times. An upstream service changes its schema, a batch arrives with unexpected values, or a temporary infrastructure issue interrupts a scheduled job. The pipeline stops, downstream analytics remain incomplete, and someone must investigate what went wrong.
For a data engineer, the failure notification is often just the beginning of the work.
The next steps involve inspecting logs, comparing expected and observed schemas, identifying the affected dataset, determining whether a retry is appropriate, and documenting the incident. These tasks are necessary, but much of the initial investigation follows a predictable pattern.
I wanted to explore a better approach: what if a data platform could investigate its own failures, select an appropriate diagnostic tool, preserve evidence, and prepare an incident report before an engineer begins debugging manually?
That question led me to build Project Ullo (Agentic AWS DataOps), a data-quality and incident-management platform that combines deterministic validation, AI-assisted tool selection, controlled Python execution, and generative incident reporting.
The project brings together Amazon S3, Dagster, PostgreSQL, Strands Decider, Amazon Bedrock, and Streamlit to create a workflow that moves beyond simply reporting failed jobs.
The objective is not to replace data engineers or give an AI model unrestricted control over production systems. It is to automate repetitive investigation, make failures easier to understand, and keep remediation actions governed by explicit rules.
Project Ullo combines data validation, AI-assisted investigation, and incident reporting in one work

Project Ullo combines data validation, AI-assisted investigation, and incident reporting in one workflow.

1. The Problem: Detecting a Failure Is Not the Same as Diagnosing It

Modern data pipelines process information from multiple sources, each with its own schema, quality expectations, and operational dependencies. Even a small change upstream can break downstream processing.
Consider an online store that sends order data to an analytics platform. The pipeline expects fields such as  order_id ,  customer_id ,  order_date , and  amount .
One day, the source introduces an unexpected column. On another day, a batch contains invalid amounts or an excessive percentage of missing values.
A reliable pipeline should reject data that violates its contract. However, rejection alone does not explain the failure or determine the next action.
Engineers still need to answer several questions:
  • Which validation rule failed?
  • What changed between the expected and observed data?
  • Is the issue a data-quality violation or a temporary infrastructure failure?
  • Can the batch be safely isolated?
  • Is a retry appropriate, or does the incident require human intervention?
  • What evidence should be shared with the team?
Without a structured incident workflow, answering these questions can involve repeatedly switching between orchestration logs, storage locations, database records, and ad hoc scripts.
Large language models can help interpret technical information, but sending every raw log and dataset to a generative model is not always necessary. It can add inference overhead and cost while introducing uncertainty into decisions that should be based on explicit data contracts and operational policies.
I wanted to separate these responsibilities instead of asking a single model to validate data, diagnose failures, execute recovery operations, and explain the outcome.
That separation became the central design principle behind Project Ullo.

2. The Solution: Agentic AWS DataOps

Project Ullo provides a controlled workflow for data validation, incident capture, AI-assisted investigation, and incident reporting.
The platform begins with deterministic data-quality checks. When a batch violates its contract, the system records the failure and its supporting evidence. An optional AI-assisted workflow can then select an approved investigation or remediation tool, subject to programmatic validation.
After the tools return their results, Amazon Bedrock can generate a human-readable incident report, which is presented through a Streamlit dashboard.
The architecture separates three responsibilities.

The data-quality layer

Data validation is performed using Python and pandas, not an LLM. The pipeline checks incoming CSV files against a defined contract, including required columns, compatible data types, invalid values, and configured null thresholds.
This ensures that data acceptance is determined by explicit rules rather than a generative model's interpretation.

The decision and execution layer

Strands Decider 2B supports tool selection within a predefined catalog. The model proposes an action based on the incident context, and a Python dispatcher validates the selection before invoking the corresponding tool.
This creates a boundary between AI-generated decisions and operations that can affect data or pipeline state.

The reporting and review layer

Amazon Bedrock generates incident summaries from the available evidence and execution results. Streamlit provides a place to inspect the incident, review its findings, and record operator decisions.
The result is a system designed to make failures more actionable without treating every incident as something that should be repaired automatically.

3. Architecture and Technology Stack

The platform combines cloud storage, data orchestration, relational incident tracking, constrained AI tool selection, and an interactive monitoring interface.

Project Ullo's architecture connects cloud storage, orchestration, incident persistence, AI-assisted

Project Ullo's architecture connects cloud storage, orchestration, incident persistence, AI-assisted decisions, and reporting.

Data storage: Amazon S3

Amazon S3 provides the storage foundation for the pipeline.
  • Bronze layer: Preserves incoming CSV files as raw data.
  • Silver layer: Stores accepted datasets in Parquet format for downstream use.
  • Quarantine layer: Provides a designated location for isolating affected batches when the quarantine operation is successfully executed.
The original Bronze object is preserved rather than silently overwritten. Rejected batches do not produce Silver output through the validation workflow.

Orchestration: Dagster

Dagster orchestrates the data-quality job and exposes pipeline runs, asset materializations, and failures.
It also provides the infrastructure for a sensor-driven incident workflow. The incident remediation sensor can identify pending incidents and initiate investigation jobs when enabled.

Dagster provides visibility into pipeline execution and the details needed to investigate a failure.

Dagster provides visibility into pipeline execution and the details needed to investigate a failure.

Data validation: Python and pandas

Python and pandas handle schema inspection, data profiling, type compatibility, null checks, and validation failures.
This deterministic layer is important because data-quality decisions must remain reproducible and testable.

Incident management: PostgreSQL (AWS RDS)

PostgreSQL stores persistent incident information, including pipeline run identifiers, source references, diagnostic evidence, decisions, confidence values, action results, reports, and status transitions.
The database provides a traceable record of the incident lifecycle rather than leaving the investigation scattered across logs.

AI-based tool selection: Strands Decider 2B

Strands Decider 2B is used to select an appropriate operation from the platform's predefined tool catalog.
The implementation supports a configurable decision client, allowing the model to be accessed through a local CLI or an external HTTP decision service.

Incident reporting: Amazon Bedrock

Amazon Bedrock generates natural-language incident reports using the information collected during investigation.
The platform invokes models such as Anthropic Claude 3 and Amazon Nova Micro for report generation, with fallback handling if reporting is unavailable.

Monitoring: Streamlit

The Streamlit dashboard presents incident records, evidence, selected actions, reports, and operator review controls.
Together, these components form an extensible foundation for investigating data-quality failures without making AI responsible for every stage of pipeline execution.

4. How the Workflow Operates

The workflow can be understood through three stages: detecting and recording a failure, investigating it through controlled tools, and presenting the findings for review.

Stage 1: Ingest, validate, and capture incidents

The pipeline reads a selected CSV object from Amazon S3 and runs the configured data-quality checks.
The validation contract includes:
  • Required and unexpected columns.
  • Compatible data types.
  • Invalid numeric values and unparseable dates.
  • Per-column null percentages.
  • Empty, headers-only, and malformed CSV files.
The default null threshold is 15% per column. Values above that threshold fail validation, while a value exactly at the threshold is allowed.
When a batch passes validation, the accepted data is written to the Silver layer as Parquet.
When validation fails, the Dagster run fails and an incident is recorded in PostgreSQL, provided the incident database is available. The original CSV remains intact, and the rejected batch does not produce a Silver dataset.
This approach makes data rejection an explicit, traceable outcome instead of silently removing invalid rows or modifying the source.

The validation stage rejects data that violates the configured contract and records the failure for

The validation stage rejects data that violates the configured contract and records the failure for investigation.

Stage 2: Investigate using approved tools

Once an incident exists, the AI-assisted workflow can use Strands Decider 2B to select an investigation or remediation operation.
The current tool catalog includes five operations:
Tool
Purpose
 inspect_schema 
Compare observed columns and data types with the expected contract.
 profile_nulls 
Examine missing values and identify threshold violations.
 quarantine_batch 
Copy an affected Bronze object to a designated quarantine location while preserving the source.
 retry_pipeline 
Check retry limits and prepare an eligible rerun configuration.
 alert_engineer 
Record a structured result for human review and support configured notification delivery.
The decision model does not directly execute arbitrary commands. Instead, the dispatcher validates the proposed action against the allowlist and passes it to the corresponding Python implementation.
Malformed, unavailable, or invalid decisions fall back to  alert_engineer  with zero confidence. This gives the workflow a defined response when the model cannot provide a usable selection.
The tools have different operational consequences. Schema inspection and null profiling gather evidence, while quarantine changes storage state and retry operations concern pipeline execution.
Keeping these responsibilities separate makes it possible to apply different checks to different actions.
One important implementation boundary remains: the current  retry_pipeline  tool prepares a permitted rerun configuration but does not submit a new Dagster run. Likewise, the hosted quarantine path requires further IAM permission verification before it can be treated as a fully verified recovery operation.
These distinctions matter because selecting a remediation tool and successfully completing remediation are two different outcomes.

The decision layer selects from an approved tool catalog, while the Python dispatcher validates the

The decision layer selects from an approved tool catalog, while the Python dispatcher validates the proposed action.

Stage 3: Generate reports and review incidents

After investigation, the workflow persists its decisions and tool results in PostgreSQL. The reporting component then attempts to generate an incident report through Amazon Bedrock.
A useful report should explain:
  • What failed and which validation rule was involved.
  • What evidence supports the diagnosis.
  • Which tool was selected and what it returned.
  • Whether the requested action succeeded or failed.
  • What remains unresolved and whether an engineer must intervene.
The dashboard makes this information available without requiring the user to reconstruct the entire incident from individual logs.
Operators can inspect the evidence, acknowledge an incident, mark it resolved, or escalate it. These review actions update the incident record; marking an incident resolved does not itself repair the source data or trigger a pipeline rerun.
The purpose of the reporting layer is to make the state of an incident understandable and actionable, while keeping the distinction between a generated explanation and a verified operational result.

The dashboard brings incident status and investigation details into one view for operator review.

*The dashboard brings incident status and investigation details into one view for operator review. *

The generated report organizes available evidence and next steps into a human-readable incident summ

The generated report organizes available evidence and next steps into a human-readable incident summary.

5. A Practical Example: Investigating Schema Drift

Consider an order-processing pipeline with a defined data contract.
The expected columns include:
order_id
customer_id
order_date
status
amount
currency
An upstream producer introduces an additional column, or changes the structure of an existing field.
The incoming batch no longer matches the expected contract.
In a conventional workflow, an engineer would inspect the failed run, locate the source file, compare the schemas, and determine whether the change should be accepted.
Project Ullo structures this investigation into a traceable sequence.
First, the pipeline detects the violation. The validation job identifies the unexpected or incompatible schema and records the failure in PostgreSQL.
Next, the incident becomes available for investigation. The decision model can select  inspect_schema  from the approved tool catalog.
The dispatcher validates the selection. If the decision is valid, the schema inspection tool compares the observed structure with the configured contract.
The evidence is recorded. The incident record can contain the expected and observed schema details, making the reason for rejection easier to inspect.
The system prepares the incident report. Amazon Bedrock can summarize the findings, while the dashboard presents the incident and its recorded actions for review.
The batch remains outside the Silver layer until it satisfies the required validation workflow. An unexpected column is not automatically accepted simply because the model considers it reasonable.
If the change requires a contract update, that decision remains with the responsible engineer or an explicitly authorized process.
This example illustrates the platform's central objective: automate the repetitive investigation while preserving control over data integrity.

6. Safety and Reliability by Design

An incident-management agent needs more than the ability to choose a tool. It must also behave predictably when the input is ambiguous, the model fails, or a proposed action is inappropriate.
Several design decisions address these concerns.

Deterministic validation

The data contract is enforced by conventional Python code. The LLM is not responsible for deciding whether a dataset satisfies the required schema or quality thresholds.
This keeps validation behavior reproducible and allows it to be tested independently of the AI workflow.

An allowlisted execution boundary

The dispatcher restricts execution to known tools. A model response is treated as a proposed decision rather than an executable command.
Invalid responses trigger the configured fallback path instead of granting the model broader access.

Preservation of raw data

The Bronze layer retains the original input, while rejected batches are prevented from entering the Silver output through the validation path.
Quarantine operations are designed to copy the affected object rather than overwrite the source.

Persistent incident history

PostgreSQL records the incident lifecycle, evidence, decisions, and results. This supports review and makes it easier to understand what happened during an investigation.

Human review for unresolved cases

The platform supports operator review and escalation. Uncertain decisions and failed actions should remain visible instead of being reported as successful recovery.
These safeguards reduce the scope of what the model can do, but they do not guarantee zero hallucinations or eliminate every operational risk. Permissions, action preconditions, failure handling, and recovery paths must still be tested against the deployed environment.

7. Testing the Implementation

A system that handles data incidents should be evaluated on its behavior, not just on whether its dashboard loads or its AI model returns a decision.
I tested the implementation across data-quality scenarios and hosted workflows to verify that expected failures were rejected and accepted datasets were processed correctly.

Automated regression tests

The documented verification run on October 19, 2026, passed 24 automated tests covering environment and startup behavior, project discovery, mixed-data validation, unreadable-CSV incident handling, dashboard startup, and deployment-package exclusions.
These tests provide a regression baseline for the implementation. They do not, by themselves, establish that every AI remediation path works against live AWS services.

Synthetic data-quality campaign

The project includes 15 synthetic test cases: five acceptable inputs and ten deliberately broken cases.
These cases cover schema changes, null thresholds, invalid amounts and dates, malformed CSV files, and invalid data occurring beyond the first 1,000 rows.
The recorded live campaign matched all 15 expected outcomes.

Hosted AWS verification

Hosted tests also covered clean and invalid datasets containing 1,100 rows. The clean dataset produced the expected Parquet output, while the invalid dataset triggered the expected validation failure and incident record.
The project documentation also records a successful hosted Strands Decider decision selecting  inspect_schema  with a confidence score of 0.927. However, that decision took approximately seven minutes and three seconds on the configured CPU instance, highlighting a significant performance limitation.
These results demonstrate functional validation and selected hosted behaviors. They should not be interpreted as proof of production-scale throughput, fast incident recovery, or fully autonomous remediation.
I would only add a benchmark chart here after measuring decision latency, end-to-end investigation time, and a rule-based baseline under comparable conditions. That comparison would help establish where model-based routing provides a practical advantage.

8. What I Learned and What Needs Improvement

Building this platform reinforced an important engineering lesson: integrating AI into a data workflow is not simply a matter of connecting a model to a set of tools.
The surrounding system determines whether the model's decisions are useful, reproducible, and safe to act upon.
A decision model may select the correct tool, but the action can still fail because of permissions, resource availability, malformed inputs, or unmet preconditions. A generated report can sound convincing while an underlying operation remains incomplete.
For this reason, incident state, tool execution results, and final resolution status must be treated as separate pieces of information.
The implementation also exposed a practical performance challenge. Running a 2B model on a memory-constrained CPU instance can introduce substantial latency and memory pressure. A lightweight model is not automatically a low-latency model in every deployment environment.
This creates an important optimization direction: evaluate smaller or more efficient inference configurations, reduce unnecessary model calls, and compare model-based routing with deterministic rules for predictable failure categories.
The next stage of development should also focus on verifying quarantine permissions, implementing an actual bounded retry workflow, and measuring the decision engine against a conventional rule-based baseline.
These are not just additional features. They are necessary steps toward establishing when AI-assisted incident handling provides a measurable advantage over a simpler data operations system.

9. Future Scope

The current implementation focuses on batch CSV validation and incident management. Its architecture provides a starting point for extending the same approach to other data engineering problems.
Potential directions include:
  • dbt failure investigation: Analyze failed data tests and identify the evidence associated with upstream quality problems.
  • Apache Iceberg monitoring: Investigate schema evolution and metadata-related failures.
  • Data freshness checks: Detect delayed or missing batches before downstream analytics are affected.
  • Incident correlation: Identify related failures across pipelines that share upstream dependencies.
  • Governed recovery workflows: Add explicit approval gates for production changes and more consequential remediation actions.
  • Performance-aware routing: Use deterministic rules for predictable cases and reserve model inference for decisions where it adds measurable value.
Each extension would need its own implementation, permission boundaries, and test coverage. The objective is to expand the platform without weakening the separation between AI decision-making and operational control.

Conclusion

Project Ullo explores how AI-assisted tool selection can fit into a practical data engineering workflow.
By combining deterministic validation, Dagster orchestration, persistent incident records, a constrained decision model, controlled Python execution, and Amazon Bedrock reporting, the platform provides a structured way to investigate data-quality failures and present their evidence for review.
Its main contribution is not simply using AI to explain an error. It is organizing the process around a clear boundary between detecting a problem, selecting an action, validating that action, executing it, and recording the result.
The current implementation demonstrates the data-quality pipeline, incident persistence, dashboard, testing workflows, and selected hosted AI behavior. Full automatic recovery remains an area for further implementation and verification.
My goal is to develop this into a platform where engineers spend less time tracing routine failures and more time solving the problems that genuinely require their expertise.
A failed pipeline should be more than a red status in an orchestration dashboard. It should be the beginning of a structured investigation, supported by evidence, governed actions, and a clear path toward resolution.



Project Resources

Project: Agentic AWS DataOps — Project Ullo
Demo Video:

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article