Skip to content

id: design: residency evidence model (from #5683) #5876

Closed

Description

@dezren39

Summary

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

Declarations, assurance levels, provenance, lifetime, and visibility: the evidence model every boundary decision cites.

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).

Activity

  1. added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  3. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (triage)

    Triage findings (verified fresh 2026-11-05 via gh):

    Triage complete for task 10278; issue #5876 stays open for the design decision.

  5. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  6. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 8, 2026
  7. 60 remaining items

  8. removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 9, 2026
  9. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor

    🤖 Agent note · reconciliation (corrects the misdelivery note for task 13936)

    • Agent: repo queue worker, lane code-g (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-g run 2026-11-08 19:03 CST; task 13936
    • Correction to: comment 6729853492 on this issue, which reported a claim misdelivery for task 13936.
    • Verified sequence (re-read from GitHub + the completed command record): the broker path for task 13936 actually SUCCEEDED — claimed and handed_off checkpoints recorded, the handed-off note posted as comment 6729813294, and park took effect (parked until 2026-11-09T01:27:16Z, opencode claimant handoff, lane row 5291). The failure output this lane acted on mid-shift was a faulty tool report. Acting on it, this lane additionally took a fallback claim (6730014413) and released it free (6730020147) and reset labels to queue/queued. No work was duplicated: nothing was worked under the fallback claim, and the broker park has since expired, so issue id: design: residency evidence model (from #5683) #5876 is simply back in the pool, unworked, awaiting the opencode claimant / next lane — the same end state both paths intended. The misdelivery reports for tasks 12367 and 12950 in the same shift were verified from on-disk logs and stand; only task 13936's was erroneous.
    • Links: task 13936 · issue id: design: residency evidence model (from #5683) #5876
  10. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    work/assignedQueue worker lifecycle state
    and removed on Nov 9, 2026
  11. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-l (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-l run 2026-11-08; task 13936
    • Found via: claimed task 13936 this shift; execution-lane assignment returned opencode
    • Task: task 13936 for issue id: design: residency evidence model (from #5683) #5876 (small_fix). Fresh check: {"labels":["task/triage","status/parked","queue/parked","app/id","work/assigned"],"state":"OPEN"}. No hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Handed off to the opencode claimant — the claimant launches the bound opencode session; this lane does not work it directly.
    • Expectation: claimant session drives task 13936 to a terminal state.
    • Links: task 13936 · issue id: design: residency evidence model (from #5683) #5876
  12. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor
    Lane code-p, task 13936: handed off to opencode claimant per 1b (lane row 5291). Issue #5876 verified OPEN via REST 2026-11-09, no hard-stop labels. Claimant launches bound session.
  13. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    Decision record: residency evidence model (DECIDED, task 13936)

    Status: DECIDED by this comment + doc/2026-11-09_design_id5876_residency_evidence_model.md (PR #7962). Design only; implementation timing remains a separate decision per the issue framing.

    Chosen shape

    • Declaration record: subject + claim type (residency/citizenship) + one jurisdiction value + assurance level + provenance (declarant, verifier/trust root, basis reference, verified_at) + lifetime (expires_at mandatory, serial) + visibility class. Multi-jurisdiction subjects hold multiple declarations. Maps onto the residency.rs Evidence{issuer, source, serial, signature, expires_at} the evaluator already enforces.
    • Assurance (ordered): L0 self-declared < L1 org-attested < L2 document/provider-verified. Higher satisfies lower, never reverse. Public-IP observations (id: design: public-IP evidence (from #5683) #5877) sit below L0: corroboration/step-up only, never a declaration.
    • Provenance: declarant, verifier identity (trust root), basis reference (never raw documents), verified_at, serial. Untrusted issuers and peer self-assertions presented as third-party evidence deny (signature proves authorship, not location — the id: design: residency boundaries for native bridge, federation and relays #3398 rule, unchanged).
    • Lifetime: mandatory expiry; renewal = new superseding declaration; revocation via EvidenceVerifier::revoked(serial) denies immediately. Expired/revoked denies new grants and re-evaluates existing access at the next enforcement point — no silent grandfathering. Denials are logged as new audit entries (id: design: boundary audit & appeals UX (from #5683) #5883 pattern) stating what would restore access.
    • Visibility: boolean-by-default (satisfies boundary S: yes/no to checkers/peers); exact values only to the subject + deciding scope's admin; scope-local storage, no global registry; audit cites classes/levels, never raw values; raw identity documents never stored.

    Alternatives rejected (why)

    Bare boolean flag (collapses assurance, unauditable); global registry (the dossier the parent forbids); raw document storage (unnecessary, creates a target); auto-promotion of assurance (weak evidence must never silently satisfy strong boundaries); indefinite lifetime (stale facts persist); exact-value-to-every-checker (every enforcement point becomes a dossier copy); IP-alone as declaration (re-decides #5877 — not forked here).

    Invariants

    Opt-in only/default off; ordered assurance with no auto-promotion; provenance + mandatory expiry on every declaration; expiry/revocation enforced at every check incl. re-checks/retries; boolean-by-default visibility; scope-local storage with class-level audit; untrusted-issuer denies; every denial/step-up states the evidence classes used and what would change the outcome.

    Parent divergence / splits

    None. No #5683 decision changed or forked (capabilities-never-defaults, basic-frameworks-first, and the framework vocabulary are relied on, not re-decided). No splits filed — if sanctions (#5878), intranet (#5879), escrow/proxy (#5881), or enforcement (#5882) need richer attestation formats, they file their own follow-ons. Full text with worked example: doc/2026-11-09_design_id5876_residency_evidence_model.md (PR #7962).

  14. added a commit that references this issue on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)queue/parkedQueue task is parked (waiting on CI, time, or an event)status/parkedDeliberately paused with a recorded resume conditionstatus:donetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions