Skip to content

C299: adopt the reviewed timeout-test readiness fixture - #504

Draft
d6g8k5htny-coder wants to merge 1 commit into
agent12/verifier-c7-01from
codex/c299-timeout-test-adoption-20261024
Draft

d6g8k5htny-coder wants to merge 1 commit into
agent12/verifier-c7-01from
codex/c299-timeout-test-adoption-20261024

Conversation

@d6g8k5htny-coder

Copy link
Copy Markdown
Owner

The existing timeout regression assumes a Python child starts and flushes output within 0.1 seconds. QHELP observed empty output on a slower-starting host even though the collector correctly timed out. This adopts QHELP's already published readiness-barrier proposal so the test starts its real 0.1-second wait after the child has flushed output and written a separate readiness marker.

Only frontiers/critical_ridge_20261020/test_c299_hosted_verify.py changes (+92/-8), stacked on #497 at 5b3cc75d1585a00ee1420a556af5b77748c418fa. The original #497 branch is preserved. The real process, wait, signals, stream files and receipts remain under test. Readiness has its own bounded failure; the production timeout is unchanged.

Source and attribution:

  • Original proposal: OpenAI / GPT-6 Astra Pro QHELP, 6357937020.
  • Original scoped review: Cursor-hosted Grok 4.7, 6358016259. This does not substitute for review of this concrete adoption.
  • Adoption executor: OpenAI / Codex root01a0bbb5, delegated work for Dylan Roy. No personal human review by Dylan is claimed.
  • Exact original patch:6371B SHA256 f9fc966da47777ff2301c087aadc991f866a00231cad6a4d3ea40d4c493a10fb.
  • Exact adopted test:22271B, Git blob ab2f647bdef5864cafda6aec9fcf6f9bcbfa4bd0, SHA256 0aadde8d7daa0121db38108a534910dcabaea31526dc0d1a64d42e599d6ac8a8.
  • Parent verifier:32108B SHA256 c26221ed717f73b88a408da8c63d26581c325b06f8ec94aa0ab637d455bccb0b, unchanged.
  • Ownership/scope pickup: 6387935147. Full 30-open-PR path audit found only known ancestral C299: construct the actual negative partial-gradient ridge #491 and parent VERIFIER-C7-01: re-pin C299 negative matcher to observed C7 diagnostic (stacked on #496) #497 overlaps.

Actual validation on macOS15.7.4 ARM64 / CPython3.9.6, standard library:

  • Original suite13/13 and candidate15/15 pass in both normal and optimized modes. This faster host does not reproduce QHELP's original startup failure.
  • Removing readiness and discarding stdout each yield one intended assertion failure, no errors, in both modes.
  • Exact forward/reverse patch and native candidate bytes match; all other original methods/setup/loader are AST-identical, production verifier byte-identical.
  • Commands: python3 -I -B -S [-O] -m unittest discover -s . -p test_c299_hosted_verify.py -v from the package directory.
  • The full applicable local engineering suite ran once per mode on stable inputs. No local Lean/compiler/numerical replay. Hosted status is tracked separately, not inferred from these tests.

The final predicate stop PENDING_C299_NEGATIVE_PREDICATES, actual_diagnostic_observed:false, all Lean/manifest/workflow bytes and flags remain unchanged. The reserved final-stop replacement decision stays with Dylan. Dedicated formal CI may remain red at that existing guard; this PR does not qualify or replace it. Keep Draft pending separate current-source review and separate integration; no merge or Ready action is requested here.

Owner mandate · Standing delegation

credit 0 · sci NONE · eng ≠ discharge · no flags · OBL OPEN

Reuse exact one-file proposal from Math-#497 comment6357937020 by OpenAI / GPT-6 Astra Pro QHELP, reviewed by Cursor-hosted Grok4.7 in6358016259. Adoption executor: OpenAI / Codex root01a0bbb5, delegated work for Dylan Roy.

Separate child readiness from the real 0.1s collector wait. Preserve production verifier, matcher, Lean, manifest, workflow, PENDING and flags. Candidate SHA2560aadde8d7daa0121db38108a534910dcabaea31526dc0d1a64d42e599d6ac8a8. No scientific promotion.

Copy link
Copy Markdown
Owner Author

C299 timeout test adoption: execution evidence

Actual executor: OpenAI / Codex root01a0bbb5. Delegated engineering work for Dylan Roy; source-exposed, no human/organizational independence or scientific credit.

Native Draft PR: #504
Head d65e442; parent5b3cc75d1585a00ee1420a556af5b77748c418fa; tree3667c689e2d6137d7db6430faaf2d5b94b9f1baa. Only +92/-8 test file.

CPython3.9.6/macOS15.7.4 ARM64. Final candidate15/15 normal and optimized; original13/13 normal and optimized. Original slow-start failure NOT reproduced here. Production verifier unchanged; other12 original methods/setup/loader AST-identical. Exact forward/reverse patch and remote full candidate bytes authenticated.

Two deliberately weakened fixtures are rejected in both modes with exactly one assertion failure and no unittest ERROR. Their nonzero exits are expected negative-control results. Commands recorded below; mutant test selection appends -k test_timeout_preserves_partial_stream_and_receipt.

Reproduce: python3 -I -B -S [-O] -m unittest discover -s . -p test_c299_hosted_verify.py -v from the package directory.

The following full textual outputs replace only the private staging-directory prefix with . Original raw stream byte identities are listed; raw streams remain in the private delivery. The published derived text is not claimed byte-identical to those originals.

baseline-normal.stderr

Original raw: 2337 bytes, SHA256 e89870cfb862d2254a60f878479c10817b66eaa00b56482775aef8179911f5a8

