Skip to content

Record API-key write provenance and expose console history queries - #87

Merged
SaladDay merged 7 commits into
mainfrom
codex/api-key-write-audit
Sep 24, 2026
Merged

SaladDay merged 7 commits into
mainfrom
codex/api-key-write-audit

Conversation

@SaladDay

@SaladDay SaladDay commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Console resource lists could not distinguish API keys that inherit the same principal, and keys had no write history. Preserve the authenticated key identity, commit write records and creation ownership with the business transaction, and add deployment-authenticated batch ownership and cursor history queries under /core/v1. The public /v1 schema and behavior stay unchanged.

Coverage includes Agents, Sessions/events/Artifacts, Environment uploads, Templates, Skills/versions, Files, Vaults and Credentials. Runtime uploads retain safe provenance during preparation and record success with the confirmed PostgreSQL receipt. Creation ownership is permanent; other operations have configurable retention. No payloads, tokens or file contents are logged; no historical ownership is backfilled. Web/console whitelist work is outside this PR.

Validation: per-family real PostgreSQL success/rollback tests; actual Core HTTP acceptance (242 assertions / 24 writes); pinned SDK 3.13.0 CRUD and historical null attribution; real Codex/Kimi Docker execution, upload consumption, events, Artifact deletion, Core restart and cleanup; unchanged public schema; fresh GPT-6 Astra high full-diff blind review passed. make -k check ran all gates: two old internal test fixtures needed updating for transactional auditing; both corrected tests and the entire Core gate then passed. Every other gate passed in the full run (147 browser cases, 781 Web tests, 409 client tests, 137 Claude tests, installer and Rust checks). Public response assertions are unchanged. The full official Python/Go client consistency script also passed; public /v1 schema is byte-identical to main. Small post-review fixture-only corrections were self-reviewed.

Console integration and retention contract: contracts/agents-api/write-audit.md.

@SaladDay
SaladDay merged commit b134a1b into main Sep 24, 2026
3 checks passed
@SaladDay
SaladDay deleted the codex/api-key-write-audit branch October 10, 2026 05:05
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