Each item of dependencies is {kind, part, version, digest}: kind 1 a resolved package's artifact reference, kind 3 the
toolchain's part. Its field artifact is part.
Builds: design 47 G §673, §466, §374
Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
246 lines
7.5 KiB
JSON
246 lines
7.5 KiB
JSON
{
|
|
"format": 1,
|
|
"seat": "mesh-builds",
|
|
"scope": "mesh",
|
|
"grain": "whole",
|
|
"domain": "Delivery",
|
|
"decision": "novox/hq ADR 0666",
|
|
"description": "The builder's seat: it says each artifact it published and each agreed toolchain, and answers a module's reserved version. Held once for the mesh (design 47 G section 52, section 307).",
|
|
"verbs": [
|
|
{
|
|
"name": "reserved",
|
|
"class": "read",
|
|
"callers": [
|
|
"seat:go-package-registry",
|
|
"seat:npm-package-registry",
|
|
"seat:container-image-registry",
|
|
"seat:oci-artifact-registry"
|
|
],
|
|
"description": "A module's reserved version with each artifact's digest, for a registry holder deciding whether to publish; asked by the module or by a package's name in its ecosystem (design 47 G section 369, section 478; design 51, Publishing).",
|
|
"input": {
|
|
"type": "object",
|
|
"properties": {
|
|
"module": {
|
|
"type": "string",
|
|
"description": "the module; give this or name"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "a package's or an image's name in its ecosystem (the Go module path, the npm name, the image name), in place of module; a name no entry carries, or more than one entry carries, is answered error naming it (design 47 G section 478, section 491)"
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"description": "the version, when asked for a particular one"
|
|
}
|
|
},
|
|
"required": []
|
|
},
|
|
"answer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"module": {
|
|
"type": "string",
|
|
"description": "the module"
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"description": "the reserved version, MAJOR.MINOR.PATCH"
|
|
},
|
|
"artifacts": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"artifact": {
|
|
"type": "string",
|
|
"description": "the artifact reference, <module>:<artifact>"
|
|
},
|
|
"digest": {
|
|
"type": "string",
|
|
"description": "its digest once built; empty before"
|
|
}
|
|
},
|
|
"required": [
|
|
"artifact"
|
|
]
|
|
}
|
|
},
|
|
"released": {
|
|
"type": "boolean",
|
|
"description": "true when the version is released: the catalog holds it, and artifacts are the ones its release recorded with their digests; false when it is reserved (design 47 G 582, 679)"
|
|
},
|
|
"error": {
|
|
"type": "string",
|
|
"description": "a name no entry carries, or a version neither reserved nor released, naming which; set alone (design 47 G 582, 679)"
|
|
}
|
|
},
|
|
"description": "the reservation or release, or the error; module, version and artifacts are present whenever error is not (design 47 G 679)"
|
|
}
|
|
}
|
|
],
|
|
"events": [
|
|
{
|
|
"name": "package-published",
|
|
"keep": {
|
|
"max-age-days": 90,
|
|
"max-mib": 128
|
|
},
|
|
"body": {
|
|
"$ref": "#/defs/PackagePublished"
|
|
}
|
|
},
|
|
{
|
|
"name": "toolchain-agreed",
|
|
"keep": {
|
|
"max-age-days": 90,
|
|
"max-mib": 16
|
|
},
|
|
"body": {
|
|
"$ref": "#/defs/ToolchainAgreed"
|
|
}
|
|
}
|
|
],
|
|
"family": {
|
|
"name": "mesh-builds.events",
|
|
"max-age-days": 7
|
|
},
|
|
"defs": {
|
|
"Dependency": {
|
|
"type": "object",
|
|
"properties": {
|
|
"part": {
|
|
"type": "string",
|
|
"description": "the dependency's part: for kind 1 the package's artifact reference, <module>:<artifact>; for kind 3 the agreed toolchain's part (design 47 G 466, 673)"
|
|
},
|
|
"kind": {
|
|
"type": "integer",
|
|
"enum": [
|
|
1,
|
|
3
|
|
],
|
|
"description": "1 an imported package, 3 the build toolchain (design 47 G section 374)"
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"description": "the version of the dependency the build resolved"
|
|
},
|
|
"digest": {
|
|
"type": "string",
|
|
"description": "the digest of the part, as the build used it"
|
|
}
|
|
},
|
|
"required": [
|
|
"part",
|
|
"kind",
|
|
"version",
|
|
"digest"
|
|
],
|
|
"description": "a dependency the build resolved: one item of kind 1 for each resolved package and one of kind 3 for the toolchain, named by the build module in its step key and carried by the builder (design 47 G 374, 673)"
|
|
},
|
|
"PackagePublished": {
|
|
"type": "object",
|
|
"properties": {
|
|
"v": {
|
|
"type": "integer"
|
|
},
|
|
"artifact": {
|
|
"type": "string",
|
|
"description": "the package's artifact reference, <module>:<artifact>, from the catalog entry"
|
|
},
|
|
"module": {
|
|
"type": "string",
|
|
"description": "the module"
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"description": "the version the build reserved, MAJOR.MINOR.PATCH"
|
|
},
|
|
"digest": {
|
|
"type": "string",
|
|
"description": "the published artifact's digest"
|
|
},
|
|
"branch": {
|
|
"type": "string",
|
|
"description": "the watched branch the build was made from"
|
|
},
|
|
"source": {
|
|
"type": "integer",
|
|
"description": "the source revision of that branch the build was made from"
|
|
},
|
|
"dependencies": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/defs/Dependency"
|
|
},
|
|
"description": "each dependency the build resolved, with its version and digest"
|
|
},
|
|
"at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"required": [
|
|
"v",
|
|
"artifact",
|
|
"module",
|
|
"version",
|
|
"digest",
|
|
"branch",
|
|
"source"
|
|
],
|
|
"description": "one artifact published at the module's reserved version (design 47 G section 52, section 334)"
|
|
},
|
|
"ToolchainAgreed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"v": {
|
|
"type": "integer"
|
|
},
|
|
"language": {
|
|
"type": "string",
|
|
"description": "the language whose agreed toolchain changed"
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"description": "the agreed toolchain's version"
|
|
},
|
|
"digests": {
|
|
"type": "array",
|
|
"description": "each digest the nodes reporting the agreed version report, as it stood when the version was agreed, with those nodes (design 47 G section 472, section 495)",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"digest": {
|
|
"type": "string",
|
|
"description": "the toolchain part's digest"
|
|
},
|
|
"nodes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"description": "the nodes reporting that digest"
|
|
}
|
|
},
|
|
"required": [
|
|
"digest",
|
|
"nodes"
|
|
]
|
|
}
|
|
},
|
|
"at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"required": [
|
|
"v",
|
|
"language",
|
|
"version",
|
|
"digests"
|
|
],
|
|
"description": "the agreed toolchain of a language changed (design 47 G section 376, ADR 0584 section 1)"
|
|
}
|
|
}
|
|
}
|