fix(rectification): 自建探针注入不得把 GET 目录探针写进 inference_state
Independent Staging Quality Gate / validate (push) Successful in 9m57s
Independent Staging Quality Gate / publish (push) Successful in 21m4s

This commit is contained in:
jesse-ux
2026-09-17 01:24:13 +08:00
parent 227a75719b
commit 8d7dfbf01e
2 changed files with 7 additions and 1 deletions
@@ -212,6 +212,12 @@ export function withFollowupOwnedProbe(
followup: DistinguishFollowup | null | undefined,
): InferenceState | null {
if (!state || !followup) return state;
// Only inject probes this layer built. Catalog probes that are not yet in
// inference_state must still fail persist (BUG-912 must not undo T0 of
// rectification-probe-pool-exhausted-20260911).
const ownedKey = `${followup.method_id}:${followup.ask_theme}`;
if (followup.semantic_key !== ownedKey) return state;
if (followup.source !== "varga_observation" && followup.source !== "precision_stage") return state;
const probe = conflictProbeFromFollowup(followup);
if (!probe) return state;
if (state.probes.some((item) => item.id === probe.id || item.semantic_key === probe.semantic_key)) {