test(trust): red for #27 — stranger gating, open-request claim, directed claims

This commit is contained in:
Smokey committed 2026-10-28 05:46:38 -06:00
1 parent b43294341d
commit c23fcdd73c
3 files changed
+135 -2

No files matched your search

+8
View File
@@ -206,3 +206,11 @@ func TestDeliverAddressesRequester(t *testing.T) {
t.Fatalf("deliver must go back to the requester, got to=%v", d["to"])
}
}
// promote earns crows the right to speak unprompted (trust ladder): their own
// record on task type "other" reaches Regular.
func promote(s *Server, crows ...string) {
for _, c := range crows {
s.p.Ledger.Crows[c+"|other"] = &Record{Approved: 10, Streak: 10, Level: Regular}
}
}