Skip to content

feat: add server-owned summary-only compaction v3#80

Draft
acastellana wants to merge 1 commit into
mainfrom
feat/semantic-context-compaction
Draft

feat: add server-owned summary-only compaction v3#80
acastellana wants to merge 1 commit into
mainfrom
feat/semantic-context-compaction

Conversation

@acastellana

@acastellana acastellana commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Adds a strict, stateless POST /v1/compact contract v3 that accepts only an optional raw previous summary and newly aged complete interaction groups.
  • Keeps authority messages, the retained tail, framing, layout, and splice decisions in the client.
  • Uses an operator-owned compact profile with one routed attempt, bounded input/output, validated provider completion and usage metadata, and path-owned operation:compact authorization.
  • Records billing and safe operation metadata without persisting messages, summaries, previous summaries, or decision traces.

Why

The earlier contract made the router responsible for too much client context layout and pushed defensive state into SubZeroClaw. The v3 boundary makes the router a narrowly scoped summarization transform, so the runtime can stay synchronous and lean while retaining local authority over exactly what enters its model context.

Validation

  • 548 passed, 2 skipped in the Python suite.
  • 5 passed in antseed/db.test.js.
  • Real HTTP E2E from the SubZeroClaw binary through the FastAPI compact endpoint, including an applied byte-reducing seal.

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

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: defaults

Review profile: CHILL

Plan: Pro

Run ID: 33b0a447-3eaa-4d1a-b4ec-a79d9cf21643

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/semantic-context-compaction

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.

@acastellana acastellana force-pushed the feat/semantic-context-compaction branch from 013d4b5 to 35bd707 Compare July 13, 2026 17:23
@acastellana acastellana changed the title feat: add stateless semantic compaction v2 feat: add server-owned summary-only compaction v3 Jul 13, 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