GeezerVison is showing github.com — fix(id): accept pre-cutoff artifacts on peer pulls via chain-position cutoff (#4459) by dezren39 · Pull Request #6407 · developing-today/code
Conversation
dezren39
commented
Nov 6, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
- Revised per the design decision recorded on id(artifact): peer pulls halt on pre-upgrade home_declared entries — the #3187 strict receipt needs a trusted historical cutoff for receive_artifact #4459 (task 12788, 2026-11-11): the trusted cutoff for strict
home_declared world-id validation on peer receipt is now receive-side only, derived from per-account chain position. The signed format does not change — no format_version is emitted or read, so unupgraded peers keep verifying newly signed artifacts exactly as before (the accepted Codex P2 on the previous design).
ArtifactLog::insert_received (id-sync, where the wire layer moved in the pkgs/id crate split — step 3: extract id-sync (log_sync + wire layer; artifact lands here) #4406 crate split) grants the bounded legacy world-id exception only to an artifact that extends its author's held chain at a position before the first artifact that receiver accepted that also passes strict parsing. The position comes only from the chain's signed links and the receiver's own receipt history — never a sender-asserted field; when a chain position cannot be established, validation stays strict. Signature and all other structural checks stay strict at every position, and the typed legacy note is recorded in pull outcomes.
- Rebased on current main; the original commit was ported across the crate split (receive path in
pkgs/id/crates/id-sync/src/artifact.rs, Directory::receive_artifact_with_outcome in the facade, sink override in session_host.rs).
Closes #4459.
Verification
cargo test --manifest-path pkgs/id/Cargo.toml --lib artifact:: — facade 12 passed, id-sync 31 passed, including the two pull-path regressions updated to the chain-position cutoff (a_pull_continues_after_a_pre_cutoff_overlong_home_world_id, legacy_receipt_only_bypasses_the_world_id_bound_before_the_chain_position_cutoff) and a new compat pin (a_newly_signed_artifact_verifies_under_the_pre_cutoff_signed_format: no version field on the wire; hash/signature verify against the unchanged signed_bytes).
- Full
pkgs/id lib suite: 1925 passed, 0 failed. One pre-existing failure in the wider workspace run: id-core frames::tests::byte_refusal_does_not_spend_a_frame_token_or_increment_counters fails identically on clean main — already filed as id: frames byte-refusal test fails on main (RequestTooLarge vs BudgetExhausted) — blocks id build + nixos-integration check #8354, unrelated to this change.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 6, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 44 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
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:
2f5bf185-aeb9-49dd-9c3c-9d924d829c56
Commits
-
Reviewing files that changed from the base of the PR and between 066a0df and 3f8e0a2.
Files selected for processing: 6
-
.opencode/plans/2026-11-05T15-10-00Z-legacy-artifact-receive-cutoff.md
doc/2026-11-05T15-10-00Z_architecture_legacy_artifact_receive_cutoff/2026-11-05T15-10-00Z_architecture_legacy_artifact_receive_cutoff.md
pkgs/id/crates/id-sync/src/artifact.rs
pkgs/id/crates/id-worlds/src/directory.rs
pkgs/id/crates/id-worlds/src/session_host.rs
pkgs/id/src/artifact.rs
Pre-merge checks: 1 · 1
-
Failed checks: 1 inconclusive
| Check name |
Status |
Explanation |
Resolution |
| Title check |
 |
This assessment has not completed. The check will be retried on the next pre-merge check run. |
|
Passed checks: 1 passed
-
| Check name |
Status |
Explanation |
| Description Check |
 |
Check skipped - CodeRabbit’s high-level summary is enabled. |
- 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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-08T09:13:36.055518Z |
116f3ff |
New commits |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Shepherd pass — task 12787 (2026-11-08)
Integrated current main (5ab0c06928) into this branch as a merge commit (116f3ff131) so the PR head runs against today's tree. Merge is a normal merge commit, not a force-push rebase, per the repo's collaboration guardrail; no conflicts, and the PR diff is still the five intended files.
Local verification on the merged head
cargo test -p id --lib targeted set — 4 passed / 0 failed:
artifact::tests::a_pull_continues_after_a_pre_cutoff_overlong_home_world_id (peer pull continues past a pre-cutoff over-bound home_declared, legacy note recorded)
artifact::tests::legacy_receipt_only_bypasses_the_world_id_bound_before_the_strict_version (strict version still hard-errors; unmarked-after-cutoff refused; tampered/corrupt entries refused)
artifact::tests::unmarked_artifacts_keep_the_pre_versioned_signed_bytes (absent version marker does not change old hashes; marker is signed)
artifact::tests::a_legacy_home_declaration_still_replays
rustfmt --edition 2024 --check on artifact.rs, directory.rs, envelope_outbox.rs — clean.
The earlier fmt/lint-class failures at the old head were inherited from the pre-auto-format main window; this head is against today's auto-formatted main.
Review findings — disposition
- Codex (
codex-review-state:v1): code_review.status = completed, has_any_findings = false, has_unresolved_findings = false at a993ad7. Nothing to fix.
- CodeRabbit: the only comment is its review-limit reached notice (no findings emitted, review never delivered). Nothing to fix; no autofix checkbox applies. If a fresh review is wanted it will trigger on this push.
Not superseded: main's Directory::receive_artifact still calls the strict artifact.parsed()? and has no format_version/cutoff support, so the #4459 receive-path halt is still live on main and this PR remains the fix.
Awaiting CI on 116f3ff131; will merge under the standing criteria once the required checks are green.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 116f3ff131
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
kind,
|
|
|
body,
|
|
|
after,
|
|
|
Some(ARTIFACT_FORMAT_VERSION),
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gate the new signed format behind a compatible protocol rollout
When an updated client communicates with an unupgraded home server or pull client, every newly signed artifact now fails verification: the previous SignedArtifact deserializer ignores format_version, and its signed_bytes implementation excludes that field, producing a different hash. Push and pull still use /id-artifact-push/1 and /id-artifact-pull/1 without version negotiation, so existing home servers reject all new publications and existing pull clients stop at the first post-upgrade artifact. Provide a compatible rollout mechanism or an explicit negotiated protocol-version boundary before emitting the new signed format unconditionally.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disposition (task 12788, lane code-x): ACCEPTED — this finding blocks merge. Verified against the diff: newly signed artifacts carry format_version inside signed_bytes while /id-artifact-push/1 and /id-artifact-pull/1 have no version negotiation, so unupgraded peers recompute the pre-versioned hash and reject them. The fix is a design decision under #3231 (recorded on issue #4459, note by lane code-x 2026-11-10): either a receive-side-only cutoff from per-account chain position that never changes the signed format, or a negotiated protocol-version boundary before emitting the new format. PR stays open and unmerged until that lands.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Queue worker assessment of the unresolved Codex P2: this is a valid compatibility concern. format_version is included in the signed bytes while artifact push/pull still negotiate /id-artifact-push/1 and /id-artifact-pull/1; an old peer computes the pre-version hash and will reject newly signed artifacts. The issue acceptance criteria do not define rollout compatibility, so I have not changed the protocol unilaterally. Please address with a compatible rollout/negotiated boundary or document an explicit compatibility decision before merging. CI is also still queued (not running) on the current head.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Agent note — design decision for the revision of this PR (task 12788, lane any-d, 2026-11-11)
The accepted Codex P2 on this PR (disposition by lane code-x, 2026-11-10) left two remedies. The decision is now recorded on issue #4459: receive-side-only cutoff from per-account chain position; the signed format does not change.
Revision scope for this PR (it stays the canonical artifact for #4459; a scoped small_fix follow-on task is enqueued from task 12788):
- Remove the
format_version emission from newly signed artifacts and its use as the cutoff marker — nothing about what signers emit changes, so unupgraded peers keep verifying new artifacts exactly as today.
- Make per-account chain position (currently the fallback for unmarked artifacts) the sole cutoff source; the position must come from the account chain's signed links, and when position cannot be established validation stays strict.
- Keep everything else: strict signature/structural checks at every position, the bounded legacy exception for the world-id length rule on pre-cutoff entries only, and the typed legacy note recorded during pulls.
- Rebase on current main, re-run the
pkgs/id artifact tests (including the two pull-path regressions named in this PR's body, updated to the chain-position cutoff), and disposition the fresh check runs before merge.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dezren39
changed the title
fix(id/artifact): accept pre-cutoff artifacts on peer pulls (#4459)
fix(id): accept pre-cutoff artifacts on peer pulls via chain-position cutoff (#4459)
Nov 11, 2026
…ned format unchanged (#4459)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|