Repository navigation
Add AI Guard and SCA rows to the security smoke grid - #8647
Draft
florentinl wants to merge 2 commits into
Draft
florentinl wants to merge 2 commits into
florentinl wants to merge 2 commits into
Conversation
Use the existing product scenarios and SDK fixtures. Correlate the kept AI Guard evaluation with its request across Agent trace chunks. Match SCA enablement and the expected dependency inventory to the reporting runtime at SDK egress and backend intake, without changing activation or transport.
Contributor
|
|
florentinl
marked this pull request as ready for review
November 23, 2026 17:18
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
florentinl
marked this pull request as draft
November 23, 2026 17:20
Move the AI Guard and SCA backend intake checks out of the product scenarios and into BaseAiGuardSmokeTests and BaseScaSmokeTests rows. SECURITY_SMOKE is the reference column, and APPSEC_APM_STANDALONE and APPSEC_STANDALONE_APM_STANDALONE get the same rows. Any future infrastructure column then inherits them. The shared product configuration lives in _core/product_env.py, so every column starts from the same weblog env and containers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
What this covers
This PR adds AI Guard and SCA to the security smoke grid, so their backend intake checks run on every infrastructure we test, not only in their product scenarios.
The grid (documented in
docs/understand/scenarios/security_smoke.md):Base*SmokeTestsclass intests/appsec/smoke_tests/utils.py.SECURITY_SMOKE(reference: classic Agent, native export),APPSEC_APM_STANDALONE,APPSEC_STANDALONE_APM_STANDALONE. Future columns such as OTLP/DDOT inherit every row.Test_<Scenario>_<Product>classes that only inherit a row. If a cell fails while itsSECURITY_SMOKEcell passes, the column's infrastructure is the cause.New rows:
BaseAiGuardSmokeTests: an AI Guard evaluation (theALLOWcassette, benign so AppSec can't be the one keeping the trace) reaches intake. It must beUSER_KEEPand attributed to AI Guard, either_dd.p.dm=-13or, with APM off, the AI Guard bit in_dd.p.ts. Its evaluation span, decision and structured messages must arrive unchanged. The evaluation span may be in another trace chunk.BaseScaSmokeTests: the SDK reports SCA enabled, and the expected dependency inventory reaches telemetry intake unchanged for the same runtime. There is no CVE lookup, enrichment or reachability claim.Supporting changes:
utils/_context/_scenarios/_core/product_env.py.AI_GUARD_*scenarios reuse the AI Guard part.MESSAGESandBLOCKING_HEADERmove totests/ai_guard/utils.pyso the smoke rows can replay the same cassette.AI_GUARD,AI_GUARD_STANDALONEandSCA_STANDALONE. They are reverted there, and the grid now covers them.Validation
1.70.0-SNAPSHOT), live and replay:SECURITY_SMOKE: all passed.APPSEC_APM_STANDALONE: all passed, includingtests/test_infra_disabled.py.APPSEC_STANDALONE_APM_STANDALONE: all passed except the cells already markedflaky (APPSEC-60872)for Java, which are skipped.TEST_THE_TEST(manifest, scenario declaration, deserializer) and./format.shpassed.🤖 Generated with Claude Code