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

Quarantine Test Drafts Until the Oracle Hash Is Unchanged

说明与用途

通过验证oracle哈希,阻止合并修改代理自身测试的更改,提高CI可靠性。

问题

Agent patches fail merge because tests in the patch write-set are not a true product test, leading to self‑voting and brittle equality checks.

结果

Merge gate now protects against self‑voting and brittle equality tests, ensuring only genuine product changes pass.

工作流

  • 1. Organize repository with oracle/, drafts/, and src/ directories.
  • 2. Compute a hash of the oracle tree (oraclekit/hashlock.py).
  • 3. Store the hash in oracle/HASHES and compare it during merge.
  • 4. Reject patches that modify locked properties or golden fixtures unless a separate follow‑up update is submitted.
  • 5. Exclude hypothesis drafts, frozen names, and drafts from the vote.
  • 6. Use freeze.json to track recently flaky tests and expire them by date.
  • 7. Run CI to enforce the hash check before merge.

证据

The gate computes a digest of oracle/ from the merge base, then refuses the patch if the digest moved.

来源

  • 记录日期: 2026-09-21T20:15:20.913Z