8000 The session e2e does not check a listen publication's decision record on VM lanes · Issue #3698 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

The session e2e does not check a listen publication's decision record on VM lanes #3698

Closed

Description

@norrietaylor

Defect

On a VM-backed host, the in-VM daemon writes its dynamic-ingress decision log inside the VM. The host keeps its own copy outside the VM: the VM host daemon appends each port that it admits, and each decision that the in-VM daemon reports, to its owner-only audit/box-admissions.log. That host-held copy is the record that a process inside the VM cannot change.

The session e2e asserts the host-held record for min net expose on VM lanes. For a listen publication it does not. The audit leg of that case is counted NOT RUN on the KVM and macOS VM lanes, so no test proves NET-046 for a listen publication on a VM-backed host.

Where

Code read from main at 9fd4fa1f.

  • scripts/session-e2e.sh:27582-27584: the listen case calls not_run for its audit leg when E2E_VM is set. The reason it prints is that the host does not read the guest daemon's audit file.
  • scripts/session-e2e.sh:28196-28226: the expose case reads the host-held log on a VM lane (eib_vm_audit, eib_vm_admission_line). The listen case can read the same file.
  • crates/minvmd/src/control.rs:2868, AdmittedPortAudit: the host's admission line carries the box, the port and the source. A listen publication reports PortReportSource::Listen (crates/minimald/src/net/listeners.rs:2476).
  • crates/minimald/src/audit.rs, report_to_host: each decision that the in-VM daemon records is also sent to the VM host daemon.

Expected

  • On a VM lane, the listen case asserts that the host-held audit log has a line for the box and the published port, with the source listen.
  • The case fails when that line is absent. It prints the line when it is present.
  • The case is no longer in the lane's NOT RUN list for this reason.
  • On a native lane, the case keeps its assertion on the daemon's own audit/decisions.log.

This is a residual of epic #1437 (NET).

Activity

  1. added
    priority:should-have
    kind:task
    on Nov 20, 2026
  2. norrietaylor commented on Nov 20, 2026

    @norrietaylor
    MemberAuthor

    Task

    Source: #3698

    Plan block
    ### D3698 — On a VM lane, the session e2e asserts a listen publication's decision record in the host-held audit log
      kind: task
      size: S
      est: 0 code, 45 tests
      executor: agent
      origin: residual
      epic: 1437
      layers:
        - e2e:
          - scripts/session-e2e.sh: In listen_published_port_reaches_peer_and_host, replace the VM-lane not_run of the audit leg with an assertion on the VM host daemon's audit/box-admissions.log: a line for the box and the port with source listen. Print the line, and fail when it is absent.
          test: bash scripts/session-e2e.sh listen_published_port_reaches_peer_and_host
      proof: On a KVM or macOS VM lane, listen_published_port_reaches_peer_and_host prints the host-held audit line for the listen's port and is not in the NOT RUN list.
    
  3. norrietaylor commented on Nov 20, 2026

    @norrietaylor
    MemberAuthor

    /implement

  4. minimal-foundry commented on Nov 20, 2026

    @minimal-foundry
    Contributor

    That /implement is queued, not refused. 10 follow-up coders are in flight, and 10 is the most that run at once, so no coder started. Nothing is queued ahead of it. The runtime starts queued follow-up coders oldest first as room frees, looking every ten minutes, and refuses one still waiting after 14 days.

    Nothing to type again: the command gets a rocket when its coder starts, or a refusal that names the reason. /implement stop takes it off the queue.

  5. minimal-foundry commented on Nov 20, 2026

    @minimal-foundry
    Contributor

    Pull request #3704 is open for D3698.

    branch agent/3698-on-a-vm-lane-the-session-e2e-asserts-a-listen-pu · epic #1437

    round outcome job
    1 pushed fa9d49dd
    test exit tail
    bash scripts/session-e2e.sh listen_published_port_reaches_peer_and_host 0 ::warning::could not fetch the pinned gvproxy switch; native own-IP proofs will skip (stage /workbench/.scratch/gvproxy or install gvproxy-min under $MINIMAL_BIN) fetch-gvproxy: building gvproxy-linux-amd64 v0.9.0 from the pinned source build-gvproxy: downloading https://go.dev/dl/go1.26.10.linux-am

    Verify min task run agent-verify: exit 0

    Updated 2026-11-21T01:13:11.367Z.

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:taskpriority:should-have

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0