package domain // DemoProductPolicyV1 returns the initial product policy that is published as // version 1 of ProductPolicyKey with PolicyKindDemo. Its values are the agreed // starting rules for verifying the product flow, not results of a study: the // assessment section is marked AssessmentCalibrationUncalibratedInitial, and // its thresholds and stop rule make no psychometric or quality claim until a // pilot calibrates them and a calibrated version is published. // // The policy holds rules only. Assessment content, such as the task bank, // blueprints, and variants, is separate work and is not part of it. // // Tests must not use this policy as a fixture for other values; they build // their own policies under their own keys. func DemoProductPolicyV1() ProductPolicy { return ProductPolicy{ Invitations: InvitationPolicy{ ResponseDeadlineOptions: []CalendarDays{3, 7, 14}, DefaultResponseDeadline: 7, MaxPendingPerNeed: 20, RepeatAfterDecline: 30, InterviewProposalDeadline: 5, NoDealPause: 30, }, OrganizationQuotas: OrganizationQuotaPolicy{ InvitationWindow: 7, CardViewWindow: 24, TierE0: OrganizationTierQuota{Active: true, InvitationsPerWindow: 10, DistinctCardViewsPerWindow: 50}, TierE1: OrganizationTierQuota{Active: true, InvitationsPerWindow: 40, DistinctCardViewsPerWindow: 150}, // E2 stays inactive until the organization verification that // grants it exists. TierE2: OrganizationTierQuota{Active: false, InvitationsPerWindow: 100, DistinctCardViewsPerWindow: 400}, }, Assessment: AssessmentPolicy{ Calibration: AssessmentCalibrationUncalibratedInitial, SameGradeRetryAfter: 30, MaxAttemptsPerWindow: 3, AttemptWindow: 180, PromotionMinInterval: 90, ConfirmationThreshold: 8000, HighStrengthThreshold: 9000, PracticeRequired: true, StopRule: AssessmentStopRule{ MinScoredItems: 8, MaxScoredItems: 23, SeedItems: 2, UpperProbability: 9000, LowerProbability: 1000, MaxStandardError: 2500, }, }, Identity: IdentityPolicy{ VerificationTokenLifetime: 24, UnverifiedAccountLifetime: 7, SessionIdleTimeout: 24, SessionAbsoluteLifetime: 7, }, SearchStatus: SearchStatusPolicy{ SearchingConfirmationInterval: 30, }, } } // 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 } // DemoProductPolicyV3 returns the demo policy with the manual-review band // thresholds on top of DemoProductPolicyV2. It is published explicitly; a // stored version is never rewritten, and startup seeding publishes V1 only. func DemoProductPolicyV3() ProductPolicy { policy := DemoProductPolicyV2() signals := DemoAssessmentSignalPolicy() policy.Assessment.Signals = &signals return policy } // DemoProductPolicyV4 returns the demo policy with the matching coefficients // on top of DemoProductPolicyV3. It is published explicitly; a stored version // is never rewritten, and startup seeding publishes V1 only. func DemoProductPolicyV4() ProductPolicy { policy := DemoProductPolicyV3() matching := DemoMatchingPolicy() policy.Matching = &matching return policy } // DemoProductPolicyV5 returns DemoProductPolicyV4 with the semantic matching // section and the semantic Fit weights (DemoSemanticMatchingPolicy). V4 stays // the PRD point with Sem weight 0.10. It is published explicitly with the // policy-publish command; startup seeding publishes V1 only. func DemoProductPolicyV5() ProductPolicy { policy := DemoProductPolicyV4() matching := DemoSemanticMatchingPolicy() policy.Matching = &matching return policy } // DemoProductPolicyV6 returns DemoProductPolicyV5 with the two-model // semantic section (DemoSemanticEnsembleMatchingPolicy): Sem fuses Giga and // Qwen3-Embedding. V5 stays the previous version with Giga alone. It is // published explicitly with the policy-publish command; startup seeding // publishes V1 only. func DemoProductPolicyV6() ProductPolicy { policy := DemoProductPolicyV5() matching := DemoSemanticEnsembleMatchingPolicy() policy.Matching = &matching return policy }