AWS Builder Center
Can We Trust AI to Make Decisions About Our Cities? | Part 6

Can We Trust AI to Make Decisions About Our Cities? | Part 6

Can we trust AI with urban decisions? Explore evidence verification, AI guardrails, audit trails, agent evaluation, and human approval workflows using AWS to build safer, more accountable smart-city intelligence.

Series: THE CITY THAT CAN FEEL: Building an Artificial Nervous System for Smart Cities Using AWS (7 articles)

  1. …
  2. 6
    Can We Trust AI to Make Decisions About Our Cities? | Part 6 This article

THE CITY THAT CAN FEEL | PART 06/07

Can We Trust AI to Make Decisions About Our Cities? Building a Trustworthy AI Investigation System Using AWS

1. Introduction: Intelligence without trust is not enough

Imagine an AI-powered urban intelligence platform identifies a possible drainage failure.
It retrieves sensor readings, explores infrastructure relationships, examines historical incidents, and runs a scenario analysis.
Finally, it generates this recommendation:
"Drainage Network DRAIN_001 may be experiencing an operational issue. Road R001 and nearby public facilities should be investigated."
It sounds useful.
But how do we know the sensor readings are accurate?
Was the infrastructure relationship verified?
Did the simulation use the correct assumptions?
Did the AI invent a connection that does not exist?
Did it confuse a possible impact with a confirmed incident?
These are not minor questions. They are fundamental engineering requirements.
In a smart city, AI-generated information could influence maintenance priorities, emergency planning, public services, and infrastructure operations.
A convincing answer is not necessarily a correct answer.
The real challenge is not simply building an AI system that can make recommendations. It is building one that can explain where its information came from, show how its conclusions were reached, identify uncertainty, and allow authorized people to verify the result.
In Part 5, we explored graph-based infrastructure analysis and scenario simulation.
In this sixth episode, we introduce the trust layer of our proposed artificial nervous system.
Our focus is on five important capabilities:
  • Evidence traceability
  • Data and model verification
  • AI guardrails
  • Agent observability and evaluation
  • Human approval and accountability
The goal is to make AI-assisted urban intelligence more transparent and responsible.
Architecture disclosure: This article describes a proposed AWS-based architecture and illustrative Python examples. It does not claim that a city-wide AI governance platform has been deployed or that its reliability has been measured in a real city.

2. The trust problem: Five ways an AI system can go wrong

Before designing safeguards, let's understand the risks.

A. Incorrect sensor information

A sensor may be damaged, incorrectly calibrated, disconnected, or producing incomplete readings.
If the system trusts every measurement, it may generate misleading alerts.

B. Incorrect infrastructure relationships

A knowledge graph may contain outdated or incorrect relationships.
For example, a road may have been rerouted, a pipeline replaced, or a facility moved.
If the AI uses old infrastructure information, its impact analysis may be incorrect.

C. Hallucinated explanations

A generative AI model may produce information that sounds convincing but is not supported by the retrieved evidence.
For example:
"The drainage failure will affect the nearby hospital."
But perhaps the graph only shows that the hospital is geographically close to the drainage network. That does not establish that the hospital will be affected.

D. Incorrect simulation interpretation

A simulation might produce an estimated water-level increase under a particular set of assumptions.
The AI may mistakenly describe that hypothetical result as a confirmed future event.

E. Unsafe autonomous actions

An agent might attempt to trigger an operational action without sufficient authorization.
For example, an AI application should not independently close a public road, change a traffic signal, or activate emergency infrastructure controls based only on an unverified model output.
These risks show why AI capability must be combined with verification, permissions, and human oversight.

3. The evidence-first approach

One of the most important principles of a trustworthy AI system is that every important conclusion should be connected to supporting evidence.
Instead of allowing the model to generate an unrestricted answer, we can design an evidence-first workflow.
Consider this question:
"Which infrastructure assets may be affected by the unusual water-level reading in Zone A?"
A proposed investigation workflow:
Step 1 — Retrieve the original measurement
Obtain the sensor identifier, measured value, unit, event timestamp, and device status.
Step 2 — Validate the measurement
Check the sensor's identity, calibration status, measurement range, timestamp, and data quality.
Step 3 — Retrieve infrastructure relationships
Query the knowledge graph for verified connections.
Step 4 — Retrieve historical evidence
Find relevant previous incidents, maintenance records, and inspection information.
Step 5 — Examine simulation outputs
Retrieve the exact simulation result, model version, input assumptions, and execution time.
Step 6 — Generate an evidence-based summary
The AI summarizes the retrieved information without adding unsupported claims.
Step 7 — Verify the response
Check whether important claims are supported by the evidence.
Step 8 — Request human review
An authorized operator decides whether the recommendation should lead to an operational action.
This approach makes evidence a required part of the investigation rather than an optional citation added at the end.

