DEMO Beat 5: drift on deployed file (DO NOT MERGE)#18
Draft
danielmeppiel wants to merge 2 commits intomainfrom
Draft
DEMO Beat 5: drift on deployed file (DO NOT MERGE)#18danielmeppiel wants to merge 2 commits intomainfrom
danielmeppiel wants to merge 2 commits intomainfrom
Conversation
danielmeppiel
added a commit
to DevExpGbb/zava-agent-config
that referenced
this pull request
May 8, 2026
…13) apm-action@v1 with default inputs runs 'apm install' which re-deploys managed primitives from upstream and OVERWRITES any tampered file in the PR. That silently disables content-integrity / drift detection. Switch to setup-only: true (apm CLI on PATH, no install). apm audit then runs against the PR's actual file state, so drift fires when expected. Caught while wiring D2 governance demo Beat 5 (DevExpGbb/zava-storefront#18, which initially passed CI green despite a clear tamper of secure-coding-base). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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.
Demo artifact — D2 Governance, Beat 5 (drift detection)
Scenario: A developer edits a deployed managed instruction file —
.github/instructions/secure-coding-base.instructions.md(produced byzava-agent-config/plugins/secure-baseline) — to weaken the "no string-concatenation into SQL" rule. The lockfile (apm.lock.yaml) records the expected SHA256 of every deployed file.apm audit --cirecomputes hashes and fails on drift.Expected CI result: RED on
content-integrity+driftchecks.Local verification:
Aha for the room: the floor is signed, end-to-end. Hand-edit a managed file → CI catches it on the next PR. Restoration is one
apm installaway. No skills required to govern; no escape hatches.Reference: https://microsoft.github.io/apm/guides/drift-detection/
Closes nothing — DO NOT MERGE.