Skip to content

refactor: move action-header selection to the actionheader package - #8

Merged
ajbeck merged 1 commit into
claude/exported-api-reviewfrom
claude/api-e1-actionheader
Sep 27, 2026
Merged

ajbeck merged 1 commit into
claude/exported-api-reviewfrom
claude/api-e1-actionheader

Conversation

@ajbeck

@ajbeck ajbeck commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Implements E1. Moves edge.ActionHeader, NewActionHeader and the action sentinels into the new standard-library-only actionheader package, as Selector and NewSelector. Parsing behavior is unchanged. The gateway-format and edge.New composition tests stay in edge; the parse tests and the runnable example move with the package. README, guides, AGENTS.md, the dispatcher example and the external consumer source use the new package.

Part of decision 0026, approved by the owner; stacked on #6.

Validation

gofmt, go vet ./..., go mod verify, go test -race ./..., sh scripts/check-consumer.sh, Linux arm64/amd64 builds and git diff --check all pass locally on Go 1.27.1.

Evidence: go list -deps ./examples/dispatcher/native no longer includes the root adapter or aws-lambda-go/events.

Breaking: import actionheader instead of edge for action selection. Error strings now use the actionheader: prefix. The sentinels keep their old names until E2 (#9).

Move edge.ActionHeader to the standard-library-only actionheader package as Selector, with NewSelector as its constructor. Native HTTP consumers no longer link the Lambda adapter and aws-lambda-go events just to select an action. Parsing behavior and sentinel meanings are unchanged; error strings now carry the actionheader prefix.

BREAKING CHANGE: edge.ActionHeader, edge.NewActionHeader and edge.ErrAction* are now actionheader.Selector, actionheader.NewSelector and actionheader.ErrAction*.
@ajbeck
ajbeck added this pull request to stack #7 September 27, 2026 14:36
@ajbeck
ajbeck marked this pull request as ready for review September 27, 2026 15:04
@ajbeck ajbeck changed the title refactor!: move action-header selection to the actionheader package refactor: move action-header selection to the actionheader package Sep 27, 2026
@ajbeck
ajbeck merged commit 71c01a5 into main Sep 27, 2026
4 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