Skip to content

Commit ea8e034

Browse files
committed
add grantedBy to Data Grant
closes #332
1 parent ef035be commit ea8e034

File tree

21 files changed

+113
-9
lines changed

21 files changed

+113
-9
lines changed

devbox.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.14.0/.schema/devbox.schema.json",
3+
"packages": ["bikeshed@latest"],
4+
"shell": {
5+
"init_hook": [
6+
"alias bikeshed='bikeshed --no-update'",
7+
]
8+
}
9+
}

devbox.lock

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
"bikeshed@latest": {
5+
"last_modified": "2025-05-06T08:06:31Z",
6+
"resolved": "github:NixOS/nixpkgs/1cb1c02a6b1b7cf67e3d7731cbbf327a53da9679#bikeshed",
7+
"source": "devbox-search",
8+
"version": "5.1.2",
9+
"systems": {
10+
"aarch64-darwin": {
11+
"outputs": [
12+
{
13+
"name": "out",
14+
"path": "/nix/store/byk7ag1k1mxrn0k2xdik7rzln600d39h-bikeshed-5.1.2",
15+
"default": true
16+
},
17+
{
18+
"name": "dist",
19+
"path": "/nix/store/x7p41gi116xfdn43qyzx61yamwyhaqxk-bikeshed-5.1.2-dist"
20+
}
21+
],
22+
"store_path": "/nix/store/byk7ag1k1mxrn0k2xdik7rzln600d39h-bikeshed-5.1.2"
23+
},
24+
"aarch64-linux": {
25+
"outputs": [
26+
{
27+
"name": "out",
28+
"path": "/nix/store/5nwp942h6mni220dzqbcqb04mxnh6mfc-bikeshed-5.1.2",
29+
"default": true
30+
},
31+
{
32+
"name": "dist",
33+
"path": "/nix/store/jjrv0vwvnnjpd6wisb8b3xg24rxz5zwp-bikeshed-5.1.2-dist"
34+
}
35+
],
36+
"store_path": "/nix/store/5nwp942h6mni220dzqbcqb04mxnh6mfc-bikeshed-5.1.2"
37+
},
38+
"x86_64-darwin": {
39+
"outputs": [
40+
{
41+
"name": "out",
42+
"path": "/nix/store/vwh4hjpd0r9zw4fxdwjb6z1x9l39jmq9-bikeshed-5.1.2",
43+
"default": true
44+
},
45+
{
46+
"name": "dist",
47+
"path": "/nix/store/rk3091z67f5mamqywgasm1y9ghfmyizl-bikeshed-5.1.2-dist"
48+
}
49+
],
50+
"store_path": "/nix/store/vwh4hjpd0r9zw4fxdwjb6z1x9l39jmq9-bikeshed-5.1.2"
51+
},
52+
"x86_64-linux": {
53+
"outputs": [
54+
{
55+
"name": "out",
56+
"path": "/nix/store/l80hk33mi0wsynwl12livkc6c3sqj0bd-bikeshed-5.1.2",
57+
"default": true
58+
},
59+
{
60+
"name": "dist",
61+
"path": "/nix/store/gpxy88dizvl00fj10r4dbh0qa10ham5r-bikeshed-5.1.2-dist"
62+
}
63+
],
64+
"store_path": "/nix/store/l80hk33mi0wsynwl12livkc6c3sqj0bd-bikeshed-5.1.2"
65+
}
66+
}
67+
},
68+
"github:NixOS/nixpkgs/nixpkgs-unstable": {
69+
"resolved": "github:NixOS/nixpkgs/b3582c75c7f21ce0b429898980eddbbf05c68e55?lastModified=1746576598&narHash=sha256-FshoQvr6Aor5SnORVvh%2FZdJ1Sa2U4ZrIMwKBX5k2wu0%3D"
70+
}
71+
}
72+
}

proposals/primer/authorization-agent.bs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ shape tree assigned to the Data Registration.
9797
line-start: 1
9898
line-highlight: 3
9999
</pre>
100-
</pre>
101100
<figcaption>Data Registration for projects in one of Alice's Data Registries</figcaption>
102101
</figure>
103102

