Skip to content

docs(conventions): settle the member-order page wording #2765 left open #2772

Closed

Description

@JarryShaw

What
#2765 (closing #2490) applied rule c, subgroup d and registry-map order, using my recommendations on five wording questions that protocol-member-order.rst leaves open. #2490 closed before they were ruled on, so they move here with needs: decision.

  1. Several registries in one class: list all readers before all makers (the MH/PCAPNG shape)? Rec: yes; the guard checks only within each registry.
  2. PCAPNG.__option__ order: namespace then value, or by opt_value? Rec: namespace then value, written on the page.
  3. Int keys with no enum: change "alphabetically" to "by key value", which is what TCP/UDP/FRAD now do? Rec: yes. This is the one place where the page and the code currently disagree.
  4. PCAP-NG Option.__enum__: in scope? Rec: out of scope, since Option.register's warning relies on its order.
  5. .rst member lists (e.g. IPv4's) no longer follow source order. Rec: realign them in this issue's docs-only PR.

Activity

  1. added
    docsPull requests that change documentation only (docs: subject prefix)
    needs: decisionWaiting on the maintainer to decide — not blocked by other work
    on Nov 4, 2026
  2. moved this to Needs decision in PyPCAPKiton Nov 4, 2026
  3. added this to the PyPCAPKit v1.6 milestone on Nov 4, 2026
  4. JarryShaw commented on Nov 4, 2026

    @JarryShaw
    OwnerAuthor
    1. yes
    2. namespace then value
    3. yes
    4. can we make it in scope?
    5. realign them
  5. JarryShaw commented on Nov 4, 2026

    @JarryShaw
    OwnerAuthor

    Reconciled. On 1, 2, 3 and 5 you took the recommendations. On 4, yes: it can be brought in scope.

    1. Several registries in one class: every reader comes before every maker, the MH/PCAPNG shape. The page says so explicitly.
    2. PCAPNG.__option__: ordered by namespace, then by value. That order is written on the page.
    3. Int keys without an enum: "alphabetically" becomes "by key value", matching what TCP, UDP and FRAD already do.
    4. The PCAP-NG Option.__enum__: today its order matters only because Option.register's clash warning names the clashing namespaces in map order. Make that warning list them in a fixed order of its own, and the map can then follow the page like the rest. The guard gains a check for it.
    5. The .rst member lists (IPv4's and the others): realigned to source order.

    A worker is starting now. The Option.register change touches code, so this goes as a PR rather than a docs-only push.

  6. added
    wipWork in flight - a covering PR is open or an agent is actively on it
    and removed
    needs: decisionWaiting on the maintainer to decide — not blocked by other work
    on Nov 4, 2026
  7. moved this from Needs decision to WIP in PyPCAPKiton Nov 4, 2026
  8. added
    needs: decisionWaiting on the maintainer to decide — not blocked by other work
    on Nov 4, 2026
  9. JarryShaw commented on Nov 4, 2026

    @JarryShaw
    OwnerAuthor

    what needs my decision?

  10. JarryShaw commented on Nov 4, 2026

    @JarryShaw
    OwnerAuthor

    Four small choices on #2779, the PR for this issue. The PR already follows my recommendation on each, so a ruling only adjusts it:

    1. Namespace order in PCAPNG.__option__. (a) Keep OptionType's declared order, which is the map as it stands, with opt first. (b) Go alphabetical. Rec: (a).
    2. SCTP member move. The readers-before-makers rule forced it. (a) Keep it in docs(conventions): settle the member-order page wording and align the protocol registry with the other maps (#2772, #2773) #2779. (b) Split it into its own PR. Rec: (a).
    3. The Protocol docs page. It documents members that ProtocolBase defines, so I left its order alone. (a) Leave it. (b) Realign it to ProtocolBase's source order. Rec: (a).
    4. A guard for .rst member order. Nothing yet checks that the pages stay in source order. (a) Add one as a follow-up. (b) Don't. Rec: (a).

    A reply such as "take all recommendations" here or on #2779 settles it.

  11. JarryShaw commented on Nov 4, 2026

    @JarryShaw
    OwnerAuthor

    take all recommendations

  12. JarryShaw commented on Nov 4, 2026

    @JarryShaw
    OwnerAuthor

    Reconciled: all four recommendations stand. #2779 needs no change.

    1. PCAPNG.__option__ keeps OptionType's namespace order.
    2. The SCTP member move stays in docs(conventions): settle the member-order page wording and align the protocol registry with the other maps (#2772, #2773) #2779.
    3. The Protocol docs page keeps its order.
    4. A guard that keeps the .rst member lists in source order goes in a follow-up issue, filed now. It is test-only, so it can land straight on main once docs(conventions): settle the member-order page wording and align the protocol registry with the other maps (#2772, #2773) #2779 merges.

    Once its cross-review and CI finish, #2779 closes this issue.

  13. removed
    needs: decisionWaiting on the maintainer to decide — not blocked by other work
    on Nov 4, 2026
  14. removed
    wipWork in flight - a covering PR is open or an agent is actively on it
    on Nov 4, 2026
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

    docsPull requests that change documentation only (docs: subject prefix)

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions