oficina / docs Public

Check all typing assertions after the random kill delay

Paul Campbell pushed by paul@keymail.dev fbaf11d21d0d9d41c485434a3693af34d810e3b3 parent 8f25e2f
2 files changed, +10 −1
  • docs/testing/k3-evidence.md +8 −0
  • native/scripts/test-offline-kill.py +2 −1

CI passed — run details

diff --git a/docs/testing/k3-evidence.md b/docs/testing/k3-evidence.md
index 77f2f02..6a79796 100644
--- a/docs/testing/k3-evidence.md
+++ b/docs/testing/k3-evidence.md
@@ -142,3 +142,11 @@ write: the same seed passed offline recovery and exact server convergence. Logs:
Final-head gates and repeated kill runs are reported on #69; local logs use
`/tmp/k3-docs-review-final-{gate,native,kill*}.log`. Build stages run serially,
with rustup cargo first and TMPDIR=/tmp; xcodegen runs before xcodebuild.
+
+
+At 8f25e2f the full local Docs gates passed (82 XCTest cases, four fixture skips,
+16 Swift Testing cases, parked-update and wire checks); deterministic SIGKILL and
+random seeds 1/17/2 all passed. Final harness review moved the existing writer-log
+assertion check after process termination so random typing cannot emit an assertion
+between the check and SIGKILL without failing the script. Final-head reruns and
+cleanup are recorded on #69.
diff --git a/native/scripts/test-offline-kill.py b/native/scripts/test-offline-kill.py
index 294b624..4bbfd0d 100755
--- a/native/scripts/test-offline-kill.py
+++ b/native/scripts/test-offline-kill.py
@@ -41,7 +41,6 @@ with tempfile.TemporaryDirectory(prefix="docs-k3-kill-", dir="/tmp") as tmp:
with (scratch / "writer.log").open("w") as log:
writer = subprocess.Popen(command, cwd=root, env=dict(env, DOCS_KILL_MODE="write"), stdout=log, stderr=subprocess.STDOUT, start_new_session=True)
wait_for(scratch / "kill-now", writer)
- assert ": error:" not in (scratch / "writer.log").read_text(), "typing assertions failed before kill"
if args.random:
# Only the controller waits; the editing process never pauses
# for us and can die during a command, enqueue, or writer tick.
@@ -50,6 +49,8 @@ with tempfile.TemporaryDirectory(prefix="docs-k3-kill-", dir="/tmp") as tmp:
os.kill(pid, signal.SIGKILL)
result = writer.wait(timeout=20)
assert result != 0, "typing process unexpectedly succeeded"
+ # Include assertions emitted during the controller’s random delay.
+ assert ": error:" not in (scratch / "writer.log").read_text(), "typing assertions failed before kill"
if args.random:
print(f"SIGKILL during unpaused typing + writer ticks (seed={seed}, delay={kill_delay:.6f}s)", flush=True)
else: