Skip to content

feat(learning): add Azure decision connectors - #314

Open
alliscode wants to merge 17 commits into
build/hub/newfrom
alliscode-azure-decision-connectors
Open

alliscode wants to merge 17 commits into
build/hub/newfrom
alliscode-azure-decision-connectors

Conversation

@alliscode

Copy link
Copy Markdown
Contributor

Why

Replica needs a practical Azure reference for the customer-operated decision runtime. The runtime must keep private training data, model artifacts, credentials, and infrastructure charges inside the customer's Azure subscription while preserving the provider-neutral lifecycle merged in #297 and #298.

What changes

This adds Azure adapters for private immutable Blob artifacts, durable PostgreSQL job and promotion state, bounded GPU job execution, generation-protected inference, managed identity credentials, and redacted operational signals.

flowchart LR
  Hub["Replica Hub"] --> Runtime["Customer decision runtime"]
  Runtime --> Blob["Private Azure Blob storage"]
  Runtime --> Postgres["Existing Replica PostgreSQL"]
  Runtime --> Broker["Fixed-template training broker"]
  Broker --> GPU["Scale-to-zero GPU job"]
  Runtime --> Endpoint["Customer inference endpoint"]
Loading

Terraform adds the private decision container, split workload identities, an exact non-delete Blob data role, broker and inference grants, retention policy, and deployment coordinates. A separate withdrawal identity permanently deletes selected Blob versions; runtime and training identities cannot delete them.

The connector and infrastructure tests use mocks and require no cloud credentials. A real Azure account is still required to verify regional GPU quota, the customer-provisioned job and broker, RBAC propagation, private connectivity, measured cost, cold starts, permanent withdrawal deletion, restore, outage, quota-exhaustion, and teardown behavior. This pull request does not claim a live Azure deployment pass.

@alliscode
alliscode requested review from a team and nshki as code owners November 19, 2026 22:53
Copilot AI adaptive review requested due to automatic review settings November 19, 2026 22:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved critical flaws allow Hub to modify decision-runtime state, permit filesystem writes outside the private cache, and let expired workers update jobs.

15 open issues
What changed in this PR

Adds a customer-operated Azure reference bundle for the decision runtime, building on the provider-neutral lifecycle, budget, and generation contracts from #297 and #298.

Changes:

  • Adds Azure storage, PostgreSQL state, training, inference, identity, and telemetry connectors with mocked contract coverage.
  • Passes inference generations and cooperative cancellation signals to workers.
  • Adds optional Azure infrastructure and operating guidance; live cloud verification remains outstanding.
File Description
packages/​learning/​environments/​brand-check/​tests/​test_runtime.py Adds worker cancellation and timeout coverage.
packages/​learning/​environments/​brand-check/​tests/​test_azure_connectors.py Adds mocked Azure connector and conformance coverage.
packages/​learning/​environments/​brand-check/​runtime.py Propagates inference generations and worker cancellation.
packages/​learning/​environments/​brand-check/​README.md Documents Azure adapters and operational boundaries.
packages/​learning/​environments/​brand-check/​azure_connectors.py Implements the Azure connector bundle.
packages/​learning/​environments/​brand-check/​__init__.py Exposes Azure APIs through lazy exports.
infrastructure/​README.md Documents provisioning and required cloud verification.
infrastructure/​azure/​variables.tf Adds decision-runtime configuration inputs.
infrastructure/​azure/​tests/​deployment.tftest.hcl Checks decision storage, access grants, and identity wiring.
infrastructure/​azure/​storage.tf Adds decision storage, retention, and permanent-delete support.
infrastructure/​azure/​roles.tf Defines decision identities and scoped access grants.
infrastructure/​azure/​outputs.tf Exports storage, job, and identity coordinates.
infrastructure/​azure/​application.tf Adds decision identities and configuration to Hub.

Review effort: Max (adaptive)

Comment thread infrastructure/azure/application.tf Resolved
Comment thread infrastructure/azure/storage.tf Resolved
Ben Thomas and others added 17 commits November 20, 2026 07:56
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@alliscode
alliscode force-pushed the alliscode-azure-decision-connectors branch from 827e524 to b1ddfab Compare November 20, 2026 16:48
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.

2 participants