Interlock · Experiment E12실험 E12

Semantic conflicts, caught before the merge의미 충돌, 병합 전에 잡기

Most of what breaks parallel agents is not a merge conflict. One agent renames a record key or makes a function refuse a new case; another agent’s new code, written at the same time, still uses the old behaviour. Git merges both cleanly and the result is wrong. E12 measures how many of these Interlock catches while the agents work, on sets nobody had seen, against five targets we fixed before measuring.병렬 에이전트를 깨뜨리는 것은 대부분 병합 충돌이 아닙니다. 한 에이전트가 레코드 키 이름을 바꾸거나 함수가 새 경우를 거부하게 만드는 동안, 다른 에이전트가 같은 때 쓴 새 코드는 옛 동작을 그대로 씁니다. git은 둘을 깨끗이 합치지만 결과는 틀립니다. E12는 이런 충돌을 Interlock이 작업 중에 얼마나 잡는지, 아무도 본 적 없는 세트에서, 측정 전에 정한 다섯 목표로 잽니다.

Rounds 21 to 24 ran 2026-10-29 to 31 on Interlock V3.20.0 to V3.23.1, each round on a commit fixed before its run. Agents: Claude Code 2.1.312 (round 21) and 2.1.314 (round 24), headless; Shepherd 0.11.4 as in E11. In sets M and N every agent had its own simulated machine, as on set Q of E11.21~24차는 2026-10-29~31에 Interlock V3.20.0~V3.23.1로 돌렸고, 차수마다 실행 전에 커밋을 고정했습니다. 에이전트는 Claude Code 2.1.312(21차)와 2.1.314(24차), 헤드리스입니다. Shepherd는 E11과 같은 0.11.4입니다. 세트 M·N에서는 에이전트마다 다른 기계를 재현했습니다(E11의 세트 Q와 같은 방식). Summary data (JSON)요약 데이터 (JSON)

The five targets, on V3.23.1다섯 목표, V3.23.1 기준

We set these on 2026-10-29, before any measurement, and committed them with the criteria. A target is met only if every criterion holds; for targets 1 and 2, in each of three replay orders.2026-10-29, 아무것도 재기 전에 기준과 함께 커밋했습니다. 기준을 모두 넘어야 달성이고, 목표 1·2는 세 가지 재생 순서 각각에서 넘어야 합니다.

Target목표Criterion기준Result결과Verdict판정
1 Interface인터페이스recall ≥ 0.99, lower bound ≥ 0.98, precision ≥ 0.99재현율 ≥ 0.99, 하한 ≥ 0.98, 정밀도 ≥ 0.99651/651, lower bound 0.995, precision 1.000651/651, 하한 0.995, 정밀도 1.000Met달성
2 Behaviour동작F1 ≥ 0.8, precision ≥ 0.9F1 ≥ 0.8, 정밀도 ≥ 0.9F1 0.832, precision 0.978, recall 181/250F1 0.832, 정밀도 0.978, 재현율 181/250Met달성
3 Parallelism병렬성as correct as serial (−2 points), median time ≤ no tool ÷ 0.9직렬만큼 정확(−2%p), 시간 중앙값 ≤ 도구 없음 ÷ 0.960/60 = serial 60/60; 61.7 s ≤ 80.0 s60/60 = 직렬 60/60, 61.7초 ≤ 80.0초Met달성
4 Stronger model강한 모델Sonnet 5.5, Interlock − Shepherd, 95% CI lower bound > 0Sonnet 5.5, Interlock − Shepherd, 95% 신뢰구간 하한 > 060/60 vs 55/60, +8.3 points (+3.3 to +15.0)60/60 대 55/60, +8.3%p(+3.3~+15.0)Met달성
5 Speed속도pre-edit hook p95 ≤ 100 ms, Stop check median ≤ 10 s편집 전 훅 p95 ≤ 100 ms, 끝내기 전 검사 중앙값 ≤ 10초36.5 ms · 0.08 sMet달성

All five are met on one frozen version, V3.23.1, which also passed the regression gate. They are met under the definition we registered (a conflict is a hidden-check failure or a test conflict); counting hidden-check failures only, interface precision is 0.966 and behaviour F1 0.776, both short. What that means is under Limits.다섯 목표를 한 고정본 V3.23.1에서 모두 달성했고, 이 버전은 회귀 관문도 통과했습니다. 등록한 정의(충돌 = 숨은 검사 실패 또는 테스트 충돌)로 달성입니다. 숨은 검사 실패만 세면 인터페이스 정밀도 0.966, 동작 F1 0.776으로 둘 다 미달입니다. 무슨 뜻인지는 한계에 적었습니다.

