Repository navigation
Commit 67885e0
ADFA-4128: apply the mtime margin when the rebuild holds Unknown
absorbEchoesLocked treated a held ChangedFiles.Unknown as "every file is already held"
and skipped the granularity margin for all of them. After an external Gradle build
untrusted the baseline (pending = Unknown) and a rebuild started, a .kt saved 0.5 s
into the rebuild on a 1 s-mtime filesystem stamped a whole second before the start,
was absorbed, and onBaselineReset dropped it - the edit was never built.
An Unknown held set names no file, so nothing proves an arrival is an echo; only an
enumerated held set keeps the exact cutoff. New test pins the Unknown case; a second
new test pins the margin's upper bound (an 8_000 stamp against a 10_000 start absorbs),
which with the existing 9_000 case fixes the constant at 2 s.
Adversarial review 2026-09-04, finding #9 on 60d5a27ca.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XkGof8cLt23LkxZ8MKzin21 parent 36718e8 commit 67885e0
2 files changed
Lines changed: 60 additions & 1 deletion
File tree
- quickbuild/core/src
- main/java/org/appdevforall/cotg/quickbuild/domain/reload
- test/java/org/appdevforall/cotg/quickbuild/domain/reload
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
510 | 513 | | |
511 | 514 | | |
512 | 515 | | |
| |||
522 | 525 | | |
523 | 526 | | |
524 | 527 | | |
525 | | - | |
| 528 | + | |
526 | 529 | | |
527 | 530 | | |
528 | 531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
758 | 814 | | |
759 | 815 | | |
760 | 816 | | |
| |||
0 commit comments