Contract: state three review page and hosted site states, and close the gap that missed them #100
All Vouch review confidence checks passed
Residual risk 0.34 = Change Risk (0.45) × (1 − Review Confidence (0.25)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 440 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 45% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.364
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #100"
general
weight: 0.35
chatgpt-codex-connector[bot]
Summary
Three states that tests prove but no criterion stated, how each was missed, and the skill changes that stop it recurring. Backfilling Tieline's own screens left 8 of its 11 screens unlinked. Tracing each one:
| Screen | How it was missed | Fix |
|---|---|---|
| Onboarding empty page ("No capabilities yet") | Added in #30, which changed
src/contract/review-page.ts, a file CONTRACT-001-AC4 implements. AC4 says only "render … a self-contained human-readable review page", which the change leaves true, so the new state counted as covered. #30 didn't touch the contract. | A scenario on CONTRACT-001-AC4, withtest-tieline.tslinked || "The contract does not validate" | Added in #96 (mine), the same file and the same broad criterion. I added scenarios for the change markers, not for this state. | A scenario on CONTRACT-001-AC4, with
test-review-changes.tslinked || Hosted site "not configured" | Written in the same commit as CONTRACT-005-AC14 (#90). Its test is linked under AC14, but AC14's text describes only the main path. | A scenario on CONTRACT-005-AC14 |
| Canvas, detail panel, filtered view | My backfill linked one screen per criterion and filed these as states "no criterion covers". CONTRACT-005-AC5 already promises them. The skill said "catalog the screen", singular, and the sweep step never asked whether an existing criterion already states a found state. | Skill wording below; linked in the scratch backfill |
| Search with no matches, everything expanded | Incidental UI states. | None: unlinked is right |
The common pattern: a broad criterion that a change leaves true counts as coverage, so new states, whether empty, error or configuration, slip through. The data to catch them was always there. Matching each unlinked screen's
pathsagainst the criteria thatimplementsthose files suggests the right criterion for all six.Changes
skills/tieline/SKILL.md):-
coverednow requires a criterion that states the behavior's observable outcome;- a new empty, error, permission or configuration state, or an outcome a linked test proves but the criterion doesn't state, is an
updateor anadd.references/screens-capture.md):- one criterion can show several screens;
- before treating a swept state as uncovered, look for the criterion that states it, starting with those whose
implementslinks name the screen's files;- on a branch, link each new state to its criterion.
Protected surfaces
npm run test:guardrails(48, 12 and 18 passing), with new assertions intest-tieline.tsthat pin the guidance.Test plan
npm run check: exit 0conductor/screens-backfill-fixes: passFollow-ups (not in this PR)
tieline screens auditcould list unlinked screens with the criteria that implement their files, mechanically, as above. A suggestion only, never a failure.Stacked on #99.
🤖 Generated with Claude Code