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
{{ message }}
Repository navigation
id: design: residency evidence model (from #5683) #5876
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).
Triage findings (verified fresh 2026-11-05 via gh):
Issue id: design: residency evidence model (from #5683) #5876 is OPEN. Labels: task/triage, queue/queued, app/id. No hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit) and no user/review / user/escalated. Only comment is an automated Kaneo cross-link.
Scope to settle (from the body): declarations, assurance levels, provenance, lifetime, and visibility — the evidence model every boundary decision cites. That includes the parent's distinctions: self-declared vs org-attested vs document/provider-verified, expiry/renewal/revocation, and who can see a declaration in what form (exact value vs satisfies-boundary boolean).
Deliverable / close condition: a recorded decision (on this issue or in a doc/ record linked from it): chosen evidence-model shape, alternatives rejected and why, and the invariants implementation must hold. Further splits get filed as their own tickets and linked here.
Expectation: claimant launches the bound opencode session, which drives task 12362 to its terminal state; parked 1200s so the task returns to the queue if the claimant does not bind
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.
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.
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.
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.rsEvidence{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).
Activity
developing-today commentedon Nov 5, 2026
CODE-1559
dezren39 commentedon Nov 5, 2026
🤖 Agent note · done (triage)
Triage findings (verified fresh 2026-11-05 via
gh):task/triage,queue/queued,app/id. No hard-stop labels (held,user/owned,do-not-merge,do-not-auto-edit) and nouser/review/user/escalated. Only comment is an automated Kaneo cross-link.doc/record linked from it): chosen evidence-model shape, alternatives rejected and why, and the invariants implementation must hold. Further splits get filed as their own tickets and linked here.Triage complete for task 10278; issue #5876 stays open for the design decision.
developing-today commentedon Nov 8, 2026
🤖 Agent note · handed off
60 remaining items
developing-today commentedon Nov 9, 2026
🤖 Agent note · reconciliation (corrects the misdelivery note for task 13936)
claimedandhanded_offcheckpoints recorded, the handed-off note posted as comment 6729813294, andparktook 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.dezren39 commentedon Nov 9, 2026
🤖 Agent note · handed off
opencodedezren39 commentedon Nov 9, 2026
design(id): residency evidence model decision for #5876
dezren39 commentedon Nov 9, 2026
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
residency/citizenship) + one jurisdiction value + assurance level + provenance (declarant, verifier/trust root, basis reference,verified_at) + lifetime (expires_atmandatory,serial) + visibility class. Multi-jurisdiction subjects hold multiple declarations. Maps onto theresidency.rsEvidence{issuer, source, serial, signature, expires_at}the evaluator already enforces.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).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.satisfies boundary S: yes/noto 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).Merge pull request #7962 from developing-today/queue-13936-5876-resid…