You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow-on design ticket from #5683 — its decomposition sketch names this as a separate design, and the parent's acceptance requires these tickets to be filed and linked. Filed in the 2026-11-04 gap pass (WS-F) so the design work exists and can be prioritised on its own merits; implementation timing is a separate decision, possibly months out.
What this design must settle
Derivation, retention, and error modes of public-IP evidence — and the decisions IP evidence may and may not drive.
Context from the parent
The parent framework — Drew-ruled opt-in and framework-first — fixes how residency evidence, sanctions boundaries, and intranet mode are represented and enforced. The parent issue carries the surrounding decisions this ticket must not re-decide; where this ticket's answer would change a parent decision, record that explicitly rather than silently forking it.
Decision record expected
Close this design with a recorded decision (on this issue or in a doc/ record linked from it): the chosen shape, the alternatives rejected and why, and the invariants implementation must hold. If the design splits further, file the splits and link them here rather than growing this issue.
Relations
Parent: #5683. Programme: epic #2056. Filed by WS-F (2026-11-04 ID design gap & expansion pass).
The prior triages (task 10279, 2026-11-05; fallback revalidation 2026-11-07, note 6702007965) are confirmed still current: no decision record for public-IP evidence has landed — no PR or doc/ record resolving this ticket exists.
The deliverable is unchanged and unstarted: a recorded decision on derivation, retention, and error modes of public-IP evidence, and which decisions IP evidence may and may not drive — recorded on this issue or in a linked doc/ record, with alternatives rejected and invariants stated.
Routing
Converted to a work packet (dedupe repo-health:v1:fix:developing-today/code:issue:5877) scoped to producing that decision record, explicitly bound by the parent #5683 framework decisions (record any parent-changing answer explicitly rather than forking it). Per Drew's triage doctrine, this triage does NOT close the issue — it returns for real work via that packet.
Status: DECIDED by this comment, which is the decision record the issue requires (the issue allows the record on the issue itself). No parent #5683 decision is changed by this record; section 7 states the one dependency explicitly instead of forking it.
Grounding (verified fresh 2026-11-08, task 12841): no public-IP evidence handling exists anywhere in pkgs/id today (grep over pkgs/id/src and pkgs/id/crates/id-core/src is empty). The vocabulary this record builds on is pkgs/id/crates/id-core/src/residency.rs (the #3398 step-1 evaluator): an Evidence is an issuer-signed assertion (issuer, resource, plane, jurisdiction, source, expires_at, serial, signature); a Policy trusts evidence sources per plane (Policy::trust_evidence_source); evaluation is default-deny and a plane with no acceptable evidence is unknown (DenyReason::PlaneUnknown / NoEvidence), never assumed.
1. What public-IP evidence is (chosen)
A public IP is observed, not asserted - no trusted issuer signs it. Public-IP evidence is therefore an observation class, not an Evidence assertion in the residency.rs sense:
An observation record is { observed_ip, observer, observation_point, observed_at, ttl }: the IP as seen by an observation point the operator controls (section 2), when, and how long the observation stays usable.
It enters residency evaluation only as a named evidence source (working name: public-ip-observation) that a policy explicitly trusts for a plane via trust_evidence_source - the parent's opt-in rule applied literally: a policy that does not name the source is unaffected by IP observations existing at all.
Assurance: the lowest tier. Where sibling id: design: residency evidence model (from #5683) #5876's evidence model defines assurance levels, this class maps to its lowest; this record deliberately does not invent a parallel assurance taxonomy (section 7).
2. Derivation (chosen)
Two derivation points, both operator-controlled; nothing else counts as an observation:
Ingress peer: the socket peer address of a connection terminated at an operator-run edge (the first untrusted hop). Forwarding headers (X-Forwarded-For and kin) beyond the first trusted proxy hop are never derivation input - they are client-controlled text.
Egress echo: an operator-run rendezvous/echo endpoint (the serve-proxy/broker surface of id: design: id broker / serve-proxy role (from #5671) #5792 is the natural home) reports the public IP an endpoint presents outbound. This covers endpoints behind NAT whose ingress peer is never visible.
Deriving a jurisdiction from an observed IP is a separate, named step: the geolocation mapping (database identity + version) is recorded with every derived claim. The IP is the evidence; the jurisdiction is a mapping output with its own error budget, and is never presented downstream as raw fact.
3. What IP evidence may and may not drive (chosen)
May drive:
Corroboration: raise or lower confidence alongside issuer-signed Evidence for the same plane/resource. An Allow still rests on the signed evidence; IP observation is supporting, never load-bearing.
Step-up: a contradiction between an IP-derived jurisdiction and signed/declared evidence may trigger a request for stronger evidence, or mark the plane contested for a human/operator decision.
Audit and debugging: observation records in decision logs, so a past decision can be reproduced (what IP, seen where, mapped by which database version).
May not drive:
Never the sole basis for a Deny. Not for residency boundaries, not for sanctions, not for intranet-mode exclusion. VPN and Tor exits, CGNAT, corporate egress, travel, and address reassignment make IP location routinely wrong about the subject; a control that denies on it punishes exactly the users behaving normally through shared infrastructure, while a motivated violator evades it in seconds.
Never an override. A contradiction with signed or declared evidence escalates (step-up / contested), it does not resolve in either direction automatically.
Never a default. Capabilities-never-defaults (parent rule): no policy gains IP-based behavior by upgrading; the source is named per policy or it does not exist for that policy.
4. Retention (chosen)
Raw observation records are operational telemetry: retained for a short operator-configured window (default 30 days), then deleted or aggregated to counts. No indefinite raw-IP store, and no building of per-person IP histories - records are keyed by resource and observation point, not by person.
What outlives the window is the decision audit: the derived claim, the mapping database identity+version, the timestamp, and the decision it corroborated - enough to reproduce a decision, not enough to reconstruct movements.
A subject's IP observations are never disclosed to other parties (grantees, other tenants); this composes with the parent framework's declaration-privacy direction rather than weakening it.
5. Error modes (named)
Spoofed forwarding headers - excluded by construction (section 2: socket peer / first trusted hop only).
Shared egress (CGNAT, corporate NAT, VPN exit) - many subjects, one IP: an observation binds to the egress point, not to a device or person; treating it as a subject binding is BindingMismatch in residency terms.
VPN/Tor exit geography - the exit's jurisdiction is not the subject's; the core reason section 3 forbids IP-only denies.
Stale mapping - reassignment outruns geolocation databases; the recorded mapping version + short observation TTL bound the blast radius, and a mapping dispute is resolved against the mapping, not against the subject.
v4/v6 divergence - one endpoint, two egress IPs with different derived jurisdictions; observations are per-connection, and a dual-stack endpoint legitimately produces both.
Compromised or misconfigured observer - a lying observation point is the analogue of a bad issuer; the corroboration-only role (section 3) is the containment: it cannot alone allow or deny anything.
6. Invariants implementation must hold
An IP observation alone never produces a Deny in any plane, under any policy.
Contradiction between IP-derived jurisdiction and signed/declared evidence yields step-up or contested - never a silent override in either direction.
A policy that does not name the public-ip-observation source behaves exactly as if no IP observations exist.
Every use of an IP observation in a decision records: observed IP, observer, observation point, mapping identity+version (when a jurisdiction was derived), timestamp, TTL.
An expired observation is NoEvidence (the residency evaluator's existing semantics), never negative evidence.
Forwarding-header data beyond the first trusted hop is never derivation input.
Raw observation retention never exceeds the configured window (default 30 days); audit records keep the derived claim + mapping version, not movement history.
7. Relation to parent and sibling decisions (explicit, not a fork)
Nothing here re-decides #5683: the record consumes the parent's opt-in/framework-first rulings and the residency.rs source mechanism, and it assumes #5876 will own the general evidence model (assurance levels, declaration lifecycle) with this observation class as its lowest-assurance member. One dependency is recorded explicitly: if#5683's framework or #5876's model later rules that only issuer-signed evidence classes may exist, this observation class would need a parent amendment - that ruling, if it comes, belongs on #5683/#5876; it is not pre-empted or forked here.
8. Alternatives rejected
IP as a signed issuer Evidence (geolocation vendor as issuer): imports the vendor's error rate into Deny decisions behind a signature's false authority; the vendor attests a database lookup, not a location.
IP as a hard geo-gate: false-deny collateral (section 5) plus trivial evasion - enforcement theater with real victims.
Ignore IP entirely: throws away a cheap corroboration and step-up signal and the audit value of recording what was observed when a decision was made.
Indefinite raw-IP retention as an identity/history store: privacy and breach surface out of all proportion to the signal, and against the parent framework's declaration-privacy direction.
Activity
developing-today commentedon Nov 5, 2026
CODE-1560
dezren39 commentedon Nov 5, 2026
🤖 Agent note · handed off
23 remaining items
developing-today commentedon Nov 8, 2026
🤖 Agent note · triage verdict (queue task 12363, lane code-v, 2026-11-07)
Verdict: REAL AND CURRENT — design remainder confirmed, converted to a work packet
Re-verified fresh this shift:
task/triage,app/id,status/triaged— no hard-stop labels (held,user/owned,do-not-merge,do-not-auto-edit).doc/record resolving this ticket exists.doc/record, with alternatives rejected and invariants stated.Routing
Converted to a work packet (dedupe
repo-health:v1:fix:developing-today/code:issue:5877) scoped to producing that decision record, explicitly bound by the parent #5683 framework decisions (record any parent-changing answer explicitly rather than forking it). Per Drew's triage doctrine, this triage does NOT close the issue — it returns for real work via that packet.developing-today commentedon Nov 8, 2026
🤖 Agent note · picked up
developing-today commentedon Nov 8, 2026
Agent note - design decision recorded for task 12841
Decision record: public-IP evidence (from #5683)
Status: DECIDED by this comment, which is the decision record the issue requires (the issue allows the record on the issue itself). No parent #5683 decision is changed by this record; section 7 states the one dependency explicitly instead of forking it.
Grounding (verified fresh 2026-11-08, task 12841): no public-IP evidence handling exists anywhere in pkgs/id today (grep over pkgs/id/src and pkgs/id/crates/id-core/src is empty). The vocabulary this record builds on is pkgs/id/crates/id-core/src/residency.rs (the #3398 step-1 evaluator): an Evidence is an issuer-signed assertion (issuer, resource, plane, jurisdiction, source, expires_at, serial, signature); a Policy trusts evidence sources per plane (Policy::trust_evidence_source); evaluation is default-deny and a plane with no acceptable evidence is unknown (DenyReason::PlaneUnknown / NoEvidence), never assumed.
1. What public-IP evidence is (chosen)
A public IP is observed, not asserted - no trusted issuer signs it. Public-IP evidence is therefore an observation class, not an Evidence assertion in the residency.rs sense:
2. Derivation (chosen)
Two derivation points, both operator-controlled; nothing else counts as an observation:
Deriving a jurisdiction from an observed IP is a separate, named step: the geolocation mapping (database identity + version) is recorded with every derived claim. The IP is the evidence; the jurisdiction is a mapping output with its own error budget, and is never presented downstream as raw fact.
3. What IP evidence may and may not drive (chosen)
May drive:
May not drive:
4. Retention (chosen)
5. Error modes (named)
6. Invariants implementation must hold
7. Relation to parent and sibling decisions (explicit, not a fork)
Nothing here re-decides #5683: the record consumes the parent's opt-in/framework-first rulings and the residency.rs source mechanism, and it assumes #5876 will own the general evidence model (assurance levels, declaration lifecycle) with this observation class as its lowest-assurance member. One dependency is recorded explicitly: if #5683's framework or #5876's model later rules that only issuer-signed evidence classes may exist, this observation class would need a parent amendment - that ruling, if it comes, belongs on #5683/#5876; it is not pre-empted or forked here.
8. Alternatives rejected