Repository navigation
docs: the per-NIP porting ledger, and the gate's first reading - #1180
Conversation
One row per advertised NIP with its v3 oracle, the Rust test that proves the same behaviour, the inversion that would turn that test red, and a status. 15 ported, 8 partial, 2 open at f01cb5f. Every Rust citation was checked to exist at that commit; the two open rows were read in the code, not inferred from a missing file. NIP-11 has no HTTP surface and NIP-77 answers NEG-OPEN as an invalid frame, so neither can be closed by writing a test.
🦋 Changeset detectedLatest commit: 4274b87 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
[Low impact] The documentation changes appear safe to merge.
|
- NIP-16 cited a strategy test that asserts the upsert *call* on an empty fixture, so it could not catch an old event being kept; the wire-level kind-41 replace test can, and is now cited first. - NIP-22's test asserts each tag with contains, so reordering stays green; the teeth column now claims only a dropped tag. - NIP-50's rank order is already proven in parity_lmdb; the row cites those three tests and narrows the gap to served-frame order. - NIP-43 needs code, not a test: no kind 13534 membership list exists, so it is split out of the test-only rows.
What
docs/rewrite/nip-porting.md— the per-NIP ledger thatdocs/rewrite/kpis.md§1 names as theonly one of its six KPIs with no artifact yet. One row per advertised NIP (the 25 in
package.json:7at041fe34e), each with:041fe34ethat pins the behaviour today;rewrite/mainthat proves the same behaviour;ported,partialoropen.First reading
15 of 25
ported, 8partial, 2open, atf01cb5f3.Every Rust citation was checked to exist at that commit; the two
openrows were read in thecode rather than inferred from a missing file:
supported_nips.rsasserts a constant and no reading of it proves a served document.NEG-OPENwith["NOTICE","invalid: Invalid input"]and bothencoders return
NotImplemented;negentropy_parity.rsasserts library frames, never relaysync.
So the cutover gate cannot reach 25/25 by writing tests alone: two rows need building.
The eight
partialrows are branches a test was never written for —limit: 0on the wire,the restricted-read default, the
nonce/difficultytag, reaction content and store/serve,kinds 43–49, a non-empty
COUNT, rank ordering, and the kind 13534 membership list.Why the denominator is the v3 set
crates/nostream-core/src/constants.rs:17carries 34 ids, and the two sets differ in bothdirections (10 added,
15dropped). §1 of the document states both and why the gate uses thev3 set: it measures whether the rewrite reproduces what v3 promised, while the Rust list is a
decision about what the rewrite will claim afterwards.
kpis.md§1 and §8 are updated to point at the built artifact.Refs #860