Skip to content

Publishing app-status messages

Every Homefelt app (iPhone, Android and the web) reads one feed, https://homefelt.io/app-status/v1.json. It decides what each app shows: a banner, a sheet, or a block that stops online play or, at the very end of a sunset, the app. This page is the runbook for changing it. The rules behind it are in the app-messaging plan and the format in the feed spec.

The rules that never change:

  • Only Eduardo publishes, and only through a pull request. The feed is site/public/app-status/v1.json; CODEOWNERS makes him its owner. Claude drafts the change, Eduardo merges it.
  • Every message is in English and Spanish. The check refuses a message without both.
  • The feed fails open. An unreachable or broken feed shows nothing and changes nothing, so a mistake can hide a message but can never lock anyone out by accident.
  • Messages wait for a safe point (the home screen, the end of a hand, game over). Only a block interrupts.

The steps, every time

  1. Branch from the latest main: git fetch origin && git switch -c feed/<what> origin/main.

  2. Edit site/public/app-status/v1.json. Copy the entry from the case below into messages (and flags, where the case has one). Change the id, the dates, the versions and the words.

  3. Check with bin/test app-status. It validates the feed against the schema, checks both languages, the text limits, the link hosts, the dates and the sunset promise, and runs this page’s previews.

  4. Preview what each platform will show with bin/app-status preview, as each case does below. Leave out --platform to see all three; the web never has a version.

  5. Open a pull request that touches only the feed (and this page’s examples, if you add one). Its body says what players will see, on which platforms, from when.

  6. Merge. Vercel deploys the marketing site, feed included, in about a minute.

  7. Confirm it is live (the feed is cached for 60 seconds):

    Terminal window
    curl -sI https://homefelt.io/app-status/v1.json # 200, content-type application/json, cache-control max-age=60
    curl -s https://homefelt.io/app-status/v1.json # your entry is in it

    It reaches players after the deploy (about a minute), the 60-second cache, and each app’s next fetch: at launch, or on coming back to the front, at most every 15 minutes. So allow about 20 minutes before everyone who has the app open sees it.

Dates are UTC (Z). Write them out in the text (“Sunday 9 May”), never “tomorrow”. Players are in Spain and the US: pick times when the weekday is the same on both sides, and when the text gives a time, give it in Spain and in US Eastern (for example 06:00 UTC on a Sunday in May is 8:00 in Spain and 2:00 US Eastern, both Sunday). Versions are the apps’ date versions, YYYY.M.D (decision 0013).

1. A soft update warning

A new version is in both stores and you want people to install it. It shows a banner with an Update button on iPhone and Android, for versions below the new one, once a day until they update. The web always runs the latest build, so it never sees it.

Copy from soft-update.json:

{
"id": "canasta-update-2027-3-1",
"revision": 1,
"kind": "update",
"severity": "warning",
"target": {
"platforms": ["ios", "android"],
"apps": ["canasta"],
"versions": { "below": "2027.3.1" }
},
"starts": "2027-03-03T08:00:00Z",
"text": {
"en": {
"title": "A new version of Canasta is ready",
"body": "It adds Modern American special hands and fixes a few things. Your saved game is safe.",
"action": "Update"
},
"es": {
"title": "Hay una nueva versión de Canasta",
"body": "Añade las manos especiales de la Canasta americana moderna y corrige algunos detalles. Tu partida guardada está a salvo.",
"action": "Actualizar"
}
},
"action": { "kind": "store" },
"repeat": "daily"
}

Publish it only after the new version is live in both stores, and set starts to that day.

Terminal window
bin/app-status preview --feed spec/app-status/examples/soft-update.json --version 2027.2.1 --now 2027-03-04T09:00:00Z
feed: spec/app-status/examples/soft-update.json
ios:
blocking: none
banner: canasta-update-2027-3-1@1 (update, warning) [en] "A new version of Canasta is ready" -> store
sheet: none
flags: onlinePlay=on newOnlineTables=on invites=on
android:
blocking: none
banner: canasta-update-2027-3-1@1 (update, warning) [en] "A new version of Canasta is ready" -> store
sheet: none
flags: onlinePlay=on newOnlineTables=on invites=on
web:
blocking: none
banner: none
sheet: none
flags: onlinePlay=on newOnlineTables=on invites=on

