05prey commited on
Commit
0c4821f
·
verified ·
1 Parent(s): 18b6d04

Update policy.json

Browse files
Files changed (1) hide show
  1. policy.json +104 -73
policy.json CHANGED
@@ -3,90 +3,121 @@
3
  "policy_version": "2026-02-14.1",
4
  "min_agent_version": "0.1.0",
5
  "updated_at": "2026-02-14T00:00:00Z",
6
-
7
  "targets": {
8
  "inference_upload_url": "https://05prey-cloud-end.hf.space/upload"
9
  },
10
-
11
- "selection": {
12
- "allowed_modalities": ["MG", "MR", "US"],
13
-
 
 
14
  "mg": {
15
- "enabled": true,
16
- "views": [
17
- { "name": "R CC", "match_any": ["R CC", "RCC", "RIGHT CC"] },
18
- { "name": "L CC", "match_any": ["L CC", "LCC", "LEFT CC"] },
19
- { "name": "R MLO", "match_any": ["R MLO", "RMLO", "RIGHT MLO"] },
20
- { "name": "L MLO", "match_any": ["L MLO", "LMLO", "LEFT MLO"] }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  ],
22
- "max_series": 4
23
  },
24
-
25
- "mr": {
26
- "enabled": true,
27
- "prefer_series": [
28
- { "label": "SUB/DCE", "match_any": ["SUB", "SUBTR", "SUBTRACT", "VIBRANT", "DYN", "DCE"], "max_take": 1 },
29
- { "label": "T1", "match_any": ["T1", "T1W", "THRIVE", "VIBE", "eTHRIVE"], "max_take": 1 }
 
 
 
 
 
 
30
  ],
31
- "fallback": { "take_largest_series": 1 },
32
- "limits": {
33
- "max_total_instances": 5000,
34
- "max_instances_per_series": 1500,
35
- "max_zip_mb": 6000
36
- }
37
  },
38
-
39
- "us": {
40
- "enabled": false
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  }
42
  },
43
-
44
- "packaging": {
45
- "format": "hf_expected_v1",
46
-
47
- "outer_files": {
48
- "mg_single_dcm": {
49
- "filename_template": "{patient_id} {view_label} MG.dcm"
50
- },
51
- "us_single_dcm": {
52
- "filename_template": "{patient_id} {series_label} US.dcm"
53
- },
54
- "mr_zip": {
55
- "filename_template": "{patient_id} {series_label} MR.zip"
56
- }
57
- },
58
-
59
- "mr_zip_contents": {
60
- "folder_template": "{patient_id} {series_label} MR",
61
- "instance_filename_template": "MR{index:06d}.dcm",
62
- "index_order": "InstanceNumber_then_SliceLocation_then_AcquisitionTime"
63
- },
64
-
65
- "allowed_separators": {
66
- "token_separator": " ",
67
- "sanitize": true,
68
- "sanitize_rules": {
69
- "remove_chars": ["\\", "/", ":", "*", "?", "\"", "<", ">", "|"],
70
- "collapse_spaces": true,
71
- "max_len": 80
72
- }
73
- },
74
-
75
- "manifest": {
76
- "include": true,
77
- "filename": "manifest.json",
78
- "fields": [
79
- "patient_id",
80
- "study_uid",
81
- "selected_series",
82
- "policy_version"
83
- ]
84
  }
85
  },
86
-
87
- "transport": {
88
- "timeout_seconds": 1800,
89
- "retries": 2,
90
- "retry_backoff_seconds": [2, 5, 15]
 
 
 
 
91
  }
92
  }
 
3
  "policy_version": "2026-02-14.1",
4
  "min_agent_version": "0.1.0",
5
  "updated_at": "2026-02-14T00:00:00Z",
 
6
  "targets": {
7
  "inference_upload_url": "https://05prey-cloud-end.hf.space/upload"
8
  },
9
+ "limits": {
10
+ "max_total_instances": 5000,
11
+ "max_instances_per_series": 1500,
12
+ "max_zip_mb": 6000
13
+ },
14
+ "modalities": {
15
  "mg": {
16
+ "series_labels": [
17
+ {
18
+ "series_label": "RCC",
19
+ "match_any": [
20
+ "R CC",
21
+ "RCC",
22
+ "RIGHT CC"
23
+ ],
24
+ "save_rule": "{patient_id} {series_label} {modality}",
25
+ "save_format": "dcm"
26
+ },
27
+ {
28
+ "series_label": "LCC",
29
+ "match_any": [
30
+ "L CC",
31
+ "LCC",
32
+ "LEFT CC"
33
+ ],
34
+ "save_rule": "{patient_id} {series_label} {modality}",
35
+ "save_format": "dcm"
36
+ },
37
+ {
38
+ "series_label": "RMLO",
39
+ "match_any": [
40
+ "R MLO",
41
+ "RMLO",
42
+ "RIGHT MLO"
43
+ ],
44
+ "save_rule": "{patient_id} {series_label} {modality}",
45
+ "save_format": "dcm"
46
+ },
47
+ {
48
+ "series_label": "LMLO",
49
+ "match_any": [
50
+ "L MLO",
51
+ "LMLO",
52
+ "LEFT MLO"
53
+ ],
54
+ "save_rule": "{patient_id} {series_label} {modality}",
55
+ "save_format": "dcm"
56
+ }
57
  ],
58
+ "fallback_label": "MG"
59
  },
60
+ "us": {
61
+ "series_labels": [
62
+ {
63
+ "series_label": "meme",
64
+ "match_any": [
65
+ "MEME",
66
+ "BREAST",
67
+ "MAMMARY"
68
+ ],
69
+ "save_rule": "{patient_id} {series_label} {modality}",
70
+ "save_format": "dcm"
71
+ }
72
  ],
73
+ "fallback_label": "US"
 
 
 
 
 
74
  },
75
+ "mr": {
76
+ "series_labels": [
77
+ {
78
+ "series_label": "T1W_TSE",
79
+ "match_any": [
80
+ "T1W_TSE",
81
+ "T1W TSE",
82
+ "T1W-TSE"
83
+ ],
84
+ "save_rule": "{patient_id} {series_label} {modality}",
85
+ "save_format": "zip"
86
+ },
87
+ {
88
+ "series_label": "SUB",
89
+ "match_any": [
90
+ "SUB",
91
+ "SUBTR",
92
+ "SUBTRACT"
93
+ ],
94
+ "save_rule": "{patient_id} {series_label} {modality}",
95
+ "save_format": "zip"
96
+ }
97
+ ],
98
+ "fallback_label": "MR"
99
  }
100
  },
101
+ "naming": {
102
+ "placeholders": [
103
+ "patient_id",
104
+ "series_label",
105
+ "modality"
106
+ ],
107
+ "separator": " ",
108
+ "extensions": {
109
+ "dcm": ".dcm",
110
+ "zip": ".zip"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  }
112
  },
113
+ "zip_rules": {
114
+ "mr_instance_name": "MR{index:06d}.dcm",
115
+ "sort_order": [
116
+ "InstanceNumber",
117
+ "SliceLocation",
118
+ "AcquisitionTime"
119
+ ],
120
+ "include_folder_inside_zip": true,
121
+ "zip_folder_rule": "{patient_id} {series_label} {modality}"
122
  }
123
  }