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
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.
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.
Expectation: m — triage via the queue and route to the owning step of its parent batch.
Links: parent context in the issue title/body (filed 2026-11-08 in a numbered step batch)
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.
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)
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.
🤖 Agent note · picked up at the merge gate — CI on the head is CANCELLED, not green; re-running, then park on CI
Agent: queue worker (repo-worker-code), lane any-c · task 14557
State verified fresh this claim: PR feat(id): public-IP evidence derivation, retention, contradiction handling (#5683 step 3, #7784) #8551 head is exactly a1211f92c42df557031fbd268bc3a3754d48c795 (the Codex-fix head the prior lane recorded; 4 P2 findings fixed with thread replies + regression tests, id-core suites green locally). BUT the check rollup on that head is 8 completed, zero successes: 7 CANCELLED + CodeRabbit NEUTRAL — the runs were cancelled in the repo-wide CI turmoil, so the recorded resume condition ("CI green on PR 8551 head") is not met and cannot be waived.
🤖 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.
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.
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.
🤖 Agent note · done — implemented and merged via PR #8551 (task 14557, lane any-a resuming lane any-b's work)
Agent: repo-queue-worker lane any-a (task 14557; implementation by lane any-b, resumed and finished here per the resume-don't-restart rule)
Outcome: PR feat(id): public-IP evidence derivation, retention, contradiction handling (#5683 step 3, #7784) #8551 MERGED — merge commit c126a6e. New pkgs/id/crates/id-core/src/ip_evidence.rs implements design §4: privacy-ordered derivation (country/boundary verdicts VerdictOnly; raw IP only with explicit enable + stated retention window and purpose, capped by a framework ceiling), X-Forwarded-For ignored unless the proxy is explicitly trusted (empty trust by default), disagreeing signals resolve to Unknown, relay paths are Unknown(RelayUnavailable) and retain nothing, and contradiction handling returns only Warn or reversible StepUp — the outcome enum has no deny/quarantine variant.
Verification: cargo test -p id-core --lib ip_evidence — 14 passed at head e0af299 (re-run this shift), including the exhaustive property test that IP evidence alone never removes existing access, the untrusted-XFF test, and the disagreeing-signals test. All six Codex P2 findings across two rounds were fixed by lane any-b (a1211f9, e0af299) with on-thread replies; the final Codex review at head reports no findings.
Activity
developing-today commentedon Nov 8, 2026
CODE-2317
dezren39 commentedon Nov 8, 2026
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.
dezren39 commentedon Nov 10, 2026
🤖 Agent note · triaged
task/small-fix· priority/high · effort/mrepo-health:v1:fix:developing-today/code:issue:7784→ queuerepo-health-code-pilot. Enqueue result: enqueued new task 14557 (queue repo-health-code-pilot, status queued)12 remaining items
dezren39 commentedon Nov 11, 2026
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.
dezren39 commentedon Nov 11, 2026
🤖 Agent note · picked up at the merge gate — CI on the head is CANCELLED, not green; re-running, then park on CI
a1211f92c42df557031fbd268bc3a3754d48c795(the Codex-fix head the prior lane recorded; 4 P2 findings fixed with thread replies + regression tests, id-core suites green locally). BUT the check rollup on that head is 8 completed, zero successes: 7 CANCELLED + CodeRabbit NEUTRAL — the runs were cancelled in the repo-wide CI turmoil, so the recorded resume condition ("CI green on PR 8551 head") is not met and cannot be waived.fix(id-core): normalize geography-only verdict-only redaction to Unkn…
dezren39 commentedon Nov 11, 2026
🤖 Agent note · fresh Codex round was NOT clean — both new P2s fixed in
e0af2994e9; parked on CI for the new heada1211f92c4(review 5854986510, 06:59Z) raised two new P2 findings onip_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.e0af2994e9, pushed to PR feat(id): public-IP evidence derivation, retention, contradiction handling (#5683 step 3, #7784) #8551):verdict_only()now returnsUnknown(LookupEmpty)when no boundary verdict remains, instead of a field-lessKnown. Regression testverdict_only_redaction_of_geography_only_evidence_is_unknown.retain()now requires a stated purpose when derived geography (country/region) is retained, not only for raw IPs (design §4.1). Regression testderived_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 fmtclean,git diff --checkclean. A fresh Codex review of the new head is requested on the PR.e0af2994e9. Resume: checks green one0af2994e9AND 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.Merge pull request #8551 from developing-today/queue/14557-7784-ip-ev…
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done — implemented and merged via PR #8551 (task 14557, lane any-a resuming lane any-b's work)