JuliusBrussee/caveman · error
/ : capabilities_verified_at is in the future
Error message
%s %s/%s: capabilities_verified_at is in the future
What it means
DecodeAndValidate rejects a catalog entry whose capabilities_verified_at timestamp parses as a valid RFC3339 time but lies more than 24 hours in the future. This guards against misconfigured or fabricated entries claiming verification evidence that has not happened yet. It fails closed during catalog decode so untrustworthy provenance metadata never reaches consumers.
Solutions
- Correct the capabilities_verified_at value in the catalog entry to the actual past verification date in RFC3339 UTC (e.g. 2026-09-20T00:00:00Z).
- If the timestamp is generated, fix the generator to emit time.Now().UTC().Format(time.RFC3339) instead of a hand-rolled or wrongly-scaled value.
- Re-run DecodeAndValidate/load to confirm the catalog passes.
- If a test fixture needs a future date, cap it within the 24h allowance or construct it as time.Now().UTC().Add(time.Hour).
Example fix
// before "capabilities_verified_at": "2206-01-15T00:00:00Z" // after "capabilities_verified_at": "2026-09-20T00:00:00Z"
Defensive patterns
Strategy: validation
Validate before calling
tv, err := time.Parse(time.RFC3339, entry.CapabilitiesVerifiedAt)
if err != nil || tv.IsZero() || tv.After(time.Now().UTC().Add(24*time.Hour)) {
return fmt.Errorf("entry %s/%s: capabilities_verified_at not a sane past RFC3339 date", entry.Provider, entry.Model)
} Try / catch
decoded, err := catalog.DecodeAndValidate(raw, label)
if err != nil {
var entryErr *catalog.EntryError // or strings.Contains check
if strings.Contains(err.Error(), "capabilities_verified_at is in the future") {
// fix the fixture/entry timestamp and retry
}
return fmt.Errorf("catalog rejected: %w", err)
} Prevention
- Always generate verification timestamps with time.Now().UTC().Format(time.RFC3339) instead of typing them.
- Add a CI lint that parses every capabilities_verified_at and rejects future dates.
- Keep clock sync (NTP) on machines that generate catalog entries.
When it happens
Trigger: Calling DecodeAndValidate (directly or via load/loadCurrentCatalog/snapshotDrift) on a catalog document where an entry has capabilities_verified_at set more than 24h beyond the current UTC time (e.g. year typos like 2206-01-15T00:00:00Z or UTC/local timezone confusion).
Common situations: Hand-editing catalog JSON/YAML and typing the wrong year; generating timestamps with a local clock set wrong or forgetting UTC conversion; CI tooling writing date fields with a millisecond-vs-seconds mistake producing far-future dates.
Related errors
- : verified_at is in the future
- : verified_at is older than 120 days
- catalog
- duplicate provider/model/region row
- invalid --since (want RFC3339)
AI-assisted analysis of JuliusBrussee/caveman@3ee70a1026 (2026-09-20).
Data as JSON: /api/errors/81fd76d2c46a5f5e.
Report an issue: GitHub.
Appendix: source
Thrown at shared/platform/catalog/catalog.go:344
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)
}
seen[key] = struct{}{}
}
return decoded, nilView on GitHub (pinned to 3ee70a1026)