GATE-6: the watchdog holds a head no merge call delivered and raises head-untaken

The gate consumes the forge bridge's head-moved, keeps in its template
state heads each head source.<branch> does not name, and raises
head-untaken (scope delivery, id <repository>.<branch>, warning, the
operator its resolver) once untaken-bound passes, on its one deadline
timer; a later source revision naming the head lets it go and clears the
finding. The stalled conditions, their state and the operator-channel
use go: the watchman's record-open is the one signal.

Builds: design 47 H §740; H-A-27 (head-moved's form, forgemsg), H-A-48 (the stalled conditions go; untaken-bound on the gate's one timer), H-A-81 (warning, resolver operator, no owner)

Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
This commit is contained in:
2026-11-20 03:17:42 +01:00
parent 6d398264db
commit 4f10af81b0
14 changed files with 445 additions and 239 deletions
+11 -5
View File
@@ -18,13 +18,11 @@
"consumes": [
"mesh-delivery-forge-bridge.owed.ended",
"git.merge-called.*",
"mesh-delivery-forge-bridge.forge.*.*.*.head-moved",
"mesh-delivery-indexer.take-in.taken",
"mesh-catalog.registration-changed",
"mesh-conditions.findings-asked"
],
"uses": [
"operator-channel"
],
"requires": [
{
"name": "records",
@@ -261,7 +259,7 @@
]
},
{
"name": "conditions",
"name": "heads",
"storage": "key-value",
"template": "state"
},
@@ -325,6 +323,13 @@
"maximum": 3650,
"trusted": false,
"default": 90
},
"untaken-bound": {
"type": "number",
"description": "minutes a watched branch's head may stand that no merge call delivered before the gate raises head-untaken (design 47 H §740); the gate keeps one deadline timer for the earliest.",
"minimum": 1,
"trusted": false,
"default": 10
}
},
"resources": [
@@ -341,7 +346,8 @@
"path": "${dir:state}/settings.json",
"mode": "0600",
"takes-config": [
"record-retention"
"record-retention",
"untaken-bound"
],
"merge": "json",
"template": "files/settings.json"