4. Designing an evidence record

A useful way to implement evidence traceability is to create a structured evidence record.
For example:
{
"evidence_id": "EV_001",
"source_type": "sensor_reading",
"source_id": "WATER_001",
"asset_id": "DRAIN_001",
"observed_value": 86.5,
"unit": "cm",
"event_timestamp": "2026-11-14T06:30:00Z",
"validation_status": "PENDING",
"source_reference": "sensor-record-001"
}
This is an illustrative record, not a real sensor measurement.
A production evidence record should also consider:
  • Source ownership
  • Collection method
  • Device calibration information
  • Ingestion timestamp
  • Validation timestamp
  • Data version
  • Access permissions
  • Retention requirements
For graph relationships, we can store additional metadata.
{
"relationship_id": "REL_001",
"source_asset": "WATER_001",
"relationship": "MONITORS",
"target_asset": "DRAIN_001",
"source_document": "infrastructure-record-2026",
"verification_status": "VERIFIED",
"valid_from": "2026-01-01",
"last_verified": "2026-11-10"
}
This makes it possible to distinguish verified relationships from assumptions or incomplete records.
A critical design rule:
Never treat an unverified relationship as a confirmed infrastructure dependency.

5. Proposed AWS architecture: Building the trust layer

Let's extend the architecture developed in the previous episodes.

Layer 1: Evidence collection and storage

Collect data from:
  • IoT sensor records
  • Infrastructure asset databases
  • Knowledge graph queries
  • Historical incident records
  • Simulation outputs
  • Maintenance reports
Proposed AWS services:
  • Amazon S3 for evidence and historical records.
  • Amazon DynamoDB for structured investigation metadata and workflow status.
  • Amazon Neptune for infrastructure relationships.
The application should preserve the original source records and their identifiers.

Layer 2: Evidence validation

Before information reaches the AI model, validate it.
Possible checks include:
  • Is the sensor registered?
  • Is the timestamp valid?
  • Is the measurement within the permitted range?
  • Is the infrastructure relationship verified?
  • Is the simulation result complete?
  • Does the referenced model version exist?
Proposed AWS services:
  • AWS Lambda for validation logic.
  • AWS Step Functions for coordinating multi-stage verification.
  • Amazon EventBridge for event-driven workflow initiation.
Validation should be deterministic wherever possible. A language model should not decide whether a sensor identifier exists in the authoritative device registry.

Layer 3: AI safety and response validation

Generative AI can be useful for combining information and producing understandable summaries.
But it needs safeguards.
Proposed AWS service: Amazon Bedrock Guardrails
Amazon Bedrock Guardrails offers configurable safeguards that can help with:
  • Content filtering
  • Prompt attack detection
  • Denied topics
  • Sensitive information filtering
  • Contextual grounding checks
  • Automated Reasoning checks
These capabilities can help reduce certain risks, but they do not guarantee that every response is factually correct.
For our proposed city intelligence platform, guardrails can help prevent unsafe or unsupported AI interactions.
For example, we could configure policies to prevent the application from presenting unverified emergency declarations as authoritative instructions.
Contextual grounding checks can help evaluate whether a response is supported by the provided source material.
Automated Reasoning checks can help evaluate model responses against explicitly defined logical rules and assumptions.
These safeguards should be tested with representative application data and failure cases.

Layer 4: Agent observability and auditing

If multiple AI agents are involved, we need to understand what each agent did.
Questions we should be able to answer include:
  • Which agent handled the request?
  • Which tool did it invoke?
  • What information did the tool return?
  • Which graph query was executed?
  • Which simulation was requested?
  • How long did each stage take?
  • Was an error encountered?
  • What information was included in the final response?
Proposed AWS technology: Amazon Bedrock AgentCore Observability
AgentCore Observability provides tracing and telemetry capabilities for agent workflows, including execution paths, metrics, and audit-related visibility.
It uses OpenTelemetry-compatible telemetry and integrates with Amazon CloudWatch for monitoring.
This can help developers investigate agent behavior and identify operational failures.
Observability is not the same as correctness verification. A complete trace shows what happened, not necessarily whether the conclusion was right.

Layer 5: Human approval

Some decisions should never be made by an AI system alone.
Examples include:
  • Closing a public road
  • Issuing an official emergency alert
  • Changing traffic-control settings
  • Activating critical infrastructure controls
  • Dispatching emergency resources
