---
title: "Discussion on \"The type check passed, so the agent shipped a value shape the runtime never produced\" | Hashnode"
description: "Discussion on \"The type check passed, so the agent shipped a value shape the runtime never produced\". The agent wrote interfaces on both ends, ran tsc, saw green, and marked it done. The UI rendered undefined because the producer nests its payload under a wrapper the declared type never mentioned. A green check proves the code agrees with itself, not that the outside world returned the shape."
url: "https://hashnode.com/posts/typecheck-green-but-agent-never-validated-runtime-value-shape/6add3190e31144b5917d6abc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The type check passed, so the agent shipped a value shape the runtime never produced](https://blogs.powerduck.com/typecheck-green-but-agent-never-validated-runtime-value-shape?utm_source=hashnode&utm_medium=feed)

The agent wrote interfaces on both ends, ran tsc, saw green, and marked it done. The UI rendered undefined because the producer nests its payload under a wrapper the declared type never mentioned. A green check proves the code agrees with itself, not that the outside world returned the shape.

Oct 24 · 4 min read · blogs.powerduck.com  
Read the article

-   [#aiagents](https://hashnode.com/tag/aiagents)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#testing](https://hashnode.com/tag/testing)
-   [#verification](https://hashnode.com/tag/verification)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
