Skip to content

CI rehearsal (DO NOT MERGE): combined end state of the chosen Apodeixis.jl fixes - #28

Closed
hyperpolymath wants to merge 10 commits into
mainfrom
ci/rehearsal-linear
Closed

hyperpolymath wants to merge 10 commits into
mainfrom
ci/rehearsal-linear

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

DO NOT MERGE: this is a rehearsal

Each open fix PR on this repo shows red on its own, because the others fix what it cannot. So no single PR can prove CI will be clean once they land. This branch applies the set the owner chose, onto main, as six linear commits (no merge commits, to comply with the repo's linear-history ruleset), to run the full pipeline once on the combined result. If it is green, merging the real PRs in this set should give a green main. Close this PR after reading the result.

It replaces #27, which had merge commits that the ruleset should have refused (see the note on #27).

What is applied here

From PR What it fixes Owner decision
#15 deed line 228 over the 998-octet cap approved
#18 main.zig dupeZ helper keep the narrow PR
#16 LICENSE.adoc (MPL-2.0 AND CC-BY-SA-4.0) and the repository map chosen over #22's copy
#17 three dead internal links –
#23 delete build/container/Containerfile chosen over pinning it (#21 and #24 closed)
#25 Hypatia pin that fixes the RSR oracle segfault –

One conflict, resolved here only: mise.toml in #23. #13 already merged the julia declaration, and both versions declare the same tools. I kept main's. The #23 session should drop its mise.toml change.

Not included: #19 (template-form docs; not needed for green) and #22 (competing LICENSE.adoc; its session was asked to drop that file).

Checked locally on this tree

Deed lint at standards f0b3cd4 OK; check-mint-tokens, check-spdx-headers, check-mise-language, check-container-pins all PASS; check-root-shape PASS; check-internal-links PASS (83 links); tests/ffi_strings_test.sh PASS under Zig 0.16.0; check-lock-sync PASS. (Checked on the identical tree before the commits were made linear; git diff between the two is empty.)

Not checkable locally, so CI is the test: the RSR oracle, just validate-claude-md (needs nickel), the full Proven suite, and Fork governance.


Generated by Claude Code

The container-templates directory entry on line 228 was 1159 octets,
over the 998-octet DEED line cap. This splits it onto three lines,
copied from the current template deed (lines 223 to 225). No words
change. Only line breaks and indentation differ.

The owner approved this one deed edit. No hash, receipt or pin covers
deed lines.

Co-Authored-By: Claude <noreply@anthropic.com>
The template added a module-level dupeZ helper to main.zig after this
repository was cut from it. The template upgrade added
tests/ffi_strings_test.sh, which calls that helper, but did not apply
the matching main.zig change. The test fails to compile with "use of
undeclared identifier 'dupeZ'".

This file was identical to the base mint, so the change is the template
update applied with the project name filled in. Nothing else changes.

Co-Authored-By: Claude <noreply@anthropic.com>
The template root-shape gate requires LICENSE.adoc. This adds it with
two lines. Line 1 is the SPDX identifier for the dual licence. Line 2
is a plain-text note that MPL-2.0 covers code and CC-BY-SA-4.0 covers
prose. It is not an SPDX tag, because REUSE has no header tag for a
code and prose split.

docs/architecture/REPOSITORY-MAP.adoc is regenerated with just
repo-map, because the map lists root files and goes stale when
LICENSE.adoc is added.

Co-Authored-By: Claude <noreply@anthropic.com>
The two issue template links in .github/CONTRIBUTING.md resolved to
.github/.github/..., and the templates are .yml files, not .md. The
SECURITY.md link in docs/troubleshooting.adoc pointed at the repo root,
but the file is .github/SECURITY.md.

The owner approved this docs fix. No gate or allowance change.

Co-Authored-By: Claude <noreply@anthropic.com>
The mint-gates job has been red on main since the template upgrade to
48671ce (983f619). This repo was instantiated and upgraded by hand, so
two mint steps never ran here.

mise.toml: the file was the template's own toolchain (idris2, zig) and
did not declare julia. It is now rendered by scripts/render-mise.sh for
this tree's languages (idris2, julia, zig). The SPDX-FileCopyrightText
line is kept unchanged. mise.lock does not pin julia yet: run
`just toolchain-refresh` (needs mise and the network).

build/container/Containerfile: the file came from template base 889f7f7
and has 2 floating `FROM cgr.dev/chainguard/wolfi-base:latest` lines.
Template #266 removed it from the template because it could not build.
This repo publishes no image, so the file is removed here too. A repo
that publishes an image adds it back pinned with
scripts/pin-container-digests.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0136P7ZoZwvZCfM387TZQ5kY
…ault

`Dogfood Gate / RSR oracle — dogfood this repo` has failed on every push to
main (exit 139: `mix hypatia.rsr_score` segfaults). This repo pins Hypatia at
be98f74, which does not contain hypatia#1062 ("Stop the OTP 28 segfault in
scans and the RSR oracle (PinSites miscompile)", merged as 37b8d01). The
template moved to 51539ab, which does contain it.

Checked against the Hypatia history, not assumed: 37b8d01 is an ancestor of
51539ab and is NOT an ancestor of be98f74.

dogfood-gate.yml is now identical to rsr-template-repo main (d183b32). The
whole difference was 8 lines: the pin, its explanatory comment, the cache key
that embeds the pin, and a comment that the mint's self-name pass had rewritten
from "rsr-template-repo#333" to "Apodeixis.jl#333".

No `uses:` line changes, so actions.lock is untouched; scripts/check-lock-sync.sh
passes. The rsr-template-repo oracle passes on this pin and the same
OTP 27.3.4.19. Not verified here: that the oracle passes in THIS repo. The CI
result on the PR is the test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0136P7ZpPGXDRaKVgNQUecwy
…y together

The previous commit moved the RSR oracle's pin in dogfood-gate.yml. The same
stale Hypatia commit, be98f74 (it lacks hypatia#1062, the PinSites miscompile
fix, 37b8d01), was still pinned in three more workflows, and the scan in
hypatia-scan.yml segfaulted with exit 139 on PR #25 ("Hypatia Neurosymbolic
Analysis"; it had passed on main, so the crash is intermittent).

Sync to rsr-template-repo main (d183b32), which pins 6693f9a for these:
- hypatia-scan.yml (HYPATIA_SHA, and a comment renamed by the mint)
- fork-governance.yml and verdict-grid-publish.yml (--hypatia-ref)
- .machine_readable/policies/hypatia-rule-order.json (scanner.commit)

These move together because scripts/check-hypatia-rule-order.sh requires the
policy's scanner.commit to equal HYPATIA_SHA. Syncing the workflows alone fails
that check (verified).

The template's policy also classifies a structural_drift module, which needs
an SD022 exemption for build/docs-seed/. This repo has no build/docs-seed/, and
check-hypatia-ignore.sh rejects an exemption for a missing path. Followed the
mint's own handling (build/just/repo-init.just, where it prunes docs-seed):
the exemption block is left out of .hypatia-ignore (unchanged from main) and
the structural_drift object is removed from the policy with the same sed.

Checked locally, all pass: check-hypatia-rule-order, check-workflow-edges,
check-hypatia-ignore, check-lock-sync. check-ijson-jcs reports the same one
non-canonical file as main (.machine_readable/arrival-pack/claude-md-data.json),
not touched here.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0136P7ZpPGXDRaKVgNQUecwy

Copy link
Copy Markdown
Owner Author

Update: this rehearsal now has seven linear commits, not six. I added #25's second commit (the remaining Hypatia pins plus the rule-order policy, 312b95b) after finding the Hypatia scan segfaulting on a stale pin too. The table above is otherwise unchanged. Local checks on this tree pass: the three Hypatia policy/edge/ignore checks, root shape, deed lint, container pins.


Generated by Claude Code

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 14, 2026 16:04
Repository owner deleted a comment from coderabbitai Bot Nov 14, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T16:17:38.181216Z adf36d1 New commits
🔒 Security Review ✅ Completed 2026-11-14T16:17:50.510151Z adf36d1 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

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 1 minute.

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

Commits

Reviewing files that changed from the base of the PR and between 93c1f93 and c21233d.

Files selected for processing: 14

  • .github/CONTRIBUTING.md
  • .github/workflows/dogfood-gate.yml
  • .github/workflows/fork-governance.yml
  • .github/workflows/hypatia-scan.yml
  • .github/workflows/verdict-grid-publish.yml
  • .machine_readable/policies/hypatia-rule-order.json
  • Apodeixis.jl_chora.deed
  • CLAUDE.md
  • LICENSE.adoc
  • build/container/Containerfile
  • docs/HYPATIA-RULE-ORDER.adoc
  • docs/architecture/REPOSITORY-MAP.adoc
  • docs/troubleshooting.adoc
  • src/interface/ffi/src/main.zig

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 312b95b081

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/dogfood-gate.yml Outdated
ref: be98f74ce93df200752f3798efa1305bfa3e0e10
# Pinned to a Hypatia commit that contains hypatia#1062 (the PinSites miscompile
# fix, merged as 37b8d01). The earlier pin be98f74 lacks it.
ref: 51539abf3d2472b955da9b051a68c5971f6cfa22

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the oracle on the repository-wide Hypatia pin

When Hypatia behavior changes between commits, the RSR oracle here runs 51539ab… while .github/workflows/hypatia-scan.yml, both verdict renderers, and the rule-order policy use 6693f9a…. This reintroduces the policy's explicitly recorded “one tool, two pins” clash and can make dogfood scoring evaluate different rules from the repository's scanner; update this checkout and its cache key to the repository-wide pin.

Useful? React with 👍 / 👎.

…ated region

`estate-rules` fails on the rehearsal at `bash tests/workflows/governance_policy_test.sh`
with `AssertionError: missing section: ## Proofs — which prover for which
obligation`. That test (synced from rsr-template-repo by the template upgrade
in #12) requires CLAUDE.md to carry this hand-authored section below the
generated arrival-pack region, pointing at the canon proof policy and at
verification/proofs/README.adoc. The upgrade synced the test but not the
CLAUDE.md section. This repo already has verification/proofs/README.adoc with
every section the test reads.

Append the section verbatim from rsr-template-repo main (d183b32). CLAUDE.md
allows hand-authored notes above or below the generated region; the generated
region (lines 17-82) is byte-identical (checked by hash), and the section sits
after ARRIVAL-PACK:END, as the test requires.

Verified: governance_policy_test.sh fails on main with the assertion above and
passes (exit 0) with this change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0136P7ZpPGXDRaKVgNQUecwy

Copy link
Copy Markdown
Owner Author

Update: the rehearsal now has eight linear commits. The rehearsal found a failure that LICENSE.adoc had been hiding. With LICENSE.adoc present, estate-rules gets past the root-shape step and then fails at governance_policy_test.sh (missing section: ## Proofs — which prover for which obligation). I added the fix as its own PR, #29 (a hand-authored section in CLAUDE.md, below the generated region), and cherry-picked it here (b37bb1a).

State of this rehearsal on the previous head 312b95b, before this commit: mint-gates passes; the Hypatia scan that segfaulted on #25 passes on the new pin; 22 checks were green. The rest of the estate-rules chain passes locally (governance, badge, verdict-grid, secret-scanner and workflow-gap tests, and the Hypatia ignore, rule-order and workflow-edge checks); kyaml_ratchet_test needs the Go yq that CI installs, so only CI can show it.

Note: the Fork governance verdict failure on the older head 326289f was a run cancelled by a newer push (all three input lanes cancelled), not a real failure. It is a template defect, sent to the rule owner as CASE 9.


Generated by Claude Code

HoTT-stuff and others added 2 commits November 14, 2026 16:14
Codex raised the same P2 on two PRs: the oracle ran Hypatia 51539ab while
hypatia-scan.yml, both verdict renderers and the rule-order policy name
6693f9a. docs/HYPATIA-RULE-ORDER.adoc (C2) says one pin per tool per
repository and that a pin at two commits in two workflows is a failure.

Move the oracle's checkout and its cache key to 6693f9a. Verified from the
Hypatia history: 6693f9a descends from 51539ab, so it contains hypatia#1062
(37b8d01), the PinSites miscompile fix that the stale be98f74 lacked. Every
Hypatia pin in the repo is now the same commit (6 occurrences in 5 files).
check-hypatia-rule-order, check-workflow-edges, check-hypatia-ignore and
check-lock-sync pass.

Not verified: that the RSR oracle PASSES on 6693f9a. It passed on 51539ab (the
first commit of this PR, in CI). This commit is an experiment: if the oracle
fails on 6693f9a in CI, revert this commit.

This departs from rsr-template-repo main, whose dogfood-gate.yml has the same
51539ab/6693f9a split (sent to the rule owner as CASE 8).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0136P7ZpPGXDRaKVgNQUecwy
Codex (P2, PR 25): docs/HYPATIA-RULE-ORDER.adoc still named be98f74 and the
old exemption sets while hypatia-rule-order.json records 6693f9a. The document
calls itself the repository's policy statement, and no checker compares the
prose with the JSON, so the two drifted silently.

Take the template's version (rsr-template-repo d183b32): the pin line, the
universal excludes (adds .hypatia-exemptions.md) and the built-in default
exemptions (per-module list, integration.yml, harvested-registry/). Three
lines differ from the previous file; nothing else changed.

Follow-up for the template: no gate compares this prose with the policy JSON.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0136P7ZpPGXDRaKVgNQUecwy
@sonarqubecloud

Copy link
Copy Markdown

Copy link
Copy Markdown
Owner Author

Closing this rehearsal. It did its job.

Result on head c21233d: all 50 checks complete, 0 failed. That includes the RSR oracle on Hypatia 6693f9a, estate-rules, mint-gates, DEED syntax, the Proven suite and Fork governance verdict. Skipped or neutral: container, automerge, Email on push, CodeRabbit and three conditional dogfood jobs.

What I merged on the strength of it: #15, #18, #23, #17, #16, #25 and #29, in that order, each squash-merged. I applied the seven PR heads to the old main in a scratch tree first, and the result was identical to this branch's tree (0 differing lines). After the last merge, main (1d05a4b) is also identical to it (0 differing lines). Each merge changed only the files its PR names.

Not yet proven: CI on main itself. Its runs for 1d05a4b were all still queued when I looked, so I am not claiming main is green until they finish.

The branch ci/rehearsal-linear is no longer needed. I cannot delete branches with my tools, so the owner may delete it, along with the stray ci/rehearsal-green-main.


Generated by Claude Code

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.

4 participants