True.
There always needs to be a loop back to obedience to the law or else legalism fails to be legalism.
What do you mean by "legalism"? If it is legalism for God to graciously teach us to obey His law and it is legalism for Jesus to graciously set a sinless example for us to follow of how to walk in obedience to it, then legalism would be a good thing, but that is not what I think it means.
We do not measure God's righteousness by His works. It is His nature. He is holy, and righteous, and can not be turned away to sin.
Psalms 145:17 The LORD is righteous in all his ways and kind in all his works.
What exactly do you think is being communicated by saying that God's nature is righteous if there is no connection to God's works?
Thank you for eliminating the possibility that we earn righteousness by doing righteous things.
You're welcome.
So there is no concept in Scripture that faith is counted as righteousness? What about the following?
5 But to him who does not work but believes on Him who justifies the ungodly, his faith is accounted for righteousness, 6 just as David also describes the blessedness of the man to whom God imputes righteousness apart from works:
7 “Blessed are those whose lawless deeds are forgiven,
And whose sins are covered;
8 Blessed is the man to whom the LORD shall not impute sin.” (Ro 4:5–8).
I stated that there is no such thing as someone being righteous apart from also being a doer of righteous works in obedience to God's law. I did not state that there is no concept in Scripture that faith is counted as righteousness. While the only way for someone to become righteous is through faith apart from being required to have first done enough righteous works in order to earn it as the result, what it means for someone to become righteous is for them to become a doer of righteous works. In Isaiah 51:7, the righteous are those on whose heart is God's law, and in 1 John 3:4-7, everyone who is a doer of righteous works in obedience to God's law is righteous even as they are righteous.
While it is true that Abraham believed God, so he was declared righteous (Genesis 15:6), it is also true that he believed God, so he obeyed God's command to offer Isaac (Hebrews 11:17), so the same faith by which he was declared righteous was also embodied by being an obeyer of God, but he did not earn his righteousness as the result of His obedience (Romans 4:1-5). In James 2:21-24, it quotes Genesis 15:6 to support saying that Abraham was declared righteous by his works when he offered Isaac, that his faith was active along with his works, and that his faith embodied his works, so he was declared righteous by his works insofar as they were embodying his faith, but not insofar as they were earning a wage.
There it is again -- a loop back to righteousness through obedience to the law.
No, the fact that we are declared righteous by faith apart from works does not abolish our need to be a doer of righteous works, which is not righteousness through obedience to the law.
I find this to be a curious loophole. You are saying that unrighteousness does not count as unrighteousness if after breaking the law a person returns again to the law and submits to it. But of course, it is a necessary loophole, right? Why is it necessary? Because, as you said, we are not sinless. We must have the loophole, otherwise we all perish (i.e., the wages of sin is death).
People in the Bible stated that someone else was more righteous than them (Genesis 38:26, 1 Samuel 24:17), so righteousness is not all or nothing, but rather for someone to be righteous means that their life is direct at being a doer of righteous works. Someone being righteous does not mean that they always do what is righteous, but that it is the goal that they are aimed at and when they have not acted righteously, then they repent. Likewise, someone being courageous does not mean that they have always acted courageously, but that their goal is to act courageously and they repent when they have not.
But repentance and returning to the law to obey it does not eliminate the wages that sinning earns, as if renewing one's commitment to do everything the Lord requires eliminates the dept we owe for disobedience. The only way one may find remission of sins is in the sacrifice Christ paid for our sins. As a reult of this, if there is any reconcilement of a sinner to God after he has broken one of God's requirements, then it can only be said that the reconcilemnet is because Jesus Christ bore that sin on the cross. And it is unimaginable to me why a person who often must rely on Christ's sacrifice for his sins would want to think of Himself as right with God because of his success in obeying His laws.
In Titus 2:14, Jesus gave himself to redeem us from all lawlessness and to purify for himself a people of his own possession who are zealous for doing good works, so the way to believe in what Jesus spent hi ministry teaching and in what he accomplished through the cross is by repenting and becoming zealous for doing good works in obedience to God's law. We can do works that embody our faith, such as with James 2:18 saying that he would show his faith by his works, so everyone who is a doer of the same works as James has faith in Jesus. The significance of our obedience to God's law is not that is is part of something that we are required to have successfully done first in order to earn becoming right with God as the result, but rather the significance is that it is the way to embody our faith, and it is by that faith that we are made right with God. In Revelation 14:12, those who kept faith in Jesus are the same as those who kept God's commandments. Repentance is inherently an act of faith by turning away from doing what is right in our own eyes towards trusting in God with all of our heart to correctly leads us through His law and he will make our way straight.