JuliusBrussee/caveman · error
/ : capabilities_verified_at must be RFC3339
Error message
%s %s/%s: capabilities_verified_at must be RFC3339
What it means
When an entry includes capabilities_verified_at, it must parse as RFC3339 and be non-zero; otherwise the row is rejected. The optional field, once present, is held to the same timestamp standard as verified_at.
Solutions
- Set capabilities_verified_at to a valid RFC3339 string like '2026-09-20T00:00:00Z'.
- If capabilities were never verified, remove/empty the field entirely rather than leaving a bad value.
- Regenerate the field with time.Now().UTC().Format(time.RFC3339).
- Quote the YAML value so the parser keeps it a string.
Example fix
# before capabilities_verified_at: 09/2026 # after capabilities_verified_at: "2026-09-20T00:00:00Z"
Defensive patterns
Strategy: validation
Validate before calling
if e.CapabilitiesVerifiedAt != "" {
if _, err := time.Parse(time.RFC3339, e.CapabilitiesVerifiedAt); err != nil {
return fmt.Errorf("capabilities_verified_at must be RFC3339: %v", err)
}
} Try / catch
if _, err := catalog.DecodeAndValidate(raw); err != nil {
if strings.Contains(err.Error(), "capabilities_verified_at") {
return fmt.Errorf("fix or drop capabilities_verified_at: %w", err)
}
return err
} Prevention
- Emit the field only from the audit tool with RFC3339 formatting
- Omit the field entirely when capabilities were never verified
- Quote timestamp values in YAML and lint them in CI
When it happens
Trigger: DecodeAndValidate sees a non-empty capabilities_verified_at that fails time.Parse(time.RFC3339) or is zero — e.g. '09/2026', 'unknown', an epoch number, or a date-only string.
Common situations: A capabilities audit tool writing a locale-formatted date, a placeholder left in the field, or a schema migration emitting epoch seconds where an RFC3339 string is expected.
Related errors
- / : verified_at must be RFC3339
- : verified_at is in the future
- : verified_at is older than 120 days
- / : capabilities_verified_at is in the future
- / : verified_at is in the future
AI-assisted analysis of JuliusBrussee/caveman@3ee70a1026 (2026-09-20).
Data as JSON: /api/errors/12abe6dd682f422b.
Report an issue: GitHub.
Appendix: source
Thrown at shared/platform/catalog/catalog.go:341
return nil, fmt.Errorf("%s: provider, model, and region are required", label)
}
if entry.Currency != "USD" {
return nil, fmt.Errorf("%s %s/%s: unsupported currency %q", label, entry.Provider, entry.Model, entry.Currency)
}
if !cost.ValidPrice(entry.Pricing) {
return nil, fmt.Errorf("%s %s/%s: invalid pricing", label, entry.Provider, entry.Model)
}
verified, err := time.Parse(time.RFC3339, entry.VerifiedAt)
if err != nil || verified.IsZero() {
return nil, fmt.Errorf("%s %s/%s: verified_at must be RFC3339", label, entry.Provider, entry.Model)
}
if verified.After(time.Now().UTC().Add(24 * time.Hour)) {
return nil, fmt.Errorf("%s %s/%s: verified_at is in the future", label, entry.Provider, entry.Model)
}
if entry.CapabilitiesVerifiedAt != "" {
capVerified, err := time.Parse(time.RFC3339, entry.CapabilitiesVerifiedAt)
if err != nil || capVerified.IsZero() {
return nil, fmt.Errorf("%s %s/%s: capabilities_verified_at must be RFC3339", label, entry.Provider, entry.Model)
}
if capVerified.After(time.Now().UTC().Add(24 * time.Hour)) {
return nil, fmt.Errorf("%s %s/%s: capabilities_verified_at is in the future", label, entry.Provider, entry.Model)
}
}
if len(entry.Sources) == 0 {
return nil, fmt.Errorf("%s %s/%s: at least one source is required", label, entry.Provider, entry.Model)
}
for _, rawURL := range entry.Sources {
u, err := url.ParseRequestURI(rawURL)
if err != nil || u.Scheme != "https" || u.Host == "" {
return nil, fmt.Errorf("%s %s/%s: invalid HTTPS source %q", label, entry.Provider, entry.Model, rawURL)
}
}
key := entry.Provider + "\x00" + entry.Model + "\x00" + entry.Region
if _, duplicate := seen[key]; duplicate {
return nil, fmt.Errorf("duplicate provider/model/region row %s/%s@%s", entry.Provider, entry.Model, entry.Region)
}View on GitHub (pinned to 3ee70a1026)