Commit baa7c2d
fix(boundary): unfreeze /ctx-recomp from a stale open tool arc too
The trigger-path fix (df5a76a4) staleness-gated open arcs in the normal boundary
resolver, but the manual-full-recomp branch still selected the FIRST open arc
at/after offset as protectedTailStart. So the same interrupted bash call at the
tail head that froze the historian also froze /ctx-recomp (the user's manual
escape hatch): protectedTailStart=offset -> zero eligible range -> recomp rebuilds
nothing.
Apply the same recent-window staleness gate to manual-full-recomp: derive the
cutoff from findSuffixStartForTokens(deriveProtectedTailTokenTarget(usage:0).N)
and require an open arc to be >= cutoff before it can hold back the recomp. A
stale/dead open arc older than the window is ignored; only a genuine in-flight
call in the live window is protected. Regression test added.
Surfaced by the post-fix oracle re-review (it verified the trigger-path fix
correct at both sites but flagged this unchanged path as a must-fix).
Co-authored-by: Alfonso [Magic Context] <288211368+alfonso-magic-context@users.noreply.github.com>1 parent 9d8c57c commit baa7c2d
2 files changed
Lines changed: 61 additions & 1 deletion
File tree
- packages/plugin/src/hooks/magic-context
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
350 | 395 | | |
351 | 396 | | |
352 | 397 | | |
| |||
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
376 | 388 | | |
377 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
378 | 393 | | |
379 | 394 | | |
380 | 395 | | |
| |||
0 commit comments