A Senior Stopped the Pairing Until the Session Lived in YAML
说明与用途
在配对过程中,使用 YAML 会话合同并由本地 Python 脚本验证,以强制执行约束和停止条件,而不是依赖 LLM 聊天记录。
问题
Free LLM chat transcripts are unreliable for capturing pairing agreements; they can drift or be lost, making it hard to enforce constraints and review decisions.
结果
The pairing session now has a durable, schema‑validated contract that enforces invariants, budgets, and stop conditions locally, preventing drift and ensuring reproducibility.
工作流
- 1. Create a "pairing/" directory with a session_contract.yaml and verify_session.py
- 2. Write the session contract (id, owner, max_minutes, max_model_calls, stop_on, invariants, budgets) before any model call
- 3. Run verify_session.py to load and validate the contract
- 4. Draft code with the free model, ensuring each reply is saved to disk
- 5. After each reply, run verify_session.py again to check invariants and budgets
- 6. If verification fails, abort the session or adjust the contract
- 7. Commit the contract and all artifacts to the repository
- 8. Use the verifier as the pairing partner that cannot be overridden during the hour
证据
Keep a versioned session contract in the repository. Verify it locally before every model call and after every saved reply.
- 记录日期: 2026-09-09T09:02:04.455Z