..........F.....                                                         [100%]
=================================== FAILURES ===================================
__________ test_unrelated_sibling_notification_cannot_satisfy_observe __________

tmp_path = PosixPath('/tmp/pytest-of-cube/pytest-399/test_unrelated_sibling_notific0')

    def test_unrelated_sibling_notification_cannot_satisfy_observe(tmp_path: Path) -> None:
        observer, watched, _receipts = _observer(tmp_path)
        sibling = _private_file(watched.parent / "unrelated.json", b"before")
        with observer:
            _arm(observer, watched)
            trigger = threading.Event()
    
            def mutate() -> None:
                assert trigger.wait(timeout=1.0)
                sibling.write_bytes(b"unrelated-change")
                os.chmod(sibling, 0o600)
                watched.write_bytes(b"authoritative-change")
                os.chmod(watched, 0o600)
    
            with ThreadPoolExecutor(max_workers=1) as pool:
                completed = pool.submit(mutate)
                trigger.set()
                event = observer.observe(sequence=41, timeout=1.0)
                completed.result(timeout=2.0)
    
        assert event["path"] == str(watched)
>       assert event["commit_byte_hash"] == hashlib.sha256(b"authoritative-change").hexdigest()
E       AssertionError: assert 'e3b0c44298fc...5991b7852b855' == '5bfd52af178f...96811518d9e75'
E         
E         - 5bfd52af178fb17e990390a3f209fa7f5b5d796b783abadf6c796811518d9e75
E         + e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

../../../projects/richard/hermes-agent/tests/gateway/test_commit_observer.py:244: AssertionError
=========================== short test summary info ============================
FAILED ../../../projects/richard/hermes-agent/tests/gateway/test_commit_observer.py::test_unrelated_sibling_notification_cannot_satisfy_observe
1 failed, 15 passed in 0.21s
EXIT=1
