Skip to content

Record the Measured Absence of a Git Floor for --end-of-options - #4484

Merged
ptr727 merged 5 commits into
developfrom
burndown/git-end-of-options-floor
Nov 26, 2026
Merged

ptr727 merged 5 commits into
developfrom
burndown/git-end-of-options-floor

Conversation

@ptr727

@ptr727 ptr727 commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Measures the git floor the rev-parse --verify --quiet --end-of-options <ref>^{commit} read in scripts/skills_install.py needs, and records the answer in the git entry of spec/host-tools.json. The answer is no floor. The read resolves an ordinary ref on every release measured, back to 2.20.5. The issue's premise was that an older git fails every candidate ref, and the measurement disproves it. rev-parse --verify drops a flag it does not know, so a release older than the marker reads refs/remotes/origin/main and refs/heads/main the same way a current one does.

What the marker adds, from 2.30.0, is its meaning. A ref name beginning with a dash resolves as a revision there. On 2.29.3 and below the same read exits 1 with no output, so an older release fails that case closed rather than misreading it. Debian 12 packages 2.39.5 and Ubuntu 22.04 packages 2.34.1, so a supported distribution sits above even that release.

docs/host-setup.md already lists git with no floor and says it comes from the distribution, so it needs no edit. tests/test_host_gate.py needs no constructed case, since no floor is added.

Evidence

Each run used one container, a throwaway repository with one empty commit, and setsid --wait timeout. Every container ran with --rm, and afterwards docker ps -a --filter name=gitfloor and pgrep found nothing left. The probe ran these reads:

  • rev-parse --verify --quiet 'HEAD^{commit}', the control.
  • rev-parse --verify --quiet --end-of-options 'HEAD^{commit}', the read the issue names.
  • The same read on an absent ref, to show the success above is a real resolution.
  • The same read on a ref named refs/heads/-x, with and without the marker, to show where the marker gains meaning.
git Source Control Marker read Absent ref Dash ref with marker
2.20.5 kernel.org tarball, built in debian@sha256:e67eeead736ff7bbe258ef088bff683635c561b1fcfefad0806c1df4ab49ce0e 0 0 1 1
2.23.4 kernel.org tarball, same builder image 0 0 1 1
2.24.0 kernel.org tarball, same builder image 0 0 1 1
2.24.3 alpine/git@sha256:8d2aedf3898243892d170f033603b40a55e0b0a8ab68ba9762f9c0dae40b5c8d 0 0 1 1
2.26.2 alpine/git@sha256:23618034b0be9205d9cc0846eb711b12ba4c9b468efdd8a59aac1d7b1a23363f 0 0 1 1
2.29.3 kernel.org tarball, same builder image 0 0 1 1
2.30.0 alpine/git@sha256:1f6d3a3e26e7452fab3e144d9dd3f11712b2f8dffa4b2094918bf4cd874e7841 0 0 1 0
2.32.0 alpine/git@sha256:e39163015b1351d4220e9e3ec9395ea78d0a2f371529e936808cbfb98f799ed9 (tagged v2.30.2, reports 2.32.0) 0 0 1 0
2.47.3 this host 0 0 1 0

Each tarball was checked against kernel.org's sha256sums.asc before it was built. The builder is debian:bookworm-slim, and the binary was built with NO_OPENSSL NO_CURL NO_EXPAT NO_TCLTK NO_GETTEXT NO_PERL NO_PYTHON. Without --verify, every release prints the marker back as a flag beside the commit, current git included, so that form says nothing about the floor.

Distribution packages, read with apt-cache policy git in digest-pinned containers:

  • Debian 12 (debian@sha256:e67eeead736ff7bbe258ef088bff683635c561b1fcfefad0806c1df4ab49ce0e): 1:2.39.5-0+deb12u3.
  • Ubuntu 22.04 (ubuntu@sha256:b000e69a50ff940390233025e7a337fb8469b509e2334fa4d018ac30f3e18cdb): 1:2.34.1-1ubuntu1.18.

Local strict review

Five recorded agent-skill passes ran at the frontier tier, and the last one, over the current head, found nothing. The first four raised seven introduced findings against the why, and the fix commits answer all of them:

  • The why no longer calls this read the fleet's only git version question. It names the git 2.31 dependencies in the agent-safety write guard and merge-bot-task.yml as examples. It also says the packaged Debian 12 and Ubuntu 22.04 releases clear 2.31, so host-setup/agent-safety/claude/README.md's pointer to this why for the fleet-wide reasoning still holds.
  • Each version range is limited to the releases measured.
  • The tarball check is stated as it ran: a sha256 check against sha256sums.asc, with that file's signature unverified.

Pre-existing findings, not filed

  • .agents/skills/upstream-contribution-workflow/SKILL.md, around lines 87 and 105, a false or unfollowable instruction. The skill tells the reader to run git show --remerge-diff, which needs git 2.36, and Ubuntu 22.04 packages 2.34.1.

