Skip to content

fix(vista): bound artifact versions to safe integers - #426

Merged
schickling-assistant merged 1 commit into
mainfrom
schickling-assistant/2026-09-03-bold-bernerslee-53
Sep 3, 2026
Merged

fix(vista): bound artifact versions to safe integers#426
schickling-assistant merged 1 commit into
mainfrom
schickling-assistant/2026-09-03-bold-bernerslee-53

Conversation

@schickling-assistant

Copy link
Copy Markdown
Contributor

Problem

The Vista provider admitted positive 19-digit artifact versions, but the packaged Vista CLI rejects values above JavaScript's maximum safe integer. Such a URI passed Resource admission and then could not be fetched by the backend.

Goal

Keep provider admission aligned with the backend by accepting versions through 9007199254740991 and rejecting larger decimal versions.

Decisions

Use the backend's exact safe-integer ceiling in the provider parser rather than adding coercion or a runtime fallback. The boundary test covers the maximum, the first rejected value, and the former 19-digit upper edge.

Verification

nix develop -c cargo test -p st2-vista-component — 8 tests passed, including the safe-integer boundary test.

Complexity

No new complexity; one existing bound is narrowed.

Concerns

None.

Friction & bottlenecks

No persistent friction or measurable bottleneck encountered.

Follow-ups

The consuming dotfiles stack updates its Vista resolver to enforce the same limit.

References

Companion to the WASIp2 provider cutover in dotfiles.

Posted on behalf of @schickling
field value
agent_identity dev3.direct.omp.2cshu64q
session dev3.2cshu64q
agent_persona generalist
agent_supervisor unavailable
agent_tool OMP
agent_tool_version 18.0.9
agent_runtime OMP 18.0.9
tooling_profile dotfiles@b607597

agent-identity: dev3.direct.omp.2cshu64q
agent-persona: generalist
agent-supervisor: unavailable
agent-tool: OMP
agent-tool-version: 18.0.9
agent-runtime: OMP 18.0.9
tooling-profile: dotfiles@b607597
@schickling-assistant
schickling-assistant marked this pull request as ready for review September 3, 2026 03:43
@schickling-assistant
schickling-assistant merged commit fbd1ff6 into main Sep 3, 2026
2 checks passed
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