Skip to content

state: add owner-bound automation mutation kernel - #1

Closed
GoloCatMash wants to merge 3 commits into
mainfrom
codex/viko-520-owner-mutation-kernel
Closed

GoloCatMash wants to merge 3 commits into
mainfrom
codex/viko-520-owner-mutation-kernel

Conversation

@GoloCatMash

Copy link
Copy Markdown
Owner

Summary

Adds the first reviewable storage slice for the owner-host automation mutation contract reported in openai#33527:

  • dedicated owner-bound SQLite store that never auto-creates on open
  • server-generated opaque locators and revision/CAS updates
  • one transaction for definition, runtime state, and immutable idempotency receipt
  • durable verified-receipt markers so same-key replay remains stable after later revisions
  • clone-shared owner serialization across commit, authoritative post-commit readback, and verification marking
  • typed ownership, locator, stale revision, idempotency, partial persistence, readback, and uncertain commit errors

This draft deliberately stops at the state kernel. Follow-up slices will add app-server v2 owner routing/handlers, remote disconnect semantics, the thin automation tool/Desktop adapter, and scheduler/TOML 45-second end-to-end readback.

Tests

  • just test -p codex-state — 160 passed
  • just fix -p codex-state
  • just bazel-lock-update — no lockfile drift
  • bazel test //codex-rs/state:state-unit-tests
  • git diff --check

Cumulative change: 795 inserted lines.

Upstream bug: openai#33527
Viko tracking: https://github.com/GoloCatMash/viko/issues/1266

Upstream PR creation was attempted and rejected by GitHub because the account lacks CreatePullRequest permission for openai/codex; the repository contribution guide states external code contributions are invitation-only.

@GoloCatMash

Copy link
Copy Markdown
Owner Author

Closing this draft because the Viko-side product decision is to stop pursuing the Codex automation updater change. No upstream submission or follow-up implementation is planned. The tested commits remain in the closed PR history for provenance only.

@GoloCatMash
GoloCatMash deleted the codex/viko-520-owner-mutation-kernel branch July 18, 2026 16:12
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