Giuliocc commited on
Commit
9666de2
·
verified ·
1 Parent(s): e8d7479

Document task-specific local SDK, asset provenance and measured limits

Browse files
ModelRequest.schema.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additionalProperties": false,
3
+ "properties": {
4
+ "schema_version": {
5
+ "const": "doxa-portfolio-request-v1",
6
+ "default": "doxa-portfolio-request-v1",
7
+ "title": "Schema Version",
8
+ "type": "string"
9
+ },
10
+ "request_id": {
11
+ "maxLength": 200,
12
+ "minLength": 1,
13
+ "title": "Request Id",
14
+ "type": "string"
15
+ },
16
+ "model_id": {
17
+ "title": "Model Id",
18
+ "type": "string"
19
+ },
20
+ "revision": {
21
+ "pattern": "^[a-f0-9]{40}$",
22
+ "title": "Revision",
23
+ "type": "string"
24
+ },
25
+ "task": {
26
+ "title": "Task",
27
+ "type": "string"
28
+ },
29
+ "payload": {
30
+ "additionalProperties": true,
31
+ "title": "Payload",
32
+ "type": "object"
33
+ }
34
+ },
35
+ "required": [
36
+ "request_id",
37
+ "model_id",
38
+ "revision",
39
+ "task",
40
+ "payload"
41
+ ],
42
+ "title": "ModelRequest",
43
+ "type": "object"
44
+ }
ModelResult.schema.json ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additionalProperties": false,
3
+ "properties": {
4
+ "schema_version": {
5
+ "const": "doxa-portfolio-result-v1",
6
+ "default": "doxa-portfolio-result-v1",
7
+ "title": "Schema Version",
8
+ "type": "string"
9
+ },
10
+ "request_id": {
11
+ "title": "Request Id",
12
+ "type": "string"
13
+ },
14
+ "model_id": {
15
+ "title": "Model Id",
16
+ "type": "string"
17
+ },
18
+ "revision": {
19
+ "title": "Revision",
20
+ "type": "string"
21
+ },
22
+ "task": {
23
+ "title": "Task",
24
+ "type": "string"
25
+ },
26
+ "status": {
27
+ "enum": [
28
+ "ok",
29
+ "abstained",
30
+ "unsupported_task",
31
+ "invalid_input",
32
+ "dependency_unavailable",
33
+ "integrity_error",
34
+ "error"
35
+ ],
36
+ "title": "Status",
37
+ "type": "string"
38
+ },
39
+ "result": {
40
+ "anyOf": [
41
+ {
42
+ "additionalProperties": true,
43
+ "type": "object"
44
+ },
45
+ {
46
+ "type": "null"
47
+ }
48
+ ],
49
+ "title": "Result"
50
+ },
51
+ "reason": {
52
+ "anyOf": [
53
+ {
54
+ "type": "string"
55
+ },
56
+ {
57
+ "type": "null"
58
+ }
59
+ ],
60
+ "title": "Reason"
61
+ },
62
+ "scope_limitations": {
63
+ "items": {
64
+ "type": "string"
65
+ },
66
+ "title": "Scope Limitations",
67
+ "type": "array"
68
+ },
69
+ "source_payload_uploaded": {
70
+ "const": false,
71
+ "default": false,
72
+ "title": "Source Payload Uploaded",
73
+ "type": "boolean"
74
+ }
75
+ },
76
+ "required": [
77
+ "request_id",
78
+ "model_id",
79
+ "revision",
80
+ "task",
81
+ "status",
82
+ "result",
83
+ "reason",
84
+ "scope_limitations"
85
+ ],
86
+ "title": "ModelResult",
87
+ "type": "object"
88
+ }
README.md CHANGED
@@ -101,3 +101,18 @@ Do not share confidential passages.
101
 
102
  <!-- doxa-release-provenance -->