2. A required update

Only for a change older apps cannot handle online (a protocol major, decision 0013). Older apps keep playing on the device; only online play stops until they update.

  1. Ship the new version in both stores and wait until App Review has passed on both and the release is fully out: a phased release on the App Store and a staged rollout on Google Play both finished at 100%. Never publish a required update before that: people would be told to install something they cannot get yet.
  2. Warn for at least two weeks with a soft update (case 1).
  3. Publish the block: the entry below, with starts at least two weeks after the warning’s starts (in these examples the warning starts on 3 March and the block on 1 April), and versions.below the first version that works.
  4. Raise the server’s minimum the same day: set HOMEFELT_MIN_CLIENT_VERSIONS to the first version that works on each platform (fly secrets set HOMEFELT_MIN_CLIENT_VERSIONS=ios=2027.4.1,android=2027.4.1, which restarts the machine: check the value with the local server first, since a malformed one stops the server from starting; docs/deploy.md, “Outdated apps”). The server then refuses older apps (updateRequired, close 4426), so the feed warns and the server is the backstop. Check it with an old build, or bin/test against a local server with the same setting.

Published a block too early? Delete the entry in a feed-only pull request, and lower HOMEFELT_MIN_CLIENT_VERSIONS back the same day. Apps drop the block at their next fetch, and the server lets them in again at once.

Copy from required-update.json:

{
"id": "canasta-online-2027-3-1",
"revision": 1,
"kind": "update",
"severity": "blocking",
"blocks": "online",
"target": {
"platforms": ["ios", "android"],
"apps": ["canasta"],
"versions": { "below": "2027.3.1" }
},
"starts": "2027-04-01T08:00:00Z",
"text": {
"en": {
"title": "Please update Canasta",
"body": "To keep playing with friends online, install the new version. Games on this phone still work.",
"action": "Update"
},
"es": {
"title": "Actualiza Canasta",
"body": "Para seguir jugando en línea con tus amigos, instala la nueva versión. Las partidas en este teléfono siguen funcionando.",
"action": "Actualizar"
}
},
"action": { "kind": "store" },
"repeat": "everyLaunch"
}
Terminal window
bin/app-status preview --feed spec/app-status/examples/required-update.json --platform android --version 2027.2.1 --now 2027-04-02T09:00:00Z
feed: spec/app-status/examples/required-update.json
android:
blocking: canasta-online-2027-3-1@1 (update, blocking, blocks online) [en] "Please update Canasta" -> store
banner: none
sheet: none
flags: onlinePlay=on newOnlineTables=on invites=on

3. Maintenance

Online play pauses for a known window. The message starts a couple of days before and ends when the window ends; the onlinePlay flag turns online play off only during the window. Games against the computer are never affected.

Copy from maintenance-notice.json, the message:

{
"id": "maintenance-2027-05-09",
"revision": 1,
"kind": "maintenance",
"severity": "warning",
"target": { "apps": ["canasta"] },
"starts": "2027-05-07T08:00:00Z",
"ends": "2027-05-09T08:00:00Z",
"text": {
"en": {
"title": "Online tables are paused on Sunday 9 May",
"body": "We are improving online play from 8 to 10 in the morning in Spain (2 to 4 in the morning US Eastern). Games against the computer still work, and your saved game is safe."
},
"es": {
"title": "Las mesas en línea paran el domingo 9 de mayo",
"body": "Estamos mejorando el juego en línea de 8 a 10 de la mañana en España (de 2 a 4 de la madrugada en la costa este de EE. UU.). Las partidas contra el ordenador siguen funcionando y tu partida guardada está a salvo."
}
},
"repeat": "daily"
}

and the flag, into flags:

{
"id": "onlinePlay",
"enabled": false,
"target": { "apps": ["canasta"] },
"starts": "2027-05-09T06:00:00Z",
"ends": "2027-05-09T08:00:00Z"
}

The day before, the banner shows and online play still works:

Terminal window
bin/app-status preview --feed docs/app-status-examples/maintenance-notice.json --platform android --version 2027.3.1 --now 2027-05-08T09:00:00Z
feed: docs/app-status-examples/maintenance-notice.json
android:
blocking: none
banner: maintenance-2027-05-09@1 (maintenance, warning) [en] "Online tables are paused on Sunday 9 May" -> continue
sheet: none
flags: onlinePlay=on newOnlineTables=on invites=on

During the window, online play is off:

Terminal window
bin/app-status preview --feed docs/app-status-examples/maintenance-notice.json --platform android --version 2027.3.1 --now 2027-05-09T07:00:00Z
feed: docs/app-status-examples/maintenance-notice.json
android:
blocking: none
banner: maintenance-2027-05-09@1 (maintenance, warning) [en] "Online tables are paused on Sunday 9 May" -> continue
sheet: none
flags: onlinePlay=off newOnlineTables=on invites=on

4. An announcement

News that needs no update: a new rule set, a new game. A sheet shown once, between the dates you give, on every platform. Copy from announcement.json:

{
"id": "modern-american-arrives",
"revision": 1,
"kind": "announcement",
"severity": "info",
"target": {
"apps": [
"canasta"
]
},
"starts": "2027-01-15T09:00:00Z",
"ends": "2027-03-15T09:00:00Z",
"text": {
"en": {
"title": "Modern American Canasta is here",
"body": "Play the American rules: 13 cards each, melds of up to seven and bonus cards for the first sides to open.",
"action": "Read the rules"
},
"es": {
"title": "Llega la Canasta americana moderna",
"body": "Juega con las reglas americanas: 13 cartas cada uno, combinaciones de hasta siete y cartas extra para los primeros en abrir.",
"action": "Leer las reglas"
}
},
"action": {
"kind": "link",
"url": "https://homefelt.io/canasta"
},
"repeat": "once"
}
Terminal window
bin/app-status preview --feed spec/app-status/examples/announcement.json --platform android --version 2027.2.1 --now 2027-02-01T09:00:00Z
feed: spec/app-status/examples/announcement.json
android:
blocking: none
banner: none
sheet: modern-american-arrives@1 (announcement, info) [en] "Modern American Canasta is here" -> link https://homefelt.io/canasta
flags: onlinePlay=on newOnlineTables=on invites=on

5. What’s new after a release

A sheet shown once, after someone updates into the new version: the app compares the version it runs now with the one it ran at its previous launch. Target from the new version below the next one, so it never shows to people who skip straight past it.

Copy from whats-new.json:

{
"id": "whats-new-2027-3-1",
"revision": 1,
"kind": "whatsNew",
"severity": "info",
"trigger": "afterUpdate",
"target": { "apps": ["canasta"], "versions": { "from": "2027.3.1", "below": "2027.4.1" } },
"text": {
"en": {
"title": "What's new in Canasta",
"body": "Special hands for Modern American, a stronger Normal computer player and clearer cards on large text sizes.",
"action": "Play"
},
"es": {
"title": "Novedades en Canasta",
"body": "Manos especiales en la Canasta americana moderna, un jugador Normal más fuerte y cartas más claras con texto grande.",
"action": "Jugar"
}
},
"action": { "kind": "continue" },
"repeat": "once"
}

Publish it the day the version reaches the stores (it can go in the same pull request as the soft update).

Terminal window
bin/app-status preview --feed spec/app-status/examples/whats-new.json --platform ios --version 2027.3.1 --previous 2027.2.1 --now 2027-03-10T09:00:00Z
feed: spec/app-status/examples/whats-new.json
ios:
blocking: none
banner: none
sheet: whats-new-2027-3-1@1 (whatsNew, info) [en] "What's new in Canasta" -> continue
flags: onlinePlay=on newOnlineTables=on invites=on

6. A sunset

The promise (decided 2026-11-25): at least 90 days’ notice, then at least 30 days of read-only online play with a way to download your online results, then the final state. Games on the device keep working throughout. bin/test app-status refuses a sunset that breaks the 90 or 30 days.

