Skip to content

feat(ci): open one issue per new entry on flow.google.com/changelogs (#1800) - #1807

Merged
ffroliva merged 3 commits into
developfrom
feature/1800-changelog-watcher
Dec 5, 2026
Merged

ffroliva merged 3 commits into
developfrom
feature/1800-changelog-watcher

Conversation

@ffroliva

@ffroliva ffroliva commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Closes #1800. Part of #1229 (drift handling).

Summary

Flow announces product changes on flow.google.com/changelogs: models added or retired, composer and settings changes. gflow drives Flow's private surfaces, so an entry there is often the first warning of a change that will break a command. Nothing watched it until now.

  • Spike (docs/superpowers/spikes/2026-12-05-changelog-bundle-discovery.md): the shell that flow.google.com serves without cookies names one /_/js/ bundle, and that bundle holds the entries as an object-literal array, {title, date, id}. A cookieless GET is enough: no account, no browser. Each entry's page is public at www.gstatic.com/aitestkitchen/website/flow/changelogs/<id>.html.

  • scripts/ci/flow_changelog_watch.py:

    • parses the entries, allowing the minifier's line breaks between keys and decoding string escapes;
    • skips the 46 entries in the committed baseline (scripts/ci/flow_changelog_baseline.json) and any entry already named by an issue under the flow-changelog label, open or closed;
    • opens one issue per new entry, oldest first, with a link to the entry and an id marker.

    An empty parse, or a shell that names no bundle, exits 2, so a format change turns the run red instead of reporting nothing new. It uses the standard library only, like driver_watch.py.

  • .github/workflows/flow-changelog-watch.yml: runs daily at 06:30 UTC, with workflow_dispatch and a dry_run option. Permissions are contents: read and issues: write. Actions are pinned and checkout keeps no credentials.

  • Docs: a row in the drift-handling table of docs/FLOW_WIRE_RPCS.md, and a CHANGELOG entry.

Verification

  • tests/scripts/test_flow_changelog_watch.py: 11 passed. Each guard was removed in turn, and every removal failed at least one test:

    Guard removed Tests failed
    whitespace before id 1
    oldest-first order 1
    baseline 2
    existing issues 1
    escape decoding 2
    the empty-parse failure 1
  • Live dry run against the real bundle: python scripts/ci/flow_changelog_watch.py --dry-run gave entries: 46; new: 0.

  • Gates: ruff check and ruff format on the new files, check_repo_hygiene, check_size, check_doc_links, check_website_docs_pii, check_council_memory, and generate_website_docs --check.

  • No gflow command, MCP tool or Flow request changes, so no e2e applies. The live dry run is the end-to-end check of the one external surface, the public bundle.

…1800)

Flow announces model, composer and settings changes on its changelog page,
often before a gflow command breaks on them, and nothing watched it.

The bundle-discovery spike shows the entries ship as an object-literal array
in the shell bundle that flow.google.com serves without cookies, so the
watcher needs no account and no browser. `scripts/ci/flow_changelog_watch.py`
reads the entries (id, title, date; the minifier's line breaks and string
escapes are handled), skips the 46 in the committed baseline and any entry an
issue in the `flow-changelog` label already names, and opens one issue per
new entry, oldest first. An empty parse or a shell with no bundle exits 2, so
a format change turns the run red instead of reporting nothing new. Standard
library only, as driver_watch. Scheduled daily by
`.github/workflows/flow-changelog-watch.yml`; `dry_run` prints the plan.
@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b354d5d7-eaa1-48bf-a44d-14c1c8035f36
Commits

Reviewing files that changed from the base of the PR and between fa402f8 and ab720bf.

Files selected for processing: 8

  • .github/workflows/flow-changelog-watch.yml
  • CHANGELOG.md
  • docs/FLOW_WIRE_RPCS.md
  • docs/superpowers/spikes/2026-12-05-changelog-bundle-discovery.md
  • scripts/ci/flow_changelog_baseline.json
  • scripts/ci/flow_changelog_watch.py
  • scripts/dev/spike_changelog_bundle_discovery.py
  • tests/scripts/test_flow_changelog_watch.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…ding (#1800)

Review of the first version found:
- A title with a JavaScript escape JSON lacks (`\xHH`, `\'`) raised an
  uncaught JSONDecodeError on every run; the bundle already writes `\x3c`,
  `\x3e` and `\xa0` in other strings. Both escapes are now decoded, one
  escape pair at a time, and any title that still cannot be decoded (or
  decodes to a lone surrogate) exits 2 as PARSE-CHANGED.
- An entry in a new shape was dropped silently while the old ones parsed.
  The count of entry openings must now equal the count parsed.
- Nothing bounded a run: more than MAX_NEW (5) new entries, or an issue
  listing that reaches ISSUE_LIMIT, exits 2 and opens nothing.
- The label is created once, before the issues; a concurrency group stops a
  manual run racing the schedule; each issue asks to keep its marker and
  label, which the job reads to avoid a duplicate.
@ffroliva
ffroliva merged commit 8f06a72 into develop Dec 5, 2026
22 checks passed
@ffroliva
ffroliva deleted the feature/1800-changelog-watcher branch December 5, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Watch flow.google.com/changelogs and open an issue per new entry

1 participant