Repository navigation
Conversation
…facts Check installed import provenance, event acceptance and log emission in the existing wheel and source-distribution smoke runs. Signed-off-by: Srinivasa Consultants <78673153+dinakarjs@users.noreply.github.com>
|
🟡 Contributor Check: MEDIUM
Automated check by AgenTrust Contributor Check. |
Run valid and malformed examples in isolated package installs and verify that removing each checker guard exposes its matching negative control. Signed-off-by: Srinivasa Consultants <78673153+dinakarjs@users.noreply.github.com>
drk-ram
approved these changes
Nov 22, 2026
drk-ram
left a comment
Contributor
There was a problem hiding this comment.
Great packaging-level guardrail set.
Verified:
tools/installed_example_control.py:11asserts imports come from the installed environment (sys.prefix) and not the repo checkout.tools/installed_example_control.py:25-34enforces exactly one emission and the expected accepted/logged/no-projection-error contract.tools/smoke_wheel.py:49-58executes the control inside the wheel smoke env, so this runs against installed artifacts.tools/test_installed_example_control.py:61-109adds negative controls plus guard-mutation checks, proving each guard is both necessary and effective.
This is exactly the kind of end-to-end packaging check that catches regressions early.
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.
The installed-package smoke test validates conformance fixtures and factory output but did not execute the manual governance example. A stale literal in that example could escape packaging checks, as seen during #132's version migration.
The existing wheel/source-distribution smoke command now copies and runs the committed example in its fresh installation environment using Python -I and sanitized import variables. The checker requires imports under the environment prefix, exactly one accepted event, successful local log emission and no projection errors. The original emit method is restored after execution.
Repeatable controls run in both artifact-install paths: one valid example, seven negative cases (unsupported version, no event, two events, accepted=False, log_emitted=False, projection errors, and a real package copy imported from outside the installation). Five guard-removal mutations must expose the corresponding false successes. Acceptance/log/projection-result controls replace those result fields after calling the real installed SDK; they test the checker boundary. The version case exercises SDK validation. Mutant rewrite sites are checked for exactly one occurrence.
Validation at head 3176a53, tested tree 7d87de96e7a6c35942199896b9dccb5b80d58ca4:
The check establishes local emission, not collector delivery. The example is copied from the checkout; this does not establish example inclusion in the wheel. #132's contract migration remains separately owned. Runtime SDK, schemas, dependencies and workflow definitions are unchanged.
Prepared with OpenAI Codex. DCO sign-off included. Hosted checks for this updated head and independent maintainer review remain pending.