feat: add assessment, privacy and support flows

This commit is contained in:
TakuyaYagam1 committed 2026-10-08 08:08:25 +03:00
1 parent ee3738ee73
commit e4f24fa202
339 files changed
+56454 -1126

No files matched your search

+26
View File
@@ -60,3 +60,29 @@ func DemoProductPolicyV1() ProductPolicy {
},
}
}
// DemoProductPolicyV2 returns an explicit demo policy with assessment attempt
// execution values. The idle timeout, mode, and basic pass mark are initial
// product choices, not facts established by the assessment PRD or calibration.
// Publishing this value is an explicit operation; startup seeding continues
// to publish V1 only and never replaces an immutable stored version.
func DemoProductPolicyV2() ProductPolicy {
policy := DemoProductPolicyV1()
policy.Assessment.Attempt = &AssessmentAttemptPolicy{
Lifetime: 72,
ChainDeadline: 72,
MaxSessions: 2,
IdleTimeoutSeconds: 1800,
RealMode: AssessmentRealModeDemoBasic,
BasicPassMark: 8000,
}
policy.Assessment.Training = &AssessmentTrainingPolicy{
DemoExpressDurationSeconds: 240,
DemoExpressItemCount: 3,
MaxSessions: 1,
IdleTimeoutSeconds: 240,
}
support := DemoSupportPolicy()
policy.Support = &support
return policy
}