镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Add post-commit relocation verification hooks #36

Open

Description

@chrisbbreuer

Expose an optional, allocation-free post-commit verification pair so embedders can prove that audited roots and live-cell edges no longer contain any old payload address while the forwarding plan is still available.

Scope

  • Add paired verifyRelocationRoots / verifyRelocationCell hooks.
  • Invoke them only after every relocation commit and index/publication repair, before forwarding scratch is released.
  • Iterate the current live graph (new payloads for moved cells, original payloads for pinned cells).
  • Require both hooks or neither at compile time.
  • Add a generic test that observes the post-commit destination graph and rejects stale old pointers.
  • Document that verification is infallible/allocation-free and may trap on invariant failure.

Activity

  1. chrisbbreuer commented on Jul 20, 2026

    @chrisbbreuer
    MemberAuthor

    Implemented and pushed to main in 5883b02. The optional roots/cell verification pair is compile-time all-or-nothing and runs after every relocation commit/index/publication update while forwarding records remain live. The generic compaction test proves current roots, moved cells, pinned cells, strong edges, and weak edges contain no old payloads. Local Debug, ReleaseSafe, and TSan suites pass. Keeping open until GitHub Actions validates the descendant commit.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions