Judgment in heaven proceeds along the lines that Romans 2 explicitly states -
Rom 2:
2 And we know that
the judgment of God rightly falls upon
those who practice such things. 3 But do you suppose this, you
foolish person who passes judgment on those who practice such things, and
yet does them
as well,
that you will escape the judgment of God? 4 Or do you think lightly of the riches of His kindness and restraint and patience, not knowing
that the kindness of God leads you to repentance? 5 But because of your stubbornness and unrepentant heart you are storing up wrath for yourself on the day of wrath and revelation of the righteous judgment of God, 6 who will repay each person
according to his deeds: 7 to
those who by perseverance in doing good seek glory, honor, and immortality,
He will give eternal life; 8 but to
those who are self-serving and do not obey the truth, but obey unrighteousness,
He will give wrath and indignation. 9
There will be tribulation and distress for every soul of mankind who does evil, for the Jew first and also for the Greek, 10 but glory, honor, and peace
to everyone who does what is good, to the Jew first and also to the Greek. 11 For there is
no partiality with God.
12 For all who have sinned without the Law will also perish without the Law, and all who have sinned under the Law will be judged by the Law; 13
for it is not the hearers of the Law who are righteous before God, but the doers of the Law who will be justified. 14 For when Gentiles who do not have the Law
instinctively perform the requirements of the Law, these, though not having the Law, are a law to themselves, 15 in that they
show the work of the Law written in their hearts, their conscience testifying and their thoughts alternately accusing or else defending them, 16 on the day when,
according to my gospel, God will judge the secrets of mankind through Christ Jesus.
...
25 For indeed circumcision is of value if you practice the Law; but if you are a violator of the Law, your circumcision has turned into uncircumcision. 26 So
if the uncircumcised man keeps the requirements of the Law, will his uncircumcision not be regarded as circumcision? 27 And he who is physically uncircumcised, if he keeps the Law, will he not judge you who though having the letter
of the Law and circumcision are a violator of the Law? 28 For he is not a Jew who is one outwardly, nor is circumcision that which is outward in the flesh. 29 But
he is a Jew who is one inwardly; and circumcision is of the heart, by the Spirit, not by the letter; and his praise is not from people, but from God.
The "Law written on the heart" is the Jer 31:31-34 New Covenant (as Paul reminds us in Heb 8:6-12.) And as he says in Rom 2 of that new heart
"circumcision is of the heart, by the Spirit"
The individual judgment of Romans 2:4-16 that is future to Paul's day - is necessarily a part of the detail for the Dan 7 pre-advent judgment that is based on the books of records "being opened" and the court sits. Rev 20 points out that when people are judged out of books opened in heaven's court - it is deeds of each person that are judged.
Rev 20:12-13
12 And I saw the dead, the great and the small, standing before the throne, and books were opened; and another book was opened, which is the book of life; and the dead were judged from the things which were written in the books, according to their deeds. 13 And the sea gave up the dead who were in it, and Death and Hades gave up the dead who were in them; and they were judged, each one of them according to their deeds.
As Christ said in Matt 7:
18 A good tree cannot bear bad fruit, nor can a bad tree bear good fruit. 19 Every tree that does not bear good fruit is cut down and thrown into the fire. 20 So then, you will know them by their fruits.
21 “Not everyone who says to Me, ‘Lord, Lord,’ will enter the kingdom of heaven, but the one who does the will of My Father who is in heaven will enter. 22 Many will say to Me on that day, ‘Lord, Lord, did we not prophesy in Your name, and in Your name cast out demons, and in Your name perform many miracles?’ 23 And then I will declare to them, ‘I never knew you; leave Me, you who practice lawlessness.’
24 “Therefore, everyone who hears these words of Mine, and acts on them, will be like a wise man who built his house on the rock.