Skip to content

Green identity keys on the battery's inputs, not the whole tree (D50 applied to D49) - #1237

Merged
ehartford merged 1 commit into
mainfrom
green-identity-on-inputs
Sep 20, 2026
Merged

ehartford merged 1 commit into
mainfrom
green-identity-on-inputs

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

A docs-only commit produced a git tree with no green record, so :install-user refused a compiler whose sources had passed, and the only way to install was to re-run a battery over prose. Eric: 'best fix this immediately'.

The key. The identity is now the git object name of the battery's inputs: git ls-tree HEAD without the docs entry and without top-level *.md (CLAUDE.md, README.md, … — prose no lane compiles or tests), plus the three docs files lanes do read: docs/with-specification.md (spec-inventory-check), docs/with-abi.sha256 (abi-hash-check, the stage inputs), docs/with_for_ai.md (selfhost). Those three are the only docs/ paths any lane names.

Two writers, one rule, no shared hashing code. build/retention.w runs under the pinned seed and GreenEvidence.w runs in the install gate; both run the same git ls-tree commands, apply the same filter, and hand the same text to git hash-object.

Verified end to end. Battery green at 290dfa4 (build, :fixpoint, :test, :test-green, :last-green). :last-green wrote identity 9aa581b4…; its listing is the top level minus exactly the six prose entries. A docs-only commit was then added on top and out/release/bin/with build :install-user accepted it — '(verified against last-green)' — with no rebuild; the probe commit was dropped afterwards. behav_green_identity_keys_on_inputs.w pins the filter on the compiler side. CLAUDE.md/AGENTS.md and the D49 entry (dated amendment) say what the key is.

…applied to D49)

A docs-only commit produced a git tree with no green record, so
:install-user refused a compiler whose sources had passed and the only way
to install was to re-run a battery over prose. The identity is now the git
object name of the battery's inputs: `git ls-tree HEAD` without the `docs`
entry and without top-level *.md (CLAUDE.md, README.md, ... — prose no lane
compiles or tests), plus the three docs files lanes do read
(docs/with-specification.md for spec-inventory-check, docs/with-abi.sha256
for abi-hash-check and the stage inputs, docs/with_for_ai.md for selfhost).
`git hash-object` names the filtered listing, so both writers of the
identity — build/retention.w under the pinned seed and GreenEvidence.w in
the install gate — run the same git commands over the same text and agree
byte for byte with no shared hashing code. behav_green_identity_keys_on_inputs
pins the rule on the compiler side. CLAUDE.md/AGENTS.md and the D49 entry
say what the key is.
@ehartford
ehartford merged commit e16c6db into main Sep 20, 2026
5 checks passed
@ehartford
ehartford deleted the green-identity-on-inputs branch September 20, 2026 23:25
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.

1 participant