Skip to content

feat(reliability): add coding-safe compression profiles - #48

Merged
diegosouzapw merged 2 commits into
mainfrom
feat/port-pr-221-compression-profiles
Aug 17, 2026
Merged

feat(reliability): add coding-safe compression profiles#48
diegosouzapw merged 2 commits into
mainfrom
feat/port-pr-221-compression-profiles

Conversation

@diegosouzapw

Copy link
Copy Markdown
Owner

Summary

  • add coding-safe, balanced, aggressive and passthrough semantic profiles
  • preserve aggressive as the unchanged default
  • keep authority, schemas, reminders and live tool state native in safe profiles
  • add separate protected-history floors for Anthropic and GPT
  • prevent caller and Worker overrides from weakening a safe boundary
  • tighten safe-profile model scope to the measured default allowlist
  • support profile resolution in the public API, Node host and Worker host
  • conservatively recognize machine-readable coding state that should remain text

Validation

  • policy, model-scope, Anthropic, OpenAI, Node and Worker regressions added
  • lint passed
  • typecheck passed
  • build passed
  • full suite: 1,128 tests passed

Add non-weakenable semantic policies for native authority and live state, provider-specific history floors, and fail-closed model scope tightening. Keep the existing aggressive behavior as the default.

Co-authored-by: Alexandre Teixeira <alexandremagteixeira@gmail.com>

Inspired-by: teamchong/pxpipe#221
…ression-profiles

# Conflicts:
#	CHANGELOG.md
#	src/worker.ts
@sonarqubecloud

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@diegosouzapw
diegosouzapw merged commit 27327ea into main Aug 17, 2026
9 of 10 checks passed
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