Bind repo work adoption to Mind authority

This commit is contained in:
Meta Vens 2026-07-13 19:38:35 +01:00
commit 2f22dbbca7
17 changed files with 1174 additions and 4232 deletions

View file

@ -0,0 +1,20 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://gamecult.dev/epiphany/cultnet/epiphany.repo_work_hands_grant.schema.json",
"title": "Repo Work Hands Grant",
"type": "object", "additionalProperties": false,
"required": ["schemaVersion","grantId","adoptionReviewId","adoptionReviewSha256","workspaceIdentity","item","planId","planSha256","runReceiptSha256","planReceiptPath","runReceiptPath","handsIntentId","queuedHandsReviewId","approvedHandsReviewId","substrateGrantReceiptId","actionId","actionCommand","actionCommitMessage","allowedOperations","changedPaths","grantedAt","privateStateExposed"],
"properties": {
"schemaVersion":{"const":"epiphany.repo_work_hands_grant.v0"}, "grantId":{"type":"string","minLength":1},
"adoptionReviewId":{"type":"string","minLength":1}, "adoptionReviewSha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},
"workspaceIdentity":{"type":"string","minLength":1}, "item":{"type":"string","minLength":1}, "planId":{"type":"string","minLength":1},
"planSha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}, "runReceiptSha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},
"planReceiptPath":{"type":"string","minLength":1}, "runReceiptPath":{"type":"string","minLength":1},
"handsIntentId":{"type":"string","minLength":1}, "queuedHandsReviewId":{"type":"string","minLength":1}, "approvedHandsReviewId":{"type":"string","minLength":1},
"substrateGrantReceiptId":{"type":"string","minLength":1}, "actionId":{"type":"string","minLength":1},
"actionCommand":{"type":"string","minLength":1}, "actionCommitMessage":{"type":"string","minLength":1},
"allowedOperations":{"type":"array","minItems":1,"uniqueItems":true,"items":{"enum":["patch","command","commit"]}},
"changedPaths":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","minLength":1}},
"grantedAt":{"type":"string","format":"date-time"}, "privateStateExposed":{"const":false}
}
}

View file

@ -0,0 +1,21 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://gamecult.dev/epiphany/cultnet/epiphany.repo_work_plan_adoption_review.schema.json",
"title": "Repo Work Plan Adoption Review",
"type": "object",
"additionalProperties": false,
"required": ["schemaVersion","reviewId","decision","workspaceIdentity","item","planSchemaVersion","planId","planSha256","runReceiptSha256","planReceiptPath","runReceiptPath","handsIntentId","queuedHandsReviewId","substrateGrantReceiptId","actionId","actionCommand","actionCommitMessage","changedPaths","reviewedAt","privateStateExposed"],
"properties": {
"schemaVersion": {"const":"epiphany.repo_work_plan_adoption_review.v0"},
"reviewId":{"type":"string","minLength":1}, "decision":{"enum":["adopt","refuse","hold"]},
"workspaceIdentity":{"type":"string","minLength":1}, "item":{"type":"string","minLength":1},
"planSchemaVersion":{"type":"string","minLength":1}, "planId":{"type":"string","minLength":1},
"planSha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}, "runReceiptSha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},
"planReceiptPath":{"type":"string","minLength":1}, "runReceiptPath":{"type":"string","minLength":1},
"handsIntentId":{"type":"string","minLength":1}, "queuedHandsReviewId":{"type":"string","minLength":1},
"substrateGrantReceiptId":{"type":"string","minLength":1}, "actionId":{"type":"string","minLength":1},
"actionCommand":{"type":"string","minLength":1}, "actionCommitMessage":{"type":"string","minLength":1},
"changedPaths":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","minLength":1}},
"reviewedAt":{"type":"string","format":"date-time"}, "privateStateExposed":{"const":false}
}
}

View file

@ -1,6 +1,20 @@
{
"schemaVersion": "epiphany.cultnet_catalog.v0",
"schemas": [
{
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.repo_work_plan_adoption_review.schema.json",
"kind": "document_payload", "wireContracts": ["cultnet.schema.v0"],
"schemaVersion": "epiphany.repo_work_plan_adoption_review.v0",
"documentType": "epiphany.repo_work.plan_adoption_review",
"title": "Repo Work Plan Adoption Review", "path": "epiphany.repo_work_plan_adoption_review.schema.json"
},
{
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.repo_work_hands_grant.schema.json",
"kind": "document_payload", "wireContracts": ["cultnet.schema.v0"],
"schemaVersion": "epiphany.repo_work_hands_grant.v0",
"documentType": "epiphany.repo_work.hands_grant",
"title": "Repo Work Hands Grant", "path": "epiphany.repo_work_hands_grant.schema.json"
},
{
"schemaId": "https://gamecult.dev/epiphany/cultnet/epiphany.runtime.identity.schema.json",
"kind": "document_payload",