catalogue's compiled set is read from git.novox.be/novox/mesh-contracts/go/seats; the hand-written seat literal and its
verb builders go. The bar's block keeps its checks as code beside the data. A case of the seat set's test holds the
generated set equal, entry for entry, to the list compiled at 5a38a12 (testdata), but for the whole seats' additions
and the vault's two verbs; the three new registry seats are the only new entries. A holder of mesh-broker now serves its
eight verbs.
SDK-12: the vault's seat no longer promises accept and move-asks, which no holder served and nothing called; retire is
optional (design 32). The intake and move rows join one table; the move's own test goes with the two verbs.
Requires mesh-contracts (no version on the forge yet: a go.work, uncommitted, uses the sibling worktree until the
group pins it).
Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
4811 lines
134 KiB
JSON
4811 lines
134 KiB
JSON
[
|
|
{
|
|
"Name": "mesh-store",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "postgres-database",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "databases",
|
|
"description": "Every database the store holds, with its on-disk size.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"psql -l"
|
|
]
|
|
},
|
|
{
|
|
"name": "query",
|
|
"description": "One read-only statement against one database the store holds.",
|
|
"input": {
|
|
"properties": {
|
|
"database": {
|
|
"description": "the database to query",
|
|
"type": "string"
|
|
},
|
|
"sql": {
|
|
"description": "the read-only statement",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"database",
|
|
"sql"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"psql"
|
|
]
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0079"
|
|
},
|
|
{
|
|
"Name": "mesh-broker",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "mesh-bus",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0079"
|
|
},
|
|
{
|
|
"Name": "mesh-vault",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "secret",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "get",
|
|
"description": "One secret, sealed to the public key the asker sends (the sealed box of ADR 0206), with its generation; answered only to an asker the vault allows, as the bus proved it. Never the value in the clear, and never to a private key.",
|
|
"input": {
|
|
"properties": {
|
|
"name": {
|
|
"description": "the secret's name",
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"description": "the asker's X25519 public key as SPKI PEM — never a private key",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"public_key"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "accept",
|
|
"description": "Take a value given at the controller's terminal, from the controller alone: name the secret and get a call and a key made for it, then send the call and the value sealed to that key. The vault alone opens it, and never remakes an accepted credential.",
|
|
"input": {
|
|
"properties": {
|
|
"by": {
|
|
"description": "who gave it at the terminal",
|
|
"type": "string"
|
|
},
|
|
"call": {
|
|
"description": "the second step: the call the first step answered",
|
|
"type": "string"
|
|
},
|
|
"module": {
|
|
"description": "the module, for a module's own secret",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "the secret's name in the module",
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "the machine, for a module's own secret",
|
|
"type": "string"
|
|
},
|
|
"origin": {
|
|
"description": "issued for a bus account the controller minted for a core or moved module and hands at once (ADR 0374, issue 787); left out for a value given at the terminal",
|
|
"type": "string"
|
|
},
|
|
"provider": {
|
|
"description": "the provider's machine, for a provision's credential",
|
|
"type": "string"
|
|
},
|
|
"provision": {
|
|
"description": "the provision",
|
|
"type": "string"
|
|
},
|
|
"sealed": {
|
|
"description": "the second step: the value sealed to the call's key — never the value",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "secret-ask",
|
|
"description": "Ask the operator for a module's own secret at a desk, from the controller or a caller the vault's manifest names, named as the bus proved it (novox/hq ADR 0563 §8): the ask is recorded in the vault's store and bounded before the prompt opens, and what is typed is sealed to a key the vault made for the call and opens there alone.",
|
|
"input": {
|
|
"properties": {
|
|
"asked_by": {
|
|
"description": "who asked, as the bus named its caller",
|
|
"type": "string"
|
|
},
|
|
"call": {
|
|
"description": "the second step: the call the first step answered",
|
|
"type": "string"
|
|
},
|
|
"desk": {
|
|
"description": "the machine whose prompt asks",
|
|
"type": "string"
|
|
},
|
|
"module": {
|
|
"description": "the module",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "the secret's name in the module",
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "the machine the secret is for",
|
|
"type": "string"
|
|
},
|
|
"outcome": {
|
|
"description": "instead of sealed: how the prompt ended",
|
|
"type": "string"
|
|
},
|
|
"sealed": {
|
|
"description": "the second step: the value sealed to the call's key — never the value",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "issued",
|
|
"description": "Take the credential a provider's software issued for a provision, from the controller alone, which asks the provider's tool with a key the vault made for the call; kept as the provision's one credential, or, when the tool answers a value per holder named, each as that holder's own; the same value again writes nothing.",
|
|
"input": {
|
|
"properties": {
|
|
"call": {
|
|
"description": "the second step: the call the first step answered",
|
|
"type": "string"
|
|
},
|
|
"holders": {
|
|
"description": "the provision's holders from that provider, each {node, module}: its tool may answer a value for each, kept as that holder's own and handed to it alone",
|
|
"items": {
|
|
"properties": {
|
|
"module": {
|
|
"description": "the consuming module",
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "the holder's machine",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"module": {
|
|
"description": "the provider's module",
|
|
"type": "string"
|
|
},
|
|
"provider": {
|
|
"description": "the provider's machine",
|
|
"type": "string"
|
|
},
|
|
"provision": {
|
|
"description": "the provision",
|
|
"type": "string"
|
|
},
|
|
"sealed": {
|
|
"description": "the second step: the value sealed to the call's key — never the value",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "rotate",
|
|
"description": "Make a secret anew. Refused for a value a provider's software issued and for an accepted credential. Never answers the value.",
|
|
"input": {
|
|
"properties": {
|
|
"by": {
|
|
"description": "who asked, when the controller carries the act",
|
|
"type": "string"
|
|
},
|
|
"module": {
|
|
"description": "the module",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "the secret's name in the module",
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "the machine, for a module's own secret",
|
|
"type": "string"
|
|
},
|
|
"provider": {
|
|
"description": "the provider's machine",
|
|
"type": "string"
|
|
},
|
|
"provision": {
|
|
"description": "the provision",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "move-in",
|
|
"description": "Take one value of the controller's store in, as it is, from the node-engine of a machine it was sealed to and no other caller: name the row, its origin and generation and get a call and a key made for it, then send the call, the value sealed to that key and a key to read back to. Never replaces a value the vault holds; answers what it kept, read back sealed to that key.",
|
|
"input": {
|
|
"properties": {
|
|
"call": {
|
|
"description": "the second step: the call the first step answered",
|
|
"type": "string"
|
|
},
|
|
"consumer": {
|
|
"description": "the consumer's machine",
|
|
"type": "string"
|
|
},
|
|
"consumer_module": {
|
|
"description": "the consuming module",
|
|
"type": "string"
|
|
},
|
|
"generation": {
|
|
"description": "the controller's generation for the value",
|
|
"type": "string"
|
|
},
|
|
"local": {
|
|
"description": "the credential's local name, when it has one",
|
|
"type": "string"
|
|
},
|
|
"made_at": {
|
|
"description": "when it was made (RFC 3339)",
|
|
"type": "string"
|
|
},
|
|
"module": {
|
|
"description": "its module",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "its name in the module",
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "a module's own secret: its machine",
|
|
"type": "string"
|
|
},
|
|
"origin": {
|
|
"description": "made, accepted or issued, as the controller's store says",
|
|
"type": "string"
|
|
},
|
|
"provider": {
|
|
"description": "a pair credential: the provider's machine",
|
|
"type": "string"
|
|
},
|
|
"provision": {
|
|
"description": "the provision",
|
|
"type": "string"
|
|
},
|
|
"read_back_to": {
|
|
"description": "the second step: a raw X25519 public key the read-back is sealed to",
|
|
"type": "string"
|
|
},
|
|
"sealed": {
|
|
"description": "the second step: the value sealed to the call's key — never the value",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "node-key",
|
|
"description": "State this machine's sealing key to the vault, in its own name, from the node-engine of the machine alone: at its start and whenever the key changes. A first or changed key is recorded and the machine's core secrets are said changed; the same key again changes nothing.",
|
|
"input": {
|
|
"properties": {
|
|
"key": {
|
|
"description": "the machine's sealing key, a raw X25519 public key in base64",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "own",
|
|
"description": "Answer the node-engine of one machine, about its own machine alone (as the bus proved the caller, never an argument), its modules' own secrets and the pair credentials it consumes or provides that it names, each sealed to the key it stated with node-key. A credential the vault does not hold is named missing; never a value in the clear.",
|
|
"input": {
|
|
"properties": {
|
|
"credentials": {
|
|
"description": "the pair credentials the machine's composition reads, each {role: consumer|provider, provision, consumer, consumer_module, provider, local}",
|
|
"items": {
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "move-asks",
|
|
"description": "Copy rows of the controller's record of asks at a desk into the vault's, as they are and once, from the controller alone. No value is in any of them.",
|
|
"input": {
|
|
"properties": {
|
|
"asks": {
|
|
"description": "the controller's rows: id, node, module, name, desk, asked_by, opened_at, ended_at, outcome",
|
|
"items": {
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "issue-account",
|
|
"description": "Mint one bus account the grants part wants, now (novox/hq ADR 0561 §9): only while the controller's lease is handed away, never a node's account or the controller's, never anew for one the vault holds a value or an adopted hash for. Never the value.",
|
|
"input": {
|
|
"properties": {
|
|
"user": {
|
|
"description": "the bus user, e.g. ace.mesh-build-go",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"user"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "sign",
|
|
"description": "Sign with the vault's key or authority (novox/hq ADR 0550 §2): kind node-certificate signs the certificate of a machine's internal name, asked by that machine's node-engine for the serving key its record states, built from bus state alone, or by mesh-enrolment for a node it enrols, for the serving key the node presented at redeem (ADR 0587 §3); kind enrolment signs a redeem answer under its own context, for mesh-enrolment alone. Answers the certificate or the signature and the signer's fingerprint, and says signed; never a key.",
|
|
"input": {
|
|
"properties": {
|
|
"kind": {
|
|
"description": "node-certificate or enrolment",
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "the machine, for a node certificate: the caller's own, or the node mesh-enrolment enrols",
|
|
"type": "string"
|
|
},
|
|
"reply": {
|
|
"description": "the redeem answer's bytes in base64, for an enrolment",
|
|
"type": "string"
|
|
},
|
|
"serving_key": {
|
|
"description": "from mesh-enrolment: the serving key's public half the enrolling node presented",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"kind"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "enrolment-token",
|
|
"description": "Make a one-time token for a node mesh-enrolment issues on the operator's warrant: its secret kept with its copy sealed to the operator key and its hash written as the bus user enrol.\u003cnode\u003e. Answers only what the joining machine must trust (the bus's address, the bus certificate's fingerprint, the vault's public signing key), never the token; with sealed, the token sealed to the operator key, for tokens to relay; with drop, the token and its hash dropped, at the enrolment's end. Asked by mesh-enrolment alone, only from the lease write. The token carries the first tunnel mesh-enrolment built at issue (ADR 0587 §3, insight of 2026-11-02).",
|
|
"input": {
|
|
"properties": {
|
|
"drop": {
|
|
"description": "\"true\": drop the node's token and its hash",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"expires": {
|
|
"description": "when the token expires (RFC 3339), as the enrolment's key says",
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "the node the token is for",
|
|
"type": "string"
|
|
},
|
|
"sealed": {
|
|
"description": "\"true\": answer the token sealed to the operator key",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"tunnel": {
|
|
"additionalProperties": false,
|
|
"description": "the node's first tunnel, built by mesh-enrolment at issue and carried in the token: the hub's public key, the hub's endpoint, the node's tunnel address, its own tunnel key and the network's range",
|
|
"properties": {
|
|
"address": {
|
|
"description": "the joining node's tunnel address",
|
|
"type": "string"
|
|
},
|
|
"hub_endpoint": {
|
|
"description": "the hub's endpoint, host:port",
|
|
"type": "string"
|
|
},
|
|
"hub_key": {
|
|
"description": "the hub's tunnel public key",
|
|
"type": "string"
|
|
},
|
|
"key": {
|
|
"description": "the joining machine's own tunnel public key, as given at issue",
|
|
"type": "string"
|
|
},
|
|
"range": {
|
|
"description": "the private network's range, a prefix",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"address",
|
|
"hub_endpoint",
|
|
"hub_key",
|
|
"key",
|
|
"range"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
"required": [
|
|
"node"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "node-account",
|
|
"description": "Mint a joining node's bus account node.\u003cnode\u003e, sealed to the sealing key it presented, and write its hash; asked again for the same node and keys, answers the account it already minted; with retire, the account it minted for a revoked enrolment retired. Writes the node's node-logins key naming node.\u003cnode\u003e. Asked by mesh-enrolment alone. Never the value in the clear.",
|
|
"input": {
|
|
"properties": {
|
|
"keys_digest": {
|
|
"description": "the digest of every public key the node presented (delivery.KeysDigest)",
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "the joining node",
|
|
"type": "string"
|
|
},
|
|
"retire": {
|
|
"description": "\"true\": retire the account minted for this node",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"sealing_key": {
|
|
"description": "the sealing key's public half the node presented, which the account is sealed to",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"node"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "rotate-node",
|
|
"description": "Begin a node's account rotation to its other login: answered only for a call carrying a hand act recorded through mesh-hand-acts, which the vault reads back by its id. Makes the other login's value sealed to that node, writes it rotating in node-logins and says rotation-begun; says node-account-ready once the bus node's have shows a list holding both logins. One node at a time across the mesh, the bus node last: a call while a rotation runs waits until it is done.",
|
|
"input": {
|
|
"properties": {
|
|
"act": {
|
|
"description": "the id of the hand act recorded for it in mesh-hand-acts",
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "the node whose account rotates",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "why, in a sentence",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"node",
|
|
"why",
|
|
"act"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "node-account-confirm",
|
|
"description": "Confirm a node's switch to its new login: asked by the node-engine dialled as that login, the runtime's proof of the caller being the confirmation. The old login's hash is then removed, and rotation-done said once the bus node's have shows the list without it.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "abandon",
|
|
"description": "Abandon a node's rotation before its old login is retired: the new login and its value dropped, the old one kept; a node that switched switches back first.",
|
|
"input": {
|
|
"properties": {
|
|
"node": {
|
|
"description": "the node whose rotation is abandoned",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"node"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0161",
|
|
"Optional": [
|
|
"get",
|
|
"accept",
|
|
"secret-ask",
|
|
"issued",
|
|
"rotate",
|
|
"move-in",
|
|
"node-key",
|
|
"own",
|
|
"move-asks",
|
|
"issue-account",
|
|
"sign",
|
|
"enrolment-token",
|
|
"node-account",
|
|
"rotate-node",
|
|
"node-account-confirm",
|
|
"abandon"
|
|
]
|
|
},
|
|
{
|
|
"Name": "mesh-config",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "config",
|
|
"description": "Set, clear, list or read the history of config values: mesh config or node config for a predefined key, or a module's own value on one node, each set with why, validated, and naming each module on each node whose value moves.",
|
|
"input": {
|
|
"properties": {
|
|
"action": {
|
|
"description": "list (when not given), set, clear or history",
|
|
"type": "string"
|
|
},
|
|
"by": {
|
|
"description": "who gave the value at the controller's terminal",
|
|
"type": "string"
|
|
},
|
|
"key": {
|
|
"description": "the config key",
|
|
"type": "string"
|
|
},
|
|
"limit": {
|
|
"description": "for history: at most this many, newest",
|
|
"type": "number"
|
|
},
|
|
"module": {
|
|
"description": "a module: its own value, with node",
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "a node",
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"description": "for set: the value, of the key's type: a number, a string, a boolean, or for a trusted key an object or a list"
|
|
},
|
|
"why": {
|
|
"description": "for set and clear: why",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0348, ADR 0565",
|
|
"Optional": [
|
|
"config"
|
|
]
|
|
},
|
|
{
|
|
"Name": "mesh-provisioner",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "provisioning",
|
|
"description": "Read what the provisioner keeps: the registry (which domain answers which kind of placeholder), the needs each module on each node recorded, what is applied where, or the items of every collection, narrowed by node and module. Reads only.",
|
|
"input": {
|
|
"properties": {
|
|
"collection": {
|
|
"description": "for collect: a collection",
|
|
"type": "string"
|
|
},
|
|
"module": {
|
|
"description": "a module: for collect, a contributor",
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "a node",
|
|
"type": "string"
|
|
},
|
|
"what": {
|
|
"description": "registry (when not given), needs, applied or collect",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0349",
|
|
"Optional": [
|
|
"provisioning"
|
|
]
|
|
},
|
|
{
|
|
"Name": "mesh-artifact-store",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "artifact-store",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0075"
|
|
},
|
|
{
|
|
"Name": "mesh-catalog",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "modules",
|
|
"description": "Every module the trunk holds, each with its repository, its directory there, the merge commit it was last changed at and its fingerprint (or why it has none): the catalog of the mesh, read from its holder's state. Reads only.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "module",
|
|
"description": "One module whole: its repository, directory, commit and fingerprint, and its manifest as the trunk holds it. Older versions are in its repository's history. Reads only.",
|
|
"input": {
|
|
"properties": {
|
|
"module": {
|
|
"description": "the module's name",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"module"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "provides",
|
|
"description": "Which modules provide a provision (a module provides its own name too) and which require it, from the module graph's provision edges. Reads only.",
|
|
"input": {
|
|
"properties": {
|
|
"provision": {
|
|
"description": "the provision, such as postgres-database",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"provision"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "dependents",
|
|
"description": "The modules whose build edges reach a module, directly or through others (a base, a mesh package it publishes, the build module that builds them): what a change of it builds again, from the module graph. Reads only.",
|
|
"input": {
|
|
"properties": {
|
|
"module": {
|
|
"description": "the module's name",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"module"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0604",
|
|
"Optional": [
|
|
"modules",
|
|
"module",
|
|
"provides",
|
|
"dependents"
|
|
]
|
|
},
|
|
{
|
|
"Name": "mesh-delivery",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "deliveries",
|
|
"description": "Every delivery not final, and those that ended in the last day, one line each: its id (owner/repository@commit), its state, its group, what it waits for and since when. Narrowed by state, repository or group.",
|
|
"input": {
|
|
"properties": {
|
|
"all": {
|
|
"description": "\"true\": the final ones of the last thirty days too",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"group": {
|
|
"description": "a group's id (its branch name)",
|
|
"type": "string"
|
|
},
|
|
"repository": {
|
|
"description": "owner/repository",
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"description": "one state, e.g. delivering or held",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "times",
|
|
"description": "Removed in R6 (ADR 0539): refused by name, naming its replacement: the delivery view (nox-delivery): each machine's want and have, and since when",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "show",
|
|
"description": "One delivery or group whole: its delivery plan (what it builds, what each machine receives, what is not an ordinary send), every transition with when and why, the machine steps of its walk, its group and its order.",
|
|
"input": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "a delivery's id, or a group's",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "groups",
|
|
"description": "Every delivery group: its members in order, why each pair is ordered (declared, built by, version skew, engine before controller, by name), its composed check and its state, derived from its members.",
|
|
"input": {
|
|
"properties": {
|
|
"all": {
|
|
"description": "\"true\": the groups that ended too",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "what-if",
|
|
"description": "Removed in R6 (ADR 0539): refused by name, naming its replacement: the merge check's composition, which composes every machine a change touches",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "checks",
|
|
"description": "What the mesh's checks said of a pull request's head or of one commit: each of the commit's mesh statuses (mesh/check, the one a main requires from R4e, hq's mesh/repo-check, mesh/delivery, …) with its state, description and when it was set; the merge check's full verdict as the controller said it — each layer's summary, the machine that ran it, when, its build id and its report; and whether the branch's protection would let it merge, every required status being success.",
|
|
"input": {
|
|
"properties": {
|
|
"commit": {
|
|
"description": "a commit's sha, or the start of one, instead of a pull request",
|
|
"type": "string"
|
|
},
|
|
"number": {
|
|
"description": "a pull request's number: its head is read",
|
|
"type": "string"
|
|
},
|
|
"repository": {
|
|
"description": "owner/repository",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"repository"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "table",
|
|
"description": "The state table every delivery runs by: each transition with its guard, each state's bound and what healer H2 may do once it has passed; and the machine steps' table.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "stalled",
|
|
"description": "Every delivery held past its state's bound, with the transition the table lets healer H2 take for it, or none.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "recheck",
|
|
"description": "Check a rejected or ready delivery again: it goes back to proposed and the controller is asked for its check. With why.",
|
|
"input": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "the delivery's id",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "why, kept with the transition",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"why"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "release",
|
|
"description": "Removed in R6 (ADR 0539): refused by name, naming its replacement: the assigner's asks (hold, restore, backup, record), answered on the phone or in the delivery view",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "stop",
|
|
"description": "Removed in R6 (ADR 0539): refused by name, naming its replacement: a bad fingerprint is held and its canary set back by the assigner (ADR 0429 §6, ADR 0539 clause 18)",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "close",
|
|
"description": "Healer H2's verb: take the one transition the table names for a delivery held past its bound. Refused for any other.",
|
|
"input": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "the delivery's id",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "the condition it answers",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"why"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "retire-history",
|
|
"description": "Removed in R6 (ADR 0539): refused by name, naming its replacement: nothing to retire: the gate keeps no delivery after its merge",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "settle",
|
|
"description": "Ask the operator to settle deliveries held because their merge reached the trunk without a passing check: one ask on the operator's channel for all of them, as an Approve is asked. The verb moves nothing; on the operator's answer each goes to merged, and whether it is on the machines is derived as for any merge (novox/hq ADR 0556). Refused for a delivery not held, or held for another reason, naming why.",
|
|
"input": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"ids": {
|
|
"description": "the held deliveries' ids (owner/repository@commit)",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"minItems": 1,
|
|
"type": "array"
|
|
},
|
|
"why": {
|
|
"description": "why they may be settled, shown to the operator",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"ids",
|
|
"why"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0239",
|
|
"Optional": [
|
|
"times",
|
|
"what-if",
|
|
"checks",
|
|
"release",
|
|
"stop",
|
|
"retire-history",
|
|
"settle"
|
|
]
|
|
},
|
|
{
|
|
"Name": "mesh-placement",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "placement",
|
|
"description": "Read placement: one node's key, the nodes one module is placed on, or every key, each with its revision, and how full the state is against its cap. With history, one node's or one module's changes in order: a revision the state keeps whole, an older one as the proposal's changes from its placement-changed event.",
|
|
"input": {
|
|
"properties": {
|
|
"history": {
|
|
"description": "\"true\": the changes in order, from the stream and the state's revisions",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"module": {
|
|
"description": "one module: the nodes it is placed on",
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "one node",
|
|
"type": "string"
|
|
},
|
|
"seats": {
|
|
"description": "\"true\": who holds each seat, and on which node (the state seat-holders); with node, that node's",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "proposals",
|
|
"description": "Every open proposal of placement: its changes, the revision of each key it was laid over, its candidates, every node's answer, the differences computed and answered, its verdict and its ask. Narrowed to one by id.",
|
|
"input": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "one proposal's id",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "propose",
|
|
"description": "Propose a change of placement, with why: laid over the current keys and refused at once, naming every finding, when the result cannot be placed (two modules on one host port, a provider not placed, a seat held once held twice, two nodes with one address, two hubs, a module the indexer does not hold, a node with no record). Otherwise the nodes it touches compose it in shadow and answer, and on a passing verdict the operator is asked to approve it. Who proposes is the caller, as the runtime proves it. An add-node from mesh-enrolment, whose warrant names its node and address, is written with no ask of its own: its Approve is the enrolment's (ADR 0587 §7).",
|
|
"input": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"changes": {
|
|
"description": "the changes, each an object with `op`: place (node, module, ports, bindings), take-off (node, module), pin (node, provision, provider {node, module}), unpin (node, provision), hold (node, module, claim, scope, kind, site), unhold (node, module, claim), decide (node, field, value: a decided field of the node, its address among them), config (node, module, mesh-wide, layer, mesh-wide-values, values), add-node (node, decided, keys: a joining node, mesh-enrolment's alone, the proposal's one change, with the enrolment's warrant, its tunnel key alone at the operator's yes; ADR 0587 §7), remove-node (node: a joining node never confirmed, taken off when its enrolment ends; mesh-enrolment's alone, on the same warrant)",
|
|
"items": {
|
|
"required": [
|
|
"op",
|
|
"node"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"minItems": 1,
|
|
"type": "array"
|
|
},
|
|
"warrant": {
|
|
"description": "for an add-node alone: the enrolment's warrant {node, address, ask, warrant}, naming the change's node and address",
|
|
"required": [
|
|
"node",
|
|
"address",
|
|
"ask",
|
|
"warrant"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"why": {
|
|
"description": "why, shown to the operator with the proposal",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"why",
|
|
"changes"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "withdraw",
|
|
"description": "Withdraw an open proposal: its key and its candidates are deleted and placement-withdrawn carries it whole. With why.",
|
|
"input": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "the proposal's id",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "why, kept in the event",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"why"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "again",
|
|
"description": "Judge an open proposal now with the answers that stand, and raise its ask again when its verdict passes and the operator's channel does not hold the ask. Nothing more: the recovery of a proposal whose judgement or ask was lost.",
|
|
"input": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "the proposal's id",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0567",
|
|
"Optional": [
|
|
"placement",
|
|
"proposals",
|
|
"propose",
|
|
"withdraw",
|
|
"again"
|
|
]
|
|
},
|
|
{
|
|
"Name": "mesh-delivery-checker",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "try",
|
|
"description": "Try a pushed head before its pull request is opened: the checker judges it as it judges a pull request's head, merged onto its trunk's head, its unit and integration levels through the build modules, and owes the forge nothing. Answers the try's id at once; try-read reads where it stands. A try of the same head that waits or runs is the answer to a second ask; at most 4 wait or run at once, mesh-wide.",
|
|
"input": {
|
|
"properties": {
|
|
"head": {
|
|
"description": "the full commit to try, 40 or 64 hex digits",
|
|
"type": "string"
|
|
},
|
|
"level": {
|
|
"description": "unit or integration: only this level; both when absent",
|
|
"type": "string"
|
|
},
|
|
"repository": {
|
|
"description": "\u003cowner\u003e/\u003cname\u003e",
|
|
"type": "string"
|
|
},
|
|
"tests": {
|
|
"description": "a go test -run pattern: only those tests run, and nothing is kept",
|
|
"type": "string"
|
|
},
|
|
"trunk": {
|
|
"description": "the trunk commit to merge it onto, or the trunk's branch for its head now; the trunk's head when absent",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"repository",
|
|
"head"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"sh merge-check.sh",
|
|
"docker run postgres"
|
|
]
|
|
},
|
|
{
|
|
"name": "try-read",
|
|
"description": "Where a try stands, as stored: queued, running, or its end (pass, fail, or error when it could not run), with what was said of it, the head and the trunk commit it was merged onto, the time it took and what failed first. Read-only.",
|
|
"input": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "the try's id, try-\u003cdigits\u003e",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "try-end",
|
|
"description": "End a try that waits or runs, as error, by hand: say why (kept in what it says). Its place among the tries is free at once and the next try of its head asks anew with a new id. A try that ended already is refused.",
|
|
"input": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "the try's id, try-\u003cdigits\u003e",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "why it is ended, in words",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"why"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0547",
|
|
"Optional": [
|
|
"try",
|
|
"try-read",
|
|
"try-end"
|
|
]
|
|
},
|
|
{
|
|
"Name": "mesh-conditions",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": [
|
|
"condition-raised",
|
|
"condition-changed",
|
|
"condition-cleared"
|
|
],
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "conditions",
|
|
"description": "What is wrong with the mesh now: every open condition, urgent first, then oldest, raised from the observers' findings (the watchman, the self-check, the healers, the assigner) and cleared when the finding goes, never by hand. Given a key, that one whole with its evidence; with history, every transition lately.",
|
|
"input": {
|
|
"properties": {
|
|
"days": {
|
|
"description": "with history: how many days back (default 7, at most 90)",
|
|
"type": "string"
|
|
},
|
|
"history": {
|
|
"description": "\"true\": every raising, change, silence and clearing lately, oldest first",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"key": {
|
|
"description": "a condition's key: that one whole; with history, only its transitions",
|
|
"type": "string"
|
|
},
|
|
"machine": {
|
|
"description": "only those about this machine",
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"description": "only this scope: machine, plan, call, build, merge, provider, seat, bus, core, probe, mesh, delivery or module",
|
|
"type": "string"
|
|
},
|
|
"severity": {
|
|
"description": "only urgent, or only warning",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "silence",
|
|
"description": "Stop one condition's messages for a while, a hand act with why: it stays open and in status, and the silence is kept as its transition in history.",
|
|
"input": {
|
|
"properties": {
|
|
"cause": {
|
|
"description": "the cause in a word (the condition's kind when absent)",
|
|
"type": "string"
|
|
},
|
|
"for": {
|
|
"description": "how long: 30m, 4h, 2d; at most 7d",
|
|
"type": "string"
|
|
},
|
|
"key": {
|
|
"description": "the condition's key",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "why, required and recorded",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"key",
|
|
"for",
|
|
"why"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "resync",
|
|
"description": "Read every observer's findings again and raise and clear what differs from the open conditions: the recovery of a keeper that missed a change.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0564"
|
|
},
|
|
{
|
|
"Name": "mesh-watchdogs",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "signals",
|
|
"description": "Every watchdog of the signals table the watchman keeps, each a key that expires unless its signal renews it: its row, what renews it, its bound, the age of its newest signal, and the finding its expiry wrote.",
|
|
"input": {
|
|
"properties": {
|
|
"row": {
|
|
"description": "one row, e.g. S1",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "stuck",
|
|
"description": "Every want, build or step the watchman says stopped moving past its bound, with since when and the words of its finding.",
|
|
"input": {
|
|
"properties": {
|
|
"machine": {
|
|
"description": "only those on this machine",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "presence",
|
|
"description": "Every machine and tool runner the watchman sees connected, with its last word, and those it says silent; a machine that said it sleeps is shown as sleeping, not silent.",
|
|
"input": {
|
|
"properties": {
|
|
"machine": {
|
|
"description": "one machine",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "dead-letters",
|
|
"description": "Every message a consumer on the bus gave up on, kept in DEAD_LETTERS: whose consumer, the subject, how often it was handed over and when it was given up, newest first. With id: that one whole. With deliver or drop, a hand act with why.",
|
|
"input": {
|
|
"properties": {
|
|
"cause": {
|
|
"description": "with deliver or drop: the cause in a word (dead-letter when absent)",
|
|
"type": "string"
|
|
},
|
|
"consumer": {
|
|
"description": "a consumer's name, or \u003cstream\u003e.\u003cconsumer\u003e: only what that one gave up on",
|
|
"type": "string"
|
|
},
|
|
"deliver": {
|
|
"description": "a dead letter's id: deliver it again to the consumer that gave it up (needs why)",
|
|
"type": "string"
|
|
},
|
|
"drop": {
|
|
"description": "a dead letter's id: drop it for good (needs why)",
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"description": "a dead letter's id, as the list gives it: that one whole, with its message",
|
|
"type": "string"
|
|
},
|
|
"limit": {
|
|
"description": "how many to list, newest first (default 50); only when listing",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "with deliver or drop: why, required and recorded",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "resync",
|
|
"description": "Rebuild presence from the bus's connections, and the pulses and findings from the keys the watchman watches, and take every dead-letter notice waiting: the recovery of a watchman that missed a change.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0564"
|
|
},
|
|
{
|
|
"Name": "mesh-self-check",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": [
|
|
"checked"
|
|
],
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "doctor",
|
|
"description": "The self-check: the last run's verdict at once, each probe passed, failed, deferred (its facts not on the bus yet, named) or could not run, and how long ago. With run, a run now; with probe, one probe's verdict whole. Runs every five minutes on its own; each failure is a finding.",
|
|
"input": {
|
|
"properties": {
|
|
"probe": {
|
|
"description": "one probe's id (D6): its verdict alone, with every finding",
|
|
"type": "string"
|
|
},
|
|
"run": {
|
|
"description": "\"true\": run every probe now and answer the verdict",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "probes",
|
|
"description": "The registry: what each probe asserts, where it reads its facts, and the finding it writes.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0564"
|
|
},
|
|
{
|
|
"Name": "mesh-healers",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": [
|
|
"healer-acted"
|
|
],
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "healers",
|
|
"description": "The healers: each registered response to one kind of condition, its repair, its budget and what happens when it is spent; every act taken lately with its outcome, and the mesh-wide brake.",
|
|
"input": {
|
|
"properties": {
|
|
"days": {
|
|
"description": "how many days of acts back (default 7)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "heal",
|
|
"description": "Take one healer's act for one open condition now, within its budget and the brake.",
|
|
"input": {
|
|
"properties": {
|
|
"key": {
|
|
"description": "the condition's key",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "why now, kept with the act",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"key",
|
|
"why"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "drill",
|
|
"description": "Record a drill: something broken on purpose to see the mesh raise and clear it, with what it tests. A drill is never a repair: no healer is wanted for it however often it is run.",
|
|
"input": {
|
|
"properties": {
|
|
"condition": {
|
|
"description": "the key of the condition the drill is meant to raise, if any (optional)",
|
|
"type": "string"
|
|
},
|
|
"what": {
|
|
"description": "what was done on purpose, in a line",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "what the drill tests",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"what",
|
|
"why"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0564"
|
|
},
|
|
{
|
|
"Name": "mesh-wants",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": [
|
|
"policy-changed"
|
|
],
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "upgrade",
|
|
"description": "Whether each module's new builds wait for a person: its policy (roll, together or record) and where it comes from (a person, the module, the bus, its irreplaceable data, the default); the bus is never rolled. With module, that one; with module, policy and why, a person's choice for it, recorded as a hand act; with policy default, the choice taken back. With compare, each node's own composition and the assigner's findings.",
|
|
"input": {
|
|
"properties": {
|
|
"compare": {
|
|
"description": "\"true\": each node's own composition, by its digest, and the assigner's findings",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"module": {
|
|
"description": "one module",
|
|
"type": "string"
|
|
},
|
|
"policy": {
|
|
"description": "with module: roll, together, record, or default to take a person's choice back",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "with policy: why, required and kept",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "bus",
|
|
"description": "What a bus upgrade would do: the fingerprint of the bus module each node runs against the indexer's newest, and the last bus steps from the hand-act log and the assigner's puts of the bus. Read-only: the step itself is the put on the operator's warrant.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0565"
|
|
},
|
|
{
|
|
"Name": "mesh-hand-acts",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": [
|
|
"act-recorded"
|
|
],
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "hand-act",
|
|
"description": "Record one act done by hand: what, why, its cause in a word or a condition's kind (the word a second act for the same reason uses) and the condition it addresses. Who did it is the caller the runtime proves, never said by the caller. Said as act-recorded.",
|
|
"input": {
|
|
"properties": {
|
|
"cause": {
|
|
"description": "the cause in a word, or a condition's kind",
|
|
"type": "string"
|
|
},
|
|
"condition": {
|
|
"description": "the key of the condition it addressed, if any (optional)",
|
|
"type": "string"
|
|
},
|
|
"verb": {
|
|
"description": "the act's verb in the log: a repair when absent, `hand-act drill` for a drill, or a recorder's own",
|
|
"type": "string"
|
|
},
|
|
"what": {
|
|
"description": "what was done, in a line",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "why it had to be done by hand",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"what",
|
|
"why"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "hand-acts",
|
|
"description": "What was done by hand lately, over this log and the controller's: who, why and the cause of each, and the causes recorded twice within a fortnight (a healer is wanted).",
|
|
"input": {
|
|
"properties": {
|
|
"cause": {
|
|
"description": "only this cause",
|
|
"type": "string"
|
|
},
|
|
"days": {
|
|
"description": "how many days back (default 14)",
|
|
"type": "string"
|
|
},
|
|
"warrants": {
|
|
"description": "\"true\": every warrant recorded",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"who": {
|
|
"description": "only acts whose who contains this",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "warranted",
|
|
"description": "Record what a module did on the operator's warrant: who chose, through which channel, with which proofs and which answer read from the router's own record of that module's ask, never from the caller; once per ask. Refused for an ask still open, ended without a choice, or not that module's.",
|
|
"input": {
|
|
"properties": {
|
|
"ask": {
|
|
"description": "its ask's id",
|
|
"type": "string"
|
|
},
|
|
"asker": {
|
|
"description": "the module that asked",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"asker",
|
|
"ask"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0565"
|
|
},
|
|
{
|
|
"Name": "mesh-enrolment",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": [
|
|
"enrolment-issued",
|
|
"node-enrolled",
|
|
"enrolment-refused",
|
|
"enrolment-revoked",
|
|
"enrolment-expired"
|
|
],
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "issue",
|
|
"description": "Issue a one-time token for a new machine, on the operator's Approve: refused at once, naming every finding, for a name that is not a node name or that a node record, a placement key or an open enrolment holds, and for every call before the controller's lease is handed away. Otherwise reserves the lowest free private-network address, asks the operator under the seat's own name and, on the warrant, adds the node to placement with its tunnel key, asks the vault for the token and says enrolment-issued. The token itself is read only through tokens.",
|
|
"input": {
|
|
"properties": {
|
|
"expires": {
|
|
"description": "how long the token lasts, a duration such as 1h or 24h: one hour when not given, at most 24 hours",
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "the new machine's name in the mesh",
|
|
"type": "string"
|
|
},
|
|
"overlay_key": {
|
|
"description": "the new machine's private network (tunnel) public key, as `nox-mesh-host key` prints it",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "why it joins, shown to the operator with the ask",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"node",
|
|
"why",
|
|
"overlay_key"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "redeem",
|
|
"description": "Spend a token: asked by a joining node-engine dialled as enrol.\u003cnode\u003e alone, with the public halves of its keys and its identity key's proof over them. Spends the token, asks the vault for the node's account and certificate, writes the node into placement, and answers the account sealed to the node, its certificate and the vault's public half, signed by the vault. Asked again with the same keys it finishes what is not done and answers the same; with other keys it is refused.",
|
|
"input": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"node": {
|
|
"description": "the node the token was issued for",
|
|
"type": "string"
|
|
},
|
|
"overlay_key": {
|
|
"description": "the private network key's public half",
|
|
"type": "string"
|
|
},
|
|
"profile": {
|
|
"description": "what the machine is, as its record says it",
|
|
"type": "object"
|
|
},
|
|
"proof": {
|
|
"description": "the identity key's signature over the redeem's proof bytes (delivery.RedeemProof), base64",
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"description": "the identity key's public half, base64",
|
|
"type": "string"
|
|
},
|
|
"sealing_key": {
|
|
"description": "the sealing key's public half, which the account is sealed to",
|
|
"type": "string"
|
|
},
|
|
"serving_key": {
|
|
"description": "the serving key's public half, which the certificate binds",
|
|
"type": "string"
|
|
},
|
|
"tunnel": {
|
|
"description": "a tunnel found on the machine: everything but its private key",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"required": [
|
|
"node",
|
|
"public_key",
|
|
"sealing_key",
|
|
"proof"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "confirm",
|
|
"description": "Confirm an enrolment: asked by the node-engine dialled as its own node login alone, the runtime's proof of that caller being the confirmation. Says node-enrolled and ends the enrolment.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "revoke",
|
|
"description": "End an enrolment at any stage, with why, without an Approve: withdraws an open ask, deletes the node's key and its address, has the vault retire an account it already minted for it, records the act as a hand act and says enrolment-revoked.",
|
|
"input": {
|
|
"properties": {
|
|
"node": {
|
|
"description": "the node",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "why, recorded with the hand act",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"node",
|
|
"why"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "tokens",
|
|
"description": "Read every open enrolment, or one: its stage, expiry, ask and revision, the bucket's fill against its cap. For a node at live, its token sealed to the operator key, asked of the vault at that moment and relayed as the vault sealed it. With history, the ended enrolments from the seat's events, as far back as the events are kept.",
|
|
"input": {
|
|
"properties": {
|
|
"history": {
|
|
"description": "\"true\": the ended enrolments too",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "one node",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "again",
|
|
"description": "Raise an issue's ask again when the operator's channel does not hold it, and nothing more.",
|
|
"input": {
|
|
"properties": {
|
|
"node": {
|
|
"description": "the node whose ask is raised again",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"node"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0587"
|
|
},
|
|
{
|
|
"Name": "mesh-artifact-sweep",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": [
|
|
"artifacts-gone"
|
|
],
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "artifacts",
|
|
"description": "Every artifact the mesh made that lives in its artifact store, each with its repository, digest, kind (image or archive) and state: kept, and why (a want names it, or one of the five newest builds of its module in the builder's log), eligible (made, kept for no reason, not yet let go), or unrecorded (in the store and named by nothing the mesh made: never removed). Reads only.",
|
|
"input": {
|
|
"properties": {
|
|
"collected": {
|
|
"description": "\"true\": list the collected references too (counted always)",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"repository": {
|
|
"description": "only this repository's references, as \u003cmodule\u003e/\u003cartifact\u003e (the counts stay whole)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "held",
|
|
"description": "Whether the artifact store holds each reference given, asked with one HEAD each: held, gone (the store answered 404) or unknown with why. The builder asks it before it reuses a done key. Reads only.",
|
|
"input": {
|
|
"properties": {
|
|
"references": {
|
|
"description": "the artifacts' references, artifact-store://\u003cmodule\u003e/\u003cartifact\u003e/blobs/sha256:\u003chex\u003e: a list, or one text separated by commas",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"references"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "collect",
|
|
"description": "The artifact store's sweep, now: what is eligible is let go of. Without confirm a dry run: what would be let go, nothing held or deleted. With confirm and why: every kept archive held first, then each eligible artifact let go of, oldest first, an index with the platform manifests no kept index names, each deletion recorded in the hand-act log. Bounded by most (500 by default, at most 5000) and 45 seconds; what is left is said. Never touches a digest the mesh did not make.",
|
|
"input": {
|
|
"properties": {
|
|
"confirm": {
|
|
"description": "\"true\": let go of what is eligible (needs why); without it nothing is done",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"most": {
|
|
"description": "let go of at most this many (500 by default, at most 5000)",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "with confirm: why, required and recorded",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "mirrors",
|
|
"description": "The bases the mesh copied into its artifact store, each kept (a kept build stood on it), eligible (only builds no longer kept stood on it) or unrecorded (no build the builder's log holds stood on it: never removed), by what the builder's log says each build stood on. Records nothing by hand.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "images",
|
|
"description": "Every container image one machine's want and have name, each with the resources naming it: what the machine keeps when it prunes its images. Reads only.",
|
|
"input": {
|
|
"properties": {
|
|
"node": {
|
|
"description": "the machine's name",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"node"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0571"
|
|
},
|
|
{
|
|
"Name": "npm-package-registry",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "npm-package-registry",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0109"
|
|
},
|
|
{
|
|
"Name": "git",
|
|
"Scope": "mesh",
|
|
"Replicated": false,
|
|
"Delivers": "git",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0111"
|
|
},
|
|
{
|
|
"Name": "node-build-go",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": [
|
|
"delivery",
|
|
"check",
|
|
"recheck"
|
|
],
|
|
"Emits": null,
|
|
"PulledByKind": true,
|
|
"Yields": true,
|
|
"Serves": [
|
|
{
|
|
"name": "current",
|
|
"description": "The Go asks this node runs now (each ask's id, kind, module and when it started), its build capacity, and whether it is paused, taking no new ask.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "pause",
|
|
"description": "Take no new Go ask on this node until resumed; an ask running here ends in its place. Kept across a restart of the build module (its pause key). A capacity of 0 is the lasting way to keep a node from building.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "resume",
|
|
"description": "Take Go asks again on this node.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0525, ADR 0536, ADR 0553"
|
|
},
|
|
{
|
|
"Name": "node-build-node",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": [
|
|
"delivery",
|
|
"check",
|
|
"recheck"
|
|
],
|
|
"Emits": null,
|
|
"PulledByKind": true,
|
|
"Yields": true,
|
|
"Serves": [
|
|
{
|
|
"name": "current",
|
|
"description": "The Node asks this node runs now (each ask's id, kind, module and when it started), its build capacity, and whether it is paused, taking no new ask.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "pause",
|
|
"description": "Take no new Node ask on this node until resumed; an ask running here ends in its place. Kept across a restart of the build module (its pause key). A capacity of 0 is the lasting way to keep a node from building.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "resume",
|
|
"description": "Take Node asks again on this node.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0525, ADR 0536, ADR 0553"
|
|
},
|
|
{
|
|
"Name": "node-build-image",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": [
|
|
"delivery",
|
|
"check",
|
|
"recheck"
|
|
],
|
|
"Emits": null,
|
|
"PulledByKind": true,
|
|
"Yields": true,
|
|
"Serves": [
|
|
{
|
|
"name": "current",
|
|
"description": "The image asks this node runs now (each ask's id, kind, module and when it started), its build capacity, and whether it is paused, taking no new ask.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "pause",
|
|
"description": "Take no new image ask on this node until resumed; an ask running here ends in its place. Kept across a restart of the build module (its pause key). A capacity of 0 is the lasting way to keep a node from building.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "resume",
|
|
"description": "Take image asks again on this node.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0525, ADR 0536, ADR 0553"
|
|
},
|
|
{
|
|
"Name": "mesh-dns-resolver",
|
|
"Scope": "mesh",
|
|
"Replicated": true,
|
|
"Delivers": "wildcard-resolution",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0194, ADR 0223"
|
|
},
|
|
{
|
|
"Name": "node-hostname",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "entries",
|
|
"description": "Every line of this machine's /etc/hosts, each marked whose it is: the operator's, or the block of the module or tool that writes it.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"cat /etc/hosts",
|
|
"getent hosts"
|
|
]
|
|
},
|
|
{
|
|
"name": "add",
|
|
"description": "Add one address and its names to the operator's lines of this machine's /etc/hosts — a name for this machine's own programs, not the mesh's.",
|
|
"input": {
|
|
"properties": {
|
|
"address": {
|
|
"description": "the IPv4 or IPv6 address",
|
|
"type": "string"
|
|
},
|
|
"names": {
|
|
"description": "the names for it, separated by spaces",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"address",
|
|
"names"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"edit /etc/hosts",
|
|
"HOSTALIASES"
|
|
]
|
|
},
|
|
{
|
|
"name": "remove",
|
|
"description": "Remove one name, or every line of one address, from the operator's lines of this machine's /etc/hosts. A line a module writes is refused, naming the module.",
|
|
"input": {
|
|
"properties": {
|
|
"name": {
|
|
"description": "a host name, or an address to remove every line of",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"sed -i /etc/hosts"
|
|
]
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": [
|
|
{
|
|
"path": "/etc/hosts"
|
|
},
|
|
{
|
|
"path": "/etc/hostname"
|
|
}
|
|
],
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0199, ADR 0223"
|
|
},
|
|
{
|
|
"Name": "node-intrusion-prevention",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "status",
|
|
"description": "Every jail on this machine with how many it is watching and holding now, and the totals since the jail started; one jail's detail when named.",
|
|
"input": {
|
|
"properties": {
|
|
"jail": {
|
|
"description": "one jail (optional)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"fail2ban-client status"
|
|
]
|
|
},
|
|
{
|
|
"name": "banned",
|
|
"description": "Every address banned on this machine right now, with the jail that holds it and when the ban ends.",
|
|
"input": {
|
|
"properties": {
|
|
"jail": {
|
|
"description": "one jail (optional)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"fail2ban-client banned"
|
|
]
|
|
},
|
|
{
|
|
"name": "ban",
|
|
"description": "Ban one address in one jail now, for the jail's ban time — an operator's act on the live ban list, which the mesh never writes itself.",
|
|
"input": {
|
|
"properties": {
|
|
"ip": {
|
|
"description": "the address",
|
|
"type": "string"
|
|
},
|
|
"jail": {
|
|
"description": "the jail to hold it",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"ip",
|
|
"jail"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"fail2ban-client set banip"
|
|
]
|
|
},
|
|
{
|
|
"name": "unban",
|
|
"description": "Let one address go, from one jail or from every jail when none is named.",
|
|
"input": {
|
|
"properties": {
|
|
"ip": {
|
|
"description": "the address",
|
|
"type": "string"
|
|
},
|
|
"jail": {
|
|
"description": "one jail (optional)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"ip"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"fail2ban-client unban",
|
|
"fail2ban-client set unbanip"
|
|
]
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0121"
|
|
},
|
|
{
|
|
"Name": "node-packet-filter",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "rules",
|
|
"description": "The packet filter as this machine enforces it now: the nftables ruleset and, where the tool exists, the legacy filter's listings. Narrowed to one table or chain when asked.",
|
|
"input": {
|
|
"properties": {
|
|
"chain": {
|
|
"description": "one chain of that table (optional)",
|
|
"type": "string"
|
|
},
|
|
"table": {
|
|
"description": "one nftables table, as `family name` (optional)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"nft list ruleset",
|
|
"iptables -L",
|
|
"iptables-save"
|
|
]
|
|
},
|
|
{
|
|
"name": "reload",
|
|
"description": "Load the mesh's own filter again from the file the mesh writes, and answer with the mesh's table as loaded.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"nft -f"
|
|
]
|
|
},
|
|
{
|
|
"name": "remove",
|
|
"description": "Remove one rule set the mesh did not write, named exactly as the host reports it (novox/hq ADR 0168) — `chain X (iptables-legacy)` or `table ip6 filter, chain DOCKER-USER`. Refuses the mesh's tables, the runtime's own chains, a built-in chain and an active found firewall's chains. An operator's act, by name, never a flush.",
|
|
"input": {
|
|
"properties": {
|
|
"where": {
|
|
"description": "the rule set, as `node show` lists it",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"where"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"nft delete",
|
|
"iptables -X"
|
|
]
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0121"
|
|
},
|
|
{
|
|
"Name": "node-service-manager",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "units",
|
|
"description": "The units the service manager knows in a scope, each with its load, active and sub state; narrowed to a pattern when asked.",
|
|
"input": {
|
|
"properties": {
|
|
"pattern": {
|
|
"description": "a glob the unit's name must match (optional)",
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"description": "\"system\" (the default) or \"user\": the operator account's own manager",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"systemctl list-units"
|
|
]
|
|
},
|
|
{
|
|
"name": "status",
|
|
"description": "One unit as the service manager sees it now: its states, whether it starts at boot, its main process, and whether the mesh declares it.",
|
|
"input": {
|
|
"properties": {
|
|
"scope": {
|
|
"description": "\"system\" (the default) or \"user\": the operator account's own manager",
|
|
"type": "string"
|
|
},
|
|
"unit": {
|
|
"description": "the unit's name, as the service manager knows it",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"unit"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"systemctl status",
|
|
"systemctl is-active"
|
|
]
|
|
},
|
|
{
|
|
"name": "start",
|
|
"description": "Start one unit. For a unit the mesh declares, the answer says the host will restore what its declaration says at the next apply.",
|
|
"input": {
|
|
"properties": {
|
|
"scope": {
|
|
"description": "\"system\" (the default) or \"user\": the operator account's own manager",
|
|
"type": "string"
|
|
},
|
|
"unit": {
|
|
"description": "the unit's name, as the service manager knows it",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"unit"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"systemctl start"
|
|
]
|
|
},
|
|
{
|
|
"name": "stop",
|
|
"description": "Stop one unit; for a mesh-declared unit the answer says the host will restore its declared state.",
|
|
"input": {
|
|
"properties": {
|
|
"scope": {
|
|
"description": "\"system\" (the default) or \"user\": the operator account's own manager",
|
|
"type": "string"
|
|
},
|
|
"unit": {
|
|
"description": "the unit's name, as the service manager knows it",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"unit"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"systemctl stop"
|
|
]
|
|
},
|
|
{
|
|
"name": "restart",
|
|
"description": "Restart one unit.",
|
|
"input": {
|
|
"properties": {
|
|
"scope": {
|
|
"description": "\"system\" (the default) or \"user\": the operator account's own manager",
|
|
"type": "string"
|
|
},
|
|
"unit": {
|
|
"description": "the unit's name, as the service manager knows it",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"unit"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"systemctl restart"
|
|
]
|
|
},
|
|
{
|
|
"name": "enable",
|
|
"description": "Make one unit start at boot (or at the account's login, in user scope).",
|
|
"input": {
|
|
"properties": {
|
|
"scope": {
|
|
"description": "\"system\" (the default) or \"user\": the operator account's own manager",
|
|
"type": "string"
|
|
},
|
|
"unit": {
|
|
"description": "the unit's name, as the service manager knows it",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"unit"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"systemctl enable"
|
|
]
|
|
},
|
|
{
|
|
"name": "disable",
|
|
"description": "Stop one unit starting at boot (or at login, in user scope).",
|
|
"input": {
|
|
"properties": {
|
|
"scope": {
|
|
"description": "\"system\" (the default) or \"user\": the operator account's own manager",
|
|
"type": "string"
|
|
},
|
|
"unit": {
|
|
"description": "the unit's name, as the service manager knows it",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"unit"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"systemctl disable"
|
|
]
|
|
},
|
|
{
|
|
"name": "journal",
|
|
"description": "The last lines of one unit's journal (at most 2000), in a time window and narrowed to a priority and to lines holding a text when asked. A secret the unit printed is shown as [redacted: \u003cwhat it was\u003e].",
|
|
"input": {
|
|
"properties": {
|
|
"lines": {
|
|
"description": "how many lines from the end of what matches (default 100, at most 2000)",
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"description": "only the lines holding this text, as written — a fixed string, not a pattern (optional)",
|
|
"type": "string"
|
|
},
|
|
"priority": {
|
|
"description": "only entries this severe or more: 0-7 or emerg, alert, crit, err, warning, notice, info, debug (optional)",
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"description": "\"system\" (the default) or \"user\": the operator account's own manager",
|
|
"type": "string"
|
|
},
|
|
"since": {
|
|
"description": "the window's start: an RFC 3339 time (2026-10-07T09:30:00Z) or relative to now (-30min, -2h, yesterday) (optional)",
|
|
"type": "string"
|
|
},
|
|
"unit": {
|
|
"description": "the unit's name, as the service manager knows it",
|
|
"type": "string"
|
|
},
|
|
"until": {
|
|
"description": "the window's end, in the same forms (optional; now when absent)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"unit"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"journalctl"
|
|
]
|
|
},
|
|
{
|
|
"name": "failed",
|
|
"description": "Every failed unit on this machine, in the system manager and in the operator account's; a manager that does not answer is reported with its error, never as nothing failed.",
|
|
"input": {
|
|
"properties": {
|
|
"scope": {
|
|
"description": "\"system\" or \"user\": only that manager (both when absent)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"systemctl --failed"
|
|
]
|
|
},
|
|
{
|
|
"name": "reset-failed",
|
|
"description": "Clear one unit's failed record in its manager — its failed state and its start-limit count — and answer its state after. It removes no file and starts nothing.",
|
|
"input": {
|
|
"properties": {
|
|
"scope": {
|
|
"description": "\"system\" (the default) or \"user\": the operator account's own manager",
|
|
"type": "string"
|
|
},
|
|
"unit": {
|
|
"description": "the unit's name, as the service manager knows it",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"unit"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"systemctl reset-failed"
|
|
]
|
|
},
|
|
{
|
|
"name": "wanted-by",
|
|
"description": "What wants, requires or triggers one unit, read-only: the manager's reverse dependencies (WantedBy, RequiredBy, UpheldBy, BoundBy, TriggeredBy and the rest) and every enable link naming it in the scope's configuration directories (*.wants, *.requires, *.upholds), each with where it points and whether it dangles — the account's own directory included in user scope.",
|
|
"input": {
|
|
"properties": {
|
|
"scope": {
|
|
"description": "\"system\" (the default) or \"user\": the operator account's own manager",
|
|
"type": "string"
|
|
},
|
|
"unit": {
|
|
"description": "the unit's name, as the service manager knows it",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"unit"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"systemctl list-dependencies --reverse",
|
|
"systemctl show -p WantedBy",
|
|
"ls ~/.config/systemd/user/*.wants"
|
|
]
|
|
},
|
|
{
|
|
"name": "unlink-dangling",
|
|
"description": "Remove the dangling enable links named for one unit — links in a *.wants, *.requires or *.upholds directory of the account's or the machine's own configuration whose target does not exist, which `disable` leaves once the unit's file is gone — on the person's word: `why` is required. Each is recorded (its path, its target, the reason) before it is removed, and the manager reloaded; a link whose target exists, or one a package, a generator or the runtime placed, is left and said.",
|
|
"input": {
|
|
"properties": {
|
|
"scope": {
|
|
"description": "\"system\" (the default) or \"user\": the operator account's own manager",
|
|
"type": "string"
|
|
},
|
|
"unit": {
|
|
"description": "the unit's name, as the service manager knows it",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "the person's reason for removing the links, kept in the record",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"unit",
|
|
"why"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"rm ~/.config/systemd/user/*.wants/\u003cunit\u003e",
|
|
"unlink /etc/systemd/system/*.wants/\u003cunit\u003e"
|
|
]
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0177",
|
|
"Optional": [
|
|
"failed"
|
|
]
|
|
},
|
|
{
|
|
"Name": "node-package-manager",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0207"
|
|
},
|
|
{
|
|
"Name": "node-container-runtime",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0166, ADR 0207"
|
|
},
|
|
{
|
|
"Name": "node-environment",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0203"
|
|
},
|
|
{
|
|
"Name": "node-provisioner",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0349"
|
|
},
|
|
{
|
|
"Name": "node-login-shell",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "execute",
|
|
"description": "Run one command on this machine as the operator account, in a non-interactive login shell in its home; answers with what it printed and how it exited.",
|
|
"input": {
|
|
"properties": {
|
|
"command": {
|
|
"description": "the command line, as you would type it",
|
|
"type": "string"
|
|
},
|
|
"timeout_seconds": {
|
|
"description": "give up after this long, at most 25 (default 20)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"command"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0204",
|
|
"Optional": [
|
|
"execute"
|
|
]
|
|
},
|
|
{
|
|
"Name": "node-power",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0211"
|
|
},
|
|
{
|
|
"Name": "node-hotkeys",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": [
|
|
{
|
|
"Kind": "trigger",
|
|
"Comment": "#",
|
|
"Dirs": false,
|
|
"Shape": null,
|
|
"Offered": false
|
|
}
|
|
],
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0212"
|
|
},
|
|
{
|
|
"Name": "node-message-bus",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0215"
|
|
},
|
|
{
|
|
"Name": "node-backup",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "backed-up",
|
|
"description": "What this machine backs up: each module, what it declared, its last good night, how many restore points are kept and the repository's size.",
|
|
"input": {
|
|
"properties": {
|
|
"module": {
|
|
"description": "one module (optional)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"restic snapshots"
|
|
]
|
|
},
|
|
{
|
|
"name": "now",
|
|
"description": "Take a backup now, of one module or of every module on this machine — before a migration, a retirement or anything else that could go wrong.",
|
|
"input": {
|
|
"properties": {
|
|
"module": {
|
|
"description": "one module (optional)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"restic backup"
|
|
]
|
|
},
|
|
{
|
|
"name": "restore",
|
|
"description": "Restore one module's data from a restore point BESIDE the live data, never over it: each directory as \u003cpath\u003e.restored-\u003cdate\u003e. Swapping it in is a person's act. Lists the restore points when none is named.",
|
|
"input": {
|
|
"properties": {
|
|
"module": {
|
|
"description": "the module",
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "one of the module's directories (all of them when omitted)",
|
|
"type": "string"
|
|
},
|
|
"snapshot": {
|
|
"description": "the restore point (from `backed-up`; the newest when omitted)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"module"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"restic restore"
|
|
]
|
|
}
|
|
],
|
|
"Receives": [
|
|
{
|
|
"Kind": "backup",
|
|
"Comment": "#",
|
|
"Dirs": true,
|
|
"Shape": null,
|
|
"Offered": false
|
|
},
|
|
{
|
|
"Kind": "data",
|
|
"Comment": "#",
|
|
"Dirs": true,
|
|
"Shape": null,
|
|
"Offered": false
|
|
}
|
|
],
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0214"
|
|
},
|
|
{
|
|
"Name": "the-private-network",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0110"
|
|
},
|
|
{
|
|
"Name": "node-uplink",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "resolvers",
|
|
"description": "The machine's resolver file as it is now: the resolvers, search domains and options it lists, whether it is the file the mesh declares, and when it is not, who wrote it as far as the machine shows — its header, a backup a VPN client left beside it, a link in its place, a known writer running.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "links",
|
|
"description": "Every network link on the machine: its state, its addresses, whether the default route leaves through it, and the resolvers and search domains the network manager knows for it — a VPN's tunnel included.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": [
|
|
{
|
|
"path": "/etc/resolv.conf",
|
|
"steps-back-for": "node-resolver"
|
|
}
|
|
],
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0117",
|
|
"Optional": [
|
|
"resolvers",
|
|
"links"
|
|
]
|
|
},
|
|
{
|
|
"Name": "node-resolver",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "routes",
|
|
"description": "What this machine's own resolver sends where: the mesh's resolvers, which answer every name not routed elsewhere, and each link given servers of its own with the domains routed to them. Also the resolver file's outside writes it kept, newest first: when, who wrote it as far as the file says, whether a module took it, and when the resolver's own file was put back.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"resolvectl status",
|
|
"resolvectl dns",
|
|
"resolvectl domain"
|
|
]
|
|
},
|
|
{
|
|
"name": "route",
|
|
"description": "Send these domains, and every name under them, to these servers over this link — and only them: the link is never the machine's default route for names, and the mesh's own domain is refused. Replaces whatever the link was given before. A link that goes away takes its route with it.",
|
|
"input": {
|
|
"properties": {
|
|
"domains": {
|
|
"description": "the domains to route there, separated by spaces or commas",
|
|
"type": "string"
|
|
},
|
|
"link": {
|
|
"description": "the network link the servers are reached over, by name (a VPN's tunnel interface)",
|
|
"type": "string"
|
|
},
|
|
"servers": {
|
|
"description": "the servers' addresses, separated by spaces or commas",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"link",
|
|
"domains",
|
|
"servers"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"resolvectl dns",
|
|
"resolvectl domain",
|
|
"resolvectl default-route"
|
|
]
|
|
},
|
|
{
|
|
"name": "unroute",
|
|
"description": "Take one link's route away: its domains go back to the mesh's resolvers. Nothing changes when the link has none.",
|
|
"input": {
|
|
"properties": {
|
|
"link": {
|
|
"description": "the network link, by name",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"link"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"resolvectl revert"
|
|
]
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": [
|
|
{
|
|
"path": "/etc/resolv.conf"
|
|
}
|
|
],
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0247"
|
|
},
|
|
{
|
|
"Name": "node-nfs-server",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "exports",
|
|
"description": "Every share this machine exports: its name, its path, read-write or read-only, the owner every client is mapped to (uid and gid), each node it is exported to with that node's private address and access (only the nodes the server grants it to and that ask for it), what is granted and not asked for or asked for and not granted, and whether the kernel holds it now. Also the exports found that are not the mesh's: a dataset's sharenfs property, a line in /etc/exports.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"exportfs -v",
|
|
"cat /etc/exports",
|
|
"zfs get sharenfs"
|
|
]
|
|
},
|
|
{
|
|
"name": "clients",
|
|
"description": "Which machines have mounted which share now, as the NFS server knows its clients.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"ss -tn sport = :2049",
|
|
"cat /proc/fs/nfsd/clients/*/info"
|
|
]
|
|
},
|
|
{
|
|
"name": "test",
|
|
"description": "Whether this machine exports one share for the mesh now, and whether its NFS service is up; with an address, also whether the share is exported to that address: a node's own private address, when the server grants it the share and the node asks for it. What a machine mounting the share asks before it mounts.",
|
|
"input": {
|
|
"properties": {
|
|
"address": {
|
|
"description": "a node's private address, to ask whether the share is exported to it (optional)",
|
|
"type": "string"
|
|
},
|
|
"share": {
|
|
"description": "the share, by its name",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"share"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"showmount -e"
|
|
]
|
|
},
|
|
{
|
|
"name": "reload",
|
|
"description": "Have the kernel read this machine's export files again now (exportfs -ra) and answer the shares as it then holds them. The module's own process writes its export file; this is for after a change made outside it. Changes no shared path.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"exportfs -ra"
|
|
]
|
|
},
|
|
{
|
|
"name": "adopt",
|
|
"description": "Take over an export a person made by hand: clear a dataset's sharenfs property for a path the mesh's own export now serves — only when that export is live. Without confirm, says what it would do and changes nothing.",
|
|
"input": {
|
|
"properties": {
|
|
"confirm": {
|
|
"description": "\"true\": change it (needs why); anything else is a dry run",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "the shared path whose hand-made export is taken over",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "why, for the record",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"zfs set sharenfs=off"
|
|
]
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0263"
|
|
},
|
|
{
|
|
"Name": "node-mounts",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "list",
|
|
"description": "Every mount point on this machine: its fstab line, the mesh's mount and automount units for it, its state (armed, mounted, absent, unreachable, failed) and since when, and which settings asked for it. A password in a mount's options is never shown.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"cat /etc/fstab",
|
|
"findmnt",
|
|
"systemctl list-units --type=mount"
|
|
]
|
|
},
|
|
{
|
|
"name": "test",
|
|
"description": "Whether one share's or occasional source's server answers from this machine now, without touching its mount point.",
|
|
"input": {
|
|
"properties": {
|
|
"name": {
|
|
"description": "the share or source, by its name",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"showmount -e",
|
|
"ping"
|
|
]
|
|
},
|
|
{
|
|
"name": "mount",
|
|
"description": "Mount one share or occasional source now, rather than at its first access.",
|
|
"input": {
|
|
"properties": {
|
|
"name": {
|
|
"description": "the share or source, by its name",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"mount"
|
|
]
|
|
},
|
|
{
|
|
"name": "unmount",
|
|
"description": "Release one share or occasional source now; its automount stays armed, so the next access mounts it again.",
|
|
"input": {
|
|
"properties": {
|
|
"name": {
|
|
"description": "the share or source, by its name",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"umount"
|
|
]
|
|
},
|
|
{
|
|
"name": "adopt",
|
|
"description": "Take over a mount a person wrote by hand: comment out the /etc/fstab line for a mount point the mesh's own units now serve, keeping a copy of the file — only when the mesh's automount for it is armed. Without confirm, says what it would do and changes nothing.",
|
|
"input": {
|
|
"properties": {
|
|
"confirm": {
|
|
"description": "\"true\": change it (needs why); anything else is a dry run",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"mountpoint": {
|
|
"description": "the mount point whose fstab line is taken over",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "why, for the record",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"mountpoint"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"sed -i /etc/fstab"
|
|
]
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0263"
|
|
},
|
|
{
|
|
"Name": "node-reads",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "stat",
|
|
"description": "Each component of one path or several, from / down: its type, owner and group (name and number), mode, whether it is a link and to what, and whether it is a mount point and of which file system. A link is not followed unless follow is \"true\". Read as the holder's own account, which holds no secret: a component it may not reach says so. At most 200 paths in one call.",
|
|
"input": {
|
|
"properties": {
|
|
"follow": {
|
|
"description": "\"true\": also say where the path leads once every link is followed",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"paths": {
|
|
"description": "one absolute path, or several separated by line breaks",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"paths"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"stat",
|
|
"ls -ld",
|
|
"namei -l",
|
|
"findmnt -T"
|
|
]
|
|
},
|
|
{
|
|
"name": "readlink",
|
|
"description": "What one link points to, as written, and where the path leads once every link is followed, and whether that exists.",
|
|
"input": {
|
|
"properties": {
|
|
"path": {
|
|
"description": "an absolute path",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"readlink",
|
|
"readlink -f",
|
|
"realpath"
|
|
]
|
|
},
|
|
{
|
|
"name": "list",
|
|
"description": "Every entry of one directory with its type, owner, group, mode, size and, for a link, its target. At most 2000 entries; a longer directory is cut and says so. A place a secret is kept is refused by name.",
|
|
"input": {
|
|
"properties": {
|
|
"path": {
|
|
"description": "an absolute path to a directory",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"ls",
|
|
"ls -la"
|
|
]
|
|
},
|
|
{
|
|
"name": "read",
|
|
"description": "One text file, or a part of it by line: at most 256 KiB in one answer (64 KiB unless more is asked), cut at a line and said so. A binary file is refused; a place a secret is kept, or a known credential file, is refused by name; a line shaped like a secret is withheld and its number said. /proc and /sys are read as far as the holder's account may.",
|
|
"input": {
|
|
"properties": {
|
|
"bytes": {
|
|
"description": "the most bytes to answer, up to 262144 (optional, 65536 unless given)",
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"description": "the first line to answer, counted from 1 (optional)",
|
|
"type": "string"
|
|
},
|
|
"lines": {
|
|
"description": "how many lines to answer (optional)",
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "an absolute path to a file",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"cat",
|
|
"head",
|
|
"tail",
|
|
"less"
|
|
]
|
|
},
|
|
{
|
|
"name": "search",
|
|
"description": "Find a fixed string (never a pattern) in one file or under one directory: every matching line with its file and number. Bounded: at most 500 matches (100 unless more is asked), 8 directories deep (4 unless more is asked), 5000 files and 4 MiB per file; links are not followed and binary files are skipped. A place a secret is kept is skipped and named; a matching line shaped like a secret is withheld. The answer says which bound it met.",
|
|
"input": {
|
|
"properties": {
|
|
"case": {
|
|
"description": "\"false\": match whatever the case (optional)",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"depth": {
|
|
"description": "how many directories deep, up to 8 (optional)",
|
|
"type": "string"
|
|
},
|
|
"matches": {
|
|
"description": "the most matches to answer, up to 500 (optional)",
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "an absolute path to a file or a directory",
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"description": "the fixed string to find",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"text",
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"grep",
|
|
"grep -r",
|
|
"grep -F"
|
|
]
|
|
},
|
|
{
|
|
"name": "account",
|
|
"description": "One account or group by name or number, as this node's account files say: an account's number, group, home, shell and every group it is in; a group's number and members. With neither, every account and group. Never a password field.",
|
|
"input": {
|
|
"properties": {
|
|
"group": {
|
|
"description": "a group's name or number (optional)",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "an account's name or number (optional)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"getent passwd",
|
|
"getent group",
|
|
"id",
|
|
"groups"
|
|
]
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0310"
|
|
},
|
|
{
|
|
"Name": "node-files",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "stat",
|
|
"description": "Each component of one path or several, from / down: its type, owner and group (name and number), mode, whether it is a link and to what, and whether it is a mount point and of which file system. A link is not followed unless follow is \"true\". At most 200 paths in one call. Read as the node's operator account, through sudo -n where its rights do not reach; a place a secret is kept, or a known credential file, is refused by name.",
|
|
"input": {
|
|
"properties": {
|
|
"follow": {
|
|
"description": "\"true\": also say where the path leads once every link is followed",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"paths": {
|
|
"description": "one absolute path, or several separated by line breaks",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"paths"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"stat",
|
|
"ls -ld",
|
|
"namei -l",
|
|
"findmnt -T"
|
|
]
|
|
},
|
|
{
|
|
"name": "readlink",
|
|
"description": "What one link points to, as written, and where the path leads once every link is followed, and whether that exists. Read as the node's operator account, through sudo -n where its rights do not reach; a place a secret is kept, or a known credential file, is refused by name.",
|
|
"input": {
|
|
"properties": {
|
|
"path": {
|
|
"description": "an absolute path",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"readlink",
|
|
"readlink -f",
|
|
"realpath"
|
|
]
|
|
},
|
|
{
|
|
"name": "list",
|
|
"description": "Every entry of one directory with its type, owner, group, mode, size and, for a link, its target. At most 2000 entries; a longer directory is cut and says so. A place a secret is kept is refused by name. Read as the node's operator account, through sudo -n where its rights do not reach; a place a secret is kept, or a known credential file, is refused by name.",
|
|
"input": {
|
|
"properties": {
|
|
"path": {
|
|
"description": "an absolute path to a directory",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"ls",
|
|
"ls -la"
|
|
]
|
|
},
|
|
{
|
|
"name": "read",
|
|
"description": "One text file, or a part of it by line: at most 256 KiB in one answer (64 KiB unless more is asked), cut at a line and said so. A binary file is refused; a place a secret is kept, or a known credential file, is refused by name; a line shaped like a secret is withheld and its number said. /proc and /sys are read as far as the holder's account may. Read as the node's operator account, through sudo -n where its rights do not reach; a place a secret is kept, or a known credential file, is refused by name.",
|
|
"input": {
|
|
"properties": {
|
|
"bytes": {
|
|
"description": "the most bytes to answer, up to 262144 (optional, 65536 unless given)",
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"description": "the first line to answer, counted from 1 (optional)",
|
|
"type": "string"
|
|
},
|
|
"lines": {
|
|
"description": "how many lines to answer (optional)",
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "an absolute path to a file",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"cat",
|
|
"head",
|
|
"tail",
|
|
"less"
|
|
]
|
|
},
|
|
{
|
|
"name": "search",
|
|
"description": "Find a fixed string (never a pattern) in one file or under one directory: every matching line with its file and number. Bounded: at most 500 matches (100 unless more is asked), 8 directories deep (4 unless more is asked), 5000 files and 4 MiB per file; links are not followed and binary files are skipped. A place a secret is kept is skipped and named; a matching line shaped like a secret is withheld. The answer says which bound it met. Read as the node's operator account, through sudo -n where its rights do not reach; a place a secret is kept, or a known credential file, is refused by name.",
|
|
"input": {
|
|
"properties": {
|
|
"case": {
|
|
"description": "\"false\": match whatever the case (optional)",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"depth": {
|
|
"description": "how many directories deep, up to 8 (optional)",
|
|
"type": "string"
|
|
},
|
|
"matches": {
|
|
"description": "the most matches to answer, up to 500 (optional)",
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "an absolute path to a file or a directory",
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"description": "the fixed string to find",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"text",
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"grep",
|
|
"grep -r",
|
|
"grep -F"
|
|
]
|
|
},
|
|
{
|
|
"name": "account",
|
|
"description": "One account or group by name or number, as this node's account files say: an account's number, group, home, shell and every group it is in; a group's number and members. With neither, every account and group. Never a password field. Read as the node's operator account, through sudo -n where its rights do not reach; a place a secret is kept, or a known credential file, is refused by name.",
|
|
"input": {
|
|
"properties": {
|
|
"group": {
|
|
"description": "a group's name or number (optional)",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "an account's name or number (optional)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"getent passwd",
|
|
"getent group",
|
|
"id",
|
|
"groups"
|
|
]
|
|
},
|
|
{
|
|
"name": "write",
|
|
"description": "Write one text file whole, replacing what it holds; the old content goes to the node's trash. Refuses a path a module owns unless override names a reason; done as the node's operator account, through sudo -n where its rights do not reach.",
|
|
"input": {
|
|
"properties": {
|
|
"content": {
|
|
"description": "the text to write",
|
|
"type": "string"
|
|
},
|
|
"mode": {
|
|
"description": "the file's mode, such as 0644 (optional)",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"override": {
|
|
"description": "a reason, to change a path a module owns anyway (optional)",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "an absolute path",
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"description": "why the file is changed, for the audit trail",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"content",
|
|
"reason"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"tee",
|
|
"\u003e"
|
|
]
|
|
},
|
|
{
|
|
"name": "copy",
|
|
"description": "Copy a file or directory to a path on this node. A target on another node (\u003cnode\u003e:/path) is refused: copying between nodes comes in step 2 (issue 903). An existing target is overwritten, the old one kept in the node's trash for 7 days. Refuses a path a module owns unless override names a reason; done as the node's operator account, through sudo -n where its rights do not reach.",
|
|
"input": {
|
|
"properties": {
|
|
"from": {
|
|
"description": "an absolute path",
|
|
"type": "string"
|
|
},
|
|
"override": {
|
|
"description": "a reason, to change a path a module owns anyway (optional)",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"description": "why the file is changed, for the audit trail",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "an absolute path on this node",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"from",
|
|
"to",
|
|
"reason"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"cp",
|
|
"cp -a",
|
|
"ssh \u003cnode\u003e cp"
|
|
]
|
|
},
|
|
{
|
|
"name": "move",
|
|
"description": "Move or rename a file or directory. A target on another node is refused: copying between nodes comes in step 2 (issue 903). An existing target is overwritten, the old one kept in the node's trash for 7 days. Refuses a path a module owns unless override names a reason; done as the node's operator account, through sudo -n where its rights do not reach.",
|
|
"input": {
|
|
"properties": {
|
|
"from": {
|
|
"description": "an absolute path",
|
|
"type": "string"
|
|
},
|
|
"override": {
|
|
"description": "a reason, to change a path a module owns anyway (optional)",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"description": "why the file is changed, for the audit trail",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "an absolute path",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"from",
|
|
"to",
|
|
"reason"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"mv"
|
|
]
|
|
},
|
|
{
|
|
"name": "delete",
|
|
"description": "Delete a file or directory into the node's trash, where restore can bring it back. Refuses a path a module owns unless override names a reason; done as the node's operator account, through sudo -n where its rights do not reach.",
|
|
"input": {
|
|
"properties": {
|
|
"override": {
|
|
"description": "a reason, to change a path a module owns anyway (optional)",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "an absolute path",
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"description": "why the file is changed, for the audit trail",
|
|
"type": "string"
|
|
},
|
|
"recursive": {
|
|
"description": "\"true\": delete a directory with what it holds",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"reason"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"rm",
|
|
"rm -r"
|
|
]
|
|
},
|
|
{
|
|
"name": "mkdir",
|
|
"description": "Make a directory. Refuses a path a module owns unless override names a reason; done as the node's operator account, through sudo -n where its rights do not reach.",
|
|
"input": {
|
|
"properties": {
|
|
"override": {
|
|
"description": "a reason, to change a path a module owns anyway (optional)",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"parents": {
|
|
"description": "\"true\": make the missing parents too",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "an absolute path",
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"description": "why the file is changed, for the audit trail",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"reason"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"mkdir",
|
|
"mkdir -p"
|
|
]
|
|
},
|
|
{
|
|
"name": "chmod",
|
|
"description": "Change the mode of a file or directory. Refuses a path a module owns unless override names a reason; done as the node's operator account, through sudo -n where its rights do not reach.",
|
|
"input": {
|
|
"properties": {
|
|
"mode": {
|
|
"description": "the mode, such as 0644 or u+x",
|
|
"type": "string"
|
|
},
|
|
"override": {
|
|
"description": "a reason, to change a path a module owns anyway (optional)",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "an absolute path",
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"description": "why the file is changed, for the audit trail",
|
|
"type": "string"
|
|
},
|
|
"recursive": {
|
|
"description": "\"true\": also everything under a directory",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"mode",
|
|
"reason"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"chmod"
|
|
]
|
|
},
|
|
{
|
|
"name": "chown",
|
|
"description": "Change the owner and group of a file or directory. Refuses a path a module owns unless override names a reason; done as the node's operator account, through sudo -n where its rights do not reach.",
|
|
"input": {
|
|
"properties": {
|
|
"group": {
|
|
"description": "a group's name or number (optional)",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"override": {
|
|
"description": "a reason, to change a path a module owns anyway (optional)",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"description": "an account's name or number",
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "an absolute path",
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"description": "why the file is changed, for the audit trail",
|
|
"type": "string"
|
|
},
|
|
"recursive": {
|
|
"description": "\"true\": also everything under a directory",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"owner",
|
|
"reason"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"chown",
|
|
"chgrp"
|
|
]
|
|
},
|
|
{
|
|
"name": "upload",
|
|
"description": "Send one file of this node into a bucket of the object store, over a short signed link and never over the bus; answers the key (the file's SHA-256 when none is given), the size and the SHA-256. At most 100 MiB. A place a secret is kept, a known credential file, or a link to one is refused by name, before anything is sent. Read as the node's operator account, through sudo -n where its rights do not reach; a place a secret is kept, or a known credential file, is refused by name.",
|
|
"input": {
|
|
"properties": {
|
|
"bucket": {
|
|
"description": "the bucket the file goes into",
|
|
"type": "string"
|
|
},
|
|
"key": {
|
|
"description": "the object's key (optional; the file's SHA-256 when not given)",
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "an absolute path to a file",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"bucket"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "download",
|
|
"description": "Write one object of a bucket to a file of this node, over a short signed link and never over the bus; the old file goes to the node's trash. At most 100 MiB. The bytes must hash to sha256, or to the key when the key is a SHA-256; otherwise no file is written. Refuses a path a module owns unless override names a reason; done as the node's operator account, through sudo -n where its rights do not reach.",
|
|
"input": {
|
|
"properties": {
|
|
"bucket": {
|
|
"description": "the bucket",
|
|
"type": "string"
|
|
},
|
|
"key": {
|
|
"description": "the object's key",
|
|
"type": "string"
|
|
},
|
|
"override": {
|
|
"description": "a reason, to change a path a module owns anyway (optional)",
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"description": "an absolute path",
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"description": "why the file is changed, for the audit trail",
|
|
"type": "string"
|
|
},
|
|
"sha256": {
|
|
"description": "the SHA-256 the bytes must have (optional; the key when that is a SHA-256)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"bucket",
|
|
"key",
|
|
"path",
|
|
"reason"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "trash",
|
|
"description": "What the node's trash holds: each deleted or replaced item with its id, original path and when it went.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"ls ~/.local/share/Trash"
|
|
]
|
|
},
|
|
{
|
|
"name": "restore",
|
|
"description": "Put an item of the node's trash back where it was; refuses when something is there now. Refuses a path a module owns unless override names a reason; done as the node's operator account, through sudo -n where its rights do not reach.",
|
|
"input": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "an id from trash",
|
|
"type": "string"
|
|
},
|
|
"override": {
|
|
"description": "a reason, to change a path a module owns anyway (optional)",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"description": "why the file is changed, for the audit trail",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"reason"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"replaces": [
|
|
"trash-restore"
|
|
]
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0394"
|
|
},
|
|
{
|
|
"Name": "node-engine",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": [
|
|
"asked",
|
|
"done",
|
|
"refused"
|
|
],
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "hand-over",
|
|
"description": "Hand a directory this machine uses as found to the mesh (novox/hq ADR 0563 §3, §5): the engine judges the path as it does every hand-over (absolute, as it states it, used as found, reached through no link) and refuses in words, or asks the operator on their channel at the level approve, binding the owner, group and mode it will set. Nothing changes on the call: only the operator's yes hands it over. One ask is open per path; acts shows where it stands.",
|
|
"input": {
|
|
"properties": {
|
|
"path": {
|
|
"description": "the directory's absolute path, as the engine states it",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "why it is asked, in words the operator reads",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "access-act",
|
|
"description": "Ask the operator for the take act on a library whose root holds data outside its group (novox/hq ADR 0328 §7, ADR 0563 §3, §4), on the library's home engine: the access as declared and its root as last declared, judged and refused in words or asked at the level approve. Only the operator's yes sets the library's group, group write and setgid under its root. One ask is open per access.",
|
|
"input": {
|
|
"properties": {
|
|
"access": {
|
|
"description": "the access, library:\u003cname\u003e",
|
|
"type": "string"
|
|
},
|
|
"act": {
|
|
"description": "the act: take",
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"description": "why it is asked, in words the operator reads",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"act",
|
|
"access"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "judge-directories",
|
|
"description": "Which of this machine's declared directories the engine would refuse to make or keep, one line each (novox/hq ADR 0563 §2). Read-only: changes no owner or mode.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "setuid-search",
|
|
"description": "Throw away the engine's last search for setuid programs and start a full one (novox/hq ADR 0563 §2); until it completes root-free answers that the machine is not judged yet. Refused while one runs, and when one was started within the hour, naming when the next may start.",
|
|
"input": {
|
|
"properties": {
|
|
"why": {
|
|
"description": "why it is asked, in words",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "root-free",
|
|
"description": "Whether this machine is root-free (novox/hq ADR 0259 §8, ADR 0563 §6): free only on the engine's own verdict, at most fifteen minutes old, that the account agents run as cannot become root without a person, and the login shell's execute not served here. Anything else is no pass, and says why. Answered by this machine's engine alone.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "acts",
|
|
"description": "Every act this machine's engine was asked through this seat (novox/hq ADR 0563 §9): each hand-over, access act and setuid search, open, done or refused, with who asked, the ask and the operator's warrant. Read-only.",
|
|
"input": {
|
|
"properties": {
|
|
"id": {
|
|
"description": "one act, by its id",
|
|
"type": "string"
|
|
},
|
|
"limit": {
|
|
"description": "at most this many, newest",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "packages",
|
|
"description": "The packages this machine's compositions declare, present or absent, each with the modules that declare it, as the engine keeps them in its key of `packages`; until the controller hands its lease away, beside the controller's mirror for this machine and their difference. With write, the key written again from what the engine composed.",
|
|
"input": {
|
|
"properties": {
|
|
"write": {
|
|
"description": "\"true\": write this machine's key again from what the engine composed",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "composition",
|
|
"description": "One module's composition on this machine beside what runs of it, read-only: the composition its want's build has in the bucket composed-\u003cnode\u003e (the latest revision, or the one whose digest is given, from the revisions the bucket keeps), the digest of each kept revision, what runs (applied, its have, or the kept declaration), its want and have (phase running, failed, held or waiting-yes, and the digest that waits for a yes), and the move's judgement with its words: why a record module waits for a yes. With diff, every resource added, removed or changed, a provider's received file naming the consumers that join or leave.",
|
|
"input": {
|
|
"properties": {
|
|
"diff": {
|
|
"description": "\"true\": list the resources that differ from what runs",
|
|
"type": "string"
|
|
},
|
|
"digest": {
|
|
"description": "a composition's digest (sha256:…), to read that revision rather than the latest",
|
|
"type": "string"
|
|
},
|
|
"module": {
|
|
"description": "the module, as placed on this machine; node for the node's own",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"module"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "compose",
|
|
"description": "Compose this machine's modules now and say how it went, so a composition that failed, or a module held, recovers without a restart: what the pass refused or held, each with why, and when the engine composes again on its own after a seat that did not answer (a deadline, no responders: retried with a growing wait; a refusal never). With module, that module's apply is also tried again. Changes only what a pass the engine makes on its own would change.",
|
|
"input": {
|
|
"properties": {
|
|
"module": {
|
|
"description": "a module placed on this machine whose apply is also tried again (optional)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "compose-candidate",
|
|
"description": "Compose a check's candidate on this machine in shadow, with its own sealed values and the indexer's manifest verdicts, and say per module placed here whether it composes (with its digest and whether the candidate changes it), is refused by the candidate or is held without it, each with why, and the verdict of the machine's own composition (novox/hq ADR 0593 §7). Read-only: applies nothing and writes nothing. Answered by this machine's engine alone, within the asker's bound.",
|
|
"input": {
|
|
"properties": {
|
|
"candidate": {
|
|
"description": "the key of the indexer's candidate, \u003cgroup\u003e.\u003cheads hash\u003e",
|
|
"type": "string"
|
|
},
|
|
"input": {
|
|
"description": "\"true\": also answer the composition input the candidate was composed from, for the sandbox path",
|
|
"enum": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"candidate"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": true,
|
|
"Decision": "novox/hq ADR 0563",
|
|
"Optional": [
|
|
"packages",
|
|
"composition",
|
|
"compose",
|
|
"compose-candidate"
|
|
]
|
|
},
|
|
{
|
|
"Name": "node-login-manager",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "sessions",
|
|
"description": "The sessions the login manager offers on this machine, and which one the operator account starts by default.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0208"
|
|
},
|
|
{
|
|
"Name": "node-display-server",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "displays",
|
|
"description": "The monitors connected now, each with its identity, its modes and where it is placed; and the layout profile in force, if one matches.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "layout",
|
|
"description": "The monitor layout profiles, keyed by the connected monitors' identities: list them, save the current arrangement under a name, or apply one.",
|
|
"input": {
|
|
"properties": {
|
|
"action": {
|
|
"description": "list, save or apply",
|
|
"enum": [
|
|
"list",
|
|
"save",
|
|
"apply"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "the profile to save or apply (save and apply only)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"action"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0208"
|
|
},
|
|
{
|
|
"Name": "node-display-session",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "reload",
|
|
"description": "Reload the session's configuration in place, keeping its windows.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "workspaces",
|
|
"description": "The session's workspaces: each one's name, output, and whether it is visible or focused.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "windows",
|
|
"description": "The session's windows: each one's title, class, workspace and whether it has focus; narrowed to one workspace when named.",
|
|
"input": {
|
|
"properties": {
|
|
"workspace": {
|
|
"description": "one workspace (optional)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": [
|
|
{
|
|
"Kind": "config",
|
|
"Comment": "#",
|
|
"Dirs": false,
|
|
"Shape": null,
|
|
"Offered": false
|
|
}
|
|
],
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0208"
|
|
},
|
|
{
|
|
"Name": "node-terminal-emulator",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "open",
|
|
"description": "Open a terminal window in the operator's session, running a command or the login shell, in a directory or the account's home.",
|
|
"input": {
|
|
"properties": {
|
|
"command": {
|
|
"description": "what to run in it (optional; the login shell when absent)",
|
|
"type": "string"
|
|
},
|
|
"directory": {
|
|
"description": "where it starts (optional; the account's home when absent)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0208"
|
|
},
|
|
{
|
|
"Name": "node-launcher",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "menu",
|
|
"description": "Put a menu of choices in front of the operator and answer with the one chosen, or nothing when the menu was dismissed — the dmenu-compatible contract.",
|
|
"input": {
|
|
"properties": {
|
|
"choices": {
|
|
"description": "the lines to choose between, in order",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"prompt": {
|
|
"description": "what the menu asks (optional)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"choices"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "secret",
|
|
"description": "Ask the operator for a value in a prompt that does not show what is typed, and answer it sealed to the key the asker gives — never in the clear — or cancelled when the prompt was dismissed or not answered in time.",
|
|
"input": {
|
|
"properties": {
|
|
"module": {
|
|
"description": "the module whose own secret is asked for",
|
|
"type": "string"
|
|
},
|
|
"node": {
|
|
"description": "the machine the module runs on",
|
|
"type": "string"
|
|
},
|
|
"seal_to": {
|
|
"description": "the asker's public sealing key: the answer is sealed to it",
|
|
"type": "string"
|
|
},
|
|
"secret": {
|
|
"description": "the own secret's name",
|
|
"type": "string"
|
|
},
|
|
"timeout_seconds": {
|
|
"description": "give up after this long (optional)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"module",
|
|
"secret",
|
|
"node",
|
|
"seal_to"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0208",
|
|
"Optional": [
|
|
"secret"
|
|
]
|
|
},
|
|
{
|
|
"Name": "node-notifier",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "send",
|
|
"description": "Show the operator a notification.",
|
|
"input": {
|
|
"properties": {
|
|
"body": {
|
|
"description": "its text (optional)",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"description": "the notification's summary",
|
|
"type": "string"
|
|
},
|
|
"urgency": {
|
|
"description": "low, normal (the default) or critical",
|
|
"enum": [
|
|
"low",
|
|
"normal",
|
|
"critical"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"title"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "history",
|
|
"description": "The notifications shown lately, newest first.",
|
|
"input": {
|
|
"properties": {
|
|
"limit": {
|
|
"description": "how many (optional, default 20)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0208"
|
|
},
|
|
{
|
|
"Name": "node-lock-screen",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "lock",
|
|
"description": "Lock the operator's session now.",
|
|
"input": {
|
|
"properties": {},
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0208"
|
|
},
|
|
{
|
|
"Name": "node-clipboard",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": [
|
|
{
|
|
"name": "history",
|
|
"description": "What the clipboard held lately, newest first.",
|
|
"input": {
|
|
"properties": {
|
|
"limit": {
|
|
"description": "how many (optional, default 20)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
{
|
|
"name": "copy",
|
|
"description": "Put text on the operator's clipboard.",
|
|
"input": {
|
|
"properties": {
|
|
"text": {
|
|
"description": "the text",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"text"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
],
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0208"
|
|
},
|
|
{
|
|
"Name": "node-bar",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": [
|
|
{
|
|
"Kind": "block",
|
|
"Comment": "#",
|
|
"Dirs": false,
|
|
"Shape": {
|
|
"Places": [
|
|
{
|
|
"Field": "bar",
|
|
"Values": [
|
|
"bottom",
|
|
"top"
|
|
]
|
|
},
|
|
{
|
|
"Field": "place",
|
|
"Values": [
|
|
"resources",
|
|
"status"
|
|
]
|
|
}
|
|
],
|
|
"Order": "order",
|
|
"Examples": [
|
|
{
|
|
"bar": "bottom",
|
|
"place": "status",
|
|
"shows": "battery"
|
|
},
|
|
{
|
|
"bar": "bottom",
|
|
"options": {
|
|
"device": "BAT0"
|
|
},
|
|
"place": "status",
|
|
"shows": "battery"
|
|
},
|
|
{
|
|
"bar": "bottom",
|
|
"options": {
|
|
"command": "echo \"a line\"",
|
|
"interval": 5
|
|
},
|
|
"place": "status",
|
|
"shows": "command"
|
|
},
|
|
{
|
|
"bar": "bottom",
|
|
"options": {
|
|
"state": "power.draw"
|
|
},
|
|
"place": "status",
|
|
"shows": "state"
|
|
},
|
|
{
|
|
"bar": "bottom",
|
|
"options": {
|
|
"key": "a-machine",
|
|
"state": "power.draw"
|
|
},
|
|
"place": "status",
|
|
"shows": "state"
|
|
}
|
|
],
|
|
"Text": true
|
|
},
|
|
"Offered": true
|
|
}
|
|
],
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0208",
|
|
"ShapeCode": [
|
|
"block"
|
|
]
|
|
},
|
|
{
|
|
"Name": "node-compositor",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0208"
|
|
},
|
|
{
|
|
"Name": "node-secret-service",
|
|
"Scope": "node",
|
|
"Replicated": false,
|
|
"Delivers": "",
|
|
"Accepts": null,
|
|
"Emits": null,
|
|
"PulledByKind": false,
|
|
"Yields": false,
|
|
"Serves": null,
|
|
"Receives": null,
|
|
"Paths": null,
|
|
"HeldByTheEngine": false,
|
|
"Decision": "novox/hq ADR 0208"
|
|
}
|
|
]
|