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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user