omda-tools 0.1.0__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 (57) hide show
  1. omda_tools-0.1.0/PKG-INFO +26 -0
  2. omda_tools-0.1.0/README.md +12 -0
  3. omda_tools-0.1.0/omda_tools/__init__.py +3 -0
  4. omda_tools-0.1.0/omda_tools/_data/examples/answer.extracted.json +9 -0
  5. omda_tools-0.1.0/omda_tools/_data/examples/answer.generated-ungrounded.json +9 -0
  6. omda_tools-0.1.0/omda_tools/_data/examples/answer.uncited-unlabelled.invalid.json +7 -0
  7. omda_tools-0.1.0/omda_tools/_data/examples/assertion.derived-surname.json +19 -0
  8. omda_tools-0.1.0/omda_tools/_data/examples/assertion.fuzzy-candidate.json +42 -0
  9. omda_tools-0.1.0/omda_tools/_data/examples/assertion.fuzzy-verified.invalid.json +42 -0
  10. omda_tools-0.1.0/omda_tools/_data/examples/assertion.image-with-value.invalid.json +32 -0
  11. omda_tools-0.1.0/omda_tools/_data/examples/assertion.missing-evidence.invalid.json +45 -0
  12. omda_tools-0.1.0/omda_tools/_data/examples/assertion.passport-number.json +56 -0
  13. omda_tools-0.1.0/omda_tools/_data/examples/assertion.photo-image.json +31 -0
  14. omda_tools-0.1.0/omda_tools/_data/examples/assertion.remote-unlabelled.invalid.json +56 -0
  15. omda_tools-0.1.0/omda_tools/_data/examples/assertion.remote.json +59 -0
  16. omda_tools-0.1.0/omda_tools/_data/examples/conformance-manifest.example-runtime.json +57 -0
  17. omda_tools-0.1.0/omda_tools/_data/examples/conformance-manifest.plus-without-gaps.invalid.json +46 -0
  18. omda_tools-0.1.0/omda_tools/_data/examples/entity.passport.json +9 -0
  19. omda_tools-0.1.0/omda_tools/_data/examples/evidence-credential.hotel.json +65 -0
  20. omda_tools-0.1.0/omda_tools/_data/examples/evidence-credential.leaks-quote.invalid.json +66 -0
  21. omda_tools-0.1.0/omda_tools/_data/examples/evidence-credential.rejected-status.invalid.json +65 -0
  22. omda_tools-0.1.0/omda_tools/_data/examples/no-match.passport.json +8 -0
  23. omda_tools-0.1.0/omda_tools/_data/examples/provenance.bad-channel.invalid.json +32 -0
  24. omda_tools-0.1.0/omda_tools/_data/examples/provenance.camera.json +32 -0
  25. omda_tools-0.1.0/omda_tools/_data/examples/query-plan.expiry.json +16 -0
  26. omda_tools-0.1.0/omda_tools/_data/examples/relationship.renewal.json +10 -0
  27. omda_tools-0.1.0/omda_tools/_data/examples/segment.passport.json +13 -0
  28. omda_tools-0.1.0/omda_tools/_data/examples/skill-manifest.action.invalid.json +21 -0
  29. omda_tools-0.1.0/omda_tools/_data/examples/skill-manifest.passport-expiry.json +22 -0
  30. omda_tools-0.1.0/omda_tools/_data/examples/slot-descriptor.extraction.json +10 -0
  31. omda_tools-0.1.0/omda_tools/_data/registry/checks.json +96 -0
  32. omda_tools-0.1.0/omda_tools/_data/registry/models.json +12 -0
  33. omda_tools-0.1.0/omda_tools/_data/registry/profiles/_template.json +20 -0
  34. omda_tools-0.1.0/omda_tools/_data/registry/profiles/identity.json +101 -0
  35. omda_tools-0.1.0/omda_tools/_data/schemas/v0.1/answer.schema.json +53 -0
  36. omda_tools-0.1.0/omda_tools/_data/schemas/v0.1/assertion.schema.json +117 -0
  37. omda_tools-0.1.0/omda_tools/_data/schemas/v0.1/common.schema.json +66 -0
  38. omda_tools-0.1.0/omda_tools/_data/schemas/v0.1/conformance-manifest.schema.json +72 -0
  39. omda_tools-0.1.0/omda_tools/_data/schemas/v0.1/evidence-credential.schema.json +95 -0
  40. omda_tools-0.1.0/omda_tools/_data/schemas/v0.1/identity.schema.json +69 -0
  41. omda_tools-0.1.0/omda_tools/_data/schemas/v0.1/profile.schema.json +56 -0
  42. omda_tools-0.1.0/omda_tools/_data/schemas/v0.1/provenance.schema.json +60 -0
  43. omda_tools-0.1.0/omda_tools/_data/schemas/v0.1/query-plan.schema.json +42 -0
  44. omda_tools-0.1.0/omda_tools/_data/schemas/v0.1/registry.schema.json +69 -0
  45. omda_tools-0.1.0/omda_tools/_data/schemas/v0.1/skill-manifest.schema.json +44 -0
  46. omda_tools-0.1.0/omda_tools/_data/schemas/v0.1/slot-descriptor.schema.json +18 -0
  47. omda_tools-0.1.0/omda_tools/checks.py +219 -0
  48. omda_tools-0.1.0/omda_tools/validate.py +108 -0
  49. omda_tools-0.1.0/omda_tools.egg-info/PKG-INFO +26 -0
  50. omda_tools-0.1.0/omda_tools.egg-info/SOURCES.txt +55 -0
  51. omda_tools-0.1.0/omda_tools.egg-info/dependency_links.txt +1 -0
  52. omda_tools-0.1.0/omda_tools.egg-info/entry_points.txt +2 -0
  53. omda_tools-0.1.0/omda_tools.egg-info/requires.txt +5 -0
  54. omda_tools-0.1.0/omda_tools.egg-info/top_level.txt +1 -0
  55. omda_tools-0.1.0/pyproject.toml +29 -0
  56. omda_tools-0.1.0/setup.cfg +4 -0
  57. omda_tools-0.1.0/tests/test_omda.py +83 -0
