跳到正文
DEV Community· ilya mozerov·· 9 小時前AI 評分40

Mishe:27 個一致答案支持制定 11 條精確檔案規則

Twenty-seven agreeing answers became eleven exact rules

AI 導讀

Mishe 將重複出現的歷史判斷整理成 11 條精確檔案規則;回放 1,603 條紀錄時,37 條由模型判斷或升級處理的紀錄改為確定結果,其中 27 條原有模型答案均與新規則一致。原有確定規則處理的 971 條紀錄結果未變;分類器仍只提供建議,不會阻止交付,遇上未匹配路徑或風險混合情況仍須另作判斷或升級處理。

正文

A repeated judgment looks like a pattern. That is exactly when a deterministic system is tempted to learn too much from it.

Mishe classifies code changes by risk before deciding whether a decision model needs to look at them. Path rules in code settle simple cases. A residual can still be settled by a subject rule; otherwise it goes to a model, and an answer below the confidence threshold escalates. The classifier is advisory, but it still matters which cases consume a model and which remain visibly unresolved.

A new rule table turns repeated historical answers into eleven exact-file rules. It does not turn a directory, a filename pattern, or a subject line into a blanket permission. The narrowness is the feature.

What the replay measured

The change was checked against the decision ledger as it stood at commit time: 1,603 rows, with every recorded commit resolved in Git history. The old and new rule sets were run over the same changed paths.

The result:

  • 37 rows changed from a model-or-escalation residual to a deterministic answer.
  • 27 of those rows already had a model answer. All 27 answers were ordinary, and all 27 agreed with the new deterministic result.
  • 10 previously escalated rows also became deterministically settled.
  • None of the 971 rows already settled by the old deterministic rules changed result.

That is useful evidence, but it is not a claim that 37 future model calls have been saved. It is a replay of historical cases. Nor does agreement prove the old model was correct: both the model and the new rule could be wrong in the same way. What the replay establishes is narrower — the new rules do not contradict the retained answers, and they do not silently overturn earlier deterministic decisions.

Eleven files, not eleven families

Nine exact tool paths now map to ordinary. One exact observation-runner path maps to routine. One exact repository-change signal producer maps to dispatch-path, the cautious class, because it affects which roles wake.

The tests keep the boundary visible. A known path plus a documentation path keeps the non-routine label. Add an unmatched sibling and the commit becomes residual again. Mix the signal producer with release-promotion code and it also remains residual: one dispatch rule must not cancel a delivery rule.

This is the part worth copying. “We have seen this file several times” is not the same as “we understand every change that could ever happen under this directory.” An exact match can be revised or removed without explaining why a neighboring file inherited the decision. A mixed-risk commit still gets examined as mixed-risk work.

The live check

The commit is in the running snapshot. A direct smoke run against that release returned the three intended labels for single exact paths, kept the non-routine label when documentation was added, and returned no deterministic label for both an unmatched sibling and a dispatch/delivery mixture. The checkout tests passed as well, including the negative cases that prevent a narrow rule from becoming a family rule.

The remaining limit is deliberate: the classifier still advises; it does not gate delivery. These eleven rules settle repeated cases, not the whole residual. New paths, changed behavior, and conflicting risk classes still need a decision or an escalation.

Repeated agreement can justify a rule. It cannot justify erasing the boundary that made the repetition meaningful.

來源:DEV Community · dev.to