diff --git a/format/seat-definition.schema.json b/format/seat-definition.schema.json index 965beeb..d78ab51 100644 --- a/format/seat-definition.schema.json +++ b/format/seat-definition.schema.json @@ -118,7 +118,7 @@ "properties": { "name": { "type": "string", - "pattern": "^[a-z][a-z0-9-]*$" + "pattern": "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)*$" }, "subject": { "type": "string" @@ -381,7 +381,7 @@ }, "of": { "type": "string", - "pattern": "^(verb:[a-z][a-z0-9-]*\\.(input|answer)|accept:[a-z][a-z0-9-]*|event:[a-z][a-z0-9-]*|holder-event:[a-z][a-z0-9-]*)$" + "pattern": "^(verb:[a-z][a-z0-9-]*\\.(input|answer)|accept:[a-z][a-z0-9-]*|event:[a-z][a-z0-9-]*|holder-event:[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)*)$" }, "subject": { "type": "string" diff --git a/seats/git/seat.json b/seats/git/seat.json new file mode 100644 index 0000000..836285a --- /dev/null +++ b/seats/git/seat.json @@ -0,0 +1,8 @@ +{ + "format": 1, + "seat": "git", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0111", + "delivers": "git" +} diff --git a/seats/index.json b/seats/index.json new file mode 100644 index 0000000..28eb0cf --- /dev/null +++ b/seats/index.json @@ -0,0 +1,65 @@ +{ + "format": 1, + "seats": [ + "mesh-store", + "mesh-broker", + "mesh-vault", + "mesh-config", + "mesh-provisioner", + "mesh-artifact-store", + "mesh-catalog", + "mesh-delivery", + "mesh-placement", + "mesh-delivery-checker", + "mesh-conditions", + "mesh-watchdogs", + "mesh-self-check", + "mesh-healers", + "mesh-wants", + "mesh-hand-acts", + "mesh-enrolment", + "mesh-artifact-sweep", + "operator-channel", + "npm-package-registry", + "go-package-registry", + "container-image-registry", + "oci-artifact-registry", + "git", + "node-build-go", + "node-build-node", + "node-build-image", + "mesh-dns-resolver", + "node-hostname", + "node-intrusion-prevention", + "node-packet-filter", + "node-service-manager", + "node-package-manager", + "node-container-runtime", + "node-environment", + "node-provisioner", + "node-login-shell", + "node-power", + "node-hotkeys", + "node-message-bus", + "node-backup", + "the-private-network", + "node-uplink", + "node-resolver", + "node-nfs-server", + "node-mounts", + "node-reads", + "node-files", + "node-engine", + "node-login-manager", + "node-display-server", + "node-display-session", + "node-terminal-emulator", + "node-launcher", + "node-notifier", + "node-lock-screen", + "node-clipboard", + "node-bar", + "node-compositor", + "node-secret-service" + ] +} diff --git a/seats/mesh-artifact-store/seat.json b/seats/mesh-artifact-store/seat.json new file mode 100644 index 0000000..b1efa95 --- /dev/null +++ b/seats/mesh-artifact-store/seat.json @@ -0,0 +1,8 @@ +{ + "format": 1, + "seat": "mesh-artifact-store", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0075", + "delivers": "artifact-store" +} diff --git a/seats/mesh-artifact-sweep/seat.json b/seats/mesh-artifact-sweep/seat.json new file mode 100644 index 0000000..602a5f8 --- /dev/null +++ b/seats/mesh-artifact-sweep/seat.json @@ -0,0 +1,103 @@ +{ + "format": 1, + "seat": "mesh-artifact-sweep", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0571", + "verbs": [ + { + "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" + } + } + ], + "events": [ + { + "name": "artifacts-gone" + } + ] +} diff --git a/seats/mesh-catalog/seat.json b/seats/mesh-catalog/seat.json new file mode 100644 index 0000000..40b6618 --- /dev/null +++ b/seats/mesh-catalog/seat.json @@ -0,0 +1,69 @@ +{ + "format": 1, + "seat": "mesh-catalog", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0604", + "verbs": [ + { + "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.", + "optional": true, + "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.", + "optional": true, + "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.", + "optional": true, + "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.", + "optional": true, + "input": { + "properties": { + "module": { + "description": "the module's name", + "type": "string" + } + }, + "required": [ + "module" + ], + "type": "object" + } + } + ] +} diff --git a/seats/mesh-conditions/seat.json b/seats/mesh-conditions/seat.json new file mode 100644 index 0000000..5513eba --- /dev/null +++ b/seats/mesh-conditions/seat.json @@ -0,0 +1,95 @@ +{ + "format": 1, + "seat": "mesh-conditions", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0564", + "verbs": [ + { + "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" + } + } + ], + "events": [ + { + "name": "condition-raised" + }, + { + "name": "condition-changed" + }, + { + "name": "condition-cleared" + } + ] +} diff --git a/seats/mesh-delivery/seat.json b/seats/mesh-delivery/seat.json new file mode 100644 index 0000000..bafd85c --- /dev/null +++ b/seats/mesh-delivery/seat.json @@ -0,0 +1,226 @@ +{ + "format": 1, + "seat": "mesh-delivery", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0239", + "verbs": [ + { + "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", + "optional": true, + "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", + "optional": true, + "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.", + "optional": true, + "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", + "optional": true, + "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)", + "optional": true, + "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", + "optional": true, + "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.", + "optional": true, + "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" + } + } + ] +} diff --git a/seats/mesh-dns-resolver/seat.json b/seats/mesh-dns-resolver/seat.json new file mode 100644 index 0000000..14480ac --- /dev/null +++ b/seats/mesh-dns-resolver/seat.json @@ -0,0 +1,9 @@ +{ + "format": 1, + "seat": "mesh-dns-resolver", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0194, ADR 0223", + "delivers": "wildcard-resolution", + "replicated": true +} diff --git a/seats/mesh-enrolment/seat.json b/seats/mesh-enrolment/seat.json new file mode 100644 index 0000000..b611558 --- /dev/null +++ b/seats/mesh-enrolment/seat.json @@ -0,0 +1,170 @@ +{ + "format": 1, + "seat": "mesh-enrolment", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0587", + "verbs": [ + { + "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" + } + } + ], + "events": [ + { + "name": "enrolment-issued" + }, + { + "name": "node-enrolled" + }, + { + "name": "enrolment-refused" + }, + { + "name": "enrolment-revoked" + }, + { + "name": "enrolment-expired" + } + ] +} diff --git a/seats/mesh-hand-acts/seat.json b/seats/mesh-hand-acts/seat.json new file mode 100644 index 0000000..a789dbb --- /dev/null +++ b/seats/mesh-hand-acts/seat.json @@ -0,0 +1,97 @@ +{ + "format": 1, + "seat": "mesh-hand-acts", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0565", + "verbs": [ + { + "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" + } + } + ], + "events": [ + { + "name": "act-recorded" + } + ] +} diff --git a/seats/mesh-healers/seat.json b/seats/mesh-healers/seat.json new file mode 100644 index 0000000..0f463da --- /dev/null +++ b/seats/mesh-healers/seat.json @@ -0,0 +1,73 @@ +{ + "format": 1, + "seat": "mesh-healers", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0564", + "verbs": [ + { + "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" + } + } + ], + "events": [ + { + "name": "healer-acted" + } + ] +} diff --git a/seats/mesh-placement/seat.json b/seats/mesh-placement/seat.json new file mode 100644 index 0000000..cc3d44c --- /dev/null +++ b/seats/mesh-placement/seat.json @@ -0,0 +1,137 @@ +{ + "format": 1, + "seat": "mesh-placement", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0567", + "verbs": [ + { + "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.", + "optional": true, + "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.", + "optional": true, + "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).", + "optional": true, + "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.", + "optional": true, + "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.", + "optional": true, + "input": { + "properties": { + "id": { + "description": "the proposal's id", + "type": "string" + } + }, + "required": [ + "id" + ], + "type": "object" + } + } + ] +} diff --git a/seats/mesh-provisioner/seat.json b/seats/mesh-provisioner/seat.json new file mode 100644 index 0000000..fe16d81 --- /dev/null +++ b/seats/mesh-provisioner/seat.json @@ -0,0 +1,35 @@ +{ + "format": 1, + "seat": "mesh-provisioner", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0349", + "verbs": [ + { + "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.", + "optional": true, + "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" + } + } + ] +} diff --git a/seats/mesh-self-check/seat.json b/seats/mesh-self-check/seat.json new file mode 100644 index 0000000..56ba074 --- /dev/null +++ b/seats/mesh-self-check/seat.json @@ -0,0 +1,43 @@ +{ + "format": 1, + "seat": "mesh-self-check", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0564", + "verbs": [ + { + "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" + } + } + ], + "events": [ + { + "name": "checked" + } + ] +} diff --git a/seats/mesh-store/seat.json b/seats/mesh-store/seat.json new file mode 100644 index 0000000..f02517a --- /dev/null +++ b/seats/mesh-store/seat.json @@ -0,0 +1,45 @@ +{ + "format": 1, + "seat": "mesh-store", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0079", + "delivers": "postgres-database", + "verbs": [ + { + "name": "databases", + "description": "Every database the store holds, with its on-disk size.", + "replaces": [ + "psql -l" + ], + "input": { + "properties": {}, + "type": "object" + } + }, + { + "name": "query", + "description": "One read-only statement against one database the store holds.", + "replaces": [ + "psql" + ], + "input": { + "properties": { + "database": { + "description": "the database to query", + "type": "string" + }, + "sql": { + "description": "the read-only statement", + "type": "string" + } + }, + "required": [ + "database", + "sql" + ], + "type": "object" + } + } + ] +} diff --git a/seats/mesh-wants/seat.json b/seats/mesh-wants/seat.json new file mode 100644 index 0000000..8b50c1a --- /dev/null +++ b/seats/mesh-wants/seat.json @@ -0,0 +1,51 @@ +{ + "format": 1, + "seat": "mesh-wants", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0565", + "verbs": [ + { + "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" + } + } + ], + "events": [ + { + "name": "policy-changed" + } + ] +} diff --git a/seats/mesh-watchdogs/seat.json b/seats/mesh-watchdogs/seat.json new file mode 100644 index 0000000..3ad9f3c --- /dev/null +++ b/seats/mesh-watchdogs/seat.json @@ -0,0 +1,93 @@ +{ + "format": 1, + "seat": "mesh-watchdogs", + "scope": "mesh", + "grain": "seat-list", + "decision": "novox/hq ADR 0564", + "verbs": [ + { + "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" + } + } + ] +} diff --git a/seats/node-backup/seat.json b/seats/node-backup/seat.json new file mode 100644 index 0000000..465f68f --- /dev/null +++ b/seats/node-backup/seat.json @@ -0,0 +1,80 @@ +{ + "format": 1, + "seat": "node-backup", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0214", + "verbs": [ + { + "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.", + "replaces": [ + "restic snapshots" + ], + "input": { + "properties": { + "module": { + "description": "one module (optional)", + "type": "string" + } + }, + "type": "object" + } + }, + { + "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.", + "replaces": [ + "restic backup" + ], + "input": { + "properties": { + "module": { + "description": "one module (optional)", + "type": "string" + } + }, + "type": "object" + } + }, + { + "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.", + "replaces": [ + "restic restore" + ], + "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" + } + } + ], + "receives": [ + { + "kind": "backup", + "comment": "#", + "dirs": true + }, + { + "kind": "data", + "comment": "#", + "dirs": true + } + ] +} diff --git a/seats/node-bar/seat.json b/seats/node-bar/seat.json new file mode 100644 index 0000000..dc73191 --- /dev/null +++ b/seats/node-bar/seat.json @@ -0,0 +1,75 @@ +{ + "format": 1, + "seat": "node-bar", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0208", + "receives": [ + { + "kind": "block", + "comment": "#", + "offered": true, + "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 + } + } + ] +} diff --git a/seats/node-build-go/seat.json b/seats/node-build-go/seat.json new file mode 100644 index 0000000..5beead8 --- /dev/null +++ b/seats/node-build-go/seat.json @@ -0,0 +1,46 @@ +{ + "format": 1, + "seat": "node-build-go", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0525, ADR 0536, ADR 0553", + "pulled-by-kind": true, + "yields": true, + "verbs": [ + { + "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" + } + } + ], + "accepts": [ + { + "name": "delivery" + }, + { + "name": "check" + }, + { + "name": "recheck" + } + ] +} diff --git a/seats/node-build-image/seat.json b/seats/node-build-image/seat.json new file mode 100644 index 0000000..96065eb --- /dev/null +++ b/seats/node-build-image/seat.json @@ -0,0 +1,46 @@ +{ + "format": 1, + "seat": "node-build-image", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0525, ADR 0536, ADR 0553", + "pulled-by-kind": true, + "yields": true, + "verbs": [ + { + "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" + } + } + ], + "accepts": [ + { + "name": "delivery" + }, + { + "name": "check" + }, + { + "name": "recheck" + } + ] +} diff --git a/seats/node-build-node/seat.json b/seats/node-build-node/seat.json new file mode 100644 index 0000000..d2b8fb7 --- /dev/null +++ b/seats/node-build-node/seat.json @@ -0,0 +1,46 @@ +{ + "format": 1, + "seat": "node-build-node", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0525, ADR 0536, ADR 0553", + "pulled-by-kind": true, + "yields": true, + "verbs": [ + { + "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" + } + } + ], + "accepts": [ + { + "name": "delivery" + }, + { + "name": "check" + }, + { + "name": "recheck" + } + ] +} diff --git a/seats/node-clipboard/seat.json b/seats/node-clipboard/seat.json new file mode 100644 index 0000000..0f21e51 --- /dev/null +++ b/seats/node-clipboard/seat.json @@ -0,0 +1,38 @@ +{ + "format": 1, + "seat": "node-clipboard", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0208", + "verbs": [ + { + "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" + } + } + ] +} diff --git a/seats/node-compositor/seat.json b/seats/node-compositor/seat.json new file mode 100644 index 0000000..4ce95ee --- /dev/null +++ b/seats/node-compositor/seat.json @@ -0,0 +1,7 @@ +{ + "format": 1, + "seat": "node-compositor", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0208" +} diff --git a/seats/node-container-runtime/seat.json b/seats/node-container-runtime/seat.json new file mode 100644 index 0000000..4a68219 --- /dev/null +++ b/seats/node-container-runtime/seat.json @@ -0,0 +1,7 @@ +{ + "format": 1, + "seat": "node-container-runtime", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0166, ADR 0207" +} diff --git a/seats/node-display-server/seat.json b/seats/node-display-server/seat.json new file mode 100644 index 0000000..8523e84 --- /dev/null +++ b/seats/node-display-server/seat.json @@ -0,0 +1,42 @@ +{ + "format": 1, + "seat": "node-display-server", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0208", + "verbs": [ + { + "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" + } + } + ] +} diff --git a/seats/node-display-session/seat.json b/seats/node-display-session/seat.json new file mode 100644 index 0000000..6edac04 --- /dev/null +++ b/seats/node-display-session/seat.json @@ -0,0 +1,44 @@ +{ + "format": 1, + "seat": "node-display-session", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0208", + "verbs": [ + { + "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": "#" + } + ] +} diff --git a/seats/node-engine/seat.json b/seats/node-engine/seat.json new file mode 100644 index 0000000..20ee202 --- /dev/null +++ b/seats/node-engine/seat.json @@ -0,0 +1,194 @@ +{ + "format": 1, + "seat": "node-engine", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0563", + "held-by-the-engine": true, + "verbs": [ + { + "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.", + "optional": true, + "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.", + "optional": true, + "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.", + "optional": true, + "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.", + "optional": true, + "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" + } + } + ], + "events": [ + { + "name": "asked" + }, + { + "name": "done" + }, + { + "name": "refused" + } + ] +} diff --git a/seats/node-environment/seat.json b/seats/node-environment/seat.json new file mode 100644 index 0000000..064beb0 --- /dev/null +++ b/seats/node-environment/seat.json @@ -0,0 +1,7 @@ +{ + "format": 1, + "seat": "node-environment", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0203" +} diff --git a/seats/node-files/seat.json b/seats/node-files/seat.json new file mode 100644 index 0000000..7ad768f --- /dev/null +++ b/seats/node-files/seat.json @@ -0,0 +1,589 @@ +{ + "format": 1, + "seat": "node-files", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0394", + "verbs": [ + { + "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.", + "replaces": [ + "stat", + "ls -ld", + "namei -l", + "findmnt -T" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "readlink", + "readlink -f", + "realpath" + ], + "input": { + "properties": { + "path": { + "description": "an absolute path", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + } + }, + { + "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.", + "replaces": [ + "ls", + "ls -la" + ], + "input": { + "properties": { + "path": { + "description": "an absolute path to a directory", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + } + }, + { + "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.", + "replaces": [ + "cat", + "head", + "tail", + "less" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "grep", + "grep -r", + "grep -F" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "getent passwd", + "getent group", + "id", + "groups" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "tee", + "\u003e" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "cp", + "cp -a", + "ssh \u003cnode\u003e cp" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "mv" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "rm", + "rm -r" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "mkdir", + "mkdir -p" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "chmod" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "chown", + "chgrp" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "ls ~/.local/share/Trash" + ], + "input": { + "properties": {}, + "type": "object" + } + }, + { + "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.", + "replaces": [ + "trash-restore" + ], + "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" + } + } + ] +} diff --git a/seats/node-hostname/seat.json b/seats/node-hostname/seat.json new file mode 100644 index 0000000..0f646af --- /dev/null +++ b/seats/node-hostname/seat.json @@ -0,0 +1,73 @@ +{ + "format": 1, + "seat": "node-hostname", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0199, ADR 0223", + "verbs": [ + { + "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.", + "replaces": [ + "cat /etc/hosts", + "getent hosts" + ], + "input": { + "properties": {}, + "type": "object" + } + }, + { + "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.", + "replaces": [ + "edit /etc/hosts", + "HOSTALIASES" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "sed -i /etc/hosts" + ], + "input": { + "properties": { + "name": { + "description": "a host name, or an address to remove every line of", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + } + } + ], + "paths": [ + { + "path": "/etc/hosts" + }, + { + "path": "/etc/hostname" + } + ] +} diff --git a/seats/node-hotkeys/seat.json b/seats/node-hotkeys/seat.json new file mode 100644 index 0000000..cedd627 --- /dev/null +++ b/seats/node-hotkeys/seat.json @@ -0,0 +1,13 @@ +{ + "format": 1, + "seat": "node-hotkeys", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0212", + "receives": [ + { + "kind": "trigger", + "comment": "#" + } + ] +} diff --git a/seats/node-intrusion-prevention/seat.json b/seats/node-intrusion-prevention/seat.json new file mode 100644 index 0000000..a987a70 --- /dev/null +++ b/seats/node-intrusion-prevention/seat.json @@ -0,0 +1,89 @@ +{ + "format": 1, + "seat": "node-intrusion-prevention", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0121", + "verbs": [ + { + "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.", + "replaces": [ + "fail2ban-client status" + ], + "input": { + "properties": { + "jail": { + "description": "one jail (optional)", + "type": "string" + } + }, + "type": "object" + } + }, + { + "name": "banned", + "description": "Every address banned on this machine right now, with the jail that holds it and when the ban ends.", + "replaces": [ + "fail2ban-client banned" + ], + "input": { + "properties": { + "jail": { + "description": "one jail (optional)", + "type": "string" + } + }, + "type": "object" + } + }, + { + "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.", + "replaces": [ + "fail2ban-client set banip" + ], + "input": { + "properties": { + "ip": { + "description": "the address", + "type": "string" + }, + "jail": { + "description": "the jail to hold it", + "type": "string" + } + }, + "required": [ + "ip", + "jail" + ], + "type": "object" + } + }, + { + "name": "unban", + "description": "Let one address go, from one jail or from every jail when none is named.", + "replaces": [ + "fail2ban-client unban", + "fail2ban-client set unbanip" + ], + "input": { + "properties": { + "ip": { + "description": "the address", + "type": "string" + }, + "jail": { + "description": "one jail (optional)", + "type": "string" + } + }, + "required": [ + "ip" + ], + "type": "object" + } + } + ] +} diff --git a/seats/node-launcher/seat.json b/seats/node-launcher/seat.json new file mode 100644 index 0000000..3eab2eb --- /dev/null +++ b/seats/node-launcher/seat.json @@ -0,0 +1,68 @@ +{ + "format": 1, + "seat": "node-launcher", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0208", + "verbs": [ + { + "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.", + "optional": true, + "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" + } + } + ] +} diff --git a/seats/node-lock-screen/seat.json b/seats/node-lock-screen/seat.json new file mode 100644 index 0000000..4cd19ed --- /dev/null +++ b/seats/node-lock-screen/seat.json @@ -0,0 +1,17 @@ +{ + "format": 1, + "seat": "node-lock-screen", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0208", + "verbs": [ + { + "name": "lock", + "description": "Lock the operator's session now.", + "input": { + "properties": {}, + "type": "object" + } + } + ] +} diff --git a/seats/node-login-manager/seat.json b/seats/node-login-manager/seat.json new file mode 100644 index 0000000..e0a70ba --- /dev/null +++ b/seats/node-login-manager/seat.json @@ -0,0 +1,17 @@ +{ + "format": 1, + "seat": "node-login-manager", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0208", + "verbs": [ + { + "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" + } + } + ] +} diff --git a/seats/node-login-shell/seat.json b/seats/node-login-shell/seat.json new file mode 100644 index 0000000..c868e5b --- /dev/null +++ b/seats/node-login-shell/seat.json @@ -0,0 +1,30 @@ +{ + "format": 1, + "seat": "node-login-shell", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0204", + "verbs": [ + { + "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.", + "optional": true, + "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" + } + } + ] +} diff --git a/seats/node-message-bus/seat.json b/seats/node-message-bus/seat.json new file mode 100644 index 0000000..83c6744 --- /dev/null +++ b/seats/node-message-bus/seat.json @@ -0,0 +1,7 @@ +{ + "format": 1, + "seat": "node-message-bus", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0215" +} diff --git a/seats/node-mounts/seat.json b/seats/node-mounts/seat.json new file mode 100644 index 0000000..43f1655 --- /dev/null +++ b/seats/node-mounts/seat.json @@ -0,0 +1,111 @@ +{ + "format": 1, + "seat": "node-mounts", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0263", + "verbs": [ + { + "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.", + "replaces": [ + "cat /etc/fstab", + "findmnt", + "systemctl list-units --type=mount" + ], + "input": { + "properties": {}, + "type": "object" + } + }, + { + "name": "test", + "description": "Whether one share's or occasional source's server answers from this machine now, without touching its mount point.", + "replaces": [ + "showmount -e", + "ping" + ], + "input": { + "properties": { + "name": { + "description": "the share or source, by its name", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + } + }, + { + "name": "mount", + "description": "Mount one share or occasional source now, rather than at its first access.", + "replaces": [ + "mount" + ], + "input": { + "properties": { + "name": { + "description": "the share or source, by its name", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + } + }, + { + "name": "unmount", + "description": "Release one share or occasional source now; its automount stays armed, so the next access mounts it again.", + "replaces": [ + "umount" + ], + "input": { + "properties": { + "name": { + "description": "the share or source, by its name", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + } + }, + { + "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.", + "replaces": [ + "sed -i /etc/fstab" + ], + "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" + } + } + ] +} diff --git a/seats/node-nfs-server/seat.json b/seats/node-nfs-server/seat.json new file mode 100644 index 0000000..4cedbde --- /dev/null +++ b/seats/node-nfs-server/seat.json @@ -0,0 +1,99 @@ +{ + "format": 1, + "seat": "node-nfs-server", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0263", + "verbs": [ + { + "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.", + "replaces": [ + "exportfs -v", + "cat /etc/exports", + "zfs get sharenfs" + ], + "input": { + "properties": {}, + "type": "object" + } + }, + { + "name": "clients", + "description": "Which machines have mounted which share now, as the NFS server knows its clients.", + "replaces": [ + "ss -tn sport = :2049", + "cat /proc/fs/nfsd/clients/*/info" + ], + "input": { + "properties": {}, + "type": "object" + } + }, + { + "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.", + "replaces": [ + "showmount -e" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "exportfs -ra" + ], + "input": { + "properties": {}, + "type": "object" + } + }, + { + "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.", + "replaces": [ + "zfs set sharenfs=off" + ], + "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" + } + } + ] +} diff --git a/seats/node-notifier/seat.json b/seats/node-notifier/seat.json new file mode 100644 index 0000000..f391310 --- /dev/null +++ b/seats/node-notifier/seat.json @@ -0,0 +1,51 @@ +{ + "format": 1, + "seat": "node-notifier", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0208", + "verbs": [ + { + "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" + } + } + ] +} diff --git a/seats/node-package-manager/seat.json b/seats/node-package-manager/seat.json new file mode 100644 index 0000000..c2b32b0 --- /dev/null +++ b/seats/node-package-manager/seat.json @@ -0,0 +1,7 @@ +{ + "format": 1, + "seat": "node-package-manager", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0207" +} diff --git a/seats/node-packet-filter/seat.json b/seats/node-packet-filter/seat.json new file mode 100644 index 0000000..fb69e1c --- /dev/null +++ b/seats/node-packet-filter/seat.json @@ -0,0 +1,62 @@ +{ + "format": 1, + "seat": "node-packet-filter", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0121", + "verbs": [ + { + "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.", + "replaces": [ + "nft list ruleset", + "iptables -L", + "iptables-save" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "nft -f" + ], + "input": { + "properties": {}, + "type": "object" + } + }, + { + "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.", + "replaces": [ + "nft delete", + "iptables -X" + ], + "input": { + "properties": { + "where": { + "description": "the rule set, as `node show` lists it", + "type": "string" + } + }, + "required": [ + "where" + ], + "type": "object" + } + } + ] +} diff --git a/seats/node-power/seat.json b/seats/node-power/seat.json new file mode 100644 index 0000000..762a79f --- /dev/null +++ b/seats/node-power/seat.json @@ -0,0 +1,7 @@ +{ + "format": 1, + "seat": "node-power", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0211" +} diff --git a/seats/node-provisioner/seat.json b/seats/node-provisioner/seat.json new file mode 100644 index 0000000..9752f8b --- /dev/null +++ b/seats/node-provisioner/seat.json @@ -0,0 +1,7 @@ +{ + "format": 1, + "seat": "node-provisioner", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0349" +} diff --git a/seats/node-reads/seat.json b/seats/node-reads/seat.json new file mode 100644 index 0000000..938a71a --- /dev/null +++ b/seats/node-reads/seat.json @@ -0,0 +1,179 @@ +{ + "format": 1, + "seat": "node-reads", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0310", + "verbs": [ + { + "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.", + "replaces": [ + "stat", + "ls -ld", + "namei -l", + "findmnt -T" + ], + "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" + } + }, + { + "name": "readlink", + "description": "What one link points to, as written, and where the path leads once every link is followed, and whether that exists.", + "replaces": [ + "readlink", + "readlink -f", + "realpath" + ], + "input": { + "properties": { + "path": { + "description": "an absolute path", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + } + }, + { + "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.", + "replaces": [ + "ls", + "ls -la" + ], + "input": { + "properties": { + "path": { + "description": "an absolute path to a directory", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + } + }, + { + "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.", + "replaces": [ + "cat", + "head", + "tail", + "less" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "grep", + "grep -r", + "grep -F" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "getent passwd", + "getent group", + "id", + "groups" + ], + "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" + } + } + ] +} diff --git a/seats/node-resolver/seat.json b/seats/node-resolver/seat.json new file mode 100644 index 0000000..8689bcd --- /dev/null +++ b/seats/node-resolver/seat.json @@ -0,0 +1,77 @@ +{ + "format": 1, + "seat": "node-resolver", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0247", + "verbs": [ + { + "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.", + "replaces": [ + "resolvectl status", + "resolvectl dns", + "resolvectl domain" + ], + "input": { + "properties": {}, + "type": "object" + } + }, + { + "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.", + "replaces": [ + "resolvectl dns", + "resolvectl domain", + "resolvectl default-route" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "resolvectl revert" + ], + "input": { + "properties": { + "link": { + "description": "the network link, by name", + "type": "string" + } + }, + "required": [ + "link" + ], + "type": "object" + } + } + ], + "paths": [ + { + "path": "/etc/resolv.conf" + } + ] +} diff --git a/seats/node-secret-service/seat.json b/seats/node-secret-service/seat.json new file mode 100644 index 0000000..fd5b84b --- /dev/null +++ b/seats/node-secret-service/seat.json @@ -0,0 +1,7 @@ +{ + "format": 1, + "seat": "node-secret-service", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0208" +} diff --git a/seats/node-service-manager/seat.json b/seats/node-service-manager/seat.json new file mode 100644 index 0000000..9270cc2 --- /dev/null +++ b/seats/node-service-manager/seat.json @@ -0,0 +1,305 @@ +{ + "format": 1, + "seat": "node-service-manager", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0177", + "verbs": [ + { + "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.", + "replaces": [ + "systemctl list-units" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "systemctl status", + "systemctl is-active" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "systemctl start" + ], + "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" + } + }, + { + "name": "stop", + "description": "Stop one unit; for a mesh-declared unit the answer says the host will restore its declared state.", + "replaces": [ + "systemctl stop" + ], + "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" + } + }, + { + "name": "restart", + "description": "Restart one unit.", + "replaces": [ + "systemctl restart" + ], + "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" + } + }, + { + "name": "enable", + "description": "Make one unit start at boot (or at the account's login, in user scope).", + "replaces": [ + "systemctl enable" + ], + "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" + } + }, + { + "name": "disable", + "description": "Stop one unit starting at boot (or at login, in user scope).", + "replaces": [ + "systemctl disable" + ], + "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" + } + }, + { + "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].", + "replaces": [ + "journalctl" + ], + "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" + } + }, + { + "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.", + "optional": true, + "replaces": [ + "systemctl --failed" + ], + "input": { + "properties": { + "scope": { + "description": "\"system\" or \"user\": only that manager (both when absent)", + "type": "string" + } + }, + "type": "object" + } + }, + { + "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.", + "replaces": [ + "systemctl reset-failed" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "systemctl list-dependencies --reverse", + "systemctl show -p WantedBy", + "ls ~/.config/systemd/user/*.wants" + ], + "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" + } + }, + { + "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.", + "replaces": [ + "rm ~/.config/systemd/user/*.wants/\u003cunit\u003e", + "unlink /etc/systemd/system/*.wants/\u003cunit\u003e" + ], + "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" + } + } + ] +} diff --git a/seats/node-terminal-emulator/seat.json b/seats/node-terminal-emulator/seat.json new file mode 100644 index 0000000..732a5ba --- /dev/null +++ b/seats/node-terminal-emulator/seat.json @@ -0,0 +1,26 @@ +{ + "format": 1, + "seat": "node-terminal-emulator", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0208", + "verbs": [ + { + "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" + } + } + ] +} diff --git a/seats/node-uplink/seat.json b/seats/node-uplink/seat.json new file mode 100644 index 0000000..0ecfbf1 --- /dev/null +++ b/seats/node-uplink/seat.json @@ -0,0 +1,33 @@ +{ + "format": 1, + "seat": "node-uplink", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0117", + "verbs": [ + { + "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.", + "optional": true, + "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.", + "optional": true, + "input": { + "properties": {}, + "type": "object" + } + } + ], + "paths": [ + { + "path": "/etc/resolv.conf", + "steps-back-for": "node-resolver" + } + ] +} diff --git a/seats/the-private-network/seat.json b/seats/the-private-network/seat.json new file mode 100644 index 0000000..858f02e --- /dev/null +++ b/seats/the-private-network/seat.json @@ -0,0 +1,7 @@ +{ + "format": 1, + "seat": "the-private-network", + "scope": "node", + "grain": "seat-list", + "decision": "novox/hq ADR 0110" +}