Skip to content

feat(audit): expose authorized browsing and scoped verification - #150

Merged
rrrodzilla merged 2 commits into
mainfrom
feat/audit-api-149
Sep 10, 2026
Merged

feat(audit): expose authorized browsing and scoped verification#150
rrrodzilla merged 2 commits into
mainfrom
feat/audit-api-149

Conversation

@rrrodzilla

@rrrodzilla rrrodzilla commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Add protected audit status, event browsing and scoped chain verification endpoints under /api/v1/forge/audit, closing #149. Platform administrators can inspect the deployment-wide audit store, page through a fixed sequence snapshot and request bounded integrity checks with explicit valid, broken, incomplete or unavailable outcomes.

The routes reuse acton-service 0.42.0's active storage handle and bounded query/verification contract, including the suffix anchoring fix from 0.40.1 and a measured timestamp-precision fix for newly sealed events. Event responses expose an approved eight-field projection with UUIDv7-backed mti audit TypeIDs. Historical UUID IDs preserve their original bits and hashes. The dependency also fixes SurrealDB 3 persistence and native record-ID decoding. Permission flags and the API reference describe tenant restrictions, retention, asynchronous persistence and the limits of a locally stored anchor.

Release versions: SchemaForge CLI 0.42.0 and integration crate 0.41.0. Synthetic HTTP regressions cover authorization, concurrent appends, missing retained data, corruption, field projection and request limits/deadlines. The full workspace suite passed 2,470 tests (eight existing skips); separate SQL Server unit tests passed three tests (two integration skips). The 11 HTTP contract tests include canonical TypeID and UUIDv7 assertions. All three backend Clippy configurations passed with zero lint warnings. The candidate SurrealDB server smoke test passed with 24 persisted TypeID events and valid full/suffix verification. The final crates.io dependency passed the default all-target Clippy check and all 11 HTTP contract tests. Downloaded release binary smoke tests will follow publication.

Closes #149.

@rrrodzilla
rrrodzilla merged commit 049df7e into main Sep 10, 2026
6 checks passed
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.

feat(audit): expose authorized audit browsing and scoped chain verification

1 participant