The whole timeline goes in at once, in one pull request, as four messages and three flags. Copy all of sunset.json and change the ids, dates and links. Before the notice starts, the “online-ending” page must exist on the site. Before the read-only stage starts, the download of online results must work and that page must say how to get it, because the read-only banner sends people there:

Stage Message From Flags
Notice …-notice, a sheet once 90 days or more before the end none
Read-only …-read-only, a daily banner with the download link 30 days or more before the end newOnlineTables and invites off
Online ended …-final, blocks online the end onlinePlay off
App retired (only if the app itself is withdrawn) …-app-retired, blocks the app later, if ever none

A sunset of online play stops at “Online ended”: games on the device go on. Add “App retired” only when the app is leaving the stores; it is the one message that blocks the whole app.

Terminal window
bin/app-status preview --feed spec/app-status/examples/sunset.json --platform ios --version 2027.3.1 --now 2027-07-01T09:00:00Z
feed: spec/app-status/examples/sunset.json
ios:
blocking: none
banner: none
sheet: canasta-online-sunset-notice@1 (sunset, info) [en] "Online Canasta will end on Friday 1 October" -> link https://homefelt.io/canasta/online-ending
flags: onlinePlay=on newOnlineTables=on invites=on
Terminal window
bin/app-status preview --feed spec/app-status/examples/sunset.json --platform ios --version 2027.3.1 --now 2027-09-15T09:00:00Z
feed: spec/app-status/examples/sunset.json
ios:
blocking: none
banner: canasta-online-sunset-read-only@1 (sunset, warning) [en] "Online tables close on Friday 1 October" -> link https://homefelt.io/canasta/online-ending
sheet: none
flags: onlinePlay=on newOnlineTables=off invites=off
Terminal window
bin/app-status preview --feed spec/app-status/examples/sunset.json --platform ios --version 2027.3.1 --now 2027-11-01T09:00:00Z
feed: spec/app-status/examples/sunset.json
ios:
blocking: canasta-online-sunset-final@1 (sunset, blocking, blocks online) [en] "Online Canasta has ended" -> continue
banner: none
sheet: none
flags: onlinePlay=off newOnlineTables=off invites=off
Terminal window
bin/app-status preview --feed spec/app-status/examples/sunset.json --platform ios --version 2027.3.1 --now 2028-05-01T09:00:00Z
feed: spec/app-status/examples/sunset.json
ios:
blocking: canasta-app-retired@1 (sunset, blocking, blocks app) [en] "Canasta has been retired" -> link https://homefelt.io/
banner: none
sheet: none
flags: onlinePlay=off newOnlineTables=off invites=off

7. Changing or removing a message

Fixing a typo

Edit the text and keep the revision. Dismissals are stored per id@revision, so what people see next depends on repeat: a once message they dismissed stays hidden, a daily one stays hidden until 24 hours after they dismissed it, and an everyLaunch one shows again at the next launch, in each case with the corrected text.

Showing a changed message again

Bump revision (2, 3, …) when the change matters enough to show it again to everyone, including those who dismissed it. For example revision-bump.json is case 1 with new words and "revision": 2. With revision 1 in the feed, someone who dismissed it sees nothing:

Terminal window
bin/app-status preview --feed spec/app-status/examples/soft-update.json --platform ios --version 2027.2.1 --now 2027-03-04T09:00:00Z --dismissed canasta-update-2027-3-1@1=2027-03-04T08:00:00Z
feed: spec/app-status/examples/soft-update.json
ios:
blocking: none
banner: none
sheet: none
flags: onlinePlay=on newOnlineTables=on invites=on

With revision 2 they see it again:

Terminal window
bin/app-status preview --feed docs/app-status-examples/revision-bump.json --platform ios --version 2027.2.1 --now 2027-03-04T09:00:00Z --dismissed canasta-update-2027-3-1@1=2027-03-04T08:00:00Z
feed: docs/app-status-examples/revision-bump.json
ios:
blocking: none
banner: canasta-update-2027-3-1@2 (update, warning) [en] "A new version of Canasta is ready" -> store
sheet: none
flags: onlinePlay=on newOnlineTables=on invites=on

