The constitution states seven principles, each written as MUST. Until now, none of them
mapped to anything that could fail a build. v0.8.0 shipped in direct violation of
Principle V ("main is always releasable", "a red build is never merged by lowering a
gate") and no check objected — because there was no check.
A MUST with no enforcement behind it is not a standard; it is an aspiration wearing a
standard's clothes. This file makes the distinction explicit and machine-checked:
enforced — a named gate from the matrix fails the build when the rule is broken.
The gate must be tier: required; the Gate Integrity check rejects a row that claims
enforced via a merely informational check (C9).
aspirational — not machine-checkable today. The row states the human review step
that substitutes, so the gap is visible rather than implied.
Adding or renaming a principle without adding a row here fails CI (C8). That is deliberate:
amending the constitution forces the enforcement question to be answered in the same PR.
Honest summary as of 2026-09-20: most rules are currently aspirational. That is not a
weakening — it is the first accurate statement of where this project stands. The gate
matrix schedules the promotions; this file records what is true today.
Principle I — Consensus Determinism Is Sacred (NON-NEGOTIABLE)¶
#
Rule
Status
Enforced by / substitute
I
Consensus Determinism Is Sacred
partial
see rows below
I.1
State roots, block hashes, gas costs match the governing spec
Consensus changes designed and reviewed before implementation
aspirational
Human: forge (ETC) / beacon (ETH) consultation per .github/agents/; PR review verifies the impact analysis exists. Not machine-checkable — the artifact is a judgement, not a diff property.
I.3
ETC and ETH code paths do not mix (OlympiaOpCodes/forBlock() vs OsakaOpCodes/forTimestamp())
enforced
gate:ci-test-build — ChainIsolationSpec (Tier-1) asserts the invariant for every shipped chain config
I.4
ETC remains Proof-of-Work; PoS logic must not enter the ETC path
enforced
gate:ci-test-build — ChainIsolationSpec asserts terminalTotalDifficulty is absent on every ETC-typed config
I.5
ETH/Sepolia must not inherit ECIP-1017 / Ethash assumptions
enforced
gate:ci-test-build — ChainIsolationSpec asserts ETC-only emission parameters are inert on ETH-typed configs
I.6
Wire messages formatted for the negotiated peer capability
aspirational
Human: herald review on P2P wire changes. hive-devp2p covers part of this but is informational — it may not be cited as enforcement until promoted.
Note on I.3. The invariant that protects ETC today is that ETC chain configs leave
forkTimestamps unset, making the timestamp-aware EvmConfig.forBlock overload inert on
ETC. Before this spec that was an unasserted convention, one config edit from a chain
split. ChainIsolationSpec converts it into an enforced invariant.
Non-trivial changes flow through the Spec Kit workflow
aspirational
Human: PR review confirms a linked spec for non-trivial work. Triviality is a judgement call; a mechanical check would be trivially gamed by splitting PRs.
II.2
The plan passes the Constitution Check gate
aspirational
Human: reviewer verifies the plan's Constitution Check section.
II.3
Spec artifacts live under specs/<NNN-feature-name>/
aspirational
Convention; a path check would fire on every docs-only PR for no benefit.
Principle III — Test Discipline & Tiered Coverage¶
#
Rule
Status
Enforced by / substitute
III.1
Established test stack (ScalaTest/ScalaCheck/Pekko TestKit/Cats Effect)
aspirational
Human: review.
III.2
No Thread.sleep in tests
aspirational
Human: review. Deferred mechanisation — a scalafixDisableSyntax rule scoped to test sources would enforce this; owner realcodywburns, tracked by #1404, target 2026-12-31.
III.3
Test tiers respected (testEssential gates PRs)
enforced
gate:ci-test-build — Tier-1 testEssential runs on every PR
III.4
Statement coverage ≥ 70% (coverageFailOnMinimum)
enforced
gate:ci-test-build — Tier-2 testStandard with coverage on develop and PRs into main
III.5
Consensus changes validated against ethereum/tests
enforced
gate:ci-test-build — ethereum/tests integration job. Scope caveat: the nightly full-schedule run (ethereum-tests-nightly) is informational and runs continue-on-error; only the in-CI subset is enforced.
gate:ci-test-build — sbt formatCheck (scalafmt check on all six modules; spec 020 PR 6b-3, #1721). Plain scalafmtCheckAll covers the root project only.
IV.2
All code passes scalafix (DisableSyntax, ExplicitResultTypes, OrganizeImports, RemoveUnused, …)
enforced
gate:ci-test-build — sbt formatCheck runs scalafixAll --check on the root, bytes, crypto and rlp (spec 020 PR 6b, #1719–#1721; formerly deferred under #1404, FR-020). Scope caveat:scalanet and scalanetDiscovery are not scalafix-checked (a logged follow-up), and vm/PrecompiledContracts.scala carries 9 line-level scalafix:ok DisableSyntax.return suppressions.
IV.3
Import group order, com.chipprbots.ethereum.* last
enforced
gate:ci-test-build — the OrganizeImports rule in the IV.2 scalafixAll --check, same scope caveat.
IV.4
No new io.iohk / mantis package or config references
aspirational
Human: review. Mechanisable as a grep gate; none of the scalafix rules covers it.
IV.5
Explicit result types on public definitions
enforced
gate:ci-test-build — the ExplicitResultTypes rule in the IV.2 scalafixAll --check, same scope caveat.
Local discipline; unobservable from CI. The CI gates re-run the same checks, so a skipped sbt pp costs a cycle rather than escaping detection.
V.2
CI must pass: format, compile-all, Tier-1, Tier-2 + coverage, KPI, ethereum/tests, assembly
enforced
gate:ci-test-build
V.3
Docker images build
enforced
gate:docker-build
V.4
≥1 approving review; all conversations resolved
aspirational
GitHub branch protection (configured outside the repo). Declared in .github/gates.yml → required_contexts and documented in .github/BRANCH_PROTECTION.md; the repo cannot verify the setting.
V.5
A red build is never merged by lowering a gate or deleting a test
enforced
gate:gate-integrity — undeclared checks, required-but-unfailable gates, and undated exclusions all fail. This is the rule v0.8.0 broke; it now has a mechanism.
V.6
Hive + comprehensive as a hard release gate
aspirational
Scheduled, not yet true. No Hive suite is required today — see docs/STATUS.md and .github/gates.yml → first_required_slice (#1402, target 2026-12-31). Declaring it enforced before a suite can pass would recreate the defect.
gate:gate-integrity — check C15 fails on a tracked keystore or key file (.p12, .pfx, .jks, .jceks, .bks, .keystore, .key), a Web3 UTC-- account keystore, a PEM private-key block in any file, or a .env file other than an *.example template. Known-public test fixtures are listed by exact path in the check. Scope caveat: other credentials (API tokens, passwords in text) are left to GitHub secret scanning and .gitignore, which do not gate a merge.
VI.2
JSON-RPC defaults to private/localhost binding
aspirational
Human: review of src/main/resources/conf/**. Mechanisable as a config assertion spec; not yet written.
VI.3
Dependency/CVE updates applied promptly; SBOM + signed artifacts
aspirational
dependency-check.yml runs with continue-on-error: true — it reports, it does not gate. Release signing is in release.yml.
VI.4
Crypto / key / network-surface changes get explicit security consideration
aspirational
Human: review + /security-review.
Principle VII — Transparent Versioning & Decision Records¶
#
Rule
Status
Enforced by / substitute
VII.1
Semantic versioning, version.sbt the single source
enforced
gate:gate-integrity — check C10 fails on a second versioning scheme (FR-019)
Significant decisions recorded as ADRs under docs/adr/
aspirational
Human: review.
VII.4
Breaking changes flagged in PR and changelog
aspirational
Human: review.
Principle VIII — One Shared Backlog, Claimed Before Work¶
#
Rule
Status
Enforced by / substitute
VIII
One Shared Backlog, Claimed Before Work
partial
see rows below
VIII.1
All engineering work is recorded in the shared backlog (backlog.yaml on the tracker branch)
aspirational
Human and agent review: a PR body carries a Backlog: B-0xx line. backlog-link.yml reports a missing line but is warn-only (informational), so it may not be cited as enforcement until it is promoted.
VIII.2
An item is claimed before work starts; nobody works an item another holder has claimed unless the claim expired or was released
aspirational
scripts/backlog/backlog.py claim refuses a live claim held by someone else (compare-and-swap through git push, never a force-push), so the lock is real once taken. Whether work started without a claim is a judgement, not a diff property, so it is checked in review.
VIII.3
Status kept current at each transition; a held claim refreshed at least daily
aspirational
The Tracker page (Development → Tracker) marks a claim STALE past expiry_hours; an expired claim can be taken over with claim --force. Visible, not gating.
VIII.4
Work discovered during a task is added to the backlog before the task ends
aspirational
Human and agent review of the PR and its follow-ups.
VIII.5
No undisclosed security issue is described in the backlog
aspirational
backlog.py check rejects advisory identifiers, and tracker-publish.yml runs it on every push to tracker; that is a check on the tracker branch, not a merge gate. Human: the author of an item applies Principle VI.
Every aspirational row above that is mechanisable but not yet mechanised is listed here
with an owner and a date, so "aspirational" cannot quietly become "forever" (FR-020).
Rule
What would enforce it
Owner
Target
III.2
scalafixDisableSyntax rule banning Thread.sleep in test sources
realcodywburns
2026-12-31
IV.2, IV.3, IV.5
scalafixAll --check on scalanet and scalanetDiscovery (logged follow-up; the other four modules are in the CI path)
realcodywburns
not set
IV.4
grep gate on io.iohk / mantis package and config references
realcodywburns
2027-03-31
V.6
promotion of the first_required_slice gates to required
realcodywburns
2026-12-31
VI.2
config assertion spec for RPC default binding
realcodywburns
2027-03-31
VI.3
dependency-check.yml without continue-on-error
realcodywburns
2027-03-31
VIII.1
promotion of backlog-link.yml from warn-only to a required check on PRs that are not bots or version bumps
The required_contexts list in .github/gates.yml is the source of truth for branch
protection. The repository cannot read or verify its own GitHub settings, so a maintainer
with admin rights applies it — see .github/BRANCH_PROTECTION.md for the gh api invocation.