8000 T125 — Register each fresh host-address grant box under a name of its own creation · Issue #3048 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

T125 — Register each fresh host-address grant box under a name of its own creation #3048

Closed

Description

@norrietaylor

Task

slice size difficulty model who estimated lines
Host-address boxes reach GitHub M needs care standard an agent 350 (90 code, 260 tests)

Two fresh instances of one host-address grant entry started at once each run under their own box id, and a second create under a held fixed name is still refused.

Layers:

  • rpc:
    • crates/minimald-rpc/src/lib.rs: BoxConfig carries host_ip_registration, the name a host_ip grant box registered under when it is not the box's creation name, defaulted and skipped when absent
    • crates/minimald-rpc/src/tests.rs: a round trip pins the field, and its absence from an older client's config
    • cargo nextest run -p minimald-rpc box_config_carries_the_host_ip_registration_name
  • client:
    • crates/minimal/src/cmd/boxes/create.rs: activate_box registers a fresh-instance host_ip grant box under <base>~<random hex>, a key no box name can spell, carries it on the config, and withdraws by it on a failed create; a create that is not a fresh instance keeps created_box_name
    • cargo nextest run -p minimal fresh_instance_grant_box_registers_under_a_creation_key
  • identity:
    • crates/minimald/src/box_manager.rs: host_ip_mint_name sends host_ip_registration when the config carries one, else the creation name, so the mint after the <base>-<n> rename finds the registration
    • crates/minimald/src/box_manager/tests.rs: the mint test drives a fresh-instance config through the <base>-<n> rename
    • cargo nextest run -p minimald fresh_instance_mint_finds_its_registration_after_the_rename
  • registry:
    • crates/minvmd/src/control.rs: a test drives two concurrent RegisterBox asks for one base under two creation keys, both mints by those keys and both admissions, and a second register of the fixed name, which is refused
    • cargo nextest run -p minvmd concurrent_fresh_instance_grant_boxes_get_distinct_ids

Waits on:

Plan block
### T125 — Register each fresh host-address grant box under a name of its own creation
  slice: S17
  kind: task
  covers: BEP-082
  size: M
  est: 90 code, 260 tests
  executor: agent
  difficulty: needs care
  model: standard
  diagnostics: none: no verb on this tree creates a fresh-instance box that declares a credentialed upstream, so nothing new prints until one does; then `min box show <entry>-1` and `min box show <entry>-2` print different box ids, and a second create under a fixed name a running box holds still exits 2 naming the holder
  observability: the VM host daemon's existing "registered box with the VM host daemon; a host_ip box gets an id and no address" line names the creation key, and the in-VM daemon's existing "took the box id the VM host daemon minted" line names it as `host_ip_name` beside the `<base>-<n>` name
  layers:
    - rpc:
      - crates/minimald-rpc/src/lib.rs: `BoxConfig` carries `host_ip_registration`, the name a `host_ip` grant box registered under when it is not the box's creation name, defaulted and skipped when absent
      - crates/minimald-rpc/src/tests.rs: a round trip pins the field, and its absence from an older client's config
      test: cargo nextest run -p minimald-rpc box_config_carries_the_host_ip_registration_name
    - client:
      - crates/minimal/src/cmd/boxes/create.rs: `activate_box` registers a fresh-instance `host_ip` grant box under `<base>~<random hex>`, a key no box name can spell, carries it on the config, and withdraws by it on a failed create; a create that is not a fresh instance keeps `created_box_name`
      test: cargo nextest run -p minimal fresh_instance_grant_box_registers_under_a_creation_key
    - identity:
      - crates/minimald/src/box_manager.rs: `host_ip_mint_name` sends `host_ip_registration` when the config carries one, else the creation name, so the mint after the `<base>-<n>` rename finds the registration
      - crates/minimald/src/box_manager/tests.rs: the mint test drives a fresh-instance config through the `<base>-<n>` rename
      test: cargo nextest run -p minimald fresh_instance_mint_finds_its_registration_after_the_rename
    - registry:
      - crates/minvmd/src/control.rs: a test drives two concurrent `RegisterBox` asks for one base under two creation keys, both mints by those keys and both admissions, and a second register of the fixed name, which is refused
      test: cargo nextest run -p minvmd concurrent_fresh_instance_grant_boxes_get_distinct_ids
  produces: none
  consumes: none
  proof: Two fresh instances of one host-address grant entry started at once each run under their own box id, and a second create under a held fixed name is still refused.
  depends on:
    - blocked by #2854

Activity

  1. added
    kind:taskA task the plan skill rendered; the body carries ## Task
    size:M200 to 500 net lines; one PR
    model:standardA standard model: work that needs care, or routine work that is large
    on Nov 5, 2026
  2. minimal-foundry commented on Nov 5, 2026

    @minimal-foundry
    Contributor

    Done. #3053 merged.

    branch agent/3048-register-each-fresh-host-address-grant-box-under · epic #1501 · PR #3053

    round outcome job
    1 pushed 5b175196
    2 pushed b36b1d96

    Updated 2026-11-05T22:10:48.269Z.

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

    kind:taskA task the plan skill rendered; the body carries ## Taskmodel:standardA standard model: work that needs care, or routine work that is largesize:M200 to 500 net lines; one PR

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0