Skip to content

circleci: token diagnostic (do not merge) - #591

Closed
palango wants to merge 63 commits into
palango/celo-rebase-20-basefrom
palango/ci-token-debug
Closed

palango wants to merge 63 commits into
palango/celo-rebase-20-basefrom
palango/ci-token-debug

Conversation

@palango

@palango palango commented Nov 30, 2026

Copy link
Copy Markdown

Throwaway PR. The setup job prints the HTTP status, GitHub's error message and the SSO/permission response headers for the two CI tokens, then stops. No token value is printed. Closed as soon as the output is read.

marekolszewski and others added 30 commits November 26, 2026 14:37
Adding funding.json file required to apply for retropgf
github: use step-security replacement for tj-actions/changed-files
Setting `open-pull-requests-limit: 0` prevent version updates but should
keep the security scans and updates according to
https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates#overriding-the-default-behavior-with-a-configuration-file

> If you only require security updates and want to exclude version
> updates, you can set open-pull-requests-limit to 0 in order to prevent
> version updates for a given package-ecosystem.
…kchain-public (#395)

* Build op-node using docker-bake and push to devopsre/celo-blockchain-public registry

* Set-Tags
It needs a kona version and I'm not clear what this is, but we don't
actually use op-challenger so simply disabling it seems to be a good
solution.
* Test attest images

* Trailing line

* Another job

* auth

* Release workflow attestation job
The op config set this to a private URL that we couldn't access, instead
we now set this to now be the MAINNET_RPC_URL which is defined as a
project env var.
ethereum-optimism/circleci-utils is private to Optimism's org. Point both
continuation configs at the public karlb/[email protected] fork so
celo-org CI can resolve the orb.
gomod: Fix build after op-geth update

Remove fee currency context from call of NewEVMBlockContext
These clash with the check in
celo-org/op-geth@2a740e5
and are safe to ignore, since the regolith fork is always enabled on
Cel2 chains, so that we'll never migrate to it.
op-e2e: Enable Cel2 in e2e tests
* feat(batcher): multi-frame altda channels

* docs(batcher): add documentation for DaType and txData.daType

* docs: fix NextTxData comment

---------

Co-authored-by: Samuel Laferriere <[email protected]>
* test(altda): add test for altda->ethda failover

* feat(batcher): altda->ethda failover when altda is down

* chore: fix typos

* fix(fakeDAServer): handlePut was still handling put when in failover mode

* Fix logs

---------

Co-authored-by: Samuel Laferriere <[email protected]>
* Add Prometheus metrics for AltDA failover in Batcher

* Fix calls of RecordBatchDaType

* Revert deleted comment

* Add metrics for total stored batch size

* Fix condition for RecordBatchDaType and RecordBatchDataSizeBytes

* Add missing namespace to prometheus definition

* Fix the amount of batch sizes recorded for DA

* Unify recordings of size of batch to be stored

* Improve Prometheus help text
…sion (#379)

* fix(batcher): altda parallel submitted blobs respect strict holocene order (#21)

test(e2e): new altda e2e test for concurrent blob submissions to maintain new holocene strict ordering rules

test(batcher): add altda unit tests for unhappy failure cases (except channel timeout)

test(batcher): fix flaky driver tests + speed them up

test(batcher): robustify batcher driver altda tests

fix(batcher): altda concurrent blob responses are reordered to respect holocene strict ordering rules

docs: fix typos and add documentation comments for some batcher public methods

test(op-alt-da): fix MockDAClient.DeleteData decrement semantic

chore(batcher): move channel failover behavior from TxFailed to AltDASubmissionFailed

The failover logic in the failover feature commits was aded on TxFailed, as the separate function AltDASubmissionFailed didn't exist yet. This change makes it much cleaner as a tx having failed cannot lead to a failover given... since that would come from an ethereum issue.

fix(batcher): bug in sendTransaction

chore(test-logger): fix test logger.Crit which wasn't getting flushed

test(batcher): fix altDASetup w new channel config

DaType was added, so needed to change config to use DaTypeAltDA

style: wrap errors

style(damock): dont explicitly initialize to 0

We make use default values instead

docs(batcher-test): document why channel timeout test is left unimplemented

docs(batcher): fix todos in batcher readme

chore: make lint-go-fix

docs(batcher): fix readme typo

* Change test to write a log instead of stdout

---------

Co-authored-by: Samuel Laferriere <[email protected]>
Add default to switch for lint

Allow to override with flags the celo forks

22nd Jan 2026: Noted that we didn't need to set the PectraBlobScheduleTime
flag, but now we do need to keep it as removing it would be a hardfork.
* isthmus: Update L1Block contract bytecode

---------

Co-authored-by: Gastón Ponti <[email protected]>
Co-authored-by: Gaston Ponti <[email protected]>
The test was configured with MaxFrameSize: 150 which was too small
for the compressed block data (~291 bytes), causing 2 frames per
block instead of 1. This doubled the AltDA Store count from the
expected 5 to 10.

Fixed by increasing MaxFrameSize to 400 to ensure each block fits
in a single frame as the test intended.
Update the test to deploy a 65KB contract that exceeds Celo's increased
64KB MaxCodeSize limit. The previous 25KB test contract no longer
triggers the max code size check.

Changes:
- Use PUSH3 (0x62) instead of PUSH2 to push the 3-byte size value
- Update runtime size from 25KB to 65KB
- Update init code offset from 0x0c to 0x10 (16 bytes)
* Fix TestFees acceptance test

* Skip TestBatcherFullChannelsAfterDowntime, as upstream does

This test is also skipped upstream (01a4115) due to a nonce
tracking race condition in the async event system.

* Increase retry attempts to make acceptance tests likelier to pass

* Hardcode Cel2Time to 0

op-geth requires all pre-Cel2 blocks to come from migrated Celo L1
chaindata. If Cel2 is after genesis, op-geth expects blocks
between genesis and Cel2 to already exist, causing test failures.

* Skip TestSyncTesterHFS acceptance tests, not applicable to Celo

These tests sync across hard-fork activation boundaries on op-sepolia.
Celo activates all forks through Granite at genesis (Cel2Time=0), so
there are no fork boundaries to cross. The Holocene/Isthmus tests also
target op-sepolia endpoints and block numbers, not Celo infrastructure.

We could keep running the test against the OP testnet, but we're lacking
the respective node RPCs to do that cheaply and reliably.

* Skip flashblocks acceptance tests, not applicable to Celo

Skip both flashblocks tests since Celo doesn't use flashblocks.
piersy and others added 28 commits November 26, 2026 19:15
* op-node/derive: Gate BPO activation in L1InfoDeposit per L2 chain

Disable BPO/Osaka blob fee formula for Celo L2 chains (mainnet,
sepolia, chaos) until Jovian hardfork, matching the gating in
celo-kona PR #121. For non-Celo chains, BPO remains enabled by
default (preserving upstream behavior).

* Update op-geth

Updates op-geth to a version that specifies CeloChaosChainID

* Fix TestBlobBaseFeeFromSepolia: use stripBPOActivations and inline header data

The test was failing because it computed BlobBaseFee using the full
SepoliaChainConfig (which includes BPO activation times), but the
expected value was the Prague-era blob fee from the actual Celo Sepolia
L2 block (derived before BPO was known).

Fix by:
- Using stripBPOActivations on the config, which is exactly what
  the production code does for Celo chains
- Inlining the header data (ExcessBlobGas, Time) instead of making
  a live RPC call, so the test runs in CI's -short mode
- Removing unused context and ethclient imports

* ci: Skip OP mainnet upgrade tests not relevant to Celo

The contracts-bedrock-tests-upgrade and coverage-upgrade tests fork OP
mainnet to test OP-specific upgrade paths. These fail on the Celo fork
because ForkLive.s.sol is out of sync with upstream (the
DelayedWETHProxy deployment lookup fails).

Since these tests are not relevant to Celo chains, skip them:
- Comment out contracts-bedrock-tests-upgrade workflow jobs
- Use coverage-lcov instead of coverage-lcov-all (which includes
  upgrade coverage)

---------

Co-authored-by: Karl Bartel <[email protected]>

Refactor bpo hardfork gating (#420)

The previous implementation was broken since it was using block numbers
to determine if jovian was active, but in fact jovian is activated by
timestamp.
Span batch encoding/decoding failed on Celo CIP-64 transactions (type
0x7b) because the tx type switch statements only handled legacy, access
list, dynamic fee, and set code types.

Add spanBatchCeloDynamicFeeTxV2Data to carry the FeeCurrency field
through the encode/decode round trip, and wire it into all 5 switch
sites: newSpanBatchTx, decodeTyped, convertToFullTx, recoverV, and
convertVToYParity.
… support

The fault proof program and the Rust rollup config (kona-node, kona-host, op-reth) have no Celo support: they cannot parse the cel2_time field in the RollupConfig, so the single-chain and interop fault-proof acceptance tests and the kona/rust e2e CI jobs are skipped until Celo support lands.
Port of 958f0ce (Use config from celo's fork of superchain
registry (#426)) and e3d03df (Update to an op-geth with superchain
config lacking the gingerbread block (#428)).

The op-geth now embeds valid celo superchain config from our fork of
the superchain registry, so we can remove the hardcoded config
overrides in applyCeloHardforks(). The Cel2Time field is now read from
the superchain registry's HardforkConfig.
Point op-core/superchain at celo-org/superchain-registry, which carries Celo's
configs on top of upstream. Regenerated the superchain-configs.zip bundle
(gitignored) and its committed .sha256.
Introduces the on-chain BatchAuthenticator, the first piece of the Espresso
integration. Batchers authenticate batch commitments here; the contract emits
BatchInfoAuthenticated events that the forthcoming derivation pipeline scans
from L1 receipts to decide batch authenticity. Re-host of #443.

Contract (src/L1/BatchAuthenticator.sol, semver 1.2.0): upgradeable L1 contract
with two batcher modes selected by activeIsEspresso — an Espresso/TEE path
(caller must be the active espressoBatcher AND the signature must verify
against the EspressoTEEVerifier) and a fallback path (caller must be the
SystemConfig batcher, no signature). Owner rotates the espressoBatcher;
guardian-or-owner flips the active mode. The espressoBatcher history is an
append-only OZ Checkpoints.Trace160 keyed by L1 block, with a same-block guard
so rotations can't overwrite history. registerSigner is permissionless,
delegating safety to the TEE verifier. Adds IBatchAuthenticator, ~1100 lines of
unit/fork tests, and TEE verifier mocks.

Deploy: DeployBatchAuthenticator (standalone) and DeployEspresso (also deploys
the TEE/Nitro verifiers), both using the transient-admin → initialize →
changeAdmin-to-shared-ProxyAdmin pattern.

Dependencies: adds espresso-tee-contracts (v1.3.0) and
openzeppelin-contracts-upgradeable-v5 submodules, plus OZ v5 remappings — the
repo now carries OZ v4 and v5 side by side.

Cross-cutting: OZ v5 ships its own proxy/Proxy.sol, so every "Proxy" artifact
reference across deploy scripts and tests is path-qualified to
"src/universal/Proxy.sol:Proxy", and the Go getCode cheatcode now resolves
directory-qualified names. CI/tooling adjustments: BatchAuthenticator
grandfathered into the floating-pragma allowlist, Espresso interfaces excluded
from the interface-ABI check, justfile/CircleCI tweaks to avoid OOM and solc
auto-detect issues, and regenerated ABI/storage/semver snapshots.
Add Espresso event-based batch authentication.

Adds derivation-pipeline support for the Espresso BatchAuthenticator
contract, gated by a new L2-timestamp hardfork, EspressoTime. Pre-fork,
derivation is unchanged from upstream Optimism (batch accepted iff the L1
sender is the SystemConfig batcher). Post-fork, batches are authenticated
against on-chain events instead.

Authentication. A batch is accepted post-fork only if a
BatchInfoAuthenticated(bytes32 commitment, address indexed caller) event
for its commitment was emitted by the BatchAuthenticator within a 100-block
backward lookback window, AND the batch tx's L1 sender equals that event's
caller — binding each batch to the address that authenticated it. The
commitment is keccak256(calldata) for calldata batches and
keccak256(concat(blobHashes)) for blob batches. Using event scanning (not
L1 state reads) keeps derivation compatible with the op-program fault-proof
environment.

CollectAuthenticatedBatches scans receipts over [ref-100, ref], walking
backward by parent hash, so the result is a pure function of ref's hash
(independent of L1 tip, timing, or cache state).

The fork gate is evaluated against the L1 origin time of the enclosing
block (mirroring ecotoneTime) to keep a stable decision per L2 epoch. Both
the calldata and blob sources gate each batch through isBatchTxAuthorized;
the altDA path is covered transparently as it wraps them.

Config adds EspressoTime and BatchAuthenticatorAddress; Check() requires a
non-zero authenticator address when EspressoTime is set.
… ecotone_time (#466)

* refactor(derive): drop dead Espresso calldata authentication path

The calldata data source is only reached pre-ecotone: OpenData routes to the
blob source whenever ecotone is active (ref.Time >= ecotone_time). Every Celo
chain sets ecotone_time = 0, and Espresso (espresso_time) activates strictly
later, so the Espresso event-based batch-authentication branch that #457 folded
into DataFromEVMTransactions could never fire on a real chain.

Restore the calldata data source to its pre-Espresso form. calldata_source.go is
byte-identical to before #457; #457 had split isValidBatchTx into a type/To-only
check plus isAuthorizedBatchSender to serve the blob source's event-based path,
which rippled a needless change into the calldata source. Reinstate the original
5-arg isValidBatchTx (composed from isBatchTxToInbox + isAuthorizedBatchSender)
and point the blob source at isBatchTxToInbox. calldata_source_test.go is also
restored except for one line: DataSourceConfig gained fields (rollupCfg,
batchAuthCaches), so its literal must use named fields instead of positional.

The blob source keeps Espresso event-based authentication and also handles plain
calldata-carrying batcher txs post-ecotone, so no behaviour is lost. Delete the
now-dead Espresso calldata test and move its shared mockAuthEvents helper into
the blob data source test, its only user.

Mirrors the celo-kona removal (drop CeloCalldataSource, use upstream CalldataSource).

* feat(rollup): reject espresso_time scheduled before ecotone_time

Dropping the Espresso-aware calldata source made "espresso_time >= ecotone_time"
a silent correctness invariant: Espresso event-based authentication now lives
only on the post-ecotone blob path, so a block in the [espresso_time,
ecotone_time) window would route to the pre-ecotone calldata source and silently
fall back to sender-based authorization.

Guard the invariant in Config.Check(): error with ErrEspressoBeforeEcotone when
espresso_time is set but ecotone_time is unset or scheduled later than
espresso_time. Every real Celo chain sets ecotone_time = 0, so this only fires on
a misconfiguration -- but now it fails fast instead of corrupting derivation.

Mirrors the celo-kona validate_espresso guard (EspressoBeforeEcotone).

* test(derive): restore multi-tx event-auth coverage; review cleanups

- add mixed-block and multi-commitment subtests to
  TestDataAndHashesFromTxsEventAuth, restoring per-tx commitment
  matching coverage lost with espresso_calldata_source_test.go
- drop stale comment reference to the deleted
  TestDataFromEVMTransactionsForkBoundary
- reuse u64ptr instead of a local ptr closure in
  TestConfig_Check_EspressoBeforeEcotone

---------

Co-authored-by: Paul Lange <[email protected]>
Makes the fallback (non-TEE) batcher authenticate each batch through the
BatchAuthenticator contract before posting it to the batch inbox, so the
post-Espresso derivation pipeline (event-based authorization) accepts
fallback batches. Builds on #445; re-hosted from #448.

op-batcher (fallback auth):
- Gate authentication behind EspressoTime and a configured
  BatchAuthenticatorAddress (espresso_fallback_gate.go); pre-fork behaviour
  is unchanged.
- Compute the batch commitment reusing the verifier's derive.Compute*BatchHash
  helpers, submit authenticateBatchInfo(commitment, "") ahead of the batch tx,
  watch both receipts, verify the auth landed within BatchAuthLookbackWindow,
  and emit one synthetic receipt so any failure re-queues the frames
  (fallback_auth.go). Calldata pairs pipeline; blob pairs serialise (blob vs
  calldata mempool exclusivity).
- Wire dispatch into sendTx, drain in-flight watchers at shutdown, and add
  fallback_auth_window_exceeded_total / fallback_auth_reverted_total metrics.

op-service/txmgr (ordered tx-pair primitive):
- Add TxManager.SendPairAsync / Queue.SendPair to submit two dependent txs with
  adjacent nonces (auth first), cancel the second leg if the first fails, and
  fill both nonces with no-ops on failure to avoid wedging the account
  (pair.go, leg.go, queue.go, txmgr.go). One queue slot per pair.

op-node (derivation enforcement):
- Add BatchAuthEnforcementDelaySecs: a grace window (~one lookback window) after
  EspressoTime during which sender-based auth is still accepted, after which the
  batch commitment must appear in a BatchInfoAuthenticated event within
  BatchAuthLookbackWindow and the batch sender must equal the event caller
  (data_source.go, blob_data_source.go, batch_authenticator.go, params.go).
  Replaces the earlier batcher-side lead-time flag.

Other:
- Include espresso/ in the op-stack-go Docker build context.
- Tests: fallback-auth ordering/revert/window/boundary/commitment-parity, the
  fork-boundary gate, txmgr pair (success, first-leg failure, revert, parent
  cancel, pipelining), and the derivation enforcement boundary.
* Espresso: enforce calldata-only DA post-fork (Least Authority Suggestion 4)

The Celo fault-proof host (celo-kona) does not implement the L1Blob
preimage hint, so an authenticated blob batch — while accepted by full
nodes — would stall fault-proof execution at its L1 block. The spec
declares blob DA unsupported (DEC-op-026/n-026), but until now that was
an operational restriction only.

Enforce it in code, at two layers:

- Derivation pipeline (consensus): from Espresso activation onward
  (including the auth-enforcement grace window), dataAndHashesFromTxs
  drops blob-carrying inbox transactions before any authorization
  check, so post-Espresso derivation never requires blob preimages.
  This covers op-node and the Go op-program alike, since they share the
  derive package. Pre-fork semantics are unchanged (upstream behavior).

- Batcher startup (operational): refuse to start with a blob or auto
  data-availability type when EspressoTime is scheduled, instead of
  letting verifiers silently drop every blob batch after activation and
  stalling the safe head. This makes the existing blob-pair headroom
  check in checkFallbackAuthConfirmations unreachable in practice; it
  is kept as defense in depth.

Co-Authored-By: Claude Fable 5 <[email protected]>

* op-node: hoist the Espresso activation check out of the tx loop

Espresso activation is a property of the scanned L1 block's origin time, so
evaluate it once alongside the enforcement check rather than per transaction.

* op-node: correct the dataAndHashesFromTxs doc comment

The pre-enforcement paragraph claimed upstream Optimism semantics for the whole
function, including the grace window, which the calldata-only rule below it
contradicts. Scope it to authorization, state the inbox filter once, and order
the rules as the code applies them.

* op-node: note that the blob batch-hash arm is dead post-Espresso

Blob txs only get past the calldata-only drop pre-Espresso, where authorization
is sender-based and never reads the batch hash. Record why the arm stays rather
than folding into the calldata one.

* op-batcher: record that the fallback-auth blob path is unreachable

checkEspressoDataAvailability runs first and rejects the only configuration
checkFallbackAuthConfirmations bounds, so the check cannot fire and the
serialized blob send path cannot run. Keep both, and say so in the code.

* espresso: scope the blob-preimage guarantee to post-fork L1 blocks

Derivation's drop only covers blocks at or after espresso_time; the pre-fork
blocks a proof walks back through are covered by the batcher gate, which keys on
espresso_time being set rather than active. Say why that asymmetry stays.

* op-batcher: state what a dropped blob batch actually costs

Not an indefinite safe-head stall: derivation forces empty batches once the
sequence window expires, and the verifier reorgs the unsafe chain away.

* op-node: correct what the batch hash helpers claim about the contract

authenticateBatchInfo takes an opaque bytes32 and has no calldata or blob
validation path; the encoding is agreed off-chain. Note that the blob helper has
no live caller while calldata-only DA is enforced.

* op-batcher: note sendFallbackAuthSerialized has no reachable caller

* op-batcher: mark the tests that pin configurations the batcher won't start

Three TestCheckFallbackAuthConfirmations cases, the five tests built on
testBlobCandidate and the blob parity subtest all describe blob DA, which
checkEspressoDataAvailability rejects. Keep them, but say so.

* espresso: cover the factory blob path and a scheduled-but-inactive batcher

TestOpenDataDropsBlobsPostEspresso drives NewDataSourceFactory through OpenData
and Next with Espresso enforced, asserting a blob inbox tx triggers no blob
fetch; the bare MockBlobsFetcher fails the test if one is issued.

TestCheckEspressoDataAvailability gains a future espresso_time, the input that
distinguishes the batcher's scheduled-or-active gate from an activation check.

* op-node: put the blob tx first in the mixed-block sub-test

With the calldata batch first, the sub-test passes whether the gate uses
continue or break: the blob tx is last, so a whole-block short-circuit costs
nothing observable. Putting the blob tx first makes break swallow the
calldata batch behind it and fail.

Matches the ordering celo-kona's mirror of this test uses.

---------

Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: Paul Lange <[email protected]>
Co-authored-by: Paul Lange <[email protected]>
Upstream switched op-e2e's default L2 EL to op-reth (3a7401b), but
Celo's execution rules live in celo op-geth; this repo's op-reth is
upstream's. Under op-reth, TestFees fails because base fees go to the
BaseFeeVault instead of the FeeHandler. OP_E2E_L2_EL_KIND=op-reth still
selects op-reth explicitly.
SP1, cannon, interop and the ZK dispute game have no Celo deployment, and the
rust e2e release build and sysgo binaries only fed acceptance tests already disabled.
Upstream moved to shell-less chainguard/static, but Celo's charts and the node
docker-compose start op-node, op-batcher and op-conductor through /bin/sh scripts.
Since v1.19.x the op-stack-go Dockerfile regenerates superchain-configs.zip from the
submodule, which a plain checkout leaves empty.
The sequencer goroutine writes unsafeHead under e.mu while the driver event
loop reads it unlocked. Same fix as #554 on celo-rebase-16.
Upstream moved the proof action tests under rust/, which go-tests excludes, so
Celo's FeeHandler/L1Block and the derivation assertions stopped running.
Images reported v0.0.0 in metrics, logs and healthz because no workflow set GIT_VERSION.
Release builds now use the tag, branch and PR builds v0.0.0-<sha8>, and both add OCI
version and revision labels. Manual release runs fail unless started from a tag.
No acceptance job ran on this branch. op-geth is the only L2 EL here with
Celo's changes; the devstack skips Karst chains on it, so only tests pinned
up to Jovian run. The kona-sp1-proposer tests are skipped: no Celo support.
* circleci: compare PRs against celo-rebase-19

Change detection diffed against a stale origin/develop, semgrep against
celo-rebase-18 and the compact-codec check against a temporary branch.
PRs now target celo-rebase-19, so all three use it.

* circleci: detect changes from the pushed commit on the base branch

A push to celo-rebase-19 has nothing to diff against itself, so rust-ci
and the contracts tests never ran there. Use the commit's own diff.

* circleci: run rust-ci when the superchain-registry pin moves

The kona and op-reth snapshot checks regenerate from the submodule, so a
pin-only PR has to run them now that change detection diffs a real base.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* circleci: full semgrep scan on pushes to celo-rebase-XX

The baseline is the pushed branch itself there, so the incremental scan
checked nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
* op-stack-go: refresh the CA bundle in alpine target images

The digest-pinned alpine base freezes ca-certificates-bundle at 20260909,
which still trusts emSign ECC Root CA - G3. Its intermediates were
compromised (eMudhra, Oct 2026) and Mozilla removed the root from NSS on
2026-10-20. Go does not check revocation, so op-node, op-batcher and the
other alpine-based images keep accepting certificates forged under it
until their trust store changes.

Upgrade the bundle at build time in a shared target-base stage, so a
rebuild picks up root removals without waiting for a new base digest.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* op-stack-go: build with Go 1.26.10

Go 1.26.10 adds a crypto/x509 denylist of the eight compromised eMudhra
intermediates (GO-2026-6809), so Verify rejects chains through them even
when the system trust store still holds their root. Neither 1.25.14 nor
1.24.13 has it.

The golang builder image sets GOTOOLCHAIN=local, so the go.mod toolchain
line alone does not change the compiler used for the images; bump the
builder images too, and mise so local and CI tests use the same version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* op-stack-go: require ca-certificates-bundle >= 20261020

apk upgrade does not guarantee a minimum version, and a cached build
layer would keep whatever bundle it first installed. A version floor
fails the build instead of shipping a bundle that still trusts the
compromised emSign root, and changes the layer's cache key.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* op-stack-go: upgrade the CA bundle on BUILDPLATFORM

The release workflow cross-builds linux/arm64 without QEMU, so running
apk in the target-platform target-base stage would fail with
"exec format error" on the arm64 leg. PR CI builds amd64 only and would
not catch it.

Run the upgrade in a BUILDPLATFORM stage and copy only
/etc/ssl/certs/ca-certificates.crt into target-base. The bundle is
arch-independent and it is the only regular file the package ships;
/etc/ssl/cert.pem is a symlink to it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
* op-node: define CGTv2 upgrade and funding deposits

Select fixed network profiles and reviewed NUT bundles. Construct the
15 direct upgrade deposits plus reserve funding from fixed total supply
minus the migrated amount, with checked one-time gas allowances.

Keep production placeholders separate from the synthetic chain-1337
bundle. Freeze shared byte/hash vectors and include the embedded runtime
fixture in Docker builds.

* op-node: derive CGTv2 upgrades from escrow receipts

Authenticate each new origin header and its receipt root, then read the
configured bridge's EscrowSeeded event for the configured Portal. Rebuild
deposit log metadata from canonical traversal rather than RPC metadata.

Append upgrades after every Portal deposit in the origin. Wire raw header
access through the driver and attributes builder, and restore the normal
gas limit after activation. No storage-proof bootstrap or migration cache
is needed. Cover header binding, malformed receipts, retries, reorgs and
cross-client origin vectors.

* op-node: enforce deposits-only CGTv2 activation

Disable the transaction pool for the activation block and reject user
transactions during safe batch derivation after span decomposition.
Retain candidates across RPC retries and clear them on reset or flush.

Wire the activation detector into the production pipeline and guard the
attributes queue. Cover singular/span boundaries, sequencing and safe
payload validation.

* op-node: align CGTv2 fixtures with the canonical bridge

* op-node: simplify CGTv2 derivation checks

Reuse FetchReceipts authentication instead of requiring a second header
source. Keep canonical receipt field checks.

Reject activation batches with user transactions in AttributesQueue
after attributes are built, preserving RPC retries and accepted span
prefixes. Remove the BatchMux detector and extra driver/pipeline wiring.
* go: upgrade builders to 1.26.11 security release

Use the patched toolchain for CI, release images, and auxiliary builds.\nThe release fixes HTTP/2 server crashes and build-time code execution\nfrom malicious packages; existing binaries require rebuilding.

* op-deployer: pin Sepolia state in upgrade test

Fork the block used by the passing base-branch CI job so later Sepolia upgrades cannot turn this test into a rejected OPCM downgrade.

* go.mod: require go 1.26.5

Builder images run GOTOOLCHAIN=local, which ignores the toolchain line, so only
the go line keeps a builder off Go releases without the GO-2026-4870/5037 fixes.
* op-node: derive CGTv2 retries from authorized bridge events

Pass the full candidate through the standard payload build. Apply the deposits-only rule to both initial activation and accepted retry origins so batch validation is independent of the execution result.

* op-node: unify CGTv2 activation and retry receipt scans

Read EscrowSeeded and CgtV2RetryRequested through the same event scan.
Keep the Portal and retry hash filters, and verify the static artifact
against the protocol hash for retry requests.

Cover retry funding, skipped requests, initial seeding and critical
artifact mismatches through the shared path.

* op-node: log unrecognized CGTv2 retry hashes as errors

* op-node: keep the unsafe chain when a derived block is already canonical

celo-reth can rebuild a CGTv2 activation block identically although the
derived attributes do not match it. Rewinding the unsafe head to that block
made the sequencer reorg out blocks it had already gossiped.

(cherry picked from commit 5c7d544)

* op-node: test CGTv2 activation block consolidation end to end

Run the attributes handler, engine controller and sequencer against an EL
with reth's forkchoice rules and celo-reth's fallback builder, covering the
kept chain, the sequencer resuming on it and the reorg when the upgrade lands.

(cherry picked from commit 31ec469)

---------

Co-authored-by: Paul Lange <[email protected]>
The same vector file will run in celo-kona's derive crate, so both clients pick the same trigger event.
Devnet and e2e chains should match Celo Sepolia's genesis and Celo op-geth's registry loader,
which both default to gingerbreadBlock 0. Unset, Celo op-geth's RPC treats every block as a
Celo L1 block and reports gasPrice null for mined EIP-1559 transactions.
Rebase 20 moved the base-branch detection to run time, ported Celo's chain
config into op-core and hit three silent failure modes worth writing down.
@palango palango closed this Nov 30, 2026
@palango
palango deleted the palango/ci-token-debug branch November 30, 2026 15:12
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.