For these actions, we can design an approval workflow.
Proposed AWS service: AWS Step Functions
A workflow can pause at an approval stage until an authorized person responds.
Step Functions supports callback patterns that allow a workflow to wait for an external response before continuing.
This is useful for implementing explicit human approval checkpoints.
The AI can prepare the evidence and recommendation. The authorized operator makes the final decision.

Proposed Architecture on AWS



6. Practical implementation: Building an evidence verification layer using Python

Let's create a small local prototype.
The goal is to demonstrate how a system can check whether a generated claim is supported by an available evidence record.
We will use Python and simple deterministic validation rules.
This is not a complete fact-checking model. It is an illustrative evidence-validation component.

Step 1: Define the evidence

evidence = [
{
"evidence_id": "EV_001",
"asset_id": "DRAIN_001",
"claim_type": "water_level",
"value": 86.5,
"unit": "cm",
"status": "VERIFIED"
},
{
"evidence_id": "EV_002",
"asset_id": "ROAD_001",
"claim_type": "traffic_speed",
"value": 18,
"unit": "km/h",
"status": "VERIFIED"
}
]
These are hypothetical records.

Step 2: Create an AI-generated claim

Imagine that an AI application generates the following claim:
generated_claim = {
"asset_id": "DRAIN_001",
"claim_type": "water_level",
"value": 86.5,
"unit": "cm"
}

Step 3: Verify the claim against evidence

def verify_claim(claim, evidence_records):

for record in evidence_records:

if (
record["asset_id"] == claim["asset_id"]
and record["claim_type"] == claim["claim_type"]
and record["status"] == "VERIFIED"
):

if (
record["value"] == claim["value"]
and record["unit"] == claim["unit"]
):
return {
"result": "SUPPORTED",
"evidence_id": record["evidence_id"]
}

return {
"result": "NOT_VERIFIED",
"evidence_id": None
}

result = verify_claim(
generated_claim,
evidence
)

print(result)
Illustrative output:
{
'result': 'SUPPORTED',
'evidence_id': 'EV_001'
}

Step 4: Test an unsupported claim

unsupported_claim = {
"asset_id": "HOSPITAL_001",
"claim_type": "service_disruption",
"value": 1,
"unit": "status"
}

result = verify_claim(
unsupported_claim,
evidence
)

print(result)
Illustrative output:
{
'result': 'NOT_VERIFIED',
'evidence_id': None
}
The system does not have evidence for the hospital disruption claim, so it refuses to mark it as supported.
This is the behavior we want from an evidence-first application.

Important limitation

This simple function checks exact field matches.
It does not prove that the source record is genuine, that the sensor was correctly calibrated, or that the measurement is physically accurate.
A production verification pipeline needs:
  • Trusted source registries
  • Schema validation
  • Timestamp checks
  • Data-quality rules
  • Digital provenance
  • Version management
  • Authorization checks
  • Independent domain validation
The example demonstrates traceability logic, not complete factual verification.

7. Building an AI response with evidence references

A trustworthy application should return more than a paragraph.
It should provide structured information.
For example:
{
"investigation_id": "INV_001",
"summary": "An unusual water-level reading was recorded.",
"findings": [
{
"claim": "Water level measured 86.5 cm.",
"evidence_id": "EV_001",
"verification": "SUPPORTED"
},
{
"claim": "Road traffic speed measured 18 km/h.",
"evidence_id": "EV_002",
"verification": "SUPPORTED"
},
{
"claim": "Hospital access is disrupted.",
"evidence_id": null,
"verification": "NOT_VERIFIED"
}
],
"recommended_action": "Request operator investigation",
"approval_required": true
}
The output separates supported observations from unverified conclusions.
This is much more useful than allowing a generative AI model to produce one unrestricted narrative.
It also allows a dashboard to show the original evidence behind every important finding.

8. Human-in-the-loop: Keeping people responsible for important decisions

Human oversight should not be added as an afterthought.
It should be part of the architecture from the beginning.
Consider a proposed workflow:
  1. An anomaly detection model identifies a potential problem.
  1. The graph analysis service identifies connected assets.
  1. A simulation tool evaluates a defined scenario.
  1. The AI application prepares an evidence-backed report.
  1. The validation layer checks important claims.
  1. The report is sent to an authorized operator.
  1. The operator reviews the evidence.
  1. The operator approves, rejects, or requests further investigation.
  1. The decision is recorded for audit purposes.
