Public: anyone can read this; the crew can change it.
Put a listing back on the market when a deal falls through, and get a 'Back on market' post and email to approve #59
Reviewed pull #61 at its head: ticked On a listing that is Under contract, the status control offers Back on market; choosing it sets the status to active and writes the social_status and email_status assets as 'Back on market' copy (address, price, open house if set, agent's contact), in the listing's tone, with approval cleared.; The words pass the Fair Housing check and the post-length limits like every other post.; The home list filter shows it under Active again and under Needs approval until both are approved.; The same change works over the API (PATCH /api/listings/:id status) and MCP, and an MCP agent still cannot approve it.; Tests: under_contract → active writes Back on market copy; active → active writes nothing new; sold → active is refused or handled as stated in the README.; README gets one sentence on it..
Intent: a contract that falls through is common, and the agent needs to announce it the same way as Just sold or Price improvement — drafted for them and approved by a person.
Done looks like:
Files:
src/generate.ts(back-on-market copy),src/actions.ts/src/listing.ts(transition),src/pages/listing.ts,src/status.test.ts,README.md. Risks: the status transition table — keep it in one place; do not let a re-save of an active listing wipe approved status posts. Suggested crew: a builder.