Files
imbad0202__academic-researc…/shared/contracts/pdf/pdf_content_classifier_diagnostic.schema.json
T
Edward Cheng-I Wu ca0746aed4 feat(pdf): sandbox optional content classification (#724)
* feat(pdf): sandbox optional content classification

* fix(pdf): bind advisory to complete input

* fix(pdf): close classifier protocol edge cases

* fix(pdf): reject overflowing confidence values

* fix(pdf): keep worker adapter outcomes closed

* fix(pdf): close worker and publication races
2026-08-14 03:14:47 +08:00

40 lines
1.2 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/Imbad0202/academic-research-skills/shared/contracts/pdf/pdf_content_classifier_diagnostic.schema.json",
"title": "POSIX local-only PDF classifier operator diagnostic",
"type": "object",
"additionalProperties": false,
"required": [
"schema",
"reason",
"untrusted_detail",
"stdout_bytes_observed",
"stderr_bytes_observed"
],
"properties": {
"schema": {"const": "pdf_content_classifier_diagnostic/1"},
"reason": {
"enum": [
"NOT_REQUESTED",
"STRUCTURAL_NOT_PASS",
"CLASSIFIED",
"DEPENDENCY_ABSENT",
"CLASSIFIER_ERROR",
"INVALID_CLASSIFIER_RESULT",
"WORKER_LAUNCH_ERROR",
"WORKER_TIMEOUT",
"WORKER_NONZERO_EXIT",
"WORKER_SIGNAL",
"WORKER_STDOUT_LIMIT",
"WORKER_STDERR_LIMIT",
"WORKER_IO_ERROR",
"WORKER_MALFORMED_OUTPUT",
"WORKER_INVALID_OUTPUT"
]
},
"untrusted_detail": {"type": "string", "maxLength": 512},
"stdout_bytes_observed": {"type": "integer", "minimum": 0},
"stderr_bytes_observed": {"type": "integer", "minimum": 0}
}
}