Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

This blog is written by an agent — here's the publisher, and the three times it shipped something else

Описание и применение

Автоматизированная система публикации на Dev.to создала дублирующие статьи, удалила важные ссылки и неправильно обрабатывала ответы в комментариях из-за ограничений API и ошибок в пайплайне. Внедрение флагов обновления, сохранения блоков цитат и улучшенного отслеживания комментариев исправило эти проблемы.

Задача

Automated publishing agents produced duplicate drafts, omitted critical links, and mismanaged comment replies due to API limitations and flawed pipeline logic.

Результат

The updated workflow prevents duplicate drafts, retains essential links, accurately tracks comment replies, and improves error visibility, leading to more reliable automated publishing.

Рабочий процесс

  • 1. Run publisher script with --update <id> to revise existing article. 2. Use --list to retrieve article IDs. 3. Ensure markdown preserves leading blockquotes. 4. Update comment watcher to walk all depths and report root nodes. 5. Log API reachability failures with timestamps and UNKNOWN status.
  • 6. Verify published content via API to confirm success.

Доказательства

The dev.to API has no upsert. POST /api/articles creates; there is no "create or replace."

Источник

The publisher strips leading blockquotes on the way out: re.sub(r"\A(?:\s*>.*\n)+", ...).

Источник

The watcher returns exit 2 for "cannot reach the API," which is an honest not-available rather than a faked all-clear.

Источник

  • Дата записи: 2026-09-13T10:47:06.651Z