The approval workflow can use AWS Step Functions.
A state machine could contain:
START
|
v
COLLECT EVIDENCE
|
v
VALIDATE CLAIMS
|
v
GENERATE REPORT
|
v
HUMAN APPROVAL
|
+------ REJECT ------> CLOSE / INVESTIGATE
|
+------ APPROVE -----> AUTHORIZED WORKFLOW
|
v
AUDIT RECORD
The approved workflow should only execute actions that the operator is authorized to approve and that the system is explicitly designed to perform.

9. Agent evaluation: How do we know the AI is behaving correctly?

A multi-agent architecture creates additional evaluation requirements.
Each agent should have clearly defined responsibilities.
Agent
What should be evaluated?
Incident Analysis Agent
Correct identification of the event
Graph Agent
Correct graph queries and asset relationships
Scenario Agent
Correct inputs and simulation execution
Risk Assessment Agent
Appropriate use of model outputs
Reporting Agent
Evidence coverage and factual consistency
Useful evaluation dimensions include:
Tool accuracy: Did the agent call the correct tool?
Evidence coverage: Are important claims linked to supporting records?
Grounding: Does the response stay within the retrieved evidence?
Permission compliance: Did the agent operate only within its allowed permissions?
Reproducibility: Can the investigation be reconstructed from stored inputs and outputs?
Operational reliability: Did the workflow finish successfully without missing important stages?
Human review outcomes: How often were recommendations accepted, rejected, or sent back for additional evidence?
For critical applications, create a test dataset containing both normal and difficult cases, including missing records, conflicting data, outdated relationships, and misleading prompts.
Do not evaluate the system only using successful demonstrations.

10. Security and governance

A city intelligence platform can contain sensitive infrastructure information.
Security must be built into every layer.
Important controls include:
  • IAM least-privilege permissions
  • Encryption at rest and in transit
  • Secure device identities
  • Restricted graph database access
  • Network isolation
  • Audit logging
  • Data-retention policies
  • Secrets management
  • Human approval for consequential operations
AI agents should receive only the tools and permissions required for their tasks.
For example, a reporting agent may be allowed to read verified evidence and generate summaries, but it should not have permission to modify infrastructure configuration.
Separate read, analysis, approval, and execution permissions.
This reduces the potential impact of an incorrect or manipulated AI response.

11. What makes this different from an ordinary AI chatbot?

Ordinary AI chatbot
Proposed trustworthy urban AI
Generates conversational answers
Produces evidence-linked findings
May not preserve source references
Tracks evidence identifiers
Often hides internal tool activity
Records workflow and tool execution
May present uncertainty poorly
Labels unverified claims
Can produce recommendations without approval
Uses human approval for consequential actions
Limited operational traceability
Maintains investigation and audit records
The purpose is not to eliminate generative AI.
It is to surround generative AI with the engineering controls required for responsible use.

12. What have we designed in Part 6?

We have added a trust and verification layer to our proposed artificial nervous system.
The architecture now includes:
  • Sensor and infrastructure data validation
  • Evidence records and source references
  • AI safety guardrails
  • Agent tracing and observability
  • Structured claim verification
  • Human approval workflows
  • Audit records
The central principle is simple:
AI should not only explain what it recommends. It should show the evidence behind that recommendation and clearly identify what remains uncertain.

13. What comes next? Part 7 — The final episode

Over the last six episodes, we have developed the building blocks of our proposed artificial nervous system:
Part 1 — The city intelligence vision.
Part 2 — Sensor communication and real-time data ingestion.
Part 3 — AI-based anomaly detection.
Part 4 — Infrastructure knowledge graphs.
Part 5 — Graph-based impact analysis and scenario simulation.
Part 6 — Evidence, verification, and human oversight.
Now it is time to bring everything together.
In Part 7, we will explore:
Creating a Self-Aware Smart City: The Complete AWS Architecture.
We will connect the individual layers into one proposed platform, examine end-to-end data flow, discuss deployment choices, and outline a realistic implementation roadmap.
The city has learned to sense, listen, recognize, connect, investigate, and verify.
Now let's bring the entire vision together.
THE CITY THAT CAN FEEL — Seven days. Seven technical deep dives. One intelligent city vision.



References and further reading

Disclaimer: This article describes a proposed architecture and illustrative Python examples. Evidence records, measurements, claims, and investigation outputs are hypothetical. The examples do not establish the accuracy of a real-world sensor or AI system. AWS guardrails and monitoring capabilities reduce certain risks but do not guarantee correctness. Real-world deployment requires independent validation, security reviews, domain expertise, and authorized human oversight.

Series: THE CITY THAT CAN FEEL: Building an Artificial Nervous System for Smart Cities Using AWS (7 articles)

  1. …
  2. 6
    Can We Trust AI to Make Decisions About Our Cities? | Part 6 This article
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