Closes on promotion: #3468

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated the Git compatibility notes to describe how reference verification behaves across specified Git releases, including when dash-prefixed references are protected from option parsing.
    • Added related observations about Git-version behavior and retained the existing compatibility note for newer Git releases.

ptr727 and others added 3 commits November 25, 2026 22:17
The rev-parse --verify --quiet --end-of-options read in skills_install
resolves an ordinary ref on every git release measured, 2.20.5 through
2.32.0, because rev-parse --verify drops a flag it does not know. The
marker only gains meaning at 2.30.0, where a dash-leading ref resolves,
and an older release fails that case closed. Debian 12 and Ubuntu 22.04
package 2.39.5 and 2.34.1, so the git entry keeps no floor and its why
now records the evidence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The local review found the why overclaimed. The skills_install read is
not the fleet's only git version question, since the agent-safety write
guard and merge-bot-task.yml need git 2.31. Its version ranges also
reached past the releases measured. The why now names those needs,
limits each range to the measured releases, and says how the tarballs
were checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The second local pass found two problems. The why still implied every
release from 2.20.5 to 2.29.3 was measured. It also named 2.31 as the
fleet's highest git need, though other code needs more. The why now
limits the range to the releases measured. It names the 2.31 sites as
examples and claims only that the packaged releases clear 2.30.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings November 26, 2026 06:24
@ptr727

ptr727 commented Nov 26, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 8741cb2dfb89eceb6b9111185b02c8c6eab4cb98, the content this pull request carries at that commit against develop, and it recorded 1 finding.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The git tool declaration now records measured ref-verification behavior across Git versions, including handling of dash-prefixed refs. It retains the note about Git 2.51 and older git-restore-mtime releases.

Changes: Git version notes

Layer / File(s) Summary
Document ref-verification behavior
spec/host-tools.json
The git entry’s why text adds measured ref-verification behavior across Git versions, dash-prefixed ref handling, and examples of other Git version requirements. It retains the existing git-restore-mtime note.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related issues

  • ptr727/ProjectTemplate#3468: This change records the measured Git-version behavior and the 2.29.3-and-earlier failure described by the issue.
Merge Risk: Minimal · up to a52ac

This change only records measured Git version behavior in the host tools specification. It does not alter runtime behavior, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title says the PR records a measured absence of a Git minimum version for --end-of-options. The raw summary says the spec/host-tools.json git why declaration now documents measurements of the rev-…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title says the PR records a measured absence of a Git minimum version for --end-of-options. The raw summary says the spec/host-tools.json git why declaration now documents measurements of the rev-parse --verify --quiet --end-of-options read across Git releases, including when the marker starts protecting dash-prefixed refs. The objectives confirm the PR keeps the git entry without a minimum version and records the measured behavior, so the title matches the main change. It is specific and descriptive.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between fc288c4 and a52ac6b.

Files selected for processing: 1

  • spec/host-tools.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

The agent-safety README points at the git why for the fleet-wide
reasoning behind the write guard's 2.31 dependency. The why named that
dependency but no longer said why it goes without a floor. It now says
the packaged Debian 12 and Ubuntu 22.04 releases clear 2.31 too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Alone

The git why said the entry settled the measured read alone, then
concluded that the 2.31 examples need no floor either. It now says only
that read was measured, so the two sentences agree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ptr727

ptr727 commented Nov 26, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head a52ac6b5df173cbecb29dff09c92e62aed71993f, the content this pull request carries at that commit against develop, and it recorded 0 findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The critical active finding remains unresolved because the Git minimum is still unset despite the documented Git 2.31 dependency and fail-open behavior.

1 open issue
What changed in this PR

This PR records measured compatibility for the rev-parse --verify --quiet --end-of-options read used by scripts/skills_install.py and retains Git as a presence-only host tool.

Changes:

  • Documents measurements across Git 2.20.5 through 2.47.3.
  • Explains when --end-of-options gains meaning for dash-prefixed refs.
  • Records supported Debian and Ubuntu package versions while distinguishing this read from other Git dependencies.

The unchanged minimum: null remains under-justified because the documented write guard depends on Git 2.31.

File Description
spec/​host-tools.json Updates the Git host-tool rationale with measured compatibility evidence, marker behavior, distribution versions, and context for retaining no minimum floor.

Review effort: Lite

Comment thread spec/host-tools.json Resolved
@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.00%. Comparing base (b38e084) to head (a52ac6b).
⚠️ Report is 365 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4484      +/-   ##
===========================================
- Coverage    81.60%   79.00%   -2.61%     
===========================================
  Files           26       50      +24     
  Lines         9070    16796    +7726     
