Skip to content

Generate handoff checkpoints in the active conversation - #60

Open
alosec wants to merge 5 commits into
mainfrom
codex/handoff-tool-references
Open

Generate handoff checkpoints in the active conversation#60
alosec wants to merge 5 commits into
mainfrom
codex/handoff-tool-references

Conversation

@alosec

@alosec alosec commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Handoff mode now requests a checkpoint by appending a short instruction to the active conversation, preserving the existing prompt prefix. Pressure is checked before each model call, including after tool results, instead of only at the start of a user turn. The instruction asks for a concise checkpoint at the current safe boundary and bounds generation.

After rotation, retain at most four small dialogue messages within 4,096 serialized characters. Omit oversized messages, tool calls/results, images, and old token usage; the full conversation remains archived. This prevents a small retention target from pulling an entire tool-heavy turn into the new context. Native compaction remains available.

Also make the stale-run timeout configurable within a bounded range while preserving the existing default, so slower local inference can be configured without changing other deployments.

Validation: handoff regression tests, TypeScript compilation, and public-safety checks. Regressions cover exact prefix preservation, pressure from new tool output, bounded retained dialogue, cleared historical usage, original-data preservation, and private checkpoint projection. Live latency validation is still in progress.

@alosec alosec changed the title Bound retained handoff tool outputs and configure stale-run timeout Generate handoff checkpoints in the active conversation Sep 9, 2026
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