Summary: In early years schooling it is becoming common to propose activities that involve moving along paths, or programming robots to do so. In order to promote continuity towards the introduction of geometry in primary school, we developed a long-term teaching experiment (with 15 sessions) carried out over 4 months in a first grade classroom in northern Italy. Students were asked to program a robot to move along paths, to pretend to act as robots and to represent the sequence of commands and the resulting paths. In particular, in this teaching experiment, an overarching mathematical aim was to sow the seeds for a mathematical definition of rectangles that includes squares. Within the paradigm of semiotic mediation, we intended to foster the studentsâ€™ transition from a dynamic perception of paths to seeing paths also as static wholes, boundaries of figures with sets of geometric characteristics. The studentsâ€™ situated productions were collected and analysed together with the specific actions of the adults involved, aimed at fostering processes of semiotic mediation. In this paper we analyse the development of the situated texts produced by the students in relation to the pivot signs that were the beginnings of an inclusive definition of rectangles.