Repository navigation
id(graph): signed user-attribute definitions and policy (A-GRAPH-9127-01) - #12862
Merged
Merged
Conversation
…-01, #10222) AttributeDefinition: a signed owner/group object at (tenant, owner_space, target, name) with kind, optional schema ref, audience, explicit closed/open/moderated append mode, admission rule, retention policy ID and revision. Envelope context binds the tenant; policy edits must chain scope/revision/predecessor under the #9083 TenantAuthority boundary; cross-tenant references reject without a recorded sharing decision. Oracle (reference): cargo test -p id-core --test attribute_definition — 6 passed, 0 failed. Independent schema validator plus tenant-authority fixture in the test file.
|
Warning Review limit reachedYou'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 28 minutes. View limit details
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. |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Implements slice A-GRAPH-9127-01 for #10222 (design part A §6.1/§12; statements S5.13–S5.19, S5.22–S5.24, S5.29).
Preflight (queue task 17063): native blockers fresh-checked 2026-11-22 — #9083 CLOSED/completed and #10196 CLOSED/completed, so the mandatory preflight passes and implementation proceeded within the approved scope only.
What lands
pkgs/id/crates/id-core/src/graph/attribute.rs(new, declared ingraph/mod.rsper its same-change rule):AttributeDefinition, a signed owner/group object at(tenant, owner_space, target, name)with kind, optional schema reference, audience, explicitclosed | open | moderatedappend mode, admission rule, retention/deletion policy ID and revision. Canonical-CBOR payload in a signed envelope under domainid/attribute-definition; the envelope context is the tenant ID and must match the payload tenant.TenantAuthoritytrait:authorize_definition(signer authorized in-tenant; revision implies define vs edit) andcheck_policy_revision(same scope, exactly next revision, predecessor chained, authorized editor — S5.22/S5.23). References homed in another tenant reject unless the authority records a deliberate sharing decision (design §12).pkgs/id/crates/id-core/tests/attribute_definition.rs(new): the reference oracle — an independent schema validator written in the test file plus a design(pm-stack): tenancy architecture — per-user Turso databases + central tenancy DB, served by Workers and Durable Objects #9083 tenant-authority fixture.Evidence —
cargo test -p id-core --test attribute_definition(innix develop, pkgs/id):Changed files: the two new files above plus the one-line module declaration in
graph/mod.rs(3 files, +1455). Rollback per the slice: remove only the new module/test and the declaration; no Atlas or content-location records are touched.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.