Skip to main content

Invocation-owned G2a fixture template

PR4189's approved PR fullG2 passed, but its subsequent queue fullG2 timed out at the unchanged65-minute step bound. The queue G2a producer completed in3869.488s versus1505.697s on the PR. Twenty-four DB mutant invocations explain89.75% of the increase. The retained timestamps establish repeated database setup cost; they do not establish a physical runner fault.

The scoped design approval is architect comment6264549620. Each wrapper still starts a fresh owned server, runs its actual current full migration chain and records the actual migration-byte digest. Immediately afterward it freezes a separate pristine template, before any test/provisioning. The binding includes invocation UUID, exact container/server system identifier, database OID, clean migration version and actual schema/seed-history fingerprint. Connections to the frozen template are disabled. PRESENT-invalid bindings refuse; absent opt-in keeps the standalone actual migration behavior used by the existing direct CI producers.

The source suite validates one process-owned pristine clone and retains its existing immutable-template/independent-child-clone pattern. A warm cache binds the full normalized validated manifest, including invocation, schema version and fingerprint; changed or removed opt-in refuses instead of reusing a cached schema. The legacy quota-history fixture receives a separate verified clone. Full schema comparison uses the installed server image's pg_dump (including constraints, functions, ACLs, RLS, types and triggers) plus every public table's canonical seed/history content. Only pg_dump's random psql restrict transport token is normalized. No schema serializer or cached success JSON substitutes for the actual migrations.

The preexisting app_rw witness remains on a separate fresh server: it creates app_rw before applying the changed chain and checks migration-issued grants before compensating fixture grants. Actual runtime provisioning/reprovisioning and explicit UP/DOWN/refusal witnesses remain intact. Mutant and restored invocations never share templates or servers.

