{ "version": 1, "scopes": [ { "name": "acceptance-supplier-priority", "paths": [ "^internal/(api|domain|store)/acceptance_priority.*\\.go$", "^src/components/SupplierAcceptancePriorityPanel\\.tsx$", "^src/pages/Users\\.tsx$", "^src/lib/review-claim-candidates\\.js$", "^internal/api/review_continuation\\.go$", "^internal/store/memory\\.go$", "^tests/(frontend/acceptance-priority\\.test|browser/acceptance-priority)\\.mjs$", "^src/services/api/human-loop\\.ts$", "^internal/api/(routes_human_loop\\.go|testdata/routes\\.golden)$", "^internal/store/store\\.go$", "^internal/api/(human_loop|human_pool_reads)\\.go$" ], "frontend": [ "tests/frontend/acceptance-priority.test.mjs", "tests/frontend/review-random-claim.test.mjs", "tests/frontend/original-video-time.test.mjs", "tests/frontend/acceptance-interactions.test.mjs", "tests/frontend/acceptance-workspace.test.mjs", "tests/frontend/timeline-viewport.test.mjs" ], "go": { "./internal/api": [ "^TestAcceptancePriority", "^TestSharedAcceptance", "^TestAcceptanceRevocation", "^TestReviewContinuation", "^TestRouteSnapshot$", "^TestHumanPoolCountScan", "^TestHumanPoolCountsTraversesPages", "^TestHumanDisplay" ], "./internal/store": ["^TestAcceptancePriorityStoreMemory$"] }, "task": [ { "argv": [ "go", "test", "./internal/store", "-run", "^TestAcceptancePriorityStoreMongo$", "-count=1", "-timeout=2m", "-v" ], "env": { "ACCEPTANCE_PRIORITY_LOCAL_MONGO": "1" }, "tests": true }, { "argv": [ "go", "test", "./internal/api", "-run", "^TestAcceptancePriorityConfigMongo$", "-count=1", "-timeout=2m", "-v" ], "env": { "ACCEPTANCE_PRIORITY_LOCAL_MONGO": "1" }, "tests": true }, { "argv": [ "go", "test", "./internal/api", "-run", "^TestAcceptancePriorityBrowser$", "-count=1", "-timeout=3m", "-v" ], "env": { "ACCEPTANCE_PRIORITY_BROWSER": "1" }, "tests": true }, { "argv": ["node", "tests/browser/original-video-time.mjs"], "tests": true }, { "argv": ["node", "tests/browser/acceptance-timeline-pan.mjs"], "tests": true }, { "argv": ["node", "tests/browser/acceptance-playback-rate.mjs"], "tests": true } ] }, { "name": "query-cutover-safety", "paths": [ "^scripts/local/(evening-query-cutover|query_cutover_guard|test_evening_query_cutover|test_query_cutover_guard)\\.py$", "^docs/operations/account-role-pending-indexes\\.json$" ], "frontend": [], "go": {}, "task": [ { "argv": ["python3", "-m", "unittest", "discover", "-s", "scripts/local", "-p", "test_*cutover*.py"], "tests": true } ] }, { "name": "account-role-handoff", "paths": [ "^internal/domain/account_role_work\\.go$", "^internal/api/account_(hierarchy|role_handoff_test)\\.go$", "^internal/store/account_role_(change|handoff_mongo_test)\\.go$", "^internal/api/s07_saved_slice_recovery_test\\.go$", "^internal/api/account_role_guard_bounded_test\\.go$", "^internal/store/account_role_pending_local_test\\.go$" ], "frontend": [], "go": { "./internal/api": [ "^TestRoleChange", "^TestAccountHierarchySupplierLifecycleAndSingleRole$", "^TestS07SavedSliceRecovery", "^TestReconfirmSavedSlices", "^TestFailedSliceRetry" ], "./internal/store": [ "^TestAccountUpdateRejectsStaleAuthorization$", "^TestConcurrentLastAdministratorProtection$" ] }, "task": [ { "argv": [ "go", "test", "./internal/store", "-run", "^TestAccountRoleHandoffMongo$", "-count=1", "-timeout=90s", "-v" ], "env": { "ACCOUNT_ROLE_LOCAL_MONGO": "1" }, "tests": true }, { "argv": [ "go", "test", "./internal/store", "-run", "^TestAccountRolePendingBoundedParityLocal$", "-count=1", "-timeout=90s", "-v" ], "env": { "QUERY_REPLICA_LOCAL_TEST": "1" }, "tests": true } ] }, { "name": "legacy-v4-release", "paths": [ "^internal/domain/types\\.go$", "^internal/worker/(legacy_delivery_.*|capture_delivery|capture_cutover_test|delivery_audit|executor|human_release|original_source_recheck|runtime)\\.go$" ], "frontend": [], "go": { "./internal/worker": [ "^Test(LegacyCapture|CaptureCutover|CaptureDelivery|V4|Original|DispatchHumanRelease|HumanRelease|ReleasePartition|SourceIndexPackage|RecoverSucceeded|Retry|Runtime)" ] }, "task": [ { "argv": ["npm", "run", "test:go:gate"], "tests": true }, { "argv": [ "python3", "-m", "pytest", "tests/backend/test_delivery_v4_package.py", "tests/backend/test_delivery_v4_real_materialization.py", "tests/backend/test_legacy_package_compatibility.py", "-q" ], "tests": true } ], "warnings": [ "V4 格式防护与旧任务运行快照只用隔离存储验证;缺少历史冻结事实的生产任务仍须单独恢复,不以旧格式回退。" ] }, { "name": "delivery-v4-preview", "paths": ["^scripts/delivery_v4_preview\\.py$", "^tests/backend/test_delivery_v4_preview\\.py$"], "frontend": [], "go": {}, "task": [ { "argv": [ "python3", "-m", "pytest", "tests/backend/test_delivery_v4_preview.py", "tests/backend/test_delivery_v4_package.py", "tests/backend/test_delivery_v4_real_materialization.py", "tests/backend/test_legacy_package_compatibility.py", "-q" ], "tests": true } ], "warnings": ["仅验证本地 V4 转换预览;完整内部审计、真实视频切片与正式发布另行验收。"] }, { "name": "verification-tooling", "paths": [ "^scripts/(check-git-hooks\\.mjs|lib/(git-hooks|browser-executable)\\.mjs|verify-change\\.py|verification-scopes\\.json)$", "^tests/tooling/", "^tests/frontend/(git-hooks|browser-executable|guardrails-ci)\\.test\\.mjs$", "^\\.gitea/workflows/web-ci\\.yml$", "^Dockerfile\\.api$", "^scripts/lib/browser-test-lifecycle\\.mjs$" ], "frontend": [ "tests/frontend/git-hooks.test.mjs", "tests/frontend/browser-executable.test.mjs", "tests/frontend/guardrails-ci.test.mjs", "tests/frontend/dev-guardrails.test.mjs", "tests/frontend/browser-test-lifecycle.test.mjs" ], "go": {}, "task": [] }, { "name": "verification-browser-harnesses", "paths": [ "^tests/browser/(review-drafts|dashboard-presentation-replica|run-editing-regression)\\.mjs$", "^scripts/test-dashboard-presentation\\.mjs$" ], "frontend": ["tests/frontend/browser-executable.test.mjs"], "go": {}, "task": [ { "argv": ["npm", "run", "test:browser:editing"], "tests": true } ] }, { "name": "production-boot-harness", "paths": ["^tests/browser/run-production-boot\\.mjs$"], "frontend": ["tests/frontend/browser-executable.test.mjs"], "go": {}, "task": [ { "argv": ["npm", "run", "build:web"] }, { "argv": ["npm", "run", "test:production:boot"], "requires": [["npm", "run", "build:web"]], "tests": true } ] }, { "name": "acceptance-playback-and-feedback", "paths": [ "^src/components/(FinalAcceptanceWorkspace|AcceptanceActionTimeline|ReviewActionList|ReviewSliceNavigator)\\.tsx$", "^tests/browser/acceptance-timeline-pan\\.mjs$", "^tests/browser/fixtures/acceptance-timeline-pan\\.tsx$", "^tests/browser/acceptance-playback-rate\\.mjs$", "^tests/browser/fixtures/acceptance-playback-rate\\.tsx$", "^src/components/(ReviewCaptions|review-viewing)\\.tsx?$", "^src/hooks/useReviewDraft\\.ts$", "^src/lib/(review-caption-preferences\\.js|review-navigation\\.js|review-opinions\\.ts)$", "^src/styles/review-captions\\.css$", "^tests/browser/review-caption-recovery\\.mjs$", "^src/lib/acceptance-workspace\\.js$", "^src/lib/annotation-time\\.js$", "^tests/browser/(fixtures/)?original-video-time\\.(mjs|tsx)$" ], "frontend": [ "tests/frontend/review-target-interaction.test.mjs", "tests/frontend/review-caption-preferences.test.mjs", "tests/frontend/review-captions.test.mjs", "tests/frontend/acceptance-workspace.test.mjs", "tests/frontend/original-video-time.test.mjs", "tests/frontend/oct15-feedback-flows.test.mjs" ], "go": {}, "task": [ { "argv": ["node", "tests/browser/original-video-time.mjs"], "tests": true }, { "argv": ["node", "tests/browser/acceptance-timeline-pan.mjs"], "env": {}, "tests": true }, { "argv": ["node", "tests/browser/acceptance-playback-rate.mjs"], "env": {}, "tests": true }, { "argv": ["node", "tests/browser/review-caption-recovery.mjs"], "env": {}, "tests": true } ], "warnings": ["浏览器使用真实验收组件、三种播放器模式与隔离合成媒体/批注 API;不连接生产。"] }, { "name": "review-navigation", "paths": [ "^src/(pages/AnnotationOperations\\.tsx|hooks/useReviewContinuation\\.ts|services/api/review-continuation\\.ts)$", "^internal/api/review_(continuation|trace)", "^tests/browser/review-trace\\.mjs$" ], "frontend": ["tests/frontend/annotation-project-loading.test.mjs"], "go": { "./internal/api": ["^TestReviewContinuation"] }, "task": [ { "argv": [ "go", "test", "./internal/api", "-run", "^TestReviewTraceBrowserReplica$", "-count=1", "-timeout=3m", "-v" ], "env": { "REVIEW_TRACE_BROWSER_TEST": "1" }, "tests": true } ] }, { "name": "source-and-buffer", "paths": [ "^src/(pages/AnnotationOperations\\.tsx|services/api/annotation-operations\\.ts)$", "^internal/(api|store)/annotation_(source|legacy_transition|work_buffer|claim_read|claim_visit|random_claim)", "^internal/store/human_claim", "^internal/store/admin_source_exceptions_test\\.go$", "^internal/store/pool_count_performance_test\\.go$", "^tests/browser/annotation-source-validation-replica\\.mjs$", "^internal/(api|store)/annotation_availability" ], "frontend": [ "tests/frontend/annotation-buffer-*.test.mjs", "tests/frontend/annotation-source-validation-ui.test.mjs" ], "go": { "./internal/api": [ "^TestSourceValidation", "^TestPendingSourceValidation", "^TestWorkBufferRetains", "^TestRandomClaim", "^TestLegacySourceTransition", "^TestSourceAdvisory(Published|Prepares|Complete|Isolated|Owned)" ], "./internal/store": [ "^TestSourceAdmissionMemoryClaimFence$", "^TestLegacySourceTransitionFence$", "^TestLegacyTimelineAcceptsOnlyMatchingCompleteCurrentSource$", "^TestSourceAdvisory(DoesNotGate|TaskScope)" ] }, "task": [ { "argv": [ "go", "test", "./internal/store", "-run", "^TestSourceAdmission(Mongo(ClaimFence|BatchMatchesLegacyPipeline|ClaimReadPlan|LargePool)|CurrentOutboxProofMongo|ExistingTaskUpdateDoesNotEnqueueMongo)$|^TestAdminSourceExceptionsMongo$|^TestLegacySourceTransitionMongoEquivalence$|^TestSourceAdvisoryMongoEquivalenceAndBuffer$", "-count=1", "-timeout=3m", "-v" ], "env": { "SOURCE_ADMISSION_LOCAL_MONGO": "1", "POOL_LOCAL_MONGO_URI": "mongodb://127.0.0.1:27018" }, "tests": true }, { "argv": [ "go", "test", "./internal/store", "-run", "^TestPoolCountPredicatesMongo$|^TestPoolStageRoleCountAndVisibilityMatchesDomainMongo$", "-count=1", "-timeout=3m", "-v" ], "env": { "POOL_LOCAL_MONGO_URI": "mongodb://127.0.0.1:27018/?directConnection=true" }, "tests": true }, { "argv": [ "go", "test", "./internal/api", "-run", "^TestSourceValidationLegacyDetailsGETDoesNotEnqueueMongo$", "-count=1", "-v" ], "env": { "SOURCE_ADMISSION_LOCAL_MONGO": "1" }, "tests": true }, { "argv": [ "go", "test", "./internal/api", "-run", "^TestSourceValidationBrowserReplica$", "-count=1", "-timeout=3m", "-v" ], "env": { "SOURCE_VALIDATION_BROWSER_TEST": "1" }, "tests": true }, { "argv": ["go", "test", "./internal/api", "-run", "^TestSourceAdvisoryWorkbenchBrowser$", "-count=1", "-v"], "env": { "SOURCE_ADVISORY_BROWSER_TEST": "1" }, "tests": true } ], "warnings": ["涉及准入/轮询:核对真实规模下查询次数、扫描量、超时与并发;局部回归不等于容量通过。"] }, { "name": "pool-search", "paths": [ "^src/pages/AnnotationOperations\\.tsx$", "^src/.*(pool|Pool|human-loop)", "^internal/(api|store)/(human_pool|admin_annotation_pool|human_loop)", "^internal/(api/(human_display|human_list_reads)|store/human_run_display)", "^docs/operations/acceptance-search-indexes-v2\\.json$", "^tests/browser/(review-pool-search|review-pool-count-status|admin-annotation-pool)", "^src/lib/review-claim-candidates\\.js$" ], "frontend": [ "tests/frontend/annotation-pool-*.test.mjs", "tests/frontend/review-pool-preview.test.mjs", "tests/frontend/review-pool-search.test.mjs", "tests/frontend/review-random-claim.test.mjs", "tests/frontend/annotation-task-pools.test.mjs" ], "go": { "./internal/api": [ "^TestHumanPoolSearch", "^TestHumanPoolCount", "^TestHumanPoolQCProjectScope", "^TestAdminAnnotationPool" ], "./internal/store": ["^TestHumanPoolCountCandidateScan", "^TestAdminSourceExceptionsMemory"] }, "task": [ { "argv": ["node", "tests/browser/review-pool-count-status.mjs"], "tests": true }, { "argv": [ "go", "test", "./internal/store", "-run", "^TestHumanPoolCountsBoundedMongoScan$|^TestPlatformPoolCountCoveredScanParityAndBounds$", "-count=1", "-timeout=3m", "-v" ], "env": { "POOL_COUNT_LOCAL_MONGO": "1", "POOL_LOCAL_MONGO_URI": "mongodb://127.0.0.1:27018" }, "tests": true }, { "argv": [ "go", "test", "./internal/api", "-run", "^TestHumanPoolCountMongoTransport$", "-count=1", "-timeout=3m", "-v" ], "env": { "POOL_COUNT_LOCAL_MONGO": "1" }, "tests": true }, { "argv": [ "go", "test", "./internal/api", "-run", "^TestReviewPoolSearchBrowserReplica$", "-count=1", "-timeout=3m", "-v" ], "env": { "REVIEW_POOL_BROWSER_TEST": "1" }, "tests": true }, { "argv": [ "go", "test", "./internal/store", "-run", "^(TestHumanPoolSearchMongo|TestAdminAnnotationPoolMongo)", "-count=1", "-timeout=3m", "-v" ], "env": { "POOL_LOCAL_MONGO_URI": "mongodb://127.0.0.1:27018" }, "tests": true }, { "argv": [ "go", "test", "./internal/store", "-run", "^TestHumanRunDisplayMongoProjection$", "-count=1", "-timeout=2m", "-v" ], "env": { "ANNOTATION_BUFFER_MONGO_STORE": "1" }, "tests": true }, { "argv": [ "go", "test", "./internal/api", "-run", "^TestAdminAnnotationPoolBrowserReplica$", "-count=1", "-timeout=3m", "-v" ], "env": { "ADMIN_POOL_BROWSER_TEST": "1" }, "tests": true } ] }, { "name": "annotation-editing", "paths": [ "^src/lib/annotation-(authoritative-mutation|workbench)\\.js$", "^src/(pages/AnnotationOperations\\.tsx|components/CaptureAnnotationWorkbench\\.tsx)$", "^src/.*(slice-edit|SliceEdit|annotation-persistence)", "^internal/api/(annotation_draft|annotation_slice|slice_recovery|slice_edit|slice_disposition)", "^tests/browser/(rework-boundary|slice-edit)" ], "frontend": [ "tests/frontend/annotation-persistence.test.mjs", "tests/frontend/annotation-null-workspace.test.mjs", "tests/frontend/annotation-workbench.test.mjs", "tests/frontend/slice-edit-session.test.mjs", "tests/frontend/annotation-authoritative-mutation.test.mjs" ], "go": {}, "task": [ { "argv": [ "go", "test", "./internal/api", "-run", "^TestReworkBoundaryBrowserReplica$", "-count=1", "-timeout=3m", "-v" ], "env": { "REWORK_BOUNDARY_BROWSER_TEST": "1" }, "tests": true } ] }, { "name": "review-decisions", "paths": [ "^src/(pages/AnnotationOperations\\.tsx|components/CaptureAnnotationWorkbench\\.tsx)$", "^src/.*([Rr]eview[Dd]raft|review-draft|[Rr]eview[Dd]ecision|review-decision)", "^internal/api/review_(draft|decision|confirmation)", "^tests/browser/review-(draft|decision|authoring)", "^tests/browser/review-draft-persistence\\.mjs$", "^tests/browser/review-decision-(failure|start-race)\\.mjs$" ], "frontend": [ "tests/frontend/review-decision-controller.test.mjs", "tests/frontend/review-decision-completion.test.mjs", "tests/frontend/review-draft-persistence.test.mjs", "tests/frontend/review-draft-autosave.test.mjs" ], "go": {}, "task": [ { "argv": ["npm", "run", "test:browser:review-drafts"], "tests": true }, { "argv": ["npm", "run", "test:browser:review-decisions"], "tests": true }, { "argv": ["npm", "run", "test:browser:review-permissions"], "tests": true } ] }, { "name": "dashboards", "paths": [ "^docs/operations/production-overview-(indexes\\.json|statistics-growth\\.md)$", "^(scripts/test_dashboard_stability|tests/release/test_dashboard_stability)\\.py$", "^src/.*([Dd]ashboard|WorkforceStatistics|annotation-output)", "^internal/(api|store)/(production_(dashboard|stats)|annotation_output|workforce)", "^internal/(outputsnapshot|workforcestats)/", "^tests/browser/.*dashboard", "^src/components/ProductionStatistics\\.tsx$", "^src/lib/production-quality-dates\\.js$", "^src/services/api/production-quality\\.ts$", "^tests/browser/production-quality-replica\\.mjs$", "^internal/store/production_event_projection_test\\.go$" ], "frontend": [ "tests/frontend/dashboard-presentation.test.mjs", "tests/frontend/production-quality-dates.test.mjs" ], "go": { "./internal/api": ["^TestProductionDashboardScopeIsolationAndFullCorpus$"] }, "task": [ { "argv": ["npm", "run", "test:browser:dashboard"], "tests": true }, { "argv": ["node", "tests/browser/dashboard-publication.mjs"], "tests": true }, { "argv": ["python3", "scripts/test_dashboard_stability.py"] }, { "argv": ["python3", "-m", "unittest", "discover", "-s", "tests/release", "-p", "test_dashboard_stability.py"], "tests": true }, { "argv": [ "go", "test", "./internal/store", "-run", "^TestProductionMongoReadSkipsEditingEventsWithoutChangingMilestones$|^TestProductionCaptureCoveringRead$", "-count=1", "-timeout=90s" ], "env": { "SOURCE_ADMISSION_LOCAL_MONGO": "1" }, "tests": true }, { "argv": ["node", "tests/browser/dashboard-refresh.mjs"], "tests": true } ], "warnings": ["统计/查询改动须额外记录同数据规模的性能对照;完整 120 人容量另行验收。"] }, { "name": "production-statistics-model", "paths": ["^internal/productionstats/model\\.go$"], "frontend": [], "go": {}, "task": [ { "argv": ["npm", "run", "test:go:gate"], "tests": false } ], "warnings": ["共享生产统计事实结构改动:使用既有 Go 基线门禁比较历史失败,不扩大失败基线。"] }, { "name": "review-renewal-recovery", "paths": [ "^src/hooks/useReview(Session|Continuation)\\.ts$", "^src/lib/review-renewal-retry\\.ts$", "^tests/browser/review-renewal-recovery\\.mjs$" ], "frontend": ["tests/frontend/review-lease-cleanup.test.mjs"], "go": { "./internal/api": ["^TestReviewSession", "^TestReviewContinuation"] }, "task": [ { "argv": ["node", "tests/browser/review-renewal-recovery.mjs"], "tests": true }, { "argv": ["npm", "run", "test:browser:review-drafts"], "tests": true }, { "argv": ["npm", "run", "test:browser:review-decisions"], "tests": true }, { "argv": ["npm", "run", "test:browser:review-permissions"], "tests": true } ] }, { "name": "query-readmodels", "paths": [ "^internal/store/pool_search.*\\.go$", "^internal/store/store\\.go$", "^cmd/pool-search-backfill/", "^internal/store/(mongo|annotation_artifact|capture_automation|supplier_deletion_guard|review_decision)\\.go$", "^internal/api/(human_display|production_quality|routes_human_loop)\\.go$", "^internal/api/testdata/routes\\.golden$", "^internal/api/poll_pool_(load|production_fixture)_test\\.go$" ], "frontend": [], "go": { "./internal/api": ["^TestHumanPoolSummary", "^TestHumanPoolCounts", "^TestHumanDisplay", "^TestRouteSnapshot$"], "./internal/store": ["^TestPoolSearchMetadataOwnsOnlyNames$"] }, "task": [ { "argv": ["go", "test", "./internal/store", "-run", "^TestPoolSearchMetadataWriteCost$", "-count=1", "-v"], "env": { "SUBMISSION_LOCK_COST_TEST": "1" }, "tests": true }, { "argv": ["npm", "run", "test:go:gate"], "tests": true }, { "argv": ["go", "test", "./cmd/pool-search-backfill", "-count=1"] }, { "argv": [ "go", "test", "./internal/api", "-run", "^TestPollPoolReadMixLocal$", "-count=1", "-timeout=3m", "-v" ], "env": { "POLL_POOL_LOAD": "1", "POLL_POOL_READMODELS": "1", "POLL_POOL_SEARCH": "1", "POLL_POOL_AUTHORIZATION_STATE": "initialized", "POLL_POOL_WARMUP_SECONDS": "5", "POLL_POOL_DURATION_SECONDS": "30" }, "tests": true } ], "warnings": ["本地 81 人读取冒烟不代表持续容量验收;摘要补建生产 apply 需单独授权,旧记录兼容路径须保留。"] }, { "name": "submission-recovery", "paths": [ "^internal/api/annotation_(submission_recovery|current|operations|processor)(.*)\\.go$", "^internal/store/human_event_recovery.*\\.go$", "^docs/operations/submission-recovery.*\\.md$", "^internal/api/annotation_submission_(busy_test|retry)\\.go$", "^internal/api/slice_phase_browser_test\\.go$", "^tests/browser/slice-phase-replica\\.mjs$", "^internal/store/(account_mutation_lock|supplier_project_stripes|submission_lock_contention).*\\.go$", "^internal/api/initial_slice_confirmation.*\\.go$", "^tests/browser/initial-slice-confirmation\\.mjs$" ], "frontend": [ "tests/frontend/annotation-submission-state.test.mjs", "tests/frontend/annotation-generation-retry.test.mjs", "tests/frontend/failed-slice-recovery-notice.test.mjs", "tests/frontend/annotation-history-recovery.test.mjs", "tests/frontend/rework-resubmission.test.mjs" ], "go": { "./internal/api": [ "^TestSubmissionLossGuard", "^TestRetainCurrentAnnotationData", "^TestFailedSliceRetry", "^TestReconfirmSaved", "^TestInvalidatedSubmission", "^TestCombinedSubmissionFinalCAS", "^TestSubmissionBusy", "^TestInitialSliceConfirmation" ], "./internal/store": ["^TestSubmissionRecoveryEventMemory"] }, "task": [ { "argv": [ "go", "test", "./internal/store", "-run", "^TestSubmissionRecoveryEventMongo$", "-count=1", "-timeout=2m", "-v" ], "env": { "SUBMISSION_RECOVERY_LOCAL_MONGO": "1" }, "tests": true }, { "argv": [ "go", "test", "./internal/store", "-run", "^TestProjectLock|^TestProjectBarrier|^TestProjectWriteStripes(Cancelled|Collision|CrashRecovery|Default|Deletion|Exclusive|Independent|Legacy|Nested|NonStriped|Revocation|Supplier|Version)|^TestSubmissionRetryMongoState|^TestPoolListDoesNotReadSearchOnlyMetadata", "-count=1", "-timeout=3m", "-v" ], "env": { "FANYU_PROJECT_WRITE_LOCK_TEST": "1" }, "tests": true }, { "argv": [ "go", "test", "./internal/store", "-run", "^TestHumanPoolSearchMongoMigratedLargePayload$", "-count=1", "-timeout=2m", "-v" ], "env": { "POOL_LOCAL_MONGO_URI": "mongodb://127.0.0.1:27018" }, "tests": true }, { "argv": [ "go", "test", "./internal/api", "-run", "^Test(SlicePhase|ReworkBoundary)BrowserReplica$", "-count=1", "-timeout=4m", "-v" ], "env": { "REWORK_BOUNDARY_BROWSER_TEST": "1" }, "tests": true }, { "argv": [ "go", "test", "./internal/api", "-run", "^TestInitialSliceConfirmationBrowserReplica$", "-count=1", "-timeout=3m", "-v" ], "env": { "INITIAL_SLICE_CONFIRM_BROWSER_TEST": "1" }, "tests": true }, { "argv": ["npm", "run", "test:go:gate"], "tests": true } ] }, { "name": "deleted-annotator-handoffs", "paths": [ "^internal/api/server\\.go$", "^internal/api/deleted_(annotator|author_rework).*\\.go$", "^internal/store/deleted_annotator.*\\.go$", "^docs/operations/deleted-annotator.*$", "^src/lib/annotation-work-mode\\.js$", "^tests/frontend/annotation-work-mode\\.test\\.mjs$" ], "frontend": ["tests/frontend/annotation-work-mode.test.mjs"], "go": { "./internal/api": [ "^TestDeletedAnnotator", "^TestDeletedAuthorRework", "^TestAccountDeleteDirectoryAndAudit$", "^TestAccountDeleteFailureCanBeRetried$", "^TestQualityRejectionReturnsToEligibleAuthor$" ], "./internal/store": ["^TestDeletedAnnotatorStoreMemory$"] }, "task": [ { "argv": [ "go", "test", "./internal/api", "./internal/store", "-run", "^TestDeletedAnnotator|^TestDeletedAuthorRework", "-count=1", "-timeout=3m", "-v" ], "env": { "DELETED_ANNOTATOR_LOCAL_MONGO": "1" }, "tests": true }, { "argv": [ "go", "test", "./internal/api", "-run", "^TestInitialSliceConfirmationBrowserReplica$/deleted-reset$", "-count=1", "-timeout=3m", "-v" ], "env": { "INITIAL_SLICE_CONFIRM_BROWSER_TEST": "1", "DELETED_ANNOTATOR_HANDOFF": "true" }, "tests": true } ], "warnings": [ "新规则默认关闭;启用前须完成所有写入组件兼容升级及单独授权的路由索引建设。生产数据补处理不包含在本地验证中。" ] }, { "name": "platform-query-closure", "paths": [ "^internal/store/(annotation_claim_stage_read|historical_rework_handoff|human_pool_count_cover_test|platform_query_regression_test|platform_read_indexes|platform_read_indexes_test|review_continuation|review_decision_patch_test)\\.go$", "^internal/api/platform_closure_test\\.go$", "^internal/reworkrepair/", "^cmd/rework-handoff-plan/", "^docs/operations/platform-query-.*" ], "frontend": [], "go": { "./internal/store": [ "^TestPlatform", "^TestHumanPoolSearchScopeFlights", "^TestHumanPoolSearchMongoCoveredDiscovery" ], "./internal/api": [ "^TestFilteredPoolCountsUseOneExhaustiveVisitorPerPool$", "^TestReviewRejectionPersistsDeletedAuthorRoutingIntent$" ], "./internal/reworkrepair": ["^Test"] }, "task": [ { "argv": ["go", "test", "./internal/store", "-run", "^TestPlatform", "-count=1", "-v"], "env": { "POOL_LOCAL_MONGO_URI": "mongodb://127.0.0.1:27018" }, "tests": true }, { "argv": ["go", "test", "./cmd/rework-handoff-plan"] }, { "argv": [ "go", "test", "./internal/store", "-run", "^(TestReviewPatchLocalMongo|TestReviewContinuationMongoStandaloneAdmission)$", "-count=1", "-v" ], "env": { "REVIEW_LOCAL_MONGO_TEST": "1" }, "tests": true }, { "argv": ["go", "test", "./internal/reworkrepair", "-count=1", "-race", "-v"], "env": { "POOL_LOCAL_MONGO_URI": "mongodb://127.0.0.1:27018" }, "tests": true } ], "warnings": ["索引建设、历史返工元数据补处理和开关启用均须单独批准;本地性能对照不代表生产容量通过。"] }, { "name": "release-config-guards", "paths": [ "^scripts/release\\.py$", "^tests/release/test_release\\.py$", "^scripts/release-build-api-image\\.sh$", "^tests/release/test_release_build_image\\.py$" ], "frontend": [], "go": {}, "task": [ { "argv": ["python3", "-m", "unittest", "discover", "-s", "tests/release", "-p", "test_release*.py"], "tests": true } ] }, { "name": "reliability-guardrails", "paths": [ "^scripts/(lib/(release_checks|source_readiness)\\.py|test_work_availability\\.py)$", "^tests/release/test_reliability_checks\\.py$", "^internal/(api|store)/(source_readiness|read_observation).*\\.go$", "^internal/api/diagnostic_trace.*\\.go$", "^docs/(operations/reliability-guardrails\\.md|release/api-runtime\\.json)$", "^Dockerfile\\.api-runtime$", "^cmd/api/main\\.go$" ], "frontend": [], "go": { "./internal/api": ["^TestSourceReadiness", "^TestDiagnosticTrace"], "./internal/store": ["^TestReadObservation", "^TestSourceReadiness"] }, "task": [ { "argv": ["python3", "-m", "unittest", "discover", "-s", "tests/release", "-p", "test_*.py"], "tests": true }, { "argv": ["npm", "run", "test:work-availability"], "tests": true } ], "warnings": [ "工作流门禁仅使用合成媒体和隔离 Mongo;严格模式清单不是校验证书,生产容量、备份恢复和部署需分别验证。" ] }, { "name": "query-serving", "paths": [ "^internal/queryserving/", "^internal/api/(database_browser|poll_pool_load_test)\\.go$", "^internal/store/query_.*\\.go$", "^internal/store/private_derived_collections\\.go$", "^internal/(api|outputsnapshot)/query_.*\\.go$", "^cmd/query-read-builder/", "^scripts/(test_query_serving.*\\.py|lib/query_serving_evidence\\.py|local/query-serving\\.compose\\.yml)$", "^Dockerfile\\.query-read-builder$", "^tests/release/test_query_serving_evidence\\.py$", "^docs/operations/query-serving\\.md$" ], "frontend": [], "go": { "./internal/queryserving": ["^TestQueryServing"], "./internal/store": ["^TestQueryReadModel", "^TestQuerySearch"], "./internal/outputsnapshot": ["^TestQueryServing"], "./internal/api": ["^TestQueryServing"] }, "task": [ { "argv": ["python3", "scripts/test_query_serving.py", "--start", "--race"], "tests": true, "env": {} }, { "argv": [ "python3", "-m", "unittest", "discover", "-s", "tests/release", "-p", "test_query_serving_evidence.py" ], "tests": true } ], "warnings": ["真实三组件仅使用固定本机合成夹具;完整规模三轮、故障恢复容量及生产部署独立验收。"] }, { "name": "node4-query-pilot-guardrails", "paths": [ "^scripts/local/node4-query-pilot/", "^scripts/local/(query-lab-resource-stage|query-valkey-lab|query_lab_profiles)\\.py$", "^docs/operations/query-replica-node4-(isolation-plan|smoke-results)\\.md$", "^scripts/local/(query-replica-(cluster-fixture|isolated-compare)|test_query_replica_cluster_fixture)\\.py$", "^docs/operations/query-replica-query25-comparison\\.md$" ], "frontend": [], "go": {}, "task": [ { "argv": [ "python3", "-m", "unittest", "discover", "-s", "scripts/local/node4-query-pilot", "-p", "test_*.py", "-v" ], "tests": true }, { "argv": [ "python3", "-m", "unittest", "discover", "-s", "scripts/local", "-p", "test_query_replica_cluster_fixture.py", "-v" ], "tests": true } ], "warnings": ["仅执行离线安全回归;节点写回归属、Pod重建、满盘及容量仍须已授权的独立合成实测,不能以该检查替代。"] }, { "name": "shadow-work-health", "paths": [ "^scripts/local/(query-shadow-(observer|work-health|monitor)|query_shadow_health|test_query_shadow_(observer|work_health|health|monitor))\\.py$", "^Dockerfile\\.query-shadow-monitor$", "^docs/operations/query-shadow-monitor\\.md$" ], "frontend": [], "go": { "./internal/api": ["^TestDiagnosticTrace"] }, "task": [ { "argv": ["python3", "-m", "unittest", "discover", "-s", "scripts/local", "-p", "test_query_shadow*.py", "-v"], "tests": true } ], "warnings": [ "HTTP slow/error tails only; no full p95 or async job completion claims. Production collectors are read-only and must bind current API identities." ] }, { "name": "independent-query-replica", "paths": [ "^internal/store/query_(replica|sync|tracked_collection|collection_interface).*\\.go$", "^internal/api/query_replica.*\\.go$", "^internal/store/workforce_(report_cache|heap_diagnostic|facts|return_page|publication).*\\.go$", "^internal/store/query_pool_buckets.*\\.go$", "^internal/store/query_cold_write.*\\.go$", "^internal/store/query_build_.*\\.go$", "^internal/store/query_periodic.*\\.go$", "^internal/store/supplier_authorization_batch_local_test\\.go$", "^internal/api/query_periodic.*\\.go$", "^internal/api/query_fact_routes_test\\.go$", "^internal/api/workforce_compact_report_test\\.go$", "^internal/testsupport/query_replica_lab.*\\.go$", "^cmd/(query-replica|query-cdc-probe)/", "^cmd/query-lab-bridge/", "^scripts/test_query_replica\\.py$", "^scripts/local/test_query_replica_runner\\.py$", "^scripts/local/query-replica\\.query25-local\\.compose\\.yml$", "^scripts/local/query-replica\\.compose\\.yml$", "^Dockerfile\\.query-replica$", "^docs/(adr/0014-.*|operations/query-replica\\.md|operations/query-build-lifecycle\\.md)$", "^internal/store/query_model_maintenance\\.go$" ], "frontend": [], "go": { "./internal/store": [ "^TestQueryReplicaCandidateCache", "^TestQueryReplicaCountOnly", "^TestQueryReplicaMissingConfiguration", "^TestQueryReplicaRejectsSigned", "^TestQueryReplicaDiagnostic", "^TestQueryBuildRound", "^TestQueryBuildBudgets", "^TestQueryBuildPacing" ], "./cmd/query-cdc-probe": ["^TestClassification"], "./cmd/query-replica": ["^TestPassDelay", "^TestPacing", "^TestDaemonRetryDoesNotHideHardFailures$"], "./cmd/query-lab-bridge": ["^TestIsolatedBridge"], "./internal/testsupport": ["^TestQueryReplicaTarget"] }, "task": [ { "argv": [ "python3", "-m", "unittest", "discover", "-s", "scripts/local", "-p", "test_query_shadow_observer.py", "-v" ], "tests": true }, { "argv": ["python3", "scripts/test_query_replica.py", "--auto", "--bounded-query", "--race", "--cache"], "tests": true }, { "argv": ["go", "test", "./internal/testsupport", "-v"], "tests": true }, { "argv": [ "python3", "-m", "unittest", "discover", "-s", "scripts/local", "-p", "test_query_replica_runner.py", "-v" ], "tests": true } ], "warnings": [ "独立源库/查询库仅使用合成数据;生产写者、47个源索引、迁移及集群资源须另行审批。native测试没有CPU配额,不能证明4核容量。" ] }, { "name": "review-operation-history", "paths": [ "^internal/store/annotation_output_operations(_recovery)?(_test)?\\.go$", "^internal/store/annotation_output\\.go$" ], "frontend": [], "go": {}, "task": [ { "argv": [ "go", "test", "./internal/store", "-run", "^TestAnnotationOutput.*Operation.*Mongo|^TestReviewOperationActualSnapshotMongoRefreshCycle$", "-count=1", "-timeout=180s", "-v" ], "env": { "TEST_WORKFORCE_MONGO_URI": "mongodb://127.0.0.1:27018", "RUN_OUTPUT_REVIEW_SCALE": "1", "RUN_OUTPUT_REFRESH_CYCLE": "1" }, "tests": true } ], "warnings": [ "审核操作历史读取保持完整、原15秒查询和90秒构建预算;显式本机合成夹具覆盖同规模、取消、旧ID及真实120秒刷新,不代表生产已刷新。" ] } ] }