phase-10b-durable-timeline-re-reviewer — промпт для Claude Code
Промпт phase-10b-durable-timeline-re-reviewer для повторного аудита пуллреквеста Phantom PR #106 Phase 10B в Claude Code. Проверяет защиту от утечки секретов и корректность возобновления сессий.
Apache-2.0 ★ 1 497 обновлён 2026-06-16
.claude/commands/phase-10b-durable-timeline-re-reviewer.mdЧто делает phase-10b-durable-timeline-re-reviewer
Промпт запускает режим строгого архитектурного ревью ветки в /Users/truffle/work/phantom-pr-106-push. Модель выступает в роли ведущего инженера и архитектора Anthropic: ей запрещено править файлы или откатывать изменения. Задача состоит в проверке исправлений для трёх ранее найденных проблем: утечки сырых секретов в таймлайне, ложных срабатываний восстановления после терминальных событий и устаревших тестов миграций.
Инспекция сфокусирована на файлах таймлайна (src/chat/run-timeline.ts), журнале событий, схеме базы данных (src/db/schema.ts) и компонентах интерфейса чата в chat-ui. Ответ строится строго по формату: вердикт Verdict: PASS либо список находок по уровням серьёзности от P0 до P2 с ссылками на строки, пробелами в тестах и остаточными рисками.
Промпт жёстко завязан на конкретный путь к рабочей директории и контекст репозитория Phantom. Запускать проверку всего репозитория через bunx biome check . модель не будет из-за старых ошибок форматирования вне затронутых файлов.
Какие задачи решает
- проверить персистентный таймлайн чата на утечки токенов, ключей и кук
- проконтролировать восстановление сессии при наличии post-terminal событий
- проверить идемпотентность повтора событий при переподключении интерфейса
- оценить покрытие тестами миграций базы данных и каскадных удалений
Примеры запросов агенту
- /phase-10b-durable-timeline-re-reviewer
- Проверь ветку Phantom PR #106 по сценарию
.claude/commands/phase-10b-durable-timeline-re-reviewer.md
Как установить phase-10b-durable-timeline-re-reviewer
Вручную: положить файлы
.claude/commands/phase-10b-durable-timeline-re-reviewer.mdКак использовать
Вставьте текст в начало диалога или в инструкции проекта
Вопросы о phase-10b-durable-timeline-re-reviewer
Как установить phase-10b-durable-timeline-re-reviewer в Claude Code?
Сохраните файл промпта по пути .claude/commands/phase-10b-durable-timeline-re-reviewer.md внутри вашего репозитория.
Что проверяет этот промпт?
Он инспектирует исправления в кодовой базе Phantom, контролируя сохранность секретов в истории чата, логику replay-событий, тесты миграций и отсутствие блокирующих дефектов P0–P2.
Разрешено ли агенту редактировать файлы во время ревью?
Нет, инструкция прямо запрещает агенту вносить правки в код или выполнять откат изменений, требуя формировать только отчёт с доказательствами.
Исходный текст
phase-10b-durable-timeline-re-reviewer.md · Apache-2.0
ultrathink. ultrathink. ultrathink. You are a principal engineer, principal architect, and principal product manager at Anthropic reviewing Phantom PR #106 Phase 10B after fixes. You are not alone in the codebase. Do not edit files. Do not revert anything. Your job is to verify the current branch in `/Users/truffle/work/phantom-pr-106-push` and report only actionable findings. Context: - Phantom PR #106 is `codex/murph-agent-runtime-clean`. - Phase 10B adds durable Murph chat run timelines and route-load replay state. - The prior review found three issues: 1. P1: durable timeline summaries could persist raw secrets or raw tool output. 2. P2: resume state treated benign post-terminal `session.suggestion` frames as incomplete tails. 3. P2: migration tests were stale and did not assert the new table/indexes. - These fixes are now implemented in the current worktree. Files to inspect first: - `src/chat/run-timeline.ts` - `src/chat/__tests__/run-timeline.test.ts` - `src/chat/event-log.ts` - `src/chat/sse.ts` - `src/chat/http-handlers.ts` - `src/chat/__tests__/event-log.test.ts` - `src/chat/__tests__/http-resume.test.ts` - `src/db/schema.ts` - `src/db/__tests__/migrate.test.ts` - `chat-ui/src/lib/chat-store.ts` - `chat-ui/src/hooks/use-chat.ts` - `chat-ui/src/components/message-list.tsx` Review questions: 1. Does the durable timeline persist any raw tool stdout/stderr, raw command arguments, raw OAuth query params, AWS-style access keys, private keys, bearer tokens, cookies, or other credential-shaped values? 2. Does resume recovery now avoid synthetic server-restart recovery for a completed run followed only by benign post-terminal suggestion events? 3. Does resume recovery still emit recovery for genuinely incomplete tails? 4. Are replay events idempotent enough to avoid duplicate assistant/user messages and duplicate final text after route load or reconnect? 5. Are the migration count, migration indices, table shape, indexes, and cascade/delete behavior covered well enough for this phase? 6. Is there any P0/P1/P2 issue in the current implementation that should block committing and pushing this phase? Verification commands already run by the orchestrator: - `bun test` - `cd chat-ui && bun test` - `bun run typecheck` - `cd chat-ui && bun run typecheck` - targeted `bunx biome check` on all files changed by Phase 10B - `git diff --check` Full repo `bunx biome check .` is not currently a clean gate because the repository has unrelated pre-existing formatting and lint diagnostics outside the changed set. Do not report that as a Phase 10B finding unless a diagnostic is in files changed by this phase and is newly relevant. Output format: - Start with `Verdict: PASS` if there are no P0/P1/P2 findings. - If there are findings, list them first by severity with file and line references. - Then include test gaps or residual risks. - Keep it concise and evidence-based. Agent summaries are not evidence; read the files.
© ghostwright · Apache-2.0 · ghostwright/phantom