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

The Pairing Froze the Oracle File Before Any Agent Patch Landed

说明与用途

开发者与编码代理合作,先冻结人工编写的测试判据,随后通过 git 钩子限制代理只能修改实现文件,确保精确的分币计算。

问题

Free‑tier coding agents often generate patches that pass tests but break real‑world correctness because the same model writes both the patch and the assertions.

结果

The pairing established a reproducible protocol that keeps the oracle immutable, prevents the agent from altering tests, and ensures that any patch must pass strict cent‑level assertions before merging.

工作流

  • 1. Write five explicit constraints into pairing/oracle-session.md
  • 2. Freeze the oracle by committing the human‑written test file before any agent patch
  • 3. Record dead ends in the log to prevent repetition
  • 4. Enforce the kept decision with a git‑diff allowlist hook that blocks edits outside invoice.py

证据

The senior did not open a model prompt first, and instead forced the pair to write constraints into a log.

来源

The oracle uses integer cents derived from Decimal values so the expected string does not depend on the buggy float path.

来源

  • 记录日期: 2026-09-21T00:45:35.631Z