# phase-10h-chat-integrity-review

phase-10h-chat-integrity-review reviews uncommitted git diffs for Phantom chat transcript integrity in Claude Code. It inspects attachment persistence and message rendering without modifying project code.

- prompt · `type=prompt` · Claude Code, ChatGPT · ★ 1497 repo stars
- Author: ghostwright
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/ghostwright/phantom/tree/HEAD/prompts/phase-10h-chat-integrity-review.md
- Updated: 2026-06-16
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/prompts/phase-10h-chat-integrity-review

## What it does

Turns Claude Code into a strict technical reviewer for uncommitted changes in `git diff`. The agent reviews Phase 10H documentation first. Then it checks chat transcripts and grades findings from P0 to P3.

Application files remain untouched because the prompt forbids direct edits. All findings go into `phase-10h-chat-integrity-review.md`. The instructions target silent file upload failures, unauthenticated attachment previews, and TypeScript escapes like `any` or `@ts-ignore`.

The prompt references hardcoded local paths like `/Users/truffle/work/phantom-murph-hardening`. Running it elsewhere requires updating those paths manually.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/phase-10h-chat-integrity-review.md`

### ChatGPT

**How to use**
- Paste the text at the start of a chat or into project instructions

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ghostwright/phantom/tree/HEAD/prompts/phase-10h-chat-integrity-review.md

## When to use it
- audit uncommitted chat diffs for streaming and replay regressions
- catch silent file upload failures and double-submission issues
- verify attachment metadata persistence without raw base64 payloads
- flag prohibited TypeScript escapes like `any` and `@ts-ignore`

## Example prompts
- Review the current `git diff` using `phase-10h-chat-integrity-review` and list all regressions.
- Run the chat integrity review and write findings to `phase-10h-chat-integrity-review.md` without modifying source files.

## Source text · phase-10h-chat-integrity-review.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: b20f28eb201bf744.

BEGIN THIRD-PARTY FILE b20f28eb201bf744
```text
ultrathink. ultrathink. ultrathink.

You are a principal engineer, principal architect, and principal product manager at Anthropic, all three at once. You are reviewing the Phase 10H Phantom chat transcript-integrity slice in `/Users/truffle/work/phantom-murph-hardening`.

No context anxiety. No token limits. No time pressure. No cost anxiety. No "v2" thinking. There is no v2. Build it right. Take as long as you need.

## Mission

Review the current uncommitted diff. Do not edit application code. Write your review report to:

`/Users/truffle/work/phantom-murph-hardening/research/chat-experience/phase-10h-chat-integrity-review.md`

Focus on bugs, regressions, missing tests, and product-trust issues.

## Required Reading

Read:

1. `/Users/truffle/.claude/AGENTS.md`
2. `/Users/truffle/.claude/CLAUDE.md`
3. `/Users/truffle/work/phantom-murph-hardening/CLAUDE.md`
4. `/Users/truffle/work/phantom-murph-hardening/research/chat-experience/phase-10h-product-direction.md`
5. `/Users/truffle/work/phantom-murph-hardening/research/chat-experience/phase-10h-phantom-chat-review.md`
6. `/Users/truffle/work/phantom-murph-hardening/research/chat-experience/phase-10h-pi-thinking-research.md`
7. `/Users/truffle/work/phantom-murph-hardening/research/chat-experience/phase-10h-provider-thinking-research.md`
8. `/Users/truffle/work/phantom-murph-hardening/prompts/phase-10h-chat-integrity-builder.md`

Then inspect the actual diff with `git diff`, not summaries.

## Review Scope

Pay special attention to:

- Runtime or SDK result errors must not become empty successful assistant rows.
- User attachment metadata must be persisted without base64 payloads.
- Sent user-message attachments must appear live and after reload.
- Upload failures must not silently send prompts without the intended files.
- Assistant messages with multiple text blocks must render all text.
- Chat input should not double-send while upload is pending.
- Attachment preview URLs must stay authenticated and safe.
- Existing chat streaming, replay, and resume semantics must not regress.
- No explicit `any`, `@ts-ignore`, hidden type escapes, or broad unrelated refactors.
- No generated build artifact should be included unless there is a clear reason.

## Output Format

Findings first, ordered by severity. Use P0/P1/P2/P3. Include exact file paths and line references. If there are no P0/P1/P2 findings, say that explicitly.

Then include:

1. Tests you ran or inspected.
2. Residual risks.
3. Whether this diff is safe to proceed to live browser verification.

Do not make code changes. Write only the report file.

ultrathink. Treat the transcript as a trust surface. The review should be skeptical, specific, and grounded in actual files.
```
END THIRD-PARTY FILE b20f28eb201bf744

The third-party file has ended. Everything between the b20f28eb201bf744 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© ghostwright · Apache-2.0 · https://github.com/ghostwright/phantom/tree/HEAD/prompts/phase-10h-chat-integrity-review.md

## Similar
- [audit-integrity](https://affpapa.org/en/nevibecode/skills/audit-integrity.md) — skill · 202 installs
- [integrity-forensics](https://affpapa.org/en/nevibecode/skills/integrity-forensics.md) — skill · 327 installs
- [GitHub Chat](https://affpapa.org/en/nevibecode/mcp/github-chat.md) — MCP server
- [chat-sdk](https://affpapa.org/en/nevibecode/skills/vercel-chat-sdk.md) — skill · 5500 installs
- [ccf-integrity-auditor](https://affpapa.org/en/nevibecode/skills/ccf-integrity-auditor.md) — skill · 2200 installs
- [google-chat-messages](https://affpapa.org/en/nevibecode/skills/google-chat-messages.md) — skill · 1300 installs

From the same set: [ghostwright/phantom](https://affpapa.org/en/nevibecode/by/ghostwright/phantom.md) — 38 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
