Skip to content

feat(core): trace lifecycle helper and first-text delivery stages - #29

Merged
sam2tom merged 1 commit into
betafrom
codex/core-lifecycle-helper-observation
Oct 11, 2026
Merged

sam2tom merged 1 commit into
betafrom
codex/core-lifecycle-helper-observation

Conversation

@sam2tom

@sam2tom sam2tom commented Oct 11, 2026

Copy link
Copy Markdown

Core latency logs could not associate lifecycle work within a reconcile pass or distinguish first-text receipt, committed public events, and SSE delivery. This change adds bounded observations for those boundaries and for the E2B helper's parent invocation, Python startup, and execute interval.

First-text observations associate the source execution ordinal with the actual generated public EventID. A failed or uncertain append does not claim that a candidate event was committed; an idempotent replay without a public mapping remains unobserved. SSE observations select the first nonempty text for each observed Turn in a connection, with a fixed non-evicting limit, and record Write and Flush outcomes without claiming client receipt.

No public API, Runtime wire, SQL, scheduling order, or provider SDK operation order changes. Helper changes ship with the Core image; this change does not require rebuilding the Runtime template. It adds observability and does not establish a production performance improvement.

Validation: affected observation race tests, real PostgreSQL commit/unknown/rollback/replay/cancellation/delayed-commit cases, two Turns on one SSE connection with authoritative EventID/sequence readback, and HTTP stream regression tests passed. Python helper tests (283), Core build, naming checks, and bilingual documentation checks passed. A fresh independent reviewer checked all 27 changed files and found no P1/P2 findings. The reviewed file hashes were verified again before commit.

The full API race suite reports TestUnknownMembersRejectWithLinearAllocation: the same command on clean base 3f684ae9 reproduces the same allocation threshold failures (160 MiB / 10 MiB). This is not reported as a passing suite or attributed to this patch. No unrelated test was changed. Real production timing verification remains pending deployment.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T14:02:32.550137Z 2df72e0 PR opened
ℹ️ 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.

@sam2tom
sam2tom merged commit d54ea86 into beta Oct 11, 2026
19 checks passed
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