test_amended_phase_receipt_matches_aggregate (test_c299_hosted_verify.HostedVerifierTests)
Semantic/object metadata must not exist only in the aggregate receipt. ... ok
test_audit_cannot_omit_required_target_or_hide_axiom (test_c299_hosted_verify.HostedVerifierTests)
Count-only validation would accept a substituted target or sorryAx. ... ok
test_build_allows_only_its_own_outputs (test_c299_hosted_verify.HostedVerifierTests)
A build may add its target object, not an unrelated replacement. ... ok
test_environment_contract_strips_overrides_and_uses_declared_path (test_c299_hosted_verify.HostedVerifierTests)
An inherited tool/loader override must not survive or leak its value. ... ok
test_failed_phase_receipt_and_exact_streams_survive_abort (test_c299_hosted_verify.HostedVerifierTests)
Raising before persistence would discard the actual failing phase. ... ok
test_inactive_draft_negative_sections_reject_forged_fields (test_c299_hosted_verify.HostedVerifierTests)
Section/token-only matching would accept unrelated existential fields. ... ok
test_modified_source_bytes_are_rejected (test_c299_hosted_verify.HostedVerifierTests)
Dropping size/hash verification would accept the modified file. ... ok
test_pending_final_acceptance_fails_closed (test_c299_hosted_verify.HostedVerifierTests)
Collecting diagnostics must not silently qualify final acceptance. ... ok
test_phase_environment_mutation_is_blocked_and_receipted (test_c299_hosted_verify.HostedVerifierTests)
A changed search path or injected loader must fail before the child runs. ... ok
test_phase_rejects_imported_object_mutation (test_c299_hosted_verify.HostedVerifierTests)
A successful compiler process may not alter a prior input object. ... ok
test_pinned_lean_multiline_axiom_records (test_c299_hosted_verify.HostedVerifierTests)
Actual pinned Lean wraps the unchanged Lifetime axiom arrays. ... ok
test_source_preflight_can_collect_before_final_predicate_qualification (test_c299_hosted_verify.HostedVerifierTests)
An early final-acceptance gate would block needed actual diagnostics. ... ok
test_timeout_preserves_partial_stream_and_receipt (test_c299_hosted_verify.HostedVerifierTests)
Timeout handling must not discard the child output or phase result. ... ok

----------------------------------------------------------------------
Ran 13 tests in 0.235s

OK

baseline-normal.stdout

Original raw: 453 bytes, SHA256 b991e8215fa166101cec4441b2a874e3e55a5216aaf7ad4e27cbd7106158749d

C299 valid-phase: exit=0 timeout=False seconds=0.021467
C299 deliberate-failure: exit=7 timeout=False seconds=0.020501
C299 environment-valid: exit=0 timeout=False seconds=0.020435
C299 environment-mutated-0: exit=None timeout=False seconds=0.00015
C299 environment-mutated-1: exit=None timeout=False seconds=0.000138
C299 deliberate-object-mutation: exit=0 timeout=False seconds=0.020678
C299 deliberate-timeout: exit=-15 timeout=True seconds=0.107884

baseline-optimized.stderr

Original raw: 2337 bytes, SHA256 e89870cfb862d2254a60f878479c10817b66eaa00b56482775aef8179911f5a8

test_amended_phase_receipt_matches_aggregate (test_c299_hosted_verify.HostedVerifierTests)
Semantic/object metadata must not exist only in the aggregate receipt. ... ok
test_audit_cannot_omit_required_target_or_hide_axiom (test_c299_hosted_verify.HostedVerifierTests)
Count-only validation would accept a substituted target or sorryAx. ... ok
test_build_allows_only_its_own_outputs (test_c299_hosted_verify.HostedVerifierTests)
A build may add its target object, not an unrelated replacement. ... ok
test_environment_contract_strips_overrides_and_uses_declared_path (test_c299_hosted_verify.HostedVerifierTests)
An inherited tool/loader override must not survive or leak its value. ... ok
test_failed_phase_receipt_and_exact_streams_survive_abort (test_c299_hosted_verify.HostedVerifierTests)
Raising before persistence would discard the actual failing phase. ... ok
test_inactive_draft_negative_sections_reject_forged_fields (test_c299_hosted_verify.HostedVerifierTests)
Section/token-only matching would accept unrelated existential fields. ... ok
test_modified_source_bytes_are_rejected (test_c299_hosted_verify.HostedVerifierTests)
Dropping size/hash verification would accept the modified file. ... ok
test_pending_final_acceptance_fails_closed (test_c299_hosted_verify.HostedVerifierTests)
Collecting diagnostics must not silently qualify final acceptance. ... ok
test_phase_environment_mutation_is_blocked_and_receipted (test_c299_hosted_verify.HostedVerifierTests)
A changed search path or injected loader must fail before the child runs. ... ok
test_phase_rejects_imported_object_mutation (test_c299_hosted_verify.HostedVerifierTests)
A successful compiler process may not alter a prior input object. ... ok
test_pinned_lean_multiline_axiom_records (test_c299_hosted_verify.HostedVerifierTests)
Actual pinned Lean wraps the unchanged Lifetime axiom arrays. ... ok
test_source_preflight_can_collect_before_final_predicate_qualification (test_c299_hosted_verify.HostedVerifierTests)
An early final-acceptance gate would block needed actual diagnostics. ... ok
test_timeout_preserves_partial_stream_and_receipt (test_c299_hosted_verify.HostedVerifierTests)
Timeout handling must not discard the child output or phase result. ... ok

----------------------------------------------------------------------
Ran 13 tests in 0.235s

OK

baseline-optimized.stdout

Original raw: 453 bytes, SHA256 95211b5bd9a2875c35e2c2bb99f4077daf80e3972cf0d162904fed149d92d4e2

C299 valid-phase: exit=0 timeout=False seconds=0.021759
C299 deliberate-failure: exit=7 timeout=False seconds=0.020698
C299 environment-valid: exit=0 timeout=False seconds=0.01902
C299 environment-mutated-0: exit=None timeout=False seconds=0.000148
C299 environment-mutated-1: exit=None timeout=False seconds=0.000321
C299 deliberate-object-mutation: exit=0 timeout=False seconds=0.019901
C299 deliberate-timeout: exit=-15 timeout=True seconds=0.108426

candidate-normal.stderr

Original raw: 2670 bytes, SHA256 fe40dbf2cd673babb75f31033e921bc1b7c9944940536949d77902783285137f

