Skip to content

feat(api,cli,worker): usage v2, monorepo --root, audit retention, arm64 release fix - #102

Merged
Dvorinka merged 1 commit into
mainfrom
feat/usage-v2-and-parity
Nov 19, 2026
Merged

Dvorinka merged 1 commit into
mainfrom
feat/usage-v2-and-parity

Conversation

@Dvorinka

Copy link
Copy Markdown
Owner

Summary

  • Bandwidth metering — bandwidth_bytes on GET /api/v1/projects/{id}/usage: per-deployment max−min deltas over deployment_metric net rx/tx samples. runway usage prints it.
  • Team rollup — GET /api/v1/teams/{id}/usage + get_team_usage MCP tool sharing team_usage(); verified identical on both surfaces live (82 deployments, 174MB bandwidth).
  • Monorepo upload parity — runway deploy --root <dir> packs the repo root from inside an app subtree while config.root_directory selects the app server-side; pack excludes now match at any depth (*/node_modules, */.runway, */.next...).
  • Audit retention — AUDIT_RETENTION_DAYS (default 0 = keep forever) prunes audit_log inside the daily retention sweep.
  • release.yml arm64 fix — the linux-arm64 cross step hardcoded the deb822 ubuntu.sources path and failed on the legacy .list runner image; now handles both formats and reads the suite codename from os-release.
  • Version bump to v1.1.0 so the merge auto-cuts the release (with the arm64 leg actually building this time).

Test plan

  • cargo fmt --check
  • cargo check --workspace
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace (90 tests)
  • Live: GET /api/v1/projects/{id}/usage → bandwidth_bytes; GET /api/v1/teams/{id}/usage → 200 with rollup; MCP get_team_usage → identical payload
  • Rebuilt compose service; both endpoints served by the new binary

Roadmap updated: protection/preview-envs marked already-shipped; remaining gates now only function isolation, multi-region, billing hooks, plus the two creds/infra-gated verifications.

Generated with Devin

…64 release fix

- Bandwidth metering: bandwidth_bytes on project usage aggregates —
  per-deployment max−min deltas over deployment_metric net rx/tx.
- Team rollup: GET /api/v1/teams/{id}/usage + get_team_usage MCP tool
  sharing team_usage(); REST and MCP verified identical live.
- Monorepo upload parity: `runway deploy --root <dir>` packs the repo
  root while config.root_directory selects the app subtree; pack
  excludes now match at any depth (*/node_modules, */.runway, ...).
- Audit retention: AUDIT_RETENTION_DAYS (0 = keep forever) prunes
  audit_log in the daily sweep.
- release.yml: arm64 cross step no longer hardcodes the deb822
  ubuntu.sources path — handles legacy .list runner images and reads
  the codename from os-release. Fixes the v1.0.0 linux-arm64 failure.

Verified live: team usage 82 deployments / 174MB bandwidth over REST
and MCP; project usage gains bandwidth_bytes; gates green.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@mira-tdvorak

mira-tdvorak Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Mira PR Walkthrough


❌ Review failed — click for details

The code review failed to complete due to an unexpected error.

Stage: Code review
Error type: LLMError
Message: Both primary and fallback models failed

@Dvorinka
Dvorinka merged commit 8f5fa20 into main Nov 19, 2026
2 checks passed
@Dvorinka
Dvorinka deleted the feat/usage-v2-and-parity branch November 19, 2026 15:00
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