"the two women went to Sir Thomas Wallace of Craigie, the Lord Justice Clerk"

The Lord Justice Clerk is the second most powerful judge in Scotland, after the Lord President of the Court of Session. Thomas Wallace, or Lord Craigie, held the post between 1675 and 1680. Since the narrative begins in 1687 and Robert later stipulates the day he meets Gil-Martin as “the 25th day of March 1704” (p. 128), this would seem to be one of Hogg’s occasional errors.