feat: enforce import provenance exposure policy (#2)

Merge BAT-017 / REQ-021 implementation after delivery-runner implementation, independent QC, and passing GitHub Actions CI.
This commit is contained in:
2026-07-09 18:44:19 +09:00
committed by GitHub
parent c9231c2685
commit d9182f28f2
13 changed files with 1168 additions and 47 deletions
+14 -2
View File
@@ -312,9 +312,21 @@ def import_toss_bank_pdf(file_path: str, account_id: str = "", skip_duplicates:
return contracts.import_toss_bank_pdf(file_path, account_id, skip_duplicates)
@mcp.tool()
def list_ledger_import_batches(source: str = "", include_rolled_back: bool = True, limit: int = 50) -> dict:
def list_ledger_import_batches(
source: str = "",
include_rolled_back: bool = True,
limit: int = 50,
provenance_exposure: str = "minimal",
debug_provenance_gate: bool = False,
) -> dict:
"""List CSV/PDF/API import batches."""
return contracts.list_ledger_import_batches(source, include_rolled_back, limit)
return contracts.list_ledger_import_batches(
source,
include_rolled_back,
limit,
provenance_exposure=provenance_exposure,
debug_provenance_gate=debug_provenance_gate,
)
@mcp.tool()
def rollback_ledger_import_batch(import_batch_id: str, hard_delete: bool = False) -> dict: