Skip to content

Establish the profile-owned local genesis seam #66

Closed

Description

@mowind

Parent

#64

What to build

Add the profile-owned local genesis expand seam while retaining the legacy raw allocation only as a temporary migration bridge. The seam accepts an explicit FreshStandalone or RemoteFork target and a small adapter that can patch account code and nonce or write one storage slot.

The shared module owns profile applicability, B20 marker and feature facts, slot derivation, and application choreography. A recording adapter makes the canonical result, no-op behavior, and failure contract independently verifiable before production callers migrate.

Acceptance criteria

  • One profile-generic local genesis entry point owns profile and target gating.
  • HashKey with FreshStandalone produces the complete canonical B20 singleton and feature-admission baseline.
  • HashKey with RemoteFork performs zero adapter calls.
  • Profiles without portable local genesis rules perform zero adapter calls for either target.
  • Builds without the HashKey capability compile against the same high-level seam without HashKey-specific caller branches.
  • The adapter exposes only account code-and-nonce patching and single-slot storage writing.
  • Account patching is specified to preserve balance, storage, and every non-owned account field.
  • Marker code hash is derived by adapters from the complete code bytes and is not transported as a separate input.
  • Recording tests compare normalized canonical state without exposing operation count, ordering, tuple layout, or array positions.
  • Recording tests inject failures after prior successful account patches and after entering storage writes, preserving error identity and proving no calls occur after the first failure.
  • No dynamic B20 token account or storage is emitted by the local genesis seam.
  • The legacy allocation surface remains only as a temporary bridge for unmigrated callers and gains no new consumers.

Blocked by

  • None — can start immediately.

Activity

  1. mowind commented on Aug 4, 2026

    @mowind
    OwnerAuthor

    Implemented and pushed in d1889c3.

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

    ready-for-agentFully specified and ready for an AFK agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions