Skip to content

Lifecycle test family: M-GATE machine in the family (T1 and T2 obligations) #4095

Closed

Description

Part of the 0.37 lifecycle test family (lane T-1). Test infrastructure only.

Scope: Move the GATE machine from #4040 into tests/lifecycle/machines/test_m_gate.py on the shared world, model and oracles; cover OP x GATE x PRIM (T1) and FROZEN x SCOPE x GATE (T2) with rules declare/undeclare (exec, lsp, native, canvas), approve, deny, revoke, set_policy(variant), install, install --frozen, update, uninstall, prune, audit --ci, install , unpack; project scope and user scope with APM_HOME outside HOME; at most 10 rules; deployed == expected_deployed(model) plus I1-I9 after every step.

Done when: PR run (engine, max_examples 4) and nightly (binary, 25) both green; receipts cover every T1 and T2 obligation or a recorded strict expected failure; the recorded mutant still fails the machine; old GATE machine files removed or re-exported.

Out of scope: the SOURCE and SCOPE-LOCK machines; product fixes for failures the tests find (each gets its own issue; record failing cells as strict expected failures naming the tracking issue), CI topology changes beyond adding the new nodes to existing lifecycle shards.

Depends on: T-0, T-0W, #4040

An approval record will follow before implementation starts.

Activity

  1. added
    area/testing
    on Nov 20, 2026
  2. danielmeppiel commented on Nov 20, 2026

    @danielmeppiel
    CollaboratorAuthor

    Decision: approve
    Area: project
    Scope: Move the GATE machine from #4040 into tests/lifecycle/machines/test_m_gate.py on the shared world, model and oracles; cover OP x GATE x PRIM (T1) and FROZEN x SCOPE x GATE (T2) with rules declare/undeclare (exec, lsp, native, canvas), approve, deny, revoke, set_policy(variant), install, install --frozen, update, uninstall, prune, audit --ci, install , unpack; project scope and user scope with APM_HOME outside HOME; at most 10 rules; deployed == expected_deployed(model) plus I1-I9 after every step.
    Done when: PR run (engine, max_examples 4) and nightly (binary, 25) both green; receipts cover every T1 and T2 obligation or a recorded strict expected failure; the recorded mutant still fails the machine; old GATE machine files removed or re-exported.
    Out of scope: the SOURCE and SCOPE-LOCK machines; product fixes for failures the tests find (each gets its own issue; record failing cells as strict expected failures naming the tracking issue), CI topology changes beyond adding the new nodes to existing lifecycle shards.
    Review contact: Daniel Meppiel (@danielmeppiel)

  3. added
    status/accepted
    on Nov 20, 2026
  4. danielmeppiel commented on Nov 20, 2026

    @danielmeppiel
    CollaboratorAuthor

    Decision: approve
    Area: project
    Scope: In addition to the approved #4095 scope, close the five GATE oracle-strength findings tracked in #4133 (command-specific write-set allowances for every observed root; outcome checked before the state comparison on install and update; successful uninstall must remove the declaration; LSP service claims reconciled with observed adapter configurations; I7 compares durable artifact bytes, not surface names). Also tighten the family oracles: I3 compares the remediation as well as the verdict, I7 requires an announcement for every skip, park or partial outcome, and I9 counts status lines per cause. The tightening lands after the fix PRs that retire the affected known-failure cells and flips those cells in the same PR.
    Done when: each #4133 finding is closed or rejected with a written reason on the issue; every failure newly exposed by the tightening is a strict known-failure cell with an owning issue; the M-GATE machine and the family oracles are green on PR and nightly.
    Out of scope: product fixes for newly exposed failures (each gets its own issue and record); oracle changes outside the GATE machine and tests/lifecycle/oracles.py.
    Review contact: Daniel Meppiel (@danielmeppiel)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/testingstatus/acceptedtype/test

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions