Skip to content

fix(id/directory): correlate removal artifacts with their own journal entries by hash; note no-effect receipts (#5624) - #7339

Closed
developing-today[bot] wants to merge 7 commits into
mainfrom
archive/janitor-2026-11-07/10521
Closed

developing-today[bot] wants to merge 7 commits into
mainfrom
archive/janitor-2026-11-07/10521

Conversation

@developing-today

@developing-today developing-today Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Archive-branch disposition (Drew's 2026-11-07 21:57 CST correction) for branch archive/janitor-2026-11-07/10521.

This archive branch was created by the janitor/repo-keeper sweep, not by any preservation decision. Per the correction, archive branches enter the normal disposition pipeline: the useful changes are reviewed and extracted here — this PR is the permanent preservation record for the branch's commits and diff ("ensure you opened a pr so branch exists forever"). Outcome per batch triage (batch issue #7297): FINISH the work and MERGE this PR, or CLOSE it with the record standing (closed-with-record is a valid end state; the changes remain recoverable from this PR). The branch was deleted after this PR was opened; its tip SHA is in the execution evidence.

Content: 7 unique commit(s) vs main; authored-file diff 2/2 (authored/total files). Pure build output/fixtures in the branch, if any, are discarded-bulk and are not the extraction target — the authored files (code, scripts, markdown, docs) are.

Tip: 7a3621a · tree: c92abda0dbb039c315c8cffa37b5865edd82e246


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

developing-today[bot] added 7 commits November 5, 2026 07:58
… legacy removals (#5624)

Directory::receive now refuses a friend-request envelope whose ID is not the canonical shape the producer mints (16 bytes as 32 lowercase hex, artifact::is_friend_request_id) before anything is persisted, so a correctly signed noncanonical ID can no longer be admitted and strand the friendship at friend_remove receipt (#3146).

remove_friend keeps the legacy path safe without weakening #3146: the signed FriendRemove artifact carries only canonical IDs (receiving servers still end the friendship by pair), while the local FriendRemoved entry carries every stored ID verbatim so pre-validation IDs are voided in removed_requests instead of making the removal unrepresentable.

Regression tests: noncanonical admission refused and never persisted; a friendship formed by a legacy noncanonical request (and a pending one) can be removed, with the artifact still parsing under the strict contract. Oracle: the canonical-shape invariant minted by Envelope::signed.
Codex P2 on the #5624 PR: replay_read_only only applied a removal whose requests named the friendship formed-by ID, but a legacy removal artifact cannot name a noncanonical formed-by ID (#3146), so replicas kept the friendship. Apply the removal by pair when the friendship was formed by a noncanonical ID, mirroring writer open. Regression test: legacy removal takes effect on read-only replay (and writer open) when its journal entry is lost.
…ending legacy cancellations propagate (#5624)

Codex round-2 on PR #6239: (1) recovery (open + replay_read_only, now sharing friend_removal_effect) no longer ends a newer legacy friendship for an older canonical removal artifact - a non-empty request list that does not name the current formed-by ID targets an earlier formation; the legacy bypass is only the empty-request signature. (2) Empty-request artifacts now cancel locally held legacy pending IDs in receive_artifact and in recovery, carrying them verbatim into removed_requests; legacy friendship removals received likewise void the pair stored IDs. (3) CodeRabbit: friend-request ID shape check in receive() moved below the seen duplicate lookup. Tests: 3 new regression tests; directory::tests 59 passed, full pkgs/id lib suites pass.
@developing-today
developing-today Bot requested review from a team and dezren39 as code owners November 8, 2026 06:09
@coderabbitai

coderabbitai Bot commented Nov 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 843fc5aa-ac29-48b2-a0cf-ac80d4de324e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39 dezren39 closed this Nov 8, 2026
@dezren39
dezren39 deleted the archive/janitor-2026-11-07/10521 branch November 8, 2026 08:01
@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member

🤖 Agent note · task 14080 (lane code-j): salvage evaluation complete — this PR's remainder is superseded in substance by current main (landed via PR #6239 lineage); full evidence recorded on issue #7297. No re-application, PR stays closed.

@dezren39

Copy link
Copy Markdown
Member

🤖 Agent note · salvage verdict for closed PR #7339: remainder OBSOLETE — the work is on main via PR #6239

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant