Skip to content

test(lifecycle): I9 compares a [!] warning across indentation - #4384

Merged
Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
danielmeppiel-t1-i9-warning-across-indent
Nov 21, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
danielmeppiel-t1-i9-warning-across-indent

Conversation

@danielmeppiel

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

Copy link
Copy Markdown
Collaborator

Refs #4113, #4299

Why

The I9 duplicate check (_noise_violations in tests/utils/lifecycle_evidence.py) compared indented status lines only within their package block. The #4299 defect prints [!] Parked MCP server ...: denied once at top level and again indented inside a package block, and that repeat slipped past I9.

Change

An indented [!] warning is now keyed globally, the same as a top-level one, so the same warning at any indentation counts as one repeat. [+] package lines, [i]/[*]/[>] status lines and tree lines keep their per-block comparison, because per-package blocks legitimately repeat them.

Coordination with #4217

The existing #4299 strict cell (install-frozen-parked-mcp-notice-per-phase, message Parked MCP server .*: denied) now owns the violation this change surfaces. #4255 (H2b) is the product fix for #4299 and removes that cell. Landing in either order is consistent.

Steward pre-approval (A-C)

  • Node-set diff vs main: none removed; one new parametrize case in test_output_oracle_rejects_each_output_law_violation.
  • Oracle: tightens I9 only. 0 cells added or removed; 0 obligation changes.

Validation

  • pytest tests/unit/scripts/test_lifecycle_evidence.py: 209 passed.
  • ruff check and format: clean.
  • Integration-wide effect (other [!] warnings repeated across blocks) is left to CI. Any new hit is a product duplicate and gets a strict cell plus an issue, or a fix.

Update

Cells (latest push): #4299 keeps its original park reasons (denied, unapproved transitive), matched at any indentation. A separate strict cell install-frozen-parked-executables-notice-twice (Refs #4422) owns the 'executables not approved' repeat that the cross-indentation compare surfaced in four install --frozen runs. Both are scoped to install --frozen.

The #4422 cell is removed by whichever of #4384/#4440 folds second (the integrator drops it at fold time).

Rebase onto v0.37.0 (P3, rule S15)

Rebased onto main as one commit, 0a1e1645. It keeps the original I9 change and its unit case. The merge commit and the four follow-up commits that only edited strict cells are dropped.

  • Both strict cells are gone: install-frozen-parked-mcp-notice-per-phase (apm install --frozen prints the parked MCP server notice once per phase #4299) and install-frozen-parked-executables-notice-twice (install --frozen repeats the parked notice for packages with unapproved executables #4422). Both fixes are on main, where KNOWN_OUTPUT_CELLS is empty. With the tightened I9, test_frozen_parked_executables_notice_lifecycle.py and test_frozen_remote_plugin_lifecycle.py pass with no cell, which confirms both fixes hold.
  • Local: tests/unit/scripts/test_lifecycle_evidence.py, all of tests/quality, both lifecycle files above and the full owner-rule mutation file: 1910 passed, 33 skipped. Ruff, format and the architecture linter are clean.
  • The author email was reset to the numeric noreply form so the commit can be signed. The original Co-authored-by trailer is kept.
  • CI green at 0a1e1645 (32 pass, 10 skipping), including Integration and Lifecycle Smoke, which was this PR's landing condition.

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 were identified for the cross-indentation duplicate-warning check and its added regression case.

No open issues 🎉

What changed in this PR

This PR tightens the lifecycle output oracle's I9 duplicate check to catch identical warnings printed at different indentation levels, covering the pattern reported in #4299.

Changes:

  • Compare indented [!] warnings globally while preserving per-block handling for other status and tree lines.
  • Add a regression case for a warning repeated at top level and inside a package block.
File Description
tests/​utils/​lifecycle_evidence.py Keys indented warnings globally to detect cross-indentation duplicates.
tests/​unit/​scripts/​test_lifecycle_evidence.py Adds a regression case for the repeated parked-server warning.

Review effort: Balanced

…shape)

A warning means the same thing top-level or inside a package block, so the
per-block comparison no longer lets a notice printed top-level and again
indented slip past I9. [+] package lines, [i]/[*]/[>] status and tree lines
keep their per-block comparison.

Co-authored-by: Copilot App <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@danielmeppiel
Daniel Meppiel (danielmeppiel) force-pushed the danielmeppiel-t1-i9-warning-across-indent branch from 464346a to 0a1e164 Compare November 21, 2026 08:39
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 24e6d2e into main Nov 21, 2026
43 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-t1-i9-warning-across-indent branch November 21, 2026 09:01
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