Repository navigation
Expand file tree
/
Copy pathcode-analysis-openapi.json
More file actions
3308 lines (3308 loc) · 112 KB
/
Copy pathcode-analysis-openapi.json
File metadata and controls
3308 lines (3308 loc) · 112 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": "Agentic Vulnerability Analyzer",
"summary": "Assess whether a component is affected by a CVE using dependency, version, and code reachability evidence.",
"description": "The API runs a multi-step vulnerability assessment pipeline over a target component or repository. It can execute synchronously for immediate results or asynchronously via background jobs that can be polled later.",
"contact": {
"name": "Agentyzer Maintainers"
},
"license": {
"name": "Proprietary"
},
"version": "1.0.22"
},
"paths": {
"/health": {
"get": {
"tags": [
"system"
],
"summary": "Check service health",
"description": "Lightweight liveness probe that confirms the API process is accepting requests.",
"operationId": "health_health_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HealthResponse"
}
}
}
}
}
}
},
"/configuration": {
"get": {
"tags": [
"system"
],
"summary": "Get service configuration",
"description": "Return sanitized runtime configuration and backend information for API consumers. Repository credentials and raw authenticated URLs are never included.",
"operationId": "configuration_configuration_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HealthResponse"
}
}
}
}
}
}
},
"/prompts": {
"get": {
"tags": [
"system"
],
"summary": "Inspect configured prompt bundles",
"description": "Return prompt bundle metadata and, when requested, the configured system prompt text. Prompt values are omitted by default.",
"operationId": "prompts_prompts_get",
"parameters": [
{
"name": "include_values",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"description": "Include prompt text values in the response.",
"default": false,
"title": "Include Values"
},
"description": "Include prompt text values in the response."
},
{
"name": "system_only",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"description": "Limit values to system prompts.",
"default": true,
"title": "System Only"
},
"description": "Limit values to system prompts."
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/benchmark/compare": {
"post": {
"tags": [
"benchmark"
],
"summary": "Compare human and automated assessment artifacts",
"description": "Probabilistically compare a human vulnerability assessment with an automated Agentyzer assessment result. This endpoint evaluates the assessment artifacts only; it does not run repository or source-code analysis.",
"operationId": "benchmark_compare_benchmark_compare_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BenchmarkCompareRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BenchmarkCompareResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/assess": {
"post": {
"tags": [
"assessment"
],
"summary": "Start a vulnerability assessment",
"description": "Submit a vulnerability assessment request. By default the API enqueues a background job and returns a poll URL. Pass `sync=true` to wait for completion and receive the full assessment immediately.",
"operationId": "assess_assess_post",
"parameters": [
{
"name": "sync",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"description": "When true, block until the assessment completes and return the result instead of a job handle.",
"examples": [
true
],
"default": false,
"title": "Sync"
},
"description": "When true, block until the assessment completes and return the result instead of a job handle."
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssessRequest"
},
"examples": {
"syncAssessment": {
"summary": "Synchronous assessment against a configured component",
"description": "Block until the pipeline finishes and return the full assessment in one response.",
"value": {
"vuln_id": "CVE-2024-49766",
"component_name": "benchmark",
"debug": true,
"focus_path": "/tmp/agentyzer-repos/vuln-benchmark-08dfa46a5b30",
"user_guidance": "Prioritize code paths reachable from HTTP request handlers."
}
},
"asyncAssessment": {
"summary": "Asynchronous assessment with dependency path hints",
"description": "Submit a background job and later poll for status or retrieve the completed result.",
"value": {
"vuln_id": "CVE-2024-49766",
"component_name": "benchmark",
"debug": false,
"dependency_paths": [
[
"flask",
"werkzeug"
]
]
}
}
}
}
}
},
"responses": {
"200": {
"description": "Assessment completed synchronously or a background job was accepted.",
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/AssessResponse"
},
{
"$ref": "#/components/schemas/JobSubmittedResponse"
}
],
"title": "Response Assess Assess Post"
},
"examples": {
"syncResult": {
"summary": "Completed synchronous assessment",
"value": {
"assessment": {
"affected": true,
"verdict": "Affected",
"confidence": "High",
"exposure": "direct",
"dependency_presence": {
"found": true,
"repo_found": true,
"sbom_attributed": true,
"presence_basis": "direct",
"direct": true,
"transitive": false,
"declared_in": [
"pyproject.toml"
],
"lock_files": [
"uv.lock"
],
"locked_version": "2.0.0"
},
"advisory_relevance": {
"relevant": true,
"status": "ok",
"source": "rules",
"reasons": [
"OSV ecosystem match: {'PyPI'} (project={'PyPI'})"
]
},
"version_analysis": {
"detected_version": "2.0.0",
"version_source": "lock file",
"affected": true,
"note": "lock file \u2014 version 2.0.0 is in the explicit affected versions list",
"affected_ranges_summary": [
"SEMVER range: introduced=0 fixed=3.0.6 (source=osv_ghsa)"
],
"comparison_inputs": {
"component_name": "werkzeug",
"locked_version": "2.0.0",
"affected_ranges_summary": [
"ECOSYSTEM range: introduced=0 fixed=3.0.6 (source=osv_ghsa)",
"Explicit affected versions: 2 listed"
],
"affected_versions_count": 2
},
"comparison_trace": [
"Affected ranges: 1 SEMVER/ECOSYSTEM, 0 GIT, 2 explicit versions",
" Explicit affected versions: ['2.0.0', '3.0.2']",
" SEMVER range: introduced=0 fixed=3.0.6 (source=osv_ghsa)",
"version=2.0.0: MATCH in explicit affected versions list"
],
"checked_versions": [
{
"ref": "LOCKED",
"ref_type": "lock",
"version": "2.0.0",
"affected": true,
"notes": "lock file \u2014 version 2.0.0 is in the explicit affected versions list"
},
{
"ref": "WORKTREE",
"ref_type": "worktree",
"version": "2.0.0",
"source": "manifest",
"affected": true,
"notes": "version is in the explicit affected versions list"
}
],
"historical_affected": []
},
"executive_summary": {
"vulnerability": "CVE-2024-49766 \u00b7 werkzeug: crafted multipart form data can trigger excessive resource consumption.",
"assessment": "Disposition: Affected. Confidence: High. Exposure: direct. Audit: status pass; evidence consistency strong. Basis: the current detected version remains within the affected range. Required action: upgrade werkzeug to a fixed release.",
"why": [
"Advisory applicability: Applicable \u2014 the advisory matches the assessed dependency context.",
"Dependency evidence: werkzeug is a direct dependency; declared in pyproject.toml; resolved from uv.lock.",
"Version evidence: current dependency version 2.0.0 (lock file) is inside the advisory's affected range.",
"Direct reachability (current workspace): Reachable \u2014 an evidence-backed production path to the dependency was identified. The vulnerable multipart parser is called by the request handler.",
"Deep exploitability (current workspace): Exploitability: Yes; vulnerability-specific path: confirmed.",
"Audit assurance: status pass; evidence consistency strong."
]
},
"researcher_view": {
"objective": "Find the weakness, determine exposure, and check whether the assessed application is actually affected.",
"target_outcome": "Prefer an evidence-backed Not Affected / low-info outcome when the current codebase can be excluded.",
"findings": [
"Advisory relevance: relevant via rules",
"Dependency presence: found as a direct dependency",
"Version check: 2.0.0 (lock file) is inside the advisory range",
"Direct reachability: reachable from production code",
"Deep analysis: confirmed=True, exploitable=YES"
],
"conclusion": "The dependency is present, the locked version is inside the advisory range, and the vulnerable API is reachable from application code."
},
"remediation_view": {
"objective": "Reduce the finding to low/info when supportable, ideally by proving the current codebase is Not Affected.",
"status": "action_needed",
"summary": "The current assessment does not yet justify a low/info outcome. Use the recommended changes to eliminate reachability or move the assessed version outside the affected range.",
"recommendations": [
"Upgrade to 3.0.6",
"Upgrade, remove, or isolate the direct dependency and verify the vulnerable path is no longer reachable.",
"Rerun Agentyzer after remediation to confirm a Not Affected or low/info rescoring outcome."
]
},
"audit_view": {
"objective": "Challenge the assessment and verify that the conclusion really matches the available evidence.",
"status": "pass",
"consistency": "strong",
"downgrade_target": false,
"downgrade_supported": true,
"checks": [
"Supports verdict: the current detected version remains within the affected range.",
"Supports verdict: direct production reachability was identified."
],
"conclusion": "The available evidence is internally consistent with the current verdict. The dependency is present, the locked version is inside the advisory range, and the vulnerable API is reachable from application code."
},
"adjusted_cvss": {
"original_score": 6.3,
"adjusted_score": 6.3,
"original_vector": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
"adjusted_vector": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:A",
"version": "4.0",
"reasons": [
"version 2.0.0 (lock file) confirmed in affected range \u2014 lock file \u2014 version 2.0.0 is in the explicit affected versions list",
"LLM confirmed exploitable code path \u2192 E:A"
],
"summary": "6.3 \u2192 6.3 (version 2.0.0 confirmed in affected range; LLM confirmed exploitable code path)",
"version_context": {
"detected_version": "2.0.0",
"version_source": "lock file",
"affected": true,
"note": "lock file \u2014 version 2.0.0 is in the explicit affected versions list",
"affected_ranges_summary": [
"SEMVER range: introduced=0 fixed=3.0.6 (source=osv_ghsa)"
],
"comparison_inputs": {
"component_name": "werkzeug",
"locked_version": "2.0.0",
"affected_ranges_summary": [
"ECOSYSTEM range: introduced=0 fixed=3.0.6 (source=osv_ghsa)",
"Explicit affected versions: 2 listed"
],
"affected_versions_count": 2
},
"comparison_trace": [
"Affected ranges: 1 SEMVER/ECOSYSTEM, 0 GIT, 2 explicit versions",
" Explicit affected versions: ['2.0.0', '3.0.2']",
" SEMVER range: introduced=0 fixed=3.0.6 (source=osv_ghsa)",
"version=2.0.0: MATCH in explicit affected versions list"
]
}
},
"summary": "Direct dependency with reachable vulnerable code path.",
"reasoning": "The dependency is present, the locked version is inside the advisory range, and the vulnerable API is reachable from application code.",
"analysis": "EXPLOITABLE",
"justification": "NOT_SET",
"response": "UPDATE",
"details": "The dependency is present, the locked version is inside the advisory range, and the vulnerable API is reachable from application code.\nCVSS: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:A (score: 6.3)\nRescoring: LLM confirmed exploitable code path \u2192 E:A",
"cvss_vector": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:A",
"cvss_score": 6.3
},
"steps": [
{
"step": "scan_dependencies",
"title": "Scan dependency manifests and lock files",
"status": "pass",
"findings": {
"found": true,
"direct": true,
"locked_version": "2.0.0"
},
"evidence": [
"Found werkzeug in fixtures/python-direct-werkzeug/uv.lock",
"Locked version resolved to 2.0.0"
]
}
]
}
},
"asyncJob": {
"summary": "Accepted asynchronous assessment job",
"value": {
"job_id": "9f7e2c4b5a6d",
"status": "pending",
"poll_url": "/jobs/9f7e2c4b5a6d",
"configuration": {
"service_name": "Agentic Vulnerability Analyzer",
"service_version": "1.0.22",
"config_dir": "config",
"repos_config_path": "config/repos.yaml",
"repositories": {
"workspace_dir": "repos",
"component_count": 1,
"components": [
"benchmark"
],
"aliases": [],
"default_template_configured": false,
"hot_reload": true
},
"features": {
"async_assessments": true,
"sync_assessments": true,
"bounded_async_execution": true,
"request_model_override": true,
"debug_responses": true,
"job_cancellation": true,
"job_logs": true,
"focus_path": true,
"repository_archive_inspection": true,
"repos_config_hot_reload": true
}
},
"backend": {
"llm": {
"provider": "ollama",
"backend": "OllamaClient",
"host": "http://localhost:11434",
"model": "mistral",
"healthy": true,
"supports_model_override": true
},
"repositories": {
"workspace_dir": "repos",
"reuse_strategy": "stable control repository plus detached per-analysis worktree",
"update_strategy": "cross-process repository lock around clone, fetch, and worktree creation",
"parallel_safety": "execution is bounded by AGENTYZER_MAX_CONCURRENT_JOBS; configured repositories use isolated worktrees, while focus_path concurrency is caller-managed"
},
"jobs": {
"job_store": "in_memory",
"execution_model": "bounded asyncio background tasks in this API process",
"known_jobs": 1,
"max_concurrent_jobs": 1,
"running_jobs": 0,
"queued_jobs": 1,
"available_slots": 1,
"status_counts": {
"pending": 1,
"running": 0,
"completed": 0,
"failed": 0,
"cancelled": 0
}
}
}
}
}
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/jobs": {
"get": {
"tags": [
"jobs"
],
"summary": "List assessment jobs",
"description": "Return all in-memory background jobs known to the current API process.",
"operationId": "list_jobs_jobs_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/JobListResponse"
}
}
}
}
}
}
},
"/jobs/{job_id}": {
"get": {
"tags": [
"jobs"
],
"summary": "Get job status",
"description": "Retrieve the current state of a previously submitted asynchronous assessment job.",
"operationId": "get_job_status_jobs__job_id__get",
"parameters": [
{
"name": "job_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Job Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/JobStatusResponse"
}
}
}
},
"404": {
"description": "The requested job ID does not exist.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"tags": [
"jobs"
],
"summary": "Cancel or delete a job",
"description": "Cancel a pending/running job or remove a completed, failed, or cancelled job from the in-memory job store.",
"operationId": "delete_job_jobs__job_id__delete",
"parameters": [
{
"name": "job_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Job Id"
}
}
],
"responses": {
"204": {
"description": "Successful Response"
},
"404": {
"description": "The requested job ID does not exist.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"409": {
"description": "The job cannot be cancelled or removed in its current state.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/jobs/{job_id}/result": {
"get": {
"tags": [
"jobs"
],
"summary": "Fetch completed job result",
"description": "Return the full assessment payload for a completed asynchronous job.",
"operationId": "get_job_result_jobs__job_id__result_get",
"parameters": [
{
"name": "job_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Job Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssessResponse"
}
}
}
},
"404": {
"description": "The requested job ID does not exist.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"409": {
"description": "The job has not completed yet.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "The job failed while running the pipeline.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/jobs/{job_id}/compact": {
"post": {
"tags": [
"jobs"
],
"summary": "Compact a completed job for follow-up context",
"description": "Return a concise structured context extracted from a completed assessment job.",
"operationId": "compact_job_jobs__job_id__compact_post",
"parameters": [
{
"name": "job_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Job Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CompactContextResponse"
}
}
}
},
"404": {
"description": "The requested job ID does not exist.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"409": {
"description": "The job has no result yet.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/jobs/{job_id}/follow-up": {
"post": {
"tags": [
"jobs"
],
"summary": "Start a follow-up assessment from compacted parent context",
"description": "Create a new asynchronous assessment job using the parent job request and compacted result context as guidance.",
"operationId": "follow_up_job_jobs__job_id__follow_up_post",
"parameters": [
{
"name": "job_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Job Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FollowUpRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/JobSubmittedResponse"
}
}
}
},
"404": {
"description": "The requested parent job ID does not exist.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"409": {
"description": "The parent job has no result yet.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ActiveAgentStatus": {
"properties": {
"step": {
"type": "string",
"title": "Step",
"description": "Stable machine-readable pipeline step identifier."
},
"title": {
"type": "string",
"title": "Title",
"description": "Human-readable step title."
},
"agent": {
"type": "string",
"title": "Agent",
"description": "Agent module currently handling the step."
},
"activity": {
"type": "string",
"title": "Activity",
"description": "Short description of the work in progress."
},
"status": {
"type": "string",
"title": "Status",
"description": "Current state of the active agent entry."
}
},
"type": "object",
"required": [
"step",
"title",
"agent",
"activity",
"status"
],
"title": "ActiveAgentStatus"
},
"AnalysisJustification": {
"type": "string",
"enum": [
"CODE_NOT_PRESENT",
"CODE_NOT_REACHABLE",
"REQUIRES_CONFIGURATION",
"REQUIRES_DEPENDENCY",
"REQUIRES_ENVIRONMENT",
"PROTECTED_BY_COMPILER",
"PROTECTED_AT_RUNTIME",
"PROTECTED_AT_PERIMETER",
"PROTECTED_BY_MITIGATING_CONTROL",
"NOT_SET"
],
"title": "AnalysisJustification",
"description": "Dependency-Track justification values for NOT_AFFECTED findings."
},
"AnalysisResponse": {
"type": "string",
"enum": [
"CAN_NOT_FIX",
"WILL_NOT_FIX",
"UPDATE",
"ROLLBACK",
"WORKAROUND_AVAILABLE",
"NOT_SET"
],
"title": "AnalysisResponse",
"description": "Dependency-Track analysis response values."
},
"AnalysisState": {
"type": "string",
"enum": [
"EXPLOITABLE",
"IN_TRIAGE",
"FALSE_POSITIVE",
"NOT_AFFECTED",
"RESOLVED",
"NOT_SET"
],
"title": "AnalysisState",
"description": "Dependency-Track analysis states (VEX)."
},
"AssessRequest": {
"properties": {
"vuln_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Vuln Id",
"description": "Vulnerability identifier to assess, typically a CVE or GHSA.",
"examples": [
"CVE-2024-49766"
]
},
"cvss_vector": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cvss Vector",
"description": "Optional CVSS vector string to rescore when advisory metadata does not already provide one.",
"examples": [
"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
]
},
"component_name": {
"type": "string",
"title": "Component Name",
"description": "Logical component name from config/repos.yaml, or an ad-hoc name when focus_path is provided.",
"examples": [
"benchmark"
]
},
"project_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Project Name",
"description": "Optional caller project name used to correlate and selectively clean assessment jobs.",
"examples": [
"ExampleApp"
]
},
"focus_path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Focus Path",
"description": "Optional absolute path to a local checkout to assess instead of cloning or resolving from config/repos.yaml.",
"examples": [
"/tmp/agentyzer-repos/vuln-benchmark-08dfa46a5b30"
]
},
"dependency_paths": {
"anyOf": [
{
"items": {