Skip to content

fix(interrupt): don't send the interrupt-close row to providers that own their transcript (t_f40dc54a) - #1101

Merged
Kyzcreig merged 1 commit into
mainfrom
fix/t_f40dc54a-bridge-omit-interrupt-close
Sep 25, 2026
Merged

Kyzcreig merged 1 commit into
mainfrom
fix/t_f40dc54a-bridge-omit-interrupt-close

Conversation

@Kyzcreig

@Kyzcreig Kyzcreig commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

See commit. Opt-in field; consumers are the claude-bpr/bpx provider plugins (hermes-home), which set owns_transcript=True guarded by a field-exists check so they stay loadable on runtimes that predate this PR. Card t_f40dc54a.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…own their transcript (t_f40dc54a)

close_interrupted_tool_sequence() appends a harness-authored assistant row
(partial text or 'Operation interrupted.', flagged _interrupt_close) on every
interrupted turn, including a gateway restart. For a bridge relay over a
resident CLI session that row is an assistant reply the CLI never produced;
the relay's continuation gate reports final-reply-produced-elsewhere and
re-sends the whole history into a fresh session. Live 2026-09-25 sub-vps-1:
one 828k-token re-mint on the first turn after the 06:25 PT restart.

New opt-in ProviderProfile.owns_transcript (default False). When the active
provider's profile sets it, the send path omits interrupt-close rows from the
wire. Persisted history is untouched; strict-alternation providers (NousResearch#48879)
keep the row. Lookup fails open (row sent).

Tests: row detection, default False, lookup + fail-open, bridge omits / native
keeps, and a contract test on the send-path wiring (red with the wiring
reverted). 356 interrupt/sanitize/close tests + 92 provider tests green.
@Kyzcreig

Copy link
Copy Markdown
Collaborator Author

🤖 merged-by: apollo · lane: kanban-t_f40dc54a · gate: BYPASS: FR PAUSED by Ace ruling 2026-09-22 (state/fleetreview-pause-20260922.md); Apollo-reviewed lands via bypass · why: Apollo own fix: opt-in ProviderProfile.owns_transcript; send path omits interrupt-close rows for such providers; persisted history + strict-alternation lanes unchanged; fail-open; contract test red with wiring reverted; 356+92 tests; CI 39/39

@Kyzcreig
Kyzcreig added this pull request to the merge queue Sep 25, 2026
Merged via the queue into main with commit 6dc7032 Sep 25, 2026
58 checks passed
@Kyzcreig
Kyzcreig deleted the fix/t_f40dc54a-bridge-omit-interrupt-close branch September 25, 2026 22:34
@Kyzcreig Kyzcreig added the fleetreview:post-merge Ask FleetReview to review this MERGED pull (merge commit vs first parent) label Sep 25, 2026
@ang-prism

ang-prism Bot commented Sep 26, 2026

Copy link
Copy Markdown

FleetReview

FleetReview's daily member-call budget is spent (600/600 for 2026-09-26 UTC); review skipped.


FleetReview · reviewKind: skipped-budget

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

Labels

fleetreview:post-merge Ask FleetReview to review this MERGED pull (merge commit vs first parent)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant