spec: ReversibilityDistance contract + Appendix-A reference estimator (E13/WS-D) - #283
Open
mdheller wants to merge 1 commit into
Open
spec: ReversibilityDistance contract + Appendix-A reference estimator (E13/WS-D)#283mdheller wants to merge 1 commit into
mdheller wants to merge 1 commit into
Conversation
… (E13/WS-D) Add the reversibility-distance civic meter of the reidentification economy: a per-release/twin reading of D = E[log2 k] (residual identity entropy in bits) against the singling-out budget log2 N. D is the same ledger as a MultiversealTwin's epsilon-unlinkability budget, with two orthogonal controls (DP rate-limit on dD, capture receipt gating query Q). - schemas/ReversibilityDistance.json (JSON Schema 2020-12) - examples/reversibility_distance.json - tools/validate_reversibility_distance_examples.py (schema + invariants) - tools/reversibility_distance.py (numpy-only estimator; __main__ self-test reproduces the appendix's Sweeney and de Montjoye worked examples) - docs/adr/0020-reversibility-distance-meter.md - Makefile: wired into the validate: aggregate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Epoch E13 / workstream WS-D — reversibility distance as a civic primitive
Lands
ReversibilityDistance, the published civic meter of the reidentification economy(reidentification-economy Appendix A), plus a self-proving reference estimator.
To single one subject out of a population
Ncostslog2 Nbits (the singling-out budget).The reversibility distance
D = E[log2 k]is the residual identity entropy — the bits anadversary must still acquire to reidentify.
D == 0means fully reversible.Dis the samenumber as a
MultiversealTwin's ε-unlinkability budget (ADR-0014): privacy, capacity andreidentifiability are one ledger, with two orthogonal controls — a DP rate-limit on ΔD, and a
capture receipt gating whether the identifying query
Qis produced at all.Files added
schemas/ReversibilityDistance.json— JSON Schema 2020-12,$id.../v2/ReversibilityDistance.json,additionalProperties:false, URN prefixurn:srcos:reversibility-distance:.examples/reversibility_distance.json— canonical example.tools/validate_reversibility_distance_examples.py— schema + invariants (dBits>=0;reidentified == (dBits==0); unicity-curve well-formed;budgetBits ≈ log2 N).tools/reversibility_distance.py— numpy-only Appendix-A estimator (unicity_closed_form,reversibility_distance,fit_unicity_exponent). Its__main__self-test reproduces the appendix's worked examples (Sweeney N=2.48e8 → ε≈0.921; de Montjoye N=1.5e6 → r≈73.5, coarsened p=4→ε≈0.44, p=5→ε≈0.978) with asserts.docs/adr/0020-reversibility-distance-meter.md— ADR (relates to ADR-0014).Makefile— wiredvalidate-reversibility-distance-examplesinto thevalidate:aggregate.Verification (all pass)
validate_reversibility_distance_examples.py: OK (schema + invariants).scripts/check_duplicate_schema_ids.py:OK: 353 unique schema $id values.tools/validate_schema_references.py: all$refs resolve.🤖 Generated with Claude Code