GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id(directory): validate friend-request IDs before persistence and preserve legacy removals · Issue #5624 · developing-today/code

id(directory): validate friend-request IDs before persistence and preserve legacy removals #5624

New issue
Copy link
New issue
Copy link
Closed
#6239
Closed
id(directory): validate friend-request IDs before persistence and preserve legacy removals#5624
#6239
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workepic/id-programReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/queue-workerFiled or worked by the queue/worker pilotstatus:done

Description

@dezren39
dezren39
opened on Nov 4, 2026
Issue body actions

Receipt-audit follow-up from #3232 / design #3231

Envelope.verify currently verifies the signature but does not validate Envelope.id's producer shape (16 random bytes rendered as 32 lowercase hex characters). Directory.receive persists any correctly signed ID into request/seen state. A noncanonical signed request ID such as r1 can flow through Directory.friendship_requests into a friend_remove artifact, whose receipt validation rejects it under #3146; the friendship then cannot be removed through the normal artifact path.

Scope

  • Validate the canonical ID shape at fresh friend-request admission (and relevant persisted-entry boundaries).
  • Preserve a safe removal path for already-persisted noncanonical IDs; do not make old friendships permanently unremovable.
  • Add regressions for admission and legacy-state removal.
  • Keep this separate from the Phase 3 (audit) of #3231 — field-by-field receipt-validation audit for pkgs/id artifacts + contract statement #3232 audit; do not weaken the friend_remove.requests receipt contract.

Evidence: #3232 comment #3232 (comment); current source pkgs/id/src/directory.rs (Envelope::verify, Directory::receive, Directory::friendship_requests) and pkgs/id/src/artifact.rs (friend_remove parsing).

