Skip to content

refactor: remove registry and guard surfaces - #107

Merged
odyslam merged 2 commits into
masterfrom
codex/remove-registry-and-guards
Aug 7, 2026
Merged

refactor: remove registry and guard surfaces#107
odyslam merged 2 commits into
masterfrom
codex/remove-registry-and-guards

Conversation

@odyslam

@odyslam odyslam commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move the credible registry, protocol guard, Safe guard, and onboarding helpers out of credible-std.
  • Remove related tests, Foundry profiles, CI entry, Safe scripts, and Anvil harness.
  • Retain SafeConfigLockAssertion and SafeTxShapeAssertion.

Test plan

  • forge fmt --check
  • forge build
  • FOUNDRY_PROFILE=ci pcl test --match-path 'test/protection/safe/SafeConfigLockAssertion.t.sol' (11 passed)
  • FOUNDRY_PROFILE=ci pcl test --match-path 'test/protection/safe/SafeTxShapeAssertion.t.sol' (57 passed)
  • git diff --check
  • Focused tracked-content grep for removed registry/guard identifiers

Companion PR

credible-registry#5 makes credible-registry authoritative for the moved registry and guard surfaces.

makemake-kbo
makemake-kbo previously approved these changes Aug 7, 2026

@makemake-kbo makemake-kbo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread CHANGELOG.md

### Added

- **Credible Block Guard**: `CredibleBlockGuard` reusable mixin (`src/protection/credible_block/`) exposing an `onlyCredibleBlock` modifier that gates functions on block credibility via the on-chain Credible Registry, failing open when the credible builder set goes offline so protected contracts are never bricked. Ships with an ABI-compatible `ICredibleRegistry` interface (matching `phylaxsystems/credible-registry`) and a full test suite.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CredibleBlockGuard is already part of the published 0.7.0 tag, so this removes a released import path while deleting its only changelog entry. Could we keep an Unreleased removal note that points consumers to the companion registry package and treat the next release as source breaking?

Signed-off-by: odysseas.eth <odyslam@gmail.com>
@odyslam
odyslam merged commit 38c2537 into master Aug 7, 2026
22 of 23 checks passed
@odyslam
odyslam deleted the codex/remove-registry-and-guards branch August 7, 2026 14:34
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.

3 participants