Skip to content

Add web-fetch usage fields to inference breakdowns - #395

Merged
Xavientois merged 3 commits into
mainfrom
factory/web-fetch-usage-schema
Oct 9, 2026
Merged

Xavientois merged 3 commits into
mainfrom
factory/web-fetch-usage-schema

Conversation

@warp-agent-staging

@warp-agent-staging warp-agent-staging Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add presence-capable fetch-page count and cost fields (US cents and credits) to InferenceUsage, with generated Go bindings. Pages mean URLs requested by native fetch calls, not successful responses. Existing field numbers stay unchanged; absence remains distinct from recorded zero.

Justification

Web fetch contributes to inference charges but has no breakdown component. This is the additive schema prerequisite for the warp-server web-fetch base layer under REMOTE-3430. Consumed by warp-server#19455; cross-repository prerequisites cannot form a native GitHub stack.

Validation passed with protoc 36.1 and protoc-gen-go 1.36.6: ./script/generate -a multi_agent -v v1, go test ./... and go vet ./... in apis/multi_agent, npm ci, npm run generate:ts, cargo build, and cargo test. The TypeScript package tarball import and CI’s version-comment-excluding generation clean-diff check also passed. Rust and Go currently contain no tests. Unrelated compiler-header churn was excluded.

Sensitive Fields

  • I have ensured that all string fields that contain sensitive information are marked as sensitive. No string fields added.

Native stacks: schema 395 → 396; server 19455 → 19459. The upper server layer pins the fallback schema; the lower server layer pins the fetch schema.

Plans:

@warp-agent-staging

Copy link
Copy Markdown
Contributor Author

This PR was generated with Warp.

Comment @warp-staging-factory on this PR to send it follow-up work.

View run View conversation View on Slack

@Xavientois
Xavientois marked this pull request as ready for review October 9, 2026 01:41
@Xavientois
Xavientois requested a review from a team as a code owner October 9, 2026 01:41
@Xavientois
Xavientois requested a review from szgupta October 9, 2026 01:41
Comment thread apis/multi_agent/v1/task.proto Outdated
@warp-agent-staging
warp-agent-staging Bot added this pull request to stack #397 October 9, 2026 01:57
@Xavientois
Xavientois merged commit e6b8fe9 into main Oct 9, 2026
7 checks passed
@Xavientois
Xavientois deleted the factory/web-fetch-usage-schema branch October 9, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants