GT: each act the gate owes names its delivery record

The gate's owed event carries record, the delivery record's source
revision <branch>.<source> (the record's key), said and kept in the
record's acts alike, so the forge bridge keeps it with the act and
bridge_owed_again finds a record's acts in its own state. Built against
the seat mesh-delivery's Owed.record on mesh-delivery feat/47-H2-a.

Builds: design 47 H2 §807; H-A-432 (1)
This commit is contained in:
2026-11-22 01:48:18 +01:00
parent 575fe56243
commit ed14a10006
2 changed files with 7 additions and 0 deletions
@@ -48,6 +48,9 @@ func (h *Holder) owe(r *Record, o seat.Owed) error {
return errors.New("no seat to say owed on")
}
now := h.Now().UTC()
// The act names its delivery record by its source revision, <branch>.<source>, so the forge bridge keeps it with the act
// and bridge_owed_again finds a record's acts in its own state (design 47 H2 §807, H-A-432 (1)).
o.Record = r.Milestone
if had, ok := r.Acts[o.ID]; ok && had.Owed.Said != nil {
o.Said = had.Owed.Said
} else {
@@ -54,6 +54,10 @@ func TestARecordsChangesOweTheNoteTheViewAndWhenFailedOrHeldAComment(t *testing.
if _, ok := r.Acts[o.ID]; !ok {
t.Fatalf("act %s not kept in the record", o.ID)
}
// H-A-432 (1): each act names its record by its source revision, said and kept alike.
if o.Record != "main.47" || r.Acts[o.ID].Owed.Record != o.Record {
t.Fatalf("act %s names the record %q, kept %q, not main.47", o.ID, o.Record, r.Acts[o.ID].Owed.Record)
}
if o.Act == seat.OwedActNote && (o.Line != "2026-11-11T21:00:00Z record "+r.Instance+": mesh-x on ace build built (built it)" || o.Commit != head) {
t.Fatalf("note %+v", o)
}