Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/flow-changelog-watch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Flow changelog watch

# Flow announces product changes (models added or retired, composer and settings changes)
# on flow.google.com/changelogs. gflow drives Flow's private surfaces, so an entry there is
# often the first warning of a change that will break a command. The entries ship in the
# public shell bundle, so this job reads them with no account and no browser and opens one
# issue per new entry (label `flow-changelog`). A bundle that stops parsing fails the run.
# Spike: docs/superpowers/spikes/2026-12-05-changelog-bundle-discovery.md

on:
schedule:
- cron: "30 6 * * *" # daily, 06:30 UTC
workflow_dispatch:
inputs:
dry_run:
description: "print the issue plan without opening issues"
type: boolean
default: false

permissions:
contents: read

# A manual run overlapping the schedule could open the same issue twice.
concurrency:
group: flow-changelog-watch
cancel-in-progress: false

jobs:
flow-changelog:
name: Open an issue per new Flow changelog entry
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false

- name: Install uv
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0

- name: Read the changelog entries and open issues for new ones
env:
GH_TOKEN: ${{ github.token }}
DRY_RUN: ${{ inputs.dry_run && '--dry-run' || '' }}
# Standard library only, so no project install is needed.
run: uv run --no-project --python 3.13 python scripts/ci/flow_changelog_watch.py $DRY_RUN
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- **A daily `flow-changelog` job opens one issue per new entry on
flow.google.com/changelogs.** Flow announces model, composer and settings changes there,
often before a gflow command breaks on them. The entries ship in the public shell bundle,
so the job reads them with no account and no browser
([spike](docs/superpowers/spikes/2026-12-05-changelog-bundle-discovery.md)). Entries that
existed when the job started are in a committed baseline; each later entry gets one
`flow-changelog` issue, keyed by the entry's id, and is never announced twice, even after
its issue is closed, as long as the issue keeps its label and its id marker. A bundle that
stops parsing, or more than five new entries at once, fails the run. `workflow_dispatch` with
`dry_run` prints the plan only ([#1800](https://github.com/ffroliva/gflow-cli/issues/1800)).

### Changed

- A usage error found while a generation command runs (an unknown `--tool`, a tool that does
Expand Down
1 change: 1 addition & 0 deletions docs/FLOW_WIRE_RPCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ not driven.
| Every commit and CI run | Every RPC id constant in `src/` has a row | `tests/test_flow_wire_rpcs_catalog.py` |
| A spike sees an id that matters | Add a row with its evidence, or list it below | the spike skill |
| Every night | Check every id in this table against the served JS with no cookies and no browser, record the build label, and archive the build's full descriptor list with what changed since the last build | the canary's `RPC-DRIFT` section (`scripts/canary/rpc_drift.py`, #1218); see [E2E_TESTING.md](E2E_TESTING.md#rpc-drift-check-1218) |
| Every day | Read the entries of `flow.google.com/changelogs` from the cookieless shell bundle and open one `flow-changelog` issue per new entry; an entry announcing a model, composer or wire change is the earliest warning of a change to this table | the `flow-changelog` job (`.github/workflows/flow-changelog-watch.yml`, `scripts/ci/flow_changelog_watch.py`, #1800); see the [bundle-discovery spike](superpowers/spikes/2026-12-05-changelog-bundle-discovery.md) |
| `RPC-DRIFT` reports `ID-GONE` | First confirm with a page load (the served-JS spike's arm 2) that the id did not move to a module outside the four. If it is still absent, set `Status` to `gone` or `renamed -> X`, fill `Renamed from` on the new row, and update `Last verified` | a maintainer, from the canary comment. The canary never edits this file. |

The served app holds about 267 ids in the RPC descriptor shape (`{Wa:"<id>",hb:…,Za:!0,Xa:…,kb:…}`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Spike: finding the changelog entries without a profile (#1800)

**Date:** 2026-12-05 · **Account:** none (cookieless) · **Cost:** $0, no browser
· **Script:** [`scripts/dev/spike_changelog_bundle_discovery.py`](../../../scripts/dev/spike_changelog_bundle_discovery.py)
· **Follows:** the changelog section of the 2026-12-05 spike on the direct project lifecycle and
the changelog feed (#1229), which found the entries inside one public
`/_/mss/boq-labs-ai-sandbox/_/js/` bundle by loading `/changelogs` on a signed-in profile, and
left open how a client with no profile finds that bundle.

## Question

Does the shell that `flow.google.com` serves without cookies name the bundle that carries the
changelog entries, the way it names the script `scripts/canary/rpc_drift.py` reads?

**Pre-registered reading:** if a script reachable from the cookieless shell carries the known
entry text, the watcher fetches that script and needs no profile. If none does, the entries live
in a module the shell does not name, and the next step is to find that module's name.

## Method

`httpx` GETs with no cookies and an `en-US` `Accept-Language`, for `https://flow.google.com/` and
`https://flow.google.com/changelogs`. For each page, every `/_/js/` script the shell names was
fetched as served, and again with `m=` replaced by `rpc_drift.FEATURE_MODULES`. Each response was
searched for the entry text found on the profile run.

## Results

| Shell | Script | Status | Length | Entry text |
|---|---|---|---|---|
| `/` | as served | 200 | 1,460,318 | present |
| `/` | feature modules | 200 | 6,615,641 | present |
| `/changelogs` | as served | 200 | 1,460,318 | present |
| `/changelogs` | feature modules | 200 | 6,615,641 | present |

Both shells name the same single `/_/js/` script. The entries are an object-literal array in it:

```js
var yzb=[{title:"…",date:"12/4/2026",id:"2026-12-03-v0-…"}, …]
```

- The variable name is minified and changes between builds.
- The minifier sometimes breaks the line before `id:`.
- Titles keep JavaScript escapes (`\u2026`).
- Dates are `M/D/YYYY`.

A parser that allows whitespace between the keys reads 46 entries, with 46 distinct ids, matching
every `{title:"` in the script.

Each entry's page is public at
`https://www.gstatic.com/aitestkitchen/website/flow/changelogs/<id>.html`. The script builds that
URL for the app's changelog dialog, and a cookieless GET of the newest entry's page returned 200.

The profile run of the earlier spike was served a Portuguese build of the same script (`pt`),
whose entries were in English too. The newest entry it rendered was older than the newest
entry in the `en_US` build read here. The two locale builds can carry different entry sets at
the same moment, so the watcher reads one fixed locale (`en-US`).

## Consequences

- A changelog watcher needs no account, no profile and no browser. It runs on hosted CI.
- The watcher keys entries by `id`. Titles and dates are display text.
- An empty parse means the format changed, so the watcher fails rather than report nothing new.
- **Not measured:** whether Flow edits an entry's title or date after publishing it. The
watcher opens an issue once per `id` and does not track later edits.
48 changes: 48 additions & 0 deletions scripts/ci/flow_changelog_baseline.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[
"07_21_26_community_tools_launch_9d1984d6-624e-44b6-8671-2d4ce48868b2",
"08-26-26_omni_439461c7-439a-4e04-8f2e-8fc288897eb6",
"17b37e91-79b4-4845-8bd7-469929d5fec4",
"2025-02-03-v0-9a65f3ee-0db3-452a-87e2-19992e599e0f",
"2025-08-18-v0-9fe8aadb-aae6-46c7-bf0d-a8fe11ce18d5",
"2025-08-21-v0-80f5e009-a545-4476-bd7f-53842fbe952c",
"2025-08-26-v0-3fd83e53-2581-4352-b491-6a4a1ced375b",
"2025-09-10-v0-8b89f37b-f7ba-4819-801c-0f04ef578af7",
"2025-09-24-828276e9-0e5f-4868-a742-63cb4b05f8e6",
"2025-10-09-87762944-d2df-4666-b68e-4541d589aabc",
"2025-10-15-b9a851d-9fbb-49bb-95f9-270cbb9af9a8",
"2025-10-21-a41845ef-8e78-4f98-a0dc-64ea45f784ee",
"2025-10-28-v0-e56a33b0-7130-4be8-b58f-028712e5a253",
"2025-11-04-v0-ec25c664-fad7-4522-8d00-4e76e49ce5f8",
"2025-11-11-v0-baacbeac-33b6-4fad-96b7-4d517bf0c10a",
"2025-11-18-6a99b1dd-38fb-4faf-9bc5-28399303b7a7",
"2025-11-18-v0-5e3eb06f-e319-40d9-a277-1dfd3252a1fb",
"2025-11-20-v0-7d5dd0f1-f2d2-43a3-b255-233d2e7a3110",
"2025-11-21-v0-5077d03d-7c92-4620-a828-615891c937f3",
"2025-11-25-v0-4925732e-93b3-4765-bfcf-e597a9a93ac5",
"2025-12-02-v0-0761a040-c6c0-4d62-b1a4-310345da8878",
"2025-12-15-v0-333d6813-a2ef-4044-939c-c8c40661499f",
"2025-12-18-v0-e2054626-1ac3-4d64-81ec-3134a94549a4",
"2026-02-25b-8937c021-a92d-4e0f-8913-de655d126fce",
"2026-02-26b-a3b642ff-0d15-4f29-85aa-d92488c95033",
"2026-03-02-dbb81d57-8cb5-467b-8558-fa49e99f6662",
"2026-03-19-v1-3f4e036c-6a67-467f-a0e6-25cff0a0a8ab",
"2026-03-30-v0-72511146-ea4a-4b0b-808c-0851d8217471",
"2026-04-02-v0-f77616c4-b8ce-4e6d-9687-c23bd40baa32",
"2026-04-10-v0-e46f75f7-e0d4-4202-98e7-8985a8bea150",
"2026-04-16-v0-a8bcba80-04c0-4a1e-843b-bd3b8de74582",
"2026-04-21-v0-d3ad0784-1b05-4800-870e-c2e71a26e08f",
"2026-04-28-v0-08018419-2523-4641-976f-6293a72c7524",
"2026-05-16-v0-80e87fe8-f14b-4172-b2fb-58d89b010701",
"2026-06-04-v0-592e1b5a-8b61-4144-bdb6-946348b48e56",
"2026-06-10-v1-02b0b08c-06d1-47e5-b8f5-4cd8cab6c4bc",
"2026-06-23-v0-geo-street-5fb1f3c2-5f1b-469b-8492-6566d8d0d7e3",
"2026-09-03-v1-angular-2447aa1d-5f7d-4565-adf4-b1fa6efffd49",
"2026-09-09-v0-ios-launch-3d6a1b86-7198-4e1e-b000-e735ffe9e7cb",
"2026-11-02-v0-asset-management-b42e38ef-50c6-46f4-ac49-0325a661f859",
"2026-11-05-v0-119a1844-21e0-46dc-8495-b80da900395f",
"2026-11-19-v0-c8e4b912-7a3f-4e68-9d21-5f4a83b19c07",
"2026-12-03-v0-fbb13edf-cc2d-4b2f-899e-494e82b2d37d",
"5962e32c-5f59-47ca-b1b7-a9bdb8b924da",
"c54785a2-405c-4fb7-b69d-1fa40e3ecb93",
"tools-nb2lite-2026-07-01-a18bf458-e7f9-4abf-a2df-07686f573f02"
]
Loading