Skip to content

Add Adaption hosted contract and bounded HTTPS runner - #18

Merged
k2jac9 merged 10 commits into
mainfrom
feat/offline-adaption-hosted
Nov 16, 2026
Merged

k2jac9 merged 10 commits into
mainfrom
feat/offline-adaption-hosted

Conversation

@k2jac9

@k2jac9 k2jac9 commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Adds a frozen Adaption request/response contract and bounded HTTPS/process runner with durable claims and conservative holds for ambiguous delivery. The runner always reaps its owned child on parent interruption, and synthetic ledger connections close explicitly rather than relying on garbage collection.

This PR targets main after #20 and #19 merged. The combined workflow retains all five Rust/Python runtime lanes, the previous-stable checkout check and both hosted fixture stages. Existing commits and experimental receipts are preserved.

Independent offline review reproduced the interrupt-cleanup and connection-lifetime issues before their fixes. Hosted CI then exposed startup assumptions in two fixture families. The corrected tests wait for real claims or child readiness before expiring the supervisor test clock, preserve real process termination and partial bytes, and separately assert before/after-claim expiry refuses dispatch. Production deadline and accounting gates were not relaxed.

Validation at 0afe43eb1e729b9a0896685b22072d8da48b3962: every runtime lane passed 362 Rust tests, 440 Python script tests, 18 reference and 8 oracle checks, plus the explicit integration/example stages. No warnings or test skips appeared in the retained logs. The previous-stable checkout job also passed. Exact-head CI. Delayed-startup RED/GREEN reproductions and all original failed runs are retained.

These changes include no live provider request or billing reconciliation. Mock transport, canned subprocesses and fixtures establish the tested offline contracts only. The report in #19 remains independently pinned to measured source 20fab84a; the local correction pilot in #21 uses a separate model/runtime.

See docs/incident-hosted-runner.md and docs/hosted-integration.md for execution boundaries and evidence locations.

Integration verification at 1822891c2e02b0316b17d7cd03937d29cc5c6719 passes all five runtime lanes and the checkout compatibility job (CI). The stable lane passed 362 Rust, 441 script, 18 reference and 8 oracle tests with no warnings or skips. A new integration run exposed an existing receipt-hang test racing its 1.5-second startup window. The independently reviewed test-only correction waits for matching durable artifact/SQLite receipts before advancing the parent watchdog clock, asserts real SIGKILL/reaping and retained accounting, and adds a delayed-start regression. Production gates and the separate startup-expiry refusal test are unchanged. The original failed run and delayed-start RED/GREEN evidence are retained.

@k2jac9 k2jac9 changed the title Add offline Adaption hosted contract and durable accounting Add Adaption hosted contract and bounded HTTPS runner Nov 14, 2026
@k2jac9
k2jac9 marked this pull request as ready for review November 16, 2026 05:48
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T07:04:56.980218Z 1822891 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@k2jac9
k2jac9 changed the base branch from main to feat/evidence-reliability-20261115 November 16, 2026 05:50
@k2jac9
k2jac9 changed the base branch from feat/evidence-reliability-20261115 to main November 16, 2026 06:51
@k2jac9
k2jac9 merged commit 539bef2 into main Nov 16, 2026
12 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1822891c2e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +213 to +215
if process is not None and process.pid is not None:
if process.is_alive():
process.kill()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make child launch interruption-safe before relying on its PID

If SIGINT arrives during process.start() after the fork but before multiprocessing assigns Process._popen, the child already exists while process.pid still returns None. This cleanup guard therefore skips it. If the embedding caller catches KeyboardInterrupt and remains alive, parent-death protection does not fire, and the child continues without the parent watchdog. I reproduced this by delivering SIGINT immediately after multiprocessing.popen_fork.Popen._launch returned: the hanging fixture child remained alive beyond its deadline. Make launch and child-handle publication interruption-safe so cleanup can always terminate an already-forked child.

Useful? React with 👍 / 👎.

@k2jac9
k2jac9 deleted the feat/offline-adaption-hosted branch November 16, 2026 07:32
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