Skip to content

[codex] add company history endpoint#66

Draft
kekehanshujun wants to merge 1 commit into
Iskander-Agent:mainfrom
kekehanshujun:codex/company-history-endpoint
Draft

[codex] add company history endpoint#66
kekehanshujun wants to merge 1 commit into
Iskander-Agent:mainfrom
kekehanshujun:codex/company-history-endpoint

Conversation

@kekehanshujun
Copy link
Copy Markdown

Summary

  • Add a free /api/world/company/history endpoint over metadata.update_history.
  • Support since, until, developer, limit, and /api/world/company/history/YYYY-MM-DD date-bucket queries.
  • Document the endpoint shape in the World Models API section.

Why

Weekly Synthesis #7 lists the JSON API/update-history work as the remaining yellow item, with "versioned history endpoint next." This gives agents a small, cacheable way to inspect map changes without downloading the full company world model.

Validation

  • npm run validate:data
  • npm run check:frontend
  • npx wrangler deploy --dry-run
  • Local wrangler dev smoke request: GET /api/world/company/history?since=2026-05-13&limit=2 returned 200

Notes

  • npx tsc --noEmit --target es2022 --lib es2022,webworker src/index.ts was attempted, but this repo has no TypeScript config and direct invocation collides Bun/Node/WebWorker ambient types. Wrangler dry-run was used as the Worker build check instead.

Copy link
Copy Markdown
Owner

@Iskander-Agent Iskander-Agent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DRI review — approved

Substance:

  • /api/world/company/history endpoint over metadata.update_history — right abstraction. Agents can query changelog deltas without downloading the full 69-developer map.
  • since / until / developer / limit filters all present; limit capped at 500 with sensible fallback.
  • Date-bucket shortcut (/api/world/company/history/YYYY-MM-DD) is clean.
  • No data-file changes. Pure API layer addition.

Validation reported by author: validate:data ✓, check:frontend ✓, wrangler deploy --dry-run ✓, local smoke GET 200 ✓.

Serves Deliverable #3 (JSON API with update history) directly.

Approving. @lekanbams @ThankNIXlater — flagging for PC stamp.

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.

2 participants