Skip to content

bot output to the generated branch: ground-truth history, evidence report, census reader (Part of #4963) - #5017

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4963-20261013T0305Z
Oct 13, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4963-20261013T0305Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4963 (siblings of #4847 / #4962). Draft.

Design: bot output goes to generated through tests/tools/generated_branch.py; every reader reads the published copy, else the committed one.

Class: bot output committed to main that should be published to generated

Member Status
mainframe-ground-truth history moved (this PR)
evidence-refresh evidence report moved (this PR); records + det-sweep ledger stay in the bot PR (approval inputs)
cics_census.read_generated moved onto the shared reader (this PR)
evidence_report.py --check, estate_intake.py (readers of the moved report) published-then-committed (this PR)
architecture brief (gitgalaxy.yml) open: needs a reader design (agents read the checkout); not implemented

Code

  • generated_branch.py: publish accepts a directory (expand); read_at reads a path at an already-fetched tip (one fetch for many files).
  • evidence_report.py --check (release gate in publish.yml): compares against the published report, else the committed copy (current_texts). estate_intake.py same.
  • cics_census.read_generated: shared reader; errors clearly when nothing is published (these files have no committed copy). Its callers no longer run their own git fetch.
  • Tests: test_generated_branch.py (ground-truth in MOVED + fetch-before---history, directory publish, evidence-refresh add-paths/publish-report, ground-truth PR job holds no write token), new test_generated_readers.py (published over committed, fallbacks, no origin, no branch), test_cics_census_baseline.py stub updated. Local note: test_the_committed_reports_are_current fails locally (zecs stale on main, as before; it is advisory in PR CI and the branch has no published report yet, so the fallback is the old behaviour).

Workflow lines changed

mainframe-ground-truth.yml

  • header comment: describes the new mechanism.
  • ground-truth job if: loses the "docs: auto-update mainframe ground-truth history" loop guard: no bot commit lands on main any more.
  • new step "Restore the published history" (push/schedule): fetch the jsonl so the append continues the published series (the copy on main is the seed).
  • "Open PR with updated history" and "Merge the history PR" removed (they used AUTOMATION_PAT).
  • new step uploads the jsonl as an artifact (push/schedule only); new job publish-history (contents: write, persist-credentials: true, main push/schedule only) downloads it and runs generated_branch.py publish. A separate job so the job that runs PR code holds no write token.

evidence-refresh.yml

  • header comment note.
  • refresh job: output report (outcome of the rebuild step, new id: report); new upload-artifact step of the rendered report dir.
  • create-pull-request add-paths: docs/language_status/evidence_report/** removed; PR body text adjusted.
  • new job publish-report (needs refresh, main only, contents: write, evidence-pages concurrency group like publish-blockers): downloads the report and generated_branch.py publish the directory.

Gates

pr_gates --fast: 5/5 pass. --ratchets: 7 pass, 0 fail, 0 skipped. No golden bless (no parsing change). The first publish of the report/history happens on the next nightly / a workflow_dispatch from main.

🤖 Generated with Claude Code

…port; readers use the shared reader (Part of #4963)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 13, 2026 03:24
@squid-protocol
squid-protocol enabled auto-merge (squash) October 13, 2026 03:24
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant