fix(sessions): harden full-access follow-ups - #167
Conversation
리뷰 (#165 후속)브랜치를 체크아웃해서 #165 리뷰에서 남긴 항목 전부 구현 확인 ✅
특히 꼼꼼했던 부분:
🟡 BRE 판별기가 엉뚱한 위치를 검사합니다
그리고 유일하게 동작하는
제안: 본문 대신 문맥을 보기
function inlineMathShouldNormalize(text: string, openIndex: number, closeIndex: number): boolean {
const before = text[openIndex - 1] ?? '';
// A shell-quoted pattern is a regex, not math.
if (before === "'" || before === '"') return false;
// BRE postfix operators follow the group, not its body.
const after = text.slice(closeIndex + 2, closeIndex + 8);
return !/^\\(?:[+?]|[1-9]|\{\d+(?:,\d*)?\\\})/.test(after);
}로컬에서 붙여 확인한 결과입니다.
이 방식이면 🟡 킬스위치가
|
|
리뷰 코멘트를
검증:
|
|
추가 경계 사례를
최종 로컬 검증: |
✅ LGTM
BRE 판별기제안은 최종 HEAD 에서 재확인한 결과입니다. 셸 패턴 — 보존 LaTeX — 정상 변환 닫는 괄호 뒤의 이전 라운드의 회귀 케이스 23건(펜스 크로싱, 펜스 내부, 인라인 코드, 킬스위치trim + 소문자화 후 full-access 하드닝첫 리뷰에서 확인한 내용 그대로 유지됩니다 — 3중 킬스위치(capability / 라우트 / 미반영 (기록용, 블로커 아님)
(검증 방법: PR HEAD 체크아웃 후 |
Summary
grep '\(a\|b\)'from ordinary inline math while allowing units such asspeed \(v\)/sCHATMUX_DISABLE_FULL_ACCESS=1kill switch to capability discovery and spawn enforcementFollow-up to #165, based on the
1.12.0main from #166.Verification
npm run verifyon1.12.0