Skip to content

perf(routing): interpolate psychometric warm starts - #1061

Draft
seonghobae wants to merge 12 commits into
ContextualWisdomLab:codex/autoresearch-psychometric-observe-20260904from
seonghobae:codex/autoresearch-psychometric-heldout-20260904
Draft

seonghobae wants to merge 12 commits into
ContextualWisdomLab:codex/autoresearch-psychometric-observe-20260904from
seonghobae:codex/autoresearch-psychometric-heldout-20260904

Conversation

@seonghobae

@seonghobae seonghobae commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Successor tracking

The complete delta at this PR's head c5a09630b4473d6981f3fbc5c555fbbcd9406a74 is preserved in trusted-branch successor #1067 at 1481c595dc1d16e7bf4b65addaf0bd30322cf2b8. Commit ancestry and tree equality are recorded in docs/product-technical-gap-baseline.md. Review and required-workflow integration continue there. This PR remains open until protected delivery and a fresh full-delta audit; later changes here must also be carried forward.

Summary

  • interpolate two nearest positive-cosine psychometric contexts for unseen prompts
  • reject non-positive and non-finite embedding matches
  • add seeded held-out KPI, research map, and ADR 0034 evidence

Measured result

24 train/24 held-out contexts, four models:

  • expected Brier 0.1438369123 -> 0.1418346845 (1.39% lower)
  • log loss 0.4525311878 -> 0.4475784303
  • top-choice regret 0.0024259478 -> 0.0
  • decision p50 remains near the local 0.02 ms range

Expected Brier includes Bernoulli outcome variance. This is synthetic warm-start evidence, not buyer-held-out accuracy or production latency. Defaults remain unchanged.

Stack and exact-head verification

Both review findings are fixed and resolved.

Signed-off-by: Seongho Bae <me@seonghobae.me>
Signed-off-by: Seongho Bae <me@seonghobae.me>
Signed-off-by: Seongho Bae <me@seonghobae.me>
@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 492985c9-b21d-4173-96c5-eb22074f87cc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 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 ⚠️ Failed 2026-09-04T14:31:09.703303Z c5a0963 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.

Signed-off-by: Seongho Bae <me@seonghobae.me>
Signed-off-by: Seongho Bae <me@seonghobae.me>
Signed-off-by: Seongho Bae <me@seonghobae.me>

@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: f9bb820c41

ℹ️ 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 thread contextual_orchestrator/psychometric_routing.py
Signed-off-by: Seongho Bae <me@seonghobae.me>
Signed-off-by: Seongho Bae <me@seonghobae.me>
Signed-off-by: Seongho Bae <me@seonghobae.me>
Signed-off-by: Seongho Bae <me@seonghobae.me>

@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: cbe12d4792

ℹ️ 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 thread scripts/benchmark_psychometric_heldout.py Outdated
Signed-off-by: Seongho Bae <me@seonghobae.me>
seonghobae added a commit that referenced this pull request Sep 5, 2026
PR #1067 has exactly the same tree as #1058, already an ancestor of #1064.
Preserve both histories and the complete #1064 tree without reapplying
identical cherry-picked changes. The successor update remains a fast-forward.

Source tree: 8735f95
Predecessors: #1058, #1059, #1061, #1062, #1064.
No predecessor is closed before protected delivery and delta verification.

Signed-off-by: Seongho Bae <me@seonghobae.me>

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

OpenCode reviewed the current-head product diff. Coverage is a separate gate.

Changed files

  • CHANGELOG.md — repository behavior
  • contextual_orchestrator/psychometric_routing.py — Python module behavior
  • docs/doctoring/measured-routing-evidence.md — operator or user guidance
  • docs/papers/README.md — operator or user guidance
  • docs/planning/adrs/0034-anti-heuristic-routing-evidence.md — operator or user guidance
  • docs/product-technical-gap-baseline.md — operator or user guidance
  • scripts/benchmark_psychometric_heldout.py — Python module behavior
  • tests/test_psychometric_routing.py — regression suite

Changed behavior

flowchart LR
  PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
  Evidence --> S1["Repository file: CHANGELOG.md"]
  S1 --> I1["repository behavior"]
  I1 --> R1["Review risk: Repository file: CHANGELOG.md"]
  R1 --> V1["required checks"]
  Evidence --> S2["Python: psychometric_routing.py (2 files)"]
  S2 --> I2["Python module behavior"]
  I2 --> R2["Review risk: Python: psychometric_routing.py (2 files)"]
  R2 --> V2["pytest plus coverage"]
  Evidence --> S3["Docs: measured-routing-evidence.md (4 files)"]
  S3 --> I3["operator or user guidance"]
  I3 --> R3["Review risk: Docs: measured-routing-evidence.md (4 files)"]
  R3 --> V3["docs review"]
  Evidence --> S4["Test: test_psychometric_routing.py"]
  S4 --> I4["regression suite"]
  I4 --> R4["Review risk: Test: test_psychometric_routing.py"]
  R4 --> V4["targeted test run"]
Loading

Findings

No source-backed product finding is synthesized from the coverage gate. A coverage miss belongs in the status comment.

  • Head SHA: c5a09630b4473d6981f3fbc5c555fbbcd9406a74
  • Workflow run: 33898306468
  • Workflow attempt: 1
  • Coverage gate: failure

Review outcome

Coverage is a gate, not the review. This body reviews the changed product files.

Changed-File Evidence Map

flowchart LR
  PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
  Evidence --> S1["Repository file: CHANGELOG.md"]
  S1 --> I1["repository behavior"]
  I1 --> R1["Review risk: Repository file: CHANGELOG.md"]
  R1 --> V1["required checks"]
  Evidence --> S2["Python: psychometric_routing.py (2 files)"]
  S2 --> I2["Python module behavior"]
  I2 --> R2["Review risk: Python: psychometric_routing.py (2 files)"]
  R2 --> V2["pytest plus coverage"]
  Evidence --> S3["Docs: measured-routing-evidence.md (4 files)"]
  S3 --> I3["operator or user guidance"]
  I3 --> R3["Review risk: Docs: measured-routing-evidence.md (4 files)"]
  R3 --> V3["docs review"]
  Evidence --> S4["Test: test_psychometric_routing.py"]
  S4 --> I4["regression suite"]
  I4 --> R4["Review risk: Test: test_psychometric_routing.py"]
  R4 --> V4["targeted test run"]
Loading

@opencode-agent

opencode-agent Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

OpenCode Review Overview

Coverage evidence did not pass, so approval is blocked. The formal pull-request review is the source-backed diff review, not this status comment.

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

Labels

maintenance priority: medium Normal-priority or P2 work type: maintenance Maintenance, build, dependency, or operational upkeep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant