From cb398dadc6601d772a810309f62a859b3fee5c7a Mon Sep 17 00:00:00 2001 From: weichen Date: Wed, 7 Oct 2026 07:42:52 +0000 Subject: [PATCH] Enable NFKC folding in the squad intent gate and bump the intent pin Why: Both intent hosts should fold compatibility-equivalent input (backend intentgate already does); the nested pin carries the I1 command model the gate depends on. Evidence: adapters/intent suite ok; all five squad modules green. Impact: NFKC on in NewFromOverlay; nested agent-intent at 2554b50. --- adapters/intent/gate.go | 2 ++ deps/agent-intent | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/adapters/intent/gate.go b/adapters/intent/gate.go index 3033e96..b666874 100644 --- a/adapters/intent/gate.go +++ b/adapters/intent/gate.go @@ -33,11 +33,13 @@ type Options struct { // NewFromOverlay 从 JSON overlay 构造闸门,并把 guard 域标成受保护域。 // 命令行用它,这样命令本身不必 import agent-intent。 +// NFKC 开启:全角/兼容等价输入与词条同形折叠(与 backend intentgate 一致)。 func NewFromOverlay(ctx context.Context, fsys fs.FS, roots ...string) (*Gate, error) { return New(ctx, Options{ IntentOptions: intent.Options{ GuardDomains: []string{"guard"}, ProtectedDomains: []string{"guard"}, + NFKC: true, }, FS: fsys, Roots: roots, diff --git a/deps/agent-intent b/deps/agent-intent index 65aaebc..2554b50 160000 --- a/deps/agent-intent +++ b/deps/agent-intent @@ -1 +1 @@ -Subproject commit 65aaebca1ea69ab7d48eda51d33ef1d4eea5a0bf +Subproject commit 2554b509e81383308f6264e2b3d03e443bb0d113 -- 2.54.0