Skip to content

agent simulation: name the run window bounds start_time/end_time - #1738

Merged
u9g merged 2 commits into
mainfrom
jason/simulation-window-field-names
Aug 24, 2026
Merged

agent simulation: name the run window bounds start_time/end_time#1738
u9g merged 2 commits into
mainfrom
jason/simulation-window-field-names

Conversation

@u9g

@u9g u9g commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

A field named from is unusable from Python. protoc's --pyi_out cannot emit a keyword as a parameter name, so it drops the attribute declaration and falls back to a bare **kwargs — which python-sdks' strict mypy gate rejects outright (failing job, surfaced by an unrelated PR that happened to bump the protocol submodule past #1724). With the type gate silenced a Python caller could still only reach the field through getattr(req, "from") / Request(**{"from": ts}), unchecked either way.

Renames both bounds on SimulationRun.List.Request and SimulationRun.Counts.Request from from/to to start_time/end_time: symmetric, and matching the _time suffix the timestamps elsewhere use. Field numbers are unchanged, so the wire format is compatible — only the JSON/text names move.

The fields landed in #1724/#1726 and .changeset/ still holds #1723's pending entry, so they have never been in a release and no consumer outside main is on the old names.

Downstream: agents-private/agent-service is the only repo that reads the fields (PR follows). cloud-api-server's proxy forwards only project_id/status/page_token, web's checked-in gen/proto predates #1724, and public-api-server / server-sdk-go / cloud-protocol reference the message types but not these fields — all recompile unchanged.

u9g added 2 commits August 24, 2026 14:02
`from` is a Python keyword, so protoc's --pyi_out cannot emit a parameter for
it: the stub drops the attribute and falls back to an untyped `**kwargs`, which
python-sdks' strict mypy gate rejects, and no Python caller can reach the field
except through getattr. Rename both bounds together to keep the pair symmetric
and to match the _time suffix the timestamps elsewhere use. Field numbers are
unchanged, so the wire format is compatible; only the JSON/text names move.
@changeset-bot

changeset-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: eac892d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@u9g
u9g merged commit 64286ea into main Aug 24, 2026
8 checks passed
@u9g
u9g deleted the jason/simulation-window-field-names branch August 24, 2026 18:16
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