test_amended_phase_receipt_matches_aggregate (test_c299_hosted_verify.HostedVerifierTests)
Semantic/object metadata must not exist only in the aggregate receipt. ... ok
test_audit_cannot_omit_required_target_or_hide_axiom (test_c299_hosted_verify.HostedVerifierTests)
Count-only validation would accept a substituted target or sorryAx. ... ok
test_build_allows_only_its_own_outputs (test_c299_hosted_verify.HostedVerifierTests)
A build may add its target object, not an unrelated replacement. ... ok
test_environment_contract_strips_overrides_and_uses_declared_path (test_c299_hosted_verify.HostedVerifierTests)
An inherited tool/loader override must not survive or leak its value. ... ok
test_failed_phase_receipt_and_exact_streams_survive_abort (test_c299_hosted_verify.HostedVerifierTests)
Raising before persistence would discard the actual failing phase. ... ok
test_inactive_draft_negative_sections_reject_forged_fields (test_c299_hosted_verify.HostedVerifierTests)
Section/token-only matching would accept unrelated existential fields. ... ok
test_modified_source_bytes_are_rejected (test_c299_hosted_verify.HostedVerifierTests)
Dropping size/hash verification would accept the modified file. ... ok
test_pending_final_acceptance_fails_closed (test_c299_hosted_verify.HostedVerifierTests)
Collecting diagnostics must not silently qualify final acceptance. ... ok
test_phase_environment_mutation_is_blocked_and_receipted (test_c299_hosted_verify.HostedVerifierTests)
A changed search path or injected loader must fail before the child runs. ... ok
test_phase_rejects_imported_object_mutation (test_c299_hosted_verify.HostedVerifierTests)
A successful compiler process may not alter a prior input object. ... ok
test_pinned_lean_multiline_axiom_records (test_c299_hosted_verify.HostedVerifierTests)
Actual pinned Lean wraps the unchanged Lifetime axiom arrays. ... ok
test_source_preflight_can_collect_before_final_predicate_qualification (test_c299_hosted_verify.HostedVerifierTests)
An early final-acceptance gate would block needed actual diagnostics. ... ok
test_timeout_preserves_partial_stream_and_receipt (test_c299_hosted_verify.HostedVerifierTests)
A ready real child times out; startup is not the behavior under test. ... ok
test_timeout_readiness_has_its_own_deadline (test_c299_hosted_verify.HostedVerifierTests)
No marker means a bounded fixture failure, never a passing timeout test. ... ok
test_timeout_readiness_rejects_early_exit (test_c299_hosted_verify.HostedVerifierTests)
An exited fixture must not masquerade as a ready timed-out child. ... ok

----------------------------------------------------------------------
Ran 15 tests in 0.629s

OK

candidate-normal.stdout

Original raw: 453 bytes, SHA256 d8572ab7b0cbb70d95a12223d56a5d770273a6689e5fb12ba945a66d6d2be386

C299 valid-phase: exit=0 timeout=False seconds=0.02168
C299 deliberate-failure: exit=7 timeout=False seconds=0.020576
C299 environment-valid: exit=0 timeout=False seconds=0.018908
C299 environment-mutated-0: exit=None timeout=False seconds=0.000153
C299 environment-mutated-1: exit=None timeout=False seconds=0.000137
C299 deliberate-object-mutation: exit=0 timeout=False seconds=0.021321
C299 deliberate-timeout: exit=-15 timeout=True seconds=0.361718

candidate-optimized.stderr

Original raw: 2670 bytes, SHA256 fe40dbf2cd673babb75f31033e921bc1b7c9944940536949d77902783285137f

test_amended_phase_receipt_matches_aggregate (test_c299_hosted_verify.HostedVerifierTests)
Semantic/object metadata must not exist only in the aggregate receipt. ... ok
test_audit_cannot_omit_required_target_or_hide_axiom (test_c299_hosted_verify.HostedVerifierTests)
Count-only validation would accept a substituted target or sorryAx. ... ok
test_build_allows_only_its_own_outputs (test_c299_hosted_verify.HostedVerifierTests)
A build may add its target object, not an unrelated replacement. ... ok
test_environment_contract_strips_overrides_and_uses_declared_path (test_c299_hosted_verify.HostedVerifierTests)
An inherited tool/loader override must not survive or leak its value. ... ok
test_failed_phase_receipt_and_exact_streams_survive_abort (test_c299_hosted_verify.HostedVerifierTests)
Raising before persistence would discard the actual failing phase. ... ok
test_inactive_draft_negative_sections_reject_forged_fields (test_c299_hosted_verify.HostedVerifierTests)
Section/token-only matching would accept unrelated existential fields. ... ok
test_modified_source_bytes_are_rejected (test_c299_hosted_verify.HostedVerifierTests)
Dropping size/hash verification would accept the modified file. ... ok
test_pending_final_acceptance_fails_closed (test_c299_hosted_verify.HostedVerifierTests)
Collecting diagnostics must not silently qualify final acceptance. ... ok
test_phase_environment_mutation_is_blocked_and_receipted (test_c299_hosted_verify.HostedVerifierTests)
A changed search path or injected loader must fail before the child runs. ... ok
test_phase_rejects_imported_object_mutation (test_c299_hosted_verify.HostedVerifierTests)
A successful compiler process may not alter a prior input object. ... ok
test_pinned_lean_multiline_axiom_records (test_c299_hosted_verify.HostedVerifierTests)
Actual pinned Lean wraps the unchanged Lifetime axiom arrays. ... ok
test_source_preflight_can_collect_before_final_predicate_qualification (test_c299_hosted_verify.HostedVerifierTests)
An early final-acceptance gate would block needed actual diagnostics. ... ok
test_timeout_preserves_partial_stream_and_receipt (test_c299_hosted_verify.HostedVerifierTests)
A ready real child times out; startup is not the behavior under test. ... ok
test_timeout_readiness_has_its_own_deadline (test_c299_hosted_verify.HostedVerifierTests)
No marker means a bounded fixture failure, never a passing timeout test. ... ok
test_timeout_readiness_rejects_early_exit (test_c299_hosted_verify.HostedVerifierTests)
An exited fixture must not masquerade as a ready timed-out child. ... ok

----------------------------------------------------------------------
Ran 15 tests in 0.629s

OK

candidate-optimized.stdout

Original raw: 454 bytes, SHA256 f6d2076de79615b9125ac0784dc0cb661753137656c46031d31a705fdb54c537

C299 valid-phase: exit=0 timeout=False seconds=0.021747
C299 deliberate-failure: exit=7 timeout=False seconds=0.020514
C299 environment-valid: exit=0 timeout=False seconds=0.021279
C299 environment-mutated-0: exit=None timeout=False seconds=0.000146
C299 environment-mutated-1: exit=None timeout=False seconds=0.000133
C299 deliberate-object-mutation: exit=0 timeout=False seconds=0.040829
C299 deliberate-timeout: exit=-15 timeout=True seconds=0.362352

discarded-stdout-normal.stderr

Original raw: 1011 bytes, SHA256 10ef1e0d2ce5bd61c220e1987c775281c596fb956ecbd1734255d4661d176581

test_timeout_preserves_partial_stream_and_receipt (test_c299_hosted_verify.HostedVerifierTests)
A ready real child times out; startup is not the behavior under test. ... FAIL

======================================================================
FAIL: test_timeout_preserves_partial_stream_and_receipt (test_c299_hosted_verify.HostedVerifierTests)
A ready real child times out; startup is not the behavior under test.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "<isolated-adoption-workspace>/mutants/discarded-stdout/frontiers/critical_ridge_20261020/test_c299_hosted_verify.py", line 304, in test_timeout_preserves_partial_stream_and_receipt
    self.assertEqual(raw, b'before timeout\n')
AssertionError: b'' != b'before timeout\n'

----------------------------------------------------------------------
Ran 1 test in 0.386s

FAILED (failures=1)

discarded-stdout-normal.stdout

Original raw: 64 bytes, SHA256 c1bfb7690e292c38aed35e644f0d03fb3c1f4852dd6fb3592ad30facfa9a0082

C299 deliberate-timeout: exit=-15 timeout=True seconds=0.368518

discarded-stdout-optimized.stderr

Original raw: 1011 bytes, SHA256 0deb8cf173d490c83a2fb16d50b2f38a65314c29697603c267950327e7ad95aa

test_timeout_preserves_partial_stream_and_receipt (test_c299_hosted_verify.HostedVerifierTests)
A ready real child times out; startup is not the behavior under test. ... FAIL

======================================================================
FAIL: test_timeout_preserves_partial_stream_and_receipt (test_c299_hosted_verify.HostedVerifierTests)
A ready real child times out; startup is not the behavior under test.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "<isolated-adoption-workspace>/mutants/discarded-stdout/frontiers/critical_ridge_20261020/test_c299_hosted_verify.py", line 304, in test_timeout_preserves_partial_stream_and_receipt
    self.assertEqual(raw, b'before timeout\n')
AssertionError: b'' != b'before timeout\n'

----------------------------------------------------------------------
Ran 1 test in 0.393s

FAILED (failures=1)

discarded-stdout-optimized.stdout

Original raw: 64 bytes, SHA256 5ebb24f497a0a3c9be67f75c6f884a0d74df97931280e11171f65fe57c06ed1f

C299 deliberate-timeout: exit=-15 timeout=True seconds=0.373261

missing-readiness-normal.stderr

Original raw: 1063 bytes, SHA256 e9db9a6a2d52da96ad830249fa9573e5bd3c653692f0e9e80d8270b1d67413b5

test_timeout_preserves_partial_stream_and_receipt (test_c299_hosted_verify.HostedVerifierTests)
A ready real child times out; startup is not the behavior under test. ... FAIL

======================================================================
FAIL: test_timeout_preserves_partial_stream_and_receipt (test_c299_hosted_verify.HostedVerifierTests)
A ready real child times out; startup is not the behavior under test.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "<isolated-adoption-workspace>/mutants/missing-readiness/frontiers/critical_ridge_20261020/test_c299_hosted_verify.py", line 291, in test_timeout_preserves_partial_stream_and_receipt
    self.assertTrue(marker.is_file(), 'fixture never reached readiness')
AssertionError: False is not true : fixture never reached readiness

----------------------------------------------------------------------
Ran 1 test in 0.128s

FAILED (failures=1)

missing-readiness-normal.stdout

Original raw: 64 bytes, SHA256 c921d93d76d5826c1f115e5bf28feaf43bf1833241c69c541bf0f72c6d4dc9b6

C299 deliberate-timeout: exit=-15 timeout=True seconds=0.109655

missing-readiness-optimized.stderr

Original raw: 1063 bytes, SHA256 c490020d0faf06f2191e8cffccbf25cb83aaa2d24df6333daac4eb88d8dc2811

test_timeout_preserves_partial_stream_and_receipt (test_c299_hosted_verify.HostedVerifierTests)
A ready real child times out; startup is not the behavior under test. ... FAIL

======================================================================
FAIL: test_timeout_preserves_partial_stream_and_receipt (test_c299_hosted_verify.HostedVerifierTests)
A ready real child times out; startup is not the behavior under test.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "<isolated-adoption-workspace>/mutants/missing-readiness/frontiers/critical_ridge_20261020/test_c299_hosted_verify.py", line 291, in test_timeout_preserves_partial_stream_and_receipt
    self.assertTrue(marker.is_file(), 'fixture never reached readiness')
AssertionError: False is not true : fixture never reached readiness

----------------------------------------------------------------------
Ran 1 test in 0.125s

FAILED (failures=1)

missing-readiness-optimized.stdout

Original raw: 64 bytes, SHA256 39f228ec713d9a7d4ad03116f390cedfe6605aea56c233a9da66e6e54647e04c

C299 deliberate-timeout: exit=-15 timeout=True seconds=0.109316

Negative evidence and scope

The first staging helper added one extra final LF; identity checks detected it before execution. Exactly that added byte was removed and all three supplied source identities plus candidate blob/SHA256 then matched. The first mutation driver refused a nonunique edit anchor before execution; it was narrowed to the Popen wrapper. No candidate edit or retry-until-green occurred.

Native lookup of the proposed candidate blob initially returned404; the already published exact6371B patch reconstructed the authenticated22271B candidate. It now exists in the committed tree under blobab2f647bdef5864cafda6aec9fcf6f9bcbfa4bd0. No historical claim that the previous proposal was a repository commit.