Taking a message down early

Either delete the entry, or (to keep a record in the file) give it an ends of now, as in taken-down.json:

{
"id": "canasta-update-2027-3-1",
"revision": 1,
"kind": "update",
"severity": "warning",
"target": {
"platforms": ["ios", "android"],
"apps": ["canasta"],
"versions": { "below": "2027.3.1" }
},
"starts": "2027-03-03T08:00:00Z",
"text": {
"en": {
"title": "A new version of Canasta is ready",
"body": "It adds Modern American special hands and fixes a few things. Your saved game is safe.",
"action": "Update"
},
"es": {
"title": "Hay una nueva versión de Canasta",
"body": "Añade las manos especiales de la Canasta americana moderna y corrige algunos detalles. Tu partida guardada está a salvo.",
"action": "Actualizar"
}
},
"action": { "kind": "store" },
"repeat": "daily",
"ends": "2027-03-10T12:00:00Z"
}
Terminal window
bin/app-status preview --feed docs/app-status-examples/taken-down.json --platform ios --version 2027.2.1 --now 2027-03-11T09:00:00Z
feed: docs/app-status-examples/taken-down.json
ios:
blocking: none
banner: none
sheet: none
flags: onlinePlay=on newOnlineTables=on invites=on

Apps that already fetched the old feed drop the message at their next fetch (within 15 minutes of being opened), or at its old ends, whichever comes first.

8. An emergency

Something is wrong with online play right now. Turn it off with a feed-only pull request: a message with no ends and the onlinePlay and invites flags off. Set every starts to now or earlier, or the message and the flags wait for it. The flags only hide the apps’ online entry points; the game server stays open to an app that is already connected. To shut out an outdated app as well, raise HOMEFELT_MIN_CLIENT_VERSIONS (case 2, step 4). Copy from kill-switch.json:

{
"id": "online-paused-2027-06-02",
"revision": 1,
"kind": "maintenance",
"severity": "warning",
"target": { "apps": ["canasta"] },
"starts": "2027-06-02T14:00:00Z",
"text": {
"en": {
"title": "Online tables are paused",
"body": "Something is wrong with online play and we are fixing it. Games against the computer still work, and your saved game is safe."
},
"es": {
"title": "Las mesas en línea están en pausa",
"body": "Algo falla en el juego en línea y lo estamos arreglando. Las partidas contra el ordenador siguen funcionando y tu partida guardada está a salvo."
}
},
"repeat": "everyLaunch"
}
[
{ "id": "onlinePlay", "enabled": false, "starts": "2027-06-02T14:00:00Z" },
{ "id": "invites", "enabled": false, "starts": "2027-06-02T14:00:00Z" }
]
Terminal window
bin/app-status preview --feed spec/app-status/examples/kill-switch.json --platform web --now 2027-06-02T15:00:00Z --locale es
feed: spec/app-status/examples/kill-switch.json
web:
blocking: none
banner: online-paused-2027-06-02@1 (maintenance, warning) [es] "Las mesas en línea están en pausa" -> continue
sheet: none
flags: onlinePlay=off newOnlineTables=on invites=off

How fast it lands: as in the steps above, about a minute for Vercel to deploy, then the 60-second cache, then each app’s next fetch (at launch, or on coming back to the front at most every 15 minutes): about 20 minutes in all. Remove both entries (or give them an ends) once it is fixed.

A rollback rolls the feed back too. The feed deploys with the marketing site, so an Instant Rollback of the homefelt Vercel project also restores an older feed. After a rollback, check the feed with curl -s and, if an emergency message went missing, publish it again.

Keeping this page honest

bin/test app-status checks this page:

  • every ```sh preview block is run, and its output must match the ```text block after it;
  • every ```json from=… block must equal that file, one of its messages or flags, or its flags list;
  • every link to a file in the repository must resolve, and every #anchor must match a heading;
  • every file in docs/app-status-examples/ must be used here, and those files pass the same schema check as the live feed.

The curl and git blocks are not run. Change an example and this page together.