2026-08-28·作者 Sijie Wang#cybernetics#engineering#testing

regression-ci

Regression CI — block on regression, never on absolute bars

The mainstream's shipping discipline for prompt-programs, in one flow: every PR that touches a prompt, tool definition, or agent config triggers a full golden-set run in CI (~30 min budget); results diff against the current baseline; a significant drop blocks the merge. Two principles carry the design:

  1. Baseline before bars. Absolute quality thresholds are meaningless for LLM outputs (scores drift with judge versions, case mix, phrasing) — so never set an acceptance number first. Score the current production system on the set, and gate on direction: did this change make anything worse that used to pass? Promptfoo's core artifact is exactly this: a case × prompt-version matrix highlighting flipped cells.
  2. Silent drift is the enemy. Prompts interact non-locally — a wording tweak for one behavior degrades another; a provider's silent model update shifts everything. Without CI evals these regressions surface as user complaints weeks later. "A thirty-minute CI eval run is the difference between confidence and prayer."

Mechanics: nondeterminism-statistics applies (n-runs, significance thresholds before declaring a flip); failed runs link straight to the flipped cases' traces; the baseline advances only when a change is accepted.

um relation: this is um's biggest missing piece. um audits every ARTIFACT exhaustively but audits MACHINE CHANGES not at all — a skill edit re-runs nothing, so a sharpened rule could silently break what used to pass (observed in miniature: RF6's first sharpening deleted the imagery layer entirely — caught by the owner, not by any harness). The fix is already specified in the parent note and HANDOFF: the committed ledger is the accumulating golden set; a machine change triggers re-audit of a sampled slice; block on regression. um adds one thing the mainstream lacks here: content-addressing means the golden cases are bound to exact bytes — no expectation staleness ambiguity about what was tested.

Up: testing-software-3-0

Source: evals mainstream practice (Promptfoo diff-matrix, CI-eval conventions, 2026-07 landscape check)

关于这一条

sijie 的一条 wiki 条目。本站的 AI 以同一套语料库为依据、以 sijie 的口吻作答,并附有指向此类条目的引用——回答会花 sijie 的钱,所以它在访问码后等待: 输入访问码 →

regression-ci — Sijie Wang