docs: normalise Australian English and prose across comments and docs

This commit is contained in:
sam committed 2026-11-24 02:02:00 +11:00
1 parent de05bc2cbd
commit dad6924a0c
98 files changed
+209 -609

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
// Package approvals manages requests for human approval and records responses.
// A response to an action request resumes the waiting run. The request binds
// the approval to the decision ID and action digest so it cannot authorize a
// the approval to the decision ID and action digest so it cannot authorise a
// different action.
package approvals
@@ -371,7 +371,7 @@ func proposalSummary(r *judgement.AutonomyProposal) string {
// Settle processes a response from a channel account, such as the Telegram
// user 1001 on the "telegram" connector. It records why it rejected an
// unlinked or unauthorized response. It returns false without an error for
// unlinked or unauthorised response. It returns false without an error for
// recorded rejections and for requests that are missing, expired or already
// answered, since retrying won't help. An unlinked account returns
// ErrUnlinked so the caller can tell it how to link.
+1 -1
View File
@@ -57,7 +57,7 @@ var errUnbound = errors.New("the action's binding is incomplete")
// Digest returns the hex SHA-256 of the binding's canonical JSON (RFC 8785)
// under a domain prefix. It refuses a binding with a missing field: an
// approval that doesn't name everything it covers covers nothing.
// approval that doesn't name everything it covers nothing.
func (b Binding) Digest() (string, error) {
if err := b.complete(); err != nil {
return "", err
+2 -2
View File
@@ -358,7 +358,7 @@ type PrincipalSource interface {
PrincipalFor(context.Context, IdentityID) (Principal, error)
}
// Outcome is the result of an authorization decision.
// Outcome is the result of an authorisation decision.
type Outcome string
// Decision outcomes.
@@ -367,7 +367,7 @@ const (
OutcomeDenied Outcome = "denied"
)
// DecisionRecord is one recorded authorization decision, allowed or denied according
// DecisionRecord is one recorded authorisation decision, allowed or denied according
// to Outcome: the principal, action, resource and deciding policies. It never
// holds request credentials.
type DecisionRecord struct {
+2 -2
View File
@@ -253,13 +253,13 @@ type SubjectBinding interface {
BindSubject(context.Context, IdentityID, Subject, IdentityAudit) error
}
// LoginFlow is the browser authorization flow an identity provider requires.
// LoginFlow is the browser authorisation flow an identity provider requires.
type LoginFlow interface {
AuthCodeURL(ctx context.Context, state string) (string, string, error)
Exchange(ctx context.Context, code, codeVerifier string) (ProviderSession, error)
}
// ProviderSession is what a completed provider authorization flow yields.
// ProviderSession is what a completed provider authorisation flow yields.
type ProviderSession struct {
Credential Credential
Token string
+1 -1
View File
@@ -57,7 +57,7 @@ type PolicyRow struct {
UpdatedAt time.Time `db:"updated_at"`
}
// DecisionRow is a coalesced authorization decision in governance.access_decisions.
// DecisionRow is a coalesced authorisation decision in governance.access_decisions.
type DecisionRow struct {
ID int64 `db:"id"`
OrgID string `db:"org_id"`
+2 -2
View File
@@ -23,7 +23,7 @@ type oidcLogin struct {
provider *oidcProvider
}
// flow returns the authorization code flow for the saved settings, or
// flow returns the authorisation code flow for the saved settings, or
// ErrNoCredential when no provider is configured.
func (o *oidcLogin) flow(ctx context.Context, settings AuthenticationSettingsStore) (*oidcFlow, error) {
value, err := settings.AuthenticationSettings(ctx)
@@ -83,7 +83,7 @@ func (p *oidcProvider) get(ctx context.Context) (*gooidc.Provider, error) {
return discovered, nil
}
// oidcFlow runs the authorization code flow with PKCE. Discovery, the code
// oidcFlow runs the authorisation code flow with PKCE. Discovery, the code
// exchange, PKCE and token verification are the libraries'.
type oidcFlow struct {
provider *oidcProvider
+1 -1
View File
@@ -446,7 +446,7 @@ type Approval struct {
DecisionID uuid.UUID `json:"decision_id"`
Digest string `json:"digest"`
By string `json:"by"`
// ByID is the identity ID of the account named by By.
// ByID is the approver's immutable identity ID; By holds their display name.
ByID string `json:"by_id,omitzero"`
At time.Time `json:"at"`
}
+1 -1
View File
@@ -103,7 +103,7 @@ func (w Interface) unsupported() error {
// checkInputs rejects values that don't satisfy the declared inputs: a
// required input that is missing or null, or a value whose type is not the
// declared one. A value for an undeclared input is left alone, since a
// trigger passes the whole event whether or not a workflow reads it.
// trigger passes the whole event whether a workflow reads it.
func (w Interface) checkInputs(values map[string]any) error {
for _, name := range sortedKeys(w.Inputs) {
spec := w.Inputs[name]
+1 -1
View File
@@ -108,7 +108,7 @@ func vocabulary(types ...StepType) map[string]StepType {
return out
}
// StepTypes is the vocabulary, in name order, for editors and the catalog.
// StepTypes is the vocabulary, in name order, for editors and the catalogue.
func StepTypes() []StepType {
out := make([]StepType, 0, len(stepTypes))
for _, name := range sortedKeys(stepTypes) {