Repository navigation
Green evidence is keyed on what was tested: git tree, pinned seed, host (D49) - #1223
Merged
Merged
Conversation
added 3 commits
September 20, 2026 01:57
…st (D49) #1222's battery passed in a staging worktree; after the squash-merge main's tree was byte-identical (git diff empty) and :install-user still demanded a second 25-minute battery. last-green and the driver's install gate accepted only the exact tested binary, and the binary names its commit (the version ends in -g<hash>) and, through debug paths, its worktree. - :last-green is now a group: last-green-record (the action, unchanged in what it verifies) also records the source identity — git rev-parse HEAD^{tree}, the pinned seed's digest, the host — and last-green-publish installs the store ($WITH_GREEN_DIR, else ~/.local/with-green/green.tsv), one line per identity. A dirty worktree has no identity and publishes nothing. - require-last-green (build/retention.w) and the driver's :install-user gate (src/main.w cli_fast_install_blessed) accept a compiler when the local manifest names that binary, as before, or when the worktree is clean, its chain was seeded by a compiler seed.lock pins, and its identity has a published green. The accepting line names the commit the green was recorded at. After a squash-merge of a tested branch the reseed is git pull, build, :install-user.
…e CLI's flag file spec-inventory-check reads string literals in src/main.w as `with` flags and rightly reported git's "--porcelain" as an unspec'd one. The source-identity lookup moves into its own module; src/main.w calls green_by_source_identity(root).
The action's capture directory is out/command/<target name>; the renamed target still declared out/command/last-green as its write scope.
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.
Why. #1222's battery passed in a staging worktree. After the squash-merge main's tree was byte-identical (
git diffempty), and:install-userstill required a second full battery, 25 minutes, over the same sources. Eric: "it is moronic that we are testing what we already tested."Cause.
last-green,require-last-greenand the driver's:install-usergate accepted only the exact compiler binary that was tested (compiler_sha256). The binary names its commit (the version ends in-g<hash>, a post-link stamp) and, through debug paths, its worktree, so a squash-merge or another checkout of the same sources is a "different" compiler.Change. What a battery tests is its inputs.
:last-greenis now a group.last-green-record(the same action, verifying what it verified before) also records the source identity:git rev-parse HEAD^{tree}, the digest of the pinned seed that drove and seeded the chain, and the host.last-green-publishinstalls the store:$WITH_GREEN_DIR, else~/.local/with-green/green.tsv, one line per identity. A dirty worktree has no identity and publishes nothing (untracked paths underexamples/excepted: a user's own programs are not build inputs).require-last-green(build/retention.w) and the driver's install gate (src/main.w, with the lookup insrc/compiler/GreenEvidence.w) accept a compiler when the local manifest names that binary, as before, or the worktree is clean, its stage chain was seeded by a compilerseed.lockpins, and its identity has a published green. The accepting line names the commit the green was recorded at.After a squash-merge of a tested branch the reseed is
git pull,src/main build,out/release/bin/with build :install-user. CI, the battery's contents and what counts as green are unchanged. D49 records the decision; CLAUDE.md and AGENTS.md carry the rule.Evidence (pinned seed, head 433a600):
Proof, in a second worktree on a different commit (3ac8d31d) with the same tree, built only, no tests run and no local last-green.json:
Not done here. The test cache is still keyed on the stamped compiler (
0 cached, N ranafter any new commit). The reseed no longer needs a re-run; a developer who wants:teston main after a merge still pays for it.Two batteries on this branch were red from my own edits before this one: git's
--porcelainliteral insrc/main.wtrippedspec-inventory-check(moved to its own module), and the renamed action kept the old write scope.