How targets 1 and 2 are measured목표 1·2를 재는 방법

  • Units. Each task has a peer’s change, a correct integration and hidden checks. Claude Haiku 5.5 writes the other agent’s new code from the base code and a task sentence only, ten times per task. Each piece of new code is paired with its own peer change and, as a control, with an unrelated change from the same codebase.단위. 작업마다 동료의 변경, 올바른 통합, 숨은 검사가 있습니다. 다른 에이전트의 새 코드는 Claude Haiku 5.5가 기준 코드와 작업 문장만 보고 작업마다 열 번 씁니다. 새 코드마다 자기 작업의 동료 변경과 짝짓고, 대조로 같은 코드베이스의 무관한 변경과도 짝짓습니다.
  • Labels by execution. A unit is a conflict when the text merge succeeds and the merged code fails a hidden check, or when the merged code fails its own tests while each side alone passes (a test conflict, after Brun et al., FSE 2011). Units whose new code did not do its own task are dropped as invalid.실행으로 정한 라벨. 텍스트 병합이 되고 병합된 코드가 숨은 검사에 실패하거나, 병합된 코드가 자기 테스트에 실패하는데 양쪽은 각자 통과하면(테스트 충돌, Brun 외, FSE 2011) 충돌입니다. 새 코드가 제 작업을 하지 못한 단위는 무효로 뺍니다.
  • Replay without a model. Both agents’ edits go through Interlock’s real hooks in three orders (peer first, new code first, interleaved). A detection is any message claiming a conflict: a contract or effect finding, a merged test failing, or two runs of the new code answering differently (interference in the sense of Horwitz, Prins and Reps, 1989). A request to add a test is not counted either way.모델 없는 재생. 두 에이전트의 편집을 Interlock의 실제 훅에 세 가지 순서(동료 먼저, 새 코드 먼저, 번갈아)로 넣습니다. 충돌을 주장하는 메시지를 탐지로 셉니다. 계약·효과 발견, 병합한 테스트 실패, 새 코드를 두 번 돌린 결과가 다른 경우(Horwitz·Prins·Reps, 1989의 간섭)입니다. 테스트를 더 써 달라는 요청은 어느 쪽으로도 세지 않습니다.
  • Held out every round. Each round uses five new codebases, written by a separate session that did not read Interlock’s source; behaviour tasks are written by yet another session. Units are sealed before the replay, and until the verdict we look only at their counts. Lower bounds are one-sided 95% Clopper–Pearson.매 차수 처음 보는 세트. 차수마다 새 코드베이스 다섯 개를 Interlock 소스를 읽지 않은 별도 세션이 쓰고, 동작 작업은 또 다른 세션이 씁니다. 단위는 재생 전에 봉인하고 판정 전까지 개수만 봅니다. 하한은 단측 95% Clopper–Pearson입니다.
  • Interface covers record keys, return kind and size, exceptions, renames and signatures. Behaviour covers value meaning, constants, preconditions, side effects, defaults, None versus empty, and sort order.인터페이스는 레코드 키, 반환 종류·개수, 예외, 이름 변경, 시그니처입니다. 동작은 값의 의미, 상수, 전제 조건, 부작용, 기본값, None과 빈 값, 정렬 순서입니다.

Round by round차수별 결과

Round · version차수 · 버전1 Interface: recall · precision1 인터페이스: 재현율 · 정밀도2 Behaviour: F1 · precision2 동작: F1 · 정밀도3 Parallel3 병렬4 Sonnet4 Sonnet5 Speed5 속도
21 · V3.20.0740/740 · 0.9320.66 · 0.61met달성+6.7met달성
22 · V3.21.0644/644 · 0.9970.918 · 0.964–––
23 · V3.22.3694/694 · 1.0000.876 · 1.000–––
24 · V3.23.1651/651 · 1.0000.832 · 0.978met달성+8.3met달성
  • Round 21 missed targets 1 and 2. Its interface label counted only hidden-check failures; all 118 of its false alarms turned out to be merges that broke the agents’ own tests. We added test conflicts to the definition before round 22 and measured on new sets; round 21’s verdict stands as it was.21차는 목표 1·2를 넘지 못했습니다. 인터페이스 라벨이 숨은 검사 실패만 셌고, 오탐 118건이 모두 병합이 에이전트 자신의 테스트를 깨뜨린 경우로 확인됐습니다. 22차 전에 테스트 충돌을 정의에 넣고 새 세트로 쟀으며, 21차 판정은 바꾸지 않았습니다.
  • Interlock is changed after each verdict, using that round’s set, which then becomes development data. Each version is judged only on the next, unseen round.판정이 끝나면 그 차수의 세트로 Interlock을 고치고, 그 세트는 개발 데이터가 됩니다. 각 버전은 다음 차수의 처음 보는 세트로만 판정합니다.
  • Targets 3 to 5 were measured on V3.20.0 and again on V3.23.1. The regression gate (the development sets O and Q of E11) passed on V3.20.0 and V3.23.1. It fell short on V3.22.2 by one run, fixed as V3.22.3, and on V3.21.0 (52/60 on Q) and V3.22.3 (51/60), almost all on one scenario, Q1, which succeeds in 1 to 5 of 10 runs whatever the version.목표 3~5는 V3.20.0과 V3.23.1에서 쟀습니다. 회귀 관문(E11의 개발 세트 O·Q)은 V3.20.0과 V3.23.1에서 통과했습니다. V3.22.2에서는 1회 차이로 미달해 V3.22.3으로 고쳤고, V3.21.0(Q 52/60)과 V3.22.3(51/60)에서도 미달이었는데 거의 모두 버전과 상관없이 10회 중 1~5회만 성공하는 시나리오 Q1 때문이었습니다.

Parallel as correct as serial (set M)직렬만큼 정확한 병렬 (세트 M)

A campsite codebase, six scenarios, 10 runs each per condition, Claude Haiku 5.5, V3.23.1. Serial runs the agents one after another, each merged to main before the next starts; no tool runs them all at once.캠핑장 코드베이스, 시나리오 6개, 조건마다 10회, Claude Haiku 5.5, V3.23.1입니다. 직렬은 에이전트를 하나씩 돌리고 다음 에이전트 전에 main에 병합합니다. 도구 없음은 모두 한꺼번에 돌립니다.

Condition조건Correct성공Median time시간 중앙값Mean cost평균 비용Merges that conflicted충돌한 병합
Interlock, parallelInterlock 병렬60/6061.7 s$0.021927/240
Serial, no tool직렬, 도구 없음60/6061.7 s$0.01240/240
Parallel, no tool병렬, 도구 없음34/6072.0 s$0.022391/240

Without a tool, parallel agents got 2/10 on the renamed key (M1) and 0/10 on the changed behaviour (M6); with Interlock every scenario was 10/10. On this 2-core machine and these small tasks, parallel was not faster than serial: the medians tie, and the mean paired difference is 5.5 s in serial’s favour. Interlock cost about as much as parallel with no tool and 1.8 times serial.도구가 없으면 병렬 에이전트는 키 이름 변경(M1)에서 2/10, 동작 변경(M6)에서 0/10이었고, Interlock은 모든 시나리오가 10/10이었습니다. 이 2코어 기계와 작은 과제에서는 병렬이 직렬보다 빠르지 않았습니다. 중앙값은 같고, 짝지은 평균 차이는 직렬이 5.5초 빠릅니다. 비용은 도구 없는 병렬과 비슷하고 직렬의 1.8배였습니다.

A stronger model: Sonnet 5.5 (set N)더 강한 모델: Sonnet 5.5 (세트 N)

A laundry codebase, six scenarios, 10 runs each per condition. In E11, with Sonnet 5.5 on V3.11.0, the gap to Shepherd was +4.2 points and not clear. Here:세탁소 코드베이스, 시나리오 6개, 조건마다 10회입니다. E11에서 Sonnet 5.5와 V3.11.0으로 잰 Shepherd와의 차이는 +4.2%p로 확실하지 않았습니다. 여기서는:

Version버전No tool도구 없음ShepherdInterlockInterlock − Shepherd (95% CI)Interlock − Shepherd (95% 신뢰구간)Median time · mean cost시간 중앙값 · 평균 비용
V3.20.057/6054/6058/60+6.7 (+1.7 ~ +13.3)54.5 s · $0.302 vs대 91.7 s · $0.387
V3.23.052/6055/6055/60+0.0 (−8.3 ~ +8.3)56.2 s · $0.293 vs대 70.6 s · $0.384
V3.23.159/6055/6060/60+8.3 (+3.3 ~ +15.0)59.5 s · $0.288 vs대 98.0 s · $0.391

V3.23.0 tied with Shepherd: all five of its failures were N6, where new code reached a function the peer was changing only through a helper in the same file, and the agent finished before the peer shared the change. V3.23.1 waits in that case too, and we re-ran the regression gate and targets 3 to 5 from scratch on it; the V3.23.0 rows are kept. Against no tool on V3.23.1 the difference is +1.7 points (0.0 to +5.0), not a clear win; Sonnet without a tool solved almost every scenario.V3.23.0은 Shepherd와 비겼습니다. 실패 다섯 번이 모두 N6이었고, 새 코드가 동료가 바꾸던 함수에 같은 파일의 도우미를 거쳐서만 닿아, 동료가 변경을 공유하기 전에 에이전트가 끝났습니다. V3.23.1은 이 경우에도 기다리며, 회귀 관문과 목표 3~5를 이 버전으로 처음부터 다시 쟀습니다. V3.23.0의 결과는 그대로 둡니다. V3.23.1에서 도구 없음과의 차이는 +1.7%p(0.0~+5.0)로 확실한 우위가 아닙니다. 도구 없는 Sonnet도 거의 모든 시나리오를 풀었습니다.

