Skip to content

refactor: rename action sentinels to drop the repeated context - #9

Merged
ajbeck merged 1 commit into
claude/api-e1-actionheaderfrom
claude/api-e2-sentinel-names
Sep 27, 2026
Merged

ajbeck merged 1 commit into
claude/api-e1-actionheaderfrom
claude/api-e2-sentinel-names

Conversation

@ajbeck

@ajbeck ajbeck commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Implements E2. Renames actionheader.ErrActionMissing, ErrActionAmbiguous and ErrActionInvalid to ErrMissing, ErrAmbiguous and ErrInvalid, matching the module's adjective-first sentinel names. Rename only: the error strings and meanings are unchanged.

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

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.

Breaking: the sentinel identifiers change.

Rename actionheader.ErrActionMissing, ErrActionAmbiguous and ErrActionInvalid to ErrMissing, ErrAmbiguous and ErrInvalid. The package name already supplies the action context, and the new names match the module's adjective-first sentinel convention. Error strings and meanings are unchanged.

BREAKING CHANGE: actionheader.ErrAction* sentinels are now actionheader.ErrMissing, ErrAmbiguous and ErrInvalid.
@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!: rename action sentinels to drop the repeated context refactor: rename action sentinels to drop the repeated context Sep 27, 2026
@ajbeck
ajbeck merged commit c6f8f62 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