Plumb RoleSpec execution config into agent-native requests and fix leader parity #3

Merged
weichen merged 1 commits from feature/full-agent-r1 into main 2026-10-01 06:02:37 +00:00
Owner

Why: RoleSpec.Tools/Skills were dead, BashPermission gated nothing, leader turns dropped process events/tool profile, and the HTTP API could not start leader mode; the agent-native full-agent batch (PR Agent-Native#3) made these fields meaningful.

Evidence: go vet ./... clean; go test ./... 6 packages ok; scripts/submodule-consistency.sh ok with agent-native pinned to f9ab2ef. New tests cover v2 request plumbing, bash gating in the factory, Derive inheritance, role-level HITL policy, leader detail-event bridging, and HTTP leader options.

Impact: RegisterAgentNativeFull(AgentNativeConfig) with backward-compatible RegisterAgentNative; step requests carry allowlist/skills/ids and a shared step deadline; nested agent-native gitlink bumped to f9ab2ef.

Refs: Dev task feature/full-agent-r1 batch B9.

Why: RoleSpec.Tools/Skills were dead, BashPermission gated nothing, leader turns dropped process events/tool profile, and the HTTP API could not start leader mode; the agent-native full-agent batch (PR Agent-Native#3) made these fields meaningful. Evidence: go vet ./... clean; go test ./... 6 packages ok; scripts/submodule-consistency.sh ok with agent-native pinned to f9ab2ef. New tests cover v2 request plumbing, bash gating in the factory, Derive inheritance, role-level HITL policy, leader detail-event bridging, and HTTP leader options. Impact: RegisterAgentNativeFull(AgentNativeConfig) with backward-compatible RegisterAgentNative; step requests carry allowlist/skills/ids and a shared step deadline; nested agent-native gitlink bumped to f9ab2ef. Refs: Dev task feature/full-agent-r1 batch B9.
weichen added 1 commit 2026-10-01 06:02:31 +00:00
Plumb RoleSpec execution config into agent-native requests and fix leader parity
ci / vet-and-test (pull_request) Failing after 2s
ci / docker-checkout-hostgateway (pull_request) Failing after 2m20s
d4d351913f
Why: RoleSpec.Tools/Skills were dead fields, BashPermission only gated
an HITL prompt with nothing to enforce, leader turns dropped process
events and tool profile, and the HTTP API could not start leader mode.

Evidence: go vet ./... clean; go test ./... 6 packages ok. New cases:
step requests carry ToolAllowlist/Skills/SessionScope/ExecutionID and
a step-wide shared deadline; buildAgentNativeOptions bash gating
(deny/unset get no exec tools even when configured, ask/allow do,
missing model fails closed); Derive inheriting tool_profile/tools/
skills/bash_permission with request overrides; role-level HitlPolicy
making a bash=ask step fail under auto instead of holding; leader
requests fully assembled with detail events bridged to the sink; HTTP
createRun accepting mode/leader_role/max_leader_turns (engine-driven
repro of the plan-validation precondition included).

Impact: RegisterAgentNative keeps its signature and delegates to a new
RegisterAgentNativeFull(AgentNativeConfig); nested agent-native
gitlink pinned to f9ab2ef (full-agent batch); llm planner derive
schema gains tool_profile/tools/skills/bash_permission.

Refs: Dev task feature/full-agent-r1 batch B9; agent-native PR #3.
weichen merged commit 9a402e468e into main 2026-10-01 06:02:37 +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#3