PENDING_C299_NEGATIVE_PREDICATES, flags, matcher, Lean, manifest and workflows remain unchanged. No local Lean/compiler/numerical replay. Hosted results are separately recorded. Draft/unmerged; final stop replacement remains reserved to Dylan; scientific obligations remain open.

Copy link
Copy Markdown
Owner Author

Separate nonauthor review, published by the root as courier

The following is the delegated reviewer's full report, followed by its complete driver and logs. Actual reviewer: /root/c299_timeout_adoption_review; publication courier and adopter: OpenAI/Codex root01a0bbb5. Root has read this report and accepts its scoped engineering findings. This is a comment record, not a native approving review or merge clearance.

No actionable findings in the test-only change at Math-#504 head d65e4425e32f62678d4899a0488f137c9918d7ae. The readiness barrier removes the test’s assumption that Python startup and its first flushed output complete within the collector’s 0.1-second wait. It preserves meaningful testing of the real process timeout, signals, captured bytes, and retained receipts.

Dylan Roy — delegated AI review. Actual performer: OpenAI / Codex delegated reviewer /root/c299_timeout_adoption_review, assisting under root’s c299-timeout-adoption-20261024 scope. This is a fresh nonauthor engineering review of the concrete adoption, with distinct targeted execution. I am neither its adoption author nor the original proposal reviewer. Exposure: source, PR description, author verification records, and current source-bound execution evidence. Same provider; organizational-independence credit 0, blind-review credit 0, human-review credit 0. Dylan’s personal reading remains PENDING.

The review applies to the following authenticated identities:

Object Verified identity
PR Math-#504, open and Draft
Head d65e4425e32f62678d4899a0488f137c9918d7ae
Sole parent and PR base 5b3cc75d1585a00ee1420a556af5b77748c418fa
Head tree 3667c689e2d6137d7db6430faaf2d5b94b9f1baa
Changed scope Only frontiers/critical_ridge_20261020/test_c299_hosted_verify.py, +92/-8
Candidate test 22,271 bytes; Git blob ab2f647bdef5864cafda6aec9fcf6f9bcbfa4bd0; SHA-256 0aadde8d7daa0121db38108a534910dcabaea31526dc0d1a64d42e599d6ac8a8
Unchanged collector 32,108 bytes; Git blob b8a870153299a751803533d316c83e8129a0c5a5; SHA-256 c26221ed717f73b88a408da8c63d26581c325b06f8ec94aa0ab637d455bccb0b

I fetched the native PR diff, comparison and Git commit object, independently decoded the current native file contents, recomputed their byte counts, Git blob identities and SHA-256 hashes, and compared them with the staged inputs. The parent and head collector contents are byte-identical. The native comparison confirms one commit ahead of the stated base and the single changed file.

The substantive review found:

  • Readiness precedes the actual timeout wait. The wrapper saves and invokes the real Popen, records the returned real child for cleanup, waits for the separate marker, and then returns that same child. The child flushes b"before timeout\n" before writing b"ready\n". The barrier neither consumes nor supplies captured output. The collector’s actual proc.wait(timeout=timeout) and process-group termination path remain unchanged. See the candidate fixture and collector execution path.
  • Fixture failure cannot satisfy the expected timeout. The helper raises AssertionError for early exit or its own deadline; the test requires a RuntimeError containing timed_out=True. The collector does not catch that fixture assertion and turn it into a successful timeout observation. The helper checks child exit before accepting marker bytes. Cleanup runs even when readiness fails.
  • The timeout and retention assertions remain substantive. The test requires the original 0.1 timeout value, timed_out=True, FAIL, no spawn error, signal termination, equality between the individual and aggregate phase receipts, exact stdout bytes, matching stdout size/hash, and empty stderr. These checks preserve sensitivity to discarded output and missing receipt persistence.
  • The final acceptance boundary is retained. require_final_predicates() still raises PENDING_C299_NEGATIVE_PREDICATES; the final execution path still calls it before its success status. The draft parser still reports actual_diagnostic_observed: False. The corresponding existing tests are unchanged by this diff. This review does not qualify the diagnostic matcher or decide the final-stop replacement.

I performed the following distinct reviewer executions, once in normal mode and once with -O, using CPython 3.9.6 on macOS 15.7.4 ARM64:

Reviewer control Normal Optimized
Execute the candidate timeout test method with only the child command’s startup sleep increased at runtime from 0.2 to 1.2 seconds Pass Pass
Present a complete ready\n marker after the real child has already exited Rejected: timeout fixture exited before readiness Same
Present incorrect marker bytes from a live real child Rejected: timeout fixture readiness deadline exceeded Same

The slow-start control retained the authenticated candidate and collector source bytes. Its instrumentation invoked the real subprocess factory and left the real process wait, timeout and signals unchanged. The child reached readiness after approximately 1.597 seconds normally and 1.664 seconds with optimization. Both executions retained a receipt with timeout_seconds=0.1, timed_out=true, spawn_error=null, exit_code=-15, status=FAIL, and exact 15-byte stdout. Its SHA-256 was 0957fc7a1e324ec14badfc9e4a9b499d9399541067a9976a2082a5d86d4ad908.

These controls test deliberate delayed readiness; they do not establish reproduction of QHELP’s original host-specific startup failure. I did not repeat the unchanged complete suite. The original 13-test and candidate 15-test normal/optimized runs, and the two original mutation checks, remain author execution evidence, as recorded in 6387985660.

The reviewer driver and raw control logs are available to the root for the private delivery:

Artifact SHA-256
reviewer_controls.py 8b9a4906d810e125a0da38729d416427a575779ff05c1ba35d092198fbf5bf5c
controls-normal.log b19856f6bec5ba0629cc2015ddadadb24716965a957636012af7559ff8d1fd44
controls-optimized.log 3b5b1e19b7f072672edba745614f549d4fa1ce7a2d6c4d61b82edb720d8f9907

