docs(judgement,events): state comments plainly

This commit is contained in:
sam committed 2026-11-23 23:46:27 +11:00
1 parent 0ad4374a2a
commit 2bfb262e9c
12 files changed
+37 -35

No files matched your search

+1 -1
View File
@@ -132,7 +132,7 @@ func (*startRecorder) CheckTrigger(context.Context, string, string) error { retu
// TestTriggersStartRunsAsTheWorkload guards that dispatching an event never
// starts a run without a principal: the workload principal acts, a policy
// refusal or a disabled workflow is final and names its own outcome, and a
// refusal or a disabled workflow is final and records its own outcome, and a
// chain that can't decide fails the dispatch so the event stays queued instead
// of being dropped.
func TestTriggersStartRunsAsTheWorkload(t *testing.T) {
+1 -1
View File
@@ -768,7 +768,7 @@ const (
// noRunReason explains why a trigger matched an event but started no run. It
// is stored as the dispatch's reason and shown on the capture and the trigger.
type noRunReason struct {
// outcome is the dispatch outcome the reason is recorded under.
// outcome is the dispatch outcome stored with this reason.
outcome string
Code string `json:"code"`
+3 -4
View File
@@ -102,10 +102,9 @@ func (m Mapping) Validate() error {
return nil
}
// Failure describes one field that did not resolve cleanly against a payload --
// named by field and path so the operator knows exactly what drifted. Value is
// what the payload held at the path when the field was found with the wrong
// type; it is absent when the field is missing or null.
// Failure describes one mapping field that did not resolve against a payload.
// Value is the value found at Path when it has the wrong type. It is empty when
// the field is missing or null.
type Failure struct {
FieldName string `json:"field_name"`
Path string `json:"path"`