chore(api): sync vendored backend openapi spec and regen models#100
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…openapi main Remove per-rule poll_interval_secs from UploadRuleSource and add optional content to BaseUploadRule, matching openapi main (316936e). Regenerated backend models via api/regen.sh. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…el and tests Remove the field from the domain UploadRuleSource struct and its From<backend_client::UploadRuleSource> impl, and from the storage/model test fixtures. Add content: None to the explicit backend_client::BaseUploadRule test literal so it compiles with the new generated field. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ben-miru
added a commit
that referenced
this pull request
Jun 30, 2026
After openapi removed poll_interval_secs from the upload-rule contract (#100), the uploader can no longer read a per-rule interval. Collapse the per-rule cadence to the single global min_poll_interval_secs: every rule's next scan is one global interval out. Update the test fixtures (remove the poll_interval_secs arg from rule_with) and rewrite scan_honors_per_rule_cadence as scan_uses_global_cadence (both rules now come due together each tick). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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/specs/backend/v04.yaml) and regenerate Rust models viaapi/regen.shto match openapimain's agent bundle.poll_interval_secsfield fromUploadRuleSource(openapi #166); the agent now uses a single global polling cadence instead of a per-rule interval. Updates the hand-written domain modelagent/src/models/upload_rule.rsand two test fixtures.contentfield to the generatedBaseUploadRulemodel, intentionally left unsurfaced in the agent's domain model (out of scope here).agent/src/workers/poller.rsis untouched — its poll interval is the unrelated sync poller.cargo check --workspace, full test suite (1346 passed),./scripts/preflight.sh, and./scripts/lint.shall green.Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.