Move cross-library squad code into adapter modules #9

Merged
weichen merged 4 commits from feature/agent-stack-d1 into main 2026-10-03 14:02:33 +00:00
Owner

Why: the squad core has to compile without agent-native or agent-intent.
Evidence: core, schema, and the four nested modules passed go test.
Impact: ports stay in the core. Callers use adapters/native.
Refs: D1

Why: the squad core has to compile without agent-native or agent-intent. Evidence: core, schema, and the four nested modules passed go test. Impact: ports stay in the core. Callers use adapters/native. Refs: D1
weichen added 3 commits 2026-10-03 13:48:38 +00:00
Why: the squad core has to compile without agent-native or agent-intent. Ports stay in the core; adapters and the CLI own the concrete clients.
Evidence: GOWORK=off go test -count=1 ./squad/ ./store/ ./textextract/ ./schema/ passed, and the intent, sqlite, native, and cmd modules passed their own go test.
Impact: core go.mod keeps error-code-system only. Nested gitlinks stay. Callers register the native backend through agent-squad/adapters/native.
Refs: D1
Co-authored-by: Cursor <cursoragent@cursor.com>
Why: the command has to load guard overlays without naming agent-intent types. Only adapters/intent may import that library.
Evidence: GOWORK=off go test -count=1 in adapters/intent and cmd/agent-squad passed.
Impact: CLI calls NewFromOverlay. Guard domains stay guard.
Refs: D1
Co-authored-by: Cursor <cursoragent@cursor.com>
Pin intent and native to the D1 schema heads
ci / vet-and-test (pull_request) Successful in 24s
ci / docker-checkout-hostgateway (pull_request) Successful in 0s
5e414ffecc
Why: the squad checkout has to record the same intent and native commits Dev will pin.
Evidence: gitlinks only. Schema and adapter tests already passed on those heads.
Impact: no squad source change.
Refs: D1
weichen added 1 commit 2026-10-03 13:51:52 +00:00
Pin agent-native to the SSE abort fix
ci / vet-and-test (pull_request) Successful in 25s
ci / docker-checkout-hostgateway (pull_request) Successful in 1s
02c0d6aae4
Why: the squad checkout has to record the native head that treats a cancelled stream as aborted.
Evidence: go test -count=50 -race ./runtime/llm/ passed on d84a67c.
Impact: gitlink only.
Refs: D1
weichen merged commit c5c5a24e2c into main 2026-10-03 14:02:33 +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#9