Skip to content

feat(azure): property-level drift #1213

Closed

Description

@lex00

Parent: #1200 · Depends on: #1202, O·azure (#1212) · Ref #1014

Implement the #1202 drift seam for Azure. floci-az gives two natural drift conditions: RG-delete-does-not-cascade (orphans stay listable) and in-memory state -- use them in the test.

Status correction (2026-08-01)

The implementation exists: lexicons/azure/src/deep-observe.ts
(observeResourcesDeepAzure, azureDeepNormalizationHooks,
AZURE_READ_ONLY_NAMES, AZURE_SERVICE_DEFAULTS), wired into plugin.ts under
#1267 / #1270. It rides az resource show, which #1212 ports to the ARM client —
a transport swap that should leave the normalization untouched.

This slot is therefore the acceptance run, not the impl. Of the three D
slots it starts closest to done: the payload is already deep, the hooks already
exist, and the transport swap ahead of it is the cheapest of the three.

Acceptance criteria

  • Hand-edited live property (e.g. an NSG rule) on the canonical example surfaces as drift; no false drift on a clean apply.
  • The RG-orphan and in-memory-state conditions each appear in the test.

Activity

  1. lex00 commented on Aug 7, 2026

    @lex00
    ContributorAuthor

    Both acceptance criteria hold, closed by #1588 (merged as 65c1bde).

    • Clean apply quiet; a hand-edited NSG rule (allow-ssh from 0.0.0.0/0, added out of band over ARM) surfaces path by path, addressed as securityRules[#allow-ssh].* on the VnetDefault estate.
    • Both floci-az drift conditions are in the committed test (test/azure-drift-e2e.sh, just azure-drift-e2e): RG-delete-does-not-cascade (the orphaned estate stays observed per-resource, drift unchanged) and in-memory state (a restart reads as entity-level MISSING, property axis silent).

    The run flushed out four normalization gaps, fixed in the same PR: declared [resourceId(...)] expression strings now collapse to UNRESOLVED via a new unresolved hook on the deep seam; chant's own ownership tags subtract (#1301's azure edition); ARM's nested self-ids and etags subtract; child-resource leaf names fold back to the declared vnet/subnet spelling and an undeclared live location is placement, not drift.

    floci-az's modeled storage-account provider does not persist what was PUT — recorded as test/floci-gaps.md entry 7; the acceptance estate is the canonical example's networking for that reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions