Skip to content

fix(optics): keep observation records honest - #146

Merged
zacharybalicki merged 1 commit into
mainfrom
cursor/optics-observe-fixes-c44b
Oct 1, 2026
Merged

zacharybalicki merged 1 commit into
mainfrom
cursor/optics-observe-fixes-c44b

Conversation

@zacharybalicki

@zacharybalicki zacharybalicki commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

CANDIDATE_ONLY. No npm publish, no PyPI publish, and no install.vantio.ai go-live.

Kate queue

Order: #142 → #144 → #145 → #146 → #148 → #149 → PE #15 (#147 merged).

Approve exact head only (kvantio). No admin bypass.

Current head: ec9fe97fc112d0ad81959807a098e26a465ea9e8

Rebased onto main a81df8b9dc3852326b8ce0b25f70fe8f70eae3f8 (#145). No conflicts. Observe-only. Enforcement removed in #147 stays removed.

What this does

Observation slice only (does not remove enforcement — that was #147).

http.client stores the status from getresponse() and clears pending state when that call throws, so a later response is not attached to the failed request. VANTIO_INGEST_URL keeps its path. A worker thread's call stays on the shield run record.

The http.client success path now records status 200 and a successful application outcome. A parent that already owns the HTTP call, such as urllib, does not have its record rewritten by this hook.

Reproduction notes

  • On the shipping base, http.client recorded the call at request() with no status. The regression test covers a thrown getresponse() and the next successful call.
  • The worker-thread miss was not reproduced on main; the regression test still expects both calls on the shield record.
  • Ingest still posting when response.clone() throws was not reproduced on main. This branch does not defer the post into the clone callback.

Do not merge until CI is green, independent council is PASS or PASS_WITH_NONBLOCKING_NOTES, and exact-head kvantio APPROVE.

kvantio
kvantio previously approved these changes Sep 30, 2026
getresponse stores the HTTP status on the pending call and clears that pending state when it throws, so the next response is not attached to the failed request. VANTIO_INGEST_URL keeps its path. A worker thread's call stays on the shield run record.

Rebased onto main after enforcement removal. Optics stays observe-only.

CANDIDATE_ONLY. Not published.
@zacharybalicki
zacharybalicki force-pushed the cursor/optics-observe-fixes-c44b branch from ca01ec1 to ec9fe97 Compare October 1, 2026 00:24
@zacharybalicki
zacharybalicki merged commit 2e4e3b9 into main Oct 1, 2026
8 checks passed

Copy link
Copy Markdown
Member Author

FOUNDER_OVERRIDE_MERGE (not Kate/kvantio)

  • Exact head: ec9fe97fc112d0ad81959807a098e26a465ea9e8
  • Squash: 2e4e3b9bd58005c9ff72198bbef34f715d3e77d5
  • Council: PASS
  • CANDIDATE_ONLY; rebuild OK; no publish. Merge ≠ proof.

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.

2 participants