Repository navigation
Commit 56e7414
Eva
docs(nip-fi): resolve contradictions between the spec, its own rules, and the deployed wire
External line-by-line review against the implementation found compositions
no internal-consistency pass could see: rules that contradict each other
across documents, and registry text that denies the wire the deployed proxy
actually signs. Every reading failed closed, but a correct implementation
could not be built from the text alone. Fixes, one per defect:
- EDGE strip rule no longer removes the NIP-98 proof: requirement 1 named
"authorization" among the fields every trusted edge strips, while core
reserves the Authorization header for the NIP-98 proof that must reach
final admission. The rule now names the three NIP-FI fields plus other
edge profiles' fields, explicitly preserves Authorization, and a negative
conformance sentence makes stripping or rewriting it nonconformant.
- Proof-transport codes 0x03 (Git smart-HTTP session) and 0x04 (Blossom
media) are reserved with fixed meanings: the deployed proxy emits both
inside the MAC input, and the registry declared them unassigned, so a
conforming verifier denied every Git and Blossom envelope. Allocation
completes when each transport contract is published; until then the codes
are valid only under an explicit shared proxy/verifier contract and are
not portable interoperability.
- Replay moves from evidence_rejected to authorization_denied: replay
status is committed per-principal server state, so classing it as
evidence rejection contradicted the supplied-evidence privacy rule and
let an attacker resubmit captured evidence to learn whether the original
request committed. The CONF fixture table mirrors the move.
- The current-status witness match now requires issuer equality: the
witness tuple carried iss but the match rule checked only subject and
session, so on a shared status source an issuer-B witness could satisfy
a pre-revocation issuer-A assertion. The stale-status oracle gains the
mismatch arm.
- The interoperability exit test is deferrable while no independent
implementation exists (machine-readable reason, re-evidenced when the
second implementation claims), and the canonical shared exit fixture
gains provenance: editor-authored, published at
docs/nips/fixtures/nip-fi-conf-exit.json with its SHA-256 digest. A
required gate no implementation could ever pass was, by this document's
own standard, a defect in the document.
- The "RFC 9068 access token" class is renamed at+jwt access token at all
three sites: it selects on typ and aud and validates under this
document's claim contract, not the full RFC 9068 profile.
- EDGE states the unbound-body-metadata rule directly instead of by
cross-document inference, and the negative matrix gains the
Content-Type/Content-Encoding mutation row.
- Absent or incomplete edge provenance maps to missing_evidence; present
but failing provenance maps to evidence_rejected. The CONF fixture table
gains the absent-provenance row; rows are renumbered, which is safe
because CONF itself requires that no text reference rows by number.
- A payload tag on an authorization-irrelevant body is validated
identically, closing a verifier divergence the text left open.
Oracle census is unchanged at 58 (30 core, 6 EDGE, 11 LIFECYCLE, 7 DELEG,
4 CONF): the two table additions are a negative-matrix row and a
denial-fixture row, neither in the oracle denominator. One review item
(equivalence classification of revalidation dependencies) is deliberately
not in this commit pending model verification that the reclassification
opens no authority-extension path.
Co-authored-by: Eva <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@buzz.block.builderlab.xyz>
Signed-off-by: Eva <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@buzz.block.builderlab.xyz>1 parent 4f913a8 commit 56e7414
3 files changed
Lines changed: 93 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
| |||
333 | 337 | | |
334 | 338 | | |
335 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
336 | 347 | | |
337 | 348 | | |
338 | 349 | | |
| |||
381 | 392 | | |
382 | 393 | | |
383 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
384 | 403 | | |
385 | 404 | | |
386 | 405 | | |
| |||
414 | 433 | | |
415 | 434 | | |
416 | 435 | | |
417 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
418 | 439 | | |
419 | 440 | | |
420 | 441 | | |
| |||
425 | 446 | | |
426 | 447 | | |
427 | 448 | | |
428 | | - | |
| 449 | + | |
429 | 450 | | |
430 | 451 | | |
431 | 452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
58 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
| |||
161 | 168 | | |
162 | 169 | | |
163 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
164 | 176 | | |
165 | 177 | | |
166 | 178 | | |
| |||
177 | 189 | | |
178 | 190 | | |
179 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
180 | 197 | | |
181 | 198 | | |
182 | 199 | | |
| |||
196 | 213 | | |
197 | 214 | | |
198 | 215 | | |
199 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
200 | 219 | | |
201 | 220 | | |
202 | 221 | | |
| |||
206 | 225 | | |
207 | 226 | | |
208 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
209 | 235 | | |
210 | 236 | | |
211 | 237 | | |
| |||
334 | 360 | | |
335 | 361 | | |
336 | 362 | | |
| 363 | + | |
337 | 364 | | |
338 | 365 | | |
339 | 366 | | |
| |||
0 commit comments