Skip to content

id: public-IP evidence derivation, retention, and contradiction handling (#5683 step 3) #7784

Closed

Description

@dezren39

Implementation step 3 of the design in #5683 (design record: doc/2026-11-08_design_id5683.md §4, PR #7781).

Scope

Public IP as weak evidence:

  • Derive country/region verdicts, boundary verdicts (VerdictOnly), and — only when a scope explicitly enables it with a stated retention window — the raw IP.
  • Short default retention (connection lifetime plus a bounded window).
  • Explicit X-Forwarded-For trust configuration, off by default; an untrusted header is ignored, not believed.
  • Contradiction handling: declaration admits + IP contradicts → warn by default; never deny existing access on IP alone.

Hard constraints

  • No weak signal removes access a subject already has (design §3.4).
  • Relay/bridge paths: the visible IP is the relay's — IP evidence is structurally unavailable there and must be treated as unknown, not as the user's address.

Acceptance

  • Property test: IP-derived evidence alone never yields a deny that removes existing access.
  • Untrusted X-Forwarded-For is ignored (test).
  • Disagreeing IP signals resolve to unknown, which denies new access under a scoped policy.

Design: doc/2026-11-08_design_id5683.md §4. Parent: #5683.

Acceptance criteria

  • The problem described above is confirmed against current main (reproduced or traced to the named code path), or the issue is closed with that evidence.
  • A fix/implementation addressing the described behaviour is merged via PR referencing this issue, with tests naming their oracle where the change has meaningful invariants.
  • Related step/sibling issues from the same filing batch are cross-linked and any dependency is recorded as a native blocked-by relation.

Activity

  1. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor
  2. added
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 8, 2026
  3. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    Intake review

    🤖 Agent note · filed

    Related: filed minutes apart with its sibling step issues from the same batch (see the issue titles referencing the same parent); no merged PR or commit found at intake time that resolves this step — it reads as live, not solved.

    Notes: New, unlabelled at filing; acceptance criteria appended to the body by the monitor (original body preserved verbatim above the new section). Labels normalized: kind/enhancement, priority/normal, effort/m, status/needs-triage, app/id where the pkgs/id context applies, meta/enriched.

    Risks: Step-batch issues can duplicate or be superseded by the parent design's own decomposition — the triaging lane should confirm this step is not already covered by a sibling before implementing.

    Suggested approach: Triage through the queue; confirm scope against the parent issue, record any dependency as a native blocked-by relation, then route to a fix packet.

  4. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/highImportant and time-sensitive
    and removed
    priority/normalOrdinary priority (the default)
    on Nov 10, 2026
  5. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

    • Agent: triage-step
    • State: triaged
    • Verdict: work kind task/small-fix · priority/high · effort/m
    • Priority why: priority/high — brief line 2: the ID program's design tracks carry Drew's standing fleet weight; id: public-IP evidence derivation, retention, and contradiction handling (#5683 step 3) #7784 is implementation step 3 of the ratified design(id): residency & boundaries framework — opt-in evidence, sanctions, and intranet-mode capabilities #5683 design.
    • First step: Implement public-IP evidence derivation per doc/2026-11-08_design_id5683.md §4: VerdictOnly by default, explicit X-Forwarded-For trust config off by default, bounded retention, relay paths treated as unknown.
    • Acceptance: IP-derived evidence alone never yields a deny that removes existing access (property test); an untrusted X-Forwarded-For header is ignored (test); disagreeing IP signals resolve to unknown.
    • Fix packet: repo-health:v1:fix:developing-today/code:issue:7784 → queue repo-health-code-pilot. Enqueue result: enqueued new task 14557 (queue repo-health-code-pilot, status queued)
  6. 12 remaining items

  7. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: parked
    worker: repo-worker-code
    lane: any-b
    task: 14557
    note: Resumed to disposition the Codex gate on PR #8551: all 4 P2 findings were real and are fixed in a1211f9 -- empty lookup verdicts resolve to Unknown(LookupEmpty); verdict-only retention strips country/region via verdict_only(); raw-IP retention rejects empty/whitespace purpose (RetentionError::PurposeMissing); ForwardTrust compares parsed addresses so expanded IPv6 spellings match. Regression test per finding; id-core suite 375+1+5 pass, ip_evidence file fmt-clean. Replies posted on all 4 Codex threads. Parked as CI wait on the new head. Resume: checks green + fresh Codex round clean -> merge -> complete fixed_merged.

  8. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up at the merge gate — CI on the head is CANCELLED, not green; re-running, then park on CI

  9. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · fresh Codex round was NOT clean — both new P2s fixed in e0af2994e9; parked on CI for the new head

    • Agent: queue worker (repo-worker-code), lane any-c · task 14557
    • What the fresh verification found: the Codex round on a1211f92c4 (review 5854986510, 06:59Z) raised two new P2 findings on ip_evidence.rs, and the head's CI had been cancelled in the repo-wide turmoil (7 CANCELLED, 0 successes) — neither recorded resume condition actually held.
    • Fixes (commit e0af2994e9, pushed to PR feat(id): public-IP evidence derivation, retention, contradiction handling (#5683 step 3, #7784) #8551):
      1. Geography-only redaction (comment 4534900796): verdict_only() now returns Unknown(LookupEmpty) when no boundary verdict remains, instead of a field-less Known. Regression test verdict_only_redaction_of_geography_only_evidence_is_unknown.
      2. Derived retention purpose (comment 4534900802): retain() now requires a stated purpose when derived geography (country/region) is retained, not only for raw IPs (design §4.1). Regression test derived_retention_requires_a_stated_purpose.
        Both threads replied to (4535425011, 4535425201) and resolved. Verified on the laptop: full id-core suite 377+1+5 pass, ip_evidence module 14/14, cargo fmt clean, git diff --check clean. A fresh Codex review of the new head is requested on the PR.
    • Park (ci-wait): the push re-triggered CI on e0af2994e9. Resume: checks green on e0af2994e9 AND the new Codex round dispositioned → merge PR feat(id): public-IP evidence derivation, retention, contradiction handling (#5683 step 3, #7784) #8551 → verify on main → complete task 14557 fixed_merged → close id: public-IP evidence derivation, retention, and contradiction handling (#5683 step 3) #7784.
  10. added a commit that references this issue on Nov 11, 2026
  11. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — implemented and merged via PR #8551 (task 14557, lane any-a resuming lane any-b's work)

  12. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 11, 2026
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

    app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions