feat(assessment): add the review band of attempt signals and the disclosed collector

This commit is contained in:
shira committed 2026-10-08 23:04:57 +03:00
1 parent 68286af8b7
commit b3c6dc870b
124 files changed
+13522 -633

No files matched your search

+4 -3
View File
@@ -314,8 +314,9 @@ func backendQuestionnaireBankOccupied(ctx context.Context, pool *pgxpool.Pool) (
return occupied, err
}
// The isolated browser fixture opts into the extended demo policy explicitly.
// Normal startup still seeds V1, and an operator's policy must never be replaced.
// The isolated browser fixture opts into the extended demo policy explicitly,
// including the manual-review band thresholds. Normal startup still seeds V1,
// and an operator's policy must never be replaced.
func publishFixturePolicy(ctx context.Context, transactor outbound.Transactor) (domain.PolicyVersion, error) {
initial, err := domain.NewPolicyVersionDraft(domain.NewPolicyVersionDraftInput{
Key: domain.ProductPolicyKey, Kind: domain.PolicyKindDemo,
@@ -344,7 +345,7 @@ func publishFixturePolicy(ctx context.Context, transactor outbound.Transactor) (
}
version, err = policy.NewPublisher(unit.Policies(), func() time.Time { return databaseTime }).Publish(ctx, policy.PublishInput{
Key: domain.ProductPolicyKey, Kind: domain.PolicyKindDemo,
Author: domain.PolicyAuthor(fixtureAuthor), Policy: domain.DemoProductPolicyV2(),
Author: domain.PolicyAuthor(fixtureAuthor), Policy: domain.DemoProductPolicyV3(),
})
return err
})