Pass the permission ask port through the native register Config (N1 WP4) #17

Merged
weichen merged 2 commits from feature/agent-stack-n1 into main 2026-10-07 05:11:42 +00:00
Owner

N1 增量三(squad 侧):嵌套 native 升级 + PermissionAsk 透传

Agent-Native PR #18 已合入(AgentSpec、guardrails、委派事件、GateOptions.PermissionAsk)。本 PR 完成 squad 侧级联:

改动

  • deps/agent-native 嵌套 gitlink → c5b9dca(#18 在 agent-native main 的 merge commit)。
  • adapters/native/register.go:Config.PermissionAsk 新字段,buildOptions 映射进 nativexec.GateOptions.PermissionAsk——小队成员的内核 ask 决策可经此到达宿主 HITL 裁决;nil 时内核保持 ask=拒绝旧行为,零行为变化。

验证

  • 全部五模块:go vet ./... 通过;go test -count=1 ./... 在 .(4 包)、adapters/native、adapters/intent、adapters/sqlite、cmd/agent-squad(3 包)全 ok,无 FAIL。

合入顺序

Agent-Native #18 ✓ → 本 PR → Backend(双 pin + 插件 agents 校验 + 小队接线)→ Dev 三 pin PR。

主任务:Dev 仓 feature/agent-stack-n1。

# N1 增量三(squad 侧):嵌套 native 升级 + PermissionAsk 透传 [Agent-Native PR #18](https://git-home.u1680832.nyat.app:30319/weichen/Agent-Native/pulls/18) 已合入(AgentSpec、guardrails、委派事件、GateOptions.PermissionAsk)。本 PR 完成 squad 侧级联: ## 改动 - `deps/agent-native` 嵌套 gitlink → c5b9dca(#18 在 agent-native main 的 merge commit)。 - `adapters/native/register.go`:`Config.PermissionAsk` 新字段,buildOptions 映射进 `nativexec.GateOptions.PermissionAsk`——小队成员的内核 ask 决策可经此到达宿主 HITL 裁决;**nil 时内核保持 ask=拒绝旧行为**,零行为变化。 ## 验证 - 全部五模块:`go vet ./...` 通过;`go test -count=1 ./...` 在 .(4 包)、adapters/native、adapters/intent、adapters/sqlite、cmd/agent-squad(3 包)全 ok,无 FAIL。 ## 合入顺序 Agent-Native #18 ✓ → 本 PR → Backend(双 pin + 插件 agents 校验 + 小队接线)→ Dev 三 pin PR。 主任务:Dev 仓 `feature/agent-stack-n1`。
weichen added 2 commits 2026-10-07 05:08:56 +00:00
Why: Library PR #18 landed AgentSpec, guardrails, subagent events and
the GateOptions.PermissionAsk field; squad's register mapping needs
that field, and check-pins requires the same combination.

Evidence: native main head is the #18 merge; squad suites run next.

Impact: Nested pin only.
Pass the permission ask port through the native register Config
ci / vet-and-test (pull_request) Successful in 21s
ci / docker-checkout-hostgateway (pull_request) Successful in 1s
ef14bda11f
Why: Squad members must reach the host's HITL verdict when a kernel
hook answers ask - the new native GateOptions.PermissionAsk field
carries it; nil preserves the legacy ask=reject behavior.

Evidence: go vet clean in all five modules; go test ok everywhere.

Impact: Additive Config field plus its buildOptions mapping.
weichen added 2 commits 2026-10-07 05:08:57 +00:00
Why: Library PR #18 landed AgentSpec, guardrails, subagent events and
the GateOptions.PermissionAsk field; squad's register mapping needs
that field, and check-pins requires the same combination.

Evidence: native main head is the #18 merge; squad suites run next.

Impact: Nested pin only.
Pass the permission ask port through the native register Config
ci / vet-and-test (pull_request) Successful in 21s
ci / docker-checkout-hostgateway (pull_request) Successful in 1s
ef14bda11f
Why: Squad members must reach the host's HITL verdict when a kernel
hook answers ask - the new native GateOptions.PermissionAsk field
carries it; nil preserves the legacy ask=reject behavior.

Evidence: go vet clean in all five modules; go test ok everywhere.

Impact: Additive Config field plus its buildOptions mapping.
weichen merged commit fc9620e05f into main 2026-10-07 05:11:42 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-Squad#17