===========================================
+ Hits          7402    13270    +5868     
- Misses        1668     3526    +1858     
Flag Coverage Δ
python-3.13 79.00% <ø> (-2.61%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Nov 26, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ptr727

ptr727 commented Nov 26, 2026

Copy link
Copy Markdown
Owner Author

/review

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727
ptr727 merged commit 3420354 into develop Nov 26, 2026
14 checks passed
@ptr727
ptr727 deleted the burndown/git-end-of-options-floor branch November 26, 2026 07:16
ptr727 added a commit that referenced this pull request Nov 26, 2026
…s, Environment Secret Audit, and macOS Bash Floor (#4485)

Promotes the 26 pull requests that landed on develop since the last
promotion (#4428), from the away-mode backlog burndown run.

- #4447: Bump markdownlint-cli2-action from 25.0.0 to 25.1.0.
- #4449: Have the agent open and drive the promotion after an audit's
file fix merges.
- #4453: Pass over a signal handled as the prose gate's first handler
starts.
- #4456: Record a managed copy for claude and codex in install-agents
and report any other copy as a stray.
- #4457: Name the PowerShell suppression form and correct the Python CI
backstop text.
- #4458: Read the metrics report's reviewed heads from the gate's one
filter (part of #3880, completed by #4481).
- #4460: Cross-check Python directories against Dependabot's pip and uv
entries (items 2 and 3 of #2286, which stays open for item 1).
- #4461: Pin the Docker lint images by digest through a
Dependabot-tracked manifest.
- #4464: State the platform weighting and correct the hook-promotion
worked example.
- #4463: Key Qodo findings without links or commit hashes and ask
dismissal by title and location.
- #4465: Hand a caller's hook-input to the validate and resolve-upstream
hooks.
- #4466: Require an empty workflow-level permissions block on
entry-point callers.
- #4467: Remove the npm and bun upgrade paths no managed tool reaches.
- #4469: Add a hub-hosted script that enables a clone's hook framework
once.
- #4472: Select each repository's Python line from its root
`.python-version` (the part of #4187 needing no decision; #4187 stays
open).
- #4479: Report dotnet and powershell as unmanaged while Microsoft's
feed is unconfigured.
- #4477: Bound the shell trap's child wait and give the heading search a
file.
- #4480: Check deployment environment secret and variable names in the
audit.
- #4478: Add a macOS bash 4.4 floor with a platform-scoped host tool
entry.
- #4481: Build the gate's comment readers on one trusted-comment reader.
- #4484: Record the measured absence of a git floor for
`--end-of-options`.
- #4496: Narrow the Qodo acknowledgment key's normalization to a link
and a hash after `commit`.
- #4500: Pass over a signal handled as the hook enabler's first handler
starts.
- #4502: Pin the GitHub host for every `gh` child the hub's Python
scripts start.
- #4503: Write the Docker pull retry once, with one backoff schedule.
- #4505: Pin the repo gate's `gh` read and parse the Docker pin manifest
once.

## Release notes for callers

- #4472: A caller passing no `python-versions` input and carrying no
root `.python-version` moves from Python 3.13 to 3.14 for its
`unit-test` leg and its `lint` job's Python steps once its hub pin
reaches this change. Its nested check name moves from `Unit test job
(Python 3.13)` to `Unit test job (Python 3.14)`, and its Codecov flag
from `python-3.13` to `python-3.14`, so a `.codecov.yml` naming the old
flag stops matching. Its `lint` job warns on each run until it carries a
selector. A caller whose `requires-python` or locked dependencies
exclude 3.14 adds a `.python-version` before moving its pin. A
`.python-version` naming no `X.Y` line, or an explicit `python-versions`
whose first entry differs from the file's line, now fails validate.
- #4479: The Linux `install-tools.sh --json` report schema moves from 1
to 2, because a not-installed `dotnet` or `powershell` can now read
`unmanaged` with `installed: null`. A hand-installed amd64 `powershell`
with no Microsoft feed now reads `unmanaged`. The Windows `-Json` report
stays at schema 1.
- #4466: Each entry-point caller must declare an empty workflow-level
`permissions: {}` block. A site repository's `deploy-site.yml` carrying
only job-level blocks now reports this as drift, and the fix belongs to
that repository.
- #4461: Dependabot's docker ecosystem listing tags on mirror.gcr.io for
the shellcheck and shfmt lines is unconfirmed until its first docker run
for that directory.
- #4478: macOS now has a bash 4.4 floor, met by Homebrew's bash ahead of
the system bash on `PATH`. Not yet verified on a native macOS host.
- #4480: The audit gains the `secrets.environments` check. Registry
`environments[]` entries may now declare their secret and variable
names.
- #4463 and #4496: The Qodo acknowledgment key changed. A
`fleet-finding-ack` already posted on a still-open pull request stops
matching its finding once a caller's hub pin reaches this change. Post
it again, since `merge` refuses until then.
- #4502: Every `gh` child the Python scripts under the hub's `scripts/`
and `spec/` start now runs with `GH_HOST=github.com`, so an exported
`GH_HOST` no longer moves their reads and writes. #4505 pins the repo
gate's own `gh_read` the same way. The `gh-write-guard` hook (#4501) and
the shell and PowerShell scripts are unchanged.
- #4503: The `validate-task.yml` EditorConfig, shell, and PowerShell
lint steps now pull their images through `docker_lint.py --pull`, with
one retry schedule of 3 attempts waiting 15s, then 30s. The
`docker-lint-pins` action gains a `docker-lint` output naming that
script at the calling workflow's own ref. A caller pinned before this
change keeps its inline retry.
- #4505: The `docker-lint-pins` action now reads the pin manifest
through `docker_lint.py --pin` rather than `sed`, so its step runs
`python3`. It now refuses an empty tag or a stage named twice, which the
old `sed` accepted, and on a failure it writes no outputs and one
`::error::` annotation carrying the reason.
- A fleet resync is owed, because carried text changed: AGENTS.md,
GOVERNANCE.md, CODESTYLE.md, and several skills.

## Findings from the local strict review

The attested local pass on c25ec49 (`main...develop`) raised five
findings. Their outcomes:

- Tracked: the hub's own `dependabot.ecosystems` DRIFT on `/tests` is
the question #4459 holds, so it changes nothing here.
- Fixed by #4500: `scripts/enable_hooks.py` `on_signal` now passes over
a signal handled as its first handler starts.
- Fixed by #4503: the bounded Docker pull retry is now written once,
`scripts/docker_lint.py` `pull_image`, with one schedule.
- Fixed by #4502: `spec/audit_environments.py` `names()` is gone, and
both environment readers read through `spec/resolve_secrets.py`
`read_names`.
- Release note: the Qodo acknowledgment key change from #4463 and #4496
is stated under "Release notes for callers" above.

The attested local pass on f93f34a (`main...develop`) raised 57
findings. Their outcomes:

- Declined, 52 `prose_lint` `comment-added` lines: each comment was
added by a feature pull request carrying the `comments` label (#4456,
#4461, #4463, #4465, #4467, #4472, #4480), and the promotion re-carries
them without that label.
- Tracked: `spec/audit_dependabot.py:93`, the hub's own `/tests` pip
drift, is the question #4459 holds.
- Tracked: the nested-signal guard missing at
`scripts/docker_lint.py:416`, `scripts/backlog_metrics.py:1290`, and
`catalog/snippets/hub_fetch_run.py:193` is the class #4452 holds.
- Release note: the Qodo key change at
`scripts/pr_review_answers.py:158` is stated above.
- Fixed by #4505: `.github/actions/repo-gate/repo_gate.py` `gh_read` now
starts its `gh api` child under `gh_env()`, which pins
`GH_HOST=github.com`.
- Fixed by #4505: `scripts/docker_lint.py` `read_pins` is now the pin
manifest's one parser. The repo gate dropped `SHELLCHECK_PIN`, and the
`docker-lint-pins` action dropped its `sed` for `docker_lint.py --pin`.

The attested local pass on 3183644 (`main...develop`) raised 53
findings. Their outcomes:

- Declined, 51 `prose_lint` `comment-added` lines: the same comments the
pass on f93f34a named, less the `docker-lint-pins` `action.yml` line
#4505 removed, each added by a feature pull request carrying the
`comments` label.
- Tracked: the nested-signal guard missing at
`scripts/docker_lint.py:448`, `scripts/backlog_metrics.py:1290`,
`scripts/pr_review.py:2174`, and `catalog/snippets/hub_fetch_run.py:193`
is the class #4452 holds.
- `introduced`, design, `scripts/docker_lint.py:856`: `resolve_digest`
runs one more `docker image inspect` per linter to read a digest the pin
manifest's tag-and-digest reference already gives, since #4461 pins
every image, and it takes `RepoDigests[0]`, which can name another
repository holding the same image. Deferred to #4508 by the maintainer's
decision, which is this finding's outcomes.

Fixes #3468
Fixes #3880
Fixes #4408
Fixes #2070
Fixes #4473
Fixes #4474
Fixes #2594
Fixes #4327
Fixes #4450
Fixes #1783
Fixes #3325
Fixes #3917
Fixes #4448
Fixes #1164
Fixes #1613
Fixes #1727
Fixes #4403
Fixes #4407
Fixes #4158
Fixes #4210
Fixes #4429
Fixes #4406
Fixes #4488
Fixes #4498
Fixes #4489
Fixes #4499
Fixes #4504

🤖 Generated with [Claude Code](https://claude.com/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.

2 participants