feat(assessment): add the review band of attempt signals and the disclosed collector
This commit is contained in:
1 parent
68286af8b7
commit
b3c6dc870b
124 files changed
+13522
-633
No files matched your search
@@ -130,6 +130,10 @@ func (policy ProductPolicy) clone() ProductPolicy {
|
||||
trainingCopy := *training
|
||||
copied.Assessment.Training = &trainingCopy
|
||||
}
|
||||
if signals := policy.Assessment.Signals; signals != nil {
|
||||
signalsCopy := *signals
|
||||
copied.Assessment.Signals = &signalsCopy
|
||||
}
|
||||
if support := policy.Support; support != nil {
|
||||
supportCopy := *support
|
||||
copied.Support = &supportCopy
|
||||
@@ -324,6 +328,10 @@ type AssessmentPolicy struct {
|
||||
// Training is an explicit non-qualification policy section. It is nil in
|
||||
// immutable legacy policies and never inherits real assessment settings.
|
||||
Training *AssessmentTrainingPolicy
|
||||
// Signals holds the thresholds of the manual-review band. It is nil in
|
||||
// policy versions that predate it; such a version computes no band and
|
||||
// never inherits another version's thresholds.
|
||||
Signals *AssessmentSignalPolicy
|
||||
}
|
||||
|
||||
// AssessmentAttemptPolicy holds the versioned execution limits for a newly
|
||||
@@ -452,6 +460,11 @@ func (policy AssessmentPolicy) Validate() error {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if policy.Signals != nil {
|
||||
if err := policy.Signals.Validate(); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user