Repository navigation
Expand file tree
/
Copy pathopenapi.yaml
More file actions
6696 lines (6696 loc) · 268 KB
/
Copy pathopenapi.yaml
File metadata and controls
6696 lines (6696 loc) · 268 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.1.0
info:
title: Open Review Atlas API
version: 0.3.0
description: >
External data contracts for the Open Review Atlas POC. Application mutations
are exposed as conventional JSON API routes. All error responses use the
structured error envelope and never include internal stack traces.
license:
name: MIT
servers:
- url: /
description: Current ORAtlas deployment
- url: http://localhost:3000
description: Local development
components:
securitySchemes:
session:
type: apiKey
in: cookie
name: oratlas_session
certifierBearer:
type: http
scheme: bearer
description: Scoped certifier credential; secrets are displayed once and stored only as SHA-256 digests.
verifierBearer:
type: http
scheme: bearer
description: Scoped oratlas_verify_ verifier credential. It grants only verification read/submit operations and never editorial privileges.
headers:
ServiceDiscovery:
description: RFC 8288 links to the machine-readable service description and human documentation.
schema: { type: string }
GraphNavigation:
description: >
RFC 8288 service discovery links and, when another cursor page exists, a rel="next"
link that preserves the bound graph query.
schema: { type: string }
ReviewNavigation:
description: >
RFC 8288 service discovery links plus an alternate human representation and conditional
RFC 5829 latest-version, version-history, predecessor-version, and successor-version links.
schema: { type: string }
responses:
Error:
description: Structured error
content:
application/json:
schema: { $ref: "#/components/schemas/Error" }
schemas:
Error:
type: object
required: [error]
properties:
error:
type: object
required: [code, message]
properties:
code:
type: string
enum:
[
bad-request,
unauthorized,
forbidden,
not-found,
conflict,
rate-limited,
payload-too-large,
unsupported-media-type,
upstream-error,
internal-error,
]
message: { type: string }
details:
type: array
items: { type: string }
ExternalPublicationRegistrationRequest:
type: object
additionalProperties: false
required: [manifestUrl]
properties:
manifestUrl: { type: string, format: uri, pattern: "^https://", maxLength: 2000 }
publicationType:
type: string
default: other
enum: [review-article, research-article, methods-article, preprint, living-review, other]
CertificationEvidenceReference:
oneOf:
- type: object
additionalProperties: false
required: [type, id]
properties:
type:
enum:
[
publication-occurrence,
publication-content-document,
canonical-node-version,
canonical-relation,
trust-assessment,
production-provenance,
capture,
]
id: { type: string, minLength: 1 }
- type: object
additionalProperties: false
required: [type, url, sha256]
properties:
type: { const: external-immutable-resource }
url: { type: string, format: uri, pattern: "^https://", maxLength: 2000 }
sha256: { type: string, pattern: "^[0-9a-f]{64}$" }
CertificationCriterionResult:
type: object
additionalProperties: false
required: [criterionId, status, rationale]
properties:
criterionId:
{ type: string, minLength: 1, maxLength: 100, pattern: "^[a-z0-9][a-z0-9._-]*$" }
status: { enum: [pass, concern, fail, not-applicable, insufficient-evidence] }
rationale: { type: string, minLength: 1, maxLength: 10000 }
evidenceRefs:
type: array
maxItems: 100
default: []
items: { $ref: "#/components/schemas/CertificationEvidenceReference" }
SubmitCertificationResult:
type: object
additionalProperties: false
required: [schemaVersion, packetSha256, criteria, outcome, conflictOfInterest, independence]
properties:
schemaVersion: { const: "1.0.0" }
packetSha256: { type: string, pattern: "^[0-9a-f]{64}$" }
criteria:
type: array
minItems: 1
maxItems: 100
items: { $ref: "#/components/schemas/CertificationCriterionResult" }
outcome: { enum: [certified, certified-with-conditions, not-certified, inconclusive] }
limitations:
type: array
maxItems: 50
default: []
items: { type: string, minLength: 1, maxLength: 2000 }
conflictOfInterest:
type: object
additionalProperties: false
required: [status]
properties:
status: { enum: [none-declared, conflict-declared, not-provided] }
independence:
type: object
additionalProperties: false
required: [declared, statement]
properties:
declared: { type: boolean }
statement: { type: string, minLength: 1, maxLength: 4000 }
provenance:
type: object
additionalProperties: false
default: {}
properties:
agentRunId: { type: string, minLength: 1 }
executionPassportId: { type: string, minLength: 1 }
provider: { type: string, minLength: 1, maxLength: 120 }
model: { type: string, minLength: 1, maxLength: 120 }
modelVersion: { type: string, minLength: 1, maxLength: 120 }
promptVersion: { type: string, minLength: 1, maxLength: 120 }
structuredOutputSha256: { type: string, pattern: "^[0-9a-f]{64}$" }
supersedesCertificationResultId: { type: string, minLength: 1 }
CertificationRunTerminalTransition:
type: object
additionalProperties: false
required: [status, reason]
properties:
status: { enum: [failed, cancelled] }
reason: { type: string, minLength: 1, maxLength: 4000 }
ExternalPublicationRegistrationResult:
type: object
additionalProperties: false
required:
- schemaVersion
- captureId
- publicationId
- publicationVersionId
- manifestSchemaVersion
- adapterType
- claimOccurrenceCount
- verificationLevel
- warnings
- replayed
- links
properties:
schemaVersion: { const: "1.0.0" }
captureId: { type: string, minLength: 1 }
publicationId: { type: string, minLength: 1 }
publicationVersionId: { type: string, minLength: 1 }
manifestSchemaVersion: { type: string, enum: ["0.2.0", "0.3.0"] }
adapterType: { const: myst }
claimOccurrenceCount: { type: integer, minimum: 0 }
verificationLevel: { type: string, enum: [published-structure, source-byte] }
warnings: { type: array, items: { type: string } }
replayed: { type: boolean }
links:
type: object
additionalProperties: false
required: [capture, publication, publicationVersion]
properties:
capture: { type: string, pattern: "^/api/publication-captures/" }
publication: { type: string, pattern: "^/api/publications/" }
publicationVersion: { type: string, pattern: "^/api/publication-versions/" }
PublicationContentDocument:
type: object
additionalProperties: false
required:
[
id,
title,
role,
sourcePath,
publishedUrl,
representation,
text,
sha256,
sourceArtifactIdentitySha256,
sourceArtifactSha256,
]
properties:
id: { type: string, minLength: 1, maxLength: 200 }
title: { type: [string, "null"], minLength: 1, maxLength: 500 }
role:
type: [string, "null"]
enum:
[
abstract,
introduction,
methods,
results,
discussion,
limitations,
references,
supplementary,
other,
null,
]
sourcePath: { type: [string, "null"] }
publishedUrl: { type: [string, "null"], format: uri }
representation: { enum: [published-structured-text, source-text] }
text:
type: string
minLength: 1
maxLength: 1000000
description: Deterministic inert plain text; never executable publication markup.
sha256: { type: string, pattern: "^[0-9a-f]{64}$" }
sourceArtifactIdentitySha256: { type: string, pattern: "^[0-9a-f]{64}$" }
sourceArtifactSha256: { type: string, pattern: "^[0-9a-f]{64}$" }
PublicationContentCompleteness:
type: object
additionalProperties: false
required: [returnedDocuments, totalDocumentsKnown, truncated, coverage]
properties:
returnedDocuments: { type: integer, minimum: 0 }
totalDocumentsKnown: { type: [integer, "null"], minimum: 0 }
truncated: { type: boolean }
coverage: { enum: [complete, partial, unknown, unsupported] }
PublicationVersionContent:
type: object
additionalProperties: false
required: [schemaVersion, publicationVersionId, content, completeness, sha256, links]
properties:
schemaVersion: { const: "1.0.0" }
publicationVersionId: { type: string, minLength: 1 }
content:
type: array
maxItems: 64
items: { $ref: "#/components/schemas/PublicationContentDocument" }
completeness: { $ref: "#/components/schemas/PublicationContentCompleteness" }
sha256: { type: string, pattern: "^[0-9a-f]{64}$" }
links:
type: object
additionalProperties: false
required: [publicationVersion, packet]
properties:
publicationVersion: { type: string, pattern: "^/api/publication-versions/" }
packet: { type: string, pattern: "^/api/publication-versions/" }
PublicationVersionPacket:
type: object
additionalProperties: false
required:
[
schemaVersion,
publication,
version,
captures,
content,
contributors,
occurrences,
productionProvenance,
relations,
challenges,
completeness,
links,
sha256,
]
properties:
schemaVersion: { const: "1.3.0" }
publication: { type: object }
version:
type: object
description: >
Exact version identity plus optional publisherCanonicalUrl and the distinct required
observedPublicationBaseUrl derived from the immutable manifest capture.
captures:
type: array
maxItems: 1000
description: Capture identities and provenance metadata; never retained artifact bytes.
items: { type: object }
content:
type: array
maxItems: 64
description: >
Immutable deterministic scientific-text evaluation corpus normalized from captured
artifacts. This representation is not a scientific validation of the article.
items: { $ref: "#/components/schemas/PublicationContentDocument" }
contributors:
type: array
maxItems: 500
description: >
Immutable source-declared scholarly-credit snapshots for this exact version.
Names and identifiers are metadata, not canonical ORAtlas person identities.
items: { $ref: "#/components/schemas/PublicationContributor" }
occurrences:
type: array
maxItems: 500
items: { type: object }
productionProvenance:
type: array
maxItems: 200
description: >
Public append-only production assertions. Production mode is provenance, never a
scientific quality, certification, or TRUST state.
items: { $ref: "#/components/schemas/PublicationProductionAssertion" }
relations:
type: array
maxItems: 2000
items: { $ref: "#/components/schemas/CanonicalGraphEdge" }
challenges:
type: array
maxItems: 500
items: { $ref: "#/components/schemas/PublicChallenge" }
completeness:
type: object
description: >
Returned/total/truncated metadata for every bounded packet collection, including
explicit complete, partial, unknown, or unsupported content coverage.
links:
type: object
description: Root-relative packet, publication and exact-version links.
sha256:
type: string
pattern: "^[0-9a-f]{64}$"
description: SHA-256 of canonical packet JSON before this sha256 member is added.
PublicationContributor:
type: object
additionalProperties: false
required:
[
id,
publicationVersionId,
sourceContributorKey,
kind,
displayName,
givenName,
familyName,
identifiers,
affiliations,
roles,
position,
publicUrl,
sourceDeclarationProvenance,
declarationStatus,
links,
]
properties:
id: { type: string, minLength: 1 }
publicationVersionId: { type: string, minLength: 1 }
sourceContributorKey:
{ type: string, minLength: 1, maxLength: 200, pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]*$" }
kind: { type: string, enum: [person, organization] }
displayName: { type: string, minLength: 1, maxLength: 300 }
givenName: { type: [string, "null"], minLength: 1, maxLength: 200 }
familyName: { type: [string, "null"], minLength: 1, maxLength: 200 }
identifiers:
type: array
maxItems: 20
description: Source-declared metadata only; ORAtlas performs no identity resolution.
items:
type: object
additionalProperties: false
required: [scheme, value]
properties:
scheme: { type: string, enum: [orcid, ror, isni, other] }
value: { type: string, minLength: 1, maxLength: 300 }
affiliations:
type: array
maxItems: 50
items: { type: string, minLength: 1, maxLength: 300 }
roles:
type: array
minItems: 1
maxItems: 6
items:
type: string
enum: [author, corresponding-author, editor, group-author, contributor, other]
position: { type: integer, minimum: 1, maximum: 500 }
publicUrl: { type: [string, "null"], format: uri, pattern: "^https://", maxLength: 2000 }
sourceDeclarationProvenance:
type: object
additionalProperties: false
required: [type, sourceArtifactKind, sourceArtifactIdentitySha256, sourceArtifactSha256]
properties:
type: { const: source-declared }
sourceArtifactKind:
enum:
[
publication-manifest,
cross-reference-inventory,
claim-stream,
review-manifest,
review-claim-stream,
published-page-data,
source-document,
]
sourceArtifactIdentitySha256: { type: string, pattern: "^[0-9a-f]{64}$" }
sourceArtifactSha256: { type: string, pattern: "^[0-9a-f]{64}$" }
declarationStatus: { const: source-declared }
links:
type: object
additionalProperties: false
required: [publicationVersion, publicProfile]
properties:
publicationVersion: { type: string, pattern: "^/api/publication-versions/" }
publicProfile: { type: [string, "null"], format: uri }
PublicationVersionContributors:
type: object
additionalProperties: false
required: [schemaVersion, publicationVersionId, declarationStatus, contributors, completeness]
properties:
schemaVersion: { const: "1.0.0" }
publicationVersionId: { type: string, minLength: 1 }
declarationStatus: { enum: [source-declared, not-declared] }
contributors:
type: array
maxItems: 500
items: { $ref: "#/components/schemas/PublicationContributor" }
completeness:
type: object
additionalProperties: false
required: [returned, total, truncated, coverage]
properties:
returned: { type: integer, minimum: 0 }
total: { type: integer, minimum: 0 }
truncated: { type: boolean }
coverage: { enum: [complete, not-declared] }
PublicationProductionActor:
type: object
additionalProperties: false
required: [kind]
anyOf:
- required: [name]
- required: [identifier]
properties:
kind: { type: string, enum: [person, organization, software, workflow, ai-system] }
name: { type: string, minLength: 1, maxLength: 300 }
identifier: { type: string, minLength: 1, maxLength: 500 }
version: { type: string, minLength: 1, maxLength: 120 }
provider: { type: string, minLength: 1, maxLength: 200 }
model: { type: string, minLength: 1, maxLength: 200 }
modelVersion: { type: string, minLength: 1, maxLength: 120 }
publicUrl: { type: string, format: uri, pattern: "^https://", maxLength: 2000 }
PublicationProductionMutation:
type: object
additionalProperties: false
required: [mode, actors, activities, strength]
allOf:
- if:
properties:
strength: { const: source-declared }
required: [strength]
then:
not:
anyOf:
- required: [agentRunId]
- required: [executionPassportId]
- if:
properties:
strength: { const: oratlas-attested }
required: [strength]
then:
anyOf:
- required: [agentRunId]
- required: [executionPassportId]
properties:
mode: { type: string, enum: [human, ai-assisted, agentic, hybrid, unspecified] }
actors:
type: array
maxItems: 64
items: { $ref: "#/components/schemas/PublicationProductionActor" }
activities:
type: array
maxItems: 32
items:
type: string
enum:
[
study-design,
evidence-search,
evidence-synthesis,
data-analysis,
drafting,
authoring,
editing,
reviewing,
figure-generation,
code-generation,
other,
]
statement: { type: string, minLength: 1, maxLength: 5000 }
strength: { type: string, enum: [source-declared, oratlas-attested] }
publicEvidenceUrl: { type: string, format: uri, pattern: "^https://", maxLength: 2000 }
agentRunId: { type: string, minLength: 1, maxLength: 200 }
executionPassportId: { type: string, minLength: 1, maxLength: 200 }
supersedesAssertionId: { type: string, minLength: 1, maxLength: 200 }
PublicationProductionAssertion:
type: object
additionalProperties: false
required:
[
id,
publicationVersionId,
sourceAssertionKey,
mode,
actors,
activities,
statement,
strength,
lifecycleState,
publicEvidenceUrl,
agentRunId,
executionPassportId,
supersedesAssertionId,
supersededByAssertionId,
assertedBy,
assertedAt,
links,
]
properties:
id: { type: string, minLength: 1 }
publicationVersionId: { type: string, minLength: 1 }
sourceAssertionKey: { type: [string, "null"] }
mode: { type: string, enum: [human, ai-assisted, agentic, hybrid, unspecified] }
actors:
type: array
maxItems: 64
items: { $ref: "#/components/schemas/PublicationProductionActor" }
activities:
type: array
maxItems: 32
items:
type: string
enum:
[
study-design,
evidence-search,
evidence-synthesis,
data-analysis,
drafting,
authoring,
editing,
reviewing,
figure-generation,
code-generation,
other,
]
statement: { type: [string, "null"] }
strength: { type: string, enum: [source-declared, oratlas-attested] }
lifecycleState: { type: string, enum: [active, superseded] }
publicEvidenceUrl: { type: [string, "null"], format: uri }
agentRunId: { type: [string, "null"] }
executionPassportId: { type: [string, "null"] }
supersedesAssertionId: { type: [string, "null"] }
supersededByAssertionId: { type: [string, "null"] }
assertedBy:
anyOf:
- type: "null"
- type: object
additionalProperties: false
required: [id, githubLogin]
properties:
id: { type: string, minLength: 1 }
githubLogin: { type: string, minLength: 1 }
assertedAt: { type: string, format: date-time }
links:
type: object
additionalProperties: false
required: [publicationVersion, executionPassport, publicEvidence]
properties:
publicationVersion: { type: string, pattern: "^/" }
executionPassport: { type: [string, "null"], pattern: "^/" }
publicEvidence: { type: [string, "null"], format: uri }
PublicationRelationMutation:
type: object
additionalProperties: false
required: [targetPublicationId, relationType, rationale]
properties:
targetPublicationId: { type: string, minLength: 1, maxLength: 200 }
relationType:
type: string
enum:
[
same-publication-continuation,
mirror-of,
moved-to,
derived-from,
republication-of,
version-of,
]
rationale: { type: string, minLength: 20, maxLength: 5000 }
publicEvidenceUrl: { type: string, format: uri, pattern: "^https://", maxLength: 2000 }
PublicationRelation:
type: object
additionalProperties: false
required:
[
id,
sourcePublicationId,
targetPublicationId,
relationType,
direction,
rationale,
publicEvidenceUrl,
reviewedBy,
reviewedAt,
links,
]
properties:
id: { type: string, minLength: 1 }
sourcePublicationId: { type: string, minLength: 1 }
targetPublicationId: { type: string, minLength: 1 }
relationType:
type: string
enum:
[
same-publication-continuation,
mirror-of,
moved-to,
derived-from,
republication-of,
version-of,
]
direction: { type: string, enum: [outgoing, incoming] }
rationale: { type: string, minLength: 1 }
publicEvidenceUrl: { type: [string, "null"], format: uri }
reviewedBy:
type: object
additionalProperties: false
required: [id, githubLogin]
properties:
id: { type: string, minLength: 1 }
githubLogin: { type: string, minLength: 1 }
reviewedAt: { type: string, format: date-time }
links:
type: object
additionalProperties: false
required: [sourcePublication, targetPublication, publicEvidence]
properties:
sourcePublication: { type: string, pattern: "^/" }
targetPublication: { type: string, pattern: "^/" }
publicEvidence: { type: [string, "null"], format: uri }
KnowledgeLandscapeNode:
type: object
additionalProperties: false
required: [id, kind, label, detail, href, reasons]
properties:
id: { type: string, minLength: 1, maxLength: 500 }
kind: { type: string, enum: [review, claim, evidence, figure, dataset, code] }
label: { type: string, minLength: 1 }
detail: { type: string, minLength: 1 }
href: { type: string, pattern: "^/" }
reasons: { type: array, minItems: 1, items: { type: string, minLength: 1 } }
year: { type: integer, minimum: 1000, maximum: 2100 }
graphNodeId: { type: string, minLength: 1, maxLength: 200 }
graphNodeVersionId: { type: string, minLength: 1, maxLength: 200 }
graphHref: { type: string, pattern: "^/" }
graphRecordHref: { type: string, pattern: "^/" }
KnowledgeLandscapeEdge:
type: object
additionalProperties: false
required: [graphEdgeId, sourceId, targetId, label, relationType]
properties:
graphEdgeId: { type: string, minLength: 1, maxLength: 200 }
sourceId: { type: string, minLength: 1, maxLength: 500 }
targetId: { type: string, minLength: 1, maxLength: 500 }
label: { type: string, minLength: 1, maxLength: 100 }
relationType: { type: string, minLength: 1, maxLength: 100 }
status: { const: confirmed }
assessmentCount: { type: integer, minimum: 0 }
KnowledgeLandscapeYear:
type: object
additionalProperties: false
required: [year, reviewCount, evidenceCount]
properties:
year: { type: integer, minimum: 1000, maximum: 2100 }
reviewCount: { type: integer, minimum: 0 }
evidenceCount: { type: integer, minimum: 0 }
KnowledgeLandscapeData:
type: object
additionalProperties: false
required:
[nodes, edges, matchedClaimCount, shownClaimCount, graphSeedCount, graphNodeCount, timeline]
properties:
nodes:
type: array
maxItems: 34
items: { $ref: "#/components/schemas/KnowledgeLandscapeNode" }
edges:
type: array
items: { $ref: "#/components/schemas/KnowledgeLandscapeEdge" }
matchedClaimCount: { type: integer, minimum: 0 }
shownClaimCount: { type: integer, minimum: 0, maximum: 6 }
graphSeedCount: { type: integer, minimum: 0, maximum: 3 }
graphNodeCount: { type: integer, minimum: 0, maximum: 12 }
timeline:
type: array
items: { $ref: "#/components/schemas/KnowledgeLandscapeYear" }
focusedNodeId: { type: string, minLength: 1, maxLength: 500 }
KnowledgeLandscapeResponse:
type: object
additionalProperties: false
required: [schemaVersion, algorithm, query, landscape]
properties:
schemaVersion: { const: "2.0.0" }
algorithm:
type: object
additionalProperties: false
required: [id, version, purpose, limitations]
properties:
id: { const: explicit-interest-graph-landscape }
version: { const: "2.0.0" }
purpose: { const: navigation }
limitations:
type: array
prefixItems:
- { const: not-a-truth-score }
- { const: not-a-quality-score }
- { const: canonical-source-assertion-and-confirmed-edges }
- { const: bounded-to-three-entry-neighborhoods-and-twelve-exact-versions }
minItems: 4
maxItems: 4
query: { $ref: "#/components/schemas/KnowledgeLandscapeQuery" }
landscape: { $ref: "#/components/schemas/KnowledgeLandscapeData" }
KnowledgeLandscapeQuery:
type: object
additionalProperties: false
required: [interests]
properties:
q: { type: string, minLength: 1, maxLength: 500 }
interests:
type: array
maxItems: 5
items:
type: string
enum: [disagreements, reproducibility, methods-models, data-code, assessed-evidence]
focusNodeId: { type: string, minLength: 1, maxLength: 500 }
reviewSlug: { type: string, maxLength: 200 }
claimType: { type: string, maxLength: 40 }
relationType: { type: string, maxLength: 40 }
trustCriterion: { type: string, maxLength: 60 }
KnowledgeRecommendationQuery:
type: object
additionalProperties: false
required: [interests]
properties:
q: { type: string, minLength: 1, maxLength: 500 }
interests:
type: array
maxItems: 5
items:
type: string
enum: [disagreements, reproducibility, methods-models, data-code, assessed-evidence]
reviewSlug: { type: string, maxLength: 200 }
claimType: { type: string, maxLength: 40 }
relationType: { type: string, maxLength: 40 }
trustCriterion: { type: string, maxLength: 60 }
knownNodeIds:
type: array
maxItems: 100
default: []
items: { type: string, minLength: 1, maxLength: 200 }
KnowledgeRecommendationAnchor:
type: object
additionalProperties: false
required:
[
edgeId,
relationType,
directionFromRecommendation,
recommendedNodeVersionId,
knownNodeId,
knownNodeVersionId,
]
properties:
edgeId: { type: string, minLength: 1, maxLength: 200 }
relationType:
type: string
enum:
[
asserts,
supports,
partially-supports,
contradicts,
contextualizes,
method-source,
background,
unclear,
replicates,
extends,
uses-dataset,
uses-code,
derives-from,
]
directionFromRecommendation: { type: string, enum: [outgoing, incoming] }
recommendedNodeVersionId: { type: string, minLength: 1, maxLength: 200 }
knownNodeId: { type: string, minLength: 1, maxLength: 200 }
knownNodeVersionId: { type: string, minLength: 1, maxLength: 200 }
KnowledgeRecommendation:
type: object
additionalProperties: false
required: [nodeId, nodeVersionId, rank, score, reasons, anchors]
properties:
nodeId: { type: string, minLength: 1, maxLength: 200 }
nodeVersionId: { type: string, minLength: 1, maxLength: 200 }
rank: { type: integer, minimum: 1, maximum: 34 }
score: { type: number, minimum: 0, maximum: 1 }
reasons:
type: array
minItems: 1
maxItems: 10
items: { type: string, minLength: 1, maxLength: 1000 }
anchors:
type: array
items: { $ref: "#/components/schemas/KnowledgeRecommendationAnchor" }
KnowledgeRecommendationResponse:
type: object
additionalProperties: false
required: [schemaVersion, algorithm, query, recommendations, omittedUnboundCount]
properties:
schemaVersion: { const: "2.0.0" }
algorithm:
type: object
additionalProperties: false
required: [id, version, purpose, limitations]
properties:
id: { const: explicit-interest-recommendation }
version: { const: "2.0.0" }
purpose: { const: recommendation }
limitations:
type: array
prefixItems:
- { const: not-a-truth-score }
- { const: not-a-quality-score }
- { const: canonical-source-assertion-and-confirmed-edges }
- { const: bounded-to-three-entry-neighborhoods-and-twelve-exact-versions }
minItems: 4
maxItems: 4
query: { $ref: "#/components/schemas/KnowledgeRecommendationQuery" }
recommendations:
type: array
maxItems: 34
items: { $ref: "#/components/schemas/KnowledgeRecommendation" }
omittedUnboundCount: { type: integer, minimum: 0 }
PublicNodeSummary:
type: object
additionalProperties: false
required: [id, localNodeId, kind, title, repository, currentVersionId, updatedAt]
properties:
id: { type: string, description: Stable database KnowledgeNode.id used in public URLs }
localNodeId: { type: string }
kind: { type: string, enum: [claim, figure, dataset, code] }
title: { type: string }
abstract: { type: string }
repository:
type: object
additionalProperties: false
required: [owner, name, url]
properties:
owner: { type: string }
name: { type: string }
url: { type: string, format: uri }
currentVersionId: { type: string }
updatedAt: { type: string, format: date-time }
ArchiveResultLinks:
type: object
additionalProperties: false
required: [self, html, exactVersion]
properties:
self: { type: string, pattern: "^/(?!/)" }
html: { type: string, pattern: "^/(?!/)" }
exactVersion: { type: string, pattern: "^/(?!/)" }
ArchiveRepositoryReviewResult:
type: object
additionalProperties: false
required:
[contentType, slug, title, authors, domains, hasDoi, hasTrustData, status, score, links]
properties:
contentType: { const: review }
slug: { type: string, minLength: 1 }
title: { type: string, minLength: 1 }
abstract: { type: string }
authors: { type: array, items: { type: string } }
domains: { type: array, items: { type: string } }
hasDoi: { type: boolean }
hasTrustData: { type: boolean }
compatibilityLevel: { type: string }
status: { type: string }
score: { type: number }
sortDate: { type: string, format: date-time }
links: { $ref: "#/components/schemas/ArchiveResultLinks" }
ArchiveNodeResult:
type: object
additionalProperties: false
required: [contentType, node, score, sortDate, links]
properties:
contentType: { const: node }
node: { $ref: "#/components/schemas/PublicNodeSummary" }
score: { type: number }
sortDate: { type: string, format: date-time }
links: { $ref: "#/components/schemas/ArchiveResultLinks" }
ArchiveSynthesisFreshness:
type: object
additionalProperties: false
required: [status, affectedReferenceCount]
properties:
status: { type: string, enum: [unchecked, fresh, stale] }
affectedReferenceCount: { type: integer, minimum: 0, maximum: 1201 }
allOf:
- if: { properties: { status: { const: stale } }, required: [status] }
then: { properties: { affectedReferenceCount: { minimum: 1 } } }
- if:
{
properties: { status: { type: string, enum: [unchecked, fresh] } },
required: [status],
}
then: { properties: { affectedReferenceCount: { const: 0 } } }
ArchiveSynthesisResult:
type: object
additionalProperties: false
required: [contentType, slug, title, abstract, version, freshness, score, sortDate, links]
properties:
contentType: { const: synthesis }
slug: { type: string, minLength: 1, maxLength: 200 }
title: { type: string, minLength: 1, maxLength: 300 }
abstract: { type: string, minLength: 1, maxLength: 2000 }
version: { $ref: "#/components/schemas/PublicSynthesisVersion" }
freshness: { $ref: "#/components/schemas/ArchiveSynthesisFreshness" }
score: { type: number }
sortDate: { type: string, format: date-time }
links: { $ref: "#/components/schemas/ArchiveResultLinks" }
ArchiveSynthesisCandidateScan:
type: object
additionalProperties: false
required: [limit, limitReached]
properties:
limit:
const: 500
description: Maximum accepted-synthesis candidates deeply validated by one request.
limitReached:
type: boolean
description: >
True when the request evaluated exactly the 500-candidate ceiling. It does not assert
that a 501st candidate exists; totals then describe only the bounded candidate scan.
ArchiveSearchResponse:
type: object
additionalProperties: false
required: [total, page, pageSize, synthesisCandidateScan, items]
properties:
total:
type: integer
minimum: 0
description: >
Matching validated records within the bounded POC scans. When
synthesisCandidateScan.limitReached is true, this is not an asserted global synthesis
total; pages describe repository reviews, nodes, and the first 500 synthesis candidates.
page: { type: integer, minimum: 1 }
pageSize: { type: integer, minimum: 1, maximum: 50 }
synthesisCandidateScan: { $ref: "#/components/schemas/ArchiveSynthesisCandidateScan" }
items:
type: array
items:
oneOf: