GOV-PRE-07 — Verified founding retirement and community custody qualification¶
Status: GOV-PRE-07 local contract and focused regression implementation is committed and tests have passed on the source head below. Live constitutional retirement and community custody transfers are NOT claimed. Existing unsigned/unfunded Genesis V4, authentic 60 independent validator/15 Committee member attestations, and a finalized real Timelock G3/G4 retirement receipt remain external release inputs.
Implementation and protocol invariants¶
Final hardened source-and-canonical-artifact head: e3280e96cd11fec96d0cb002ce12d802cd03f35e, exact-source GOV-AUDIT-6 materialization and independent Treasury security qualification. Historical earlier source/CI provenance is retained below but must not be represented as the latest runtime. Review in draft PR #1334, authoritative repository abvhiael/420-integrated-v0.1.
contracts/src/governance/FoundingRetirementVerifier420.solrechecks exactly 60 unique, eligible, continuously qualifying registered Validator owners with individual distinct independent Timelock-approved witness hashes and at least 15 distinct, actually nominated Committee members with separately reviewed independent attestations. It binds signed nomination at review time and rejects changed evidence; validator pool, individual validators, unchanged Committee count, both complete witness rosters and each witness clock must remain qualified for 30 days. A merely successful previous dual-house proposal never authorizes the actual retirement transaction.contracts/src/governance/CivicGovernor420.soladds a read-only, ephemeralactiveDualHouseExecution/proposal marker only during the authenticated, actually executing dual-house Civic Timelock batch, plus a transient keccak256 commitment to the exact currently executing action target and calldata. The effective marker returns zero after the original proposal leaves QUEUED state (and on any reverted batch); historical storage remains append-only after existing Governor mappings. The canonical Timelock uses a separate EIP-1153 Cancun transient execution context and lock, not post-callback persistent authorization state. This marker grants no new execution privileges and cannot replace the Timelock's existing reentrancy protections.contracts/src/treasury/FoundingTreasuryAuthority420.solallowsretire()exclusively as a genuinely executed Timelock action inside that active dual-house batch and only if the independent 60/15/30 status is currently valid, the Civic scheduler handoff was already effective, and the exact active voted target+calldata hash equals the immutable founding authority address andretire()selector. Unrelated nested actions cannot spoof retirement authorization. Retirement is irreversible and disables all existing founder payment/proposal, release execution and one-shot executor-binding powers. Unpaid scheduled founding Treasury Budget Registry reservations block retirement; Civic-canceled disbursements correctly release the actual reservation without erasing the historical audit counters.contracts/src/treasury/FoundingCommunityRetirementSweep420.solmoves native assets only via source-Vault exact route-scoped capability into the pre-registeredVAULT_COMMUNITYVault;sweepTokenadditionally moves recorded ERC-20 assets through a separate exact route to a noncustodial atomic transfer/deposit forwarder. Both enforce actual source/destination custody deltas, VaultAccounting increases/decreases, unchanged reserved/claimable liabilities and no open founding Treasury commitments. Missing routes, wrong destinations, fees/shortfalls and token-callback/reentrancy attempts fail closed. No third party can grant itself a withdrawal capability through this contract. Both source Vaults must have zero recorded assets, zero open obligations and zero native balances beforecustodyHandoffCompletecan return true. Real unenumerated ERC-20 tokens require an independently verified inventory: the EVM cannot enumerate unknown token contracts at an address.
These changes do not rewrite the locked 42M Genesis supply, 4.2M Operations and 840K Contingency suballocations, frozen G1–G4 voting thresholds/timelock floors, founder wallet identities, or historical Ledger/Validator/Stake decisions.
Scoped qualification execution (real GitHub Actions evidence)¶
The following workflow runs were observed successful on the implementation branch; the original suites were retained with unchanged assertions. The exact-target security binding has an additional focused verifier check #45044061537 SUCCESS, with all 8 cases. Prior pre-hardening source head 1aa34fe05e4d8d4fdd1e45150a69edeced871e88 had all six core suites successful, retained as historical regression provenance: GOV-PRE-07 founding retirement witnesses #45044291961 (8/8); Founding community Vault sweep #45044291761 (7/7); Founding Treasury bounded authority and settlement #45044291684 (16/16 authority and 3/3 real settlement); GOV-AUDIT-6 materialization, deterministic deployment and retained lifecycle #45044291659 (SUCCESS); Governance full audit #45044291635 (SUCCESS); and GOV-AUDIT-7 cross-protocol authority integration #45044291661 (SUCCESS). These source-head checks confirm the regenerated Governor ABI/runtime blobs and frozen storage compatibility. The full Civic Foundry suite additionally passed a genuine dual-house, 30-day retirement action using the canonical Timelock and explicit exact-target/calldata marker.
- Founding governance transition #45043379647: 8/8 witness, 60/15/30, owner removal, changed nomination, reappointment and active-dual-house tests.
- Founding community retirement Vault settlement #45043379622: 7/7 actual AssetVault native/ERC-20 custody movements, protection of obligations and grants, unencumbered balances, forged-destination rejection, forced native dust and actual closure.
- Founding Treasury bounded authorization #45043379632: 16/16 founding authorization tests plus 3/3 real native settlement tests. Includes cancellation of a real pending founding disbursement, without losing the historical audit counter, as a prerequisite for irreversible retirement.
- Governance deployment + lifecycle #45043044087: SUCCESS for the true execution path: a genuine G3 dual-house Civic proposal installs the validator/Committee witness commitments through its existing Timelock, 30 continuous days accrue, an unrelated EOA or a single-house G1 execution fails, and a separately verified, mature G3 constitutional batch actually calls
FoundingTreasuryAuthority.retire(). The real post-Genesis Legacy/Governance authority tests were also preserved.
These are LOCAL deterministic Foundry transactions. No unit test, fixture, CI run or fabricated address is a live chain receipt. The GOV-AUDIT-6 artifact generator has retained the current Governor runtime at 8,714 bytes and hash 0xee4db13090e785e2c08533690be5b86fe9350c8d5501db325a2607e861257ee0, and the current GovernanceTimelock runtime at 4,338 bytes and hash 0x9f3b61e71f625ee8bc36d62ccfd261aa7d6998bd073e784c1141cb619f777ed4. Both are below EIP-170's 24,576-byte limit. The original CivicGovernor mapping storage slots remain unchanged; the transient retirement markers are appended only. The required retained Governance/Registry/Indexer surface verifiers and exact deployment artifacts were verified by the final successful GOV-AUDIT-6/GOV-AUDIT-7/full Governance workflows. This is local software evidence, not a claim that any user-owned testnet Validator, Committee, Vault or Civic retirement was activated.
Final GOV-PRE-07 exact-source security and constitutional qualification (November 22, 2026)¶
Outcome: LOCAL CONTRACT, CANONICAL DEPLOYMENT AND SECURITY GATES PASSED on source/artifact head e3280e96cd11fec96d0cb002ce12d802cd03f35e; LIVE GENESIS V4 / CONSTITUTIONAL RETIREMENT / CUSTODY RECEIPTS NOT APPROVED. This supersedes the older source SHA and runtime sizes above; historical green runs remain part of the audit trail.
| Actual GitHub Actions workflow | Final result |
|---|---|
| Founding retirement qualification #45046769105 | SUCCESS; real 60 validator/15 Committee witness records, 30 days, dual-house execution context, changed-nomination denial |
| Founding community sweep #45046769083 | SUCCESS; native and ERC-20 real Vault transfers; outstanding/beneficiary-obligation protection; free-balance and custody closure |
| Founding Treasury #45046769055 | SUCCESS; founder power retirement, cancellation accounting and native settlement |
| GOV-AUDIT-6 #45046769229 | SUCCESS; canonical compilation, retained code/ABI/storage artifacts, deterministic predeploy and lifecycle |
| Full Governance audit #45046769021 | SUCCESS; full Civic qualified execution, G3 60/15/30 retirement and distinct already-mature G1 nested rejection |
| GOV-AUDIT-7 integration #45046769156 | SUCCESS; frozen cross-protocol and canonical authority graph |
| Treasury REC-5 #45046769018 | SUCCESS; real Civic Treasury and CapabilityRegistry authorization on canonical compiled runtime, precise rejected unauthorized selectors, Stake safety boundary |
| Treasury REC-9 #45046769202 | SUCCESS, zero unresolved High shared-Timelock/Treasury Slither findings; 6/6 real security suites; 2,048 invariant runs / 524,288 calls / zero reverts, no skipped tests |
Root-cause remediation, not a static-analysis suppression: Earlier source-headed REC-9 initially rejected a genuine cross-proposal security hole: an external target of one executing dual-house batch could execute a different, already-mature G1 Timelock operation while the dual-house marker was live. GovernanceTimelock now uses an in-transaction EIP-1153 tload/tstore operation context and execution lock, so the context is zeroed during every external action and no persistent authorization variable is restored after an external call. The public executingCivicOperation() ABI is preserved, the historical persistent slot 2 is reserved, and the prior appended lock slot 3 remains reserved. The unchanged scheduler and Civic activation slots remain at 0 and operation mapping at 1. Authentic nested distinct-op requests are rejected atomically; the separate mature operation remains independently executable afterward. The Governor's effective dual-house/current-action marker is bound to the exact current action hash and an original proposal still in QUEUED state. Once executed, marker getters return zero. Failed actions revert all intermediate state and lock writes. contracts/test/GovernanceRec4Lifecycle420.t.sol and contracts/test/TreasuryRec9Governance420.t.sol both exercise the cross-proposal attack and independent recovery.
Fork requirement independently verified: execution/genesis/execution-genesis.json and testnet/genesis/execution-genesis.json both retain cancunTime: 0, so EIP-1153 is already enabled from Genesis in the canonical chain configurations. The approved V4 exact-runtime/source-binding ceremony must still reverify the actual execution-client binary and chain fork settings; no unsanctioned fork change is introduced.
Scoped changes and regression fidelity: contracts/src/governance/GovernanceTimelock.sol, CivicGovernor420.sol, FoundingRetirementVerifier420.sol, FoundingCommitteeMembership420.sol, FoundingTreasuryAuthority420.sol, FoundingCommunityRetirementSweep420.sol, their real Foundry tests, and canonical materialization artifacts are committed on PR #1334. Treasury REC-5's former false artifact drift came from compiling an isolated test closure with differing AST/metadata rather than canonical GOV-AUDIT-6 input; its workflow now compiles the authentic Governance/Registry unit before verifying byte-identical materialization. The independent denied-caller tests assert exact UnauthorizedCaller/ExecutionUnauthorized errors instead of stale inherited error selectors, without relaxing authorization. The previous REC-9 expectation that distinct mature operations were allowed to nest has been corrected to assert rejection, while requiring later standalone execution; all 524,288 invariant calls and Slither High-severity checks remain enabled. Temporary formatting/materialization workflows were removed after producing the retained source/artifacts. Earlier unrelated frozen-V3 signature/provenance validation results are not rewritten, waived, or claimed as signed V4.
Local exit is met; live testnet exit is not. No fake founding Committee member, Validator owner, signature, voting ballot, funded Vault, asset claim, on-chain custody receipt or zero-balance certificate was generated. External live-release requirements are unchanged. The next existing canonical stage is GOV-AUDIT-9, not begun here.
Custody transition order and independently verified release gates¶
- Approve and deploy exact signed Genesis V4, immutable actual three-founder wallet claims and independently reviewed deployed ValidatorRegistry, Committee, CivicGovernor, Timelock, FoundingRetirementVerifier, FoundingTreasuryAuthority, Treasury Budget/Disbursement Registry, Operations/Contingency Vaults, registered Community Vault and capability graph. The default repo has no authentic live signoff, address/funding receipts, 60 owner identities or 15 human member attestations.
- Obtain genuine, unique beneficiary/owner and Committee evidence references with signed opt-in nominations and a separate independent external review of the referenced evidence; retain source and document hashes. A nonzero witness hash or wallet address is not itself proof of independent human/economic ownership. Publish both immutable ordered witness sets only using real, separately approved Civic Timelock operations. Replacements restart the 30-day window.
- Require 60 uninterrupted eligible independently witnessed Validator owners, 15 uninterrupted nominated independently witnessed Committee members, two unchanged witness sets for at least 30 days, and previously successful irreversible
GovernanceTimelock.activateCivicAuthorityto canonical Governor. - Create a genuine dual-house G3/G4 proposal whose exact action commitment includes
FoundingTreasuryAuthority.retire(). Execute only after both houses vote valid Merkle ballots, quorum/approval and frozen Timelock class floor. No prior unrelated dual-house success or direct request can trigger retirement. Reject/resolve every still-SCHEDULED founding budget disbursement; unresolved obligations cannot be reassigned to the community. - With irreversible founder powers retired, independently authorize only the exact route capability for each registered source Vault to the approved Community Vault (for native assets), and to the atomic sweeper (for each approved ERC-20 token). Transfer only the recorded freeBalance of each asset, verify source/destination real transfers and accounting conservation and preserve reserved and claimable funds until discharged to original beneficiaries.
- Exhaust all properly inventoried source Vault assets and legally settled obligations. Verify Treasury open reservations = 0; both Vaults
canClose()= true; native actual balances = 0; every tracked token accounted as received by Community Vault and every untracked asset independently reconciled before claiming complete handoff. Retain finalized chain receipts, event IDs, exact codehashes, quorum proofs, 30-day timestamps, closeout ledger and no-capability-bypass evidence.
External blockers are deliberately retained: no signed Genesis V4, verified individual witness documents, 30 days of live owner/member status, actual executed G3/G4 retirement, on-chain route grant receipts, actual Vault funds and final custody records have been supplied. Until those are independently demonstrated, status remains LOCAL CODE QUALIFIED ONLY, LIVE RETIREMENT/CUSTODY UNQUALIFIED.
Next canonical roadmap stage, not initiated here: GOV-AUDIT-9 — production-equivalent testnet deployment qualification.