fix: repair chained imports and track blocked evidence dependencies
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s

Assistant: codex
Assistant-Model: gpt-6.1-sol
Assistant-Session: 01a1046e-465c-7d43-8c4c-d10f0a1feadd
This commit is contained in:
tegwick 2026-10-04 11:36:06 +02:00
parent 28b567e588
commit 146f4e1dd3
21 changed files with 869 additions and 95 deletions

View file

@ -101,6 +101,10 @@ def build_parser() -> argparse.ArgumentParser:
help="DSN; defaults to AUDIT_CORE_DATABASE_URL",
)
migrate_parser.add_argument("--schema", default="audit_core")
migrate_parser.add_argument(
"--source-id", default=None,
help="Stable import identity; retain it if the SQLite file moves (defaults to its absolute path).",
)
migrate_parser.add_argument(
"--dry-run", action="store_true",
help="Report what would move without writing anything.",
@ -233,7 +237,7 @@ def migrate_store(args: argparse.Namespace) -> int:
backend = PostgresAuditBackend(dsn, schema=args.schema)
try:
report = migrate(args.source, backend)
report = migrate(args.source, backend, source_id=args.source_id)
finally:
backend.close()
print(report.summary())