Skip to content

test(lifecycle): deny-by-spec rows become required; one row re-keyed to #4443 - #4448

Merged
Daniel Meppiel (danielmeppiel) merged 3 commits into
mainfrom
danielmeppiel-t1-4189-cells-required
Nov 21, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 3 commits into
mainfrom
danielmeppiel-t1-4189-cells-required

Conversation

@danielmeppiel

@danielmeppiel Daniel Meppiel (danielmeppiel) commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

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:

  • The canonicalize-on-read row also becomes required (steward-approved Option B, no product change). It asserts the announced contract:

    • apm install -g exits 0 and retires the hook.
    • The fold notice names lifecycle/p-exec exactly once.
    • ~/.apm/config.json is byte-identical after install.
    • After apm deny lifecycle/p-exec -g, the store holds the identity and not the spec.
    • A repeat install prints no notice and the hook stays retired.

    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.json is 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:1021 and _gate_kit.py:639 describe 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

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

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 failing

Node-set diff: none (marks only).

Changelog

  • One line in one section under ## [Unreleased] in CHANGELOG.md
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

… 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]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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]>
…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]>
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit b796cbe into main Nov 21, 2026
43 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-t1-4189-cells-required branch November 21, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants