Skip to content

revert: remove the output-profile feature (#215/#471) as a negative result - #556

Merged
sumithr merged 2 commits into
mainfrom
revert/remove-output-profiles
Jul 20, 2026
Merged

sumithr merged 2 commits into
mainfrom
revert/remove-output-profiles

Conversation

@sumithr

@sumithr sumithr commented Jul 20, 2026 •

Copy link
Copy Markdown
Owner

What

Reverts commit 577527e (PR #471, issue #215): the SUMO_QA_OUTPUT_PROFILE output-profile feature. This is a documented negative result, not a bug fix.

The feature is removed entirely: the concise/strict serve-time overlays, the SUMO_QA_OUTPUT_PROFILE env var, _CONCISE_OVERLAY / _STRICT_OVERLAY / _NEVER_OPTIONAL / _resolve_output_profile / _profile_overlay, the profile test suite, and the profile documentation across CONFIGURATION.md, TOOLS.md, SKILLS.md, ARCHITECTURE.md. Skill serving returns to the pre-#215 behavior: each SKILL.md body served byte-for-byte.

Why

The output profiles were meant to let a user tune how much output they get, so a small change would not bury them in a full QA audit. Measurement under the #528 investigation showed a serve-time prompt overlay cannot reliably do that:

  • On a strong model, given a tightened reply contract and grounded input, the model still produced a full structured QA plan. The task-completion drive overrides a prepended "be brief".
  • On a weak model, the instruction was ignored amid ~10x run-to-run variance; the aggregate showed no reliable reduction (and a conceptual Q&A came out longer).

A serve-time overlay is a prepended instruction; it loses the tug-of-war with the skill body and the model's drive to complete the task. Rather than keep a knob that does not do its job, the feature is removed. If reply length must be controlled, the effective levers are host-side (the host's own output settings) or fewer, more structured turns, not a served overlay.

What is kept (deliberately, verified independent of profiles)

Docs

The single-commit revert cannot reach references added by later PRs, so one was fixed by hand: the epic #211 "verbosity fatigue" control row in RELIABILITY-HARDENING.md (added by #502) is rewritten from "mitigated by profiles" to an honest negative result (control tried, measured, reverted; residual: verbosity left to the host).

Regression

  • ruff check + mypy clean (74 source files).
  • Full suite green, 100% coverage (skill_prompts.py 106 -> 75 statements). CI matrix green on the final head f3c6386; scoped mutation gate green.

Review

Codex (bot) raised a P2 on the byte-for-byte serving contract: the reverted body-match test used a weak in (contains) assertion that would accept a reintroduced overlay wrapper. Fixed in f3c6386 - restored exact equality (bodies[tool_name] == expected_text) and added test_output_profile_env_is_inert_after_revert, which asserts SUMO_QA_OUTPUT_PROFILE (concise/strict/lean/nonsense) leaves the served body byte-identical, guarding against a silent reintroduction. Thread resolved.

Supersedes / closes

Closes #528 (the re-scope investigation, concluded as this negative result) and #536 (cost follow-up on the wrong framing). Supersedes PR #535 (the concise re-scope), now closed.

…esult

Reverts 577527e. SUMO_QA_OUTPUT_PROFILE (the concise/strict serve-time overlays,
plus the lean profile explored under #528) is removed. Measurement under the #528
investigation showed a serve-time prompt overlay cannot reliably reduce the reply
a host emits: a strong model, given the tightened contract and grounded input,
still produced a full structured QA plan, and a weak model ignored the brevity
instruction amid ~10x run-to-run variance. The model's task-completion drive
overrides a prepended "be brief", so the knob did not do its job and is dead code.

- Reverts the profile overlay system in skill_prompts.py, keeping the #476
  conformance capture-wrapping and the #393 over-cap pointer (both unrelated).
- Removes the profile docs from CONFIGURATION, TOOLS, SKILLS, ARCHITECTURE.
- Rewrites the epic #211 "verbosity fatigue" control row in
  RELIABILITY-HARDENING.md to record the negative result honestly.

Regression: ruff + mypy clean; 3211 passed, 100% coverage.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b736babe43

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

Comment thread tests/test_skill_prompts.py Resolved
…uard the removed env var

Codex P2 on #556: the reverted body-match test used 'in' (contains), which would
accept a reintroduced overlay wrapper and defeat the byte-for-byte serving contract
this revert establishes. Restore exact equality, and add a guard that
SUMO_QA_OUTPUT_PROFILE stays inert so the removed feature cannot silently return.
@sumithr
sumithr merged commit c5eee44 into main Jul 20, 2026
33 checks passed
@sumithr
sumithr deleted the revert/remove-output-profiles branch July 20, 2026 10:20
sumithr added a commit that referenced this pull request Jul 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.57.1](v0.57.0...v0.57.1)
(2026-07-20)


### Reverts

* remove the output-profile feature
([#215](https://github.com/sumithr/sumo-qa/issues/215)/[#471](https://github.com/sumithr/sumo-qa/issues/471))
as a negative result
([#556](#556))
([c5eee44](c5eee44))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <release-please[bot]@users.noreply.github.com>
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.

profiles: concise fails its cost contract end-to-end (measured ~2x session tokens, longer answers)

1 participant