Acceptance criteria

  • Fresh friend-request admission validates the canonical envelope ID shape (16 random bytes as 32 lowercase hex characters) before persistence.
  • Already-persisted noncanonical IDs retain a safe removal path — old friendships are not permanently unremovable.
  • Regression tests cover both fresh admission rejection and legacy-state removal.
  • The friend_remove.requests receipt contract (id(artifact): friend_remove requests is the one known-kind body parsed() never validates — any count, any shape, any length passes, and every string lands permanently in the directory's removed_requests void guard #3146) is not weakened.

Activity

Next
  1. developing-today commented on Nov 4, 2026

    @developing-today
    developing-todayBot
    on Nov 4, 2026 – with developing.today
    Contributor
    More actions

    CODE-1393

  2. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    source/queue-workerFiled or worked by the queue/worker pilot
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 4, 2026
  3. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    Intake review

    • Related: Receipt-audit follow-up from Phase 3 (audit) of #3231 — field-by-field receipt-validation audit for pkgs/id artifacts + contract statement #3232 / design Design: a signed artifact is validated as strictly as it is built — one receipt contract for pkgs/id artifacts #3231; the rejecting contract is id(artifact): friend_remove requests is the one known-kind body parsed() never validates — any count, any shape, any length passes, and every string lands permanently in the directory's removed_requests void guard #3146's friend_remove.requests validation. Evidence: Phase 3 (audit) of #3231 — field-by-field receipt-validation audit for pkgs/id artifacts + contract statement #3232 comment 6578677909; source in pkgs/id/src/directory.rs and pkgs/id/src/artifact.rs. Sibling follow-ups: id(artifact): preserve pre-upgrade log replay for duplicate after and non-NFC fields #5625, id(artifact): validate known-kind bodies in generic signing helpers #5623.
    • Notes: A trap state: a correctly signed but noncanonical ID is admitted and persisted, then makes the friendship unremovable through the normal artifact path. Both halves matter — admission validation alone strands existing state; a removal path alone keeps admitting new bad IDs.
    • Risks: The legacy removal path must not become a general bypass of the receipt contract.
    • Suggested approach: Validate shape at Directory::receive admission; for persisted noncanonical IDs, allow removal via a path that carries the stored ID verbatim without re-deriving it through the rejecting parser.
      — fleet monitor intake, 2026-11-04
  4. github-actions
    assigned
    dezren39
    on Nov 4, 2026
  5. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Nov 5, 2026
  6. 75 remaining items

  7. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
  8. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · done

    • Agent: repo queue worker, lane code-x (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-x run 2026-11-05 12:39 CST; task 10521
    • Found via: claimed task 10521 this shift; execution-lane assignment returned direct (attempt 4/4, resumed — not restarted)
    • Task: PR fix(id/directory): validate friend-request IDs at admission, preserve legacy removals (#5624) #6239 (branch queue/10521-5624-validate-friend-request-ids) already carried the full implementation from prior attempts. This lane verified it fresh: every Codex review thread on PR fix(id/directory): validate friend-request IDs at admission, preserve legacy removals (#5624) #6239 is dispositioned — the final round (findings on directory.rs:2311 and :2124) was fixed in HEAD 7a3621a (removal artifacts correlated with their own journal entries by hash; FriendRemovalNoted receipts for no-effect artifacts) with reply dispositions on both threads, and no later Codex review exists. Targeted verification on the laptop worktree: cargo test --manifest-path pkgs/id/Cargo.toml --lib — 2271 + 317 passed, 0 failed (directory subset 69/69, including the new property tests for admission shape and removal recovery). Squash-merged PR fix(id/directory): validate friend-request IDs at admission, preserve legacy removals (#5624) #6239; issue id(directory): validate friend-request IDs before persistence and preserve legacy removals #5624 auto-closed.
    • Links: task 10521 · issue id(directory): validate friend-request IDs before persistence and preserve legacy removals #5624 · PR fix(id/directory): validate friend-request IDs at admission, preserve legacy removals (#5624) #6239 · merge sha aab9b8c
  9. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · done (already_done — queue bookkeeping only)

    • Agent: repo queue worker, lane code-v (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-v run 2026-11-05; task 10521
    • Found via: claimed task 10521 this shift (attempt 4/4); execution-lane assignment returned direct, so this lane revalidated fresh instead of handing off.
    • Fresh verification (2026-11-05T19:1xZ, gh): issue id(directory): validate friend-request IDs before persistence and preserve legacy removals #5624 is CLOSED (closed 2026-11-05T19:04:29Z); PR fix(id/directory): validate friend-request IDs at admission, preserve legacy removals (#5624) #6239 is MERGED at 2026-11-05T19:04:28Z, merge sha aab9b8c. The implementation and merge were completed by lane code-x (see its done note on this issue); the queue task itself had not been completed, so this lane completes task 10521 with outcome already_done and the evidence above. No new code work was done or needed.
    • Links: task 10521 · issue id(directory): validate friend-request IDs before persistence and preserve legacy removals #5624 · PR fix(id/directory): validate friend-request IDs at admission, preserve legacy removals (#5624) #6239
  10. developing-today
    added
    status:in-review
    and removed
    status:done
    on Nov 8, 2026
  11. developing-today
    reopened this on Nov 8, 2026
  12. dezren39
    added
    epic/id-programReprioritization program epic (2026-11-12)
    on Nov 12, 2026
  13. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged — already done; the 2026-11-08 bot reopen was spurious, closing again

    • Agent: repo-worker-code (Muse lane any-b)
    • Session / ID: queue task 18325
    • Found via: atomic unfiltered claim from the one fleet queue (stream repo-health-code-pilot)
    • History: the fix landed via PR fix(id/directory): validate friend-request IDs at admission, preserve legacy removals (#5624) #6239 (MERGED 2026-11-05T19:04:28Z, merge sha aab9b8c) under task 10521, which completed already_done after two lanes verified it (cargo test --lib 2271 + 317 passed, directory subset 69/69 incl. the new admission-shape and removal-recovery regressions). This issue was closed 2026-11-05T19:04:30Z, then reopened 2026-11-08T06:10:01Z by developing-today[bot] with no gap recorded anywhere in the thread.
    • Fresh verification this shift: the implementation is still on current main at its post-crate-split home, pkgs/id/crates/id-directory/src/directory.rs (moved by pkgs/id crate split — step 5: extract id-worlds #4408): fresh friend-request admission refuses a noncanonical envelope ID (comment at line 1506-1507: only the canonical 16-bytes-as-32-lowercase-hex shape the producer mints), and the legacy path is preserved exactly as this issue requires — persisted noncanonical IDs are voided in removed_requests like canonical ones, with the id(artifact): friend_remove requests is the one known-kind body parsed() never validates — any count, any shape, any length passes, and every string lands permanently in the directory's removed_requests void guard #3146 friend_remove receipt contract unweakened (lines 1583-1588, 2129+).
    • Action: closing again as complete. The stale status:in-review label is removed — nothing is in review; the work merged on 2026-11-05.
  14. dezren39
    removed
    status:in-review
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 17, 2026
  15. dezren39
    closed this as completedon Nov 17, 2026
  16. developing-today
    added
    status:done
    on Nov 17, 2026
  17. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: triaged / already_done
    task: 19855
    lane: any-w

    Fresh check 2026-11-17: issue #5624 is CLOSED (status:done). The fix landed in PR #6239 (merged 2026-11-05T19:04:28Z, sha aab9b8c); task 18325 (lane any-b) re-closed it today after a spurious 2026-11-08 bot reopen, with the verification record on this issue. Completing task 19855 as already_done; no follow-on needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workepic/id-programReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/queue-workerFiled or worked by the queue/worker pilotstatus:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.