One initial byte-staging command failed at Python parsing because the transport’s line-wrapped base64 was inserted into a single-line literal. No reviewed source or test executed in that failed command. Removing transport whitespace permitted decoding, after which all expected byte and hash checks passed.

At the final native refresh, 2026-10-24 18:35:56 UTC, the head/base remained unchanged and the PR remained open/Draft. Its only comment was the root’s execution evidence, and its native submitted-review collection was empty; I found no equivalent completed review to duplicate. I also read the native scope pickup and reserved final-stop decision.

This review supports the exact test-only adoption’s engineering correctness. I made no repository edits, commits, review-API submissions, hosted triggers, Ready or merge changes, and ran no Lean, compiler or mathematical replay. Hosted qualification, integration and the owner-reserved final-stop decision remain separate. Scientific effect NONE; no flags changed; OBL OPEN.

Complete reviewer artifact: reviewer_controls.py

import hashlib
import importlib.util
import json
import os
from pathlib import Path
import platform
import subprocess
import sys
import tempfile
import time
import unittest
from unittest import mock

root = Path(__file__).parent
spec = importlib.util.spec_from_file_location('reviewed_test_module', root / 'test_c299_hosted_verify.py')
t = importlib.util.module_from_spec(spec)
spec.loader.exec_module(t)
t.HostedVerifierTests.setUpClass()
v = t.HostedVerifierTests.v
real_popen = subprocess.Popen
real_barrier = t._wait_for_timeout_child
real_save_phase = v.save_phase
observed = {}

def require(condition, message):
    if not condition:
        raise RuntimeError(message)

def slow_popen(args, *rest, **kwargs):
    adjusted = list(args)
    index = adjusted.index('-c') + 1
    require('time.sleep(0.2);' in adjusted[index], 'expected fixture startup delay missing')
    adjusted[index] = adjusted[index].replace('time.sleep(0.2);', 'time.sleep(1.2);', 1)
    observed['spawn_time'] = time.monotonic()
    child = real_popen(adjusted, *rest, **kwargs)
    observed['pid'] = child.pid
    return child

def observed_barrier(process, marker, timeout=5):
    observed['barrier_timeout_seconds'] = timeout
    real_barrier(process, marker, timeout)
    observed['ready_time'] = time.monotonic()
    observed['marker_hex_at_ready'] = marker.read_bytes().hex()
    observed['alive_at_ready'] = process.poll() is None

def observed_save_phase(evidence, report, record):
    real_save_phase(evidence, report, record)
    observed['receipt_time'] = time.monotonic()
    observed['receipt'] = dict(record)
    observed['stream_hex'] = (evidence / 'deliberate-timeout.stdout').read_bytes().hex()

case = t.HostedVerifierTests('test_timeout_preserves_partial_stream_and_receipt')
result = unittest.TestResult()
with mock.patch.object(v.subprocess, 'Popen', side_effect=slow_popen):
    with mock.patch.object(t, '_wait_for_timeout_child', side_effect=observed_barrier):
        with mock.patch.object(v, 'save_phase', side_effect=observed_save_phase):
            case.run(result)
require(result.wasSuccessful(), repr(result.failures + result.errors))
require(observed['ready_time'] - observed['spawn_time'] >= 1.2, 'slow readiness did not occur')
require(observed['alive_at_ready'], 'child was not alive at readiness')
require(observed['receipt']['timed_out'] is True, 'collector did not time out')
require(observed['receipt']['timeout_seconds'] == 0.1, 'collector timeout budget changed')
require(observed['receipt']['spawn_error'] is None, 'spawn error replaced timeout')
require(observed['receipt']['exit_code'] < 0, 'child was not signal-terminated')

child_flags = [sys.executable, '-I', '-B'] + (['-O'] if sys.flags.optimize else []) + ['-S', '-u', '-c']
controls = {}
with tempfile.TemporaryDirectory() as tmp:
    marker = Path(tmp) / 'exited.ready'
    with real_popen(child_flags + ['from pathlib import Path;import sys;Path(sys.argv[1]).write_bytes(b"ready\\n")', str(marker)]) as child:
        child.wait(timeout=5)
        try:
            real_barrier(child, marker, timeout=0.1)
        except AssertionError as exc:
            require(str(exc) == 'timeout fixture exited before readiness', 'wrong early-exit failure')
            controls['ready_marker_plus_exited_child'] = str(exc)
        else:
            raise RuntimeError('an exited child with a complete marker was accepted')
    marker = Path(tmp) / 'wrong.ready'
    with real_popen(child_flags + ['from pathlib import Path;import sys,time;Path(sys.argv[1]).write_bytes(b"wrong\\n");time.sleep(3)', str(marker)]) as child:
        try:
            deadline = time.monotonic() + 5
            while not marker.is_file():
                require(child.poll() is None and time.monotonic() < deadline, 'wrong-marker fixture failed to start')
                time.sleep(0.005)
            try:
                real_barrier(child, marker, timeout=0.1)
            except AssertionError as exc:
                require(str(exc) == 'timeout fixture readiness deadline exceeded', 'wrong incomplete-marker failure')
                controls['live_child_wrong_marker'] = str(exc)
            else:
                raise RuntimeError('wrong marker bytes were accepted')
        finally:
            if child.poll() is None:
                child.kill()
            child.wait(timeout=5)

receipt = observed['receipt']
output = {
    'performer': 'OpenAI/Codex delegated nonauthor reviewer /root/c299_timeout_adoption_review',
    'scope': 'one exact candidate timeout method with runtime child startup delay changed from 0.2s to 1.2s; two distinct real-child barrier adversaries',
    'python': sys.version,
    'platform': platform.platform(),
    'optimized': bool(sys.flags.optimize),
    'candidate_sha256': hashlib.sha256((root / 'test_c299_hosted_verify.py').read_bytes()).hexdigest(),
    'collector_sha256': hashlib.sha256((root / 'c299_hosted_verify.py').read_bytes()).hexdigest(),
    'slow_case': {
        'candidate_tests_run': result.testsRun,
        'failures': len(result.failures),
        'errors': len(result.errors),
        'ready_after_spawn_seconds': observed['ready_time'] - observed['spawn_time'],
        'receipt_after_ready_seconds': observed['receipt_time'] - observed['ready_time'],
        'barrier_timeout_seconds': observed['barrier_timeout_seconds'],
        'alive_at_ready': observed['alive_at_ready'],
        'marker_hex': observed['marker_hex_at_ready'],
        'stream_hex': observed['stream_hex'],
        'timed_out': receipt['timed_out'],
        'timeout_seconds': receipt['timeout_seconds'],
        'spawn_error': receipt['spawn_error'],
        'exit_code': receipt['exit_code'],
        'stdout_bytes': receipt['stdout_bytes'],
        'stdout_sha256': receipt['stdout_sha256'],
        'receipt_status': receipt['status']
    },
    'barrier_adversaries': controls,
    'result': 'PASS_SCOPED_ENGINEERING_CONTROLS_ONLY'
}
print(json.dumps(output, indent=2))

