sysprims 0.5.1__tar.gz → 0.5.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. {sysprims-0.5.1 → sysprims-0.5.2}/Cargo.toml +9 -9
  2. {sysprims-0.5.1 → sysprims-0.5.2}/PKG-INFO +1 -1
  3. {sysprims-0.5.1 → sysprims-0.5.2}/bindings/python/Cargo.lock +40 -79
  4. {sysprims-0.5.1 → sysprims-0.5.2}/bindings/python/Cargo.toml +1 -1
  5. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-evidence/examples/evidence-diff.rs +173 -8
  6. sysprims-0.5.2/crates/sysprims-evidence/src/identifiers.rs +2794 -0
  7. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-evidence/src/lib.rs +26 -2
  8. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-evidence/src/wire.rs +13 -3
  9. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/src/lib.rs +70 -0
  10. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/src/linux.rs +82 -0
  11. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/src/macos.rs +38 -0
  12. sysprims-0.5.2/crates/sysprims-proc/src/observation/host.rs +1476 -0
  13. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/src/observation/macos.rs +4 -0
  14. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/src/observation/mod.rs +12 -0
  15. sysprims-0.5.2/crates/sysprims-proc/src/observation/process_id.rs +475 -0
  16. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/src/windows.rs +51 -2
  17. {sysprims-0.5.1 → sysprims-0.5.2}/pyproject.toml +1 -1
  18. {sysprims-0.5.1 → sysprims-0.5.2}/LICENSE-APACHE +0 -0
  19. {sysprims-0.5.1 → sysprims-0.5.2}/LICENSE-MIT +0 -0
  20. {sysprims-0.5.1 → sysprims-0.5.2}/NOTICE +0 -0
  21. {sysprims-0.5.1 → sysprims-0.5.2}/README.md +0 -0
  22. {sysprims-0.5.1 → sysprims-0.5.2}/bindings/python/LICENSE-APACHE +0 -0
  23. {sysprims-0.5.1 → sysprims-0.5.2}/bindings/python/LICENSE-MIT +0 -0
  24. {sysprims-0.5.1 → sysprims-0.5.2}/bindings/python/NOTICE +0 -0
  25. {sysprims-0.5.1 → sysprims-0.5.2}/bindings/python/README.md +0 -0
  26. {sysprims-0.5.1 → sysprims-0.5.2}/bindings/python/src/lib.rs +0 -0
  27. {sysprims-0.5.1 → sysprims-0.5.2}/bindings/python/tests/test_sysprims.py +0 -0
  28. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-core/Cargo.toml +0 -0
  29. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-core/README.md +0 -0
  30. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-core/src/error.rs +0 -0
  31. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-core/src/guard_signals.rs +0 -0
  32. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-core/src/lib.rs +0 -0
  33. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-core/src/schema.rs +0 -0
  34. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-core/src/time.rs +0 -0
  35. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-evidence/Cargo.toml +0 -0
  36. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-evidence/README.md +0 -0
  37. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-evidence/src/observation.rs +0 -0
  38. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-evidence/src/report.rs +0 -0
  39. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-evidence/src/session.rs +0 -0
  40. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/Cargo.toml +0 -0
  41. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/README.md +0 -0
  42. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/examples/observe-process.rs +0 -0
  43. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/examples/proc-diff.rs +0 -0
  44. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/src/observation/linux.rs +0 -0
  45. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/src/observation/other.rs +0 -0
  46. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/tests/fds.rs +0 -0
  47. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/tests/guard_runner.rs +0 -0
  48. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/tests/liveness.rs +0 -0
  49. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/tests/observation.rs +0 -0
  50. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-proc/tests/port_bindings.rs +0 -0
  51. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/Cargo.toml +0 -0
  52. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/README.md +0 -0
  53. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/examples/recurrence-diff.rs +0 -0
  54. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/src/civil.rs +0 -0
  55. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/src/expand.rs +0 -0
  56. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/src/json.rs +0 -0
  57. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/src/lib.rs +0 -0
  58. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/src/model.rs +0 -0
  59. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/src/refusal.rs +0 -0
  60. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/src/tz.rs +0 -0
  61. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/src/validate.rs +0 -0
  62. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/tests/behavior.rs +0 -0
  63. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/tests/corpus.rs +0 -0
  64. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/tzdata/tzif-bundle-2026e.bin +0 -0
  65. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-recurrence/tzdata/tzif-bundle-2026e.sha256 +0 -0
  66. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-session/Cargo.toml +0 -0
  67. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-session/README.md +0 -0
  68. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-session/examples/session-diff.rs +0 -0
  69. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-session/src/lib.rs +0 -0
  70. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-session/src/unix.rs +0 -0
  71. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-session/tests/behavioral_comparison.rs +0 -0
  72. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-signal/Cargo.toml +0 -0
  73. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-signal/README.md +0 -0
  74. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-signal/examples/signal-diff.rs +0 -0
  75. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-signal/src/handle.rs +0 -0
  76. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-signal/src/lib.rs +0 -0
  77. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-signal/src/unix.rs +0 -0
  78. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-signal/src/windows.rs +0 -0
  79. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-signal/tests/integration.rs +0 -0
  80. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-signal/tests/privileged.rs +0 -0
  81. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-timeout/Cargo.toml +0 -0
  82. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-timeout/README.md +0 -0
  83. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-timeout/examples/timeout-diff.rs +0 -0
  84. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-timeout/src/lib.rs +0 -0
  85. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-timeout/src/managed.rs +0 -0
  86. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-timeout/src/unix.rs +0 -0
  87. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-timeout/src/windows.rs +0 -0
  88. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-timeout/tests/privileged.rs +0 -0
  89. {sysprims-0.5.1 → sysprims-0.5.2}/crates/sysprims-timeout/tests/tree_escape.rs +0 -0
  90. {sysprims-0.5.1 → sysprims-0.5.2}/python/sysprims/__init__.py +0 -0
  91. {sysprims-0.5.1 → sysprims-0.5.2}/python/sysprims/__init__.pyi +0 -0
  92. {sysprims-0.5.1 → sysprims-0.5.2}/python/sysprims/py.typed +0 -0
