Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

test: reap isolated browser writers before credential cleanup

pulse-triage[bot]57beb6010f2c
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index c5348271f5..3de6c70335 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -26,6 +26,19 @@ installed-customer or release qualification. The executable discovery and
tier-refusal checks in `tests/integration/scripts/managed-local-backend.test.mjs`
protect this boundary without launching a browser.
+The shell entrypoint requires Linux child-subreaper support, Python 3 and
+`/proc`; unsupported platforms fail closed. Its supervisor owns a unique
+0700 cookie directory and overrides inherited cookie paths. Normal completion
+reaps writers and removes cookies while retaining reports for inspection.
+TERM/INT/HUP stop and reap descendants, including adopted detached writers,
+before removing only that invocation's cookies, reports and results. Writers
+ignoring TERM receive KILL after five seconds; inability to reap within fifteen
+seconds fails cleanup and retains artifacts rather than racing writers.
+Supervisor SIGKILL and host failure still require manual scoped cleanup.
+`tests/integration/scripts/managed-local-backend.test.mjs` verifies helper path
+selection and executes the supervisor and shell interruption fixtures. These
+are process/fixture proofs, not real-browser or container-cleanup receipts.
+
The cross-organisation sharing diagnostic must use cookie-session authentication,
not the primary API-token shortcut: the restricted token is correctly refused
when the browser selects another organisation. It asserts the absence of a
diff --git a/tests/integration/README.md b/tests/integration/README.md
index a78f54b052..f80f76ba66 100644
--- a/tests/integration/README.md
+++ b/tests/integration/README.md
@@ -305,8 +305,20 @@ a non-empty `PULSE_E2E_TIER`: unset that variable explicitly for diagnostics.
The normal stable/probation configuration and quarantine are unchanged.
A diagnostic pass is not a stable-gate, installed-customer or release receipt.
-Reports remain under the invocation-specific report/result directories for
-inspection; treat browser artifacts as potentially sensitive. Direct npm,
+The shell-owned runner requires Linux and Python 3: its supervisor uses Linux
+child-subreaper support and `/proc` to wait for orphaned browser writers. It
+fails closed on unsupported platforms rather than claiming safe cleanup.
+Cookie state is private to the invocation (directory mode 0700) and removed
+on completion. On TERM, INT or HUP, the supervisor stops and reaps writers
+before removing that invocation's cookies, reports, videos and result root.
+A writer ignoring TERM is killed after five seconds. If writers cannot be
+reaped within fifteen seconds, cleanup fails and retains artifacts rather
+than racing them. SIGKILL of the supervisor or host failure still requires
+manual, invocation-scoped cleanup.
+
+Reports remain after ordinary success/failure for inspection; treat browser
+artifacts as potentially sensitive and remove them after retaining a sanitised
+receipt. Direct npm,
setup and helper invocations do not inherit the shell runner's isolation
guarantees. The existing seven scenarios do not establish the delayed admission
and reconnect recovery matrix.
diff --git a/tests/integration/scripts/managed-local-backend.test.mjs b/tests/integration/scripts/managed-local-backend.test.mjs
index 9f994b69a1..5dc83dc95a 100644
--- a/tests/integration/scripts/managed-local-backend.test.mjs
+++ b/tests/integration/scripts/managed-local-backend.test.mjs
@@ -3,6 +3,9 @@ import fs from 'node:fs/promises';
import os from 'node:os';
import path from 'node:path';
import test from 'node:test';
+import { execFile } from 'node:child_process';
+import { promisify } from 'node:util';
+import { runInNewContext } from 'node:vm';
import { fileURLToPath } from 'node:url';
import {
@@ -426,3 +429,27 @@ test('normal stable configuration retains multi-tenant quarantine', () => {
assert.notEqual(result.status, 0);
assert.match(result.stdout, /Total: 0 tests/);
});
+
+
+test('owned cookie state selects the supervisor path without changing direct-run fallback', async () => {
+ const helpers = await fs.readFile(path.join(integrationRoot, 'tests', 'helpers.ts'), 'utf8');
+ const declaration = helpers.match(/const sharedCookieStatePath = [\s\S]*?;\n/);
+ assert.ok(declaration, 'cookie path resolver must remain inspectable');
+ const source = declaration[0].replace('(): string', '()') + '\nsharedCookieStatePath();';
+ const resolve = value => runInNewContext(source, {
+ path, helpersDir: path.join(integrationRoot, 'tests'),
+ process: { env: { PULSE_E2E_COOKIE_STATE_PATH: value } },
+ });
+ assert.equal(resolve(' /invocation-owned/cookies.json '), '/invocation-owned/cookies.json');
+ for (const value of [undefined, '', ' ']) {
+ assert.equal(resolve(value), path.join(integrationRoot, 'tmp/playwright-auth/shared-cookie-session.json'));
+ }
+});
+
+test('owned runner orchestration proves reaping, signal cleanup and concurrent isolation', { timeout: 30000 }, async () => {
+ const run = promisify(execFile);
+ // Registry-recognised orchestration proof executes the behavioural fixtures;
+ // neither a source-string match nor a fixture result is browser acceptance.
+ await run('python3', [path.join(scriptsDir, 'owned-run.test.py')], { timeout: 20000 });
+ await run(process.execPath, ['--test', path.join(scriptsDir, 'run-tests-interruption.test.mjs')], { timeout: 15000 });
+});
diff --git a/tests/integration/scripts/owned-run.py b/tests/integration/scripts/owned-run.py
new file mode 100644
index 0000000000..97fb97770b
--- /dev/null
+++ b/tests/integration/scripts/owned-run.py
@@ -0,0 +1,106 @@
+#!/usr/bin/env python3
+"""Linux qualification supervisor: reap writers before deleting owned auth/artifacts.
+
+Never accepts output paths from the environment. SIGKILL of this supervisor or
+host failure still needs operator cleanup; catchable signals are handled here.
+"""
+import ctypes
+import os
+from pathlib import Path
+import secrets
+import shutil
+import signal
+import subprocess
+import sys
+import time
+
+
+def supervise(command, root):
+ if sys.platform != 'linux':
+ raise RuntimeError('isolated integration runner requires Linux child-subreaper support')
+ # Adopt orphaned browser grandchildren, so waiting for the shell is not
+ # mistaken for waiting for every process which can still write artifacts.
+ libc = ctypes.CDLL(None, use_errno=True)
+ if libc.prctl(36, 1, 0, 0, 0) != 0: # PR_SET_CHILD_SUBREAPER
+ raise OSError(ctypes.get_errno(), 'cannot become child subreaper')
+
+ run_id = 'pulse-e2e-' + secrets.token_hex(16)
+ auth = root / 'tmp' / 'playwright-auth' / run_id
+ report = root / 'playwright-report' / run_id
+ results = root / 'test-results' / run_id
+ auth.mkdir(parents=True, mode=0o700)
+ env = {**os.environ, 'PULSE_E2E_RUN_ID': run_id,
+ 'PULSE_E2E_COOKIE_STATE_PATH': str(auth / 'shared-cookie-session.json'),
+ 'PULSE_E2E_REPORT_DIR': str(report), 'PULSE_E2E_RESULTS_DIR': str(results)}
+ interrupted = 0
+
+ def on_signal(signum, _frame):
+ nonlocal interrupted
+ interrupted = interrupted or signum
+
+ for sig in (signal.SIGINT, signal.SIGTERM, signal.SIGHUP):
+ signal.signal(sig, on_signal)
+
+ child = None
+ drained = False
+ status = 1
+ try:
+ child = subprocess.Popen(command, env=env, start_new_session=True)
+ stopping_at = None
+ main_done = False
+ sent = set()
+ group_sent = set()
+ while True:
+ try:
+ pid, raw = os.waitpid(-1, os.WNOHANG)
+ except ChildProcessError:
+ drained = True
+ break
+ if pid:
+ if pid == child.pid:
+ code = os.waitstatus_to_exitcode(raw)
+ child.returncode = code
+ status = code if code >= 0 else 128 - code
+ main_done = True
+ continue
+ if interrupted or main_done:
+ if stopping_at is None:
+ stopping_at = time.monotonic()
+ elapsed = time.monotonic() - stopping_at
+ sig = signal.SIGKILL if elapsed >= 5 else signal.SIGTERM
+ # The group catches live descendants; adopted children also
+ # cover grandchildren that started their own sessions.
+ if sig not in group_sent:
+ try:
+ os.killpg(child.pid, sig)
+ except ProcessLookupError:
+ pass
+ group_sent.add(sig)
+ sent.add((child.pid, sig))
+ children = Path(f'/proc/self/task/{os.getpid()}/children').read_text().split()
+ for adopted in children:
+ key = (int(adopted), sig)
+ if key not in sent:
+ try:
+ os.kill(key[0], sig)
+ except ProcessLookupError:
+ pass
+ sent.add(key)
+ if elapsed >= 15:
+ raise RuntimeError('writers did not exit; retaining owned artifacts for cleanup')
+ time.sleep(0.05)
+ finally:
+ if child is None or drained:
+ shutil.rmtree(auth)
+ if interrupted:
+ for directory in (report, results):
+ if directory.exists():
+ shutil.rmtree(directory)
+ else:
+ print(f'Cleanup incomplete for {run_id}; artifacts retained', file=sys.stderr)
+ return 128 + interrupted if interrupted else status
+
+
+if __name__ == '__main__':
+ root = Path(__file__).resolve().parent.parent
+ sys.exit(supervise(['bash', sys.argv[1], '--owned-run', *sys.argv[2:]], root))
diff --git a/tests/integration/scripts/owned-run.test.py b/tests/integration/scripts/owned-run.test.py
new file mode 100644
index 0000000000..ee17e6f6d1
--- /dev/null
+++ b/tests/integration/scripts/owned-run.test.py
@@ -0,0 +1,124 @@
+import importlib.util
+import json
+import os
+from pathlib import Path
+import signal
+import subprocess
+import sys
+import tempfile
+import time
+import unittest
+
+SUPERVISOR = Path(__file__).with_name('owned-run.py')
+# The child creates a separate-session writer which outlives its parent and
+# writes once more during TERM handling. A shell-only wait cannot contain it.
+WRITER = '''
+import os, signal, time
+from pathlib import Path
+p = Path(os.environ['PULSE_E2E_RESULTS_DIR'])
+def stop(*_):
+ time.sleep(.2)
+ p.mkdir(parents=True, exist_ok=True)
+ (p / 'late-write').write_text('fixture')
+ raise SystemExit(0)
+signal.signal(signal.SIGTERM, stop)
+(p / 'writer-ready').write_text(str(os.getpid()))
+while True: time.sleep(.02)
+'''
+CHILD = '''
+import json, os, subprocess, sys, time
+from pathlib import Path
+paths = {k: os.environ[k] for k in ('PULSE_E2E_COOKIE_STATE_PATH', 'PULSE_E2E_REPORT_DIR', 'PULSE_E2E_RESULTS_DIR')}
+for key, value in paths.items():
+ p = Path(value)
+ if 'COOKIE' in key:
+ p.write_text('fixture-only')
+ else:
+ p.mkdir(parents=True)
+ (p / 'fixture').write_text('fixture-only')
+Path(sys.argv[1]).write_text(json.dumps(paths))
+if sys.argv[2] in ('writer', 'stubborn'):
+ writer = sys.argv[3]
+ if sys.argv[2] == 'stubborn':
+ writer = writer.replace('signal.signal(signal.SIGTERM, stop)', 'signal.signal(signal.SIGTERM, signal.SIG_IGN)')
+ subprocess.Popen([sys.executable, '-c', writer], start_new_session=True)
+ while True: time.sleep(.02)
+sys.exit(int(sys.argv[2]))
+'''
+
+
+class OwnedRunTest(unittest.TestCase):
+ def start(self, root, mode):
+ receipt = root / ('receipt-' + str(time.time_ns()))
+ launch = '''import importlib.util, sys
+from pathlib import Path
+s = importlib.util.spec_from_file_location('owned', sys.argv[1])
+m = importlib.util.module_from_spec(s); s.loader.exec_module(m)
+sys.exit(m.supervise([sys.executable, '-c', sys.argv[3], sys.argv[4], sys.argv[5], sys.argv[6]], Path(sys.argv[2])))
+'''
+ p = subprocess.Popen([sys.executable, '-c', launch, str(SUPERVISOR), str(root), CHILD, str(receipt), mode, WRITER],
+ env={**os.environ, 'PULSE_E2E_COOKIE_STATE_PATH': str(root / 'unowned')})
+ self.addCleanup(lambda: p.poll() is None and p.kill())
+ deadline = time.monotonic() + 10
+ while not receipt.exists():
+ if time.monotonic() > deadline or p.poll() is not None:
+ self.fail('fixture did not start')
+ time.sleep(.02)
+ paths = json.loads(receipt.read_text())
+ if mode in ('writer', 'stubborn'):
+ ready = Path(paths['PULSE_E2E_RESULTS_DIR']) / 'writer-ready'
+ while not ready.exists():
+ if time.monotonic() > deadline:
+ self.fail('writer did not start')
+ time.sleep(.02)
+ writer_pid = int(ready.read_text())
+ else:
+ writer_pid = None
+ return p, paths, writer_pid
+
+ def test_normal_success_and_failure_remove_only_owned_auth(self):
+ with tempfile.TemporaryDirectory() as tmp:
+ root = Path(tmp)
+ sentinel = root / 'unowned'; sentinel.write_text('leave alone')
+ identities = []
+ for code in ('0', '23'):
+ p, paths, _ = self.start(root, code)
+ self.assertEqual(p.wait(timeout=10), int(code))
+ auth = Path(paths['PULSE_E2E_COOKIE_STATE_PATH']).parent
+ identities.append(auth)
+ self.assertFalse(auth.exists())
+ self.assertTrue(Path(paths['PULSE_E2E_REPORT_DIR']).exists())
+ self.assertNotEqual(*identities)
+ self.assertEqual(sentinel.read_text(), 'leave alone')
+
+ def test_stubborn_writer_is_killed_and_reaped(self):
+ with tempfile.TemporaryDirectory() as tmp:
+ p, paths, writer_pid = self.start(Path(tmp), 'stubborn')
+ p.send_signal(signal.SIGTERM)
+ self.assertEqual(p.wait(timeout=12), 143)
+ with self.assertRaises(ProcessLookupError):
+ os.kill(writer_pid, 0)
+ self.assertFalse(Path(paths['PULSE_E2E_RESULTS_DIR']).exists())
+
+ def test_signals_reap_detached_late_writer_before_removing_artifacts(self):
+ for sig in (signal.SIGTERM, signal.SIGINT, signal.SIGHUP):
+ with self.subTest(signal=sig), tempfile.TemporaryDirectory() as tmp:
+ root = Path(tmp)
+ other, other_paths, _ = self.start(root, 'writer')
+ p, paths, writer_pid = self.start(root, 'writer')
+ self.assertNotEqual(paths, other_paths)
+ p.send_signal(sig)
+ self.assertEqual(p.wait(timeout=10), 128 + sig)
+ with self.assertRaises(ProcessLookupError):
+ os.kill(writer_pid, 0)
+ for key, value in paths.items():
+ target = Path(value).parent if 'COOKIE' in key else Path(value)
+ self.assertFalse(target.exists(), target)
+ for value in other_paths.values():
+ self.assertTrue(Path(value).exists(), value)
+ other.send_signal(signal.SIGTERM)
+ self.assertEqual(other.wait(timeout=10), 143)
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/tests/integration/scripts/run-tests-interruption.test.mjs b/tests/integration/scripts/run-tests-interruption.test.mjs
new file mode 100644
index 0000000000..b110ccfad1
--- /dev/null
+++ b/tests/integration/scripts/run-tests-interruption.test.mjs
@@ -0,0 +1,64 @@
+import assert from 'node:assert/strict';
+import { mkdtempSync, writeFileSync, readFileSync, existsSync, rmSync } from 'node:fs';
+import { tmpdir } from 'node:os';
+import path from 'node:path';
+import { spawn } from 'node:child_process';
+import { fileURLToPath } from 'node:url';
+import test from 'node:test';
+
+const runner = fileURLToPath(new URL('./run-tests.sh', import.meta.url));
+const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
+
+for (const [signal, expected] of [['SIGTERM', 143], ['SIGINT', 130], ['SIGHUP', 129]]) {
+ test(`shell ${signal} waits for writers and removes only invocation-owned artifacts`, { timeout: 15000 }, async () => {
+ const dir = mkdtempSync(path.join(tmpdir(), 'pulse-run-signal-'));
+ let child;
+ try {
+ const stubs = {
+ docker: `echo "$*" >> "$FIXTURE_ROOT/docker-calls"
+case " $* " in
+ *" port "*) echo 127.0.0.1:17655 ;;
+ *" inspect -f "*) echo true ;;
+esac
+exit 0`,
+ curl: 'exit 0',
+ node: 'exit 0',
+ npx: `mkdir -p "$PULSE_E2E_REPORT_DIR" "$PULSE_E2E_RESULTS_DIR"
+printf fixture > "$PULSE_E2E_COOKIE_STATE_PATH"
+printf fixture > "$PULSE_E2E_REPORT_DIR/report"
+printf fixture > "$PULSE_E2E_RESULTS_DIR/video"
+printf '%s\\n' "$PULSE_E2E_COOKIE_STATE_PATH" "$PULSE_E2E_REPORT_DIR" "$PULSE_E2E_RESULTS_DIR" > "$FIXTURE_ROOT/paths"
+trap 'sleep .2; echo late > "$PULSE_E2E_RESULTS_DIR/late"; echo stopped > "$FIXTURE_ROOT/writer-stopped"; exit 0' TERM
+while true; do sleep .05; done`,
+ };
+ for (const [name, body] of Object.entries(stubs)) {
+ writeFileSync(path.join(dir, name), `#!/bin/bash\n${body}\n`, { mode: 0o755 });
+ }
+ const unowned = path.join(dir, 'unowned-cookie');
+ writeFileSync(unowned, 'keep');
+ child = spawn('bash', [runner, 'multi-tenant'], {
+ env: { ...process.env, PATH: `${dir}:${process.env.PATH}`, FIXTURE_ROOT: dir,
+ PULSE_E2E_COOKIE_STATE_PATH: unowned }, stdio: 'ignore',
+ });
+ const closed = new Promise(resolve => child.once('close', (code, sig) => resolve({ code, sig })));
+ const deadline = Date.now() + 8000;
+ while (!existsSync(path.join(dir, 'paths'))) {
+ assert.ok(Date.now() < deadline && child.exitCode === null, 'writer must start');
+ await sleep(20);
+ }
+ // Let the stub install its TERM handler after publishing the paths.
+ await sleep(100);
+ child.kill(signal);
+ assert.deepEqual(await closed, { code: expected, sig: null });
+ assert.equal(readFileSync(path.join(dir, 'writer-stopped'), 'utf8'), 'stopped\n');
+ for (const [index, value] of readFileSync(path.join(dir, 'paths'), 'utf8').trim().split('\n').entries()) {
+ assert.equal(existsSync(index === 0 ? path.dirname(value) : value), false, value);
+ }
+ assert.equal(readFileSync(unowned, 'utf8'), 'keep');
+ assert.match(readFileSync(path.join(dir, 'docker-calls'), 'utf8'), /down -v/);
+ } finally {
+ if (child?.exitCode === null) child.kill('SIGTERM');
+ rmSync(dir, { recursive: true, force: true });
+ }
+ });
+}
diff --git a/tests/integration/scripts/run-tests.sh b/tests/integration/scripts/run-tests.sh
index 5864af2836..d9d326b8b1 100755
--- a/tests/integration/scripts/run-tests.sh
+++ b/tests/integration/scripts/run-tests.sh
@@ -10,6 +10,11 @@ set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
TEST_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
+# The outer process owns credentials and waits for all browser descendants.
+if [ "${1:-}" != --owned-run ]; then
+ exec python3 "$SCRIPT_DIR/owned-run.py" "${BASH_SOURCE[0]}" "$@"
+fi
+shift
SUITE="${1:-all}"
# Colors for output
@@ -28,7 +33,7 @@ REPO_ROOT="$(cd "$TEST_ROOT/../.." && pwd)"
# Unique per invocation, including simultaneous runs of the same checkout.
# Never inherit another runner's project, image tags or fixed host ports.
-export PULSE_E2E_RUN_ID="pulse-e2e-$(node -e "process.stdout.write(require('crypto').randomBytes(16).toString('hex'))")"
+: "${PULSE_E2E_RUN_ID:?owned-run supervisor required}"
export PULSE_E2E_SERVER_IMAGE="pulse:$PULSE_E2E_RUN_ID"
export PULSE_E2E_MOCK_IMAGE="pulse-mock-github:$PULSE_E2E_RUN_ID"
export PULSE_E2E_SERVER_CONTAINER="$PULSE_E2E_RUN_ID-server"
diff --git a/tests/integration/tests/helpers.ts b/tests/integration/tests/helpers.ts
index 0f45238751..7f44dfec18 100644
--- a/tests/integration/tests/helpers.ts
+++ b/tests/integration/tests/helpers.ts
@@ -1109,7 +1109,7 @@ export async function ensureSessionAuthenticated(page: Page) {
// that loads it lands on the login screen. Storage states must therefore
// always come from the cookie-backed password login.
const sharedCookieStatePath = (): string =>
- path.resolve(
+ process.env.PULSE_E2E_COOKIE_STATE_PATH?.trim() || path.resolve(
helpersDir,
"..",
"tmp",
diff --git a/tests/qualification/runner-isolation/2026-09-05-owned-writers.md b/tests/qualification/runner-isolation/2026-09-05-owned-writers.md
new file mode 100644
index 0000000000..5603ca413c
--- /dev/null
+++ b/tests/qualification/runner-isolation/2026-09-05-owned-writers.md
@@ -0,0 +1,61 @@
+# Owned browser writers — 5 September 2026
+
+Base: ddafcf53303d0637a6b138bb5920e4f8abc32a06 (main-based lane).
+Scope: qualification tooling only; no user-visible or permission change.
+
+Fresh external evidence: https://playwright.dev/docs/auth warns that stored
+browser state can impersonate test accounts. Wider discovery on September 5
+again found security/alerting concerns in
+https://www.reddit.com/r/Proxmox/comments/1vnztw1/enterprise_observability_solutions/;
+search excerpts only this turn, not a new demand count or full-thread triage.
+Neither source is demand for a sharing extension. The concrete local defect
+was shared cookie storage and shell-only interruption cleanup.
+
+The Linux shell runner now enters a Python child-subreaper supervisor. It
+allocates the invocation identity and private cookie directory, overrides
+inherited cookie paths, adopts orphaned writers and reaps them before deleting
+owned state. TERM/INT/HUP remove reports/results only after writers exit.
+Ordinary completion removes cookies but retains reports for inspection.
+Unresponsive writers receive KILL after five seconds; failure to reap within
+fifteen seconds retains artifacts and fails rather than claiming cleanup.
+
+Validation (focused fixtures, not Docker or browser qualification):
+
+- `python3 tests/integration/scripts/owned-run.test.py`: 3 passing test methods,
+ including success/nonzero exits, three catchable signals, a concurrently
+ running neighbour, detached late-writing grandchildren and TERM-resistant
+ writer escalation. Detached writer PID no longer exists after completion.
+- `node --test tests/integration/scripts/run-tests-images.test.mjs tests/integration/scripts/run-tests-cleanup.test.mjs tests/integration/scripts/run-tests-interruption.test.mjs`:
+ 19 passed. Three new shell-entrypoint tests observe a final writer marker,
+ absent owned roots, preserved unowned cookie and a compose-down invocation.
+ Docker/npx are fixtures: this does not prove actual container teardown.
+- Sharing-only managed-local-backend fixture: 1 passed.
+- Bash syntax and `git diff --check` passed.
+
+Limits: Linux/Python 3 and /proc are now explicit requirements for this isolated
+shell runner; unsupported platforms fail closed. Direct npm/setup/helper runs
+retain their existing weaker guarantees. Supervisor SIGKILL, host failure and
+unreapable processes require manual cleanup. No full suite/build/browser run
+was made and no diagnostic tier was promoted.
+
+Next qualification remains delayed outgoing admission, failed/superseded
+incoming admission and reconnect recovery. Inspect fresh 390x844 screenshots
+before changing or claiming polished table layout. The accepted identity/RBAC
+repair and happy-path matrix were not repeated. Real-browser interruption is
+still required before claiming browser-process cleanup beyond these fixtures.
+
+## Bounded preflight repair
+
+The first candidate omitted the same-commit deployment-installability contract
+and a registry-recognised orchestration proof. Added the actual supervisor
+requirements, lifecycle and failure limits to the contract's Purpose section.
+The recognised managed-local-backend test now executes cookie-path selection
+and the existing behavioural supervisor/shell fixtures. No exemption is used.
+
+Initial focused rerun: 22 passed, 4 discovery tests failed because this isolated
+checkout lacked Playwright dependencies. Installed the locked dependencies
+with `npm ci --ignore-scripts --no-audit --no-fund`; all 26 tests then passed,
+including diagnostic discovery and tier refusal (no browser launched).
+Canonical completion and browser-receipt guards passed/skipped as appropriate;
+contract, control-plane, status and registry audits returned zero. No new
+browser receipt was fabricated for this tooling-only change.