Skip to content

docs: complete exported API documentation - #13

Merged
ajbeck merged 1 commit into
claude/api-e5-identity-enum-stringsfrom
claude/api-e6-doc-pass
Sep 27, 2026
Merged

ajbeck merged 1 commit into
claude/api-e5-identity-enum-stringsfrom
claude/api-e6-doc-pass

Conversation

@ajbeck

@ajbeck ajbeck commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Implements E6 and records decision 0026 as implemented.

  • Every authn, iamproof and authz sentinel gets its own doc comment. The authn ones state their HTTP status, checked against each failure call site.
  • Doc links are added for unambiguous references: camel-case identifiers, Type.Method and qualified module names. Single-word identifiers such as Any or Request are left unlinked so ordinary prose isn't linked by mistake.
  • VerifyFunc and CheckFunc parameters are named, as are Claim.Bool's results.

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

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.

A go/doc-based check confirmed that every doc link in the six public packages resolves. Parameter and result names don't change type identity, so this is not breaking.

Give every authn, iamproof and authz sentinel its own doc comment, including the HTTP status that authn's Error carries. Add doc links for unambiguous identifier references across the public packages, name the VerifyFunc and CheckFunc parameters, and name Claim.Bool's results. Record decision 0026 as implemented.
@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:05
@ajbeck
ajbeck merged commit b20137c 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