Repository navigation
MAIN-RED FIX: move withheld-executable wording out of install/exec_gate.py (LOC budget) - #4777
Merged
Daniel Meppiel (danielmeppiel) merged 3 commits intoNov 22, 2026
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
…_reasons.py (exec_gate.py 1007 -> 945 LOC) Main 387ae90 failed test_no_install_module_exceeds_loc_budget after #4724 and #4729 both grew exec_gate.py. executable_skip_reason and withheld_executable_reason (the wording install and pack print for a parked executable) move to their own module under the executable-trust-context owner; callers import it directly. No budget raise. Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
marked this pull request as ready for review
November 22, 2026 17:05
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 22, 2026 17:05
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the shared skip-diagnostics extraction.
No open issues 🎉
What changed in this PR
This refactor addresses the install-module line-count failure following #4724 and #4729. It moves shared executable-skip diagnostics out of exec_gate.py, reducing it from 1007 to 945 lines without changing behavior or raising the 1000-line budget.
Changes:
- Extracts both skip-reason helpers into
exec_skip_reasons.py. - Updates install and pack callers to import from the new module.
- Registers the module under the existing executable-trust-context owner.
| File | Description |
|---|---|
src/apm_cli/install/target_warnings.py |
Imports canvas skip wording from the extracted module. |
src/apm_cli/install/exec_skip_reasons.py |
Houses the unchanged shared skip-reason helpers. |
src/apm_cli/install/exec_gate.py |
Removes helper definitions and imports the extracted helper, restoring the line budget. |
src/apm_cli/bundle/plugin_exporter.py |
Imports pack warning wording from the extracted module. |
.apm/architecture/owners/install-deployment.json |
Records ownership of the new diagnostics module. |
Review effort: Balanced
4 of 10 tasks
apm-spec-waiver: pure move of withheld-executable wording into install/exec_skip_reasons.py; no observable behaviour change Co-authored-by: Copilot App <[email protected]>
5 of 10 tasks
5 of 12 tasks
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-fix-exec-gate-loc
branch
November 22, 2026 17:55
This was referenced Nov 22, 2026
Merged
fix(uninstall): keep files a local bundle still owns; exit non-zero on package failure (#4703)
#4715
Merged
Merged
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.
Description
Main 387ae90 fails
tests/unit/install/test_architecture_invariants.py::test_no_install_module_exceeds_loc_budget.src/apm_cli/install/exec_gate.pyis 1007 lines against a 1000-line budget, because #4724 and #4729 each grew it.This PR moves
executable_skip_reasonandwithheld_executable_reasoninto a new module,src/apm_cli/install/exec_skip_reasons.py. These two functions word what install and pack print when the executables gate parks an executable.executable-trust-contextowner in.apm/architecture/owners/install-deployment.json. That owner already covers "the approve command parked notices print".exec_gate.py,target_warnings.py,bundle/plugin_exporter.py) import from the new module directly; nothing is re-exported.exec_gate.pygoes from 1007 to 945 lines. There is no budget raise and no cosmetic trimming, and behaviour does not change.Issue and approved scope
Issue: Refs #4714
Human scope-approval comment: main-red fix ordered by the 0.38 program lead (PGM v3) and Regent; it follows up the merged #4729. It is a refactor only, with no behaviour change.
Does this PR complete the issue, or what remains? It restores green main. #4714 was completed by #4729.
Type of change
Testing
Local runs at c9ebb45:
pytest tests/unit/install/test_architecture_invariants.py tests/unit/bundle/test_plugin_exporter_canvas.py tests/unit/core/test_remediation_block_proofs.py: 801 passed. The LOC budget test passes.[email protected] checkandformat --check,lint-auth-signals.sh, the complexity ratchet and the architecture linter (including module ownership): all clean.Changelog
changelog.d/<pr>.<section>.md, holdingone line: user-visible effect first, 25 words or fewer, ending with
(#PR); breaking changes only under upgrade notes; no Highlights; nonew lines under
## [Unreleased]. Seechangelog.d/README.mdand.github/instructions/changelog.instructions.md.Spec conformance (OpenAPM v0.1)
docs/src/content/docs/specs/openapm-v0.1.mdupdated(new/changed
<a id="req-XXX"></a>anchor + prose + Appendix Crow).
docs/src/content/docs/specs/manifests/openapm-v0.1.requirements.ymlupdated.
@pytest.mark.req("req-XXX")test undertests/spec_conformance/added or extended.CONFORMANCE.{md,json}regenerated viauv run --extra dev python -m tests.spec_conformance.gen_statementand committed.