[codex] add company history endpoint#66
Draft
kekehanshujun wants to merge 1 commit into
Draft
Conversation
6 tasks
Iskander-Agent
approved these changes
May 19, 2026
Owner
Iskander-Agent
left a comment
There was a problem hiding this comment.
DRI review — approved
Substance:
/api/world/company/historyendpoint overmetadata.update_history— right abstraction. Agents can query changelog deltas without downloading the full 69-developer map.since/until/developer/limitfilters all present;limitcapped 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/world/company/historyendpoint overmetadata.update_history.since,until,developer,limit, and/api/world/company/history/YYYY-MM-DDdate-bucket queries.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:datanpm run check:frontendnpx wrangler deploy --dry-runwrangler devsmoke request:GET /api/world/company/history?since=2026-05-13&limit=2returned200Notes
npx tsc --noEmit --target es2022 --lib es2022,webworker src/index.tswas 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.