0.2.1: typed full-name mentions; edits keep links whose text remains #7
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 455 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · 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.366
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7"
general
weight: 0.35
BenA-SA
What
The 0.2.1 follow-ups to #6, implementing two product rules: typing an exact full name (
@Ben Atkinson) mentions that person, and an edit keeps every@/#link whose text is still there (and drops the ones whose text was removed), even when the editor can no longer see the target.1. Typed full-name mentions (ADR-0010)
@, case-insensitive. The longest mentionable full name wins (@Ann Leeover@Ann), and it must end at a word boundary (@Ann Leedsis not Ann Lee). If no name matches, the existing single-token handle is used.HUDDLE_FREE_TYPED_MENTIONS(on by default) covers both.@trigger now allows up to three words, so@Ben Akeeps narrowing. A multi-word query with no match renders nothing instead of "No matches".2. Edits keep links whose text remains (ADR-0011)
#unavailable-1,#unavailable-2… numbered per distinct token in order of first appearance. This is used by the HTML edit form, the RESTtextfield andChatService.edit_message(). I chose this over hidden inputs so the text stays the single source of truth for all three paths.ChatService.kept_links(user, message)rebuilds the editor's forms. Any existing mention (of a user who still exists) or recorded reference whose form is still in the text is kept verbatim, without a permission re-check and without a new signal. Remove the text and the link and itsMessageReferencerow go.<@…>/<#…>stay neutralised, and#unavailable-1in another message is just text. A form shared by two tokens (two people with the same name) is treated as ambiguous and goes through the normal rules.New public helpers:
ChatService.kept_links(),KeptLinks,MessageMarkup.editable_forms(),ChatRenderer.editable_links(),markup.mention_name(). The version is bumped to 0.2.1 (pyproject.toml,__init__,uv.lock) and the changelog has a 0.2.1 section. Not tagged.Testing
tests/test_full_names_and_edits.py). They cover longest-match, word boundary, ambiguity without fallback, the setting, partial-name autocomplete, numbered placeholders, keeping and dropping hidden references independently, keeping a mention of someone no longer mentionable, per-message placeholders, no forging, no signals for kept links, ambiguous forms and deleted users, and HTML-form and REST-PATCH round trips.ruff,mypy --strict,tox -f py314(Django 6.0 + 6.1) andpre-commit run --all-filesall pass.AI Provenance
Checklist