Repository navigation
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.
On 2026-11-21 main went red twice in integration shards that run only on merge_group or dispatch, never on the PR:
tests/integration/test_architecture_pack_lockfile_read.py::test_bundle_lockfile_reads_have_one_registered_ownerafter [0.38] fix(policy): required-package checks read explicit proxy-URL lock rows (#4037) #4067 (an owner-registry selector change);tests/integration/test_install_local_bundle_e2e.py::...[codex-expected_paths4]after [0.38] feat(install): render bundle agents to Codex TOML at install (#3714) #4007 (install-path change).
Owner-guard and install regressions reach main because a PR never runs those tests.
Describe the solution you'd like
Add a cheap PR check, Owner Surface Check (.github/workflows/owner-surface.yml plus scripts/owner_surface.py). It always reports, so it can be required later.
-
Trigger (owner surface):
src/apm_cli/install/*andsrc/apm_cli/deps/lockfile*;.apm/architecture/*andscripts/architecture_linter/*;tests/integration/test_architecture_*.pyandtests/integration/test_install_*.py;- every file an owner registry selector names;
- the check's own files.
-
Slice:
- owner-rule mutation cases, plus
test_architecture_*.pyfiles that name a changed file or an affected owner, guard or rule; - every
test_install_*.pyfile for install-path changes.
It runs hermetic tests in 3 duration-balanced shards, targeting under 10 min.
- owner-rule mutation cases, plus
-
Result: the check passes when no owner surface changed (the slice is skipped) and on merge_group, where the full suite runs. The full integration suite stays once per train head, never per PR.
-
Done when:
- unit tests cover the trigger, keys, deselection and the aggregate;
- replaying [0.38] fix(policy): required-package checks read explicit proxy-URL lock rows (#4037) #4067 and [0.38] feat(install): render bundle agents to Codex TOML at install (#3714) #4007 selects their failing tests, at an estimated wall clock under 10 min;
- PR CI is green.
-
Out of scope:
- making the check required. That is a maintainer gate: a merge-gate.yml EXPECTED_CHECKS edit (recommended) or a ruleset edit, both prepared but not executed;
- changes to the full suite.
Describe alternatives you've considered
#4117, a blast-radius slice from a nightly coverage-context map, is broader and not implemented. This check is a narrower, static precursor that needs no nightly artifact.
Additional context
Refs #4117. The Ops agent org ([OPS] Lead, CI & Merge Queue) will implement it. Review contact: Daniel Meppiel (@danielmeppiel).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
danielmeppiel commentedon Nov 21, 2026
Decision: approve
Area: project
Scope: Add an advisory PR check,
Owner Surface Check(.github/workflows/owner-surface.yml + scripts/owner_surface.py), on pull_request and merge_group with no paths filter. It triggers on owner surfaces: src/apm_cli/install/, src/apm_cli/deps/lockfile, .apm/architecture/, scripts/architecture_linter/, tests/integration/test_architecture_.py, tests/integration/test_install_.py, every owner-registry selector file, and its own files. It runs only the hermetic integration slice the change can reach (owner-rule mutation cases and test_architecture_* files naming a changed file or affected owner/guard/rule, plus test_install_* for install changes) in 3 duration-balanced shards. One always() aggregate passes on a skipped slice and on merge_group. Unit tests; cicd instructions and integration-testing docs.Done when: unit tests cover the trigger, selection keys, deselection and the aggregate; replaying #4067 and #4007 selects their failing tests with an estimated wall clock under 10 min (recorded in the PR body); PR CI is green, with the check reporting on the PR itself.
Out of scope: making the check required (a maintainer gate: merge-gate.yml EXPECTED_CHECKS or ruleset 9294522, prepared not executed); changes to the full integration suite or to merge_group; #4117's nightly coverage-context map.
Review contact: Daniel Meppiel (@danielmeppiel)
ci(owner-surface): shard the slice in owner_surface so small slices c…
ci(owner-surface): select tests for replaced guards, changed test fil…
ci(owner-surface): run the integration slice an owner or install chan…