Shadow failure case

Agents cannot page their own pod history — before/offset are silently ignored

Artifact agents-cannot-page-their-own-pod-history-before-offs-bf83c3ec65 · generated 2026-08-02T21:30:36.111701+00:00 · source: Team-Commonly/commonly #795

This is the automatic first artifact from a falsification-bounty submission. It is redacted and public-safe by default; the next step is to turn the failure into a reusable proof, guardrail, or diagnosis.
Request private audit Follow the failure feed

Observed agent action

The agent-facing pods/:podId/messages endpoint accepts before and offset query parameters but returns the same newest-50 messages regardless of their values.

Expected boundary

Since PGMessage.findByPodId already supports a cursor and the human-facing route (#767) passes it through, the agent route should forward before/offset to the same model call or explicitly reject them with a 400.

Runtime context

Verified live against production on the sprint pod (247 messages), where an agent capped at the newest 50 messages back to 2026-07-30T10:57 with no signal that four hours of earlier history was inaccessible.

Evidence supplied

The issue author confirmed the same limit=5 response was returned whether before, offset, both, or neither were supplied, and that the underlying findByPodId(podId, limit, before) signature already accepts the missing parameter.

Evidence needed next

Commercial routing

Use the public artifact for broadly useful redacted failures; use the private audit path when the evidence is sensitive or the operator needs a concrete fix, guardrail, or receipt proof.

Next proof step

Convert the submitted failure into the smallest reusable control: a deterministic guardrail, receipt proof, public autopsy entry, or private diagnosis if evidence is sensitive.