🏷️ Complete Hand Removal release metadata

This commit is contained in:
eust-w 2026-07-14 17:53:25 +08:00
parent d092be1067
commit 561d802f0f
7 changed files with 246 additions and 0 deletions

View File

@ -0,0 +1,84 @@
{
"acceptance": {
"hardcodedOutputAccepted": false,
"mockOnlyAccepted": false,
"pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh",
"requiresPersistentWorkspaceEvidence": true,
"requiresRealInputs": true,
"shallowOnlyAccepted": false,
"simulationOnlyAccepted": false
},
"category": "AI",
"containerArgs": [],
"containerCommand": [
"python",
"/app/backend/operator-runner/main.py"
],
"containerEntrypoint": "backend/operator-runner/main.py",
"entrypoint": "operator.py",
"image": "ccr-29eug8s3-pub.cnc.bj.baidubce.com/dataflow-poc/droboticflow-operator-hand-removal:builtin",
"imageId": "ccr-29eug8s3-pub.cnc.bj.baidubce.com/dataflow-poc/droboticflow-operator-hand-removal@sha256:010fe60829ae04e1b26a8e41ce69e055106a8d21716dc9a726e629fe24dfd4f8",
"metadata": "operator.json",
"name": "Hand Removal 视频去手",
"operatorId": "operator-builtin-hand-removal",
"operatorSlug": "hand_removal",
"preferredSlug": "hand_removal",
"pythonImport": "backend.operators.builtin.hand_removal.operator:run",
"repositoryId": "builtin/hand_removal",
"runtimeContract": {
"acceptance": {
"requiresArtifactChecksum": true,
"requiresFixtureChecksum": true,
"requiresGpuEvidence": true,
"requiresRealFixture": true,
"requiresWorkflowTransfer": true
},
"artifacts": {
"requiresChecksum": true,
"requiresLineage": true,
"requiresManifest": true
},
"entrypoint": "/app/backend/operator-runner/main.py",
"handler": "builtin_hand_removal",
"imagePolicy": {
"allowsSharedBaseLayer": true,
"forbidsSharedOperatorRunnerFinalImage": true,
"independentFinalImage": true
},
"operatorId": "operator-builtin-hand-removal",
"operatorSlug": "hand_removal",
"parameters": {
"commandWrapperAllowed": false,
"controlledScriptAllowed": false,
"source": "hyperparams",
"structured": true
},
"resources": {
"externalGpuService": true,
"minGpuCount": 0,
"recommendedGpuType": "NVIDIA A800 80GB",
"requiresGpu": false
},
"runtimeDependencies": [
"propainter-inference-service",
"sam3-mask-artifacts",
"image-video-files",
"http-api",
"gpu-a800-service"
],
"schemaVersion": "droboticflow.operator.runtime/v1"
},
"runtimeDependencies": [
"propainter-inference-service",
"sam3-mask-artifacts",
"image-video-files",
"http-api",
"gpu-a800-service"
],
"runtimeHandler": "builtin_hand_removal",
"runtimeSource": "backend/operators/builtin/hand_removal/operator.py",
"schemaVersion": "droboticflow.operator.repository/v1",
"sourceRoot": "backend/operators/builtin/hand_removal",
"strictPocAcceptanceExternals": [],
"type": "builtin"
}

View File

@ -7496,6 +7496,8 @@
}
],
"id": "operator-builtin-hand-removal",
"image": "ccr-29eug8s3-pub.cnc.bj.baidubce.com/dataflow-poc/droboticflow-operator-hand-removal:builtin",
"imageId": "ccr-29eug8s3-pub.cnc.bj.baidubce.com/dataflow-poc/droboticflow-operator-hand-removal@sha256:010fe60829ae04e1b26a8e41ce69e055106a8d21716dc9a726e629fe24dfd4f8",
"inputs": [
{
"description": "原始 egocentric 视频 artifact",

View File

@ -585,6 +585,30 @@
"runtimeSource": "operator-repos/builtin/hand_object_pose_validate/src/operator.py",
"sourceRoot": "operator-repos/builtin/hand_object_pose_validate"
},
{
"baseImage": "${OPERATOR_BASE_IMAGE}",
"containerArgs": [],
"containerCommand": [
"python",
"/app/backend/operator-runner/main.py"
],
"dependencyProfile": [
"propainter-inference-service",
"sam3-mask-artifacts",
"image-video-files",
"http-api",
"gpu-a800-service"
],
"dockerfile": "operator-repos/builtin/hand_removal/Dockerfile",
"image": "ccr-29eug8s3-pub.cnc.bj.baidubce.com/dataflow-poc/droboticflow-operator-hand-removal:builtin",
"imageId": "ccr-29eug8s3-pub.cnc.bj.baidubce.com/dataflow-poc/droboticflow-operator-hand-removal@sha256:010fe60829ae04e1b26a8e41ce69e055106a8d21716dc9a726e629fe24dfd4f8",
"operatorId": "operator-builtin-hand-removal",
"operatorSlug": "hand_removal",
"requiresGpu": false,
"runtimeHandler": "builtin_hand_removal",
"runtimeSource": "operator-repos/builtin/hand_removal/src/operator.py",
"sourceRoot": "operator-repos/builtin/hand_removal"
},
{
"baseImage": "${OPERATOR_BASE_IMAGE}",
"containerArgs": [],

View File

@ -0,0 +1,30 @@
{
"acceptance": {
"artifactId": "",
"projectId": "",
"runId": "",
"verifiedAt": "",
"workflowId": ""
},
"builtAt": "2026-07-14T17:37:42+08:00",
"digest": "sha256:010fe60829ae04e1b26a8e41ce69e055106a8d21716dc9a726e629fe24dfd4f8",
"environmentReleases": {
"poc": {
"digest": "sha256:010fe60829ae04e1b26a8e41ce69e055106a8d21716dc9a726e629fe24dfd4f8",
"image": "ccr-29eug8s3-pub.cnc.bj.baidubce.com/dataflow-poc/droboticflow-operator-hand-removal:builtin",
"imageId": "ccr-29eug8s3-pub.cnc.bj.baidubce.com/dataflow-poc/droboticflow-operator-hand-removal@sha256:010fe60829ae04e1b26a8e41ce69e055106a8d21716dc9a726e629fe24dfd4f8",
"registry": "ccr-29eug8s3-pub.cnc.bj.baidubce.com",
"tag": "builtin"
}
},
"image": "ccr-29eug8s3-pub.cnc.bj.baidubce.com/dataflow-poc/droboticflow-operator-hand-removal:builtin",
"imageId": "ccr-29eug8s3-pub.cnc.bj.baidubce.com/dataflow-poc/droboticflow-operator-hand-removal@sha256:010fe60829ae04e1b26a8e41ce69e055106a8d21716dc9a726e629fe24dfd4f8",
"kanikoJob": "droboticflow-kaniko-op-hand-removal-d092be1",
"operatorId": "operator-builtin-hand-removal",
"registry": "ccr-29eug8s3-pub.cnc.bj.baidubce.com",
"schemaVersion": "droboticflow.operator.release/v1",
"slug": "hand_removal",
"sourceCommit": "d092be106733dbb85845b32ad77bd4de265e3350",
"sourceTreeSha256": "e7c8e985eb2b09e897548f51984e07050689d5fc9aaa94f298fcd37b11c501a2",
"tag": "builtin"
}

View File

@ -0,0 +1,90 @@
{
"acceptance": {
"fixtureContract": "tests/acceptance/fixture_contract.json",
"hardcodedOutputAccepted": false,
"mockOnlyAccepted": false,
"pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh",
"requiresChainedWorkflow": true,
"requiresChineseWorkflowAcceptance": true,
"requiresPersistentWorkspaceEvidence": true,
"requiresRealInputs": true,
"shallowOnlyAccepted": false,
"simulationOnlyAccepted": false
},
"category": "AI",
"containerArgs": [],
"containerCommand": [
"python",
"/app/backend/operator-runner/main.py"
],
"containerEntrypoint": "backend/operator-runner/main.py",
"entrypoint": "src/operator.py",
"image": "ccr-29eug8s3-pub.cnc.bj.baidubce.com/dataflow-poc/droboticflow-operator-hand-removal:builtin",
"imageId": "ccr-29eug8s3-pub.cnc.bj.baidubce.com/dataflow-poc/droboticflow-operator-hand-removal@sha256:010fe60829ae04e1b26a8e41ce69e055106a8d21716dc9a726e629fe24dfd4f8",
"metadata": "operator.json",
"name": "Hand Removal 视频去手",
"operatorId": "operator-builtin-hand-removal",
"operatorSlug": "hand_removal",
"preferredSlug": "hand_removal",
"pythonImport": "operator-repos/builtin/hand_removal/src/operator.py:run",
"releaseManifest": "release.json",
"releaseSchemaVersion": "droboticflow.operator.release/v1",
"repositoryId": "builtin/hand_removal",
"runtimeContract": {
"acceptance": {
"requiresArtifactChecksum": true,
"requiresFixtureChecksum": true,
"requiresGpuEvidence": true,
"requiresRealFixture": true,
"requiresWorkflowTransfer": true
},
"artifacts": {
"requiresChecksum": true,
"requiresLineage": true,
"requiresManifest": true
},
"entrypoint": "/app/backend/operator-runner/main.py",
"handler": "builtin_hand_removal",
"imagePolicy": {
"allowsSharedBaseLayer": true,
"forbidsSharedOperatorRunnerFinalImage": true,
"independentFinalImage": true
},
"operatorId": "operator-builtin-hand-removal",
"operatorSlug": "hand_removal",
"parameters": {
"commandWrapperAllowed": false,
"controlledScriptAllowed": false,
"source": "hyperparams",
"structured": true
},
"resources": {
"externalGpuService": true,
"minGpuCount": 0,
"recommendedGpuType": "NVIDIA A800 80GB",
"requiresGpu": false
},
"runtimeDependencies": [
"propainter-inference-service",
"sam3-mask-artifacts",
"image-video-files",
"http-api",
"gpu-a800-service"
],
"schemaVersion": "droboticflow.operator.runtime/v1"
},
"runtimeDependencies": [
"propainter-inference-service",
"sam3-mask-artifacts",
"image-video-files",
"http-api",
"gpu-a800-service"
],
"runtimeHandler": "builtin_hand_removal",
"runtimeSource": "operator-repos/builtin/hand_removal/src/operator.py",
"schemaVersion": "droboticflow.operator.repository/v1",
"sourceRoot": "operator-repos/builtin/hand_removal",
"sourceTreeSha256": "e7c8e985eb2b09e897548f51984e07050689d5fc9aaa94f298fcd37b11c501a2",
"strictPocAcceptanceExternals": [],
"type": "builtin"
}

View File

@ -60,6 +60,7 @@ LONG_RUNNING_SLUGS = {
"holobrain_train",
}
REMOTE_GPU_SERVICE_SLUGS = {
"hand_removal",
"wilor_hand_pose",
}
COMMAND_WRAPPER_ALLOWED: set[str] = set()

View File

@ -204,6 +204,21 @@ class OperatorRepositoryLayoutTest(unittest.TestCase):
else:
self.assertFalse(command_keys & {"COMMAND", "SCRIPT"})
def test_remote_gpu_service_contracts_are_preserved(self):
catalog = {
item["id"]: item
for item in json.loads(CATALOG_PATH.read_text(encoding="utf-8"))
if item.get("type") == "builtin"
}
for operator_id in ("operator-builtin-hand-removal", "operator-builtin-wilor-hand-pose"):
with self.subTest(operator=operator_id):
contract = catalog[operator_id]["runtimeContract"]
self.assertFalse(contract["resources"]["requiresGpu"])
self.assertTrue(contract["resources"]["externalGpuService"])
self.assertEqual(contract["resources"]["recommendedGpuType"], "NVIDIA A800 80GB")
self.assertTrue(contract["acceptance"]["requiresGpuEvidence"])
def test_builtin_operator_dockerfiles_are_generated(self):
catalog = json.loads(CATALOG_PATH.read_text(encoding="utf-8"))
builtin_items = [item for item in catalog if item.get("type") == "builtin"]