The eight outer fullG2 ledger stages and original48 G2a mutant names remain unchanged. Seven source parents/69 children remain the source acceptance roster (68 until #4473 split deadline_cancels_owned_wire into two arms). Additional nested proof is mandatory:

  • 2 actual source-factory witnesses for its sealed process template and distinct child/history isolation;
  • 15 real template ownership, freshness, schema/history and clone-isolation controls;
  • actual intentional-failure and TERM lifecycle witnesses using the real wrapper with only its DB test selector substituted;
  • 5 independent checker tests, including omission, skipped/cached, wrong-head-source and cleanup predicates.

Success and ordinary failure restore the DB roster. Abrupt TERM may leave its exact owned clone until the whole owned server is removed; the receipt identifies that clone and proves exact container/anonymous-volume absence. It does not falsely claim pre-removal roster equality. Full DOWN and zero-table evidence remain mandatory on the successful acceptance path. Race/count/time/cap/fsync/synchronous_commit/full_page_writes requirements are unchanged.

The historical pilot index records baseline db65.742s/legacy64.892s and optimized db58.002s/legacy57.730s, including freeze/fingerprint/drop. Its first failed optimization and all cleanup receipts are retained. These are precommit diagnostics with different cache/build conditions, not current-head proof or a65-minute runtime guarantee. The final committed candidate and actual merge-group must execute fullG2 and all independent reviews again. Candidate8f11 was interrupted after author-support checks found lifecycle evidence and warm-cache binding gaps; its terminal failure and separately completed nested cleanup are retained as diagnostics, not accepted proof.

Legacy quota cleanup profile (#4230)​

Clone uses the Default cleanup for all callers. Only newSourceQuotaPool opts into the closed LegacyQuotaCleanup profile. Both windows are 60 seconds since #4231 (see below). Before that the Default was 15 seconds. Unknown profiles refuse before manifest validation or database creation. Both profiles share validation, clone creation and observed DROP DATABASE WITH (FORCE). Legacy cleanup starts one fresh finite authority independent of body cancellation; its result is retained across repeated calls, without new SQL or a refreshed deadline. The allowance is provisional, not an observed latency upper bound. Sampled IPC/CheckpointDone does not establish CPU, swap or I/O causation; diagnostic A was inconclusive.

The required template parent now has 26 literal children (the prior 19 plus seven cleanup witnesses). Actual catalog locks prove success beyond 15 seconds, failure at the one 60-second cutoff, unchanged Default behavior, distinct clone schema/history, and cleanup after both cancelled and expired body contexts. The failing-deadline case retains the helper error; its separate exact-owner finalizer disposes the remaining clone. Controlled lock delays exercise the cleanup policy, not a claimed reproduction of checkpoint latency.

Eight Go semantic mutants run a fixed selected child per RED and byte-restored GREEN arm. The reset/error-preservation mutations use a real PostgreSQL missing-database SQLSTATE 3D000 child, avoiding repeated deliberate 60-second waits; the separate original deadline child and its mutation remain. Three additional Python mutations pin actual callsite adoption. One reverts the normal newSourceQuotaPool call to Clone; an exact source assertion must fail, then pass after byte restoration. Its real verbose test log, argv, exit, source bytes and process absence are independently required by the final checker. The full template baseline remains mandatory. The independent final checker reparses each raw execution, assertion, source hash, DOWN0, database roster and exact Docker container/volume absence. Eight independent checker selftests include every child/mutant omission and rejected partial/timeout/cleanup evidence. The two process-template children and actual failure/TERM lifecycle proof remain mandatory.

The diagnostic-only route is verify-repo-source-g2a.sh OUT template [CHILD], with CHILD restricted to the fixed 26 names. Its checker is check-repo-source-g2-proof.py template OUT/template.json [--child CHILD]. Neither route grants final G2 acceptance. Complete G2 keeps its full producer and final-envelope CLI, including all existing G1/G2a/G2b proofs and mutations. Go180s, mutation420s plus existing TERM15s, full G2 step65m and queue120m remain unchanged. A failure to fit those budgets requires a new concrete disposition, not an automatic increase.

Refusal error reporting is independently required. Both failure exits after clone creation join the original validation/connection refusal with any cleanup error, preserving an explicit cleanup-failed marker and exact owned database name. They do not retry or return a new cleanup budget. Refusal tests reject cleanup failure explicitly. Altered synthetic manifests remain beside the wrapper-owned original, so their DROP diagnostics survive temporary-test cleanup. The default_refusal_preserves_cleanup_failure witness creates a real Default clone and independently removes it, then supplies a synthetic refusal to the shared finalizer. The actual bare DROP returns PostgreSQL3D000; original refusal, SQL error, owned name, diagnostic and Default cutoff (60s since #4231) must survive. A literal mutation restores swallowed-error behavior and must fail this named assertion. This proves error reporting, not the physical cause or elimination of a hosted15s timeout. The separate Default deadline witness and mandatory residual-roster refusal stay.

Checkpoint-tolerant Default window (#4231)​

PostgreSQL 16 dropdb() requests an IMMEDIATE checkpoint and waits for it. A clone DROP DATABASE ... WITH (FORCE) therefore lasts as long as flushing and fsyncing everything the server has not yet checkpointed. Here that is the 1-CPU/512 MiB owned container, on a disk the other CI slots share. Merge-group artifacts 12277149540, 12286498999, 12291158458 and three earlier G2 artifacts hold about 170 drop diagnostics. Every timeout that was not a deliberate lock witness was a Default (15 s) DROP waiting on IPC/CheckpointDone. Successful drops reached 17.1 s. The first drop after migrate-up and freeze carries the most unflushed data, and it failed most often. A later drop failed too (#4236's artifact), so a checkpoint at freeze would not close the class. The lifecycle failure scenario's clone cleanup also timed out in 3/3 runs. It was accepted silently because that scenario expects a failed package.

The Default window is now the reviewed 60-second legacy window. It is still one deadline, never refreshed or retried. The observer still shares the deadline, and its samples cover the window at 0/1/5/10/30/55 sixtieths of it (seconds, for the 60 s window), counted from the DROP's start. A timed-out DROP therefore still shows whether it waited on a checkpoint or a lock. Three children were renamed so the name carries the reason: clone_cleanup_adopts_observer_and_checkpoint_tolerant_deadline, legacy_profile_is_closed_and_default_is_checkpoint_tolerant and default_cleanup_survives_drop_wait_past_former_15s_deadline. The last one holds an owned lock for 16 s on a Default clone, inside the real 60 s window. legacy_cleanup_global_default reverts the constant to 15 s and must fail the receipt in clone_cleanup_adopts_observer_and_checkpoint_tolerant_deadline. legacy_cleanup_default_window must fail the 60-second receipt assertion in legacy_cleanup_preserves_sql_error_and_no_retry. No producer, Go, mutation, step or queue budget changed. A leaked clone still reds the profile, and the checker now names it before it checks the artifact set.

Witness windows and the step budget. Step 131 runs the whole template package twice (the G2a producer and baseline-template) and each selected mutant child twice (RED, restored GREEN), under one 65-minute step timeout. A deadline witness that waits out the real 60 s window costs a minute per run. legacy_cleanup_keeps_one_deadline_and_no_retry therefore runs the Legacy cleanup at a 5 s witnessWindow, through the unexported clone constructor that CloneWithCleanupProfile calls. Only the duration differs. The 60 s values stay pinned by receipts (the three children named above, plus legacy_profile_is_closed_and_default_is_checkpoint_tolerant). The 16 s Default witness needs the real window: the released DROP still owes its checkpoint. It runs in the two baselines only, and no mutant selects it. The mutation and lifecycle harnesses keep their disposable source copies outside the output root, in RUNNER_TEMP when it is set. A timed-out step leaves those processes alive until the job's orphan cleanup. That cleanup runs after the receipts upload, so no exit handler could have removed the copies.

The existing adoption Python witness also pins both actual Clone refusal exits. refusal_connect_cleanup_adoption and refusal_validation_cleanup_adoption separately restore each old ignored-cleanup callsite; each must cause a real Python assertion RED and byte-restored GREEN. The final verifier requires both exact source deltas and raw execution evidence alongside the Legacy caller pin. The shared-finalizer SQL test does not claim end-to-end forced-refusal timing; these independent source controls prove the two real exits retain that finalizer.

Fixed semantic mutation witnesses (#4231)​

The 15 unit/DB/legacy mutations keep their full mode baselines. Each RED and byte-restored GREEN arm then executes only its literal mapped child. The parent-only admission mutation must execute both bypass=false and bypass=true. verify-repo-source-g2a.sh OUT MODE MUTANT accepts only those fixed mode/name pairs; arbitrary selectors and extra arguments refuse before resource creation. check-repo-source-g2-proof.py selected OUT/MODE.json --mode MODE --witness MUTANT (with --red only for the intentionally changed source) is partial evidence, never complete G2 acceptance.

The independent verifier pins the source edit and semantic assertion, rejects additional plain Go cleanup errors even beside the expected assertion, and requires exact raw RUN/terminal rosters. Each arm retains its actual argv, exit, source head, invocation, interval, wrapper hash, raw hashes and process absence. DB arms additionally bind the actual frozen template/SQL identity and migration bytes (including the literal changed migration on RED), restore the database roster, execute DOWN to zero and prove exact container/volume absence. Final verification refuses reused identities and arm intervals outside the current outer producer. Full baselines, lifecycle controls, all mutation names and the existing cumulative G1/G2 checks remain mandatory. No cross-invocation reuse or new deadline allowance is introduced.

The retained local2219 full attempt failed after61m09.871 at the unchanged global host-swap check. Its G2a stage passed in3044.851849s; that is neither complete G2 success nor a successor timing guarantee. Coordinator disposition6286131902 requires one exact-committed-head local G2a proof after scoped controls, followed by the complete hosted G2/envelope and fresh independent reviews. Both hosted memory profiles and later merge-group proof remain required; local partial proof does not establish their result or budget headroom.