feat: add daily manual price review workflow
This commit is contained in:
@@ -13,7 +13,7 @@ from typing import Any, Dict, Mapping, Optional
|
||||
from arr_ingestion.artifacts import ArtifactStore
|
||||
from arr_ingestion.contracts import (
|
||||
ARTIFACT_SIZE_LIMITS,
|
||||
RESULT_SCHEMA_VERSION,
|
||||
LEGACY_RESULT_SCHEMA_VERSION,
|
||||
ROLE_CONTRACTS,
|
||||
ArtifactRef,
|
||||
DeliveryEnvelope,
|
||||
@@ -104,7 +104,7 @@ def _validate_payload_shape(
|
||||
status="success",
|
||||
processor_version=request.processor_version,
|
||||
rule_set_sha256=request.rule_set_sha256,
|
||||
result_schema_version=RESULT_SCHEMA_VERSION,
|
||||
result_schema_version=LEGACY_RESULT_SCHEMA_VERSION,
|
||||
business_date=request.business_date,
|
||||
artifacts={
|
||||
"source_xml": source,
|
||||
@@ -195,19 +195,22 @@ class DirectResultValidator:
|
||||
result_path = output_dir / "result.json"
|
||||
structured_path = output_dir / "structured-result.json"
|
||||
try:
|
||||
command = [
|
||||
self._policy.python_binary,
|
||||
str(self._processor),
|
||||
"--xml",
|
||||
str(source_path),
|
||||
"--output-dir",
|
||||
str(output_dir),
|
||||
"--result-json",
|
||||
str(result_path),
|
||||
"--structured-result-json",
|
||||
str(structured_path),
|
||||
]
|
||||
if self._policy.legacy_direct_v3:
|
||||
command.append("--legacy-v3-output")
|
||||
completed = subprocess.run(
|
||||
[
|
||||
self._policy.python_binary,
|
||||
str(self._processor),
|
||||
"--xml",
|
||||
str(source_path),
|
||||
"--output-dir",
|
||||
str(output_dir),
|
||||
"--result-json",
|
||||
str(result_path),
|
||||
"--structured-result-json",
|
||||
str(structured_path),
|
||||
],
|
||||
command,
|
||||
cwd=self._policy.skill_root,
|
||||
capture_output=True,
|
||||
text=True,
|
||||
|
||||
Reference in New Issue
Block a user