From 89a02ce15d97d097fc331c3bceb3d69c9f48a6bc Mon Sep 17 00:00:00 2001 From: Fielding Johnston Date: Tue, 1 Sep 2026 21:26:28 -0500 Subject: [PATCH] Document deploy + on-chain verification conventions Capture the conventions the strict-payouts block surfaced: testnet branch fast-forward after prod merges, NEXT_PUBLIC_* redeploy requirement, the eth_simulateV1 wallet-less verification pattern with its shared-block-gas pitfall, and the on-chain-probed Sablier tranche facts (500 cap, exact-sum requirement). --- AGENTS.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index dcb1a49..6e4aa9f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -31,3 +31,20 @@ Keep this file for knowledge useful to almost every future agent session in this Do not repeat what the codebase already shows; point to the authoritative file or command instead. Prefer rewriting or pruning existing entries over appending new ones. When updating this file, preserve this bar for all agents and keep entries concise. + +## Deploy + verification conventions + +- After every prod merge, fast-forward the testnet deployment branch: + `git push origin origin/main:testnet`. Both Vercel prods build from their branch. +- `NEXT_PUBLIC_*` env vars bake at build time — changing one on Vercel does nothing + until a redeploy (bit us in the 2026-08-19 Helius key outage). +- Contract-touching changes can be verified without a funded wallet or foundry: + viem `simulateBlocks` (eth_simulateV1) against `https://sepolia.base.org`, using a + balance stateOverride + TestUSDC `faucet()` → `approve` → create. Put heavy calls + in separate simulated blocks — several multi-million-gas calls in one block hit the + shared block-gas ceiling and revert positionally, which looks like a contract limit + but isn't. +- Sablier Lockup Tranched facts (probed on-chain, not docs): tranche cap is exactly + 500; tranche amounts must sum exactly to the post-broker-fee net deposit or the + create reverts — always go through `computeTranches`/`sablierNetDeposit` in + `packages/app/src/lib/schedule.ts`.