Files
mesh-tools/node-tools/module.json
T
jschoubben b8a30b2bc7 Mark the runner's three duration settings read at its runtime
drain-bound, kept-call-pace-first and kept-call-pace-max are placed in no file: the process reads
them from MESH_CONFIG_<KEY>, so each is marked "runtime": true, which the manifest validator asks.

Builds: design 47 H2 §775, §813 (12), H-A-370
2026-11-22 00:36:28 +01:00

131 lines
3.2 KiB
JSON

{
"module": "node-tools",
"version": "0.1",
"slug": "node-tools",
"tool-runner": true,
"invokes": [
"*"
],
"uses": [
"operator-channel"
],
"provides": [
{
"name": "mcp-endpoint",
"scope": "node",
"credential": {
"form": "none"
},
"answered-by": "helper"
}
],
"serves": {
"mcp-endpoint": {
"port": 4270
}
},
"own-secrets": {
"broker": "${dir:mesh-state}/broker",
"ledgers": "${dir:mesh-state}/ledgers"
},
"listens": [
{
"name": "mcp",
"port": 4270,
"protocol": "tcp",
"from": "machine",
"why": "the mesh's tools for whoever is on this machine, over MCP on loopback; the machine's login is the authority (novox/hq ADR 0152, 0175)"
}
],
"config": {
"drain-bound": {
"type": "string",
"description": "how long the tool runner, once told to stop, finishes the calls in flight before it cuts them and stops its bundles, a Go duration such as 30s (design 47 H2 §813 (12), H-A-377).",
"trusted": false,
"runtime": true,
"default": "30s"
},
"kept-call-pace-first": {
"type": "string",
"description": "how long the tool runner's kept call waits after its first transport fault before it calls again, doubling to kept-call-pace-max, a Go duration such as 1s (design 47 H2 §775).",
"trusted": false,
"runtime": true,
"default": "1s"
},
"kept-call-pace-max": {
"type": "string",
"description": "the longest wait of the tool runner's kept call between two calls, a Go duration such as 30s (design 47 H2 §775).",
"trusted": false,
"runtime": true,
"default": "30s"
}
},
"resources": [
{
"id": "mesh-state",
"type": "directory",
"mode": "0755",
"place": "mesh"
},
{
"id": "interpreter",
"type": "package",
"package": "nodejs"
}
],
"build": {
"artifacts": [
{
"name": "runtime",
"kind": "bundle",
"language": "go",
"system": "arch",
"from": "cmd/node-tools",
"binary": "node-tools",
"states": [
"approval-mark/1",
"bus-state-calls",
"finding-calls",
"ledger-calls",
"ledger-upkeep-calls",
"put-sessions",
"seat-settle-delay",
"sent-objects-calls",
"stream-publish"
]
}
]
},
"state": [
"bound",
"findings",
{
"name": "approvals",
"per-machine": true,
"ttl-seconds": 172800
}
],
"consumes": [
"mesh-catalog.catalog-revision",
"mesh-catalog.registration-changed",
"mesh-catalog.seat-definition-changed",
"mesh-catalog.seat-definition-removed",
"mesh-conditions.findings-asked",
"seat:mesh-module-assigner.views.assignments",
"seat:mesh-module-assigner.views.seat-holders",
"mesh-delivery.source-moved"
],
"streams": [
{
"name": "node-tools-findings",
"events": ["finding-written.*", "finding-cleared.*", "findings-stated.*"],
"max-age-days": 7,
"max-mib": 16
}
],
"reads": [
"mesh-provisioner.provisions",
"mesh-provisioner.plans"
]
}