@@ -0,0 +1,26 @@
1
+ Metadata-Version: 2.4
2
+ Name: omda-tools
3
+ Version: 0.1.0
4
+ Summary: Reference checks and schema validator for the Open Mobile Document Agent (OMDA) specification
5
+ Author: Mallikarjunayya Hiremath Sangamesh
6
+ License-Expression: Apache-2.0
7
+ Keywords: omda,document-ai,on-device,verifiable-credentials,mcp
8
+ Requires-Python: >=3.10
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: jsonschema>=4.18
11
+ Requires-Dist: referencing>=0.30
12
+ Provides-Extra: test
13
+ Requires-Dist: pytest>=8; extra == "test"
14
+
15
+ # omda-tools
16
+
17
+ Reference checks and schema validator for the [OMDA specification](../spec/omda-v0.1.md).
18
+
19
+ ```bash
20
+ pip install -e ".[test]"
21
+ omda-validate --all-examples
22
+ omda-validate assertion file.json
23
+ pytest
24
+ ```
25
+
26
+ `omda_tools.checks` implements the core check registry: Luhn, Verhoeff, ISO 7064 mod 97, ICAO 9303 TD3 MRZ (parse + all check digits), MRZ-vs-printed cross check, issue-before-expiry, ISO 3166 alpha-3 format.
@@ -0,0 +1,12 @@
1
+ # omda-tools
2
+
3
+ Reference checks and schema validator for the [OMDA specification](../spec/omda-v0.1.md).
4
+
5
+ ```bash
6
+ pip install -e ".[test]"
7
+ omda-validate --all-examples
8
+ omda-validate assertion file.json
9
+ pytest
10
+ ```
11
+
12
+ `omda_tools.checks` implements the core check registry: Luhn, Verhoeff, ISO 7064 mod 97, ICAO 9303 TD3 MRZ (parse + all check digits), MRZ-vs-printed cross check, issue-before-expiry, ISO 3166 alpha-3 format.
@@ -0,0 +1,3 @@
1
+ """Reference tools for the Open Mobile Document Agent (OMDA) specification v0.1."""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1,9 @@
1
+ {
2
+ "kind": "extracted",
3
+ "value": "2012-04-15",
4
+ "citations": [
5
+ "as_01JDXK7Q8M2N4P6R8EXP"
6
+ ],
7
+ "status": "verified",
8
+ "nonconformance": []
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "kind": "generated",
3
+ "value": "Your passport is probably due for renewal soon.",
4
+ "citations": [],
5
+ "status": "ungrounded",
6
+ "nonconformance": [
7
+ "no_citation"
8
+ ]
9
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "kind": "generated",
3
+ "value": "x",
4
+ "citations": [],
5
+ "status": "verified",
6
+ "nonconformance": []
7
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "id": "as_01JDXK7Q8M2N4P6R8SUR",
3
+ "doc": {
4
+ "super_id": "sd_01JDXK7Q8M2N4P6R8T0V",
5
+ "segment_id": "sg_01JDXK7Q8M2N4P6R8T1A"
6
+ },
7
+ "field": "identity.passport.surname",
8
+ "value": "ERIKSSON",
9
+ "type": "name",
10
+ "derived_from": [
11
+ "as_01JDXK7Q8M2N4P6R8NAM"
12
+ ],
13
+ "method": {
14
+ "kind": "derived"
15
+ },
16
+ "status": "unverified",
17
+ "created_at": "2026-11-26T08:52:01Z",
18
+ "nonconformance": []
19
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "id": "as_01JDXK7Q8M2N4P6R8FZY",
3
+ "doc": {
4
+ "super_id": "sd_01JDXK7Q8M2N4P6R8T0V",
5
+ "segment_id": "sg_01JDXK7Q8M2N4P6R8T1A"
6
+ },
7
+ "field": "identity.passport.place_of_birth",
8
+ "value": "ZENITH",
9
+ "type": "string",
10
+ "group": null,
11
+ "evidence": {
12
+ "quote": "L898902C3",
13
+ "page": 1,
14
+ "region": {
15
+ "x": 0.61,
16
+ "y": 0.18,
17
+ "w": 0.22,
18
+ "h": 0.03
19
+ },
20
+ "page_hash": "sha256:4a715ec13f624275bd974bbfde37a3da6cf0e49d28ce3615412ad66d2d673846"
21
+ },
22
+ "method": {
23
+ "kind": "model",
24
+ "slot": "extraction",
25
+ "model": "qwen3-1.7b",
26
+ "quant": "q8_0",
27
+ "version": "2025-04",
28
+ "location": "device"
29
+ },
30
+ "checks": [],
31
+ "status": "candidate",
32
+ "confidence": 0.94,
33
+ "supersedes": null,
34
+ "created_at": "2026-11-26T08:52:00Z",
35
+ "nonconformance": [
36
+ "fuzzy_match"
37
+ ],
38
+ "fuzzy_match": {
39
+ "score": 0.81,
40
+ "method": "matcher:ocr_confusion"
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "id": "as_01JDXK7Q8M2N4P6R8FZY",
3
+ "doc": {
4
+ "super_id": "sd_01JDXK7Q8M2N4P6R8T0V",
5
+ "segment_id": "sg_01JDXK7Q8M2N4P6R8T1A"
6
+ },
7
+ "field": "identity.passport.place_of_birth",
8
+ "value": "ZENITH",
9
+ "type": "string",
10
+ "group": null,
11
+ "evidence": {
12
+ "quote": "L898902C3",
13
+ "page": 1,
14
+ "region": {
15
+ "x": 0.61,
16
+ "y": 0.18,
17
+ "w": 0.22,
18
+ "h": 0.03
19
+ },
20
+ "page_hash": "sha256:4a715ec13f624275bd974bbfde37a3da6cf0e49d28ce3615412ad66d2d673846"
21
+ },
22
+ "method": {
23
+ "kind": "model",
24
+ "slot": "extraction",
25
+ "model": "qwen3-1.7b",
26
+ "quant": "q8_0",
27
+ "version": "2025-04",
28
+ "location": "device"
29
+ },
30
+ "checks": [],
31
+ "status": "verified",
32
+ "confidence": 0.94,
33
+ "supersedes": null,
34
+ "created_at": "2026-11-26T08:52:00Z",
35
+ "nonconformance": [
36
+ "fuzzy_match"
37
+ ],
38
+ "fuzzy_match": {
39
+ "score": 0.81,
40
+ "method": "matcher:ocr_confusion"
41
+ }
42
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "id": "as_01JDXK7Q8M2N4P6R8PHO",
3
+ "doc": {
4
+ "super_id": "sd_01JDXK7Q8M2N4P6R8T0V",
5
+ "segment_id": "sg_01JDXK7Q8M2N4P6R8T1A"
6
+ },
7
+ "field": "identity.passport.photo",
8
+ "type": "image",
9
+ "evidence": {
10
+ "quote": "",
11
+ "page": 1,
12
+ "region": {
13
+ "x": 0.05,
14
+ "y": 0.2,
15
+ "w": 0.25,
16
+ "h": 0.35
17
+ },
18
+ "page_hash": "sha256:4a715ec13f624275bd974bbfde37a3da6cf0e49d28ce3615412ad66d2d673846"
19
+ },
20
+ "method": {
21
+ "kind": "model",
22
+ "slot": "layout",
23
+ "model": "granite-docling-258m",
24
+ "quant": "q8_0",
25
+ "version": "2025-04",
26
+ "location": "device"
27
+ },
28
+ "status": "unverified",
29
+ "created_at": "2026-11-26T08:52:02Z",
30
+ "nonconformance": [],
31
+ "value": "base64..."
32
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "id": "as_01JDXK7Q8M2N4P6R8NUM",
3
+ "doc": {
4
+ "super_id": "sd_01JDXK7Q8M2N4P6R8T0V",
5
+ "segment_id": "sg_01JDXK7Q8M2N4P6R8T1A"
6
+ },
7
+ "field": "identity.passport.number",
8
+ "value": "L898902C3",
9
+ "type": "string",
10
+ "group": null,
11
+ "method": {
12
+ "kind": "model",
13
+ "slot": "extraction",
14
+ "model": "qwen3-1.7b",
15
+ "quant": "q8_0",
16
+ "version": "2025-04",
17
+ "location": "device"
18
+ },
19
+ "checks": [
20
+ {
21
+ "id": "icao9303.mrz",
22
+ "version": "1",
23
+ "kind": "structure",
24
+ "inputs": [
25
+ "as_01JDXK7Q8M2N4P6R8MRZ"
26
+ ],
27
+ "result": "pass"
28
+ },
29
+ {
30
+ "id": "cross.mrz_number",
31
+ "version": "1",
32
+ "kind": "cross_field",
33
+ "inputs": [
34
+ "as_01JDXK7Q8M2N4P6R8MRZ",
35
+ "as_01JDXK7Q8M2N4P6R8NUM"
36
+ ],
37
+ "result": "pass"
38
+ }
39
+ ],
40
+ "status": "verified",
41
+ "confidence": 0.94,
42
+ "supersedes": null,
43
+ "created_at": "2026-11-26T08:52:00Z",
44
+ "nonconformance": []
45
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "id": "as_01JDXK7Q8M2N4P6R8NUM",
3
+ "doc": {
4
+ "super_id": "sd_01JDXK7Q8M2N4P6R8T0V",
5
+ "segment_id": "sg_01JDXK7Q8M2N4P6R8T1A"
6
+ },
7
+ "field": "identity.passport.number",
8
+ "value": "L898902C3",
9
+ "type": "string",
10
+ "group": null,
11
+ "evidence": {
12
+ "quote": "L898902C3",
13
+ "page": 1,
14
+ "region": {
15
+ "x": 0.61,
16
+ "y": 0.18,
17
+ "w": 0.22,
18
+ "h": 0.03
19
+ },
20
+ "page_hash": "sha256:4a715ec13f624275bd974bbfde37a3da6cf0e49d28ce3615412ad66d2d673846"
21
+ },
22
+ "method": {
23
+ "kind": "model",
24
+ "slot": "extraction",
25
+ "model": "qwen3-1.7b",
26
+ "quant": "q8_0",
27
+ "version": "2025-04",
28
+ "location": "device"
29
+ },
30
+ "checks": [
31
+ {
32
+ "id": "icao9303.mrz",
33
+ "version": "1",
34
+ "kind": "structure",
35
+ "inputs": [
36
+ "as_01JDXK7Q8M2N4P6R8MRZ"
37
+ ],
38
+ "result": "pass"
39
+ },
40
+ {
41
+ "id": "cross.mrz_number",
42
+ "version": "1",
43
+ "kind": "cross_field",
44
+ "inputs": [
45
+ "as_01JDXK7Q8M2N4P6R8MRZ",
46
+ "as_01JDXK7Q8M2N4P6R8NUM"
47
+ ],
48
+ "result": "pass"
49
+ }
50
+ ],
51
+ "status": "verified",
52
+ "confidence": 0.94,
53
+ "supersedes": null,
54
+ "created_at": "2026-11-26T08:52:00Z",
55
+ "nonconformance": []
56
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "id": "as_01JDXK7Q8M2N4P6R8PHO",
3
+ "doc": {
4
+ "super_id": "sd_01JDXK7Q8M2N4P6R8T0V",
5
+ "segment_id": "sg_01JDXK7Q8M2N4P6R8T1A"
6
+ },
7
+ "field": "identity.passport.photo",
8
+ "type": "image",
9
+ "evidence": {
10
+ "quote": "",
11
+ "page": 1,
12
+ "region": {
13
+ "x": 0.05,
14
+ "y": 0.2,
15
+ "w": 0.25,
16
+ "h": 0.35
17
+ },
18
+ "page_hash": "sha256:4a715ec13f624275bd974bbfde37a3da6cf0e49d28ce3615412ad66d2d673846"
19
+ },
20
+ "method": {
21
+ "kind": "model",
22
+ "slot": "layout",
23
+ "model": "granite-docling-258m",
24
+ "quant": "q8_0",
25
+ "version": "2025-04",
26
+ "location": "device"
27
+ },
28
+ "status": "unverified",
29
+ "created_at": "2026-11-26T08:52:02Z",
30
+ "nonconformance": []
31
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "id": "as_01JDXK7Q8M2N4P6R8REM",
3
+ "doc": {
4
+ "super_id": "sd_01JDXK7Q8M2N4P6R8T0V",
5
+ "segment_id": "sg_01JDXK7Q8M2N4P6R8T1A"
6
+ },
7
+ "field": "identity.passport.number",
8
+ "value": "L898902C3",
9
+ "type": "string",
10
+ "group": null,
11
+ "evidence": {
12
+ "quote": "L898902C3",
13
+ "page": 1,
14
+ "region": {
15
+ "x": 0.61,
16
+ "y": 0.18,
17
+ "w": 0.22,
18
+ "h": 0.03
19
+ },
20
+ "page_hash": "sha256:4a715ec13f624275bd974bbfde37a3da6cf0e49d28ce3615412ad66d2d673846"
21
+ },
22
+ "method": {
23
+ "kind": "model",
24
+ "slot": "extraction",
25
+ "model": "cloud-vision-x",
26
+ "quant": "q8_0",
27
+ "version": "2025-04",
28
+ "location": "remote"
29
+ },
30
+ "checks": [
31
+ {
32
+ "id": "icao9303.mrz",
33
+ "version": "1",
34
+ "kind": "structure",
35
+ "inputs": [
36
+ "as_01JDXK7Q8M2N4P6R8MRZ"
37
+ ],
38
+ "result": "pass"
39
+ },
40
+ {
41
+ "id": "cross.mrz_number",
42
+ "version": "1",
43
+ "kind": "cross_field",
44
+ "inputs": [
45
+ "as_01JDXK7Q8M2N4P6R8MRZ",
46
+ "as_01JDXK7Q8M2N4P6R8NUM"
47
+ ],
48
+ "result": "pass"
49
+ }
50
+ ],
51
+ "status": "verified",
52
+ "confidence": 0.94,
53
+ "supersedes": null,
54
+ "created_at": "2026-11-26T08:52:00Z",
55
+ "nonconformance": []
56
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "id": "as_01JDXK7Q8M2N4P6R8REM",
3
+ "doc": {
4
+ "super_id": "sd_01JDXK7Q8M2N4P6R8T0V",
5
+ "segment_id": "sg_01JDXK7Q8M2N4P6R8T1A"
6
+ },
7
+ "field": "identity.passport.number",
8
+ "value": "L898902C3",
9
+ "type": "string",
10
+ "group": null,
11
+ "evidence": {
12
+ "quote": "L898902C3",
13
+ "page": 1,
14
+ "region": {
15
+ "x": 0.61,
16
+ "y": 0.18,
17
+ "w": 0.22,
18
+ "h": 0.03
19
+ },
20
+ "page_hash": "sha256:4a715ec13f624275bd974bbfde37a3da6cf0e49d28ce3615412ad66d2d673846"
21
+ },
22
+ "method": {
23
+ "kind": "model",
24
+ "slot": "extraction",
25
+ "model": "cloud-vision-x",
26
+ "quant": "q8_0",
27
+ "version": "2025-04",
28
+ "location": "remote"
29
+ },
30
+ "checks": [
31
+ {
32
+ "id": "icao9303.mrz",
33
+ "version": "1",
34
+ "kind": "structure",
35
+ "inputs": [
36
+ "as_01JDXK7Q8M2N4P6R8MRZ"
37
+ ],
38
+ "result": "pass"
39
+ },
40
+ {
41
+ "id": "cross.mrz_number",
42
+ "version": "1",
43
+ "kind": "cross_field",
44
+ "inputs": [
45
+ "as_01JDXK7Q8M2N4P6R8MRZ",
46
+ "as_01JDXK7Q8M2N4P6R8NUM"
47
+ ],
48
+ "result": "pass"
49
+ }
50
+ ],
51
+ "status": "verified",
52
+ "confidence": 0.94,
53
+ "supersedes": null,
54
+ "created_at": "2026-11-26T08:52:00Z",
55
+ "nonconformance": [
56
+ "off_device_processing",
57
+ "model_not_allowlisted"
58
+ ]
59
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "runtime": {
3
+ "name": "Example Runtime",
4
+ "version": "0.9.0",
5
+ "publisher": "Example Runtime",
6
+ "platforms": [
7
+ "android"
8
+ ]
9
+ },
10
+ "spec_version": "0.1",
11
+ "level": "L2+",
12
+ "tier": "T2",
13
+ "sections": {
14
+ "s3": "met",
15
+ "s4": "met",
16
+ "s5": "met",
17
+ "s6": "partial",
18
+ "s9": "not_met",
19
+ "s11": "not_met"
20
+ },
21
+ "gaps": [
22
+ {
23
+ "section": "s6",
24
+ "code": "checksum_unavailable",
25
+ "description": "verhoeff not yet wired for national_id:in"
26
+ },
27
+ {
28
+ "section": "s9",
29
+ "code": "not_implemented",
30
+ "description": "MCP binding pending"
31
+ }
32
+ ],
33
+ "slots": [
34
+ {
35
+ "slot": "extraction",
36
+ "model": "qwen3-1.7b",
37
+ "version": "2025-04",
38
+ "quant": "q8_0",
39
+ "size_mb": 1830,
40
+ "provider": "bundled",
41
+ "location": "device",
42
+ "license": "Apache-2.0"
43
+ }
44
+ ],
45
+ "metrics": {
46
+ "identity.passport.clean": {
47
+ "field_accuracy": 0.97,
48
+ "recall": 0.95,
49
+ "fixtures": 40
50
+ }
51
+ },
52
+ "report": {
53
+ "suite_version": "0.1.0",
54
+ "run_at": "2026-11-26T11:00:00Z",
55
+ "signature": "..."
56
+ }
57
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "runtime": {
3
+ "name": "Example Runtime",
4
+ "version": "0.9.0",
5
+ "publisher": "Example Runtime",
6
+ "platforms": [
7
+ "android"
8
+ ]
9
+ },
10
+ "spec_version": "0.1",
11
+ "level": "L2+",
12
+ "tier": "T2",
13
+ "sections": {
14
+ "s3": "met",
15
+ "s4": "met",
16
+ "s5": "met",
17
+ "s6": "partial",
18
+ "s9": "not_met",
19
+ "s11": "not_met"
20
+ },
21
+ "gaps": [],
22
+ "slots": [
23
+ {
24
+ "slot": "extraction",
25
+ "model": "qwen3-1.7b",
26
+ "version": "2025-04",
27
+ "quant": "q8_0",
28
+ "size_mb": 1830,
29
+ "provider": "bundled",
30
+ "location": "device",
31
+ "license": "Apache-2.0"
32
+ }
33
+ ],
34
+ "metrics": {
35
+ "identity.passport.clean": {
36
+ "field_accuracy": 0.97,
37
+ "recall": 0.95,
38
+ "fixtures": 40
39
+ }
40
+ },
41
+ "report": {
42
+ "suite_version": "0.1.0",
43
+ "run_at": "2026-11-26T11:00:00Z",
44
+ "signature": "..."
45
+ }
46
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "id": "de_01JDXK7Q8M2N4P6R8T2B",
3
+ "segments": [
4
+ "sg_01JDXK7Q8M2N4P6R8T1A"
5
+ ],
6
+ "doc_type": "passport",
7
+ "status": "active",
8
+ "subject": null
9
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "@context": [
3
+ "https://www.w3.org/ns/credentials/v2",
4
+ "https://openmobiledocumentagent.org/ns/v0.1"
5
+ ],
6
+ "type": [
7
+ "VerifiableCredential",
8
+ "OMDAEvidenceCredential"
9
+ ],
10
+ "issuer": {
11
+ "id": "did:jwk:eyJrdHkiOiJFQyJ9",
12
+ "attestation": "android_key_attestation",
13
+ "runtime": "example-runtime/0.9.0"
14
+ },
15
+ "validFrom": "2026-11-26T11:00:00Z",
16
+ "validUntil": "2026-11-26T11:10:00Z",
17
+ "credentialSubject": {
18
+ "purpose": "Hotel check-in identity verification",
19
+ "audience": "https://verifier.example",
20
+ "disclosures": [
21
+ {
22
+ "field": "identity.passport.expiry_date",
23
+ "value": "2012-04-15",
24
+ "type": "date",
25
+ "status": "verified",
26
+ "checks": [
27
+ {
28
+ "id": "icao9303.mrz",
29
+ "version": "1",
30
+ "kind": "structure",
31
+ "inputs": [
32
+ "as_01JDXK7Q8M2N4P6R8MRZ"
33
+ ],
34
+ "result": "pass"
35
+ }
36
+ ],
37
+ "method": {
38
+ "kind": "model",
39
+ "location": "device"
40
+ }
41
+ },
42
+ {
43
+ "predicate": "age_over_18",
44
+ "result": true,
45
+ "basis": [
46
+ {
47
+ "field": "identity.passport.date_of_birth",
48
+ "status": "verified",
49
+ "checks": [
50
+ {
51
+ "id": "icao9303.mrz",
52
+ "version": "1",
53
+ "kind": "structure",
54
+ "inputs": [
55
+ "as_01JDXK7Q8M2N4P6R8MRZ"
56
+ ],
57
+ "result": "pass"
58
+ }
59
+ ]
60
+ }
61
+ ]
62
+ }
63
+ ]
64
+ }
65
+ }