Repository navigation
test(lifecycle): deny-by-spec rows become required; one row re-keyed to #4443 - #4448
Merged
Daniel Meppiel (danielmeppiel) merged 3 commits intoNov 21, 2026
Merged
Conversation
… re-keyed to #4443 Four rows pass on main and drop their strict marks. The canonicalize-on-read row still fails only on the stored key and now tracks #4443. Regenerated generated_obligations.json (also picks up journey rows whose known cells main already dropped). Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 20, 2026 17:55
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block approval of this test-only maintenance change.
No open issues 🎉
What changed in this PR
This test-only maintenance PR updates lifecycle regression expectations after fixes to marketplace install-spec handling. It removes strict expected-failure marks from passing cases while keeping the remaining deny-key normalization failure tracked under #4443.
Changes:
- Makes four passing marketplace approve/deny cases required.
- Re-keys the remaining normalization test from #4189 to #4443.
- Regenerates obligations, promoting two gate rows and six previously fixed journey rows to required coverage.
| File | Description |
|---|---|
tests/quality/generated_obligations.json |
Moves eight obligations from known failing to required. |
tests/lifecycle/security/test_gate_removal.py |
Removes two expected-failure marks and updates the remaining failure reference. |
tests/lifecycle/security/gate_slices/mcp.py |
Makes marketplace local-deny MCP coverage required. |
tests/lifecycle/security/gate_slices/hook.py |
Makes marketplace local-deny hook coverage required. |
Review effort: Balanced
…ced contract Required, no xfail: install folds the spec key on read (one notice, user store byte-identical), the next deny rewrites it under the identity, and a repeat install prints no notice with the hook still retired. Steward-approved. Co-authored-by: Copilot App <[email protected]>
This was referenced Nov 20, 2026
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 20, 2026
…; one row re-keyed to #4443 Co-authored-by: Copilot App <[email protected]> # Conflicts: # tests/quality/generated_obligations.json
5 of 10 tasks
…4275 lift remedy Required, no xfail: verdict blocked (layer user-deny), no 'not approved' wording, no standalone 'Approve:' hint, and the only 'apm approve' mention sits in the 'To lift it' sentence naming the executables.deny entry. Steward-approved. Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-t1-4189-cells-required
branch
November 21, 2026 05:24
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 red: strict xfail cells that cited #4189 (and #4245, same block) now XPASS on main. Steward rules (pre-ruled):
Rows that pass drop the mark and become required:
test_policy_explain_agrees_with_a_deny_by_install_spectest_approve_by_marketplace_install_spec_approves_or_refuses(it was marked apm approve with a marketplace install spec reports not found and exits 0 #4245, which is in the closed state)G|marketplace-install|local-deny|hook(gate_slices/hook.py)G|marketplace-install|local-deny|mcp(gate_slices/mcp.py)The canonicalize-on-read row also becomes required (steward-approved Option B, no product change). It asserts the announced contract:
apm install -gexits 0 and retires the hook.lifecycle/p-execexactly once.~/.apm/config.jsonis byte-identical after install.apm deny lifecycle/p-exec -g, the store holds the identity and not the spec.Its old final assert (install itself rewriting the stored key) contradicted the shipped notice, "The next apm approve or apm deny rewrites it under that identity", and is corrected here (Refs Deny entry stored under a marketplace install spec is not normalized to the package identity on read #4443).
tests/quality/generated_obligations.jsonis regenerated (python -m tests.lifecycle.witnesses --write). Besides the two G rows, it moves six journey rows (J|E02|5|O6,J|J04|5|O6,J|J08|3|O6,J|J09|2|O6,J|J09|3|O6,J|J11|1|O6) from known to required. Their known cells were already removed on main, and their issues (#4173, #4192, #4193, #4211) are in the closed state.Comments checked:
test_executables_gate_integration.py:1021and_gate_kit.py:639describe current behavior (a deny/verdict on an uninstalled package exits 1 with no write); no change.Issue and approved scope
Issue: Refs #4189
Human scope-approval comment: main-red fix routed by the Stream T lead under the steward's pre-ruled cell rules.
Does this PR complete the issue, or what remains? Test-only. All five rows are required.
Type of change
Testing
Tested locally
All existing tests pass
Added tests for new functionality (if applicable)
The 5 rows on this head:
5 passed(the canonicalize row re-run after the steward-approved asserts: 1 passed)python -m tests.lifecycle.witnesses:up to date: 926 required, 104 known failingNode-set diff: none (marks only).
Changelog
## [Unreleased]inCHANGELOG.mdSpec conformance (OpenAPM v0.1)
N/A -- this PR does not change OpenAPM-observable behaviour.
Also required now (steward-approved):
test_policy_explain_of_a_denied_package_does_not_suggest_approving_it. Its stale strict mark cited apm policy explain suggests approving a package the user denied #4246, which is in the closed state. It asserts the fix(approve): approve -g for parked native plugins; approval identity consistency #4275 lift-remedy contract: verdict blocked (layer user-deny); no 'not approved' wording; no standalone 'Approve:' hint; and the only 'apm approve' mention is inside the 'To lift it' sentence that names the executables.deny entry. Local: 1 passed.