Skip to content

ci(cache): first ci.toml -- declare the families and opt into ancestor promotion (#335) - #512

Merged
zackees merged 1 commit into
mainfrom
cache-promote-ancestor
Oct 5, 2026
Merged

zackees merged 1 commit into
mainfrom
cache-promote-ancestor

Conversation

@zackees

@zackees zackees commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

First ci.toml for this repository, applying zackees/ci.yml#335. Schema CLEAN.

Measured, not assumed

what source
platforms Linux is the only native CI host — every ci.yml job runs ubuntu-latest. macOS is a guest driven from that host (macos-x64-execute.yml; ci.yml:464-466 name macos-15/macos-15-intel as the guest's runner). No Windows lane exists in CI, so no Windows platform is declared — declaring one would claim coverage this repo doesn't have.
cache.family live listing: buildcache-v2 is 3.28 GiB across 5 entries on linux-x64 plus 0.39 GiB on windows-x64, which is where compile's 800 MB comes from; the four solo-toolchain entries measured 0.15–0.20 GiB each
rust.public / private Cargo.toml:2 — eight members, bosn (crates.io) and bosn-python (PyPI) publish, six internal, bosn-widget excluded (links a webview toolkit CI never links)
python.cli pyproject.toml:19 — there is no [project.scripts]; bosn is the native binary staged into the wheel by bosn_build_backend

The #335 part

compile (800MB) declares promote = "ancestor" — the only family at or above CACHE-031's 256 MB floor. toolchain (210MB), registry (200MB), soldr-mini (30MB) and uv (100MB) stay below it. All five carry evict = "lru".

Validated: CACHE-029 clean, CACHE-031 clean and it fires for compile when the opt-in is removed, CACHE-030/CACHE-032 needs_review.

Two things deliberately absent

  • [local.gate] — this repo declares its gate in local-gate.toml; declaring both is GATE-001.
  • [lint.dylint] — no Dylint step exists in any bosn workflow.

[reuse.default-branch] mode = "off" is measured, not defaulted: bosn saves 0.4 min/day from verified reuse, so enabling it would be ceremony without payoff.

Declaration only

setup-soldr#566 is merged but unreleased, so the opt-in is inert until a tag lands.

🤖 Generated with Claude Code

…r promotion

First `ci.toml` for this repository, applying forge-ci/ci.yml#335. Schema CLEAN;
every value was read off the repository rather than inferred.

  platforms   Linux is the only NATIVE CI host -- every ci.yml job runs
              `ubuntu-latest`. macOS is a GUEST driven from that Linux host
              (macos-x64-execute.yml; ci.yml:464-466 names macos-15 /
              macos-15-intel as the guest's runner). No Windows lane exists, so
              no Windows platform is declared: declaring one would claim
              coverage this repository does not have.
  families    measured from the live listing (2026-10-05): buildcache-v2 is
              3.28 GiB across 5 entries on linux-x64 plus 0.39 GiB on windows-x64,
              which is where `compile`'s 800MB comes from; the four
              solo-toolchain entries measured 0.15-0.20 GiB each.
  rust        Cargo.toml:2 -- eight members, `bosn` (crates.io) and
              `bosn-python` (PyPI) publish, six are internal, `bosn-widget` is
              excluded because it links a webview toolkit CI never links.
  python      pyproject.toml:19 -- there is no [project.scripts]; `bosn` is the
              native binary staged into the wheel by bosn_build_backend.

`compile` (800MB) declares `promote = "ancestor"` -- the only family at or above
CACHE-031's 256MB floor. `toolchain` (210MB), `registry` (200MB), `soldr-mini`
(30MB) and `uv` (100MB) stay below it. All five carry `evict = "lru"` (CACHE-029).

Deliberately absent, because the repository says so:

  [local.gate]  this repository declares its gate in `local-gate.toml`;
                 declaring both is GATE-001
  [lint.dylint] no Dylint step exists in any bosn workflow

`[reuse.default-branch] mode = "off"` is measured, not defaulted: bosn saves
0.4 min/day from verified reuse, so enabling it would be ceremony without payoff.

DECLARATION ONLY: setup-soldr#566 is merged but unreleased, so CACHE-030 and
CACHE-032 report `needs_review` and the opt-in is inert until a tag lands.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Local-Gate: v1 tree=1a5a975c4e1688d0abb4ff5d9b81af0f76938390 secs=1411 lanes=py-static:run,guards:run,rust:run,tests:run
Ci-Attestation: {"at":1791174708,"gate":"python/all/static","host":"linux-x86_64","key":"bc4cc5550f93d41261a0e5f24f7b09572c35bccc9c8f08f7dbe7b3548a109697","lane":"py-static","parents":["200c2bb16ca86c48c0347b3e3923510d20d4cd2b"],"secs":7,"stamp":"403081dca3b18654bc2e3e34dfd4aa65","tree":"1a5a975c4e1688d0abb4ff5d9b81af0f76938390","v":1,"via":"run"}
Ci-Attestation: {"at":1791174708,"gate":"general/all/ci-policy","host":"linux-x86_64","key":"8681dadcbe942f053e939c6361ccf802d11288a85f150602e01d0dcfd2895048","lane":"guards","parents":["200c2bb16ca86c48c0347b3e3923510d20d4cd2b"],"secs":2,"stamp":"87eb4f126ee56d7e9cd93686ecf2645c","tree":"1a5a975c4e1688d0abb4ff5d9b81af0f76938390","v":1,"via":"run"}
Ci-Attestation: {"at":1791174708,"gate":"rust/all/fmt","host":"linux-x86_64","key":"84aeb0bace8d8874da3795786b3b20d0dcba4f55cc2fd0706d4f04d311883f13","lane":"rust","parents":["200c2bb16ca86c48c0347b3e3923510d20d4cd2b"],"secs":595,"stamp":"27ff89afc448d2c7d8d0d1305d306f6b","tree":"1a5a975c4e1688d0abb4ff5d9b81af0f76938390","v":1,"via":"run"}
Ci-Attestation: {"at":1791174708,"gate":"rust/all/boundary","host":"linux-x86_64","key":"84aeb0bace8d8874da3795786b3b20d0dcba4f55cc2fd0706d4f04d311883f13","lane":"rust","parents":["200c2bb16ca86c48c0347b3e3923510d20d4cd2b"],"secs":595,"stamp":"0af5c729f8aad511ccaed62033809254","tree":"1a5a975c4e1688d0abb4ff5d9b81af0f76938390","v":1,"via":"run"}
Ci-Attestation: {"at":1791174708,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"84aeb0bace8d8874da3795786b3b20d0dcba4f55cc2fd0706d4f04d311883f13","lane":"rust","parents":["200c2bb16ca86c48c0347b3e3923510d20d4cd2b"],"secs":595,"stamp":"93cdfc2408265847013f6f7e54d5d0ba","tree":"1a5a975c4e1688d0abb4ff5d9b81af0f76938390","v":1,"via":"run"}
Ci-Attestation: {"at":1791174708,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"84aeb0bace8d8874da3795786b3b20d0dcba4f55cc2fd0706d4f04d311883f13","lane":"rust","parents":["200c2bb16ca86c48c0347b3e3923510d20d4cd2b"],"secs":595,"stamp":"d8a515f1934f1f9784ebe728855e3ab2","tree":"1a5a975c4e1688d0abb4ff5d9b81af0f76938390","v":1,"via":"run"}
Ci-Attestation: {"at":1791174708,"gate":"python/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"ce9930474fe611fe94eb46a548c033e6289dedab8bc5761c53456a9b383ca63b","lane":"tests","parents":["200c2bb16ca86c48c0347b3e3923510d20d4cd2b"],"secs":816,"stamp":"480e9a9bd567f33ca0f6753166ac4cae","tree":"1a5a975c4e1688d0abb4ff5d9b81af0f76938390","v":1,"via":"run"}
@zackees
zackees force-pushed the cache-promote-ancestor branch from 476bcce to 92a2c41 Compare October 5, 2026 04:32
@zackees
zackees merged commit e81ca3c into main Oct 5, 2026
14 checks passed
@zackees
zackees deleted the cache-promote-ancestor branch October 5, 2026 04:33
zackees added a commit that referenced this pull request Oct 5, 2026
`fe965fc7e2c5203570072e1d0fd19d0935d98e39` is not in zackees/ci.yml -- the
GitHub API returns 422 and the object is absent from the store, so there is
no branch or tag to recover it from.

The pin was introduced in this repository's first ci.toml (#512) and was
never valid. SEC-004 did not catch it because the SHA is well-formed; a
syntactically valid reference to a nonexistent commit passes every existing
check. It surfaced only when something tried to RUN the gate -- local-gate
resolves the pin before executing any lane, so the resolution failed first
and no Local-Gate: trailer could be produced (GATE-003 on every PR).

Repointed at 0fcff99 (carries CACHE-034, merged). precheck now executes
against a fetchable linter: 490 violations / 13 needs_review.

See #534.
zackees added a commit that referenced this pull request Oct 5, 2026
`fe965fc7e2c5203570072e1d0fd19d0935d98e39` is not in zackees/ci.yml -- the
GitHub API returns 422 and the object is absent from the store, so there is
no branch or tag to recover it from.

The pin was introduced in this repository's first ci.toml (#512) and was
never valid. SEC-004 did not catch it because the SHA is well-formed; a
syntactically valid reference to a nonexistent commit passes every existing
check. It surfaced only when something tried to RUN the gate -- local-gate
resolves the pin before executing any lane, so the resolution failed first
and no Local-Gate: trailer could be produced (GATE-003 on every PR).

Repointed at 0fcff99 (carries CACHE-034, merged). precheck now executes
against a fetchable linter: 490 violations / 13 needs_review.

See #534.

Local-Gate: v1 tree=705845b803adc59f10578868dfe72f0da94d2f75 secs=612 lanes=py-static:reused@67733cf35e83,guards:reused@6011cde8e2b0,rust:run,tests:run
Ci-Attestation: {"at":1791223142,"gate":"python/all/static","host":"linux-x86_64","key":"67733cf35e831723fd88a6ccf527858f2eca477748fe12f7fd3b8f4b5f495c21","lane":"py-static","parents":["d67eed1413a5095445b6d90cd6e9de09aec6feea"],"secs":null,"stamp":"79fc1b824301e53e76333fd5cf8d2be9","tree":"705845b803adc59f10578868dfe72f0da94d2f75","v":1,"via":"reused"}
Ci-Attestation: {"at":1791223142,"gate":"general/all/ci-policy","host":"linux-x86_64","key":"6011cde8e2b00205ef30534c9b853cbf8abb4424a0cea35162dcfd893a5aa6cc","lane":"guards","parents":["d67eed1413a5095445b6d90cd6e9de09aec6feea"],"secs":null,"stamp":"d5484777a28aea3b9707c21249f37f9e","tree":"705845b803adc59f10578868dfe72f0da94d2f75","v":1,"via":"reused"}
Ci-Attestation: {"at":1791223142,"gate":"rust/all/fmt","host":"linux-x86_64","key":"a01ef65e97480db9abcc7ce1e3ebd864a1a774cb14e7d67e14db49ae96242591","lane":"rust","parents":["d67eed1413a5095445b6d90cd6e9de09aec6feea"],"secs":298,"stamp":"311e622645ec6018a777a44000eaad49","tree":"705845b803adc59f10578868dfe72f0da94d2f75","v":1,"via":"run"}
Ci-Attestation: {"at":1791223142,"gate":"rust/all/boundary","host":"linux-x86_64","key":"a01ef65e97480db9abcc7ce1e3ebd864a1a774cb14e7d67e14db49ae96242591","lane":"rust","parents":["d67eed1413a5095445b6d90cd6e9de09aec6feea"],"secs":298,"stamp":"271d44451050f951110b4e85cc07d08d","tree":"705845b803adc59f10578868dfe72f0da94d2f75","v":1,"via":"run"}
Ci-Attestation: {"at":1791223142,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"a01ef65e97480db9abcc7ce1e3ebd864a1a774cb14e7d67e14db49ae96242591","lane":"rust","parents":["d67eed1413a5095445b6d90cd6e9de09aec6feea"],"secs":298,"stamp":"4cf65a24a4f240269489670738e35483","tree":"705845b803adc59f10578868dfe72f0da94d2f75","v":1,"via":"run"}
Ci-Attestation: {"at":1791223142,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"a01ef65e97480db9abcc7ce1e3ebd864a1a774cb14e7d67e14db49ae96242591","lane":"rust","parents":["d67eed1413a5095445b6d90cd6e9de09aec6feea"],"secs":298,"stamp":"d755f8a7fe4f219bb5470cd50e54c1d4","tree":"705845b803adc59f10578868dfe72f0da94d2f75","v":1,"via":"run"}
Ci-Attestation: {"at":1791223142,"gate":"python/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"d8be7b5119ad61ca86ae6d027f371f436fea741d235b656adec5e3da2490289f","lane":"tests","parents":["d67eed1413a5095445b6d90cd6e9de09aec6feea"],"secs":314,"stamp":"e8ff0e96fc281725de0adb9e0ca3458d","tree":"705845b803adc59f10578868dfe72f0da94d2f75","v":1,"via":"run"}
zackees added a commit that referenced this pull request Oct 5, 2026
* ci: drop the unhonoured pre-prune waiver (CACHE-004 honesty)

`pre-prune = true` was declared on both writer flows but no workflow here
ever runs `ci-lint cache preprune`. CACHE-004's arithmetic waives the
lockfile-change peak on that declaration alone, so the modelled footprint
was understated by 3.57GB for free.

Removing the declaration makes the number honest. Worst case goes
4.24GB -> 7.80GB, still inside the 9GB budget, so CACHE-004 keeps passing
and the violation count is unchanged at 490.

* ci: repoint the linter pin at a commit that exists

`fe965fc7e2c5203570072e1d0fd19d0935d98e39` is not in zackees/ci.yml -- the
GitHub API returns 422 and the object is absent from the store, so there is
no branch or tag to recover it from.

The pin was introduced in this repository's first ci.toml (#512) and was
never valid. SEC-004 did not catch it because the SHA is well-formed; a
syntactically valid reference to a nonexistent commit passes every existing
check. It surfaced only when something tried to RUN the gate -- local-gate
resolves the pin before executing any lane, so the resolution failed first
and no Local-Gate: trailer could be produced (GATE-003 on every PR).

Repointed at 0fcff99 (carries CACHE-034, merged). precheck now executes
against a fetchable linter: 490 violations / 13 needs_review.

See #534.

Local-Gate: v1 tree=705845b803adc59f10578868dfe72f0da94d2f75 secs=612 lanes=py-static:reused@67733cf35e83,guards:reused@6011cde8e2b0,rust:run,tests:run
Ci-Attestation: {"at":1791223142,"gate":"python/all/static","host":"linux-x86_64","key":"67733cf35e831723fd88a6ccf527858f2eca477748fe12f7fd3b8f4b5f495c21","lane":"py-static","parents":["d67eed1413a5095445b6d90cd6e9de09aec6feea"],"secs":null,"stamp":"79fc1b824301e53e76333fd5cf8d2be9","tree":"705845b803adc59f10578868dfe72f0da94d2f75","v":1,"via":"reused"}
Ci-Attestation: {"at":1791223142,"gate":"general/all/ci-policy","host":"linux-x86_64","key":"6011cde8e2b00205ef30534c9b853cbf8abb4424a0cea35162dcfd893a5aa6cc","lane":"guards","parents":["d67eed1413a5095445b6d90cd6e9de09aec6feea"],"secs":null,"stamp":"d5484777a28aea3b9707c21249f37f9e","tree":"705845b803adc59f10578868dfe72f0da94d2f75","v":1,"via":"reused"}
Ci-Attestation: {"at":1791223142,"gate":"rust/all/fmt","host":"linux-x86_64","key":"a01ef65e97480db9abcc7ce1e3ebd864a1a774cb14e7d67e14db49ae96242591","lane":"rust","parents":["d67eed1413a5095445b6d90cd6e9de09aec6feea"],"secs":298,"stamp":"311e622645ec6018a777a44000eaad49","tree":"705845b803adc59f10578868dfe72f0da94d2f75","v":1,"via":"run"}
Ci-Attestation: {"at":1791223142,"gate":"rust/all/boundary","host":"linux-x86_64","key":"a01ef65e97480db9abcc7ce1e3ebd864a1a774cb14e7d67e14db49ae96242591","lane":"rust","parents":["d67eed1413a5095445b6d90cd6e9de09aec6feea"],"secs":298,"stamp":"271d44451050f951110b4e85cc07d08d","tree":"705845b803adc59f10578868dfe72f0da94d2f75","v":1,"via":"run"}
Ci-Attestation: {"at":1791223142,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"a01ef65e97480db9abcc7ce1e3ebd864a1a774cb14e7d67e14db49ae96242591","lane":"rust","parents":["d67eed1413a5095445b6d90cd6e9de09aec6feea"],"secs":298,"stamp":"4cf65a24a4f240269489670738e35483","tree":"705845b803adc59f10578868dfe72f0da94d2f75","v":1,"via":"run"}
Ci-Attestation: {"at":1791223142,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"a01ef65e97480db9abcc7ce1e3ebd864a1a774cb14e7d67e14db49ae96242591","lane":"rust","parents":["d67eed1413a5095445b6d90cd6e9de09aec6feea"],"secs":298,"stamp":"d755f8a7fe4f219bb5470cd50e54c1d4","tree":"705845b803adc59f10578868dfe72f0da94d2f75","v":1,"via":"run"}
Ci-Attestation: {"at":1791223142,"gate":"python/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"d8be7b5119ad61ca86ae6d027f371f436fea741d235b656adec5e3da2490289f","lane":"tests","parents":["d67eed1413a5095445b6d90cd6e9de09aec6feea"],"secs":314,"stamp":"e8ff0e96fc281725de0adb9e0ca3458d","tree":"705845b803adc59f10578868dfe72f0da94d2f75","v":1,"via":"run"}
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