Skip to content

reason: stop injecting hardcoded contract boilerplate - #300

Merged
hurttlocker merged 1 commit into
mainfrom
fix/reason-quality-contract-pass-through
Mar 5, 2026
Merged

hurttlocker merged 1 commit into
mainfrom
fix/reason-quality-contract-pass-through

Conversation

@hurttlocker

Copy link
Copy Markdown
Owner

Summary

Removes the internal boilerplate rewrite path in enforceResponseQualityContract() so Cortex reason returns the model output unchanged.

Why

The previous behavior could hide real model behavior and emit repetitive low-signal text ("normalized to required output contract"), which polluted digest workflows.

Changes

  • internal/reason/quality_contract.go
    • enforceResponseQualityContract() now passthroughs trimmed model output.
  • internal/reason/quality_contract_test.go
    • updated test to assert passthrough behavior.

Validation

  • go test ./internal/reason
  • go test ./...

Linked Issue

Closes #299

@hurttlocker
hurttlocker merged commit cb60ada into main Mar 5, 2026
4 checks passed
@hurttlocker
hurttlocker deleted the fix/reason-quality-contract-pass-through branch March 5, 2026 01:28
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.

reason: remove hardcoded quality-contract boilerplate injection

1 participant