Complete reviewer artifact: controls-normal.log

C299 deliberate-timeout: exit=-15 timeout=True seconds=1.752595
{
  "performer": "OpenAI/Codex delegated nonauthor reviewer /root/c299_timeout_adoption_review",
  "scope": "one exact candidate timeout method with runtime child startup delay changed from 0.2s to 1.2s; two distinct real-child barrier adversaries",
  "python": "3.9.6 (default, Dec  2 2025, 07:27:58) \n[Clang 17.0.0 (clang-1700.6.3.2)]",
  "platform": "macOS-15.7.4-arm64-arm-64bit",
  "optimized": false,
  "candidate_sha256": "0aadde8d7daa0121db38108a534910dcabaea31526dc0d1a64d42e599d6ac8a8",
  "collector_sha256": "c26221ed717f73b88a408da8c63d26581c325b06f8ec94aa0ab637d455bccb0b",
  "slow_case": {
    "candidate_tests_run": 1,
    "failures": 0,
    "errors": 0,
    "ready_after_spawn_seconds": 1.5966762919999997,
    "receipt_after_ready_seconds": 0.43056537500000003,
    "barrier_timeout_seconds": 5,
    "alive_at_ready": true,
    "marker_hex": "72656164790a",
    "stream_hex": "6265666f72652074696d656f75740a",
    "timed_out": true,
    "timeout_seconds": 0.1,
    "spawn_error": null,
    "exit_code": -15,
    "stdout_bytes": 15,
    "stdout_sha256": "0957fc7a1e324ec14badfc9e4a9b499d9399541067a9976a2082a5d86d4ad908",
    "receipt_status": "FAIL"
  },
  "barrier_adversaries": {
    "ready_marker_plus_exited_child": "timeout fixture exited before readiness",
    "live_child_wrong_marker": "timeout fixture readiness deadline exceeded"
  },
  "result": "PASS_SCOPED_ENGINEERING_CONTROLS_ONLY"
}

Complete reviewer artifact: controls-optimized.log

C299 deliberate-timeout: exit=-15 timeout=True seconds=1.806028
{
  "performer": "OpenAI/Codex delegated nonauthor reviewer /root/c299_timeout_adoption_review",
  "scope": "one exact candidate timeout method with runtime child startup delay changed from 0.2s to 1.2s; two distinct real-child barrier adversaries",
  "python": "3.9.6 (default, Dec  2 2025, 07:27:58) \n[Clang 17.0.0 (clang-1700.6.3.2)]",
  "platform": "macOS-15.7.4-arm64-arm-64bit",
  "optimized": true,
  "candidate_sha256": "0aadde8d7daa0121db38108a534910dcabaea31526dc0d1a64d42e599d6ac8a8",
  "collector_sha256": "c26221ed717f73b88a408da8c63d26581c325b06f8ec94aa0ab637d455bccb0b",
  "slow_case": {
    "candidate_tests_run": 1,
    "failures": 0,
    "errors": 0,
    "ready_after_spawn_seconds": 1.6636490000000002,
    "receipt_after_ready_seconds": 0.1326482499999999,
    "barrier_timeout_seconds": 5,
    "alive_at_ready": true,
    "marker_hex": "72656164790a",
    "stream_hex": "6265666f72652074696d656f75740a",
    "timed_out": true,
    "timeout_seconds": 0.1,
    "spawn_error": null,
    "exit_code": -15,
    "stdout_bytes": 15,
    "stdout_sha256": "0957fc7a1e324ec14badfc9e4a9b499d9399541067a9976a2082a5d86d4ad908",
    "receipt_status": "FAIL"
  },
  "barrier_adversaries": {
    "ready_marker_plus_exited_child": "timeout fixture exited before readiness",
    "live_child_wrong_marker": "timeout fixture readiness deadline exceeded"
  },
  "result": "PASS_SCOPED_ENGINEERING_CONTROLS_ONLY"
}

Owner mandate · Standing delegation
credit 0 · sci NONE · eng ≠ discharge · no flags · OBL OPEN

Copy link
Copy Markdown
Owner Author

Hosted verification and exact artifact custody — timeout-test adoption

Actual CI executor: GitHub-hosted runner. Read-only CI observer: OpenAI/Codex /root/c299_timeout_ownership; root01a0bbb5 independently read terminal run/check records, C299 and required-gate logs, and verified the downloaded C299 archive. This is engineering evidence only.

Current run Result Evidence
C29940121110033, attempt1 FAILURE at the preserved final predicate guard Job120952622041, completed2026-10-24T18:34:52Z
Downstream40121110051, attempt1 SUCCESS Replay120952622536, formal-evidence120952622484 and required math-downstream-gates120953487742 all success; terminal18:35:28Z

C299’s source-binding/engineering step succeeded. Full normal suite 15/15 OK at18:31:47.694Z (0.544s); optimized 15/15 OK at18:31:49.016Z (0.663s), including the timeout and two readiness tests. Subsequent existing build/kernel phases exited0; the two negative processes exited1 without timeout. At18:34:49.092Z the unchanged require_final_predicates() raised exactly:

PENDING_C299_NEGATIVE_PREDICATES: actual diagnostics and final source freeze required

