The full pattern
Does si come with a thing (a noun with no preposition)? Then the verb agrees with it.
| one thing | si vende la casa |
| more than one | si vendono le case |
| no direct object | si vive bene · si parla di politica |
| past, with a thing | si è venduta la casa · si sono costruiti palazzi |
| past, no thing | si è parlato · si è arrivati |
| with a modal | si devono pagare le tasse |
| with pronouns | lo si fa · se ne parla · ci si lava |
Compound tenses always take essere.
No agent with si. To say who did it: è stata venduta dall’agenzia**.
With an adjective, plural: si è stanchi.