Use the -c, --cols option to include the run id attribute this way:
guild compare -c .id
This appends the full ID to the table. The prefix . indicates the name is an a run attribute. If you wanted to indicate a scalar you’d omit the prefix. If you wanted to indicate a flag you’d use = as the prefix.
See Column Specs for more info.