Skip to content

docs: add the tracked reliability-hardening control matrix (#211) - #502

Merged
sumithr merged 1 commit into
mainfrom
docs/issue-211-reliability-hardening-matrix
Jul 13, 2026
Merged

sumithr merged 1 commit into
mainfrom
docs/issue-211-reliability-hardening-matrix

Conversation

@sumithr

@sumithr sumithr commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Part of #211.

What

Adds the tracked reliability-hardening control matrix the epic requires (docs/RELIABILITY-HARDENING.md), replacing the gitignored local draft as shipped evidence, plus its README docs-index line.

For each of the four weaknesses (prompt dependence, verbosity fatigue, enforcement uncertainty, shallow static analysis) the matrix records: the merged control and owning issue/PR, exact code/test/eval/doc evidence, the backward-compatible default, the accepted residual limit, and follow-up issues. Each row is classified mitigated or intentionally bounded so a maintainer can rerun the original four-risk analysis against main.

Evidence

  • Docs-only diff (one new doc + one README index line). Docs gates run locally: no em-dashes (2 files scanned clean), markdown links (196 passed), codeblock file refs resolve; every file path cited in the matrix verified to exist on main.
  • Full suite on merged main v0.55.0 in a fresh CI-extras clone: exit 0, zero failures, 100% coverage over 7847 statements.
  • Focused suites named by the epic's verification section (conformance validator, skill-prompt profiles, gate evidence models + validation, token budget, semantic analysis, tools-list contract): 132 passed.
  • Live behavioral gate on merged main, all four controls through real runs: a real SUMO_QA_DEBUG_DIR capture scores conformance S01 PASS with a demonstrated wrong-routing failure; the default profile serves SKILL.md byte-identically with concise prepending the never-optional floor and invalid values falling back to the default hash; an evidence-free "passed" gate claim raises value_error while the negation-aware lint spares "NOT safe to merge"; a real git diff maps to the changed symbol, its owning test, citations, and an explicit unsupported-language fallback.
  • Eval gate: not applicable (no skills/*/SKILL.md or promptfoo YAML changed).
  • Codex adversarial pass: skipped (Codex CLI/model configuration unavailable in-session); docs-only diff gated on the checks above.

@sumithr
sumithr merged commit a5f0ea0 into main Jul 13, 2026
33 checks passed
@sumithr
sumithr deleted the docs/issue-211-reliability-hardening-matrix branch July 13, 2026 18:50
sumithr added a commit that referenced this pull request Jul 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.55.1](v0.55.0...v0.55.1)
(2026-07-13)


### Documentation

* add the tracked reliability-hardening control matrix
([#211](#211))
([#502](#502))
([a5f0ea0](a5f0ea0))

---
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>
sumithr added a commit that referenced this pull request Jul 20, 2026
…esult (#556)

## 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)

- **#393 over-cap progressive-loading pointer.** Load-bearing without
profiles: `sumo-qa-reviewing-before-merge` is ~18,141 tokens, over the
12,000 per-response cap, so its tool call would fail opaquely without
the pointer that redirects the host to load it in slices.
- **#476 conformance capture-wrapping.** `maybe_capture` records every
skill-tool call for a `SUMO_QA_DEBUG_DIR` conformance capture (#214); no
profile logic touches it.
- The progressive-loading loader (`sumo_qa_load_skill_context`,
`sumoqa://` resources) stays as the fallback the #393 pointer redirects
to.

## 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.
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.

2 participants