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(graph): signed user-attribute definitions and policy (A-GRAPH-9127-01) by dezren39 · Pull Request #12862 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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 in graph/mod.rs per its same-change rule): AttributeDefinition, a signed owner/group object at (tenant, owner_space, target, name) with kind, optional schema reference, audience, explicit closed | open | moderated append mode, admission rule, retention/deletion policy ID and revision. Canonical-CBOR payload in a signed envelope under domain id/attribute-definition; the envelope context is the tenant ID and must match the payload tenant.
  • Tenant authority is design(pm-stack): tenancy architecture — per-user Turso databases + central tenancy DB, served by Workers and Durable Objects #9083's owned boundary, consumed only via the TenantAuthority trait: authorize_definition (signer authorized in-tenant; revision implies define vs edit) and check_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 (in nix develop, pkgs/id):

running 6 tests
test explicit_append_modes_are_distinct_states ... ok
test malformed_scope_and_policy_reject ... ok
test cross_tenant_references_reject ... ok
test unauthorized_policy_edits_reject ... ok
test envelope_tenant_binding_and_domain_reject ... ok
test canonical_definitions_round_trip ... ok
test result: ok. 6 passed; 0 failed

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.


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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
id(graph): signed user-attribute definitions and policy (A-GRAPH-9127…
ff20d10
…-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.
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 04:01
@dezren39
dezren39 merged commit dfeaaf5 into main Nov 23, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@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 28 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: 964287a8-01ea-4c3f-80ff-64684fe83740
Commits

Reviewing files that changed from the base of the PR and between c988f36 and ff20d10.

Files selected for processing: 3

  • pkgs/id/crates/id-core/src/graph/attribute.rs
  • pkgs/id/crates/id-core/src/graph/mod.rs
  • pkgs/id/crates/id-core/tests/attribute_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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the lane-cv/10222-attribute-definitions branch November 23, 2026 04:02
This was referenced Nov 23, 2026
Signed user-attribute definitions and policy #10222
Closed
fix(queue): broker re-serves parked and completed tasks (double-serve) #13091
Closed
@developing-today-fleet developing-today-fleet Bot added the audit:complete PR fully implemented spawning issue label Nov 27, 2026
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 27, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
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.