Skip to content

id: implement chat ↔ talk-page unification extensions in pkgs/id (from design #5872) #6222

Closed

Description

@dezren39

Summary

Implementation follow-on for the design decision recorded on #5872 (chat ↔ talk-page unification). Filed so the design has a linked implementation track, per programme practice. Do not start until both gates below clear.

Gates (both required before work starts)

  1. Timing decision — id: design: chat ↔ talk-page unification (from #5682) #5872's decision record restates the parent position: implementation timing is a separate decision, possibly months out. This issue waits for that decision.
  2. Sibling designs landed — the anchor part-selector grammar and drift/re-location rules are id: design: chat anchor data model (from #5682) #5870's decision; talk-page lifecycle/permissions are id: design: talk-page semantics (from #5682) #5871's decision. This implementation consumes those decisions; it does not invent them.

Scope (per the #5872 decision record)

In pkgs/id (v1 chat lives in src/chat.rs: chat.message.v1 signed events in a channel group):

  • Add chat.anchor.v1 events: bind/unbind/re-locate a conversation↔object anchor (link-type vocabulary from id: design: chat anchor data model (from #5682) #5870), part anchors by reference (object ID + part selector), never embedded content or capabilities.
  • Add the conversation-level talk_for binding: a conversation designated as an object's one canonical talk page; first valid binding wins, conflicts fold to a visible disputed state.
  • Extend ChatLink with a third kind, object (addressable ID object by ID + author), alongside v1's blob/event — this is the in-message anchoring and paste-a-link upgrade path.
  • Retroactive anchoring: additive events only, referencing v1 messages by event ID; client link-recognition may propose anchors, a signed anchor event from a member is what makes one real.
  • Projection changes must satisfy the eight invariants in the id: design: chat ↔ talk-page unification (from #5682) #5872 decision record (single log, additivity, no history mutation, deterministic fold, one canonical talk binding, no capability leakage, unknown-kind tolerance in older clients, orphan safety on object tombstone).

Acceptance

  • All eight id: design: chat ↔ talk-page unification (from #5682) #5872 invariants covered by tests (PBT where the fold/projection invariants allow: additivity and determinism are property-testable over generated event logs).
  • A v1-only conversation with no anchor events projects byte-identically to before this change.
  • Two replicas folding the same log with a conflicting talk_for binding converge on the same disputed state.

Relations: design #5872; parent #5682; protocol #2036; chat v1 #2051 (closed, implemented); epic #2056.

Acceptance criteria

  • The chat <-> talk-page unification extensions from the originating design are implemented in pkgs/id.
  • New behavior is covered by tests at the id layer (anchor/binding events and link objects).
  • Existing chat and talk-page behavior is unchanged for items that do not use the extensions.

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
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    Intake review

    • Related PRs (number search, this run): none found by number search this run
    • Still live: verified open this run; no merged PR found that explicitly resolves this issue, so it stays open.
    • Labels: normalized this pass (kind/enhancement, priority/normal, effort/l, status/needs-triage; meta/enriched added).
    • Notes: priority/normal: implementation follow-on to a completed design (lane record on the parent design issue).
    • Risks: Risk: unification semantics touching existing chat data - additive-only changes, per the design's invariants.
    • Suggested approach: Approach: implement additively in pkgs/id following the parent design's recorded invariants; gate on the design's named timing prerequisites.

    🤖 Agent note · filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-05T15:33:58Z
    • Found via: monitor reconciliation (Duty 2 intake enrichment)
    • Task: Intake pass per protocol §5: verified live, acceptance criteria appended, labels normalized, related PRs linked above.
  5. 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 6, 2026
  6. 104 remaining items

  7. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/triagedTriaged and routed (see agent note)
    on Nov 16, 2026
  8. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: in-progress (supervising dispatched session)

    Lane code-c claimed task 17460 at 2026-11-16T12:27:48Z (lane assignment direct) and is supervising the conductor-dispatched opencode session ses_e5e1bd73bbbffeyeT1MT9NYt0P (route opencode-route/workhorse, dispatched 11:40Z) rather than duplicating its work:

    • Worktree /home/user/git/fleet/17460-6222-id-chat-talk, branch queue/17460-6222-id-chat-talk: 25+ files modified (uncommitted), including new crates/id-store/src/chat_anchor.rs (the chat.anchor.v1 module) written ~12:25Z - the session is active as of this note.
    • Issue revalidated fresh: id: implement chat ↔ talk-page unification extensions in pkgs/id (from design #5872) #6222 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels; gates per triage task 16643 stand (id: design: chat anchor data model (from #5682) #5870/id: design: talk-page semantics (from #5682) #5871 closed with decisions merged; timing ledger items dropped as orchestration-owned). Labels synced for this claim (queue/claimed, work/assigned, status/in-progress).
      Next: watch for the session's commits/PR; verify the eight-invariant test suite and merge under standing criteria when the PR opens. If the session stalls across two supervision checks, this lane takes the worktree over serially from its current state.
  9. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: supervision handoff (claim lapsed during tunnel outage)

    Lane code-c held task 17460 from 2026-11-16T12:27:48Z supervising the conductor-dispatched opencode session ses_e5e1bd73bbbffeyeT1MT9NYt0P. Supervision record:

    • 12:25-12:41Z: session active - new crates/id-store/src/chat_anchor.rs created, 25+ files modified (uncommitted) across id-events/id-store/id-sync/id-worlds, Cargo.toml/Cargo.lock touched (build phase).
    • 12:52Z: still writing (chat_anchor.rs), no commits, no PR yet.
    • 13:02-13:10Z: laptop-agent tunnel degraded (HTTP 502 RemoteDisconnected, then 503 busy); heartbeat retries could not reach the broker and the claim lease (to 13:07:38Z) lapsed. At 13:11Z the broker answered with the verdict: task 17460 is not claimed by repo-worker-code. Per runbook, this lane stopped here.
      The dispatched opencode session is independent of this lane's queue claim and was still working the worktree /home/user/git/fleet/17460-6222-id-chat-talk (branch queue/17460-6222-id-chat-talk) at last successful check. Whoever claims task 17460 next: supervise that session/worktree first - do not restart the implementation; its uncommitted state is the progress. Labels queue/claimed + work/assigned + status/in-progress were set by this lane's claim and may need re-sync by the next claimer.
  10. added a commit that references this issue on Nov 16, 2026
  11. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Agent note — task 17460 done: PR #10761 merged, closing #6222 (lane code-d, 2026-11-16)

    State: done (fixed_merged)

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)effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)status:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions