Skip to content

feat(agent): typed subagent spawn contracts (Year 0 PACK-01)#10

Merged
Patel230 merged 2 commits into
mainfrom
feat/agent-spawn-contracts
Jul 16, 2026
Merged

feat(agent): typed subagent spawn contracts (Year 0 PACK-01)#10
Patel230 merged 2 commits into
mainfrom
feat/agent-spawn-contracts

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Summary

  • Adds stdlib-only agent package with SpawnRequest / SpawnResult, capability/isolation/subagent-type parse helpers, and Normalize/Validate.
  • Canonical hook event names plus vendor aliases (CanonicalHookEvent).
  • Mirrors spawn types in proto/hawk/contracts/v1/agent.proto.
  • Bumps version to v0.1.6.

Part of the Year 0 Grok→Hawk behavioral port (ADR-0003 / PACK-01). Hawk will consume these types for typed Agent tool wiring (PACK-02).

Test plan

  • go test ./...
  • go vet ./...
  • CI green on PR

Add stdlib-only agent package with SpawnRequest/SpawnResult, capability
and isolation parse helpers, Normalize/Validate, and canonical hook event
names with vendor aliases. Bump to v0.1.6 and mirror types in
proto/hawk/contracts/v1/agent.proto.
Ported from grok tools.proto finalization lifecycle and tool_meta identity
envelope. Hand-written Go stays source of truth; gen/ opt-in.

- tool.proto: closed ToolNamespace enum (incl. ACP reserved), ToolMeta envelope,
  FinalizeErrorCode, VersionWarning, FinalizeConfigViolation, and the
  FinalizeToolConfig single-locking-call RPC.
- tools/versioning.go: BehaviorPreset (Current/Legacy) back-compat, FinalizeResult,
  ToolMeta, closed ToolNamespace with forward-safety parse (unknown ns errors).
- additive-only version bump rule documented in proto header.
@Patel230
Patel230 merged commit 1bb3038 into main Jul 16, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant