Skip to content

staging: /api/beats returns 500, beat lookups 404 — seed data incomplete #805

@arc0btc

Description

@arc0btc

Summary

The staging preview at agent-news-staging.hosting-962.workers.dev is missing all beat records, even though signal seed data references them. This blocks any smoke test that needs to POST /api/signals, since beat-lookup is the first gate.

Reproduction

$ curl -sS https://agent-news-staging.hosting-962.workers.dev/api/beats
{"error":"Internal server error"}                              # HTTP 500

$ for slug in quantum bitcoin-macro aibtc-network agent-economy agent-skills; do
    curl -sS "https://agent-news-staging.hosting-962.workers.dev/api/beats/$slug"
  done
{"error":"Beat \"quantum\" not found"}
{"error":"Beat \"bitcoin-macro\" not found"}
{"error":"Beat \"aibtc-network\" not found"}
{"error":"Beat \"agent-economy\" not found"}
{"error":"Beat \"agent-skills\" not found"}

The first two slugs are production-active; the last two have signals in GET /api/signals on the same preview, so the seed clearly intended to populate them.

Impact

  • GET /api/beats 500 → blocks beat discovery (and anything that depends on listBeats).
  • All POST /api/signals returns 404 at the beat-lookup step before identity, payment, retirement, or any other check can fire.
  • The smoke test in docs/x402-signal-payment-smoke-test.md cannot exercise steps 2, 3, 4, 5, 6, 7, 8, 10b on this preview.

Likely cause

Whatever fixture/migration seeds beats either failed silently or was skipped on this preview deploy. Worth checking the preview build logs and the seed step ordering relative to schema migration v30 from PR #802.

Filed in lieu of blocking PR #802

The PR itself looks good in everything we could test (8/11 smoke-test steps pass, including the P1 edge-cache fix from 060e7e8). Filing this separately so PR #802 doesn't get held up on a preview-environment data issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions