Skip to content

id: add signer-local signed coordinate-world definitions - #12890

Open
dezren39 wants to merge 1 commit into
mainfrom
codex/17117-a9124-world-definition
Open

dezren39 wants to merge 1 commit into
mainfrom
codex/17117-a9124-world-definition

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Closes #10278

Summary

  • add the A9124 signer-local, versioned coordinate-world definition model
  • sign and verify canonical, domain-separated Ed25519 records with immutable content roots
  • keep signature validity separate from global trust and enforce array-core/version/parent invariants
  • register the integration suite

Evidence

Merge Danger

Low. The module is included by path by its focused integration test; crate-root export/wiring remains the separate 9110-02 slice. No production rollout is performed.


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

@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 04:36
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

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 55 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: 610ce21f-f15c-4a82-9d2b-b29dccdd4bb5
Commits

Reviewing files that changed from the base of the PR and between fad105a and 22218a5.

Files selected for processing: 3

  • .github/test-suite-registry.json
  • pkgs/id/crates/id-core/src/world_definition.rs
  • pkgs/id/crates/id-core/tests/world_definition.rs
  • 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
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-23T04:38:26.175307Z 22218a5 PR opened
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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: 22218a50d7

ℹ️ 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".

Comment on lines +297 to +298
key.verify(&preimage, &signature)
.map_err(|_error| WorldDefinitionError::BadSignature)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Reject weak-key signature forgeries with strict verification

An untrusted record carrying the identity-point public key (01 followed by 31 zero bytes) and a signature with identity R and zero S passes plain verify for any definition payload, without possession of a signing key. The existing test_forgeries.rs::identity_forgery fixture documents this exact bypass. Consequently, arbitrary or modified definitions can report successful signature verification. Use verify_strict, as signed_envelope.rs does, and cover this verifier with the existing forgery fixture.

Useful? React with 👍 / 👎.

Comment on lines +9 to +11
//! The crate-root export belongs to the separate crate-wiring slice. The
//! module therefore uses the same `crate::` leaf paths as the other extracted
//! ID slices and can be included by path by its integration test.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Declare the new module in the crate root

Deferring crate-root wiring leaves this implementation outside id-core; the integration test only compiles a private #[path] copy. Repository-wide search finds no production module declaration, and bash .github/scripts/check-rust-module-reach.sh /workspace/code pkgs/id/crates/id-core exits 1 naming this file as UNREACHED. The scoped instructions explicitly require declaring new modules in their parent in the same change, so add the declaration to src/lib.rs rather than deferring it to another slice.

AGENTS.md reference: pkgs/id/AGENTS.md:L150-L150

Useful? React with 👍 / 👎.

This branch has not been deployed

No deployments
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.

Encode signer-local signed coordinate-world definitions

1 participant