Skip to content

docs: deprecate last_seen_at + wire_received_at; document odds_changed_at#256

Merged
Mlaz-code merged 2 commits into
mainfrom
chore/deprecate-last-seen-wire-received
Jun 2, 2026
Merged

docs: deprecate last_seen_at + wire_received_at; document odds_changed_at#256
Mlaz-code merged 2 commits into
mainfrom
chore/deprecate-last-seen-wire-received

Conversation

@Mlaz-code

Copy link
Copy Markdown
Collaborator

Phase 1 of internalizing last_seen_at + wire_received_at (sharp-api-go #743) — the customer-facing deprecation signal. They map to nothing customers should read for freshness; odds_changed_at is the field (and the only per-odd timestamp OpticOdds exposes).

  • openapi.json (Odds schema): last_seen_at / wire_received_at / stale timestampdeprecated: true; added the missing odds_changed_at prop as the canonical freshness field.
  • mdx field tables (odds, odds-batch, odds-best, odds-comparison): rows marked ⚠️ Deprecated → read odds_changed_at. Also corrects odds-best.mdx’s wrong "best odds determination" gloss.

Fields keep emitting — no break yet. Removal tracked in Mlaz-code/sharp-api-go#743.

Type: docs

🤖 Generated with Claude Code

Codex and others added 2 commits June 1, 2026 00:00
… document odds_changed_at

Phase 1 of internalizing the two non-betting response timestamps (sharp-api-go
issue #743). Customer-facing deprecation signal:

- openapi.json (Odds schema): mark `last_seen_at`, `wire_received_at`, and the
  stale `timestamp` prop `deprecated: true`; ADD the canonical `odds_changed_at`
  prop (it was missing) as the freshness field to read.
- Field tables (odds / odds-batch / odds-best / odds-comparison .mdx): mark the
  rows ⚠️ Deprecated and redirect to `odds_changed_at`. Also fixes odds-best's
  mislabeled "best odds determination" description for last_seen_at.

Fields still emit during the deprecation window — no contract break yet; removal
is tracked in Mlaz-code/sharp-api-go#743.

Type: docs

🤖 Generated with [Claude Code](https://claude.com/claude-code)
…eprecations)

Satisfies the openapi-version-check policy: schema changed (added odds_changed_at,
deprecated last_seen_at/wire_received_at/timestamp) → MINOR bump + CHANGELOG entry.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Mlaz-code Mlaz-code merged commit 41affda into main Jun 2, 2026
1 check passed
@Mlaz-code Mlaz-code deleted the chore/deprecate-last-seen-wire-received branch June 2, 2026 01:25
@Mlaz-code

Copy link
Copy Markdown
Collaborator Author

Merge gate (auto-classified): gate=docs — auto-classified by the gate-log enforcer (14min after merge, no Merge gate: audit comment found). Reviewer agent: please correct if wrong by replying with Merge gate: gate=<correct-word> — <evidence>. The audit log keys on the first such token; your correction overrides this auto-classified guess.

Posted by scripts/gate-log-enforcer.py because instruction-level rules about the gate= template aren't binding (0/N adoption); structural enforcement fills the log either way.

Mlaz-code added a commit that referenced this pull request Jun 2, 2026
…erse #256 (SHA-1048) (#257)

BREAKING (OpenAPI 3.0.0): the Odds response exposes a single `timestamp` field;
`odds_changed_at`, `last_seen_at`, and `wire_received_at` are removed. `timestamp`
is the delivery / last-refreshed stamp (advances every ingest cycle — feed
freshness, matching OpticOdds' `timestamp`), NOT a price-last-changed time;
SharpAPI no longer exposes a when-the-price-moved field. Mirrors sharp-api-go #751.

- openapi.json: Odds schema → single `timestamp` (delivery description); removed
  the 3 fields; info.version 2.3.0 → 3.0.0 + CHANGELOG entry. FutureOdds/Splits
  `timestamp`/`ts` untouched.
- mdx × 4 langs (en/es/pt-BR/de): field tables collapsed to one `timestamp` row;
  examples updated; cross-links to the concept page kept (anchor text → `timestamp`);
  concepts/pinnacle-odds-changed-at repurposed to explain `timestamp` (slug kept) +
  _meta.js label; migration callout on odds.mdx. Removed the phantom
  `all_books[].timestamp` (the API's per-book entries carry no timestamp).
- Residual `odds_changed_at`/`last_seen_at`/`wire_received_at` mentions are
  intentional (migration callouts + concept-page explanation only).

Refs SHA-1048
Type: docs

Co-authored-by: Codex <codex@sharpapi.local>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant