ci: add on-demand baseline refresh workflow#24
Merged
Conversation
Adds a workflow_dispatch job that regenerates .codeboarding/analysis.json against main's current tree and commits it, refreshing metadata.commit_hash to main's tip. The PR review workflow never writes to main, so main's committed baseline goes stale — every PR then diffs (and the webview "explore in browser" link compares) against an outdated snapshot. Run this manually to keep the baseline current. It is the manually-triggered form of the baseline keeper described in docs/COMMIT_STRATEGY.md; reuses the same engine bootstrap and cb_engine.py base path as the review action, with the repo's existing OPENROUTER_API_KEY secret. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Architecture review · no architectural changesgraph LR
n_Analysis_Orchestrator["Analysis Orchestrator"]
n_Visual_Diff_Engine["Visual Diff Engine"]
n_UI_Metadata_Generator["UI #amp; Metadata Generator"]
n_Analysis_Orchestrator -- "Provides analysis.json files to" --> n_Visual_Diff_Engine
n_Visual_Diff_Engine -- "Passes Mermaid diagram and identifiers to" --> n_UI_Metadata_Generator
n_Analysis_Orchestrator -- "Supplies repository context to" --> n_UI_Metadata_Generator
classDef added fill:#1f883d,stroke:#0b5d23,color:#ffffff;
classDef modified fill:#bf8700,stroke:#7d4e00,color:#ffffff;
classDef deleted fill:#cf222e,stroke:#82071e,color:#ffffff,stroke-dasharray:5 3;
Colors indicate component changes compared to See this architecture in your editor: Open in VS Code → codeboarding-action · run 27361481585 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Adds
.github/workflows/refresh-baseline.yml— aworkflow_dispatch(manually-triggered) job that regenerates.codeboarding/analysis.jsonagainst main's current tree and commits it, refreshingmetadata.commit_hashto main's tip.Why
The PR review workflow (
codeboarding.yml) only ever writes to PR branches — it never refreshes main's committedanalysis.json. As a result main's baseline is frozen at the last manual commit (currently the 2026-05-25 baseline), so:headvs the analysis committed at the PR base SHA — which is that same stale file → a misleading diff.This is the manually-triggered form of the "baseline keeper" described in
docs/COMMIT_STRATEGY.md. Run it from Actions → Refresh CodeBoarding baseline → Run workflow to bring main current; re-run whenever main drifts.How
Reuses the exact engine bootstrap and
cb_engine.py basepath the review action uses (engine checkout at the pinnedengine_ref, Python/Node/uv, LSP servers), then commits the result. Uses the repo's existingOPENROUTER_API_KEYsecret and optionalAGENT_MODEL/PARSING_MODELvars. Needscontents: write(declared on the job).This is a single new workflow file — no changes to the action code.
🤖 Generated with Claude Code