GeezerVison is showing github.com — feat(pm-console): show Cloudflare apply provenance on the Cloudflare screen (#13495 slice 3) by dezren39 · Pull Request #14930 · developing-today/code
Conversation
dezren39
commented
Nov 25, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Slice 3 of #13495 (queue task 23716): the app's Cloudflare screen now shows where the repository-described Cloudflare configuration was last successfully applied from.
What changed
pm-stack/console/src/ops.ts — a pure model, latestApply, over the pm-cloudflare-config.yml workflow runs, plus Ops.cloudflareApply(), which reads the dispatched runs on main (event=workflow_dispatch&per_page=10) through the existing gh path. Only a dispatched run can apply (pushes and pull requests only validate), and only a completed, successful one counts: a failed or in-progress run is never presented as an apply, and a malformed run record is passed over rather than trusted. The result is the run's source (workflow name, plus the dispatching actor when GitHub records one), its full commit SHA, its completion time, and a link to the run.
pm-stack/console/src/reads.ts — the read is served as the cloudflare-apply platform read, so it is answered wherever the app is served from, like the other GitHub-only reads.
pm-stack/console/public/app.js — the Cloudflare screen renders the provenance line (applySaid) with a "See the run" link; with no successful apply on record it says "Apply provenance is unavailable: no successful apply is on record.", and if the read itself fails it says so without disturbing the rest of the screen.
infra/pm-cloudflare/README.md — the follow-on note now records the display instead of listing it as missing.
Reading provenance dispatches no workflow, changes no Cloudflare state, and exposes no repository secret values: the read returns only the run's source, commit, completion time and URL, and the tests assert the single call made is the runs query.
Verification
Focused Bun tests (model oracle: a fake GitHub API/runner supplies successful, failed, in-progress, push-event and wrong-branch runs; screen oracle: fixture provenance renders the sentence and the no-success case):
Refs #13495 — the issue stays open: the remaining criterion is the expose.py tunnel-only reduction.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-25T08:12:51Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch/workspace/github-work/code-13495-prov",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch/workspace/github-work/code-13495-prov",
"repo": "developing-today/code",
"branch": "xaltha/13495-apply-provenance",
"sha": "746f70c917c4e688fda925e95b300223a7a0508d"
},
"auth_subject": "xaltha",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…screen (#13495 slice 3)
The Cloudflare screen now says where the repository-described
configuration was last successfully applied from: the latest
successful dispatched run of pm-cloudflare-config.yml on main, with
its source, commit, completion time and a link to the run. Failed or
in-progress runs are never presented as an apply, pushes and pull
requests only validate so they never count, and when no successful
apply is on record the screen says provenance is unavailable.
The new cloudflare-apply platform read only reads the workflow runs
GitHub already recorded: it dispatches nothing, changes no
Cloudflare state and reads no secret values.
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 17 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review 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:
66bb1f7f-3254-4164-baa1-4f34348dceef
Commits
-
Reviewing files that changed from the base of the PR and between dc64602 and 746f70c.
Files selected for processing: 6
-
infra/pm-cloudflare/README.md
pm-stack/console/public/app.js
pm-stack/console/src/ops.ts
pm-stack/console/src/reads.ts
pm-stack/console/test/app.test.ts
pm-stack/console/test/direct.test.ts
- 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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 25, 2026
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|