Skip to content

feat(console): paginate audit events and expose runtime readback - #1018

Merged
Pigbibi merged 2 commits into
mainfrom
feat/audit-runtime-readback-20261101
Nov 1, 2026
Merged

Pigbibi merged 2 commits into
mainfrom
feat/audit-runtime-readback-20261101

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

AI assistance

OpenAI Codex.

What changed

Add bounded keyset pagination to audit history across three durable sources and the retained activity log, using opaque cursors and a first-page time ceiling. Invalid pagination returns 400; unreadable audit sources return 503. Add authenticated, GET-only /api/runtime/readback?scope=platform:account-alias from stored lifecycle observations. Missing, stale, future or conflicting evidence cannot establish a known runtime switch.

Stack order is #1010 -> #1020 -> this PR. The rebase includes the single promotion-authority read correction, Bash 3 compatibility and compatible dependency security patches. Numeric cursors from the preliminary API must be discarded and pagination restarted. Application updates and bounded activity-log retention remain documented coverage limits. The frontend consumer is #1019.

How verified

  • Passed locally on Node 22: audit SQL pagination over 1,007 durable records (all sources, equal timestamps, concurrent insertion, terminal cursor), runtime readback, decision cockpit API and contract validations.
  • Passed generated display-name/config checks, runtime settings validation, whitespace and documentation checks (zero blocking findings).
  • Passed the complete local Python suite: 1,005 tests, 10 skipped, including the Bash 3 helper regressions.
  • Remote CI is checked against the rebased head. The risk gate requires an owner-approved label, which this task explicitly prohibits adding.
  • No cloud reads, dispatches, trading authority, deployment, IAM/secret changes, merge or labels. Production behavior remains unverified.

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: de020750-c245-494e-8a33-f4dbd5e8ec82
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@Pigbibi
Pigbibi force-pushed the feat/audit-runtime-readback-20261101 branch from d4d154c to 1c4088d Compare November 1, 2026 07:44
@Pigbibi
Pigbibi changed the base branch from feat/cockpit-backend-api to fix/promotion-authority-read-bash3 November 1, 2026 07:45
@Pigbibi
Pigbibi force-pushed the feat/audit-runtime-readback-20261101 branch from 1c4088d to 73af86d Compare November 1, 2026 09:28
@Pigbibi
Pigbibi changed the base branch from fix/promotion-authority-read-bash3 to main November 1, 2026 09:28
@Pigbibi

Pigbibi commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 45 minutes.

@Pigbibi
Pigbibi force-pushed the feat/audit-runtime-readback-20261101 branch from 73af86d to 4341cb5 Compare November 1, 2026 12:20
@Pigbibi
Pigbibi marked this pull request as ready for review November 1, 2026 12:28
@Pigbibi Pigbibi added the owner-approved Owner approval for high-risk PRs. AI agents must never apply this label. label Nov 1, 2026
@Pigbibi
Pigbibi merged commit ca6dc42 into main Nov 1, 2026
16 of 18 checks passed
@Pigbibi
Pigbibi deleted the feat/audit-runtime-readback-20261101 branch November 1, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

owner-approved Owner approval for high-risk PRs. AI agents must never apply this label.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant