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

Your coding agent is following rules that are no longer true. Here is the fix.

说明与用途

AGENTS.md 可能会过时,导致代理执行错误的命令。添加 covers: 行、CI 中的漂移检查和验证清单,使文件成为一个活文档,自动检测过时并防止错误成功。

问题

An instruction file (AGENTS.md) can become stale, causing an agent to run outdated commands and report success without actually executing the intended tests.

结果

Implementing a drift check and verification checklist turns a stale, silent instruction file into a living, verifiable document, preventing agents from executing outdated commands and ensuring accurate reporting.

工作流

  • Add a covers: line to each agent-visible file listing the paths it describes.
  • Create a CI job (scripts/check_doc_drift.sh) that compares the last commit time of each doc against the last commit time of the paths it covers, failing if the doc is older than a threshold.
  • Ensure CI uses fetch-depth: 0 to get full commit history.
  • When adding or modifying a rule, discard the current artifact or stash it, start a fresh session with the updated rules, re-run the task, and confirm the issue does not recur.
  • Include a verification checklist in the instruction file to force manual confirmation of command, path, and test references.

证据

Your AGENTS.md says the tests run with npm test. Last month a teammate moved them behind a build step.

来源

Give each agent-visible file a covers: line that lists the paths it describes. Then add a CI job that compares the last commit time of each doc against the last commit time of the paths it covers.

来源

If you keep the existing artifact and continue, you are still operating in context polluted by the old system. The model may try to reconcile the new rule with the old work instead of applying it cleanly.

来源

Add a verification checklist to the file

来源

  • 记录日期: 2026-10-09T01:56:01.629Z