House Conventions¶
Important
The pages below record design rulings for pcapkit: decisions not
derivable from the code, which a maintainer or an automated contributor would
otherwise rediscover from a closed issue thread. Each ruling names where it
was settled.
What each page governs:
The Registry Protocol –
pcapkit.constagain, the registration wrappers ofpcapkit.foundation.registry, how amake()field holding an enumeration resolves, and the value a protocol’s__index__()returns;Extension-Header Base Classes – a protocol class hierarchy;
Protocol Family Grouping – how a protocol family’s base and members spell
id(), how a protocol’s package, modules and classes are named and imported, and how quietly a next-layer fallback keeps a refused layer asRaw;Protocol Member Order – the order of members in a protocol class body, and the section comment each member of any class sits under;
Protocol Layer Placement – which subpackage a dissector belongs in;
Running the Repository – the repository rather than any of its code;
Writing the Documentation – the prose itself, on these pages and in the API reference, rather than any code at all;
Testing a Change – what the test suite has to prove, and what a
pcapkit.dumpkitdumper writes;Choosing Between utilities and corekit – which of
pcapkit.utilitiesandpcapkit.corekita support module belongs in, how autilitiesmodule is named, where a context variable lives, where a schema helper used outside the schema layer or outside its own protocol lives, where a format constant or a helper referenced beyond its own protocol lives, where a protocol’s other constants live, what reads a capture cut, and how a multi-word module name separates its words;Reassembly Integration –
pcapkit.foundation.reassemblyand what a new engine there needs frompcapkit.toolkitandpcapkit.foundation.analysis, how its callbacks and those ofpcapkit.foundation.traceflowrun, how a reassembler’s or flow tracer’s package is laid out, and how an engine feeds each reassembler and flow tracer;Const-Vendor Pairing –
pcapkit.const, thepcapkit.vendorcrawler each module needs, and how a package of it imports its modules;Public Signatures – how a public function or class of
pcapkit.interface,pcapkit.foundationorpcapkit.protocolstakes its arguments, and which settings are options rather thanPCAPKIT_*tunables.
A ruling that stays in its thread is a ruling that gets rediscovered. So a question answered in a way the code cannot express on its own – a classification, a naming rule, a deliberate asymmetry – is written onto the page that covers it in the same change that implements it, on the owner’s standing ask on #918.
- Minting an Unrecognised Value
- Naming a Sentinel
- The Registry Protocol
- Extension-Header Base Classes
- Protocol Family Grouping
- Protocol Member Order
- Protocol Layer Placement
- Running the Repository
- Writing the Documentation
- Testing a Change
- Choosing Between
utilitiesandcorekit - Reassembly Integration
- Const-Vendor Pairing
- Public Signatures