The gate keeps one delivery record per milestone's delivery on its ledger (milestone 47/G, W11.1)
ADR 0656 §7 and design 47 (The delivery record): the gate asks the bus module for a ledger `records` (template ledger, capped at 768 MiB) with two types: a record, keyed by its milestone and its heads, whose operations open it, write its group state, trace, outcomes, nodes away, pinned revisions and end, and remove it; and a month's list of the records opened, since a bundle cannot list a ledger's instances. An open of heads already recorded leaves the record as it is, an outcome applied twice writes nothing, and each open removes the records past the setting record-retention (90 days by default), naming each revision they pinned. The layout is the gate's own (design 20). Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ (Joined from 84eda463.) Builds: design 47 G §141, §142, §143, §144, §145, §146, §155, §34 (GATE1) Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
This commit is contained in:
@@ -38,6 +38,204 @@
|
||||
"uses": [
|
||||
"operator-channel"
|
||||
],
|
||||
"requires": [
|
||||
{
|
||||
"name": "records",
|
||||
"storage": "ledger",
|
||||
"template": "ledger",
|
||||
"options": {
|
||||
"max-mib": 768
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
"name": "record",
|
||||
"schema": {
|
||||
"milestone": {
|
||||
"type": "string"
|
||||
},
|
||||
"heads": {
|
||||
"type": "object"
|
||||
},
|
||||
"opened": {
|
||||
"type": "string"
|
||||
},
|
||||
"forge-made": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"form": {
|
||||
"type": "integer"
|
||||
},
|
||||
"group": {
|
||||
"type": "object"
|
||||
},
|
||||
"trace": {
|
||||
"type": "object"
|
||||
},
|
||||
"key": {
|
||||
"type": "string"
|
||||
},
|
||||
"module": {
|
||||
"type": "string"
|
||||
},
|
||||
"fingerprint": {
|
||||
"type": "string"
|
||||
},
|
||||
"node": {
|
||||
"type": "string"
|
||||
},
|
||||
"step": {
|
||||
"type": "string"
|
||||
},
|
||||
"outcome": {
|
||||
"type": "string"
|
||||
},
|
||||
"why": {
|
||||
"type": "string"
|
||||
},
|
||||
"at": {
|
||||
"type": "string"
|
||||
},
|
||||
"event": {
|
||||
"type": "string"
|
||||
},
|
||||
"since": {
|
||||
"type": "string"
|
||||
},
|
||||
"revision": {
|
||||
"type": "string"
|
||||
},
|
||||
"half": {
|
||||
"type": "string"
|
||||
},
|
||||
"ended": {
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"operations": [
|
||||
{
|
||||
"name": "open",
|
||||
"effect": "set-fields",
|
||||
"fields": [
|
||||
"milestone",
|
||||
"heads",
|
||||
"opened",
|
||||
"forge-made",
|
||||
"form"
|
||||
],
|
||||
"sequence": true
|
||||
},
|
||||
{
|
||||
"name": "group",
|
||||
"effect": "set-fields",
|
||||
"fields": [
|
||||
"group"
|
||||
],
|
||||
"sequence": true
|
||||
},
|
||||
{
|
||||
"name": "trace",
|
||||
"effect": "set-fields",
|
||||
"fields": [
|
||||
"trace"
|
||||
],
|
||||
"sequence": true
|
||||
},
|
||||
{
|
||||
"name": "outcome",
|
||||
"effect": "set-entry",
|
||||
"fields": [
|
||||
"key",
|
||||
"module",
|
||||
"fingerprint",
|
||||
"node",
|
||||
"step",
|
||||
"outcome",
|
||||
"why",
|
||||
"at",
|
||||
"event"
|
||||
],
|
||||
"into": "outcomes",
|
||||
"key": "key",
|
||||
"sequence": true
|
||||
},
|
||||
{
|
||||
"name": "away",
|
||||
"effect": "set-entry",
|
||||
"fields": [
|
||||
"node",
|
||||
"since"
|
||||
],
|
||||
"into": "away",
|
||||
"key": "node"
|
||||
},
|
||||
{
|
||||
"name": "back",
|
||||
"effect": "remove",
|
||||
"into": "away",
|
||||
"key": "node"
|
||||
},
|
||||
{
|
||||
"name": "pin",
|
||||
"effect": "set-entry",
|
||||
"fields": [
|
||||
"revision",
|
||||
"half"
|
||||
],
|
||||
"into": "pinned",
|
||||
"key": "revision"
|
||||
},
|
||||
{
|
||||
"name": "free",
|
||||
"effect": "remove",
|
||||
"into": "pinned",
|
||||
"key": "revision"
|
||||
},
|
||||
{
|
||||
"name": "end",
|
||||
"effect": "set-fields",
|
||||
"fields": [
|
||||
"ended"
|
||||
],
|
||||
"sequence": true
|
||||
},
|
||||
{
|
||||
"name": "remove",
|
||||
"effect": "remove"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "held",
|
||||
"schema": {
|
||||
"instance": {
|
||||
"type": "string"
|
||||
},
|
||||
"opened": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"operations": [
|
||||
{
|
||||
"name": "hold",
|
||||
"effect": "set-entry",
|
||||
"fields": [
|
||||
"instance",
|
||||
"opened"
|
||||
],
|
||||
"into": "records",
|
||||
"key": "instance"
|
||||
},
|
||||
{
|
||||
"name": "drop",
|
||||
"effect": "remove",
|
||||
"into": "records",
|
||||
"key": "instance"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"packages": {
|
||||
"git.novox.be/novox/mesh-delivery/modules/mesh-delivery-forge-bridge/forgemsg": "0.1"
|
||||
},
|
||||
@@ -105,6 +303,14 @@
|
||||
"description": "Whether mesh/check gates the merge. True (the default): the operator's Approve is asked, and a merge handed, only on a passing verdict judged against the trunk's head, and a trunk's move puts a verdict out of date (ADR 0447, ADR 0505 §4). False (the operator, 2026-10-25 22:56: \"run the check locally only, but not as a gate, it loses us too much time\"; developers run the unit and integration levels locally before a pull request): a ready pull request (no review line is waited for, ADR 0659) has its Approve is asked once the check at its heads (a group: of all its heads together) has a verdict, a pass or a failure said in the ask, or after 60 minutes with none, said so (the operator, 2026-10-27 23:54: \"if you don't want me to approve it, don't send the approval request\"); an approved merge waits for no verdict; no merge is refused for a check judged on an older trunk; a later verdict is shown on the pull request and the delivery, and asks a pending Approve again in its words; a group still merges all its members in one pass. Set it false together with the gitea module's check-gates-merge, which lets its merge tool merge an approved head without a passing mesh/check.",
|
||||
"trusted": false,
|
||||
"default": true
|
||||
},
|
||||
"record-retention": {
|
||||
"type": "number",
|
||||
"description": "days a delivery record is kept from when it opened (design 47 *The delivery record*): ninety covers every trace asked of a past delivery so far; when a record is removed at its retention, the gate says freed for each graph revision it pinned. Nothing else is removed to make room.",
|
||||
"minimum": 1,
|
||||
"maximum": 3650,
|
||||
"trusted": false,
|
||||
"default": 90
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
@@ -123,7 +329,8 @@
|
||||
"takes-config": [
|
||||
"refusal-stall-floor-minutes",
|
||||
"author-new-head-minutes",
|
||||
"check-gates-merge"
|
||||
"check-gates-merge",
|
||||
"record-retention"
|
||||
],
|
||||
"merge": "json",
|
||||
"template": "files/settings.json"
|
||||
|
||||
Reference in New Issue
Block a user