{"apiVersion": "openeyes.nails.web.v1", "boundary": "provider_collector_source_normalization_local_workspace_write_only", "collectionExecutionEnabled": false, "commandTemplate": "rtk python scripts/nails_normalize_provider_collector_source.py --workspace-dir <provider-collector-workspace-dir> --source-manifest <collector-source-manifest.json> --output-dir <provider-source-normalization-report-dir> --handoff-dir <verified-provider-crawl-handoff-dir>", "contract": {"additionalProperties": false, "contractVersion": 1, "inputModes": ["local_path"], "name": "nails-provider-collector-source-normalize-request", "optionalFields": ["handoffDir", "sourceRoot", "overwrite", "compactOutputFiles"], "requiredFields": ["workspaceDir", "sourceManifestPath", "outputDir"], "responseFields": ["recordsBatchPath", "sourceManifestDigest", "adapterCount", "recordCount", "records", "readyForProviderCollectorWorkspaceValidation", "nextProviderCollectorWorkspaceValidationCommandTemplate", "reportPath", "reportDigest"], "responseKind": "nails.provider_collector_source_normalization", "schemaDigest": "a137f42c2e5a3417eaa165c022d2138d25d7e6abd0bf52fd8b7502e494d88a82", "schemaId": "https://openeyes.local/plugins/nails/web/v1/provider-collector-source-normalize-request.schema.json", "statusCodes": {"200": "source rows normalized into the local provider collector workspace", "400": "request shape, path, manifest, or normalization error", "405": "method not allowed"}}, "deployEnabled": false, "liveCollectionEnabled": false, "localStateMutations": false, "method": "GET", "network": false, "normalizeContractPath": "/api/web/v1/plugins/nails/provider-collector-source:normalize-contract", "normalizePath": "/api/web/v1/plugins/nails/provider-collector-source:normalize", "normalizesTo": {"kind": "nails.normalized_crawl_records_return_workspace", "nextLocalSurface": "scripts/nails_validate_provider_collector_workspace.py", "workspaceArtifact": "records-batch.json"}, "ok": true, "operatorScript": "scripts/nails_normalize_provider_collector_source.py", "pluginId": "nails", "productionMutations": false, "route": "/api/web/v1/plugins/nails/provider-collector-source:normalize-contract", "schema": {"$id": "https://openeyes.local/plugins/nails/web/v1/provider-collector-source-normalize-request.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": {"compactOutputFiles": {"default": false, "description": "Write compact JSON report and workspace files.", "type": "boolean"}, "handoffDir": {"description": "Optional verified provider crawl handoff directory used to emit the next workspace validation command.", "minLength": 1, "type": "string"}, "outputDir": {"description": "Local output directory for the normalization report, summary, README, and next validation command.", "minLength": 1, "type": "string"}, "overwrite": {"default": false, "description": "Allow replacing existing workspace records files. Keep false for first-pass external collector returns.", "type": "boolean"}, "sourceManifestPath": {"description": "Local collector-source-manifest.json returned by an external read-only provider collector. Source file paths inside it are resolved by the local normalizer.", "minLength": 1, "type": "string"}, "sourceRoot": {"description": "Optional local root for sourcePath values in the source manifest. When omitted, paths are resolved from the manifest directory.", "minLength": 1, "type": "string"}, "workspaceDir": {"description": "Local prepared provider collector workspace directory containing records-batch.json and records/*.records.json.", "minLength": 1, "type": "string"}}, "required": ["workspaceDir", "sourceManifestPath", "outputDir"], "title": "Nails Provider Collector Source Normalize Request v1", "type": "object"}, "secretMaterialReturned": false, "sourceManifestShape": {"inputFormats": ["json", "jsonl"], "kind": "nails.provider_collector_source_manifest", "requiredFields": ["kind", "sources"], "sourceRequiredFields": ["adapterId", "providerId", "market", "platform", "sourcePath", "inputFormat"]}, "submitEnabled": false, "uploadEnabled": false, "workflow": {"auth": "runtime deployment policy; no credential material in response", "caller": "same-repo operator UI or approved local provider collector return", "idempotency": "caller-controlled output workspace plus source manifest digest", "name": "nails-provider-collector-source-to-workspace-validation", "nextStep": "run emitted provider collector workspace validation command", "versioning": "path-versioned under /api/web/v1/plugins/nails", "workflowVersion": 1}, "writesLocalWorkspace": true}