@@ -13,7 +13,7 @@ members = [
13
13
  ]
14
14
 
15
15
  [workspace.package]
16
- version = "0.5.1"
16
+ version = "0.5.2"
17
17
  edition = "2021"
18
18
  rust-version = "1.88.0"
19
19
  license = "MIT OR Apache-2.0"
@@ -23,16 +23,16 @@ authors = ["3leaps Architecture Council"]
23
23
  publish = false
24
24
 
25
25
  [workspace.dependencies]
26
- sysprims-core = { version = "0.5.1", path = "crates/sysprims-core" }
27
- sysprims-timeout = { version = "0.5.1", path = "crates/sysprims-timeout" }
28
- sysprims-signal = { version = "0.5.1", path = "crates/sysprims-signal" }
29
- sysprims-proc = { version = "0.5.1", path = "crates/sysprims-proc" }
30
- sysprims-evidence = { version = "0.5.1", path = "crates/sysprims-evidence" }
31
- sysprims-session = { version = "0.5.1", path = "crates/sysprims-session" }
26
+ sysprims-core = { version = "0.5.2", path = "crates/sysprims-core" }
27
+ sysprims-timeout = { version = "0.5.2", path = "crates/sysprims-timeout" }
28
+ sysprims-signal = { version = "0.5.2", path = "crates/sysprims-signal" }
29
+ sysprims-proc = { version = "0.5.2", path = "crates/sysprims-proc" }
30
+ sysprims-evidence = { version = "0.5.2", path = "crates/sysprims-evidence" }
31
+ sysprims-session = { version = "0.5.2", path = "crates/sysprims-session" }
32
32
 
33
33
  # Canonical Serialization
34
- canonprims-core = "=0.1.4"
35
- canonprims-json = "=0.1.4"
34
+ canonprims-core = "=0.1.5"
35
+ canonprims-json = "=0.1.5"
36
36
 
37
37
  # Fulmen Ecosystem
38
38
  # NOTE: Pinned to ensure stable semantics across bindings and avoid accidental
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sysprims
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Programming Language :: Python :: Implementation :: CPython
@@ -8,12 +8,6 @@ version = "0.5.1"
8
8
  source = "registry+https://github.com/rust-lang/crates.io-index"
