reticulum-js
    Preparing search index...

    Class AutoInterface

    AutoInterface — zero-config IPv6-multicast local-network peering.

    Phases 1–3 of work doc #12: discovery + peer tracking (1), the data path (2), and the lifecycle jobs — peer expiry, reverse-peering send, link-local rebind, multicast-echo watchdog (3). Phase 4 (register in the interface registry; schema already present) remains. (AutoInterfacePeer) and registering it with a transport arrives in Phase 2; the lifecycle jobs (expiry, reverse-peering send, rebind, watchdog) arrive in Phase 3.

    The parent interface dispatches:

    • "connected" once discovery sockets are up,
    • "peer" with { address, ifname } when a new peer is authenticated (Phase 2 will additionally spawn a peer interface and dispatch "connection"),
    • "closed" on disconnect(),
    • "error" on socket errors.

    Hierarchy

    • Interface
      • AutoInterface
    Index
    _announceTimers: Record<string, Timeout>
    _closed: boolean = false

    Whether a terminal closed event has already been dispatched for the current connection episode (dedupe guard).

    _packetWriter: WritableStreamDefaultWriter<any> | null = null
    _peerJobsTimer: Timeout | null
    _reconnectAbort: AbortController | null = null

    AbortController for the current reconnect wait, so disconnect() can cancel an in-flight backoff immediately.

    _reconnectAttempts: number = 0

    Reconnect attempt counter for the current drop episode. Reset to 0 at the start of each Interface._runReconnectLoop run.

    _reconnecting: boolean = false

    Single-flight guard: only one reconnect loop runs at a time.

    adoptedInterfaces: Record<string, string>
    allowedInterfaces: string[]
    announceBurstCount: number = 0

    Times an announce burst has latched on this interface.

    announceInterval: number
    arFreqDecay: number = Interface.ANNOUNCE_FREQ_DECAY
    autoReconnect: boolean = RECONNECT_DEFAULTS.autoReconnect

    Whether automatic reconnection is enabled for this initiator interface.

    bitrate: number
    carrierChanged: boolean

    Set whenever peer/link state changes a way that should reset announce-rate control.

    connectTimeout: number = RECONNECT_DEFAULTS.connectTimeout

    Per-dial connect timeout in seconds.

    created: number = ...

    Epoch milliseconds when the interface was constructed (self.created in the Python reference, which uses time.time()).

    dataPort: number
    dataSockets: Record<string, Socket>
    DEFAULT_IFAC_SIZE: number = 16

    Per-interface default IFAC size (bytes) when IFAC is enabled but no explicit ifacSize was given. Mirrors DEFAULT_IFAC_SIZE on each Python interface (16 for Auto/Backbone, 8 for AX.25). Subclasses override; the base default of 16 matches the common case.

    detached: boolean = false

    Permanent stop signal read by the reconnect loop. Set by disconnect().

    discoveryPort: number
    discoveryScope: string
    gravity: number | null = null

    Per-interface path preference weight (Interface.gravity in the Python reference, DEFAULT_GRAVITY = 0). When the same announce reaches this node over multiple interfaces, the path table prefers the entry learned via the higher-gravity interface (e.g. a wired backbone over a slow radio link). null means "no preference" — import("../core/reticulum.js").Reticulum substitutes its defaultGravity at addInterface time.

    groupId: Uint8Array<ArrayBuffer>
    heldAnnounceDrops: number = 0

    Announces dropped (not held) because the held table was at its cap.

    heldAnnounceReleases: number = 0

    Held announces released back into the inbound pipeline.

    heldAnnounces: Map<string, Packet> = ...

    Announces held while an ingress burst is latched, keyed by destination hash hex (Python held_announces). Drained by processHeldAnnounces on the transport sweep.

    iaFreqDeque: number[] = []

    Incoming-announce timestamp ring (seconds).

    icBurstActivated: number = 0
    icBurstActive: boolean = false
    icBurstFreq: number = Interface.IC_BURST_FREQ
    icBurstFreqNew: number = Interface.IC_BURST_FREQ_NEW
    icBurstHold: number = Interface.IC_BURST_HOLD
    icBurstPenalty: number = Interface.IC_BURST_PENALTY
    icHeldRelease: number = 0

    Earliest held-announce release time (seconds); set on burst activation.

    icHeldReleaseInterval: number = Interface.IC_HELD_RELEASE_INTERVAL
    icMaxHeldAnnounces: number = Interface.MAX_HELD_ANNOUNCES
    icNewTime: number = Interface.IC_NEW_TIME
    icPrBurstActivated: number = 0
    icPrBurstActive: boolean = false
    icPrBurstCooldown: number = 0

    Remaining quiet evaluations before a latched PR burst unlatches.

    icPrBurstFreq: number = Interface.IC_PR_BURST_FREQ
    icPrBurstFreqNew: number = Interface.IC_PR_BURST_FREQ_NEW
    ifacIdentity: Identity | null = null

    Derived IFAC Ed25519 identity (only its signing ability is used). Populated lazily by _ensureIfacMaterial; null while IFAC is disabled or before first use.

    ifacKey: Uint8Array<ArrayBufferLike> | null = null

    Derived 64-byte IFAC key (HKDF over import("../core/ifac.js").IFAC_SALT).

    ifacNetkey: string | null = null

    Shared passphrase enabling IFAC (ifac_netkey). See ifacNetname.

    ifacNetname: string | null = null

    Shared network name enabling IFAC (ifac_netname). When set together with ifacNetkey (or alone), packets on this interface are authenticated and obfuscated. Both endpoints must share the same value.

    ifacSignature: Uint8Array<ArrayBufferLike> | null = null

    IFAC signature of fullHash(ifacKey), published in the discovery announce.

    ifacSize: number
    ifacViolations: number = 0

    IFAC-specific violations: missing/invalid/short IFAC fields.

    ignoredInterfaces: string[]
    ingressControl: boolean = true

    Whether ingress burst control is enabled on this interface (Python ingress_control). Disabling makes shouldIngressLimit and shouldIngressLimitPr always return false.

    initialEchoes: Record<string, number>
    initiator: boolean = false

    Whether this interface is the initiator (the outbound dialer). Only initiators reconnect; adopted/server-spawned sockets never do (matching the Python reference initiator flag).

    ipFreqDeque: number[] = []

    Incoming path-request timestamp ring (seconds).

    linkLocalAddresses: string[]
    maxReconnectTries: number = RECONNECT_DEFAULTS.maxReconnectTries

    Maximum reconnection attempts per drop. Infinity retries forever.

    mcastDiscoveryAddress: string | null
    mifDeque: { expiresAt: number; hash: Uint8Array }[]

    Multi-interface dedup deque: recent data-packet hashes with their expiry. Capped at MULTI_IF_DEQUE_LEN entries; a hit within MULTI_IF_DEQUE_TTL drops a duplicate seen on another interface.

    multicastAddressType: string
    multicastEchoes: Record<string, number>
    multicastEchoTimeout: number
    multicastSockets: Record<string, Socket>
    name: string
    oaFreqDeque: number[] = []

    Outgoing-announce timestamp ring (seconds).

    online: boolean
    opFreqDeque: number[] = []

    Outgoing path-request timestamp ring (seconds).

    packetFilterHits: number = 0

    Inbound packet-filter (dedup) hits.

    peeringTimeout: number
    peerJobInterval: number
    peers: Record<
        string,
        { ifname: string; lastHeard: number; lastOutbound: number },
    >
    prBurstCount: number = 0

    Times a path? burst has latched on this interface.

    prBurstDrops: number = 0

    Unique-tag path requests dropped while a PR burst was latched.

    prFreqDecay: number = Interface.PR_FREQ_DECAY
    protocolViolations: number = 0

    Generic protocol violations: malformed packets, bad signatures, etc.

    reconnectWait: number = RECONNECT_DEFAULTS.reconnectWait

    Seconds to wait between reconnection attempts.

    reversePeeringInterval: number
    rxb: number = 0

    Total bytes received on this interface (self.rxb on RNS.Interfaces.Interface in the Python reference). Counted as the deserialized RNS packet length — matching Python's len(data) in each interface's process_incoming — so it reflects the on-the-wire RNS payload, not framing overhead. Apps derive a transfer rate by sampling this counter over time.

    socket: Socket | null = null

    The underlying socket, when this interface is backed by a Node.js stream.

    spawnedInterfaces: Record<string, AutoInterfacePeer>
    timedOutInterfaces: Record<string, boolean>
    transport: TransportCore | null

    Transport that owns this interface, set via attachTransport. When present, spawned peers are auto-registered with it; otherwise the caller registers them via the "connection" event.

    txb: number = 0

    Total bytes transmitted on this interface (self.txb in the Python reference).

    unicastDiscoveryPort: number
    unicastSockets: Record<string, Socket>
    ANNOUNCE_FREQ_DECAY: number = 10

    Seconds after which an unanswered announce sample decays out of the deque (AR_FREQ_DECAY = 1/AR_MINFREQ_HZ = 10 s).

    FREQ_SAMPLES: number = 48

    Rolling-sample cap for the announce/PR frequency deques (IA_FREQ_SAMPLES / IP_FREQ_SAMPLES / OP_FREQ_SAMPLES in the Python reference — all 48; Python reuses IA_FREQ_SAMPLES for the PR deque).

    IC_BURST_FREQ: number = 10

    Announce burst threshold for established interfaces, Hz (IC_BURST_FREQ).

    IC_BURST_FREQ_NEW: number = 3

    Announce burst threshold for new interfaces, Hz (IC_BURST_FREQ_NEW).

    IC_BURST_HOLD: number = 15

    Seconds a burst stays latched after activation (IC_BURST_HOLD).

    IC_BURST_PENALTY: number = 15

    Seconds before held announces may release after a burst (IC_BURST_PENALTY).

    IC_DEQUE_MIN_SAMPLE: number = 2

    Minimum deque samples before a frequency is reported (IC_DEQUE_MIN_SAMPLE = 2 — i.e. > 2 samples).

    IC_HELD_RELEASE_INTERVAL: number = 5

    Seconds between held-announce releases once draining (IC_HELD_RELEASE_INTERVAL).

    IC_NEW_TIME: number = ...

    Interface age in seconds below which the stricter "new interface" burst thresholds apply (IC_NEW_TIME = 2 h).

    IC_PR_BURST_COOLDOWN: number = 3

    Quiet evaluations required to unlatch a PR burst after the hold (ic_pr_burst_cooldown = 3; any above-threshold evaluation resets it). Anti-flapping hysteresis added upstream in "Improved PR ingress limiter" — the announce limiter has no cooldown.

    IC_PR_BURST_FREQ: number = 8

    Path-request burst threshold for established interfaces, Hz (IC_PR_BURST_FREQ).

    IC_PR_BURST_FREQ_NEW: number = 3

    Path-request burst threshold for new interfaces, Hz (IC_PR_BURST_FREQ_NEW).

    MAX_HELD_ANNOUNCES: number = 256

    Maximum held announces buffered per interface while an announce burst is latched (MAX_HELD_ANNOUNCES). A held table at this size silently drops further announces for destinations not already held.

    PR_FREQ_DECAY: number = 10

    Seconds after which a PR sample decays (PR_FREQ_DECAY = 10 s).

    • get ifacEnabled(): boolean

      Whether IFAC is enabled on this interface (a shared secret is configured).

      Returns boolean

    • get peerCount(): number

      Number of spawned peer data interfaces. Mirrors Python's len(self.spawned_interfaces) (the count used for peer_count).

      Returns number

    • get readable(): any

      The parent AutoInterface has no RNS byte stream of its own — it only spawns per-peer interfaces that do. Returns null (rather than throwing) so TransportCore.addInterface can attach the parent to receive the transport ref via attachTransport without trying to grab a writer.

      Returns any

    • Protected

      Signals the reconnect loop to stop and cancels any in-flight backoff. Client subclasses call this at the top of their disconnect().

      Returns void

    • Protected

      Dispatches a terminal closed event exactly once per connection episode.

      Returns void

    • Protected

      Counts an inbound packet against rxb and dispatches the "packet" event, the single inbound chokepoint each interface's read loop funnels through. Mirrors the self.rxb += len(data) + self.owner.inbound(...) pairing in each Python interface's process_incoming.

      Uses the deserialized packet's cached raw bytes when available (set by Packet.deserialize), avoiding a re-serialize. RNodeInterface dispatches its own packets (it counts the IFAC-inclusive payload) and does not call this.

      Parameters

      Returns void

    • Protected

      Derives and caches the IFAC key/identity/signature from the configured ifacNetname / ifacNetkey, mirroring the per-interface setup in RNS/Reticulum.py (~l.975). No-op (resolves false) when IFAC is disabled. Memoised so the HKDF + Ed25519 key load runs at most once.

      Returns Promise<boolean>

      true if IFAC material is available.

    • Protected

      Dials the peer and sets up the RNS streams, resolving once connected and dispatching connected. Implemented by reconnect-capable client subclasses; used both for the initial connection and each reconnect attempt by the shared Interface._runReconnectLoop.

      Returns Promise<void>

    • Protected

      Called when the underlying connection drops (the inbound stream ends or errors). For an initiator with auto-reconnect enabled and not deliberately detached, dispatches disconnected and kicks off the reconnect loop; otherwise dispatches a terminal closed event.

      Matches the Python reference read_loop, which reconnects the initiator on any termination and tears down (non-reconnecting) everyone else.

      Returns void

    • Protected

      Initializes shared reconnect state from constructor options. Called by client interface subclasses (TCP, WebSocket) that support reconnection.

      Subclasses must also set Interface.initiator: true for an outbound dialer, false for an adopted/server-spawned socket.

      Parameters

      • options: ReconnectOptions

      Returns void

    • Decides whether an interface should be adopted, mirroring the Python reference's per-interface skip chain.

      When an allow-list (AutoInterface.allowedInterfaces, devices) is set, only those names are adopted, and they bypass the ignore lists (including loopback) — matching Python's if len(allowed) > 0 and not ifname in allowed: skip, with the same relaxation that lets the single-host loopback smoketest pin lo0 explicitly. (Python unconditionally skips lo0 on Darwin even when allowed; we relax only that, so production parity holds: loopback is never adopted without devices.)

      Parameters

      • ifname: string

      Returns boolean

    • Multi-interface dedup check. Returns true (and remembers nothing) if the packet hash was seen within MULTI_IF_DEQUE_TTL; otherwise remembers it and returns false. Mirrors Python's mif_deque/mif_deque_times logic.

      Parameters

      • hash: Uint8Array<ArrayBufferLike>

        SHA-256 of the raw datagram bytes.

      Returns boolean

      true if the packet is a recent duplicate.

    • Protected

      Authenticates an inbound discovery datagram and, on success, records the peer. Verifies that the first HASHLENGTH_BYTES bytes equal SHA-256(group_id || src_addr), exactly as Python's discovery_handler does. Self-multicast-echoes (src is one of our own link-local addresses) feed the carrier watchdog state instead of adding a peer.

      Parameters

      • data: Uint8Array<ArrayBufferLike>
      • rinfo: { address: string; port: number; scopeId?: number }
      • ifname: string

      Returns Promise<void>

    • Protected

      Verifies and unseals inbound raw wire bytes (RNS.Transport.inbound).

      Enforces the flag-presence rules: an IFAC-enabled interface drops a flag-clear packet, and a plain interface drops a flag-set packet — both return null (silent drop). For an IFAC interface it then unmasks, strips the IFAC and verifies it by re-signing; a mismatch also yields null. Subclasses/interfaces call this at the chokepoint where a frame has been unframed to bytes, just before Packet.deserialize.

      Parameters

      • raw: Uint8Array<ArrayBufferLike>

        Sealed or plain wire bytes straight off the medium.

      Returns Promise<Uint8Array<ArrayBufferLike> | null>

      The unsealed bytes, or null to drop.

    • Protected

      Records an outbound packet against txb. Subclasses (or the interface's outbound stream write callback) call this at the point a packet is handed to the medium — the single chokepoint where every transmitted packet passes, whether sent via send, the transport router, or a broadcast. Mirrors the self.txb += len(data) line in each Python interface's process_outgoing.

      RNodeInterface overrides its own counting (it measures the IFAC-inclusive wire payload) and does not call this.

      Parameters

      Returns void

    • Protected

      One peer-jobs tick. Expires silent peers (and tears down their spawned interfaces), sends reverse-peering packets to peers due for one, rebinds the per-interface data socket when its link-local address changes, and runs the multicast-echo carrier watchdog. Mirrors Python's peer_jobs.

      Returns Promise<void>

    • Protected

      Runs the single-flight reconnect loop. Repeatedly waits reconnectWait seconds then attempts to re-establish the connection via the subclass _establishConnection() hook, until it succeeds, the interface is detached, or maxReconnectTries is exceeded (terminal closed).

      Each attempt fires a reconnecting event with the upcoming attempt number, the wait, and the cap, for observability. A successful reconnect fires connected (via _establishConnection).

      Returns Promise<void>

    • Protected

      Seals raw (un-IFACed) wire bytes for transmit (RNS.Transport.transmit). No-op passthrough when IFAC is disabled; otherwise derives the IFAC material on first use, then signs, sets the ifac_flag, inserts the IFAC field and XOR-masks the packet. Subclasses/interfaces call this at the chokepoint where a packet is serialised to bytes, just before framing.

      Parameters

      • raw: Uint8Array<ArrayBufferLike>

        Serialised, unsealed wire bytes.

      Returns Promise<Uint8Array<ArrayBufferLike>>

      The bytes to put on the medium.

    • Sends a raw RNS packet to a peer on the given interface, from that interface's data socket. The destination is re-scoped with %ifname so the OS routes it out the correct link-local. Mirrors Python's AutoInterfacePeer.process_outgoing send path (Python uses a shared unbound outbound socket + addr%ifindex; we reuse the per-interface bound data socket, which already has the correct source address).

      Parameters

      • addr: string

        Descope'd peer link-local address.

      • ifname: string
      • data: Uint8Array<ArrayBufferLike>

      Returns void

    • Protected

      Resolves after ms, or immediately if signal aborts. Used so disconnect() can cancel an in-flight reconnect backoff at once.

      Parameters

      • ms: number
      • signal: AbortSignal

      Returns Promise<void>

    • The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • Records a discovered peer, or refreshes a known one, mirroring Python's add_peer. For a new peer this spawns an AutoInterfacePeer data interface, registers it with the attached transport (if any), and dispatches a "connection" event with the peer for parity with the other server interfaces.

      If addr is one of our own link-local addresses, this is our own multicast echo: it feeds the carrier watchdog (multicastEchoes/initialEchoes) rather than adding a peer.

      Parameters

      • addr: string

        Descope'd source link-local address.

      • ifname: string

      Returns void

    • Applies node-global ingress-control overrides to this interface (mirrors Python, where every interface reads the [reticulum]-section ic_* defaults via RNS.Reticulum.get_instance()._default_ic_*() — there is no per-interface config for these). Only keys present in overrides are assigned; absent keys keep the class constants. Called by import("../core/reticulum.js").Reticulum#addInterface when the node was constructed with an ingressControl config block. These are deliberately not constructor options / interface schema properties: they scope to the whole node, like the Python reference.

      Parameters

      • overrides: Partial<IngressControlConfig>

      Returns void

    • Receives the owning transport from TransportCore.addInterface so spawned peers can be auto-registered (Open Q1 of work doc #12). Also registers any peers spawned before the transport was attached, so the addInterface/connect call order doesn't matter.

      Parameters

      • transport: TransportCore

      Returns void

    • Enumerates, adopts suitable interfaces, opens the per-interface multicast + unicast discovery sockets, and starts the announce loop and receive handlers. Resolves once all adopted interfaces are listening and dispatches "connected".

      The discovery address and per-interface tokens are derived lazily here (rather than in the constructor) because Identity.fullHash is async.

      Returns Promise<void>

    • Closes all discovery and data sockets, stops the announce loops, disconnects every spawned peer (which dispatches "closed" so an attached transport removes it), drops all tracking state, and dispatches "closed".

      Returns Promise<void>

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().

      MDN Reference

      Parameters

      • event: Event

      Returns boolean

    • Returns a snapshot of traffic and link statistics for this interface, for observability and UIs. Mirrors the fields apps derive from the Python reference's self.rxb / self.txb / self.bitrate / self.created.

      Subclasses that carry medium-specific telemetry (notably import("./rnode.js").RNodeInterface, which exposes RNode airtime, channel load and signal quality) override this to extend the snapshot.

      Returns InterfaceStats

    • Buffers an announce for delayed processing while an ingress burst is latched (Python hold_announce). Announces at or beyond PATHFINDER_M - 1 (127) hops are dropped rather than held; a destination already in the table always replaces its entry (newest emission wins); beyond icMaxHeldAnnounces distinct destinations, new ones are silently dropped.

      Parameters

      • packet: Packet

        Validated announce.

      Returns void

    • Records an IFAC (interface authentication code) violation on this interface (Python ifac_violation): missing IFAC flag, insufficient packet size for the IFAC field, or an IFAC that fails re-verification. Increments ifacViolations, logs at DEBUG, returns null.

      Parameters

      • Optionaldescription: string | null = null

      Returns null

    • Outgoing announce rate in Hz (Python outgoing_announce_frequency). Needs more than one sample.

      Returns number

    • Outgoing path? request rate in Hz (Python outgoing_pr_frequency). Needs more than one sample.

      Returns number

    • Records a packet-filter (dedup) hit on this interface (Python packet_filter_hit): an inbound non-announce packet whose hash is already in the dedup ring. Increments packetFilterHits, returns null.

      Returns null

    • Releases one held announce if conditions allow (the selection half of Python process_held_announces): at most one announce per icHeldReleaseInterval, never before icHeldRelease, and only while the incoming announce frequency is back below the burst threshold. Selection prefers the lowest hop count (nearest destinations converge first). The caller re-injects the returned packet into the normal inbound pipeline (Python spawns a thread calling Transport.inbound(raw, receiving_interface)).

      Returns Packet | null

      The announce to re-inject, or null when nothing is releasable.

    • Records a generic protocol violation on this interface (Python protocol_violation): malformed packets, invalid announce signatures, tagless / oversized path requests, undecodable MTU signalling, inbound processing exceptions. Increments protocolViolations, logs at DEBUG, and returns null so it chains as the return value at every drop site.

      Parameters

      • Optionaldescription: string | null = null

        Optional human-readable detail.

      Returns null

    • Records an inbound announce into iaFreqDeque (Python received_announce). Spawned interfaces propagate the sample to their parent so bursts are detected at the medium level.

      Parameters

      • OptionalfromSpawned: boolean = false

        Internal: true when called on a parent.

      Returns void

    • Records an inbound path? request into ipFreqDeque (Python received_path_request). Spawned interfaces propagate to their parent.

      Parameters

      • OptionalfromSpawned: boolean = false

        Internal: true when called on a parent.

      Returns void

    • The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | EventListenerOptions

      Returns void

    • Records an outbound announce into oaFreqDeque (Python sent_announce); counted by TransportCore.broadcast at the transmit chokepoint, and surfaced as outgoingAnnounceFrequency for the future announce-rate-table work (#31 step 6).

      Parameters

      • OptionalfromSpawned: boolean = false

        Internal: true when called on a parent.

      Returns void

    • Records an outbound path? request into opFreqDeque (Python sent_path_request); consumed by egress PR limiting (work doc #31 step 4).

      Parameters

      • OptionalfromSpawned: boolean = false

        Internal: true when called on a parent.

      Returns void

    • Whether announce ingress should be limited right now (Python should_ingress_limit). Latches a burst when the incoming announce frequency exceeds the threshold for the interface's age — stricter (icBurstFreqNew) during the first icNewTime seconds. Once latched, stays limiting for at least icBurstHold seconds and until the frequency drops back below the threshold; the call that unlatches still reports true (mirroring the Python reference, the next packet after it flows normally).

      Consumers: held-announce buffering for unknown destinations (work doc #31 step 3). The announce frequency side effects (latching plus arming icHeldRelease with the icBurstPenalty) match Python so the state is already correct when that lands.

      Returns boolean

    • Whether path? request ingress should be limited right now (Python should_ingress_limit_pr, incl. the upstream cooldown hysteresis). Latches when the incoming PR frequency exceeds the age-dependent threshold (icPrBurstFreqNew during the first icNewTime seconds, icPrBurstFreq after). Once latched, stays limiting for at least icBurstHold seconds; after the hold, unlatching takes Interface.IC_PR_BURST_COOLDOWN+1 consecutive below-threshold evaluations — any above-threshold evaluation resets the cooldown (anti-flapping at the boundary). Consumers: TransportCore drops unique-tag path requests while a burst is latched (work doc #31 step 2 — our inline processing equivalent of the Python reference's TC_INGRESS_LIMITED traffic-class demotion).

      Returns boolean

    • Returns the JSON Schema describing the options accepted by the AutoInterface constructor, for dynamically-generated setup UIs.

      Returns Record<string, any>

      A JSON Schema object.