@@ -188,8 +187,8 @@ Its main purpose is to make [[#access-grant]] available to the registered agent.
188187

189188
## Social Agent Registration
190189

191-
Social Agent Registration is created for a Social Agent. Besides [[##access-grant]]
192-
it can also reference a [[#reciprocal-registration]]
190+
Social Agent Registration is created for a Social Agent. Besides [[#access-grant]]
191+
it can also reference a [[#reciprocal-registration]].
193192

194193
### Reciprocal Registration ### {#reciprocal-registration}
195194

proposals/primer/data-grant.bs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Data Grant can be consider as the most important data structure, it provides fol
2121
: dataOwner
2222
:: Social Agent who owns the data
2323

24+
: grantedBy
25+
:: Social Agent who granted the access
26+
2427
: registeredShapeTree
2528
:: Shape Tree used by related Data Registration
2629

proposals/primer/snippets/auth.alice.example/cd247a67-0879-4301-abd0-828f63abb252.ttl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ PREFIX alice-pro: <https://pro.alice.example/>
77
alice-auth:cd247a67-0879-4301-abd0-828f63abb252
88
a interop:DataGrant ;
99
interop:dataOwner <https://alice.example/#id> ;
10+
interop:grantedBy <https://alice.example/#id> ;
1011
interop:registeredShapeTree solidtrees:Project ;
1112
interop:hasDataRegistration alice-pro:773605f0-b5bf-4d46-878d-5c167eac8b5d ;
1213
interop:accessMode acl:Read, acl:Write ;

proposals/specification/access-authorizations.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,11 @@ needs to change, it should be replaced.
351351
<td>[SocialAgent](#classSocialAgent)</td>
352352
<td>[=Social Agent=] that owns the data being granted</td>
353353
</tr>
354+
<tr>
355+
<td>grantedBy</td>
356+
<td>[SocialAgent](#classSocialAgent)</td>
357+
<td>[=Social Agent=] that granted the [=Data Grant=]</td>
358+
</tr>
354359
<tr>
355360
<td>grantee</td>
356361
<td>[Agent](#classAgent)</td>

proposals/specification/snippets/alice.example/0945218b.ttl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ PREFIX alice-work-data: <https://work.alice.example/data/>
1212
alice-projectron:0945218b
1313
a interop:DataGrant ;
1414
interop:dataOwner alice:\#id ;
15+
interop:grantedBy alice:\#id ;
1516
interop:grantee projectron:\#id ;
1617
interop:registeredShapeTree pm-shapetrees:TaskTree ;
1718
interop:hasDataRegistration alice-work-data:df4ab227\/ ;

proposals/specification/snippets/alice.example/244dfe3e.ttl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ PREFIX alice-work-data: <https://work.alice.example/data/>
1212
alice-performchart:244dfe3e
1313
a interop:DataGrant ;
1414
interop:dataOwner alice:\#id ;
15+
interop:grantedBy alice:\#id ;
1516
interop:grantee performchart:\#id ;
1617
interop:registeredShapeTree pm-shapetrees:TaskTree ;
1718
interop:hasDataRegistration alice-work-data:df4ab227\/ ;

proposals/specification/snippets/alice.example/40d038ea.ttl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ PREFIX alice-work-data: <https://work.alice.example/data/>
1212
alice-projectron:40d038ea
1313
a interop:DataGrant ;
1414
interop:dataOwner alice:\#id ;
15+
interop:grantedBy alice:\#id ;
1516
interop:grantee projectron:\#id ;
1617
interop:registeredShapeTree pm-shapetrees:ProjectTree ;
1718
interop:hasDataRegistration alice-work-data:8501f084\/ ;

proposals/specification/snippets/alice.example/6ef722af.ttl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ PREFIX alice-agents-jarvis: <https://alice.example/agents/b5eea7bb/>
1010
alice-agents-jarvis:6ef722af
1111
a interop:DataGrant ;
1212
interop:dataOwner alice:\#id ;
13+
interop:grantedBy alice:\#id ;
1314
interop:grantee jarvis:\#id ;
1415
interop:satisfiesAccessNeed jarvis:\#fde6805e ;
1516
interop:accessMode acl:Read, acl:Update, acl:Control ;

0 commit comments

Comments
 (0)