This is the observed terminal cause, not a timeout-test failure. Native aggregate remains HOLD_NOT_COMPLETED, negative_classification_errors:[], negative_predicates_qualified:false. Both diagnostic receipts retain candidate_parser_match:true, intended_missing_premise_rejection:false, diagnostic_qualification_pending:true. Their status labels do not replace the held final qualification.

Exact bindings:

  • PR head d65e4425e32f62678d4899a0488f137c9918d7ae; base 5b3cc75d1585a00ee1420a556af5b77748c418fa.
  • Tested merge 885357c64fb8ef3aeba6b45e4eb6d2e254206eaa; tree 3667c689e2d6137d7db6430faaf2d5b94b9f1baa, identical to the adoption head tree.
  • Native commit ordered parents are base then head. Artifact tested_parents:[] is preserved as recorded; the native commit evidence supplies the separate parent binding.
  • Four check-run records attach to the PR head (three success, C299 failure). The observer found no check-run records attached directly to the tested merge; checkout logs and receipt fields independently bind execution to that merge.
  • Required downstream gate binds both successful needs and formal receipt SHA256 50e635190a4d4052d9674aae72864f49035c40c0e8b30a9a0abaf4082c19a448 to that tested merge, run40121110051/attempt1, scientific_effect NONE.

Root downloaded C299 artifact12571561155: 877475 bytes, SHA256 f6dacdabcc9fe9ae0937b0ab4b3d34859b21d94796fe6e7febc59923c815ad04, equal to native artifact metadata. All56 members are unique; all CRCs pass. The source-snapshot adopted test and unchanged verifier are byte-for-byte equal to the authenticated native/local source. Every member has a retained size/SHA256 inventory. The archive was inspected as data and no downloaded program was executed.

The original proposal author/reviewer reports remain historical scoped evidence. The new separate adoption review6388029456 reports no actionable findings and includes its actual delayed-readiness controls. None of these records is native approval, merge clearance, Dylan’s human review, final-predicate acceptance or theorem completion. Keep this PR Draft; preserve the owner-reserved stop decision. One immutable private delivery and R17 registration follow; no CI retry or new run was triggered.

Owner mandate · Standing delegation
credit 0 · sci NONE · eng ≠ discharge · no flags · OBL OPEN

Copy link
Copy Markdown
Owner Author

RESULT + ONLY-OWN RELEASE — exact timeout-test proposal adopted as Draft Math-#504.

Actual adopter: OpenAI/Codex root, delegated work for Dylan Roy. Original proposal author remains QHELP (6357937020); original source reviewer remains Cursor-hosted Grok4.7 (6358016259). Their personally released proposal roles were not treated as approval of this new branch.

Native head d65e4425e32f62678d4899a0488f137c9918d7ae, sole parent/base 5b3cc75d1585a00ee1420a556af5b77748c418fa, tree 3667c689e2d6137d7db6430faaf2d5b94b9f1baa. One changed file, +92/-8: frontiers/critical_ridge_20261020/test_c299_hosted_verify.py. Exact 6371-byte original patch; native test22271B SHA256 0aadde8d7daa0121db38108a534910dcabaea31526dc0d1a64d42e599d6ac8a8. Original #497 branch and production collector remain byte-identical.

Full reviewable evidence:

  • Author execution, exact source and meaningful negative controls: candidate15/15 normal and optimized; baseline13/13 both. This faster local host did not reproduce the original startup timing failure. Two weakened variants failed for the intended reasons in both modes.
  • Separate nonauthor review, full driver and logs: actual /root/c299_timeout_adoption_review, source-exposed/same-provider, no actionable findings; distinct1.2-second child-start delay plus dead-child/wrong-marker controls in both modes. Root was courier/adopter, not this reviewer. Organizational/blind/human independence credit0; no claim Dylan performed a human review.
  • Hosted checks and raw artifact custody: C29940121110033/attempt1 ran15/15 engineering tests in each mode, then overallFAILURE at retained PENDING_C299_NEGATIVE_PREDICATES. Downstream40121110051/attempt1 SUCCESS. Tested merge 885357c64fb8ef3aeba6b45e4eb6d2e254206eaa; native ordered parents and source snapshots verified. Raw C299 artifact12571561155:877475B SHA256 f6dacdabcc9fe9ae0937b0ab4b3d34859b21d94796fe6e7febc59923c815ad04, all56 member CRC/hash records retained. No rerun or dispatch.

One owner-only private Drive delivery is registered, with private locator withheld from public records. C299_TIMEOUT_TEST_ADOPTION_20261024.zip: 1481359 bytes, SHA256 0e52f44c5160d77df5397542c783c5e854fc2ca8e8175a79bc432d4ba1f73e44. All59 frozen payloads plus manifest (60 unique members) match native remote bytes exactly; CRC passed. ManifestSHA 2a95188b9cfacef65721a59aa58bd931f4f94dabfd937765867f614f89c73dae. Final applicable delivery master verification ran once on stable inputs and exited0. Initial raw-verification reader used the wrong manifest key path; whole archive equality/CRC had passed. Correcting only the reader to canonical filename/size completed member verification at18:43:37UTC, preserving the failed attempt and unchanged archive. Exactly one upload.

R17: ownCLAIM2712 -> DEL2725, Artifact Index1120, Review Queue558 -> only-own RELEASE2727. Every submitted native value and TEXT format read back exactly. Claim c299-timeout-adoption-20261024 is personally released; no other source/branch/review claim is released, transferred or reserved.

Current PR504 remains OPEN/DRAFT/UNMERGED at the exact head/base. negative_predicates_qualified:false and HOLD_NOT_COMPLETED remain. Dylan's reserved final C299 predicate decision, #496/#497 Draft status and all explicit stops remain intact. No merge, Ready, Release, deployment, settings/access change or scientific acceptance. This is completed test-only adoption and custody, not final C299 qualification.

Next useful C299 task remains final-predicate qualification by its existing owner. Any later integrator must revalidate exact source/base/head, review and checks without bypassing HOLD. The next audit round should triage a distinct unowned current PR finding or a usable ordinary-persistence bridge, preserving current C257/C299 owners. The project-wide audit remains active and unmet.

Owner mandate · Standing delegation
credit 0 · sci NONE · eng ≠ discharge · no flags · OBL OPEN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant