Skip to content

RL10 directory: a machine whose certificates are all retired goes out retired #474

Closed

Description

@SSFSKIM

Cites: P5 composite docs/doperpowers/plans/2026-10-27-p5-org.md, child O10 (M6, the RL10 directory). Found by the desk track (sminos chat MAWS b4948247:502) after a deleted acceptance VM's sessions stayed in sminos list --org.

What happens

src/endpoint/rl10/org-directory.ts's machineNames takes every enrolled machine plus every machine certificate under a live, unrevoked delegation. It ignores certificates.retirements, and orgDirectory sends every project retired: false. So the directory RL10 sends sminos lists all 16 retired dc- VMs as live machines, each with a live machine project. The MacBook endpoint's org.json holds 17 certificates and 16 retirements. Under DX2 the hub marked a revoked machine's project retired; RL10's builder carries no such signal. sminos never sees certificates, so it cannot tell a deleted VM from one that is only offline, and the deleted VMs' last published sessions stay in list --org indefinitely (dc-acceptance-bd31, dc-o5accept-d0fb, dc-acc-c2be, dc-lease-2bd6, phone-walk).

Change

A machine is retired at now when it is not enrolled in the head (head.machines) and every machine certificate bearing its name is retired at or before now (certificates.retirements). For such a machine:

  • its machine project goes out retired: true;
  • its machines entry carries an optional retired: true. The field is optional and additive, so an older sminos ignores it.

Decide while building whether a retired machine stays in machines or projects at all, or goes only with the flag. The flag is preferred, because sminos (doperpowers, O12) then shows that machine's rows as gone behind +N hidden, and sminos machines says retired. A machine that is merely offline keeps retired: false, since it comes back.

Acceptance

  • Red-first unit cases in the org-directory test file:
    • a cert-only machine whose only certificate is retired → retired: true on both entries;
    • a machine with one retired and one live certificate → not retired;
    • an enrolled machine → never retired by certificate retirement;
    • a retirement dated after now → not yet retired.
  • The directory is restated when the certificate set changes (link.ts already restates on a new head or certificate set; confirm retirements count as a change).

The sminos side (O12: gone for a retired machine's rows) is the desk track's, filed on the doperpowers board, and it builds on this field.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 5, 2026
  2. SSFSKIM commented on Nov 5, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: taken by p5-desk-track-owner (O10 owner); branch o10-directory-retired

  3. added
    status:in-review
    and removed
    status:in-progress
    on Nov 5, 2026
  4. SSFSKIM commented on Nov 5, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #475 (head d584427; static/unit/e2e:desk-web green 41970740033; reviewer-medium round 2 correct)

  5. added a commit that references this issue on Nov 5, 2026
  6. removed
    status:in-review
    on Nov 5, 2026
  7. SSFSKIM commented on Nov 5, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: landed as PR #475, merge 91ca5d0 (records bf2dce3, P5 DL 218)

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

    enhancementpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions