Skip to content

chore: remove concluded EXP-003 Jev capture shadow - #21976

Merged
Git-on-my-level merged 12 commits into
mainfrom
lane/jev-capture-shadow-removal
Oct 17, 2026
Merged

Git-on-my-level merged 12 commits into
mainfrom
lane/jev-capture-shadow-removal

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Remove the EXP-003 Jev capture shadow after its no-go decision. The experiment was log-only and never changed capture grouping or summaries, so this removal is behavior-neutral for users.

On David's labels, Jev got 3 of 14 “same” calls wrong (79% precision), below the preregistered 90% bar. The re-summary half is dropped. The deterministic shared-speech matcher (overlap_shared_speech.py, CAPTURE_SHARED_SPEECH_MODE) remains as the replacement.

Changes

  • Remove the six CAPTURE_JEV_SHADOW_* readers, implementation, call sites, tests, metrics, and configuration; regenerate backend/deploy/runtime_env.yaml with backend/deploy/compose_runtime_env.py.
  • Remove capture_shadow_outcomes.py: its only consumers recorded Separate/manual-merge outcomes for shadow decisions, and no other code used it.
  • Use PyYAML’s safe C loader when available in the offline frame-bucket manifest validator and cached runtime-manifest contract tests, preserving safe-loader fallbacks while reducing CPU time in timing-guarded checks.
  • Retire all six flag names with the 2026-10-17 decision and preserve EXP-003 as a concluded historical record.
  • Update pipeline, shared-speech, and sync runbook references. Keep relevance/owner Jev decisions, smart merge, and shared-speech behavior intact.

Cloud Run environment updates merge settings, so removed variables may linger harmlessly on live services until overwritten. The code no longer reads them; no workflow change is needed.

Product invariants affected

  • INV-MEM-4: runtime_env.yaml changes remove only EXP-003 bindings; this does not change canonical memory behavior.

Validation

  • nice -n 10 env BACKEND_UNIT_TEST_FILE_LIST=../.local/agent-tasks/jev-capture-shadow-test-files.txt bash backend/test.sh — passed (all 24 listed backend test files; exit 0).
  • nice -n 10 make preflight — passed, 47 checks.
  • Focused timing-guard reproduction for the frame-manifest, free-tier/VAD runtime-manifest, and memory-overlay tests — passed after safe C-loader acceleration.
  • nice -n 10 env PATH="$PWD/backend/.venv/bin:$PATH" bash backend/scripts/pre-deploy-check.sh — passed, 315 tests, hermetic read-only mode.
  • python3 scripts/check_feature_flag_registry.py — passed.
  • python3 scripts/render_feature_flag_registry.py --as-of 2026-10-17 — generated the registry.
  • git diff --check — passed.

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 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-17T07:05:31.050898Z 296c9f9 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.

@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: 31dc1b6e17

ℹ️ 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".

@@ -1,7 +1,11 @@
# EXP-003 — Jev capture shadow

**Outcome: no-go — concluded 2026-10-17.** On David's labels, Jev called 14 pairs “same” and got 3 wrong: **79% precision**, below the preregistered 90% bar. The re-summary half is dropped. The proposal is replaced by the deterministic shared-speech matcher in [`overlap_shared_speech.py`](../../utils/conversations/overlap_shared_speech.py), controlled by `CAPTURE_SHARED_SPEECH_MODE`; see the [shared-speech runbook](../operational/capture-shared-speech.md). The removed shadow was log-only and never changed grouping or summaries.

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 Use the actual preregistered same-scene bar

The outcome attributes a 90% precision bar to the same-scene decision, but the preserved Go/no-go section below preregistered a one-sided 95% upper false-fold bound below 1%, requiring at least 299 proposed folds when none are wrong; the 90% requirement applies only to re-summary. The 3/14 result still supports a no-go, but describing it as failing a preregistered 90% bar misstates the experiment protocol and should be replaced with the actual safety and sample-size criterion.

Useful? React with 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit 926ebe5 into main Oct 17, 2026
59 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/jev-capture-shadow-removal branch October 17, 2026 07:17
Git-on-my-level added a commit that referenced this pull request Oct 17, 2026
Backend unit shard 4/6 failed the fast-unit duration guard:
test_runtime_manifest_alone_cannot_claim_live_bucket_validation measured
1.04s CPU against CI's 1.00s ceiling because main() parsed the large
deploy/runtime_env.yaml manifest with pure-Python yaml.safe_load.

Apply the same fix main already landed in #21976: parse YAML through the
accelerated CSafeLoader (libyaml) when available, via a shared
_load_yaml_document helper, and use it from the manifest-reading test as
well. The whole file now runs under the guard with no warnings.
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