Skip to content

refactor(api): centralize runtime ownership and shared policies - #2046

Merged
Sau1707 merged 1 commit into
mainfrom
refactor/api-policy-ownership
Dec 3, 2026
Merged

Sau1707 merged 1 commit into
mainfrom
refactor/api-policy-ownership

Conversation

@Sau1707

@Sau1707 Sau1707 commented Dec 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Centralize password hashing and thread offloading, including administrator reconciliation.
  • Move tenant-scoped registry inspection and bounded usage measurement into operations while preserving authorization, locks, deadlines, and errors.
  • Share invoice visibility, browser credential, transition lease, and Compute error policies.
  • Isolate all lifespan workers and Stripe test settings; cover off-loop hashing, invoice PDF access, and credential origin enforcement.
  • Remove redundant validation of the server-derived company registry URL. Direct model construction no longer validates arbitrary registry URL strings; no schema or dependency migrations are required.

Validation

  • Isolated worktree: 915 tests passed; 19 integration cases excluded with pytest -m 'not integration' -q, including synthetic parent Stripe settings.
  • Ruff lint, changed-file formatting, ty check with the existing virtual environment, and git diff --check passed.
  • Whole-tree formatting previously found unrelated, pre-existing blank lines in api/tests/routes/v1/test_health.py; that file is unchanged.
  • Existing AnyIO pytest deprecation warning remains. The SQLite teardown warning did not recur.

@Sau1707 Sau1707 added api Related to the control plane refactor Structural improvements without changing intended behavior labels Dec 3, 2026
@Sau1707
Sau1707 merged commit cae75ac into main Dec 3, 2026
16 checks passed
@Sau1707
Sau1707 deleted the refactor/api-policy-ownership branch December 3, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Related to the control plane refactor Structural improvements without changing intended behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant