Skip to content

feat(reliability): add coding-safe compression profile - #221

Open
alteixeira20 wants to merge 1 commit into
teamchong:mainfrom
alteixeira20:upstream-export/01-provider-contracts
Open

feat(reliability): add coding-safe compression profile#221
alteixeira20 wants to merge 1 commit into
teamchong:mainfrom
alteixeira20:upstream-export/01-provider-contracts

Conversation

@alteixeira20

Copy link
Copy Markdown
Contributor

Problem

For coding agents, reducing every eligible block is not the same as preserving exact working state. Authority text, tool schemas, live source/tool output, diffs, diagnostics, paths, and identifiers are materially riskier to change modality than old closed conversation history.

Changes

  • add explicit coding-safe, balanced, aggressive, and passthrough profiles;
  • preserve the existing upstream behavior when PXPIPE_PROFILE is unset;
  • keep tools and live tool results native in safe profiles;
  • limit safe compression to sufficiently old, closed history;
  • add a conservative keep-sharp classifier for code, diffs, diagnostics, stack traces, structured state, paths, and machine identifiers;
  • prevent caller overrides from weakening that guard;
  • keep safe-profile model admission limited to upstream's existing evidence-backed default models;
  • expose profile-local library/applicability APIs;
  • wire profile selection into the Node host;
  • add provider-neutral regression contracts for schemas, Responses call/output ordering, native images, response bytes, and provider headers.

Scope

No AGY aliases, Codex routing, provider router, dashboard redesign, model promotion, or cache optimizer.

The unset-profile behavior is intentionally unchanged.

Validation

Validated from a branch based directly on current upstream 0.13.1:

  • production dependency audit;
  • TypeScript typecheck;
  • focused safety/contracts tests;
  • full test suite;
  • build;
  • Worker dry-run;
  • git diff --check.

No raw prompts, credentials, session files, machine identifiers, or temporary validation machinery are included.

@alteixeira20
alteixeira20 force-pushed the upstream-export/01-provider-contracts branch from 6cf4f7b to 5c8a5f4 Compare August 12, 2026 03:54
@alteixeira20
alteixeira20 marked this pull request as ready for review August 12, 2026 03:59
@alteixeira20
alteixeira20 force-pushed the upstream-export/01-provider-contracts branch from 5c8a5f4 to 79747a3 Compare August 12, 2026 05:24
atmediallc pushed a commit to atmediallc/OmniGlyph that referenced this pull request Aug 17, 2026
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
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