Registry seats: no seat delivers artifact-store, and the two store seats serve list (ADR 0632 §2, §3; issue 1966)
The store's address is the registry seat holder's listen, so the provision artifact-store retires; the sweep and the read tools read the store through list, never by its files or its read side. Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
This commit is contained in:
@@ -15,6 +15,7 @@ export const verbs = {
|
||||
tags: "tags",
|
||||
hold: "hold",
|
||||
release: "release",
|
||||
list: "list",
|
||||
} as const;
|
||||
|
||||
export const events = {
|
||||
@@ -72,6 +73,30 @@ export interface Hold {
|
||||
"reason"?: string;
|
||||
}
|
||||
|
||||
export interface Listed {
|
||||
/** for a manifest keeping one bundle or archive, the digest of that blob: what a reference names it by */
|
||||
"artifact"?: string;
|
||||
/** the manifest's digest, sha256:<hex> */
|
||||
"digest": string;
|
||||
/** a hold keeps it from retention */
|
||||
"held": boolean;
|
||||
/** it is an index, naming a manifest per platform */
|
||||
"index": boolean;
|
||||
/** for an index, the digests of the manifests it names */
|
||||
"platforms"?: string[];
|
||||
/** its bytes: its own content and every blob it names */
|
||||
"size": number;
|
||||
/** the tags naming it, none for an untagged one */
|
||||
"tags"?: string[];
|
||||
}
|
||||
|
||||
export interface Repository {
|
||||
/** each manifest it holds, by digest */
|
||||
"manifests": Listed[];
|
||||
/** the repository */
|
||||
"name": string;
|
||||
}
|
||||
|
||||
/** is what mirror takes. */
|
||||
export interface MirrorInput {
|
||||
/** its pinned digest, sha256:<hex> */
|
||||
@@ -145,15 +170,21 @@ export interface ReleaseAnswer {
|
||||
"released": boolean;
|
||||
}
|
||||
|
||||
/** is what list takes. */
|
||||
export interface ListInput {
|
||||
/** the repository, <module>/<artifact>; every repository of the seat when not given */
|
||||
"name"?: string;
|
||||
}
|
||||
|
||||
/** is what list answers. */
|
||||
export interface ListAnswer {
|
||||
/** each repository named, in order of its name */
|
||||
"repositories": Repository[];
|
||||
}
|
||||
|
||||
/** is the body of the event held. */
|
||||
export type HeldEvent = Hold;
|
||||
|
||||
/** is the body of the event released. */
|
||||
export type ReleasedEvent = Hold;
|
||||
|
||||
/** is the form of the provision artifact-store. */
|
||||
export interface ArtifactStoreForm {
|
||||
/** the store's address */
|
||||
"url": string;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ export const verbs = {
|
||||
remove: "remove",
|
||||
hold: "hold",
|
||||
release: "release",
|
||||
list: "list",
|
||||
} as const;
|
||||
|
||||
export const events = {
|
||||
@@ -70,6 +71,30 @@ export interface Hold {
|
||||
"reason"?: string;
|
||||
}
|
||||
|
||||
export interface Listed {
|
||||
/** for a manifest keeping one bundle or archive, the digest of that blob: what a reference names it by */
|
||||
"artifact"?: string;
|
||||
/** the manifest's digest, sha256:<hex> */
|
||||
"digest": string;
|
||||
/** a hold keeps it from retention */
|
||||
"held": boolean;
|
||||
/** it is an index, naming a manifest per platform */
|
||||
"index": boolean;
|
||||
/** for an index, the digests of the manifests it names */
|
||||
"platforms"?: string[];
|
||||
/** its bytes: its own content and every blob it names */
|
||||
"size": number;
|
||||
/** the tags naming it, none for an untagged one */
|
||||
"tags"?: string[];
|
||||
}
|
||||
|
||||
export interface Repository {
|
||||
/** each manifest it holds, by digest */
|
||||
"manifests": Listed[];
|
||||
/** the repository */
|
||||
"name": string;
|
||||
}
|
||||
|
||||
/** is what hold takes. */
|
||||
export interface HoldInput {
|
||||
/** the digest */
|
||||
@@ -104,15 +129,21 @@ export interface ReleaseAnswer {
|
||||
"released": boolean;
|
||||
}
|
||||
|
||||
/** is what list takes. */
|
||||
export interface ListInput {
|
||||
/** the repository, <module>/<artifact>; every repository of the seat when not given */
|
||||
"name"?: string;
|
||||
}
|
||||
|
||||
/** is what list answers. */
|
||||
export interface ListAnswer {
|
||||
/** each repository named, in order of its name */
|
||||
"repositories": Repository[];
|
||||
}
|
||||
|
||||
/** is the body of the event held. */
|
||||
export type HeldEvent = Hold;
|
||||
|
||||
/** is the body of the event released. */
|
||||
export type ReleasedEvent = Hold;
|
||||
|
||||
/** is the form of the provision artifact-store. */
|
||||
export interface ArtifactStoreForm {
|
||||
/** the store's address */
|
||||
"url": string;
|
||||
}
|
||||
|
||||
|
||||
+176
-3
@@ -1810,7 +1810,6 @@ export const list: readonly Seat[] = [
|
||||
},
|
||||
{
|
||||
"decision": "novox/hq ADR 0075",
|
||||
"delivers": "artifact-store",
|
||||
"grain": "seat-list",
|
||||
"name": "mesh-artifact-store",
|
||||
"scope": "mesh"
|
||||
@@ -3809,7 +3808,6 @@ export const list: readonly Seat[] = [
|
||||
},
|
||||
{
|
||||
"decision": "novox/hq ADR 0605",
|
||||
"delivers": "artifact-store",
|
||||
"emits": [
|
||||
"published",
|
||||
"refused",
|
||||
@@ -4358,12 +4356,99 @@ export const list: readonly Seat[] = [
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "What the store holds of one repository, or of every repository the seat holds when none is named: every image manifest and index, each with its digest, whether it is an index (and the manifests an index names), the tags naming it, its size and whether it is held. Read from the store itself, so a manifest no tag names is listed too; it reads only (ADR 0632 §3).",
|
||||
"input": {
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "the repository, <module>/<artifact>; every repository of the seat when not given",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"name": "list",
|
||||
"optional": true,
|
||||
"output": {
|
||||
"properties": {
|
||||
"repositories": {
|
||||
"description": "each repository named, in order of its name",
|
||||
"items": {
|
||||
"properties": {
|
||||
"manifests": {
|
||||
"description": "each manifest it holds, by digest",
|
||||
"items": {
|
||||
"properties": {
|
||||
"artifact": {
|
||||
"description": "for a manifest keeping one bundle or archive, the digest of that blob: what a reference names it by",
|
||||
"type": "string"
|
||||
},
|
||||
"digest": {
|
||||
"description": "the manifest's digest, sha256:<hex>",
|
||||
"type": "string"
|
||||
},
|
||||
"held": {
|
||||
"description": "a hold keeps it from retention",
|
||||
"type": "boolean"
|
||||
},
|
||||
"index": {
|
||||
"description": "it is an index, naming a manifest per platform",
|
||||
"type": "boolean"
|
||||
},
|
||||
"platforms": {
|
||||
"description": "for an index, the digests of the manifests it names",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"size": {
|
||||
"description": "its bytes: its own content and every blob it names",
|
||||
"type": "integer"
|
||||
},
|
||||
"tags": {
|
||||
"description": "the tags naming it, none for an untagged one",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"digest",
|
||||
"index",
|
||||
"size",
|
||||
"held"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"name": {
|
||||
"description": "the repository",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name",
|
||||
"manifests"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"repositories"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"decision": "novox/hq ADR 0605",
|
||||
"delivers": "artifact-store",
|
||||
"emits": [
|
||||
"published",
|
||||
"refused",
|
||||
@@ -4817,6 +4902,94 @@ export const list: readonly Seat[] = [
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "What the store holds of one repository, or of every repository the seat holds when none is named: every manifest keeping one bundle or archive, each with its digest, whether it is an index (and the manifests an index names), the tags naming it, its size and whether it is held. Read from the store itself, so a manifest no tag names is listed too; it reads only (ADR 0632 §3).",
|
||||
"input": {
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "the repository, <module>/<artifact>; every repository of the seat when not given",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"name": "list",
|
||||
"optional": true,
|
||||
"output": {
|
||||
"properties": {
|
||||
"repositories": {
|
||||
"description": "each repository named, in order of its name",
|
||||
"items": {
|
||||
"properties": {
|
||||
"manifests": {
|
||||
"description": "each manifest it holds, by digest",
|
||||
"items": {
|
||||
"properties": {
|
||||
"artifact": {
|
||||
"description": "for a manifest keeping one bundle or archive, the digest of that blob: what a reference names it by",
|
||||
"type": "string"
|
||||
},
|
||||
"digest": {
|
||||
"description": "the manifest's digest, sha256:<hex>",
|
||||
"type": "string"
|
||||
},
|
||||
"held": {
|
||||
"description": "a hold keeps it from retention",
|
||||
"type": "boolean"
|
||||
},
|
||||
"index": {
|
||||
"description": "it is an index, naming a manifest per platform",
|
||||
"type": "boolean"
|
||||
},
|
||||
"platforms": {
|
||||
"description": "for an index, the digests of the manifests it names",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"size": {
|
||||
"description": "its bytes: its own content and every blob it names",
|
||||
"type": "integer"
|
||||
},
|
||||
"tags": {
|
||||
"description": "the tags naming it, none for an untagged one",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"digest",
|
||||
"index",
|
||||
"size",
|
||||
"held"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"name": {
|
||||
"description": "the repository",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name",
|
||||
"manifests"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"repositories"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user