GeezerVison is showing github.com — Phase 2: user subject for tags needs an identity event · Issue #160 · developing-today/code
Phase 2: user subject for tags needs an identity event #160DescriptionOwner decision: a user's tag subject is their first identity event ID. The design has no account identity event yet, so tags on users cannot be built until one exists. Step: define the identity event (P2.9 or P5.7 prerequisite). Activitydezren39 commented on Oct 24, 2026 id train triage (2026-10-24): needs-decision — project owner: define the account identity event (P2.9/P5.7 prerequisite); no identity event exists yet so tags-on-users cannot be built. dezren39 commented on Oct 29, 2026 🤖 Agent note · escalated
- Agent: queue worker (repo-worker-code, lane B)
- Session / ID: queue task 2010 (triage)
- Found via: queue claim
- Task: Triage verdict: CONFIRMED — the gap still exists at HEAD, but the next step is the definition Drew reserved to the project owner (his 2026-10-24 comment on this issue: "needs-decision — project owner: define the account identity event"). Escalating with options; no implementable packet can be scoped until the event is defined.
- Expectation: Drew defines the identity event (or picks an option below); a scoped small_fix packet follows immediately from that definition.
Evidence at main 2953f274 (verified 2026-10-29T00:53:42Z):
pkgs/id/src/aliases.rs header states it directly: a user's alias/tag subject is "a user's first identity event (Phase 2: user subject for tags needs an identity event #160, not yet built)".
- Code search over
pkgs/id finds no identity/account-creation event type (no IdentityEvent / AccountCreated / registration event); tags.rs / tag_claims.rs / tag_index.rs exist, so tags-on-users is the blocked consumer, exactly as the issue says.
The decision — what is the account identity event?
- Option A — A dedicated identity event emitted when an account is created (first local account/key setup in pkgs/id publishes a signed
identity event whose ID becomes the canonical user subject). Cleanest semantics: stable, created before any tag can reference it. Cost: touches account-creation flow + event store, needs a payload call (what fields: key fingerprint only, or also a chosen name/timestamp?).
- Option B — Treat the account's first published event of any existing kind as its identity event (no new event type; subject = earliest event ID authored by the account key). Zero new machinery, but "first" depends on sync/discovery order — a late-arriving earlier event would change the subject and orphan existing tags.
- Option C — Revisit the premise: use the account key itself as the tag subject (the alternative the design doc itself raised; the doc notes hashing the key adds no privacy since keys are public). Simplest and stable forever, but reverses the recorded owner decision in this issue's body.
- Recommendation: Option A with a minimal payload (account key fingerprint + creation time) — it is the only option whose subject can never change retroactively, and it matches the wording of the decision already recorded here ("first identity event ID").
Blocking queue task 2010 as escalated-to-user; labels synced (user/escalated, queue/blocked).
dezren39 commented on Oct 29, 2026 DREW DECISION (2026-10-29, main chat): Expect A, fall back to B — never gate on A.
- Option A (a dedicated signed identity event at account creation) is the expected, common path — most people will interact that way.
- But identity must NOT require an identity event in our service: people use direct iroh accounts they create on their own, and other systems must be able to integrate. Compatibility is a design goal — any kind of app, data shared across apps. Nobody is logged in by making an identity event in the service.
- If A is absent, derive identity with Option B (earliest event in the log) — that derivation is valid.
- Names and identity details change over time; the key fingerprint must be determinable from ANY message.
- When no identity event and no name can be found: report age as a lower bound ('at least this old', from the earliest evidence), and use a pseudonym derived deterministically from the public key ID — optionally combined with another piece of data such as the world or the server's identity key — as the display identity.
dezren39 commented on Nov 17, 2026 Implementation opened (task 19381, lane any-d): PR #11146 — feat(id): identity event + user subject for tags.
What landed, per Drew's 2026-10-29 decision (Expect A, fall back to B, never gate on A):
id_store::identity: new signed event kind identity (kind-only; its ID is the user subject), IdentityEvent::from_event, and resolve_subject — first identity event when present (A), else the log's earliest event (B); answers for every non-empty log.
- Display identity: known name, else a deterministic pseudonym from the public key (
user-<fingerprint> — the fingerprint is determinable from any signed message); age as a lower bound from earliest evidence (age_lower_bound_ms).
- Emission:
LocalEvents::ensure_identity_event (publishes at most once per log); serve calls it on opening the node event store and logs the outcome — failure is a warning, never fatal, since B covers it.
- aliases.rs docs updated: the "(Phase 2: user subject for tags needs an identity event #160, not yet built)" markers now point at the built resolution.
Verification: cargo test -p id-store identity — 7 passed (A-path, B-fallback, foreign-author isolation, empty-log, pseudonym determinism, age bound); identity.rs is rustfmt-clean. id-events/id-cli targeted runs were still compiling under heavy build-lock contention at park time; PR #11146's CI is the verification of record for those crates, and task 19381 is parked on that CI. Branch: queue/19381-160-user-subject-identity-event (commit 877a0a6), worktree ~/git/fleet/queue-19381-160 on the laptop.
dezren39 commented on Nov 17, 2026 Follow-up (task 19381, lane any-d): the local verification that was still compiling at park time has now finished green on the laptop — cargo test -p id-events local_events: 21 passed; cargo test -p id-cli aliases: 1 passed; cargo check -p id-cli --features web: finished OK. Together with the id-store identity tests (7 passed), all local verification for PR #11146 is complete; the task remains parked on the PR's CI as the final gate.
dezren39 commented on Nov 17, 2026 agent-note:v1
state: done (fixed, merged)
task: 19381
lane: any-w (resume; implementation by lane any-d)
PR #11146 merged 2026-11-17T09:06:56Z and this issue auto-closed. The implementation (identity event kind in pkgs/id emitted at account creation, earliest-event fallback subject, deterministic pseudonym/age lower bound) was built by lane any-d; I resumed the parked task, verified the PR fresh (diff +312/-3 in exactly the five acceptance files; Codex review failed to run on usage limits with no findings issued), recorded the merge disposition on the PR, and merged. Verification of record (any-d, on the laptop): cargo test -p id-events local_events 21 passed; cargo test -p id-cli aliases 1 passed; cargo check -p id-cli --features web OK; id-store identity tests 7 passed.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|