Skip to content

[Rewrite P6] Close the seven test-only gaps in the NIP porting ledger #1181

Open

Description

@chappie-daemon

Parent: #860 · Ledger: docs/rewrite/nip-porting.md (merged in #1180)

The ledger records 15 of 25 advertised NIPs as ported, 8 partial and 2 open. Seven of the
eight partials are a test that was never written: the behaviour exists in Rust and nothing
asserts it. This issue closes those seven, and nothing else.

NIP what is unasserted where the behaviour lives
01 limit: 0 on the wire (the store proves it; no REQ does) crates/nostream-relay/src/… filter handling; store test is parity_lmdb.rs::a_zero_limit_returns_no_rows
04 the restricted-read default for kind 4, list empty unless restrictedReads.enabled the settings default and the read gate
13 the nonce/difficulty tag path (the bit arithmetic is covered by pow_parity.rs) crates/nostream-core pow module and the relay's admission check
25 reaction content +/-/emoji, and a kind 7 stored and served crates/nostream-relay default strategy
28 kinds 43–49 (only 40/41/42 are exercised) channel kinds in the replaceable predicate
45 a COUNT over a non-empty match set (every current test counts an empty store) crates/nostream-relay count handler
50 served-frame order matching the store's rank (the store proves rank; the wire test asserts membership) relay read path over the NIP-50 search

Acceptance

  • One test per row, in the file the ledger names or one adjacent to it.
  • Each test proved red by an inversion: the change described in that row's teeth cell is
    applied, the test fails, and the failure is recorded in the pull request. A test that cannot
    be made to fail is the defect this issue exists to fix.
  • The ledger's rust test and status cells updated for each closed row, and the count in
    docs/rewrite/kpis.md §1 corrected to match. Expected result: 22 of 25 ported.
  • NIP-04 and NIP-50 keep their rows honest: if the restricted-read default has no
    representation in Rust yet, say so and leave the row partial rather than asserting a
    narrower behaviour and calling it done.

Out of scope: NIP-11 and NIP-77 (both need a surface built — HTTP document, negentropy on
the wire) and NIP-43's kind 13534 membership list (needs code, not a test).

Activity

  1. victrvondoom commented on Nov 19, 2026

    @victrvondoom

    I can take a focused set of the missing NIP assertions; please assign me if useful. An efficient approach is to add one protocol-visible test per ledger row beside the existing relay tests, reuse current fixtures, and demonstrate each assertion fails when its behavior is deliberately inverted before updating the ledger. The less-obvious factor is that store-level coverage does not prove relay behavior: ordering, filtering, and the served frame must be checked at the relay boundary, and any behavior not implemented yet should remain marked partial rather than be inferred by a test.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions