# P4a package F — `gates`. Rework result, v2 `refs/heads/p4a/gates` = **`ecf9cb45`**, rebased onto `refs/heads/feat/disaggregated` = `2cb44039` (c0 + c0b; no c0c had landed there when this round started, so `2cb44039` is the head ID-16 names). Working tree clean, **nothing pushed**, no other worktree written to. **`feat/disaggregated` moved WHILE this round ran** and is now `712c9467` — c0c plus the wire package's rework (`Tracker.h`, `MGPipeTypes.h`, `PipeApply.{h,cpp}`, `PipeFields.def`, and real cases in seven `MG_Test/Pipe/*EmitTest.cpp` suites; 14 files, +4982/-116). **This package was not rebased onto it**, and every number below is measured on `2cb44039` + the eight commits. The delta touches **none** of F's files — `MG_IntegrationTest/**`, `MagmaPipeArms.h`, `scripts/p4a_*.sh`, `.github/workflows/test.yml` — so the rebase is textually clean; it is the integrator's to take, along with a re-run of section 6 (the emission suites now carry real cases, which moves this package's ctest counts even though nothing it owns changed). Answers `gates-review-v1.md`'s six majors, the cheap minors, and `INTEGRATOR-DECISIONS.md` **ID-16** (which is this round's specification) plus **ID-15**'s new D-K2 row. --- ## 1. Commits The four v1 commits are unchanged in content and keep C.5's exact messages; the rebase gave them new hashes. Four rework commits sit on top. | # | hash | was | message | |---|---|---|---| | 1 | `5cdcce59` | `0bc9aafa` | `[Test] (Pipe): reproduce the texture, framebuffer, renderbuffer, sampler, view and program handle ABA through public GL and prove the pre-rekey guards are what stops it` | | 2 | `f6ab550f` | `4f006f3c` | `[Test] (Espryt): assert a glTexParameter on a texture that only ever was an attachment, an image binding or a copy endpoint reaches the driver` | | 3 | `7789584b` | `70868f93` | `[Test] (Pipe): switch P4a's four object subsystems off against the shipping mask and record the texture upload shape the two counters make visible` | | 4 | `84ed7177` | `303a9dc8` | `[CI] (Pipe): gate that the unpack ring, the attachment permutation, the depth-stencil sampling core and the format caveat did not move` | | 5 | `e85ba86a` | — | `[Fix] (Test): make G7's descriptor negative control able to report success - a patch that compiles into a scoped enum, a verdict its own patcher cannot pollute, and repair state the signal traps can see` | | 6 | `77f31f90` | — | `[Fix, Test] (Pipe): read the shader composite band's own counters in the composite leak case, arm the ABA flip from anywhere under a backend, match Espryt's exact refusal line and pin the bit-10-requires-bit-11 arm` | | 7 | `2e18d35d` | — | `[Fix, CI] (Pipe): order the byte-identity listing, prove every protected region reaches its closing brace, and pin the include-closure probe count` | | 8 | `ecf9cb45` | — | `[Fix] (Test): stop G7's descriptor control carrying on past a Ctrl-C - latch the interrupt from the trap and from a signalled child, and report it as an interruption rather than as the contract tree's verdict` | Commit 8 is not on the review's list. It is a defect **the F-M3 proof run found in the fixed script** — section 3.2 — and it is reported as a finding rather than folded away. The rebase was clean (c0b touched `PipeMutation.h`, `PipeFill.*`, `SlotAllocator.*`, `PipeCatalogueTest.cpp` and `check_include_closure.py`; this package touches none of them). Files this round changed: `MG_IntegrationTest/{CMakeLists.txt, Harness/PipeSlotPeek.{h,cpp}, Scenarios/{HandleRecycle,ObjectSubsystemControl,TextureUploadShape}Scenario.cpp}`, `MG_Backend/DirectVulkan/Renderer/MagmaPipeArms.h` (F's one granted DirectVulkan file), `scripts/p4a_{untouched_regions,descriptor_negative_control}.sh`, `.github/workflows/test.yml`. --- ## 2. The six majors ### F-M1 — the control patch now compiles. `scripts/p4a_descriptor_negative_control.sh:331` The replacement value is `{}`, not `0`: ```python patched, count = pattern.subn(r'\g<1>{} /* G7 NEGATIVE CONTROL: was \g<2> */\g<3>', text) ``` `= {}` is valid for `SamplerParameters::borderColorForm` (the scoped `enum class BorderColorForm : Uint8`) **and** for `MGPSurface::Layered` (`Uint8`), in an assignment and in a designated initializer, so one string covers both controls and neither has to know its field's type. The reasoning is written into the header at `:48-61`, together with the caveat that `{}` is the type's zero — so a suite every case of which expects the field's zero would legitimately report `did-not-trip`, and both suites' own headers already require a red **by field name**. **Proved, not argued** — see 3.1: on a scaffolded tree the `borderColorForm` control compiled, went red naming the field, and the run exited **0**. ### F-M2 — the verdict cannot be polluted. `:250`, `:339`, `:452-457` `run_control` no longer echoes its verdict: it sets the global `CONTROL_VERDICT` (`:250`) and the driver reads it after a **plain call** (`:455`). The patcher's success line goes to `sys.stderr` (`:339`), which is the literal ask, but the fix that matters is that the verdict no longer travels through a stream anything else can write to. The rows are also collected into an array first (`:445-452`) and every child gets ` 0 (peak 0), high water 983040 -> 983040 (floor 983040) over 48 rounds ... Skipped: the client minted no ShaderCso (pipeline composites) [composite band] slot at all ``` **It can go red** — 3.3. ### F-M5 — the ABA-flip probe is directory-wide. `MG_IntegrationTest/CMakeLists.txt:411-460`, `:571-595` `mgl_itest_probe_for_two_symbols` now answers "**both regexes matched somewhere under the directory**" and reports ` + `, instead of requiring one file to carry both. The layout dependency the review found — package D wiring the knob in `Managers.cpp` while the P4a subsystem constants live in `SlotTables.h`, the marker never arming, six controls silently keeping the old expectation — is gone. It costs nothing today, verified by grep on this tree: `MobileGL/MG_Backend/DirectVulkan` matches `PipeHandleAbaControl` (only `MagmaPipeArms.h`) and matches `kMGPipeSubsystem{Framebuffer,TextureResources,Samplers,Programs}` **nowhere**; `MG_Backend/DirectGLES` matches neither. So `MGITEST_HANDLE_ABA_OBJECTS_*` is still unset for both backends and the six controls still assert the correct pixels and say so. ### F-M6 — the refusal is matched as a LINE. `ObjectSubsystemControlScenario.cpp:150-215`, `:556-575` `FindTheRefusalLine(log, bitThatWasSet, bitThatWasNeeded)` (`:190-215`) scans the log line by line and requires **one line** that is all of: * at **ERROR** severity — the library writes `[