9
9
  checksum = "7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236"
10
10
 
11
- [[package]]
12
- name = "bitflags"
13
- version = "1.3.2"
14
- source = "registry+https://github.com/rust-lang/crates.io-index"
15
- checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
16
-
17
11
  [[package]]
18
12
  name = "bitflags"
19
13
  version = "2.13.2"
@@ -40,9 +34,9 @@ dependencies = [
40
34
 
41
35
  [[package]]
42
36
  name = "canonprims-core"
43
- version = "0.1.4"
37
+ version = "0.1.5"
44
38
  source = "registry+https://github.com/rust-lang/crates.io-index"
45
- checksum = "f3c1d08a41819b76c755be62c778cc9a6da161ae36b9b9a75a9001b8a1e6a47c"
39
+ checksum = "1a85bd869f6796b212a2e424d22cd1bf105d8e95f375ea6d2860e22807f46278"
46
40
  dependencies = [
47
41
  "sha2",
48
42
  "thiserror 2.0.21",
@@ -50,9 +44,9 @@ dependencies = [
50
44
 
51
45
  [[package]]
52
46
  name = "canonprims-json"
53
- version = "0.1.4"
47
+ version = "0.1.5"
54
48
  source = "registry+https://github.com/rust-lang/crates.io-index"
55
- checksum = "45b26e3eabd4aa540a4ea41dab8b09f70667ba7b88970dd86b14ac852b7f25dc"
49
+ checksum = "551ca0ddad91059baf1fcb6593547cf27844eced15e6951447c4c5fd7de9206d"
56
50
  dependencies = [
57
51
  "canonprims-core",
58
52
  "ryu-js",
@@ -91,46 +85,15 @@ dependencies = [
91
85
 
92
86
  [[package]]
93
87
  name = "ctrlc"
94
- version = "3.5.2"
88
+ version = "3.5.3"
95
89
  source = "registry+https://github.com/rust-lang/crates.io-index"
96
- checksum = "e0b1fab2ae45819af2d0731d60f2afe17227ebb1a1538a236da84c93e9a60162"
90
+ checksum = "11247e6c4f83c2b15748f4873805483deaa2bbc855e773817c07a9f987f55c62"
97
91
  dependencies = [
98
92
  "dispatch2",
99
93
  "nix",
100
94
  "windows-sys",
101
95
  ]
102
96
 
103
- [[package]]
104
- name = "defmt"
105
- version = "1.2.0"
106
- source = "registry+https://github.com/rust-lang/crates.io-index"
107
- checksum = "e4a0795ac740cb54d7b3775c9c17345f6aaecf884c01733b39d6017738e0e3e1"
108
- dependencies = [
109
- "bitflags 1.3.2",
110
- "defmt-macros",
111
- ]
112
-
113
- [[package]]
114
- name = "defmt-macros"
115
- version = "1.2.0"
116
- source = "registry+https://github.com/rust-lang/crates.io-index"
117
- checksum = "840bb056bd99c495c9188198a258ab787c79f306d864db3e6e8451442d6d8366"
118
- dependencies = [
119
- "defmt-parser",
120
- "proc-macro2",
121
- "quote",
122
- "syn 3.0.9",
123
- ]
124
-
125
- [[package]]
126
- name = "defmt-parser"
127
- version = "1.1.0"
128
- source = "registry+https://github.com/rust-lang/crates.io-index"
129
- checksum = "71958f69fb2de856c5dd51ac9377e986ca1aa5919f931bf5395a807277f889a0"
130
- dependencies = [
131
- "thiserror 2.0.21",
132
- ]
133
-
134
97
  [[package]]
135
98
  name = "deranged"
136
99
  version = "0.5.9"
@@ -153,7 +116,7 @@ version = "0.3.1"
153
116
  source = "registry+https://github.com/rust-lang/crates.io-index"
154
117
  checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"
155
118
  dependencies = [
156
- "bitflags 2.13.2",
119
+ "bitflags",
157
120
  "block2",
158
121
  "libc",
159
122
  "objc2",
@@ -161,9 +124,9 @@ dependencies = [
161
124
 
162
125
  [[package]]
163
126
  name = "errno"
164
- version = "0.3.14"
127
+ version = "0.3.15"
165
128
  source = "registry+https://github.com/rust-lang/crates.io-index"
166
- checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
129
+ checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776"
167
130
  dependencies = [
168
131
  "libc",
169
132
  "windows-sys",
@@ -197,17 +160,16 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
197
160
 
198
161
  [[package]]
199
162
  name = "itoa"
200
- version = "1.0.18"
163
+ version = "1.0.19"
201
164
  source = "registry+https://github.com/rust-lang/crates.io-index"
202
- checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
165
+ checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
203
166
 
204
167
  [[package]]
205
168
  name = "jiff"
206
- version = "0.2.39"
169
+ version = "0.2.46"
207
170
  source = "registry+https://github.com/rust-lang/crates.io-index"
208
- checksum = "3ac703058abac89e5c39b0b879dce2b6b14a4ba36600c7e7e3d0c60a6883ef3c"
171
+ checksum = "175dc66334db3b9ab9985bf8b61cfed50dc16d20964bb47f9e479adcae984a7f"
209
172
  dependencies = [
210
- "defmt",
211
173
  "jiff-core",
212
174
  "jiff-static",
213
175
  "log",
@@ -218,19 +180,18 @@ dependencies = [
218
180
 
219
181
  [[package]]
220
182
  name = "jiff-core"
221
- version = "0.1.2"
183
+ version = "0.1.8"
222
184
  source = "registry+https://github.com/rust-lang/crates.io-index"
223
- checksum = "aee43309eb53bafb8c36d35d6e444769c8f8e6206a9fbf7546f5db9d7d4a0e93"
185
+ checksum = "e599b80292e597019b8b3e392de3f4bea2959ddfb8c7dff60e035e9e311a2c1b"
224
186
  dependencies = [
225
- "defmt",
226
187
  "log",
227
188
  ]
228
189
 
229
190
  [[package]]
230
191
  name = "jiff-static"
231
- version = "0.2.39"
192
+ version = "0.2.46"
232
193
  source = "registry+https://github.com/rust-lang/crates.io-index"
233
- checksum = "6dc32470c67eb7d0e9ccb74303fa925313dc04cecb1aa048beaa6f391e36a93d"
194
+ checksum = "c7b1af7547d47354bc438d797e3854601bde8f8d185780c5ba4ab27afa54f1ba"
234
195
  dependencies = [
235
196
  "jiff-core",
236
197
  "proc-macro2",
@@ -258,11 +219,11 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
258
219
 
259
220
  [[package]]
260
221
  name = "nix"
261
- version = "0.31.3"
222
+ version = "0.32.0"
262
223
  source = "registry+https://github.com/rust-lang/crates.io-index"
263
- checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d"
224
+ checksum = "77730ed34f01f4990cb2ea67fec715ecebc6fab9a6396cf83c5529b13f581bdc"
264
225
  dependencies = [
265
- "bitflags 2.13.2",
226
+ "bitflags",
266
227
  "cfg-if",
267
228
  "cfg_aliases",
268
229
  "libc",
@@ -367,7 +328,7 @@ dependencies = [
367
328
  "proc-macro2",
368
329
  "pyo3-macros-backend",
369
330
  "quote",
370
- "syn 3.0.9",
331
+ "syn 3.0.10",
371
332
  ]
372
333
 
373
334
  [[package]]
@@ -379,7 +340,7 @@ dependencies = [
379
340
  "heck",
380
341
  "proc-macro2",
381
342
  "quote",
382
- "syn 3.0.9",
343
+ "syn 3.0.10",
383
344
  ]
384
345
 
385
346
  [[package]]
@@ -408,9 +369,9 @@ dependencies = [
408
369
 
409
370
  [[package]]
410
371
  name = "ryu-js"
411
- version = "1.0.3"
372
+ version = "1.0.4"
412
373
  source = "registry+https://github.com/rust-lang/crates.io-index"
413
- checksum = "04d056b875a9d2e6cb9a61d127afee9ac5999b9f87bcb32079d1318e505be714"
374
+ checksum = "1f232fd0249f55adbe7f15bee58bbbd3d40708000b84e6482066d2ba599e08a9"
414
375
 
415
376
  [[package]]
416
377
  name = "serde"
@@ -439,7 +400,7 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
439
400
  dependencies = [
440
401
  "proc-macro2",
441
402
  "quote",
442
- "syn 3.0.9",
403
+ "syn 3.0.10",
443
404
  ]
444
405
 
445
406
  [[package]]
@@ -488,9 +449,9 @@ dependencies = [
488
449
 
489
450
  [[package]]
490
451
  name = "smallvec"
491
- version = "1.16.3"
452
+ version = "1.16.6"
492
453
  source = "registry+https://github.com/rust-lang/crates.io-index"
493
- checksum = "5b3dc8af474f516a851ff4bd12db780f948b9250ad37211e4eec0bccea54e01b"
454
+ checksum = "3244542535d5de959d90ec55d1b5ff0fd2bb7b1310223907d5f11932847f7b59"
494
455
 
495
456
  [[package]]
496
457
  name = "syn"
@@ -505,9 +466,9 @@ dependencies = [
505
466
 
506
467
  [[package]]
507
468
  name = "syn"
508
- version = "3.0.9"
469
+ version = "3.0.10"
509
470
  source = "registry+https://github.com/rust-lang/crates.io-index"
510
- checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
471
+ checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
511
472
  dependencies = [
512
473
  "proc-macro2",
513
474
  "quote",
@@ -516,7 +477,7 @@ dependencies = [
516
477
 
517
478
  [[package]]
518
479
  name = "sysprims-core"
519
- version = "0.5.1"
480
+ version = "0.5.2"
520
481
  dependencies = [
521
482
  "rsfulmen",
522
483
  "thiserror 2.0.21",
@@ -525,7 +486,7 @@ dependencies = [
525
486
 
526
487
  [[package]]
527
488
  name = "sysprims-evidence"
528
- version = "0.5.1"
489
+ version = "0.5.2"
529
490
  dependencies = [
530
491
  "canonprims-core",
531
492
  "canonprims-json",
@@ -537,7 +498,7 @@ dependencies = [
537
498
 
538
499
  [[package]]
539
500
  name = "sysprims-proc"
540
- version = "0.5.1"
501
+ version = "0.5.2"
541
502
  dependencies = [
542
503
  "libc",
543
504
  "serde",
@@ -553,7 +514,7 @@ dependencies = [
553
514
 
554
515
  [[package]]
555
516
  name = "sysprims-py"
556
- version = "0.5.1"
517
+ version = "0.5.2"
557
518
  dependencies = [
558
519
  "pyo3",
559
520
  "serde",
@@ -568,7 +529,7 @@ dependencies = [
568
529
 
569
530
  [[package]]
570
531
  name = "sysprims-recurrence"
571
- version = "0.5.1"
532
+ version = "0.5.2"
572
533
  dependencies = [
573
534
  "jiff",
574
535
  "serde",
@@ -578,7 +539,7 @@ dependencies = [
578
539
 
579
540
  [[package]]
580
541
  name = "sysprims-session"
581
- version = "0.5.1"
542
+ version = "0.5.2"
582
543
  dependencies = [
583
544
  "libc",
584
545
  "sysprims-core",
@@ -586,7 +547,7 @@ dependencies = [
586
547
 
587
548
  [[package]]
588
549
  name = "sysprims-signal"
589
- version = "0.5.1"
550
+ version = "0.5.2"
590
551
  dependencies = [
591
552
  "libc",
592
553
  "rsfulmen",
@@ -596,7 +557,7 @@ dependencies = [
596
557
 
597
558
  [[package]]
598
559
  name = "sysprims-timeout"
599
- version = "0.5.1"
560
+ version = "0.5.2"
600
561
  dependencies = [
601
562
  "libc",
602
563
  "serde",
@@ -609,9 +570,9 @@ dependencies = [
609
570
 
610
571
  [[package]]
611
572
  name = "target-lexicon"
612
- version = "0.13.5"
573
+ version = "0.13.6"
613
574
  source = "registry+https://github.com/rust-lang/crates.io-index"
614
- checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
575
+ checksum = "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da"
615
576
 
616
577
  [[package]]
617
578
  name = "thiserror"
@@ -650,7 +611,7 @@ checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
650
611
  dependencies = [
651
612
  "proc-macro2",
652
613
  "quote",
653
- "syn 3.0.9",
614
+ "syn 3.0.10",
654
615
  ]
655
616
 
656
617
  [[package]]
@@ -3,7 +3,7 @@
3
3
  # the release-source checks see only crates/.
4
4
  [package]
5
5
  name = "sysprims-py"
6
- version = "0.5.1"
6
+ version = "0.5.2"
7
7
  edition = "2021"
8
8
  rust-version = "1.88.0"
9
9
  description = "CPython abi3 extension module for sysprims"
@@ -14,14 +14,19 @@ use serde_json::{json, Value};
14
14
  use sysprims_evidence::{
15
15
  admit_and_validate_report, admit_live_observation, admit_report_bytes,
16
16
  bind_native_observation_report, canonical_sha256_value, check_import_collisions,
17
- compare_native_observations_json, derive_arguments_digest, derive_executable_digest,
18
- derive_linux_namespace_context_digest, derive_linux_security_context_digest, json_equal,
19
- linux_id_is_unambiguously_mapped, necessary_conditions, process_session_fit,
20
- project_host_scope_urn, project_to_local_process_session_process_json,
21
- validate_observation_shape, validate_provenance_dag, validate_report_shape,
22
- validate_session_bundle_shape, ProfileRef, LOCAL_PROCESS_SESSION_PROFILE_ID,
23
- LOCAL_PROCESS_SESSION_PROFILE_REVISION, NATIVE_PROCESS_OBSERVATION_PROFILE_ID,
24
- NATIVE_PROCESS_OBSERVATION_PROFILE_REVISION,
17
+ compare_host_identifiers, compare_native_observations_json, derive_arguments_digest,
18
+ derive_executable_digest, derive_host_composite, derive_host_declaration,
19
+ derive_host_source_token, derive_linux_namespace_context_digest,
20
+ derive_linux_security_context_digest, derive_process_declaration, derive_process_identifier,
21
+ json_equal, linux_id_is_unambiguously_mapped, necessary_conditions, process_session_fit,
22
+ project_host_scope_urn, project_to_local_process_session_process_json, to_uuid_v8,
23
+ validate_host_source_value, validate_namespace, validate_observation_shape,
24
+ validate_provenance_dag, validate_report_shape, validate_session_bundle_shape,
25
+ HostComparePolicy, HostCompareSide, HostDeclarationProperties, HostScopeDescriptor, HostSource,
26
+ ProcessDeclarationProperties, ProcessIdentifierInput, ProfileRef, SourceFileKind,
27
+ LOCAL_PROCESS_SESSION_PROFILE_ID, LOCAL_PROCESS_SESSION_PROFILE_REVISION,
28
+ NATIVE_PROCESS_OBSERVATION_PROFILE_ID, NATIVE_PROCESS_OBSERVATION_PROFILE_REVISION,
29
+ START_IDENTITY_PROFILE_REVISION,
25
30
  };
26
31
 
27
32
  fn emit_line(record: &Value) {
@@ -116,6 +121,7 @@ fn main() {
116
121
  .unwrap_or_else(|_| manifest_dir.join("tests/parity-cases.json"));
117
122
 
118
123
  run_all(&corpus_dir, &parity_path);
124
+ run_v0215_identifier_vectors(&corpus_dir);
119
125
  }
120
126
 
121
127
  fn run_all(corpus_dir: &Path, parity_path: &Path) {
@@ -742,3 +748,162 @@ fn run_extra_derivation_pack(path: &Path) {
742
748
  }
743
749
  }
744
750
  }
751
+
752
+ fn run_v0215_identifier_vectors(corpus_dir: &Path) {
753
+ // 10. Crucible v0.2.15 host/process identifiers, UUIDv8, declarations, and comparator
754
+ let profiles_dir = corpus_dir.join("profiles");
755
+ let host_vecs: Value = serde_json::from_slice(
756
+ &fs::read(profiles_dir.join("host-identifier/vectors.json")).unwrap(),
757
+ )
758
+ .unwrap();
759
+ for v in host_vecs["derivation_vectors"].as_array().unwrap() {
760
+ let id = v["id"].as_str().unwrap();
761
+ let got = derive_host_source_token(
762
+ v["namespace"].as_str().unwrap(),
763
+ v["derivation_id"].as_str().unwrap(),
764
+ v["source"].as_str().unwrap(),
765
+ v["canonical_value"].as_str().unwrap(),
766
+ )
767
+ .unwrap();
768
+ emit_line(&json!({ "suite": "host-id-derive", "id": id, "outcome": got }));
769
+ }
770
+ for v in host_vecs["composite_vectors"].as_array().unwrap() {
771
+ let id = v["id"].as_str().unwrap();
772
+ let mut obs = BTreeMap::new();
773
+ for (k, val) in v["observed_sources"].as_object().unwrap() {
774
+ obs.insert(
775
+ HostSource::from_slug(k).unwrap(),
776
+ val.as_str().unwrap().to_string(),
777
+ );
778
+ }
779
+ let out = match derive_host_composite(
780
+ v["namespace"].as_str().unwrap(),
781
+ v["platform_family"].as_str().unwrap(),
782
+ &obs,
783
+ ) {
784
+ Ok(ident) => format!(
785
+ "{}|{}|{}",
786
+ ident.value, ident.stability, ident.clone_behavior
787
+ ),
788
+ Err(e) => e.as_str().to_string(),
789
+ };
790
+ emit_line(&json!({ "suite": "host-id-composite", "id": id, "outcome": out }));
791
+ }
792
+ for v in host_vecs["uuid_v8_vectors"].as_array().unwrap() {
793
+ let id = v["id"].as_str().unwrap();
794
+ let got = to_uuid_v8(v["sha256_value"].as_str().unwrap()).unwrap();
795
+ emit_line(&json!({ "suite": "host-id-uuidv8", "id": id, "outcome": got }));
796
+ }
797
+ for v in host_vecs["source_validation_vectors"].as_array().unwrap() {
798
+ let id = v["id"].as_str().unwrap();
799
+ let src = HostSource::from_slug(v["source"].as_str().unwrap()).unwrap();
800
+ let fk = SourceFileKind::from_slug(v["file_kind"].as_str().unwrap());
801
+ let out = match validate_host_source_value(src, v["raw"].as_str().unwrap(), fk) {
802
+ Ok(c) => format!("ok:{c}"),
803
+ Err(e) => format!("err:{}", e.as_str()),
804
+ };
805
+ emit_line(&json!({ "suite": "host-id-source", "id": id, "outcome": out }));
806
+ }
807
+ for v in host_vecs["namespace_validation_vectors"]
808
+ .as_array()
809
+ .unwrap()
810
+ {
811
+ let id = v["id"].as_str().unwrap();
812
+ let out = match validate_namespace(v["namespace"].as_str().unwrap()) {
813
+ Ok(()) => "ok".to_string(),
814
+ Err(e) => e.as_str().to_string(),
815
+ };
816
+ emit_line(&json!({ "suite": "host-id-namespace", "id": id, "outcome": out }));
817
+ }
818
+
819
+ let host_cmp: Value = serde_json::from_slice(
820
+ &fs::read(profiles_dir.join("host-identifier/comparison-cases.json")).unwrap(),
821
+ )
822
+ .unwrap();
823
+ for c in host_cmp["cases"].as_array().unwrap() {
824
+ let id = c["id"].as_str().unwrap();
825
+ let b: HostCompareSide = serde_json::from_value(c["baseline"].clone()).unwrap();
826
+ let cand: HostCompareSide = serde_json::from_value(c["candidate"].clone()).unwrap();
827
+ let pol: HostComparePolicy = serde_json::from_value(c["policy"].clone()).unwrap();
828
+ let v = compare_host_identifiers(&b, &cand, &pol);
829
+ emit_line(&json!({ "suite": "host-compare", "id": id, "outcome": v.qualified_slug() }));
830
+ }
831
+
832
+ let host_decl: Value = serde_json::from_slice(
833
+ &fs::read(profiles_dir.join("host-declaration/vectors.json")).unwrap(),
834
+ )
835
+ .unwrap();
836
+ for v in host_decl["derivation_vectors"].as_array().unwrap() {
837
+ let id = v["id"].as_str().unwrap();
838
+ let props: HostDeclarationProperties =
839
+ serde_json::from_value(v["declared_properties"].clone()).unwrap();
840
+ let out = match derive_host_declaration(v["namespace"].as_str().unwrap(), &props) {
841
+ Ok((ident, _)) => ident.value,
842
+ Err(e) => e.as_str().to_string(),
843
+ };
844
+ emit_line(&json!({ "suite": "host-declaration", "id": id, "outcome": out }));
845
+ }
846
+
847
+ let proc_id: Value = serde_json::from_slice(
848
+ &fs::read(profiles_dir.join("process-identifier/vectors.json")).unwrap(),
849
+ )
850
+ .unwrap();
851
+ for v in proc_id["derivation_vectors"].as_array().unwrap() {
852
+ let id = v["id"].as_str().unwrap();
853
+ let pf = v["platform_family"].as_str().unwrap();
854
+ let host_scope: HostScopeDescriptor =
855
+ serde_json::from_value(v["host_scope"].clone()).unwrap();
856
+ let (pid_ns_status, pid_ns_val) = if pf == "macos" || pf == "windows" {
857
+ ("unsupported".to_string(), None)
858
+ } else {
859
+ (
860
+ "observed".to_string(),
861
+ Some(v["pid_numbering_namespace"].as_str().unwrap().to_string()),
862
+ )
863
+ };
864
+ let input = ProcessIdentifierInput {
865
+ platform_family: pf.to_string(),
866
+ namespace: v["namespace"].as_str().unwrap().to_string(),
867
+ derivation_id: v["derivation_id"].as_str().unwrap().to_string(),
868
+ host_scope,
869
+ boot_id_status: "observed".to_string(),
870
+ boot_id: Some(v["boot_id"].as_str().unwrap().to_string()),
871
+ pid_numbering_namespace_status: pid_ns_status,
872
+ pid_numbering_namespace: pid_ns_val,
873
+ pid: v["pid"].as_str().unwrap().to_string(),
874
+ observer_time_namespace_status: v["observer_time_namespace_status"]
875
+ .as_str()
876
+ .unwrap()
877
+ .to_string(),
878
+ observer_time_namespace_value: v["observer_time_namespace_value"]
879
+ .as_str()
880
+ .map(ToString::to_string),
881
+ start_identity_status: "observed".to_string(),
882
+ start_identity_profile: ProfileRef::new(
883
+ v["start_identity_profile_id"].as_str().unwrap(),
884
+ START_IDENTITY_PROFILE_REVISION,
885
+ ),
886
+ raw_start_ticks: Some(v["raw_start_ticks"].as_str().unwrap().to_string()),
887
+ };
888
+ let out = match derive_process_identifier(&input) {
889
+ Ok(ident) => format!("{}|{}", ident.value, ident.projected_start_identity),
890
+ Err(e) => e.as_str().to_string(),
891
+ };
892
+ emit_line(&json!({ "suite": "process-identifier", "id": id, "outcome": out }));
893
+ }
894
+
895
+ let proc_decl: Value = serde_json::from_slice(
896
+ &fs::read(profiles_dir.join("process-declaration/vectors.json")).unwrap(),
897
+ )
898
+ .unwrap();
899
+ for v in proc_decl["derivation_vectors"].as_array().unwrap() {
900
+ let id = v["id"].as_str().unwrap();
901
+ let props: ProcessDeclarationProperties =
902
+ serde_json::from_value(v["declared_properties"].clone()).unwrap();
903
+ let out = match derive_process_declaration(v["namespace"].as_str().unwrap(), &props) {
904
+ Ok((ident, _)) => ident.value,
905
+ Err(e) => e.as_str().to_string(),
906
+ };
907
+ emit_line(&json!({ "suite": "process-declaration", "id": id, "outcome": out }));
908
+ }
909
+ }