The bridge's whole test runs the program against an embedded bus as the node does: a start, a merge, an admitted push to an unprotected branch and a restart after a move each give one head-moved naming the head read through the seat git's branch and the head held before (start true at a start); a head heard twice, a branch not watched and a restart at the head held give none, and the bridge asks the seat git nothing but branch. Its bus permissions are composed for the manifest as it now stands. The pull, open pull request, group and unprotected-branch tests go; the owed test performs the gate's statuses once, after a restart and again by hand. bridge_heads answers each key of the state heads with the head the bridge holds, read-only. Builds: design 47 H §739 (how checked), §774; lead answers H-A-48, H-A-85 (1) Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
108 lines
2.4 KiB
JSON
108 lines
2.4 KiB
JSON
{
|
|
"module": "mesh-delivery-forge-bridge",
|
|
"version": "0.1",
|
|
"slug": "forge-bridge",
|
|
"consumes": [
|
|
"git.branch-moved",
|
|
"mesh-catalog.registration-changed",
|
|
"mesh-delivery.source-moved",
|
|
"mesh-delivery.owed",
|
|
"mesh-broker.recreated",
|
|
"mesh-broker.dropped"
|
|
],
|
|
"streams": [
|
|
{ "name": "forge", "events": ["forge.**", "owed.ended"] }
|
|
],
|
|
"state": [
|
|
{ "name": "heads", "history": 1 },
|
|
{ "name": "owed-asks", "history": 1 }
|
|
],
|
|
"tools": [
|
|
"bridge_tags",
|
|
"bridge_heads",
|
|
"bridge_owed",
|
|
"bridge_owed_again",
|
|
"bridge_owed_drop"
|
|
],
|
|
"invokes": [
|
|
"seat:git.status",
|
|
"seat:git.comment",
|
|
"seat:git.view",
|
|
"seat:git.note",
|
|
"seat:mesh-hand-acts.hand-act",
|
|
"seat:git.tags",
|
|
"seat:git.branch",
|
|
"seat:mesh-catalog.registrations",
|
|
"seat:mesh-delivery.source",
|
|
"seat:mesh-broker.show"
|
|
],
|
|
"requires": [
|
|
{
|
|
"name": "performed",
|
|
"storage": "key-value",
|
|
"template": "state",
|
|
"options": { "history": 1, "ttl-seconds": 604800 }
|
|
}
|
|
],
|
|
"own-secrets": {
|
|
"broker": "${dir:state}/broker"
|
|
},
|
|
"secrets-owner": "mesh-delivery-forge-bridge",
|
|
"resources": [
|
|
{
|
|
"id": "account",
|
|
"type": "user",
|
|
"name": "mesh-delivery-forge-bridge",
|
|
"shell": "/usr/bin/nologin",
|
|
"home": "/var/lib/mesh-delivery-forge-bridge"
|
|
},
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"owner": "mesh-delivery-forge-bridge",
|
|
"place": ".",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "bridge",
|
|
"type": "process",
|
|
"name": "mesh-delivery-forge-bridge",
|
|
"artifact": "program",
|
|
"run": [
|
|
"./mesh-delivery-forge-bridge"
|
|
],
|
|
"env": {
|
|
"MESH_BROKER_FILE": "${dir:state}/broker"
|
|
},
|
|
"user": "mesh-delivery-forge-bridge",
|
|
"health": {
|
|
"kind": "unit"
|
|
}
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "program",
|
|
"kind": "bundle",
|
|
"language": "go",
|
|
"system": "arch",
|
|
"from": "cmd/mesh-delivery-forge-bridge",
|
|
"binary": "mesh-delivery-forge-bridge"
|
|
},
|
|
{
|
|
"name": "tools",
|
|
"kind": "bundle",
|
|
"language": "go",
|
|
"system": "arch",
|
|
"from": "cmd/mesh-delivery-forge-bridge-tools",
|
|
"binary": "mesh-delivery-forge-bridge-tools",
|
|
"loads": [
|
|
"mesh-delivery-forge-bridge-tools"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|