Repository navigation
fix(tests): restore MCP and update-plan CI contracts - #3343
Conversation
Preserve selected-empty MCP targets while proving failed writes create no durable ownership or hashes. Cover resolved content hashes in the pure update-plan seam and remap only the nine historically equivalent survivor IDs after actual mutation execution. Fixes #3342 Co-authored-by: Copilot App <[email protected]> Copilot-Session: 067b35fc-52fb-4db4-b316-c606d23b4b34
Docs sync advisoryVerdict: no_change * Pages affected: 0 additional * LLM calls: 1 attempted / 15 * Took: bounded L0 path check All changed paths are tests or documentation and match the index's no-impact paths; no user-facing source, CLI, schema or API changes. The development guide already includes the related mutation-seam advice. The delegated classifier could not access the repository. The orchestrator completed and schema-validated the deterministic L0 path check directly; no independent panel result is claimed. AI-generated advisory; maintainer judgment remains authoritative. |
There was a problem hiding this comment.
🔵 Needs a closer look
The nine survivor-ID remappings need independent historical/current mutation-diff verification before approval.
No open issues 🎉
What changed in this PR
This PR addresses the bounded CI test-contract repairs in #3342 without changing production behavior or CI thresholds. It does not resolve the separate deployment-convergence failures or establish full release readiness.
Changes:
- Correct the failed MCP-write expectation and verify that no ownership or hashes persist.
- Add five update-plan content-hash scenarios with complete plan-entry assertions.
- Remap nine accepted mutation survivor IDs and document semantic comparison requirements.
| File | Description |
|---|---|
tests/unit/install/test_plan.py |
Cover content-hash effects on plan actions and returned state. |
tests/mutation/baseline.json |
Replace nine historical survivor IDs with their reported equivalents. |
tests/integration/test_mcp_install_flow.py |
Verify selected-empty runtime state and zero durable ownership after write failure. |
docs/src/content/docs/contributing/development-guide.md |
Explain survivor-ID comparison and pilot test coverage placement. |
Review effort: Balanced
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 067b35fc-52fb-4db4-b316-c606d23b4b34
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 067b35fc-52fb-4db4-b316-c606d23b4b34
CI recovery qualificationExact head
The earlier Ready for the exclusive Merge Master's fresh identity and capability checks. Only #3342 is a closing reference. This is not full-main or release-readiness evidence: #3344 remains separate, and no release, deployment or full validation dispatch occurred. Merge Master delivery assessment:
|
Compose landed #3343 without changing receipt production, guards or tests. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 13c28cd3-d648-498c-97d8-95dd47e91145
Description
TL;DR
Correct the MCP failed-write test's selected-empty runtime expectation and prove zero durable ownership/hashes. Add five content-hash scenarios to the pure update-plan seam, killing nine genuine surviving mutations. Remap only nine historically equivalent survivor IDs after actual execution; production behavior and CI thresholds are unchanged.
Important
Current head
691f22772c0a68b4719dbac82a3e2c8e563797a6includes the actual public #3347 scheduling landingcdecf44bfc29d6f1bb3926021081f565d30e1ba1. Fresh local qualification, the hosted CI workflow and required gate passed. Earlier7246CI remains cancelled, not retrospectively green. Receipt repairs remain with #3344. No release, tag, version bump, package publication, deployment or full dispatch occurred.Problem (WHY)
{}expectation. Runtime keys preserve selection; set members alone represent owned servers.Approach (WHAT)
Implementation (HOW)
tests/integration/test_mcp_install_flow.pytests/unit/install/test_plan.pytests/mutation/baseline.jsondocs/src/content/docs/contributing/development-guide.mdDiagrams
Dashed nodes are strengthened test obligations; production flow is unchanged. This unchanged diagram was validated with
mmdc.flowchart LR subgraph MCP["MCP failed-write contract"] A["Adapter returns false"] --> B["Selected target with zero names"] B --> C["update_lockfile filters empty targets"] C --> D["Zero durable ownership and hashes"] end subgraph Plan["Update-plan contract"] E["Resolved hash with fixed ref and commit"] --> F["Five action and hash cases"] F --> G["Nine genuine mutants killed"] G --> H["Nine historical survivor IDs remapped"] end classDef new stroke-dasharray: 5 5; class D,F,G new;Trade-offs
Benefits
Issue and approved scope
Issue: #3342
Human scope-approval comment: No public approval comment is claimed. The responsible human explicitly authorized these bounded CI fixes and waived the issue/public-record prerequisite for this task: "you do it, and do not mandate for these fixes to require an issue and approval, it's not needed. get CI working ASAP". Earlier
needs-evidenceremains historical; no governance helper, accepted label or policy was changed.Fixes #3342. Broad daily signal #3341 remains OPEN. The #3339 and I5 implementations are outside this PR.
Type of change
Testing
The full repository/release suite is not claimed green. Public-main composition used both
rerere.enabled=falseandrerere.autoupdate=false, with no conflicts. The four repair files and full-index delta are byte-identical to the original reviewed repair. Heavy execution used one shared validation slot.Validation
Current published-head evidence
691f227on publiccdecf44uv run --frozen --extra dev python -m pytest tests/integration/test_mcp_install_flow.py tests/unit/install/test_plan.py tests/unit/scripts/test_lifecycle_smoke_sharding.py tests/quality -p no:randomly -p no:cacheprovider -q --basetemp=/Users/danielmeppiel/.copilot/session-state/067b35fc-52fb-4db4-b316-c606d23b4b34/files/3343-cdec-qualified-tmp --junitxml=/Users/danielmeppiel/.copilot/session-state/067b35fc-52fb-4db4-b316-c606d23b4b34/files/3343-cdec-qualified.xml691f227; original command and terminal exit receipts retained.verified=true,terminal_evidence_required=true, zero touched application owners.ccb; no unchanged 552-mutant replay or relabelled execution.The sole current-head observer completed0; independent REST verification confirmed 26 terminal qualification checks: 23 success, two neutral, one skipped. Actual CodeQL analyses passed; imposed-native CodeQL remains missing/neutral under the existing human exception, not passed. Docs deployment was skipped. Later metadata-only body/comment checks are separate from this captured engineering snapshot.
The first publication guard failed closed because REST
.base.shaand GraphQLbaseRefOidretained the old2fcomparison snapshot. No push occurred. Independent livebaseRef.target, canonicalrefs/heads/main,ls-remote, qualified ancestry and source-diff guards all agreed oncdec; only then was691f227pushed once. The failed equality remains failed.Historical evidence, not current-head execution
7246affected/sharding/quality selection7246CI 397633025515m0smaximum. Both lifecycle shards/aggregate, Linux, lint and Windows succeeded.7246required gateEXPECTED_CHECKS; this did not make whole CI pass.ccb:uv run --frozen --extra dev pytest -q tests/integration/test_mcp_install_flow.py::TestExcludeRuntime::test_write_failure_is_explicit_and_does_not_claim_ownershipbefore correction{}versus selected-empty map.ccb:uv run --frozen --extra dev pytest -q tests/integration/test_mcp_install_flow.py tests/unit/install/test_plan.py tests/unit/integration/test_mcp_integrator.pyccb:uv run --frozen --extra dev python scripts/run_mutation_pilot.py --output <evidence>/3342-pilot-before-id-refresh.jsonccb:uv run --frozen --extra dev python scripts/run_mutation_pilot.py --report-only --output <evidence>/3342-pilot-mapped.jsonccb:uv run --frozen --extra dev pytest -p no:cacheprovider -q tests/qualityThe old
7246observer ended124 at its 1800s bound; later REST captured 24 terminal: 20 success, two neutral, one skipped, one cancelled. Its contracts/scaling printed passes but shared one exhausted job budget. Neither old observer timeout nor passing summaries replace the cancelled conclusion.Original causal proof and current full lint
Killed hash mutants:
15,16,65,71,92,102,112,128,138. Historical mapping:26->33,45->53,97->114,121->140,149->168,170->189,178->197,180->199,181->200. These are equivalent optional-attribute defaults, unused display-key arguments or unreachable action-sort fallbacks, not newly accepted behaviors.Three external in-memory MCP controls (lost selection, false ownership, false hash) each failed the intended assertion; unmodified code passed afterward. No production mutation remains. Root independently checked the committed baseline and semantic-diff correspondence; this is not a new mutation execution.
All commands below passed again at exact
691f227:Ruff: 2087 formatted files; pylint10.00; AQ001=4/AQ002=12; 1411 test files/zero duplicate groups. YAML I/O, portable relative-path and2100-line guards passed via exact portable Python regex equivalents on macOS. The original substantive review carries only through the identical four-path delta, not through borrowed execution.
Scenario Evidence
tests/integration/test_mcp_install_flow.py::TestExcludeRuntime::test_write_failure_is_explicit_and_does_not_claim_ownershiptests/unit/install/test_plan.py::TestBuildUpdatePlan::test_resolved_content_hash_controls_action_and_is_preservedHow to test
691f227.Spec conformance (OpenAPM v0.1)
If this PR changes behaviour that an OpenAPM v0.1
req-XXXcovers,confirm the three-step ritual in the
development guide:
docs/src/content/docs/specs/openapm-v0.1.mdupdated(new/changed
<a id="req-XXX"></a>anchor + prose + Appendix Crow).
docs/src/content/docs/specs/manifests/openapm-v0.1.requirements.ymlupdated.
@pytest.mark.req("req-XXX")test undertests/spec_conformance/added or extended.CONFORMANCE.{md,json}regenerated viauv run --extra dev python -m tests.spec_conformance.gen_statementand committed.
Co-authored-by: Copilot [email protected]