Repository navigation
History bots publish to the generated branch, not main (Part of #4847) - #4962
Merged
Merged
Conversation
call-resolution, graph-comparison, tree-sitter-accuracy, tri-comparison history and archetype-validation opened an auto-merged PR into main per run. They now publish their output to `generated` through tests/tools/generated_branch.py (plumbing push, retried on a lost race; main only). Appended CSVs are restored from generated first; readers (README/docs chart embeds, skills) point at generated. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This was referenced Oct 12, 2026
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 12, 2026 08:08
squid-protocol
enabled auto-merge (squash)
October 12, 2026 08:08
Contributor
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.
Part of #4847.
What
The four
*-historyworkflows andarchetype-validationopened an auto-merged PR into main per run (about 40 of 322 main commits in 7 days, each queueing open PRs behind it). They now publish to thegeneratedbranch, asevidence-pages.ymldoes (#4827).tests/tools/generated_branch.py:publish(scratch index +commit-tree+push <sha>:refs/heads/generated; checkout and HEAD untouched; no commit when nothing differs; retried on a lost race, writers own disjoint paths),fetch(restore a path from generated, no-op when absent),show(published copy, else committed copy: the reader fallback).gh pr mergesteps, the loop guard andpull-requests: writeare gone; a publish step runs only whengithub.ref == refs/heads/main(a dispatch elsewhere writes nothing, as evidence-pages.yml writes the generated branch on a workflow_dispatch from any ref (add a main-only guard) #4925). Appended CSVs (call_resolution_history,tree_sitter_accuracy_history,graph_coverage_history) and the archetype record are restored from generated first, otherwise each run would append to main's frozen copy. The four history workflows gainedworkflow_dispatch.language_standards/__init__.pydocstring table (the PR-time audit already enforces it,--summary-table); the blurbs go to the step summary.generated(raw URL for the charts); skills and READMEs updated; small separate section in docs/ci.md.The files already committed on main
Left untouched: frozen at the last bot PR. They are the seed and the fallback (nothing breaks if
generatedlacks a file). Ledgers keep their verdicts on main (people edit them there); the bot refreshes counts from main's copy and publishes the result, sounvalidatedshapes newly seen by the bot appear ongeneratedonly until a sweep regenerates the ledger locally.Trade-off to decide
archetype_validation.jsonis shipped inside the package (analysis_lens.pyloads it at import). Its refreshed copy now lives ongenerated; the packaged copy only changes when someone re-runsarchetype_drift.py measure --write-recordand commits it (e.g. at release). No label depends on it.Verification
Workflow changes cannot run locally. Verified instead: all 5 parse as YAML;
tests/tools/test_generated_branch.py(14 tests): publish/fetch/show/race-free disjoint writers/no-op/missing-file against a local bare remote; per-workflow lint (no PR, nogh pr merge, no PAT, publishes the listed files,pull-requests: writeabsent, fetch precedes--history); and a lint that only the listed workflows still commit to main.pr_gates --fast5/5,--ratchets7 pass 0 fail 0 skipped. Not done: a live run.After merge
Dispatch each of the 5 workflows once from main to seed
generated(README chart embeds are broken untiltri_comparison_chart.svgandgraph_coverage_chart.svgexist there).Class: workflows that commit bot output to main
Moved here: call-resolution-history, graph-comparison-history, tree-sitter-accuracy-history, tri-comparison-history, archetype-validation. Not moved (listed in the lint): gitgalaxy.yml (architecture brief, read from checkout by agents), mainframe-ground-truth.yml (
ground_truth_history.jsonl; #4935 in flight, not edited), evidence-refresh.yml (evidence records: approval inputs, must be on main; evidence_report), release-crucible-archive.yml (PR into language-crucible, not this repo). publish.yml / mirror-tag-sync.yml push to other remotes only.Cross-repo: none.
🤖 Generated with Claude Code