fix(beads): align agent bead prefixes and force multi-hyphen IDs (#482)

* fix(beads): align agent bead prefixes and force multi-hyphen IDs

* fix(checkpoint): treat threshold as stale at boundary
This commit is contained in:
JJ
2026-01-16 15:33:51 -05:00
committed by GitHub
parent 03213a7307
commit b1a5241430
17 changed files with 141 additions and 26 deletions
+23
View File
@@ -0,0 +1,23 @@
package beads
import "testing"
func TestNeedsForceForID(t *testing.T) {
tests := []struct {
id string
want bool
}{
{id: "", want: false},
{id: "hq-mayor", want: false},
{id: "gt-abc123", want: false},
{id: "hq-mayor-role", want: true},
{id: "st-stockdrop-polecat-nux", want: true},
{id: "hq-cv-abc", want: true},
}
for _, tc := range tests {
if got := NeedsForceForID(tc.id); got != tc.want {
t.Fatalf("NeedsForceForID(%q) = %v, want %v", tc.id, got, tc.want)
}
}
}