Skip to content

fix(core): preserve exact inputs across automatic compaction - #439

Merged
lg2m merged 1 commit into
fix/history-recallfrom
fix/compaction-instructions
Oct 23, 2026
Merged

lg2m merged 1 commit into
fix/history-recallfrom
fix/compaction-instructions

Conversation

@lg2m

@lg2m lg2m commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Early instructions and later corrections now survive automatic compaction even when they exceed the old 64 KiB record cap. Stacked on #437; this is the fourth task #5 slice in docs/plans/README.md.

Context assembly restores exact task text, applied steering and answered user questions from durable source rows, including legacy summaries and admission after a failed fold. Generated continuation prompts stay out of this projection. Removed the lossy user-message record builder; stored summaries retain bounded work metadata. Live splices, replay and reservations use the same projected bytes. An empty failed attempt cannot move the retained steering boundary. Answer retrieval has a partial index.

Verified cd79e5dc: formatting, repository lint, strict all-feature Clippy, 2,428 affected-package tests (15 skipped), and all 11 CLI/server smoke scenarios passed. Regressions failed before the fixes. An isolated real server retained an 80,070-byte instruction and four ordered corrections through four automatic compactions and restart; an empty summary preserved its cutoff, four artifacts were written once, and the protected file stayed unchanged. Zero manual compactions. Reviewed the diff, source ordering, capacity failures, migration compatibility and replay locally.

Exact inputs count toward finite model/storage limits. An irreducible projection fails the affected run normally with source history intact; another session remains usable. Manual /compact remains optional. The initial aggregate gate caught shifted legacy sleep references; after updating their locations, its stages passed individually. These deterministic checks establish the exercised recovery behavior, not comparative model quality or a multi-day production qualification.

lg2m commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 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-23T05:57:17.020801Z cd79e5d Manual request
ℹ️ 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

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: cd79e5dcf1

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

@lg2m
lg2m added this pull request to stack #438 October 23, 2026 06:05
@lg2m
lg2m merged commit d3db2b4 into main Oct 23, 2026
7 checks passed
@lg2m
lg2m deleted the fix/compaction-instructions branch October 23, 2026 06:07
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