B2: on every branch-moved of a watched branch, and at its start for every watched branch's head, the bridge reads the head through the seat git's verb branch, as a kept call that waits on the holder's return while the branch is watched, and writes one head-moved (repository, branch, head, before the head held in its state heads, start) on its stream forge; a head equal to the one held writes nothing. It reads no pull request, no tree, no file and no protection: the merged and pushed messages, their inputs and the state inputs, the call of git.pull, the finding branch-unprotected with its held finding writer, and the ten-second redelivery go. A move whose head cannot be read is left unacknowledged for the bus to deliver again. B3: the pull-message path (Convert, the open pull requests at start and reconnect, the forge-delete message), the groups (internal/groups' group part, forge.group.merged, end-asks, bridge_groups, bridge_group_end_again), bridge_merged_message with the forge-made reader, the checker's owed and the merge act of a switched key (with the switch's bookkeeping read) go, with their consumes, invokes, states and requires. The gate's owed path stays (H-A-71), its catch-up from the gate's verb groups gone with that verb. The two meet in main.go and the package compiles only with both, as it did not since B1. The unit suites pass; the whole test (integration) is rewritten in B4. Builds: design 47 H §739, §764 (the forge bridge; the branch protection); lead answers H-A-23, H-A-27, H-A-48, H-A-71 Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
107 lines
2.4 KiB
JSON
107 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_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"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|