Claude Code Automation: Publish Gates Blocked 23 Bad Posts in 10 Days
Описание и применение
Внедрение «публикационного шлюза» в пайплайн, генерируемый Claude Code, позволило предотвратить публикацию 23 поста с ошибками за 10 дней, блокируя 37 запусков и фиксируя 4 типа ошибок.
Задача
Automated publishing pipelines can release posts with defects that are not caught by model prompts, leading to unwanted content going live.
Результат
The gate prevented 23 defective posts from publishing, blocked 37 runs, and identified 4 failure types that led to rule creation.
Рабочий процесс
- 1. Give each checker three exit codes: 0 clean, 1 defect, 2 checker broken.
- 2. Append one JSON line per run with timestamp, target, exit code, and defect names.
- 3. Make the publish step call the gate and stop on exit 1, embedding the gate inside the publisher.
- 4. Write the ledger immediately after the irreversible action, not at batch end.
- 5. Restrict completion reports to checker name, exit code, and human‑visible output.
- 6. Log every failure as symptom, cause, fix, and turn fixes into new checks.
Доказательства
The gate ran 248 times, blocked 37 runs, and stopped 23 posts, of which 11 were fixed and passed
One run can carry two defects, so the reasons add up to 38 across the 37 blocked runs
Give every checker three exit codes. 0 is clean, 1 is a defect, 2 means the checker itself is broken
- Дата записи: 2026-10-25T06:11:29.592Z