"Stream-entry" requires three fetters to be cut, which include the fetter of doubt about the path and the fetter of identity-view.
Also, the Pali suttas define the both "sakkāya" (sat + kāya; "existent body/group" or "identity") & dukkha and the arising of identity & dukkha the same way, namely:
Pañca upādānakkhandhā sakkāyo. These five grasped aggregates are identity. MN 44
Saṃkhittena pañcupādānakkhandhā dukkhā. In brief, the five grasped aggregates are suffering. SN 56.11
The craving that makes for further becoming — accompanied by passion & delight, relishing now here & now there — i.e., craving for sensual
pleasure, craving for becoming, craving for non-becoming: This is the
origination of self-identification. MN 44
Now this is the noble truth of the origin of suffering. The craving that makes for further becoming — accompanied by passion & delight,
relishing now here & now there — i.e., craving for sensual pleasure,
craving for becoming, craving for non-becoming. SN 56.11
"Sakkāyadiṭṭhi" is to regard/view the five aggregates as "self", as follows:
How does identity view come about?
Kathaṃ sakkāyadiṭṭhi hotī
It’s when an uneducated ordinary person has not seen the noble ones, and is neither skilled nor trained in the teaching of the noble ones.
They’ve not seen good persons, and are neither skilled nor trained in
the teaching of the good persons.
They regard form as self, self as having form, form in self, or self in form.
They regard feeling … perception … choices … consciousness as self, self as having consciousness, consciousness in self, or self in
That’s how identity view comes about.
Evaṃ kho, āvuso visākha, sakkāyadiṭṭhi hotī
It follows, for stream-entry to occur, at least two experiences must occur, namely:
Seeing clearly "identity" is not a real permanently existent thing, which cuts the fetter of identity-view.
Seeing clearly the ending of attachment to the aggregates (sakkaya) and the ending of identity view (sakkaya ditthi) ends dukkha, which cuts the fetter of doubt about the path.
Therefore, at stream-entry, it is known without any doubt that "non-attachment" towards the five aggregates is the Path to Nibbana. Thus, whatever phenomena or experiences occur, such as "jhana", these experiences/phenomena are not attached to or regarded as being or connected to "self".
If the ending of identity is experienced (such as by Sam Harris says when taking LSD) but the correlated insight into the ending of dukkha is not experienced & maintained (such as by Sam Harris who, when not on drugs, has been accused of promoting war & nuclear genocide) then stream-entry has not been attained.
"Doubt" is not doubt about "anatta" ("not-self') but is doubt about "anatta ending dukkha". This is how fake gurus & fake dharma are known; when deeds do not equate to claimed realisations. When the fetter of "sakkaya ditthi" is cut, so are myriad unwholesome selfish deeds; because it is discerned abandoning "sakkaya" results in peace (Nibbana).