droboticflow/scripts/verification-scopes.json

441 lines
14 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"version": 1,
"scopes": [
{
"name": "workbench-render-reuse",
"paths": [
"^src/components/(ReviewProblemPanel|ReviewTrace)\\.tsx$",
"^src/hooks/useAnnotationWorkSession\\.ts$",
"^src/lib/datetime\\.ts$",
"^tests/browser/(workbench-render-reuse\\.mjs|fixtures/workbench-render-reuse\\.tsx)$",
"^src/lib/annotation-work-mode\\.js$"
],
"frontend": [
"tests/frontend/workbench-render-churn.test.mjs",
"tests/frontend/annotation-buffer-reconciliation.test.mjs",
"tests/frontend/annotation-work-mode.test.mjs"
],
"go": {},
"task": [
{
"argv": ["node", "tests/browser/workbench-render-reuse.mjs"],
"tests": true
}
]
},
{
"name": "delivery-v4-inventory",
"paths": ["^scripts/local/delivery_v4_inventory\\.py$", "^tests/agents/test_delivery_v4_inventory\\.py$"],
"frontend": [],
"go": {},
"task": [
{
"argv": [
"python3",
"-m",
"unittest",
"discover",
"-s",
"tests/agents",
"-p",
"test_delivery_v4_inventory.py"
],
"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$"
],
"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"
],
"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\\.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$"
],
"frontend": [
"tests/frontend/review-target-interaction.test.mjs",
"tests/frontend/review-caption-preferences.test.mjs",
"tests/frontend/review-captions.test.mjs"
],
"go": {},
"task": [
{
"argv": ["node", "tests/browser/acceptance-playback-rate.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|work_buffer|claim_read|claim_visit|random_claim)",
"^internal/store/human_claim",
"^tests/browser/annotation-source-validation-replica\\.mjs$"
],
"frontend": [
"tests/frontend/annotation-buffer-*.test.mjs",
"tests/frontend/annotation-source-validation-ui.test.mjs"
],
"go": {
"./internal/api": [
"^TestSourceValidation",
"^TestPendingSourceValidation",
"^TestWorkBufferRetains",
"^TestRandomClaim"
],
"./internal/store": ["^TestSourceAdmissionMemoryClaimFence$"]
},
"task": [
{
"argv": [
"go",
"test",
"./internal/store",
"-run",
"^TestSourceAdmissionMongo(ClaimFence|BatchMatchesLegacyPipeline)$",
"-count=1",
"-timeout=3m",
"-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
}
],
"warnings": ["涉及准入/轮询:核对真实规模下查询次数、扫描量、超时与并发;局部回归不等于容量通过。"]
},
{
"name": "pool-search",
"paths": [
"^src/pages/AnnotationOperations\\.tsx$",
"^src/.*(pool|Pool|human-loop)",
"^internal/(api|store)/(human_pool|admin_annotation_pool|human_loop)",
"^tests/browser/(review-pool-search|admin-annotation-pool)"
],
"frontend": [
"tests/frontend/annotation-pool-*.test.mjs",
"tests/frontend/review-pool-preview.test.mjs",
"tests/frontend/review-pool-search.test.mjs"
],
"go": {
"./internal/api": ["^TestHumanPoolSearch", "^TestHumanPoolQCProjectScope"]
},
"task": [
{
"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",
"-count=1",
"-timeout=3m",
"-v"
],
"env": {
"POOL_LOCAL_MONGO_URI": "mongodb://127.0.0.1:27018"
},
"tests": true
}
]
},
{
"name": "annotation-editing",
"paths": [
"^src/(pages/AnnotationOperations\\.tsx|components/CaptureAnnotationWorkbench\\.tsx)$",
"^src/.*(slice-edit|SliceEdit|annotation-persistence)",
"^internal/api/(annotation_draft|annotation_slice|slice_recovery|slice_edit)",
"^tests/browser/(rework-boundary|slice-edit)"
],
"frontend": [
"tests/frontend/annotation-persistence.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$"
],
"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": [
"^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": ["python3", "scripts/test_dashboard_stability.py"]
},
{
"argv": [
"go",
"test",
"./internal/store",
"-run",
"^TestProductionMongoReadSkipsEditingEventsWithoutChangingMilestones$|^TestProductionCaptureCoveringRead$",
"-count=1",
"-timeout=90s"
],
"env": {
"SOURCE_ADMISSION_LOCAL_MONGO": "1"
},
"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 基线门禁比较历史失败,不扩大失败基线。"]
}
]
}