Reading through your post - there seems to be a number of things that are confusing and it would be useful if you could clarify.
1. To my knowledge, the D-type visa you mention is issued to those granted permission to remain in Ireland for the purposes of study. If you were working in Ireland - why were you on a D-type student visa here?
2. What happened after this first D-type visa expired? How was that visa renewed?
3. What stamp was in your passport during that time - stamp 2 or stamp 2 (a)?
4. What stamp is in your passport now - stamp 4?
4. Work permits and work authorisations are not the same thing - in fact they are very different and are aimed at different categories of workers. It is not possible to be legally resident in Ireland on the basis of a renewable work permit/work authorisation. You are here on the basis of one or other - which one is it? (I presume it is a work authorisation but can you confirm this?)
5. The rules on set out what is considered reckonable residence. According to Oasis, periods of residence in Ireland aren't counted that were covered by permission to remain if that permission:
- Was for the purposes of study (i.e. you were on a student visa) whether or not that study involved you being employed during any of the period of study
6. You say that in September, your 4 unreckonable months will be up. I don't understand what you mean by this. Can
you clarify?
If you provide the answers to the above questions, it may be easier to advise. If you don't wish to post here, PM me.
CMCR.