The Sita Who Stepped Into Fire
Before the golden deer, the real Sita enters the fire and a shadow takes her place.
Knowing Ravana's plan, Rama tells Sita to leave a shadow of herself in the hut and wait unseen in the fire for a year. The shadow Sita asks for the golden deer and is carried off to Lanka, while even Lakshmana does not know the secret. After the war, Agni returns the real Sita to Rama. In this telling, the fire is not a test but a homecoming.
The Day of the Golden Deer
The hut at Panchavati stands at the edge of the forest. Rama, Sita and Lakshmana have lived here for many quiet seasons. Soon, the most famous morning of the Ramayana will begin. A golden deer with silver spots will step out of the trees, and Sita will see it.
Everyone knows what happens next. Rama chases the deer. A cry for help sends Lakshmana after him. Ravana comes to the hut disguised as a wandering holy man, and carries Sita away to Lanka.
But the Adhyatma Ramayana tells you something the familiar story does not. Before any of this happened, Rama already knew.
Ravana had gone to the demon Maricha and ordered him to become a deer and lure the brothers away. Rama, who in this telling is never unsure of who he is, knew the whole plan. And when he and Sita were alone, he spoke to her.
What Rama Told Her
Ravana is coming, he said. He will come to you dressed as a beggar. And then he told her what to do:
रावणो भिक्षुरूपेण आगमिष्यति तेऽन्तिकम् । त्वं तु छायां त्वदाकारां स्थापयित्वोटजे विश ॥ अग्नावदृश्यरूपेण वर्षं तिष्ठ ममाज्ञया । रावणस्य वधान्ते मां पूर्ववत्प्राप्स्यसे शुभे ॥
rāvaṇo bhikṣu-rūpeṇa āgamiṣyati te'ntikam tvaṃ tu chāyāṃ tvad-ākārāṃ sthāpayitvoṭaje viśa agnāv adṛśya-rūpeṇa varṣaṃ tiṣṭha mamājñayā rāvaṇasya vadhānte māṃ pūrvavat prāpsyase śubhe
Ravana will come to you in the form of a beggar. Leave a shadow in your own shape here in the hut, and go within. Stay unseen inside the fire for a year, at my word. When Ravana has been slain, you will have me again as before, auspicious one.
Adhyatma Ramayana, Aranya Kanda 7.2-3

And Sita did it. The text says it simply. She placed an illusory Sita in the hut, and she herself entered the fire.