Skip to content

test(taxonomy): classify 356 unclassified test modules (#4552 item 3, partial) - #4695

Merged
Daniel Meppiel (danielmeppiel) merged 7 commits into
mainfrom
danielmeppiel-4552-item3-markers
Nov 22, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 7 commits into
mainfrom
danielmeppiel-4552-item3-markers

Conversation

@danielmeppiel

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

Copy link
Copy Markdown
Collaborator

Description

TL;DR

This PR does part of #4552 item 3. It adds one module-level behavioural marker to 203 unclassified test modules, choosing whichever of the pyproject.toml:201-203 definitions fits each module's real execution boundary. unclassified_modules shrinks 558 -> 355. It changes tests only: one pytestmark line per module, the baseline, and one contract expectation (tests/unit/test_ado_live_workflow_contract.py pins the exact marks of test_ado_e2e, which now include e2e).

Item 3 partial; residual split. 349 modules stay unclassified (listed below). The flip that makes classification required moves to a split follow-up issue. The 6 modules that #4687 deletes are left untouched.

Review fix (70c1c04)

The first pass marked every tests/unit module unit by directory alone. Review (thanks) showed that several of them use CliRunner or the filesystem, which the unit definition excludes. A packaged-runner module had also been marked component. Every newly classified module was re-checked against the definitions. The 126 modules that fit no marker without growing a ratchet got their unclassified allowance back.

Second review fix (c0bc1b4)

A second review found boundary-ambiguous cases, so a stricter rule now applies: when in doubt, the module returns to unclassified.

  • 22 component modules that spawn a process (python -m apm_cli.cli, git) were reverted, since component means in-process.
  • 1 e2e module with a test that never runs the installed CLI was reverted.
  • 3 unit modules that touch files or paths were reverted.

How each module was classified

Marker Rule (pyproject.toml) Check used Modules
unit pure logic, no filesystem, no CLI no CliRunner, no process spawn, no file or path access at all 2
component in-process, touches a filesystem or one command boundary in-process CliRunner/filesystem use, no process spawn, and every test asserts output, exit code or durable state (AQ003 stays at its ceiling) 64
e2e real installed CLI every test function reaches the installed-CLI driver (directly, via a fixture or a module helper), no CliRunner, no in-process owner patches (AQ006 stays 0) 137

The checks are the gate's own helpers in scripts/test_static_facts.py (drives_installed_cli, uses_cli_runner, owner_patches, asserts_observable_outcome) and spawns_processes from tests/quality/taxonomy_inventory_plugin.py. No CI lane selects on unit, component or e2e, so no test changes lane.

Why 349 stay unclassified

  • Filesystem or CLI with return-value-only assertions. These modules touch the filesystem or a CLI, so unit is wrong for them. Their tests assert return values only, so component would raise the AQ003 ceiling. The honest fix is an assertion rewrite (item 6) or a split.
  • Packaged-runner drivers. Modules that drive the binary through the packaged-sample runner (for example tests/integration/test_global_install_e2e.py) are invisible to the AQ006 detector, so e2e would add an AQ006 hit.
  • Return-value-only modules under tests/integration. For these, unit would grow misplaced_modules and component would grow AQ003.

The P3 lead ruled not to move modules this late in 0.38.

Residual: 349 modules, by path
tests/fixtures/policy/test_fixtures_load.py
tests/integration/marketplace/test_build_integration.py
tests/integration/marketplace/test_check_integration.py
tests/integration/marketplace/test_init_integration.py
tests/integration/marketplace/test_name_sanitisation_e2e.py
tests/integration/marketplace/test_pack_ux_e2e.py
tests/integration/policy/test_require_pinned_constraint_e2e.py
tests/integration/test_ado_bearer_e2e.py
tests/integration/test_ado_marketplace_e2e.py
tests/integration/test_ado_policy_signin_redirect_lifecycle.py
tests/integration/test_ado_preflight_bearer_fallback_e2e.py
tests/integration/test_ado_ref_resolution_fallback.py
tests/integration/test_anonymous_https_git_suffix_e2e.py
tests/integration/test_apm_dependencies.py
tests/integration/test_apm_lifecycle_runner_contract.py
tests/integration/test_architecture_cache_identity_linter.py
tests/integration/test_architecture_concurrency_guards.py
tests/integration/test_architecture_contract_guards.py
tests/integration/test_architecture_exemption_policies.py
tests/integration/test_architecture_hash_visible_lf_writes.py
tests/integration/test_architecture_intent_guards.py
tests/integration/test_architecture_io_guards.py
tests/integration/test_architecture_linter_entrypoint.py
tests/integration/test_architecture_mutation_guards.py
tests/integration/test_architecture_outcome_guards.py
tests/integration/test_architecture_package_format_precedence.py
tests/integration/test_artifactory_install_e2e.py
tests/integration/test_artifactory_probe_pipeline_e2e.py
tests/integration/test_audit_coverage.py
tests/integration/test_audit_root_local_hook_replay_e2e.py
tests/integration/test_audit_scan_hermetic.py
tests/integration/test_audit_silent_skip_e2e.py
tests/integration/test_audit_user_collision_classification_lifecycle.py
tests/integration/test_auth_resolver.py
tests/integration/test_auto_install_e2e.py
tests/integration/test_bare_cache_integration.py
tests/integration/test_bin_canvas_deny_diagnostics_lifecycle.py
tests/integration/test_cache_coverage.py
tests/integration/test_cache_lockfile_parity.py
tests/integration/test_canvas_integration.py
tests/integration/test_claude_mcp_schema_fidelity.py
tests/integration/test_cli_docs_contract.py
tests/integration/test_command_integrator_hermetic.py
tests/integration/test_commands_auth_flow.py
tests/integration/test_commands_config_coverage.py
tests/integration/test_commands_mcp_flow.py
tests/integration/test_compilation_coverage.py
tests/integration/test_compile_constitution_injection.py
tests/integration/test_compile_placement_parity_e2e.py
tests/integration/test_context_optimizer_placement.py
tests/integration/test_copilot_app_targets_coverage.py
tests/integration/test_copilot_app_ws_fallback.py
tests/integration/test_coverage_gaps_phase4w2.py
tests/integration/test_coverage_integration.py
tests/integration/test_coverage_phase4.py
tests/integration/test_credential_fill_disambiguation.py
tests/integration/test_deep_coverage_adapters.py
tests/integration/test_deep_coverage_deps_policy.py
tests/integration/test_default_port_normalisation_e2e.py
tests/integration/test_dep_url_parsing_e2e.py
tests/integration/test_dependency_spelling_equivalence_lifecycle.py
tests/integration/test_deployed_files_gitignore_integration.py
tests/integration/test_deps_cli_coverage.py
tests/integration/test_deps_coverage.py
tests/integration/test_deps_models_validation.py
tests/integration/test_deps_monorepo_parent_placement.py
tests/integration/test_deps_registry_coverage.py
tests/integration/test_deps_resolver_resolution.py
tests/integration/test_download_copilot_end_to_end.py
tests/integration/test_download_strategies_phase3w5.py
tests/integration/test_drift_check.py
tests/integration/test_dropped_direct_dependency_transitive_lifecycle.py
tests/integration/test_executables_deny_identity_lifecycle.py
tests/integration/test_executables_gate_integration.py
tests/integration/test_export_patch_e2e.py
tests/integration/test_file_primitive_receipt_lifecycle.py
tests/integration/test_generic_git_url_install.py
tests/integration/test_generic_https_credential_env_e2e.py
tests/integration/test_ghe_marketplace_install_e2e.py
tests/integration/test_ghes_fqdn_subpath_e2e.py
tests/integration/test_git_cache_hermetic.py
tests/integration/test_git_reference_resolver_resolution.py
tests/integration/test_git_semver_install_e2e.py
tests/integration/test_git_semver_prerelease_chain_lifecycle.py
tests/integration/test_github_downloader_validation_flow.py
tests/integration/test_global_install_e2e.py
tests/integration/test_grok_bot_target.py
tests/integration/test_hermes_target.py
tests/integration/test_hook_integrator_copilot_casing_e2e.py
tests/integration/test_install_audit_policy_floor.py
tests/integration/test_install_audit_replay_matrix_lifecycle.py
tests/integration/test_install_marketplace_phase4w3.py
tests/integration/test_install_services_orchestration.py
tests/integration/test_install_silent_skip_e2e.py
tests/integration/test_install_sources_classification.py
tests/integration/test_install_subdir_dedup_e2e.py
tests/integration/test_install_validation_rules.py
tests/integration/test_install_with_links.py
tests/integration/test_integration_runtime_coverage.py
tests/integration/test_integrators_end_to_end.py
tests/integration/test_integrators_hooks_execution.py
tests/integration/test_integrators_validation_rules.py
tests/integration/test_intellij_target.py
tests/integration/test_isolated_apm_environment_contract.py
tests/integration/test_lifecycle_deny_all_chain_lifecycle.py
tests/integration/test_lifecycle_state_snapshot_contract.py
tests/integration/test_lifecycle_workspace_lock.py
tests/integration/test_local_bundle_compile_only_targets_lifecycle.py
tests/integration/test_local_bundle_hooks_lifecycle.py
tests/integration/test_local_bundle_mcp_lifecycle.py
tests/integration/test_local_git_repository_factory_contract.py
tests/integration/test_local_package_factory_contract.py
tests/integration/test_lock_derived_expected_state_lifecycle.py
tests/integration/test_lockfile_transitive_replay_e2e.py
tests/integration/test_marker_registry_sync.py
tests/integration/test_marketplace_adapters_coverage.py
tests/integration/test_marketplace_add_generic_git.py
tests/integration/test_marketplace_add_local.py
tests/integration/test_marketplace_ado_rest.py
tests/integration/test_marketplace_builder_hermetic.py
tests/integration/test_marketplace_e2e.py
tests/integration/test_marketplace_e2e_surface.py
tests/integration/test_marketplace_install_local.py
tests/integration/test_marketplace_metadata_origin_lifecycle.py
tests/integration/test_marketplace_plugin_integration.py
tests/integration/test_mcp_coverage.py
tests/integration/test_mcp_deliberate_omission_audit_lifecycle.py
tests/integration/test_mcp_dependency_targets_lifecycle.py
tests/integration/test_mcp_install_flow.py
tests/integration/test_mcp_integrator_characterisation.py
tests/integration/test_mcp_integrator_install.py
tests/integration/test_mcp_integrator_install_flow.py
tests/integration/test_mcp_portable_approval_lifecycle.py
tests/integration/test_mcp_registry_e2e.py
tests/integration/test_mcp_slashed_server_cleanup_lifecycle.py
tests/integration/test_multi_runtime_integration.py
tests/integration/test_nested_package_declaration_lifecycle.py
tests/integration/test_openclaw_target.py
tests/integration/test_outdated_coverage.py
tests/integration/test_output_formatters_coverage.py
tests/integration/test_pack_install_flow.py
tests/integration/test_package_identity_case_install.py
tests/integration/test_package_mcp_executables_gate_lifecycle.py
tests/integration/test_package_validator_rules.py
tests/integration/test_pinned_hook_policy_deny_lifecycle.py
tests/integration/test_plugin_bin_trust_posture.py
tests/integration/test_plugin_e2e.py
tests/integration/test_policy_cache_transitive_lifecycle.py
tests/integration/test_policy_coverage.py
tests/integration/test_policy_discovery_e2e.py
tests/integration/test_registry.py
tests/integration/test_registry_client_integration.py
tests/integration/test_registry_credential_origin_lifecycle.py
tests/integration/test_release_homebrew_update.py
tests/integration/test_remaining_modules_coverage.py
tests/integration/test_removal_reintegration_executables_lifecycle.py
tests/integration/test_runnable_prompts_integration.py
tests/integration/test_runner_reference_resolution.py
tests/integration/test_runtime_smoke.py
tests/integration/test_same_repo_two_hosts_lifecycle.py
tests/integration/test_scenario_rows_contract.py
tests/integration/test_script_runner_execution.py
tests/integration/test_skill_integrator_hermetic.py
tests/integration/test_target_resolution_e2e.py
tests/integration/test_targeted_install_shared_transitive_lifecycle.py
tests/integration/test_targeted_install_unselected_local_edit_lifecycle.py
tests/integration/test_tiered_resolver_integration.py
tests/integration/test_tiered_resolver_seed_e2e.py
tests/integration/test_tls_child_runtime.py
tests/integration/test_tls_custom_ca.py
tests/integration/test_tls_frozen_hook.py
tests/integration/test_tls_r2_verify.py
tests/integration/test_tls_r3_verify.py
tests/integration/test_tls_wheel_content.py
tests/integration/test_transport_selection_integration.py
tests/integration/test_trust_integrity_consistency_lifecycle.py
tests/integration/test_trusted_executable_discovery.py
tests/integration/test_uninstall_engine_coverage.py
tests/integration/test_uninstall_policy_pack_flow.py
tests/integration/test_update_dev_reachability_lifecycle.py
tests/integration/test_update_transitive_mcp_trust_lifecycle.py
tests/integration/test_user_scope_bundle_rows_lifecycle.py
tests/integration/test_utils_coverage.py
tests/integration/test_utils_logic_phase4w3.py
tests/integration/test_validation_rules.py
tests/integration/test_version_notification.py
tests/integration/test_view_coverage.py
tests/integration/test_view_file_provenance_symlinked_cwd_lifecycle.py
tests/integration/test_virtual_package_lifecycle_matrix.py
tests/integration/test_virtual_package_orphan_detection.py
tests/integration/test_vscode_adapter_compatibility.py
tests/integration/test_wave2_adapters_coverage.py
tests/integration/test_wave2_commands_coverage.py
tests/integration/test_wave3_deps_models_coverage.py
tests/integration/test_wave3_integrators_coverage.py
tests/integration/test_wave3_marketplace_coverage.py
tests/integration/test_wave4_adapters_registry_coverage.py
tests/integration/test_wave4_cli_commands_coverage.py
tests/integration/test_wave4_pure_logic_coverage.py
tests/integration/test_wave5_e2e_coverage.py
tests/integration/test_wave6_audit_discovery_coverage.py
tests/integration/test_wave6_formatters_lockfile_coverage.py
tests/integration/test_wave6_init_pack_coverage.py
tests/integration/test_wave6_integrators_coverage.py
tests/integration/test_wave6_validation_uninstall_coverage.py
tests/integration/test_wave7_depref_sources_coverage.py
tests/integration/test_wave7_marketplace_install_coverage.py
tests/integration/test_wave7_policy_registry_coverage.py
tests/integration/test_wave8_codex_download_coverage.py
tests/integration/test_wave8_copilot_resolver_coverage.py
tests/integration/test_wave8_diagnostics_validation_coverage.py
tests/integration/test_windows_installer_launchers.py
tests/integration/test_yml_schema_validation.py
tests/lifecycle/test_core_example.py
tests/perf/test_architecture_linter_scaling.py
tests/quality/test_ci_topology.py
tests/quality/test_lifecycle_bug_ledger.py
tests/quality/test_promise_obligations.py
tests/quality/test_quality_baselines.py
tests/quality/test_test_taxonomy.py
tests/spec_conformance/test_exec_decision_reqs.py
tests/spec_conformance/test_lockfile_reqs.py
tests/unit/adapters/test_hermes_client_adapter.py
tests/unit/bundle/test_tar_windows_absolute_path.py
tests/unit/cache/test_git_cache_sparse.py
tests/unit/commands/test_approve_deny.py
tests/unit/commands/test_install_context.py
tests/unit/core/test_auth_credential_report.py
tests/unit/core/test_error_renderer.py
tests/unit/core/test_experimental.py
tests/unit/core/test_lifecycle_scripts.py
tests/unit/core/test_output_mode.py
tests/unit/core/test_scope.py
tests/unit/core/test_script_runner_execution.py
tests/unit/core/test_target_catalog_owner_invariant.py
tests/unit/deps/test_bare_cache_sparse.py
tests/unit/deps/test_git_auth_env.py
tests/unit/export/test_lazy_import.py
tests/unit/install/phases/test_lockfile_cross_package_reconcile.py
tests/unit/install/phases/test_lockfile_orphan_prune.py
tests/unit/install/phases/test_lockfile_union.py
tests/unit/install/test_architecture_invariants.py
tests/unit/install/test_claude_native_registration.py
tests/unit/install/test_frozen.py
tests/unit/install/test_install_local_bundle.py
tests/unit/install/test_install_safety.py
tests/unit/install/test_install_target_copilot_cowork_e2e.py
tests/unit/install/test_legacy_plugin_compat.py
tests/unit/install/test_lifecycle_trust_gate.py
tests/unit/install/test_local_bundle_hook_trust.py
tests/unit/install/test_lsp_integration.py
tests/unit/install/test_replay_exec_allow_map.py
tests/unit/install/test_require_hashes.py
tests/unit/install/test_services.py
tests/unit/install/test_services_branches.py
tests/unit/install/test_services_hook_scope.py
tests/unit/install/test_services_rendering.py
tests/unit/install/test_skill_path_migration.py
tests/unit/integration/test_agent_integrator.py
tests/unit/integration/test_base_integrator.py
tests/unit/integration/test_canvas_integrator.py
tests/unit/integration/test_cleanup_helper.py
tests/unit/integration/test_cleanup_skill_dirs.py
tests/unit/integration/test_command_integrator.py
tests/unit/integration/test_copilot_app_db.py
tests/unit/integration/test_copilot_app_project.py
tests/unit/integration/test_copilot_app_ws.py
tests/unit/integration/test_copilot_cowork_paths.py
tests/unit/integration/test_data_driven_dispatch.py
tests/unit/integration/test_dep_target_intersection.py
tests/unit/integration/test_deployed_files_manifest.py
tests/unit/integration/test_hook_integrator.py
tests/unit/integration/test_hook_integrator_defect_regression.py
tests/unit/integration/test_instruction_integrator.py
tests/unit/integration/test_kiro_target.py
tests/unit/integration/test_prompt_integrator.py
tests/unit/integration/test_scope_install_uninstall.py
tests/unit/integration/test_skill_integrator.py
tests/unit/integration/test_skill_integrator_cowork.py
tests/unit/integration/test_skill_transformer.py
tests/unit/integration/test_windsurf_uninstall_skills.py
tests/unit/marketplace/test_builder.py
tests/unit/marketplace/test_drift_check.py
tests/unit/marketplace/test_init_template.py
tests/unit/marketplace/test_outputs_map_form.py
tests/unit/marketplace/test_review_fixes.py
tests/unit/marketplace/test_version_pins.py
tests/unit/policy/test_ci_checks.py
tests/unit/scripts/test_architecture_inventory.py
tests/unit/scripts/test_architecture_registry.py
tests/unit/scripts/test_architecture_registry_conflicts.py
tests/unit/scripts/test_architecture_runner.py
tests/unit/scripts/test_check_exact_test_duplicates.py
tests/unit/security/test_resolve_exec_decision.py
tests/unit/test_ado_live_workflow_contract.py
tests/unit/test_agent_plugins.py
tests/unit/test_audit_policy_command.py
tests/unit/test_auth_command.py
tests/unit/test_claude_mcp.py
tests/unit/test_cli_docs_contract.py
tests/unit/test_cli_lazy_dispatch.py
tests/unit/test_cli_sigterm.py
tests/unit/test_codex_adapter_compatibility.py
tests/unit/test_collection_migration_error.py
tests/unit/test_command_logger.py
tests/unit/test_compile_rich_output.py
tests/unit/test_config.py
tests/unit/test_config_command.py
tests/unit/test_content_scanner.py
tests/unit/test_copilot_adapter.py
tests/unit/test_copilot_adapter_compatibility.py
tests/unit/test_cursor_mcp.py
tests/unit/test_deps_update_command.py
tests/unit/test_devcontainer_feature_retired.py
tests/unit/test_enterprise_bootstrap_installers.py
tests/unit/test_exclude.py
tests/unit/test_external_options.py
tests/unit/test_external_scanners.py
tests/unit/test_file_ops.py
tests/unit/test_gemini_mcp.py
tests/unit/test_git_cache_branch_coverage.py
tests/unit/test_global_mcp_scope.py
tests/unit/test_helpers.py
tests/unit/test_init_command.py
tests/unit/test_integration_binary_path_contract.py
tests/unit/test_kiro_mcp.py
tests/unit/test_lifecycle_executor_paths.py
tests/unit/test_lifecycle_timeout_validation.py
tests/unit/test_mcp_client_factory.py
tests/unit/test_mcp_lifecycle_e2e.py
tests/unit/test_mcp_registry_version_display.py
tests/unit/test_packer.py
tests/unit/test_plugin_exporter_compatibility.py
tests/unit/test_reflink.py
tests/unit/test_reflink_filesystem_support.py
tests/unit/test_runtime_manager.py
tests/unit/test_scoped_mcp_server_names.py
tests/unit/test_script_runner.py
tests/unit/test_self_update_config.py
tests/unit/test_skillspector_llm.py
tests/unit/test_thread_safety.py
tests/unit/test_unpack_security.py
tests/unit/test_unpacker.py
tests/unit/test_version.py
tests/unit/test_view_command_cli_surface.py
tests/unit/test_vscode_adapter.py
tests/unit/test_windows_compat_gate_workflow.py
tests/unit/test_windows_installer_archive_fallback.py
tests/unit/test_windows_installer_binary_test.py

Baselines (shrink only)

Ratchet main 1b23a53 this PR
unclassified_modules 558 355
misplaced_modules 38 38
promise_exempt_modules 1743 1743
AQ003 / AQ006 5691 / 9 5691 / 9

No entry is added and no ceiling is raised. No promise ids are added, and no req markers change, so CONFORMANCE is unchanged.

Issue and approved scope

Issue: Refs #4552

Human scope-approval comment: #4552 (comment)

What remains: item 3 is partial and its residual is split. The 349 modules above and the required-classification ratchet flip move to a split issue that Intake is recording. #4687 carries items 1 and 2. Items 4 to 9 are tracked on #4552.

Type of change

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

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Local validation at the PR head:

  • uvx ruff@0.15.12 check and format --check on the changed files: passed.
  • python scripts/check_test_assertions.py: clean (AQ003=5691, AQ006=9, unchanged).
  • python scripts/check_taxonomy_allowances.py --base-ref <main>: allowances did not grow.
  • python -m tests.quality.taxonomy --changed: tm006 clean on all changed modules.
  • CI at bbadb30: all 38 checks pass, including Architecture Ratchet Contracts (test_test_taxonomy.py, test_quality_baselines.py, test_ci_topology.py), both Build & Test shards, the Windows gates and Lifecycle Smoke.

The full suite runs in CI.

Changelog

  • One fragment per section, changelog.d/<pr>.<section>.md, holding
    one line: user-visible effect first, 25 words or fewer, ending with
    (#PR); breaking changes only under upgrade notes; no Highlights; no
    new lines under ## [Unreleased]. See changelog.d/README.md and
    .github/instructions/changelog.instructions.md.
  • N/A -- internal-only change (CI, tests, refactor). The [FEATURE] 0.38 test-corpus hygiene residual from 0.37 #4552 scope record says: no CHANGELOG line.

Spec conformance (OpenAPM v0.1)

If this PR changes behaviour that an OpenAPM v0.1 req-XXX covers,
confirm the three-step ritual in the
development guide:

  • Spec edit: docs/src/content/docs/specs/openapm-v0.1.md updated
    (new/changed <a id="req-XXX"></a> anchor + prose + Appendix C
    row).
  • Manifest edit: docs/src/content/docs/specs/manifests/openapm-v0.1.requirements.yml
    updated.
  • Test edit: a @pytest.mark.req("req-XXX") test under
    tests/spec_conformance/ added or extended.
  • CONFORMANCE.{md,json} regenerated via
    uv run --extra dev python -m tests.spec_conformance.gen_statement
    and committed.
  • N/A -- this PR does not change OpenAPM-observable behaviour.

…t cost

Add one module-level behavioral marker to each unclassified test module
that can carry one without growing any ratchet (#4552 item 3, partial):

- tests/unit modules: unit.
- tests/integration modules whose tests all assert observable outcomes:
  e2e when they drive only the installed CLI, component otherwise.
- tests/quality, tests/spec_conformance, tests/fixtures and tests/perf:
  component or e2e under the same rule, unit when they only assert
  return values of static checks.

unclassified_modules shrinks 558 -> 202. AQ003, AQ006 and
misplaced_modules are unchanged. The 196 return-value-only modules
under tests/integration (and the 6 modules #4687 deletes) stay in the
baseline; the required-classification flip is split to a follow-up.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ract

test_ado_e2e now carries its behavioural marker (e2e) next to live and
requires_ado_pat; the contract still pins the opt-in and PAT gates.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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.

🟡 Changes recommended

New test markers misclassify CLI and filesystem-backed tests as unit tests and an installed-CLI test as integration, prematurely treating classification debt as resolved.

2 open issues
What changed in this PR

This test-only PR partially addresses #4552 item 3 by adding behavioral classifications to 356 test modules. It reduces the unclassified baseline from 558 to 202, leaving the remaining classifications and required-classification enforcement for follow-up work.

Changes:

  • Adds module-level unit, component, or e2e markers while preserving existing scheduling and prerequisite markers.
  • Removes classified modules from the unclassified baseline without changing other allowances.
  • Updates the ADO workflow contract to expect the added e2e marker.
File Description
tests/​unit/​test_windows_installer_binary_test.py Adds unit alongside Windows coverage.
tests/​unit/​test_windows_installer_archive_fallback.py Adds unit alongside Windows coverage.
tests/​unit/​test_windows_compat_gate_workflow.py Adds unit marker.
tests/​unit/​test_vscode_adapter.py Adds unit marker.
tests/​unit/​test_view_command_cli_surface.py Adds unit marker.
tests/​unit/​test_version.py Adds unit marker.
tests/​unit/​test_unpacker.py Adds unit marker.
tests/​unit/​test_unpack_security.py Adds unit marker.
tests/​unit/​test_uninstall_reintegration.py Adds unit marker.
tests/​unit/​test_thread_safety.py Adds unit marker.
tests/​unit/​test_skillspector_llm.py Adds unit marker.
tests/​unit/​test_self_update_config.py Adds unit marker.
tests/​unit/​test_script_runner.py Adds unit marker.
tests/​unit/​test_scoped_mcp_server_names.py Adds unit marker.
tests/​unit/​test_runtime_manager.py Adds unit marker.
tests/​unit/​test_reflink.py Adds unit marker.
tests/​unit/​test_reflink_filesystem_support.py Adds unit marker.
tests/​unit/​test_prune_command.py Adds unit marker.
tests/​unit/​test_plugin_exporter_compatibility.py Adds unit marker.
tests/​unit/​test_packer.py Adds unit marker.
tests/​unit/​test_mcp_registry_version_display.py Adds unit marker.
tests/​unit/​test_mcp_lifecycle_e2e.py Adds unit marker.
tests/​unit/​test_mcp_client_factory.py Adds unit marker.
tests/​unit/​test_lifecycle_timeout_validation.py Adds unit marker.
tests/​unit/​test_lifecycle_executor_paths.py Adds unit marker.
tests/​unit/​test_lifecycle_cli.py Adds unit marker.
tests/​unit/​test_kiro_mcp.py Adds unit marker.
tests/​unit/​test_integration_binary_path_contract.py Adds unit marker.
tests/​unit/​test_init_command.py Adds unit marker.
tests/​unit/​test_helpers.py Adds unit marker.
tests/​unit/​test_global_mcp_scope.py Adds unit marker.
tests/​unit/​test_git_cache_branch_coverage.py Adds unit marker.
tests/​unit/​test_gemini_mcp.py Adds unit marker.
tests/​unit/​test_file_ops.py Adds unit marker.
tests/​unit/​test_external_scanners.py Adds unit marker.
tests/​unit/​test_external_options.py Adds unit marker.
tests/​unit/​test_exclude.py Adds unit marker.
tests/​unit/​test_enterprise_bootstrap_installers.py Adds unit marker.
tests/​unit/​test_devcontainer_feature_retired.py Adds unit marker.
tests/​unit/​test_deps_update_command.py Adds unit marker.
tests/​unit/​test_cursor_mcp.py Adds unit marker.
tests/​unit/​test_copilot_adapter.py Adds unit marker.
tests/​unit/​test_copilot_adapter_compatibility.py Adds unit marker.
tests/​unit/​test_content_scanner.py Adds unit marker.
tests/​unit/​test_console_utils.py Adds unit marker.
tests/​unit/​test_config.py Adds unit marker.
tests/​unit/​test_config_command.py Adds unit marker.
tests/​unit/​test_compile_rich_output.py Adds unit marker.
tests/​unit/​test_command_logger.py Adds unit marker.
tests/​unit/​test_collection_migration_error.py Adds unit marker.
tests/​unit/​test_codex_adapter_compatibility.py Adds unit marker.
tests/​unit/​test_cli_sigterm.py Adds unit, preserving POSIX skip.
tests/​unit/​test_cli_lazy_dispatch.py Adds unit marker.
tests/​unit/​test_cli_docs_contract.py Adds unit marker.
tests/​unit/​test_claude_mcp.py Adds unit marker.
tests/​unit/​test_auth_command.py Adds unit marker.
tests/​unit/​test_audit_policy_command.py Adds unit marker.
tests/​unit/​test_agent_plugins.py Adds unit marker.
tests/​unit/​test_ado_live_workflow_contract.py Adds unit; expects ADO e2e marker.
tests/​unit/​security/​test_resolve_exec_decision.py Adds unit marker.
tests/​unit/​scripts/​test_check_exact_test_duplicates.py Adds unit marker.
tests/​unit/​scripts/​test_architecture_runner.py Adds unit marker.
tests/​unit/​scripts/​test_architecture_registry.py Adds unit marker.
tests/​unit/​scripts/​test_architecture_registry_conflicts.py Adds unit marker.
tests/​unit/​scripts/​test_architecture_inventory.py Adds unit marker.
tests/​unit/​policy/​test_help_consistency.py Adds unit marker.
tests/​unit/​policy/​test_ci_checks.py Adds unit marker.
tests/​unit/​marketplace/​test_version_pins.py Adds unit marker.
tests/​unit/​marketplace/​test_review_fixes.py Adds unit marker.
tests/​unit/​marketplace/​test_outputs_map_form.py Adds unit marker.
tests/​unit/​marketplace/​test_init_template.py Adds unit marker.
tests/​unit/​marketplace/​test_drift_check.py Adds unit marker.
tests/​unit/​marketplace/​test_builder.py Adds unit marker.
tests/​unit/​integration/​test_windsurf_uninstall_skills.py Adds unit marker.
tests/​unit/​integration/​test_skill_transformer.py Adds unit marker.
tests/​unit/​integration/​test_skill_integrator.py Adds unit marker.
tests/​unit/​integration/​test_skill_integrator_cowork.py Adds unit marker.
tests/​unit/​integration/​test_scope_install_uninstall.py Adds unit marker.
tests/​unit/​integration/​test_prompt_integrator.py Adds unit marker.
tests/​unit/​integration/​test_kiro_target.py Adds unit marker.
tests/​unit/​integration/​test_instruction_integrator.py Adds unit marker.
tests/​unit/​integration/​test_hook_target_selection.py Adds unit marker.
tests/​unit/​integration/​test_hook_integrator.py Adds unit marker.
tests/​unit/​integration/​test_hook_integrator_defect_regression.py Adds unit marker.
tests/​unit/​integration/​test_deployed_files_manifest.py Adds unit marker.
tests/​unit/​integration/​test_dep_target_intersection.py Adds unit marker.
tests/​unit/​integration/​test_data_driven_dispatch.py Adds unit marker.
tests/​unit/​integration/​test_copilot_cowork_paths.py Adds unit marker.
tests/​unit/​integration/​test_copilot_app_ws.py Adds unit marker.
tests/​unit/​integration/​test_copilot_app_project.py Adds unit marker.
tests/​unit/​integration/​test_copilot_app_db.py Adds unit marker.
tests/​unit/​integration/​test_command_integrator.py Adds unit marker.
tests/​unit/​integration/​test_cleanup_skill_dirs.py Adds unit marker.
tests/​unit/​integration/​test_cleanup_helper.py Adds unit marker.
tests/​unit/​integration/​test_canvas_integrator.py Adds unit marker.
tests/​unit/​integration/​test_base_integrator.py Adds unit marker.
tests/​unit/​integration/​test_agent_integrator.py Adds unit marker.
tests/​unit/​install/​test_target_contraction_logging.py Adds unit marker.
tests/​unit/​install/​test_skill_path_migration.py Adds unit marker.
tests/​unit/​install/​test_services.py Adds unit marker.
tests/​unit/​install/​test_services_rendering.py Adds unit marker.
tests/​unit/​install/​test_services_hook_scope.py Adds unit marker.
tests/​unit/​install/​test_services_branches.py Adds unit marker.
tests/​unit/​install/​test_require_hashes.py Adds unit marker.
tests/​unit/​install/​test_replay_exec_allow_map.py Adds unit marker.
tests/​unit/​install/​test_lsp_integration.py Adds unit marker.
tests/​unit/​install/​test_local_bundle_hook_trust.py Adds unit marker.
tests/​unit/​install/​test_lifecycle_trust_gate.py Adds unit marker.
tests/​unit/​install/​test_legacy_plugin_compat.py Adds unit marker.
tests/​unit/​install/​test_install_target_copilot_cowork_e2e.py Adds unit marker.
tests/​unit/​install/​test_install_safety.py Adds unit marker.
tests/​unit/​install/​test_install_local_bundle.py Adds unit, preserving readiness skip.
tests/​unit/​install/​test_frozen.py Adds unit marker.
tests/​unit/​install/​test_exec_decision_equivalence.py Adds unit marker.
tests/​unit/​install/​test_claude_native_registration.py Adds unit marker.
tests/​unit/​install/​test_architecture_invariants.py Adds unit marker.
tests/​unit/​install/​phases/​test_lockfile_union.py Adds unit marker.
tests/​unit/​install/​phases/​test_lockfile_orphan_prune.py Adds unit marker.
tests/​unit/​install/​phases/​test_lockfile_cross_package_reconcile.py Adds unit marker.
tests/​unit/​export/​test_lazy_import.py Adds unit marker.
tests/​unit/​deps/​test_git_auth_env.py Adds unit marker.
tests/​unit/​deps/​test_bare_cache_sparse.py Adds unit marker.
tests/​unit/​core/​test_token_manager_lifecycle.py Adds unit marker.
tests/​unit/​core/​test_target_catalog_owner_invariant.py Adds unit marker.
tests/​unit/​core/​test_script_runner_execution.py Adds unit marker.
tests/​unit/​core/​test_scope.py Adds unit marker.
tests/​unit/​core/​test_output_mode.py Adds unit marker.
tests/​unit/​core/​test_lifecycle_scripts.py Adds unit marker.
tests/​unit/​core/​test_experimental.py Adds unit marker.
tests/​unit/​core/​test_error_renderer.py Adds unit marker.
tests/​unit/​core/​test_auth_credential_report.py Adds unit, preserving POSIX skip.
tests/​unit/​commands/​test_install_context.py Adds unit marker.
tests/​unit/​commands/​test_experimental_command.py Adds unit marker.
tests/​unit/​commands/​test_approve_deny.py Adds unit marker.
tests/​unit/​cache/​test_git_cache_sparse.py Adds unit marker.
tests/​unit/​bundle/​test_tar_windows_absolute_path.py Adds unit marker.
tests/​unit/​adapters/​test_hermes_client_adapter.py Adds unit marker.
tests/​spec_conformance/​test_exec_decision_reqs.py Adds unit; preserves requirement markers.
tests/​spec_conformance/​test_deletion_evidence_reqs.py Adds component; preserves requirement markers.
tests/​quality/​test_test_taxonomy.py Adds unit marker.
tests/​quality/​test_taxonomy_baseline.json Removes 356 unclassified allowances.
tests/​quality/​test_quality_baselines.py Adds component marker.
tests/​quality/​test_lifecycle_bug_ledger.py Adds unit marker.
tests/​quality/​test_ci_topology.py Adds unit marker.
tests/​perf/​test_architecture_linter_scaling.py Adds unit, preserving opt-in gates.
tests/​integration/​test_windows_installer_launchers.py Adds component marker.
tests/​integration/​test_wave6_outdated_view_coverage.py Adds component marker.
tests/​integration/​test_wave6_deps_cli_coverage.py Adds component marker.
tests/​integration/​test_vscode_adapter_phase3w4.py Adds component marker.
tests/​integration/​test_virtual_package_lifecycle_matrix.py Adds component marker.
tests/​integration/​test_user_scope_file_provenance_lifecycle.py Adds e2e marker.
tests/​integration/​test_user_hook_home_migration_lifecycle.py Adds e2e marker.
tests/​integration/​test_user_authored_name_collision_lifecycle.py Adds e2e marker.
tests/​integration/​test_update_receipt_less_lifecycle.py Adds e2e marker.
tests/​integration/​test_update_mcp_lsp_prune.py Adds component marker.
tests/​integration/​test_update_e2e.py Adds e2e, preserving credential skip.
tests/​integration/​test_unquoted_lockfile_version_lifecycle.py Adds e2e marker.
tests/​integration/​test_unpack_destination_containment_lifecycle.py Adds e2e marker.
tests/​integration/​test_uninstall_refusal_lockfile_truth_lifecycle.py Adds e2e marker.
tests/​integration/​test_uninstall_multi_e2e.py Adds e2e marker.
tests/​integration/​test_uninstall_marketplace.py Adds e2e marker.
tests/​integration/​test_uninstall_dry_run_e2e.py Adds e2e marker.
tests/​integration/​test_unicode_space_paths_lifecycle.py Adds e2e marker.
tests/​integration/​test_transitive_mcp_audit_e2e.py Adds e2e marker.
tests/​integration/​test_transitive_chain_e2e.py Adds e2e marker.
tests/​integration/​test_tls_trust_hint_lifecycle.py Adds e2e marker.
tests/​integration/​test_target_resolution_e2e.py Adds component marker.
tests/​integration/​test_target_policy_gate_parity_lifecycle.py Adds e2e marker.
tests/​integration/​test_target_manifest_upgrade_lifecycle.py Adds e2e marker.
tests/​integration/​test_target_instruction_contraction_e2e.py Adds e2e marker.
tests/​integration/​test_target_error_rendering_lifecycle.py Adds e2e marker.
tests/​integration/​test_target_declaration_install_lifecycle.py Adds e2e marker.
tests/​integration/​test_target_declaration_adjacent_commands_lifecycle.py Adds e2e marker.
tests/​integration/​test_symlinked_mcp_config_lifecycle.py Adds e2e marker.
tests/​integration/​test_symlinked_hook_settings_lifecycle.py Adds e2e marker.
tests/​integration/​test_symlinked_deploy_directory_lifecycle.py Adds e2e marker.
tests/​integration/​test_stale_cleanup_hash_authority_lifecycle.py Adds e2e marker.
tests/​integration/​test_ssh_cache_transport_lifecycle.py Adds e2e marker.
tests/​integration/​test_skill_integration.py Adds e2e marker.
tests/​integration/​test_skill_install.py Adds e2e marker.
tests/​integration/​test_skill_cleanup_containment_lifecycle.py Adds e2e marker.
tests/​integration/​test_skill_bundle_live.py Adds e2e, preserving live gates.
tests/​integration/​test_shared_root_skill_contraction_e2e.py Adds e2e marker.
tests/​integration/​test_selective_install_mcp.py Adds component marker.
tests/​integration/​test_removed_dependency_user_skill_file_lifecycle.py Adds e2e marker.
tests/​integration/​test_release_homebrew_update.py Adds component marker.
tests/​integration/​test_registry_redirect_origin_lifecycle.py Adds e2e marker.
tests/​integration/​test_registry_redirect_location_hardening_lifecycle.py Adds e2e marker.
tests/​integration/​test_registry_only_chain_lifecycle.py Adds e2e marker.
tests/​integration/​test_prune_hook_reconciliation_e2e.py Adds component marker.
tests/​integration/​test_profile_uninstall_runtime_scope_lifecycle.py Adds e2e marker.
tests/​integration/​test_producer_journey.py Adds component marker.
tests/​integration/​test_pre_compile_chain_lifecycle.py Adds e2e marker.
tests/​integration/​test_policy_url_chain_parity.py Adds component marker.
tests/​integration/​test_policy_tighten_chain_lifecycle.py Adds e2e marker.
tests/​integration/​test_policy_refusal_stderr_lifecycle.py Adds e2e marker.
tests/​integration/​test_policy_install_e2e.py Adds component marker.
tests/​integration/​test_plugin_skill_subset_pack_e2e.py Adds e2e marker.
tests/​integration/​test_plugin_bin_deploy_hardening.py Adds component, preserving POSIX skip.
tests/​integration/​test_pack_unpack_e2e.py Adds e2e marker.
tests/​integration/​test_pack_unified.py Adds component marker.
tests/​integration/​test_pack_root_skills_e2e.py Adds e2e marker.
tests/​integration/​test_pack_bundle_roundtrip_lifecycle.py Adds e2e marker.
tests/​integration/​test_pack_apm_provenance_e2e.py Adds e2e marker.
tests/​integration/​test_multitarget_edit_audit_chain_lifecycle.py Adds e2e marker.
tests/​integration/​test_monorepo_subdirectory_switch_lifecycle.py Adds e2e marker.
tests/​integration/​test_mixed_deps.py Adds e2e marker.
tests/​integration/​test_mcp_transport_policy_lifecycle.py Adds e2e marker.
tests/​integration/​test_mcp_targets_gating_e2e.py Adds component marker.
tests/​integration/​test_mcp_stdio_env_resolution_e2e.py Adds e2e, preserving serialization group.
tests/​integration/​test_mcp_retired_preview_lifecycle.py Adds e2e marker.
tests/​integration/​test_mcp_pruned_runtime_dir_cleanup_lifecycle.py Adds e2e marker.
tests/​integration/​test_mcp_env_var_headers_e2e.py Adds e2e marker.
tests/​integration/​test_mcp_edit_policy_chain_lifecycle.py Adds e2e marker.
tests/​integration/​test_mcp_credential_scope_lifecycle.py Adds e2e marker.
tests/​integration/​test_mcp_config_merge_safety_lifecycle.py Adds e2e marker.
tests/​integration/​test_marketplace_versioned_directory_lifecycle.py Adds e2e marker.
tests/​integration/​test_marketplace_ssh_install_e2e.py Adds component marker.
tests/​integration/​test_marketplace_package_category_lifecycle.py Adds e2e marker.
tests/​integration/​test_marketplace_pack_producer_refs_lifecycle.py Adds e2e marker.
tests/​integration/​test_marketplace_pack_consumer_chain_lifecycle.py Adds e2e marker.
tests/​integration/​test_marketplace_install_local.py Adds component, preserving Git gate.
tests/​integration/​test_marketplace_add_local.py Adds component, preserving Git gate.
tests/​integration/​test_marketplace_add_generic_git.py Adds component, preserving Git gate.
tests/​integration/​test_manifest_rewrite_preservation_lifecycle.py Adds e2e marker.
tests/​integration/​test_manifest_duplicate_key_lifecycle.py Adds e2e marker.
tests/​integration/​test_manifest_comments_e2e.py Adds component marker.
tests/​integration/​test_manifest_anchor_rejection_lifecycle.py Adds e2e marker.
tests/​integration/​test_lockfileless_skill_cleanup_lifecycle.py Adds e2e marker.
tests/​integration/​test_lockfile_transitive_replay_e2e.py Adds component marker.
tests/​integration/​test_lockfile_symlink_update_uninstall_lifecycle.py Adds e2e marker.
tests/​integration/​test_lock_e2e.py Adds e2e marker.
tests/​integration/​test_local_path_dependency_targets_e2e.py Adds e2e marker.
tests/​integration/​test_local_link_rejection_lifecycle.py Adds e2e marker.
tests/​integration/​test_local_link_audit_replay_lifecycle.py Adds e2e marker.
tests/​integration/​test_local_install.py Adds e2e marker.
tests/​integration/​test_local_dependency_graph_chain_lifecycle.py Adds e2e marker.
tests/​integration/​test_local_content_audit.py Adds e2e marker.
tests/​integration/​test_local_claude_plugin_mcp_lifecycle.py Adds component marker.
tests/​integration/​test_local_bundle_primitive_paths_lifecycle.py Adds e2e marker.
tests/​integration/​test_local_bundle_mcp_retire_lifecycle.py Adds e2e marker.
tests/​integration/​test_local_bundle_manifest_targets_lifecycle.py Adds e2e marker.
tests/​integration/​test_link_rewrite_e2e.py Adds e2e marker.
tests/​integration/​test_lifecycle_workspace_lock.py Adds e2e alongside Windows coverage.
tests/​integration/​test_lifecycle_trust_upgrade_lifecycle.py Adds e2e marker.
tests/​integration/​test_lifecycle_script_interrupt_lifecycle.py Adds e2e marker.
tests/​integration/​test_lifecycle_reconciliation.py Adds component marker.
tests/​integration/​test_json_mcp_native_conflict_lifecycle.py Adds e2e marker.
tests/​integration/​test_intra_package_cleanup.py Adds e2e marker.
tests/​integration/​test_integration.py Adds component marker.
tests/​integration/​test_install_verbose_redaction_e2e.py Adds e2e marker.
tests/​integration/​test_install_subdir_dedup_e2e.py Adds component marker.
tests/​integration/​test_install_silent_skip_e2e.py Adds component marker.
tests/​integration/​test_install_root_redirect_e2e.py Adds e2e marker.
tests/​integration/​test_install_lsp_lockfile_determinism.py Adds component marker.
tests/​integration/​test_install_local_bundle_e2e.py Adds component marker.
tests/​integration/​test_install_invalid_deps_format_e2e.py Adds component marker.
tests/​integration/​test_install_dry_run_e2e.py Adds e2e marker.
tests/​integration/​test_install_dir_plugin_audit_lifecycle.py Adds e2e marker.
tests/​integration/​test_install_compile_claude_dedup_e2e.py Adds e2e marker.
tests/​integration/​test_install_compile_antigravity_dedup_e2e.py Adds e2e marker.
tests/​integration/​test_install_commit_order_lifecycle.py Adds e2e marker.
tests/​integration/​test_install_cli_cursor_claude_import_recheck_e2e.py Adds component marker.
tests/​integration/​test_init_removed_flags_lifecycle.py Adds e2e marker.
tests/​integration/​test_init_reinit_targets_lifecycle.py Adds e2e marker.
tests/​integration/​test_init_bootstrap_chain_lifecycle.py Adds e2e marker.
tests/​integration/​test_inactive_target_ghost_e2e.py Adds component marker.
tests/​integration/​test_ide_target_refusal_lifecycle.py Adds e2e marker.
tests/​integration/​test_hook_wipe_target_scope_e2e.py Adds component marker.
tests/​integration/​test_hook_target_contraction_reconciliation.py Adds component marker.
tests/​integration/​test_hook_sidecar_drift_e2e.py Adds e2e marker.
tests/​integration/​test_hook_root_source_drift_e2e.py Adds e2e marker.
tests/​integration/​test_hook_removed_file_event_retirement_lifecycle.py Adds e2e marker.
tests/​integration/​test_hook_configured_routing_e2e.py Adds component marker.
tests/​integration/​test_hermetic_lifecycle_foundation.py Adds e2e marker.
tests/​integration/​test_grok_bot_skill_deploy.py Adds component marker.
tests/​integration/​test_golden_scenario_e2e.py Adds e2e, preserving serialization group.
tests/​integration/​test_global_scope_agreement_lifecycle.py Adds e2e marker.
tests/​integration/​test_global_mcp_lockfile_e2e.py Adds component marker.
tests/​integration/​test_global_mcp_bootstrap_targets_lifecycle.py Adds e2e marker.
tests/​integration/​test_global_install_e2e.py Adds component marker.
tests/​integration/​test_global_claude_profiles_chain_lifecycle.py Adds e2e marker.
tests/​integration/​test_gitlab_install_e2e.py Adds component marker.
tests/​integration/​test_github_credential_scope_lifecycle.py Adds e2e marker.
tests/​integration/​test_gemini_integration.py Adds component marker.
tests/​integration/​test_frozen_undeclared_package_retention_lifecycle.py Adds e2e marker.
tests/​integration/​test_frozen_deployed_hash_lifecycle.py Adds e2e marker.
tests/​integration/​test_frozen_cold_cache_apm_package_e2e.py Adds component marker.
tests/​integration/​test_find_command.py Adds component marker.
tests/​integration/​test_fault_injection_atomicity_lifecycle.py Adds e2e marker.
tests/​integration/​test_fail_before_integrate_lifecycle.py Adds e2e marker.
tests/​integration/​test_export_patch_installed_packages_lifecycle.py Adds e2e marker.
tests/​integration/​test_export_patch_e2e.py Adds component marker.
tests/​integration/​test_executable_approval_replacement_lifecycle.py Adds e2e marker.
tests/​integration/​test_executable_approval_default_host_lifecycle.py Adds e2e marker.
tests/​integration/​test_empty_skill_dir_install_lifecycle.py Adds e2e marker.
tests/​integration/​test_duplicate_declaration_lifecycle.py Adds e2e marker.
tests/​integration/​test_drift_check_e2e.py Adds component marker.
tests/​integration/​test_download_strategies_selection.py Adds component marker.
tests/​integration/​test_diff_aware_install_e2e.py Adds e2e marker.
tests/​integration/​test_dev_dependency_orphan_e2e.py Adds e2e marker.
tests/​integration/​test_deps_why_promises_e2e.py Adds component marker.
tests/​integration/​test_deps_why_e2e.py Adds component marker.
tests/​integration/​test_deps_update_e2e.py Adds e2e marker.
tests/​integration/​test_deps_list_uninstall_key_lifecycle.py Adds e2e marker.
tests/​integration/​test_deployed_files_gitignore_integration.py Adds component marker.
tests/​integration/​test_deny_remediation_lifecycle.py Adds e2e marker.
tests/​integration/​test_cursor_user_scope_chain_lifecycle.py Adds e2e marker.
tests/​integration/​test_cursor_mcp_schema_fidelity.py Adds e2e marker.
tests/​integration/​test_cross_package_collision_file_survival.py Adds component marker.
tests/​integration/​test_config_valid_keys_e2e.py Adds component marker.
tests/​integration/​test_concurrent_manifest_mutation_lifecycle.py Adds e2e marker.
tests/​integration/​test_compile_universal_apply_to_fastpath_e2e.py Adds component marker.
tests/​integration/​test_compile_root_redirect_e2e.py Adds e2e marker.
tests/​integration/​test_compile_permission_denied.py Adds e2e marker.
tests/​integration/​test_compile_nested_context_protection_lifecycle.py Adds e2e marker.
tests/​integration/​test_compile_global.py Adds component marker.
tests/​integration/​test_compile_copilot_root_instructions.py Adds e2e marker.
tests/​integration/​test_compile_claude_single_h1.py Adds component marker.
tests/​integration/​test_commands_deep_coverage.py Adds component marker.
tests/​integration/​test_cold_update_transitive_plugin_lifecycle.py Adds e2e marker.
tests/​integration/​test_cold_restore_skill_adoption_lifecycle.py Adds e2e marker.
tests/​integration/​test_cold_restore_edit_audit_chain_lifecycle.py Adds e2e marker.
tests/​integration/​test_codex_windows_toml_install.py Adds component marker.
tests/​integration/​test_codex_mcp_env_vars_e2e.py Adds e2e, preserving serialization group.
tests/​integration/​test_cli_docs_contract.py Adds component marker.
tests/​integration/​test_cleanup_deployment_evidence_lifecycle.py Adds e2e marker.
tests/​integration/​test_case_only_rename_lifecycle.py Adds e2e marker.
tests/​integration/​test_case_insensitive_parent_identity_lifecycle.py Adds e2e marker.
tests/​integration/​test_bare_cache_integration.py Adds component marker.
tests/​integration/​test_azure_skills_marketplace.py Adds component marker.
tests/​integration/​test_azure_cli_failure_diagnostic_lifecycle.py Adds e2e marker.
tests/​integration/​test_auto_integration.py Adds component marker.
tests/​integration/​test_auth_upgrade_lock_replay_lifecycle.py Adds e2e marker.
tests/​integration/​test_audit_silent_skip_e2e.py Adds component marker.
tests/​integration/​test_audit_external_scanners.py Adds component marker.
tests/​integration/​test_audit_dependency_skill_links_e2e.py Adds e2e marker.
tests/​integration/​test_audit_ci_project_root_lifecycle.py Adds e2e marker.
tests/​integration/​test_artifact_snapshot_contract.py Adds component marker.
tests/​integration/​test_architecture_marketplace_tag_pattern.py Adds component marker.
tests/​integration/​test_architecture_marketplace_source_admission.py Adds component marker.
tests/​integration/​test_architecture_marketplace_output_path.py Adds component marker.
tests/​integration/​test_architecture_marketplace_metadata_enrichment.py Adds component marker.
tests/​integration/​test_architecture_concurrency_guards.py Adds component marker.
tests/​integration/​test_apply_to_comma_e2e.py Adds component marker.
tests/​integration/​test_apm_home_isolation.py Adds e2e marker.
tests/​integration/​test_agent_skills_target.py Adds component marker.
tests/​integration/​test_ado_marketplace_check_auth.py Adds component marker.
tests/​integration/​test_ado_e2e.py Adds e2e, preserving live/credential gates.
tests/​integration/​test_ado_credential_helper_install_lifecycle.py Adds e2e marker.
tests/​integration/​test_ado_adjacent_egress_lifecycle.py Adds e2e marker.
tests/​integration/​policy/​test_required_packages_source_replacement_lifecycle.py Adds e2e marker.
tests/​integration/​marketplace/​test_outdated_integration.py Adds component marker.
tests/​integration/​marketplace/​test_live_e2e.py Adds e2e marker.
tests/​integration/​marketplace/​test_doctor_integration.py Adds component marker.
tests/​integration/​marketplace/​test_check_integration.py Adds component marker.
tests/​fixtures/​policy/​test_fixtures_load.py Adds unit marker.

Review effort: Balanced

…itions

Review found modules marked unit that use the filesystem or CliRunner,
and a packaged-runner e2e module marked component. Each newly classified
module is re-checked against pyproject.toml: unit only for pure logic,
component for in-process filesystem or command-boundary tests whose
assertions stay within AQ003, e2e only where the driver is visible to
the AQ006 detector. Modules that fit no marker without growing a
ratchet keep their unclassified allowance (126 restored).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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.

🟡 Changes recommended

Active findings identify test markers that contradict the defined execution boundaries, misclassifying filesystem-dependent, subprocess-based, and mocked CLI tests.

3 open issues
2 resolved since last review

Review effort: Balanced

Comment thread tests/unit/test_compile_rich_output.py Resolved

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.

🔵 Needs a closer look

Active findings identify incorrect test classifications: disk-backed fixture tests are marked unit, while a module-wide e2e mark covers a test that never invokes the installed CLI.

3 open issues

Review effort: Balanced

Second review pass. A module keeps a new marker only when it plainly fits
its pyproject definition; otherwise its allowance is restored:
- component modules that spawn any process (python -m apm_cli, git) are
  not in-process (22 modules, incl. test_compile_rich_output.py and
  test_cli_sigterm.py);
- e2e modules keep the marker only if every test reaches the installed
  CLI driver (test_lifecycle_workspace_lock.py reverted);
- unit modules that touch files or paths are not pure logic (3, incl.
  tests/fixtures/policy/test_fixtures_load.py).

unclassified_modules 558 -> 355 (203 classified: 2 unit, 64 component,
137 e2e). AQ003, AQ006 and misplaced_modules unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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.

🔵 Needs a closer look

Human assessment is needed because several test-marker classifications conflict with their declared filesystem, subprocess, and installed-CLI coverage boundaries.

No open issues 🎉

3 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	tests/quality/test_taxonomy_baseline.json

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.

🟡 Changes recommended

The gh-CLI tests mock subprocess execution but leave executable discovery active, allowing filesystem access that violates the new unit marker’s no-filesystem contract.

1 open issue

Review effort: Balanced

…gh discovery is mocked

The gh-CLI cases leave get_gh_executable() live, so the module does filesystem
discovery and cannot honour the unit marker's no-filesystem contract.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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.

🔵 Needs a closer look

Human assessment is needed because omitted review findings indicate that several tests classified as in-process components still invoke real Git subprocesses.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit f313db5 into main Nov 22, 2026
113 of 118 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-4552-item3-markers branch November 22, 2026 21:34
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