GT1: the gate's ledger keeps one entry per module and revision
A record's head entry record/<branch.source> keeps the record-wide fields and the count of its movers; each mover, the catalog half's too, has its entry mover/<branch.source.module> with its pipeline, version and step outcomes per node, found through the index movers on its record's key. An entry over 64 KiB is refused with record-too-large, cleared when written within it or at the record's end; the ledger is capped at 1 GiB. Builds: design 47 H2 §809, §820; H-A-385, H-A-391
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
"storage": "ledger",
|
||||
"template": "ledger",
|
||||
"options": {
|
||||
"max-mib": 768
|
||||
"max-mib": 1024
|
||||
},
|
||||
"types": [
|
||||
{
|
||||
@@ -125,6 +125,9 @@
|
||||
},
|
||||
"owed": {
|
||||
"type": "object"
|
||||
},
|
||||
"movers": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"operations": [
|
||||
@@ -160,34 +163,11 @@
|
||||
"sequence": true
|
||||
},
|
||||
{
|
||||
"name": "entry",
|
||||
"effect": "set-entry",
|
||||
"name": "movers",
|
||||
"effect": "set-fields",
|
||||
"fields": [
|
||||
"key",
|
||||
"module",
|
||||
"fingerprint",
|
||||
"node"
|
||||
"movers"
|
||||
],
|
||||
"into": "entries",
|
||||
"key": "key",
|
||||
"sequence": true
|
||||
},
|
||||
{
|
||||
"name": "outcome",
|
||||
"effect": "set-entry",
|
||||
"fields": [
|
||||
"key",
|
||||
"module",
|
||||
"fingerprint",
|
||||
"node",
|
||||
"step",
|
||||
"outcome",
|
||||
"why",
|
||||
"at",
|
||||
"event"
|
||||
],
|
||||
"into": "outcomes",
|
||||
"key": "key",
|
||||
"sequence": true
|
||||
},
|
||||
{
|
||||
@@ -234,6 +214,99 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "mover",
|
||||
"schema": {
|
||||
"record": {
|
||||
"type": "string"
|
||||
},
|
||||
"module": {
|
||||
"type": "string"
|
||||
},
|
||||
"pipeline": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"type": "string"
|
||||
},
|
||||
"fingerprint": {
|
||||
"type": "string"
|
||||
},
|
||||
"node": {
|
||||
"type": "string"
|
||||
},
|
||||
"step": {
|
||||
"type": "string"
|
||||
},
|
||||
"outcome": {
|
||||
"type": "string"
|
||||
},
|
||||
"why": {
|
||||
"type": "string"
|
||||
},
|
||||
"at": {
|
||||
"type": "string"
|
||||
},
|
||||
"event": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"operations": [
|
||||
{
|
||||
"name": "mover",
|
||||
"effect": "set-fields",
|
||||
"fields": [
|
||||
"record",
|
||||
"module",
|
||||
"pipeline",
|
||||
"version"
|
||||
],
|
||||
"sequence": true
|
||||
},
|
||||
{
|
||||
"name": "entry",
|
||||
"effect": "set-entry",
|
||||
"fields": [
|
||||
"key",
|
||||
"module",
|
||||
"fingerprint",
|
||||
"node"
|
||||
],
|
||||
"into": "entries",
|
||||
"key": "key",
|
||||
"sequence": true
|
||||
},
|
||||
{
|
||||
"name": "outcome",
|
||||
"effect": "set-entry",
|
||||
"fields": [
|
||||
"key",
|
||||
"module",
|
||||
"fingerprint",
|
||||
"node",
|
||||
"step",
|
||||
"outcome",
|
||||
"why",
|
||||
"at",
|
||||
"event"
|
||||
],
|
||||
"into": "outcomes",
|
||||
"key": "key",
|
||||
"sequence": true
|
||||
}
|
||||
],
|
||||
"indexes": [
|
||||
{
|
||||
"name": "movers",
|
||||
"on": [
|
||||
"record"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "held",
|
||||
"schema": {
|
||||
|
||||
Reference in New Issue
Block a user