103
  [Frozen dataset revision](https://huggingface.co/datasets/Giuliocc/doxa-pilot/tree/a29c0ce8cb8d2ea99218c0cb3fa58f59b2e1b1f8)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
 
102
  <!-- doxa-release-provenance -->
103
  [Frozen dataset revision](https://huggingface.co/datasets/Giuliocc/doxa-pilot/tree/a29c0ce8cb8d2ea99218c0cb3fa58f59b2e1b1f8)
104
+
105
+ ## Local SDK and provenance contract
106
+
107
+ The [DOXA Methods foundation](https://huggingface.co/datasets/Giuliocc/doxa-methods) supplies a common local request/result envelope, exact-commit asset loader and checked source/reviewer schemas. This model retains its native task and output labels: `political_language_screening`. Its recorded portfolio status is `synthetic_pilot_baseline`.
108
+
109
+ The [task manifest](portfolio-task.json) pins the existing inference artifact and expected hashes. Run it with the Methods SDK using `doxa portfolio fetch` and `doxa portfolio run`. Document text stays local; fetching public weights does not provide hosted inference. This update changes documentation and contracts; learned parameters are unchanged.
110
+
111
+ Scope boundaries:
112
+
113
+ - Small fictional AI-provisional reference set.
114
+ - No independent new DOXA human review.
115
+ - Known quotation and rebuttal failures.
116
+ - No author ideology or political-neutrality guarantee.
117
+
118
+ Source judgments, model predictions and actual human review remain separate. The production new-reviewer registry starts empty. This model does not certify political neutrality, infer a person's beliefs or supply an overall political-bias percentage. See the [research foundation guide](https://huggingface.co/spaces/Giuliocc/doxa-lab/blob/main/RESEARCH_FOUNDATION.md) for data roles and independent evaluation requirements.
SHA256SUMS CHANGED
@@ -1,14 +1,4 @@
1
- 8b533e1fb55115eb2dfb699d672e6ef6d406c22d1050a8a1472151e8f436b090 EVALUATION.md
2
- cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE
3
- a09db2ae2c551f0edfc006bf453ba56b2a926a3463676b7c72ab259ecd4312f7 README.md
4
- bf3974adbb9e16bff7a659d010b06afcc18a06c2ed31453476c4c8dd4f2d6561 coefficients.f32
5
- 60b334d7923456519c432c79573f0ae3f7a447e7a4e774b7a582ccb20fd9832e feature_spec.json
6
- 548118353b6fb33cae11b2574285ca25eab84cefe65dea668680bc00b0992bad idf.f32
7
- 555a5fbf08725921150682db9255baee42f0f84ae708c75154ea0aa38de5d2b7 intercepts.f32
8
- e6f8e0985b46f68daa4066f82e25b863ff0770bf94f2a51689e703d29a3862bf metrics.json
9
- 5744eb573b0bafc4d52fe51436a698d4d089534b4001c8a9b392bb731598f0a7 model_manifest.json
10
- b7d26afbcc25db852df0cb6b4e30228f18917cff38fa0277c952e8025726cb8f parity_cases.jsonl
11
- f992e4f4190f182d45e7a2f954298ab3c89934327ba9ffe45d99d47662307117 predictions.jsonl
12
- 2036f5c445641e8ad7b482f3cfcc7758f68acaf873fa296f651a4748dacb2c9a training_config.json
13
- 341e9fdd809e9689cb1277f842c7a79ef0acbb394a12e413531fffd8d8d6c447 training_support.json
14
- e4e7b374adb4976c69d331efd5b991dbfc8d0171559da9c48df97bb35a603395 vocabulary.json
 
1
+ 870ee85850fc18cff4777cfe5f95509ad58dd502c1ea361b7dc1acf1421dcf26 ModelRequest.schema.json
2
+ 785889c1278d942517fc31fcaa6380892b4ffa05de8e0ef1452022782948e081 ModelResult.schema.json
3
+ e9ead86bb2f2aaace726225e57ad55393350409fedb01c1b8f294f37da701330 README.md
4
+ 6063b591433557b7bd30874a85d8f6e0402e950cf0ec8b5ab9663f528de964a4 portfolio-task.json
 
 
 
 
 
 
 
 
 
 
portfolio-task.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_id": "Giuliocc/doxa-linear",
3
+ "revision": "e8d7479c04415306a2ea20310145688d571cbb1b",
4
+ "task": "political_language_screening",
5
+ "status": "synthetic_pilot_baseline",
6
+ "format": "doxa_portable_tfidf",
7
+ "files": {
8
+ "model_manifest.json": {
9
+ "sha256": "5744eb573b0bafc4d52fe51436a698d4d089534b4001c8a9b392bb731598f0a7",
10
+ "bytes": 2478
11
+ },
12
+ "feature_spec.json": {
13
+ "sha256": "60b334d7923456519c432c79573f0ae3f7a447e7a4e774b7a582ccb20fd9832e",
14
+ "bytes": 1077
15
+ },
16
+ "vocabulary.json": {
17
+ "sha256": "e4e7b374adb4976c69d331efd5b991dbfc8d0171559da9c48df97bb35a603395",
18
+ "bytes": 277925
19
+ },
20
+ "idf.f32": {
21
+ "sha256": "548118353b6fb33cae11b2574285ca25eab84cefe65dea668680bc00b0992bad",
22
+ "bytes": 60000
23
+ },
24
+ "coefficients.f32": {
25
+ "sha256": "bf3974adbb9e16bff7a659d010b06afcc18a06c2ed31453476c4c8dd4f2d6561",
26
+ "bytes": 1080000
27
+ },
28
+ "intercepts.f32": {
29
+ "sha256": "555a5fbf08725921150682db9255baee42f0f84ae708c75154ea0aa38de5d2b7",
30
+ "bytes": 72
31
+ }
32
+ },
33
+ "card_url": "https://huggingface.co/Giuliocc/doxa-linear/blob/e8d7479c04415306a2ea20310145688d571cbb1b/README.md",
34
+ "limitations": [
35
+ "Small fictional AI-provisional reference set",
36
+ "No independent new DOXA human review",
37
+ "Known quotation and rebuttal failures",
38
+ "No author ideology or political-neutrality guarantee"
39
+ ],
40
+ "request_contract": "doxa-portfolio-request-v1",
41
+ "inference_location": "local_cpu_or_browser_where_supported",
42
+ "source_payload_uploaded": false
43
+ }