Hook latency훅 지연

Development units replayed through the hooks with no model (60 units × 3 orders), V3.23.1, nothing else running. The Stop check is the merged tests, effect findings and interference runs, without the time spent waiting for peers.개발 단위를 모델 없이 훅으로 재생했습니다(60단위 × 3순서, V3.23.1, 다른 작업 없음). 끝내기 전 검사는 병합 테스트, 효과 발견, 간섭 실행을 합한 시간이고, 동료를 기다리는 시간은 뺐습니다.

Hook훅np50p95
Before an edit편집 전70712.0 ms36.5 ms
After an edit편집 후5971.8 ms29.4 ms
After a read읽은 뒤18072.9 ms97.8 ms
Stop check, new code’s agent끝내기 전 검사, 새 코드 에이전트1800.08 s1.39 s
Stop check, peer’s agent끝내기 전 검사, 동료 에이전트1800.69 s1.64 s

The after-edit p95 rose from 9.9 ms on V3.20.0 to 29.4 ms, from the order and record checks added in V3.22.편집 후 p95는 V3.20.0의 9.9 ms에서 29.4 ms로 늘었습니다. V3.22에서 더한 순서·기록 검사 때문입니다.

Limits한계

  • Behaviour detection rests on running the merged tests. Without them, Interlock caught 2 of 243, 16 of 236 and 25 of 250 behavioural conflicts in rounds 22 to 24. A behavioural change that no test exposes is mostly missed: all 69 conflicts missed on round 24 were of that kind.동작 충돌 탐지는 병합한 테스트를 돌리는 데 기댑니다. 그것 없이는 22~24차에서 동작 충돌을 243개 중 2개, 236개 중 16개, 250개 중 25개 잡았습니다. 테스트로 드러나지 않는 동작 변경은 대부분 놓치며, 24차에서 놓친 69개가 모두 그런 경우였습니다.
  • Adding patterns one at a time generalised poorly. V3.23 caught 41 of the 52 conflicts missed on round 23’s set (now development data), but on round 24’s unseen set the rate without merged tests rose only from 0.068 to 0.100.모양을 하나씩 더하는 방식은 잘 일반화되지 않았습니다. V3.23은 23차 세트(이제 개발 데이터)에서 놓친 52개 중 41개를 잡았지만, 처음 보는 24차 세트에서 병합 테스트 없는 탐지율은 0.068에서 0.100으로만 올랐습니다.
  • The interface result does not depend on the tests. Without merged tests, interface recall was 0.980 (round 22), 0.990 (round 23) and 0.997 (round 24, lower bound 0.990), with no false alarm. Most of what the hidden-check-only definition calls false alarms are merges that break the agents’ own tests.인터페이스 결과는 테스트에 기대지 않습니다. 병합 테스트 없이도 인터페이스 재현율은 0.980(22차), 0.990(23차), 0.997(24차, 하한 0.990)이었고 오탐은 없었습니다. 숨은 검사만 보는 정의에서 오탐으로 잡히는 것은 대부분 병합이 에이전트 자신의 테스트를 깨뜨린 경우입니다.
  • Counting hidden-check failures only, round 24 meets neither target 1 (precision 0.966) nor target 2 (F1 0.776, precision 0.870); on round 23 the behaviour target was met that way (F1 0.826).숨은 검사 실패만 세면 24차는 목표 1(정밀도 0.966)도 목표 2(F1 0.776, 정밀도 0.870)도 미달입니다. 23차에서는 그렇게 세도 동작 목표는 달성이었습니다(F1 0.826).
  • All codebases are small Python projects written to our specification, sets M and N repeat the change kinds of E11’s sets P and O, separate machines are simulated on one, and each verdict was run once. Large real repositories, other languages and other agents were not measured.코드베이스는 모두 우리 명세로 쓴 작은 Python 프로젝트이고, 세트 M·N은 E11 세트 P·O와 같은 종류의 변경이며, 여러 기계는 한 기계에서 재현했고, 판정은 한 번씩 돌렸습니다. 실제 대형 저장소, 다른 언어, 다른 에이전트는 재지 않았습니다.
  • We build Interlock. The pre-registration commits, sealed units and raw data are in our private repository; the summary is published here.Interlock은 우리가 만든 도구입니다. 사전 등록 커밋, 봉인 단위, 원자료는 비공개 저장소에 있고, 여기에는 요약을 공개합니다.