Skip to content

feat: add audit export operational receipts - #20

Open
seonghobae wants to merge 1 commit into
feat/audit-export-cursorfrom
feat/audit-export-receipt
Open

feat: add audit export operational receipts#20
seonghobae wants to merge 1 commit into
feat/audit-export-cursorfrom
feat/audit-export-receipt

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

What changed

  • preserve the existing tenant audit-export JSON array response
  • add page count, ordered receipt digest, and last-event keyset cursor headers
  • define the receipt encoding in ADR-0005 without copying provider payloads
  • verify both first and subsequent pages in the exact-head PostgreSQL/API smoke path

Why

Operators and incident/reconciliation consumers need a compact, independently recomputable record of which audit page they received and where to resume. The receipt remains caller-retained response evidence; it is not a second audit authority or a persisted source-payload copy.

Validation

  • real PostgreSQL 18.4 disposable database and API
  • first page 2, remaining page 3, receipt digest recomputation, next-cursor header reuse
  • partial cursor HTTP 400
  • cross-tenant export returns empty
  • actionlint
  • pinned Rust fmt, workspace tests (6), Clippy, rustdoc, docs contract, and diff checks

Stacked on PR #19 exact head a718bfe. Independent review, exact-head protected Checks, and protected merge remain required; no self-approval or protection bypass was used.


Open in Devin Review

Copy link
Copy Markdown
Contributor Author

@opencode-agent Review only exact current head 19c16d2 against base a718bfe; do not update, approve, merge, or bypass protections. Focus on backward-compatible audit-export receipt headers, canonical UUID digest encoding, cursor header reuse, tenant isolation, and payload exclusion.

@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c6794ad5-b199-413d-9b67-e091ae4b28e0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant