Skip to content

[TEST] Journey oracle O8 cannot model diagnostic advice (split remediation vs diagnostic) #4571

Description

Proposals are welcome before implementation. For substantive changes, wait
for a responsible human maintainer to approve the scope and identify a review
contact. An automated recommendation, label alone, or silence is not approval.
See Contributing.

Is your feature request related to a problem? Please describe.
Journey oracle O8 (REMEDIATION-TRUTH, invariant I3) parses every "Run 'apm ...'" line printed by a failing step. It runs that command and requires the original command to pass afterwards. That models remediation advice. It cannot model diagnostic advice, which is guidance meant to reveal why something failed rather than to fix it.

For example, journey E04 step 4 installs a missing private repository. APM prints "Run 'apm install --verbose ' to see each probe and credential". That advice is correct, and its --verbose output names the credential source (fixed in #4174). But following it can never make the install pass, because the repository does not exist. tests/integration/test_repository_not_found_lifecycle.py pins exit 1.

So O8 was removed for E04 step 4 (cell J|E04|4|O8 leaves the obligation universe). This issue keeps that coverage loss visible as a model residual.

Describe the solution you'd like
Split O8 into two oracles:

  • O8a remediation: following the advice makes the step pass (today's O8).
  • O8b diagnostic: following the advice keeps the same exit class and prints strictly more information. That information must name what the advice promises, such as the probe list or the credential source.

Mark each advice line in the journey index as remediation or diagnostic. Restore an O8b obligation for E04 step 4, and audit the other journeys for diagnostic advice currently treated as remediation.

Done when: O8b exists in tests/lifecycle/journeys/index.yaml and test_journeys.py, J|E04|4|O8b is a required obligation, and the index comment that cites this issue is removed.

Describe alternatives you've considered

  • Keeping J|E04|4|O8 as a strict known cell. It would fail forever by design, which the known-cell rules reject: a known cell must track a fixable bug.
  • Leaving O8 dropped with no issue. Coverage would then look complete when it is not.

Additional context
Test architecture only; no product change. Epic #4565. Ruling recorded by the Quality & Lifecycle function on 2026-11-21.

Activity

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

    @danielmeppiel
    CollaboratorAuthor

    Decision: approve
    Area: project
    Scope: Test-architecture change only. Split journey oracle O8 into O8a (remediation: following the printed advice makes the step pass, today's O8) and O8b (diagnostic: following the advice keeps the same exit class and prints strictly more information that names what the advice promises). Mark each advice line in tests/lifecycle/journeys/index.yaml as remediation or diagnostic, implement O8b in tests/lifecycle/journeys/test_journeys.py, restore an O8b obligation for journey E04 step 4, and audit the other journeys for diagnostic advice currently modelled as remediation. Starts after #4584 (which drops J|E04|4|O8 and adds the residual comment) merges.
    Done when: O8b exists in index.yaml and test_journeys.py; J|E04|4|O8b is a required obligation and passes; the index comment citing #4571 is removed; the generated obligation snapshot and the known-cell gates in tests/quality are regenerated and green.
    Out of scope: any change to apm CLI output or behaviour, including advice wording; new known-failing cells; changes to oracles other than O8.
    Review contact: Daniel Meppiel (@danielmeppiel)

  3. added
    status/accepted
    on Nov 21, 2026
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